From 9e36101251a8643d2b12d3bfdbda94270d59c55a Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Thu, 3 Feb 2022 13:26:05 +0100 Subject: [PATCH 01/23] Generator NG --- .generator/openapitools.json | 33 -- .generator/poetry.lock | 185 ++++++++ .generator/pyproject.toml | 19 + .generator/src/generator/__init__.py | 0 .generator/src/generator/__main__.py | 3 + .generator/src/generator/cli.py | 94 +++++ .generator/src/generator/formatter.py | 289 +++++++++++++ .generator/src/generator/openapi.py | 329 +++++++++++++++ .generator/src/generator/templates/api.j2 | 218 ++++++++++ .../generator/templates/api_client.j2} | 207 +++++++-- .../generator/templates/api_error.j2} | 4 +- .../src/generator/templates/api_info.j2 | 12 + .../generator/templates/configuration.j2} | 229 +++++----- .generator/src/generator/templates/model.j2 | 17 + .../generator/templates/model_enum.j2} | 11 +- .../src/generator/templates/model_generic.j2 | 264 ++++++++++++ .../generator/templates/model_oneof.j2} | 44 +- .../generator/templates/package.j2} | 27 +- .generator/templates/Gemfile.mustache | 9 - .generator/templates/README.mustache | 82 ---- .generator/templates/Rakefile.mustache | 10 - .generator/templates/api.mustache | 216 ---------- .../api_client_faraday_partial.mustache | 138 ------ .generator/templates/api_client_spec.mustache | 220 ---------- .../api_client_typhoeus_partial.mustache | 166 -------- .generator/templates/api_doc.mustache | 105 ----- .generator/templates/api_info.mustache | 15 - .generator/templates/api_test.mustache | 47 --- .../templates/configuration_spec.mustache | 34 -- ...configuration_tls_faraday_partial.mustache | 29 -- ...onfiguration_tls_typhoeus_partial.mustache | 34 -- .generator/templates/gemspec.mustache | 35 -- .generator/templates/git_push.sh.mustache | 57 --- .generator/templates/gitignore.mustache | 39 -- .generator/templates/model.mustache | 26 -- .generator/templates/model_doc.mustache | 12 - .generator/templates/model_test.mustache | 77 ---- .../templates/partial_model_generic.mustache | 384 ----------------- .../partial_model_generic_doc.mustache | 28 -- .../partial_oneof_module_doc.mustache | 92 ---- .generator/templates/rspec.mustache | 2 - .generator/templates/rubocop.mustache | 148 ------- .generator/templates/spec_helper.mustache | 103 ----- .generator/templates/travis.mustache | 14 - .generator/templates/version.mustache | 7 - .gitignore | 6 + .pre-commit-config.yaml | 12 +- Makefile | 17 +- lib/datadog_api_client/v1.rb | 137 +++--- .../v1/api/authentication_api.rb | 3 +- .../v1/api/aws_integration_api.rb | 45 +- .../v1/api/aws_logs_integration_api.rb | 45 +- .../v1/api/azure_integration_api.rb | 29 +- .../v1/api/dashboard_lists_api.rb | 19 +- .../v1/api/dashboards_api.rb | 49 ++- .../v1/api/downtimes_api.rb | 31 +- lib/datadog_api_client/v1/api/events_api.rb | 63 ++- .../v1/api/gcp_integration_api.rb | 11 +- lib/datadog_api_client/v1/api/hosts_api.rb | 29 +- .../v1/api/ip_ranges_api.rb | 1 + .../v1/api/key_management_api.rb | 13 +- lib/datadog_api_client/v1/api/logs_api.rb | 66 ++- .../v1/api/logs_indexes_api.rb | 37 +- .../v1/api/logs_pipelines_api.rb | 61 ++- lib/datadog_api_client/v1/api/metrics_api.rb | 42 +- lib/datadog_api_client/v1/api/monitors_api.rb | 399 ++++++++++++++++-- .../v1/api/notebooks_api.rb | 65 +-- .../v1/api/organizations_api.rb | 74 +++- .../v1/api/pager_duty_integration_api.rb | 11 +- .../v1/api/service_checks_api.rb | 13 +- ...service_level_objective_corrections_api.rb | 9 +- .../v1/api/service_level_objectives_api.rb | 117 ++--- .../v1/api/slack_integration_api.rb | 13 +- .../v1/api/snapshots_api.rb | 13 +- .../v1/api/synthetics_api.rb | 121 +++--- lib/datadog_api_client/v1/api/tags_api.rb | 31 +- .../v1/api/usage_metering_api.rb | 309 +++++++------- lib/datadog_api_client/v1/api/users_api.rb | 41 +- .../v1/api/webhooks_integration_api.rb | 41 +- lib/datadog_api_client/v1/api_client.rb | 2 +- lib/datadog_api_client/v1/api_error.rb | 2 +- lib/datadog_api_client/v1/configuration.rb | 126 +++--- .../v1/models/access_role.rb | 4 +- .../models/alert_graph_widget_definition.rb | 22 +- .../alert_graph_widget_definition_type.rb | 4 +- .../models/alert_value_widget_definition.rb | 20 +- .../alert_value_widget_definition_type.rb | 4 +- .../v1/models/api_error_response.rb | 16 +- lib/datadog_api_client/v1/models/api_key.rb | 39 +- .../v1/models/api_key_list_response.rb | 17 +- .../v1/models/api_key_response.rb | 18 +- .../v1/models/apm_stats_query_column_type.rb | 18 +- .../v1/models/apm_stats_query_definition.rb | 21 +- .../v1/models/apm_stats_query_row_type.rb | 4 +- .../v1/models/application_key.rb | 39 +- .../models/application_key_list_response.rb | 17 +- .../v1/models/application_key_response.rb | 18 +- .../authentication_validation_response.rb | 17 +- .../v1/models/aws_account.rb | 35 +- .../models/aws_account_and_lambda_request.rb | 17 +- .../v1/models/aws_account_create_response.rb | 17 +- .../v1/models/aws_account_delete_request.rb | 17 +- .../v1/models/aws_account_list_response.rb | 17 +- .../v1/models/aws_logs_async_error.rb | 17 +- .../v1/models/aws_logs_async_response.rb | 17 +- .../v1/models/aws_logs_lambda.rb | 17 +- .../v1/models/aws_logs_list_response.rb | 17 +- .../models/aws_logs_list_services_response.rb | 17 +- .../v1/models/aws_logs_services_request.rb | 17 +- .../v1/models/aws_namespace.rb | 4 +- .../v1/models/aws_tag_filter.rb | 18 +- .../models/aws_tag_filter_create_request.rb | 18 +- .../models/aws_tag_filter_delete_request.rb | 18 +- .../v1/models/aws_tag_filter_list_response.rb | 17 +- .../v1/models/azure_account.rb | 20 +- .../cancel_downtimes_by_scope_request.rb | 20 +- .../v1/models/canceled_downtimes_ids.rb | 17 +- .../v1/models/change_widget_definition.rb | 53 +-- .../models/change_widget_definition_type.rb | 4 +- .../v1/models/change_widget_request.rb | 30 +- .../check_can_delete_monitor_response.rb | 21 +- .../check_can_delete_monitor_response_data.rb | 17 +- .../models/check_can_delete_slo_response.rb | 22 +- .../check_can_delete_slo_response_data.rb | 17 +- .../models/check_status_widget_definition.rb | 22 +- .../check_status_widget_definition_type.rb | 4 +- .../v1/models/content_encoding.rb | 4 +- lib/datadog_api_client/v1/models/creator.rb | 17 +- lib/datadog_api_client/v1/models/dashboard.rb | 27 +- .../v1/models/dashboard_bulk_action_data.rb | 18 +- .../models/dashboard_bulk_delete_request.rb | 16 +- .../v1/models/dashboard_delete_response.rb | 17 +- .../v1/models/dashboard_layout_type.rb | 4 +- .../v1/models/dashboard_list.rb | 17 +- .../models/dashboard_list_delete_response.rb | 17 +- .../v1/models/dashboard_list_list_response.rb | 17 +- .../v1/models/dashboard_reflow_type.rb | 6 +- .../v1/models/dashboard_resource_type.rb | 4 +- .../v1/models/dashboard_restore_request.rb | 16 +- .../v1/models/dashboard_summary.rb | 17 +- .../v1/models/dashboard_summary_definition.rb | 20 +- .../v1/models/dashboard_template_variable.rb | 16 +- .../dashboard_template_variable_preset.rb | 17 +- ...ashboard_template_variable_preset_value.rb | 17 +- .../v1/models/deleted_monitor.rb | 17 +- .../models/distribution_widget_definition.rb | 59 +-- .../distribution_widget_definition_type.rb | 4 +- .../v1/models/distribution_widget_request.rb | 27 +- .../v1/models/distribution_widget_x_axis.rb | 17 +- .../v1/models/distribution_widget_y_axis.rb | 17 +- lib/datadog_api_client/v1/models/downtime.rb | 93 ++-- .../v1/models/downtime_child.rb | 89 ++-- .../v1/models/downtime_recurrence.rb | 64 +-- lib/datadog_api_client/v1/models/event.rb | 50 +-- .../v1/models/event_alert_type.rb | 6 +- .../v1/models/event_create_request.rb | 71 +--- .../v1/models/event_create_response.rb | 61 +-- .../v1/models/event_list_response.rb | 17 +- .../v1/models/event_priority.rb | 4 +- .../v1/models/event_query_definition.rb | 17 +- .../v1/models/event_response.rb | 18 +- .../models/event_stream_widget_definition.rb | 24 +- .../event_stream_widget_definition_type.rb | 4 +- .../event_timeline_widget_definition.rb | 20 +- .../event_timeline_widget_definition_type.rb | 4 +- ...a_and_function_apm_dependency_stat_name.rb | 4 +- ...nction_apm_dependency_stats_data_source.rb | 4 +- ...n_apm_dependency_stats_query_definition.rb | 24 +- ...ula_and_function_apm_resource_stat_name.rb | 4 +- ...function_apm_resource_stats_data_source.rb | 4 +- ...ion_apm_resource_stats_query_definition.rb | 22 +- .../formula_and_function_event_aggregation.rb | 4 +- ...ula_and_function_event_query_definition.rb | 21 +- ...function_event_query_definition_compute.rb | 17 +- ..._function_event_query_definition_search.rb | 16 +- ...rmula_and_function_event_query_group_by.rb | 17 +- ..._and_function_event_query_group_by_sort.rb | 18 +- ...formula_and_function_events_data_source.rb | 4 +- ...formula_and_function_metric_aggregation.rb | 4 +- ...formula_and_function_metric_data_source.rb | 4 +- ...la_and_function_metric_query_definition.rb | 20 +- ..._and_function_process_query_data_source.rb | 4 +- ...a_and_function_process_query_definition.rb | 21 +- .../formula_and_function_query_definition.rb | 12 +- .../formula_and_function_response_format.rb | 4 +- .../v1/models/free_text_widget_definition.rb | 19 +- .../free_text_widget_definition_type.rb | 4 +- .../v1/models/funnel_query.rb | 19 +- .../v1/models/funnel_query_steps_item.rb | 269 ++++++++++++ .../v1/models/funnel_request_type.rb | 4 +- .../v1/models/funnel_source.rb | 4 +- .../v1/models/funnel_widget_definition.rb | 50 +-- .../models/funnel_widget_definition_type.rb | 4 +- .../v1/models/funnel_widget_request.rb | 19 +- .../v1/models/gcp_account.rb | 23 +- .../v1/models/geomap_widget_definition.rb | 57 +-- .../models/geomap_widget_definition_style.rb | 17 +- .../models/geomap_widget_definition_type.rb | 4 +- .../models/geomap_widget_definition_view.rb | 16 +- .../v1/models/geomap_widget_request.rb | 21 +- .../v1/models/graph_snapshot.rb | 21 +- .../v1/models/group_widget_definition.rb | 21 +- .../v1/models/group_widget_definition_type.rb | 4 +- .../v1/models/heat_map_widget_definition.rb | 51 +-- .../models/heat_map_widget_definition_type.rb | 4 +- .../v1/models/heat_map_widget_request.rb | 26 +- lib/datadog_api_client/v1/models/host.rb | 23 +- .../v1/models/host_list_response.rb | 17 +- .../v1/models/host_map_request.rb | 25 +- .../v1/models/host_map_widget_definition.rb | 22 +- .../host_map_widget_definition_requests.rb | 19 +- .../host_map_widget_definition_style.rb | 17 +- .../models/host_map_widget_definition_type.rb | 4 +- lib/datadog_api_client/v1/models/host_meta.rb | 20 +- .../v1/models/host_meta_install_method.rb | 17 +- .../v1/models/host_metrics.rb | 17 +- .../v1/models/host_mute_response.rb | 17 +- .../v1/models/host_mute_settings.rb | 17 +- lib/datadog_api_client/v1/models/host_tags.rb | 17 +- .../v1/models/host_totals.rb | 17 +- .../models/hourly_usage_attribution_body.rb | 22 +- .../hourly_usage_attribution_metadata.rb | 18 +- .../hourly_usage_attribution_pagination.rb | 17 +- .../hourly_usage_attribution_response.rb | 18 +- .../hourly_usage_attribution_usage_type.rb | 4 +- .../v1/models/http_log_error.rb | 36 +- .../v1/models/http_log_item.rb | 29 +- .../v1/models/http_method.rb | 4 +- .../v1/models/i_frame_widget_definition.rb | 18 +- .../models/i_frame_widget_definition_type.rb | 4 +- .../v1/models/idp_form_data.rb | 16 +- .../v1/models/idp_response.rb | 16 +- .../v1/models/image_widget_definition.rb | 24 +- .../v1/models/image_widget_definition_type.rb | 4 +- .../v1/models/intake_payload_accepted.rb | 17 +- .../v1/models/ip_prefixes_agents.rb | 17 +- .../v1/models/ip_prefixes_api.rb | 17 +- .../v1/models/ip_prefixes_apm.rb | 17 +- .../v1/models/ip_prefixes_logs.rb | 17 +- .../v1/models/ip_prefixes_process.rb | 17 +- .../v1/models/ip_prefixes_synthetics.rb | 25 +- .../v1/models/ip_prefixes_webhooks.rb | 17 +- lib/datadog_api_client/v1/models/ip_ranges.rb | 24 +- .../v1/models/list_stream_column.rb | 18 +- .../v1/models/list_stream_column_width.rb | 4 +- .../v1/models/list_stream_query.rb | 18 +- .../v1/models/list_stream_response_format.rb | 4 +- .../v1/models/list_stream_source.rb | 4 +- .../models/list_stream_widget_definition.rb | 53 +-- .../list_stream_widget_definition_type.rb | 4 +- .../v1/models/list_stream_widget_request.rb | 20 +- lib/datadog_api_client/v1/models/log.rb | 18 +- .../v1/models/log_content.rb | 33 +- .../v1/models/log_query_definition.rb | 21 +- .../models/log_query_definition_group_by.rb | 17 +- .../log_query_definition_group_by_sort.rb | 18 +- .../v1/models/log_query_definition_search.rb | 16 +- .../v1/models/log_stream_widget_definition.rb | 21 +- .../log_stream_widget_definition_type.rb | 4 +- .../v1/models/logs_api_error.rb | 17 +- .../v1/models/logs_api_error_response.rb | 18 +- .../v1/models/logs_arithmetic_processor.rb | 44 +- .../models/logs_arithmetic_processor_type.rb | 4 +- .../v1/models/logs_attribute_remapper.rb | 26 +- .../v1/models/logs_attribute_remapper_type.rb | 4 +- .../v1/models/logs_by_retention.rb | 19 +- .../models/logs_by_retention_monthly_usage.rb | 17 +- .../v1/models/logs_by_retention_org_usage.rb | 17 +- .../v1/models/logs_by_retention_orgs.rb | 17 +- .../v1/models/logs_category_processor.rb | 36 +- .../logs_category_processor_category.rb | 18 +- .../v1/models/logs_category_processor_type.rb | 4 +- .../v1/models/logs_date_remapper.rb | 38 +- .../v1/models/logs_date_remapper_type.rb | 4 +- .../v1/models/logs_exclusion.rb | 17 +- .../v1/models/logs_exclusion_filter.rb | 22 +- .../v1/models/logs_filter.rb | 17 +- .../v1/models/logs_geo_ip_parser.rb | 24 +- .../v1/models/logs_geo_ip_parser_type.rb | 4 +- .../v1/models/logs_grok_parser.rb | 38 +- .../v1/models/logs_grok_parser_rules.rb | 16 +- .../v1/models/logs_grok_parser_type.rb | 4 +- .../v1/models/logs_index.rb | 28 +- .../v1/models/logs_index_list_response.rb | 17 +- .../v1/models/logs_index_update_request.rb | 31 +- .../v1/models/logs_indexes_order.rb | 20 +- .../v1/models/logs_list_request.rb | 42 +- .../v1/models/logs_list_request_time.rb | 20 +- .../v1/models/logs_list_response.rb | 20 +- .../v1/models/logs_lookup_processor.rb | 33 +- .../v1/models/logs_lookup_processor_type.rb | 4 +- .../v1/models/logs_message_remapper.rb | 27 +- .../v1/models/logs_message_remapper_type.rb | 4 +- .../v1/models/logs_pipeline.rb | 23 +- .../v1/models/logs_pipeline_processor.rb | 24 +- .../v1/models/logs_pipeline_processor_type.rb | 4 +- .../v1/models/logs_pipelines_order.rb | 19 +- .../v1/models/logs_processor.rb | 26 +- .../v1/models/logs_query_compute.rb | 16 +- .../v1/models/logs_retention_agg_sum_usage.rb | 19 +- .../v1/models/logs_retention_sum_usage.rb | 19 +- .../v1/models/logs_service_remapper.rb | 23 +- .../v1/models/logs_service_remapper_type.rb | 4 +- lib/datadog_api_client/v1/models/logs_sort.rb | 4 +- .../v1/models/logs_status_remapper.rb | 37 +- .../v1/models/logs_status_remapper_type.rb | 4 +- .../models/logs_string_builder_processor.rb | 36 +- .../logs_string_builder_processor_type.rb | 4 +- .../v1/models/logs_trace_remapper.rb | 26 +- .../v1/models/logs_trace_remapper_type.rb | 4 +- .../v1/models/logs_url_parser.rb | 23 +- .../v1/models/logs_url_parser_type.rb | 4 +- .../v1/models/logs_user_agent_parser.rb | 24 +- .../v1/models/logs_user_agent_parser_type.rb | 4 +- .../v1/models/metric_content_encoding.rb | 4 +- .../v1/models/metric_metadata.rb | 17 +- .../v1/models/metric_search_response.rb | 18 +- .../models/metric_search_response_results.rb | 17 +- .../v1/models/metrics_list_response.rb | 17 +- .../v1/models/metrics_payload.rb | 16 +- .../v1/models/metrics_query_metadata.rb | 47 +-- .../v1/models/metrics_query_response.rb | 17 +- .../v1/models/metrics_query_unit.rb | 17 +- lib/datadog_api_client/v1/models/monitor.rb | 48 +-- .../v1/models/monitor_device_id.rb | 4 +- ..._formula_and_function_event_aggregation.rb | 4 +- ...ula_and_function_event_query_definition.rb | 21 +- ...function_event_query_definition_compute.rb | 17 +- ..._function_event_query_definition_search.rb | 16 +- ...rmula_and_function_event_query_group_by.rb | 17 +- ..._and_function_event_query_group_by_sort.rb | 18 +- ...formula_and_function_events_data_source.rb | 4 +- ...r_formula_and_function_query_definition.rb | 4 +- .../models/monitor_group_search_response.rb | 19 +- .../monitor_group_search_response_counts.rb | 17 +- ...roup_search_response_counts_status_item.rb | 261 ++++++++++++ ..._group_search_response_counts_type_item.rb | 261 ++++++++++++ .../v1/models/monitor_group_search_result.rb | 20 +- .../v1/models/monitor_options.rb | 94 +++-- .../v1/models/monitor_options_aggregation.rb | 17 +- .../v1/models/monitor_overall_states.rb | 4 +- .../v1/models/monitor_renotify_status_type.rb | 4 +- .../v1/models/monitor_search_response.rb | 19 +- .../models/monitor_search_response_counts.rb | 17 +- ...nitor_search_response_counts_muted_item.rb | 261 ++++++++++++ ...itor_search_response_counts_status_item.rb | 261 ++++++++++++ ...monitor_search_response_counts_tag_item.rb | 261 ++++++++++++ ...onitor_search_response_counts_type_item.rb | 261 ++++++++++++ .../monitor_search_response_metadata.rb | 17 +- .../v1/models/monitor_search_result.rb | 27 +- .../monitor_search_result_notification.rb | 17 +- .../v1/models/monitor_state.rb | 24 +- .../v1/models/monitor_state_group.rb | 18 +- .../monitor_summary_widget_definition.rb | 23 +- .../monitor_summary_widget_definition_type.rb | 4 +- .../monitor_threshold_window_options.rb | 17 +- .../v1/models/monitor_thresholds.rb | 17 +- .../v1/models/monitor_type.rb | 4 +- .../v1/models/monitor_update_request.rb | 46 +- .../models/monthly_usage_attribution_body.rb | 22 +- .../monthly_usage_attribution_metadata.rb | 18 +- .../monthly_usage_attribution_pagination.rb | 17 +- .../monthly_usage_attribution_response.rb | 18 +- ...hly_usage_attribution_supported_metrics.rb | 4 +- .../monthly_usage_attribution_values.rb | 17 +- .../v1/models/note_widget_definition.rb | 21 +- .../v1/models/note_widget_definition_type.rb | 4 +- .../v1/models/notebook_absolute_time.rb | 17 +- .../v1/models/notebook_author.rb | 19 +- .../v1/models/notebook_cell_create_request.rb | 20 +- ...notebook_cell_create_request_attributes.rb | 15 +- .../v1/models/notebook_cell_resource_type.rb | 4 +- .../v1/models/notebook_cell_response.rb | 21 +- .../notebook_cell_response_attributes.rb | 15 +- .../v1/models/notebook_cell_time.rb | 8 +- .../v1/models/notebook_cell_update_request.rb | 21 +- ...notebook_cell_update_request_attributes.rb | 15 +- .../v1/models/notebook_create_data.rb | 19 +- .../models/notebook_create_data_attributes.rb | 49 +-- .../v1/models/notebook_create_request.rb | 17 +- .../notebook_distribution_cell_attributes.rb | 22 +- .../v1/models/notebook_global_time.rb | 8 +- .../v1/models/notebook_graph_size.rb | 4 +- .../notebook_heat_map_cell_attributes.rb | 20 +- .../notebook_log_stream_cell_attributes.rb | 19 +- .../notebook_markdown_cell_attributes.rb | 17 +- .../notebook_markdown_cell_definition.rb | 18 +- .../notebook_markdown_cell_definition_type.rb | 4 +- .../v1/models/notebook_metadata.rb | 20 +- .../v1/models/notebook_metadata_type.rb | 4 +- .../v1/models/notebook_relative_time.rb | 17 +- .../v1/models/notebook_resource_type.rb | 4 +- .../v1/models/notebook_response.rb | 18 +- .../v1/models/notebook_response_data.rb | 20 +- .../notebook_response_data_attributes.rb | 50 +-- .../v1/models/notebook_split_by.rb | 17 +- .../v1/models/notebook_status.rb | 4 +- .../notebook_timeseries_cell_attributes.rb | 20 +- .../notebook_toplist_cell_attributes.rb | 20 +- .../v1/models/notebook_update_cell.rb | 7 +- .../v1/models/notebook_update_data.rb | 19 +- .../models/notebook_update_data_attributes.rb | 49 +-- .../v1/models/notebook_update_request.rb | 17 +- .../v1/models/notebooks_response.rb | 18 +- .../v1/models/notebooks_response_data.rb | 20 +- .../notebooks_response_data_attributes.rb | 48 +-- .../v1/models/notebooks_response_meta.rb | 18 +- .../v1/models/notebooks_response_page.rb | 17 +- .../v1/models/organization.rb | 26 +- .../v1/models/organization_billing.rb | 17 +- .../v1/models/organization_create_body.rb | 28 +- .../v1/models/organization_create_response.rb | 21 +- .../v1/models/organization_list_response.rb | 17 +- .../v1/models/organization_response.rb | 18 +- .../v1/models/organization_settings.rb | 23 +- .../v1/models/organization_settings_saml.rb | 20 +- ..._settings_saml_autocreate_users_domains.rb | 17 +- ...ation_settings_saml_idp_initiated_login.rb | 20 +- .../organization_settings_saml_strict_mode.rb | 20 +- .../v1/models/organization_subscription.rb | 17 +- .../v1/models/pager_duty_service.rb | 17 +- .../v1/models/pager_duty_service_key.rb | 16 +- .../v1/models/pager_duty_service_name.rb | 16 +- .../v1/models/pagination.rb | 17 +- .../v1/models/process_query_definition.rb | 31 +- .../v1/models/query_sort_order.rb | 4 +- .../models/query_value_widget_definition.rb | 49 +-- .../query_value_widget_definition_type.rb | 4 +- .../v1/models/query_value_widget_request.rb | 28 +- .../v1/models/response_meta_attributes.rb | 18 +- .../v1/models/scatter_plot_request.rb | 26 +- .../models/scatter_plot_widget_definition.rb | 23 +- ...scatter_plot_widget_definition_requests.rb | 20 +- .../scatter_plot_widget_definition_type.rb | 4 +- .../v1/models/scatterplot_dimension.rb | 4 +- .../v1/models/scatterplot_table_request.rb | 18 +- .../models/scatterplot_widget_aggregator.rb | 4 +- .../v1/models/scatterplot_widget_formula.rb | 18 +- lib/datadog_api_client/v1/models/series.rb | 24 +- .../v1/models/service_check.rb | 20 +- .../v1/models/service_check_status.rb | 4 +- .../v1/models/service_level_objective.rb | 68 ++- .../models/service_level_objective_query.rb | 21 +- .../models/service_level_objective_request.rb | 48 ++- .../models/service_map_widget_definition.rb | 39 +- .../service_map_widget_definition_type.rb | 4 +- .../service_summary_widget_definition.rb | 24 +- .../service_summary_widget_definition_type.rb | 4 +- .../v1/models/slack_integration_channel.rb | 18 +- .../slack_integration_channel_display.rb | 17 +- .../v1/models/slo_bulk_delete_error.rb | 23 +- .../v1/models/slo_bulk_delete_response.rb | 25 +- .../models/slo_bulk_delete_response_data.rb | 24 +- .../v1/models/slo_correction.rb | 19 +- .../v1/models/slo_correction_category.rb | 4 +- .../v1/models/slo_correction_create_data.rb | 18 +- .../models/slo_correction_create_request.rb | 18 +- ...lo_correction_create_request_attributes.rb | 24 +- .../v1/models/slo_correction_list_response.rb | 18 +- .../v1/models/slo_correction_response.rb | 18 +- .../slo_correction_response_attributes.rb | 27 +- ...correction_response_attributes_modifier.rb | 17 +- .../v1/models/slo_correction_type.rb | 4 +- .../v1/models/slo_correction_update_data.rb | 19 +- .../models/slo_correction_update_request.rb | 18 +- ...lo_correction_update_request_attributes.rb | 23 +- .../v1/models/slo_delete_response.rb | 21 +- .../v1/models/slo_error_timeframe.rb | 5 +- .../v1/models/slo_history_metrics.rb | 30 +- .../v1/models/slo_history_metrics_series.rb | 22 +- .../slo_history_metrics_series_metadata.rb | 21 +- ...lo_history_metrics_series_metadata_unit.rb | 17 +- .../v1/models/slo_history_monitor.rb | 27 +- .../v1/models/slo_history_response.rb | 18 +- .../v1/models/slo_history_response_data.rb | 42 +- .../v1/models/slo_history_response_error.rb | 17 +- .../slo_history_response_error_with_type.rb | 17 +- .../v1/models/slo_history_sli_data.rb | 31 +- .../v1/models/slo_list_response.rb | 21 +- .../v1/models/slo_list_response_metadata.rb | 18 +- .../models/slo_list_response_metadata_page.rb | 17 +- .../v1/models/slo_response.rb | 22 +- .../v1/models/slo_response_data.rb | 67 ++- .../v1/models/slo_threshold.rb | 33 +- .../v1/models/slo_timeframe.rb | 4 +- lib/datadog_api_client/v1/models/slo_type.rb | 4 +- .../v1/models/slo_type_numeric.rb | 6 +- .../v1/models/slo_widget_definition.rb | 20 +- .../v1/models/slo_widget_definition_type.rb | 4 +- .../v1/models/sunburst_widget_definition.rb | 40 +- .../models/sunburst_widget_definition_type.rb | 4 +- .../v1/models/sunburst_widget_legend.rb | 8 +- ...sunburst_widget_legend_inline_automatic.rb | 17 +- ...rst_widget_legend_inline_automatic_type.rb | 4 +- .../v1/models/sunburst_widget_legend_table.rb | 17 +- .../sunburst_widget_legend_table_type.rb | 4 +- .../v1/models/sunburst_widget_request.rb | 27 +- .../v1/models/synthetics_api_step.rb | 27 +- .../v1/models/synthetics_api_step_subtype.rb | 4 +- .../v1/models/synthetics_api_test.rb | 27 +- .../v1/models/synthetics_api_test_config.rb | 20 +- .../synthetics_api_test_failure_code.rb | 4 +- .../models/synthetics_api_test_result_data.rb | 30 +- .../synthetics_api_test_result_failure.rb | 18 +- .../models/synthetics_api_test_result_full.rb | 23 +- .../synthetics_api_test_result_full_check.rb | 17 +- .../synthetics_api_test_result_short.rb | 22 +- ...synthetics_api_test_result_short_result.rb | 19 +- .../v1/models/synthetics_api_test_type.rb | 4 +- .../v1/models/synthetics_assertion.rb | 11 +- ...synthetics_assertion_json_path_operator.rb | 4 +- .../synthetics_assertion_json_path_target.rb | 20 +- ...etics_assertion_json_path_target_target.rb | 18 +- .../models/synthetics_assertion_operator.rb | 4 +- .../v1/models/synthetics_assertion_target.rb | 20 +- .../v1/models/synthetics_assertion_type.rb | 4 +- .../v1/models/synthetics_basic_auth.rb | 8 +- .../v1/models/synthetics_basic_auth_ntlm.rb | 17 +- .../models/synthetics_basic_auth_ntlm_type.rb | 4 +- .../v1/models/synthetics_basic_auth_sigv4.rb | 19 +- .../synthetics_basic_auth_sigv4_type.rb | 4 +- .../v1/models/synthetics_basic_auth_web.rb | 19 +- .../models/synthetics_basic_auth_web_type.rb | 4 +- .../v1/models/synthetics_batch_details.rb | 18 +- .../models/synthetics_batch_details_data.rb | 19 +- .../v1/models/synthetics_batch_result.rb | 21 +- .../v1/models/synthetics_browser_error.rb | 19 +- .../models/synthetics_browser_error_type.rb | 4 +- .../v1/models/synthetics_browser_test.rb | 25 +- .../models/synthetics_browser_test_config.rb | 20 +- .../synthetics_browser_test_failure_code.rb | 4 +- .../synthetics_browser_test_result_data.rb | 22 +- .../synthetics_browser_test_result_failure.rb | 18 +- .../synthetics_browser_test_result_full.rb | 23 +- ...nthetics_browser_test_result_full_check.rb | 17 +- .../synthetics_browser_test_result_short.rb | 22 +- ...hetics_browser_test_result_short_result.rb | 18 +- .../v1/models/synthetics_browser_test_type.rb | 4 +- .../v1/models/synthetics_browser_variable.rb | 21 +- .../synthetics_browser_variable_type.rb | 4 +- .../v1/models/synthetics_check_type.rb | 4 +- .../v1/models/synthetics_ci_batch_metadata.rb | 19 +- .../models/synthetics_ci_batch_metadata_ci.rb | 19 +- .../synthetics_ci_batch_metadata_git.rb | 17 +- .../synthetics_ci_batch_metadata_pipeline.rb | 17 +- .../synthetics_ci_batch_metadata_provider.rb | 17 +- .../v1/models/synthetics_ci_test.rb | 27 +- .../v1/models/synthetics_ci_test_body.rb | 17 +- .../v1/models/synthetics_config_variable.rb | 18 +- .../models/synthetics_config_variable_type.rb | 4 +- .../v1/models/synthetics_core_web_vitals.rb | 17 +- .../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 +- .../v1/models/synthetics_device_id.rb | 4 +- .../v1/models/synthetics_error_code.rb | 5 +- ...cs_get_api_test_latest_results_response.rb | 17 +- ...et_browser_test_latest_results_response.rb | 17 +- .../v1/models/synthetics_global_variable.rb | 22 +- .../synthetics_global_variable_attributes.rb | 17 +- ...tics_global_variable_parse_test_options.rb | 19 +- ...global_variable_parse_test_options_type.rb | 4 +- .../synthetics_global_variable_parser_type.rb | 4 +- .../synthetics_global_variable_value.rb | 20 +- ...nthetics_list_global_variables_response.rb | 17 +- .../models/synthetics_list_tests_response.rb | 17 +- .../v1/models/synthetics_location.rb | 20 +- .../v1/models/synthetics_locations.rb | 17 +- .../v1/models/synthetics_parsing_options.rb | 19 +- .../v1/models/synthetics_playing_tab.rb | 4 +- .../v1/models/synthetics_private_location.rb | 19 +- ...tics_private_location_creation_response.rb | 19 +- ...ion_creation_response_result_encryption.rb | 17 +- .../synthetics_private_location_secrets.rb | 19 +- ...private_location_secrets_authentication.rb | 17 +- ...vate_location_secrets_config_decryption.rb | 17 +- .../v1/models/synthetics_ssl_certificate.rb | 19 +- .../synthetics_ssl_certificate_issuer.rb | 17 +- .../synthetics_ssl_certificate_subject.rb | 17 +- .../v1/models/synthetics_status.rb | 4 +- .../v1/models/synthetics_step.rb | 18 +- .../v1/models/synthetics_step_detail.rb | 24 +- .../models/synthetics_step_detail_warning.rb | 18 +- .../v1/models/synthetics_step_type.rb | 4 +- .../v1/models/synthetics_test_config.rb | 20 +- .../v1/models/synthetics_test_details.rb | 25 +- .../synthetics_test_details_sub_type.rb | 5 +- .../v1/models/synthetics_test_details_type.rb | 4 +- .../models/synthetics_test_execution_rule.rb | 4 +- .../models/synthetics_test_monitor_status.rb | 7 +- .../v1/models/synthetics_test_options.rb | 72 +--- ...synthetics_test_options_monitor_options.rb | 45 +- .../models/synthetics_test_options_retry.rb | 23 +- .../v1/models/synthetics_test_pause_status.rb | 5 +- .../models/synthetics_test_process_status.rb | 4 +- .../v1/models/synthetics_test_request.rb | 75 +--- .../synthetics_test_request_certificate.rb | 19 +- ...ynthetics_test_request_certificate_item.rb | 17 +- .../models/synthetics_test_request_proxy.rb | 20 +- .../v1/models/synthetics_timing.rb | 20 +- .../v1/models/synthetics_trigger_body.rb | 16 +- .../synthetics_trigger_ci_test_location.rb | 17 +- .../synthetics_trigger_ci_test_run_result.rb | 18 +- .../synthetics_trigger_ci_tests_response.rb | 19 +- .../v1/models/synthetics_trigger_test.rb | 17 +- ...hetics_update_test_pause_status_payload.rb | 19 +- .../v1/models/synthetics_variable_parser.rb | 17 +- .../v1/models/synthetics_warning_type.rb | 4 +- .../models/table_widget_cell_display_mode.rb | 4 +- .../v1/models/table_widget_definition.rb | 21 +- .../v1/models/table_widget_definition_type.rb | 4 +- .../v1/models/table_widget_has_search_bar.rb | 4 +- .../v1/models/table_widget_request.rb | 29 +- .../v1/models/tag_to_hosts.rb | 21 +- .../v1/models/target_format_type.rb | 6 +- .../v1/models/timeseries_widget_definition.rb | 44 +- .../timeseries_widget_definition_type.rb | 4 +- .../timeseries_widget_expression_alias.rb | 16 +- .../models/timeseries_widget_legend_column.rb | 4 +- .../models/timeseries_widget_legend_layout.rb | 4 +- .../v1/models/timeseries_widget_request.rb | 29 +- .../v1/models/toplist_widget_definition.rb | 20 +- .../models/toplist_widget_definition_type.rb | 4 +- .../v1/models/toplist_widget_request.rb | 41 +- .../v1/models/tree_map_color_by.rb | 4 +- .../v1/models/tree_map_group_by.rb | 4 +- .../v1/models/tree_map_size_by.rb | 4 +- .../v1/models/tree_map_widget_definition.rb | 49 +-- .../models/tree_map_widget_definition_type.rb | 4 +- .../v1/models/tree_map_widget_request.rb | 18 +- .../v1/models/usage_analyzed_logs_hour.rb | 17 +- .../v1/models/usage_analyzed_logs_response.rb | 17 +- .../usage_attribution_aggregates_body.rb | 17 +- .../v1/models/usage_attribution_body.rb | 22 +- .../v1/models/usage_attribution_metadata.rb | 18 +- .../v1/models/usage_attribution_pagination.rb | 17 +- .../v1/models/usage_attribution_response.rb | 18 +- .../v1/models/usage_attribution_sort.rb | 4 +- .../usage_attribution_supported_metrics.rb | 4 +- .../v1/models/usage_attribution_values.rb | 25 +- .../v1/models/usage_audit_logs_hour.rb | 17 +- .../v1/models/usage_audit_logs_response.rb | 17 +- .../v1/models/usage_billable_summary_body.rb | 17 +- .../v1/models/usage_billable_summary_hour.rb | 18 +- .../v1/models/usage_billable_summary_keys.rb | 49 ++- .../models/usage_billable_summary_response.rb | 17 +- ..._cloud_security_posture_management_hour.rb | 19 +- ...ud_security_posture_management_response.rb | 17 +- .../models/usage_custom_reports_attributes.rb | 17 +- .../v1/models/usage_custom_reports_data.rb | 19 +- .../v1/models/usage_custom_reports_meta.rb | 18 +- .../v1/models/usage_custom_reports_page.rb | 17 +- .../models/usage_custom_reports_response.rb | 18 +- .../v1/models/usage_cws_hour.rb | 17 +- .../v1/models/usage_cws_response.rb | 17 +- .../v1/models/usage_dbm_hour.rb | 17 +- .../v1/models/usage_dbm_response.rb | 17 +- .../v1/models/usage_fargate_hour.rb | 17 +- .../v1/models/usage_fargate_response.rb | 17 +- .../v1/models/usage_host_hour.rb | 44 +- .../v1/models/usage_hosts_response.rb | 17 +- .../models/usage_incident_management_hour.rb | 17 +- .../usage_incident_management_response.rb | 17 +- .../v1/models/usage_indexed_spans_hour.rb | 17 +- .../v1/models/usage_indexed_spans_response.rb | 17 +- .../v1/models/usage_ingested_spans_hour.rb | 17 +- .../models/usage_ingested_spans_response.rb | 17 +- .../v1/models/usage_io_t_hour.rb | 17 +- .../v1/models/usage_io_t_response.rb | 17 +- .../v1/models/usage_lambda_hour.rb | 20 +- .../v1/models/usage_lambda_response.rb | 20 +- .../v1/models/usage_logs_by_index_hour.rb | 17 +- .../v1/models/usage_logs_by_index_response.rb | 17 +- .../v1/models/usage_logs_by_retention_hour.rb | 19 +- .../usage_logs_by_retention_response.rb | 17 +- .../v1/models/usage_logs_hour.rb | 17 +- .../v1/models/usage_logs_response.rb | 17 +- .../v1/models/usage_metric_category.rb | 4 +- .../v1/models/usage_network_flows_hour.rb | 17 +- .../v1/models/usage_network_flows_response.rb | 17 +- .../v1/models/usage_network_hosts_hour.rb | 17 +- .../v1/models/usage_network_hosts_response.rb | 17 +- .../v1/models/usage_profiling_hour.rb | 17 +- .../v1/models/usage_profiling_response.rb | 17 +- .../v1/models/usage_reports_type.rb | 4 +- .../v1/models/usage_rum_sessions_hour.rb | 17 +- .../v1/models/usage_rum_sessions_response.rb | 17 +- .../v1/models/usage_rum_units_hour.rb | 17 +- .../v1/models/usage_rum_units_response.rb | 17 +- .../v1/models/usage_sds_hour.rb | 17 +- .../v1/models/usage_sds_response.rb | 17 +- .../v1/models/usage_snmp_hour.rb | 17 +- .../v1/models/usage_snmp_response.rb | 17 +- .../v1/models/usage_sort.rb | 4 +- .../v1/models/usage_sort_direction.rb | 4 +- ...age_specified_custom_reports_attributes.rb | 17 +- .../usage_specified_custom_reports_data.rb | 19 +- .../usage_specified_custom_reports_meta.rb | 18 +- .../usage_specified_custom_reports_page.rb | 17 +- ...usage_specified_custom_reports_response.rb | 19 +- .../v1/models/usage_summary_date.rb | 17 +- .../v1/models/usage_summary_date_org.rb | 17 +- .../v1/models/usage_summary_response.rb | 18 +- .../v1/models/usage_synthetics_api_hour.rb | 17 +- .../models/usage_synthetics_api_response.rb | 17 +- .../models/usage_synthetics_browser_hour.rb | 17 +- .../usage_synthetics_browser_response.rb | 17 +- .../v1/models/usage_synthetics_hour.rb | 17 +- .../v1/models/usage_synthetics_response.rb | 17 +- .../v1/models/usage_timeseries_hour.rb | 17 +- .../v1/models/usage_timeseries_response.rb | 17 +- .../v1/models/usage_top_avg_metrics_hour.rb | 18 +- .../models/usage_top_avg_metrics_metadata.rb | 18 +- .../models/usage_top_avg_metrics_response.rb | 18 +- lib/datadog_api_client/v1/models/user.rb | 18 +- .../v1/models/user_disable_response.rb | 17 +- .../v1/models/user_list_response.rb | 17 +- .../v1/models/user_response.rb | 18 +- .../v1/models/webhooks_integration.rb | 32 +- .../webhooks_integration_custom_variable.rb | 21 +- ...ks_integration_custom_variable_response.rb | 20 +- ...egration_custom_variable_update_request.rb | 24 +- .../models/webhooks_integration_encoding.rb | 4 +- .../webhooks_integration_update_request.rb | 36 +- lib/datadog_api_client/v1/models/widget.rb | 25 +- .../v1/models/widget_aggregator.rb | 4 +- .../v1/models/widget_axis.rb | 17 +- .../v1/models/widget_change_type.rb | 4 +- .../v1/models/widget_color_preference.rb | 4 +- .../v1/models/widget_comparator.rb | 4 +- .../v1/models/widget_compare_to.rb | 4 +- .../v1/models/widget_conditional_format.rb | 20 +- .../v1/models/widget_custom_link.rb | 17 +- .../v1/models/widget_definition.rb | 12 +- .../v1/models/widget_display_type.rb | 4 +- .../v1/models/widget_event.rb | 21 +- .../v1/models/widget_event_size.rb | 4 +- .../v1/models/widget_field_sort.rb | 18 +- .../v1/models/widget_formula.rb | 18 +- .../v1/models/widget_formula_limit.rb | 18 +- .../v1/models/widget_grouping.rb | 4 +- .../v1/models/widget_horizontal_align.rb | 4 +- .../v1/models/widget_image_sizing.rb | 5 +- .../v1/models/widget_layout.rb | 98 +---- .../v1/models/widget_layout_type.rb | 4 +- .../v1/models/widget_line_type.rb | 4 +- .../v1/models/widget_line_width.rb | 4 +- .../v1/models/widget_live_span.rb | 4 +- .../v1/models/widget_margin.rb | 5 +- .../v1/models/widget_marker.rb | 22 +- .../v1/models/widget_message_display.rb | 4 +- .../widget_monitor_summary_display_format.rb | 4 +- .../v1/models/widget_monitor_summary_sort.rb | 4 +- .../v1/models/widget_node_type.rb | 4 +- .../v1/models/widget_order_by.rb | 4 +- .../v1/models/widget_palette.rb | 4 +- .../v1/models/widget_request_style.rb | 19 +- .../widget_service_summary_display_format.rb | 4 +- .../v1/models/widget_size_format.rb | 4 +- .../v1/models/widget_sort.rb | 4 +- .../v1/models/widget_style.rb | 17 +- .../v1/models/widget_summary_type.rb | 4 +- .../v1/models/widget_text_align.rb | 4 +- .../v1/models/widget_tick_edge.rb | 4 +- .../v1/models/widget_time.rb | 18 +- .../v1/models/widget_time_windows.rb | 4 +- .../v1/models/widget_vertical_align.rb | 4 +- .../v1/models/widget_view_mode.rb | 4 +- .../v1/models/widget_viz_type.rb | 4 +- lib/datadog_api_client/v2.rb | 54 +-- .../v2/api/cloud_workload_security_api.rb | 25 +- .../v2/api/dashboard_lists_api.rb | 11 +- .../v2/api/incident_services_api.rb | 31 +- .../v2/api/incident_teams_api.rb | 31 +- .../v2/api/incidents_api.rb | 31 +- .../v2/api/key_management_api.rb | 55 +-- lib/datadog_api_client/v2/api/logs_api.rb | 112 ++++- .../v2/api/logs_archives_api.rb | 55 ++- .../v2/api/logs_metrics_api.rb | 25 +- lib/datadog_api_client/v2/api/metrics_api.rb | 65 ++- .../v2/api/processes_api.rb | 25 +- lib/datadog_api_client/v2/api/roles_api.rb | 157 +++---- .../v2/api/security_monitoring_api.rb | 105 +++-- .../v2/api/service_accounts_api.rb | 19 +- lib/datadog_api_client/v2/api/users_api.rb | 81 ++-- lib/datadog_api_client/v2/api_client.rb | 2 +- lib/datadog_api_client/v2/api_error.rb | 2 +- lib/datadog_api_client/v2/configuration.rb | 110 ++--- .../v2/models/api_error_response.rb | 16 +- .../v2/models/api_key_create_attributes.rb | 16 +- .../v2/models/api_key_create_data.rb | 19 +- .../v2/models/api_key_create_request.rb | 17 +- .../v2/models/api_key_relationships.rb | 19 +- .../v2/models/api_key_response.rb | 18 +- .../models/api_key_response_included_item.rb | 4 +- .../v2/models/api_key_update_attributes.rb | 16 +- .../v2/models/api_key_update_data.rb | 20 +- .../v2/models/api_key_update_request.rb | 17 +- .../v2/models/api_keys_response.rb | 17 +- .../v2/models/api_keys_sort.rb | 4 +- .../v2/models/api_keys_type.rb | 4 +- .../application_key_create_attributes.rb | 16 +- .../v2/models/application_key_create_data.rb | 19 +- .../models/application_key_create_request.rb | 17 +- .../models/application_key_relationships.rb | 18 +- .../v2/models/application_key_response.rb | 18 +- .../application_key_response_included_item.rb | 8 +- .../application_key_update_attributes.rb | 17 +- .../v2/models/application_key_update_data.rb | 20 +- .../models/application_key_update_request.rb | 17 +- .../v2/models/application_keys_sort.rb | 4 +- .../v2/models/application_keys_type.rb | 4 +- ...workload_security_agent_rule_attributes.rb | 19 +- ...d_security_agent_rule_create_attributes.rb | 17 +- ...orkload_security_agent_rule_create_data.rb | 19 +- ...load_security_agent_rule_create_request.rb | 17 +- ..._security_agent_rule_creator_attributes.rb | 17 +- ...cloud_workload_security_agent_rule_data.rb | 19 +- ...d_workload_security_agent_rule_response.rb | 18 +- ...cloud_workload_security_agent_rule_type.rb | 4 +- ...d_security_agent_rule_update_attributes.rb | 17 +- ...orkload_security_agent_rule_update_data.rb | 19 +- ...load_security_agent_rule_update_request.rb | 17 +- ..._security_agent_rule_updater_attributes.rb | 17 +- ...load_security_agent_rules_list_response.rb | 17 +- .../v2/models/content_encoding.rb | 4 +- lib/datadog_api_client/v2/models/creator.rb | 17 +- .../dashboard_list_add_items_request.rb | 17 +- .../dashboard_list_add_items_response.rb | 17 +- .../dashboard_list_delete_items_request.rb | 17 +- .../dashboard_list_delete_items_response.rb | 17 +- .../v2/models/dashboard_list_item.rb | 34 +- .../v2/models/dashboard_list_item_request.rb | 18 +- .../v2/models/dashboard_list_item_response.rb | 18 +- .../v2/models/dashboard_list_items.rb | 16 +- .../dashboard_list_update_items_request.rb | 17 +- .../dashboard_list_update_items_response.rb | 17 +- .../v2/models/dashboard_type.rb | 4 +- .../v2/models/full_api_key.rb | 20 +- .../v2/models/full_api_key_attributes.rb | 39 +- .../v2/models/full_application_key.rb | 20 +- .../models/full_application_key_attributes.rb | 39 +- .../v2/models/http_log_error.rb | 17 +- .../v2/models/http_log_errors.rb | 17 +- .../v2/models/http_log_item.rb | 29 +- .../v2/models/incident_create_attributes.rb | 21 +- .../v2/models/incident_create_data.rb | 20 +- .../models/incident_create_relationships.rb | 17 +- .../v2/models/incident_create_request.rb | 17 +- .../v2/models/incident_field_attributes.rb | 8 +- ...ncident_field_attributes_multiple_value.rb | 18 +- .../incident_field_attributes_single_value.rb | 18 +- ...dent_field_attributes_single_value_type.rb | 4 +- .../incident_field_attributes_value_type.rb | 4 +- .../incident_integration_metadata_type.rb | 4 +- .../v2/models/incident_notification_handle.rb | 17 +- .../v2/models/incident_postmortem_type.rb | 4 +- .../v2/models/incident_related_object.rb | 4 +- .../v2/models/incident_response.rb | 17 +- .../v2/models/incident_response_attributes.rb | 28 +- .../v2/models/incident_response_data.rb | 20 +- .../models/incident_response_included_item.rb | 4 +- .../models/incident_response_relationships.rb | 22 +- .../incident_service_create_attributes.rb | 16 +- .../v2/models/incident_service_create_data.rb | 19 +- .../models/incident_service_create_request.rb | 17 +- .../models/incident_service_included_items.rb | 4 +- .../models/incident_service_relationships.rb | 19 +- .../v2/models/incident_service_response.rb | 17 +- .../incident_service_response_attributes.rb | 17 +- .../models/incident_service_response_data.rb | 20 +- .../v2/models/incident_service_type.rb | 4 +- .../incident_service_update_attributes.rb | 16 +- .../v2/models/incident_service_update_data.rb | 19 +- .../models/incident_service_update_request.rb | 17 +- .../v2/models/incident_services_response.rb | 17 +- .../models/incident_services_response_meta.rb | 18 +- ...ident_services_response_meta_pagination.rb | 17 +- .../models/incident_team_create_attributes.rb | 16 +- .../v2/models/incident_team_create_data.rb | 19 +- .../v2/models/incident_team_create_request.rb | 17 +- .../v2/models/incident_team_included_items.rb | 4 +- .../v2/models/incident_team_relationships.rb | 19 +- .../v2/models/incident_team_response.rb | 17 +- .../incident_team_response_attributes.rb | 17 +- .../v2/models/incident_team_response_data.rb | 20 +- .../v2/models/incident_team_type.rb | 4 +- .../models/incident_team_update_attributes.rb | 16 +- .../v2/models/incident_team_update_data.rb | 19 +- .../v2/models/incident_team_update_request.rb | 17 +- .../v2/models/incident_teams_response.rb | 19 +- .../v2/models/incident_teams_response_meta.rb | 251 +++++++++++ ...incident_teams_response_meta_pagination.rb | 271 ++++++++++++ ...ncident_timeline_cell_create_attributes.rb | 4 +- ...ent_timeline_cell_markdown_content_type.rb | 4 +- ...imeline_cell_markdown_create_attributes.rb | 19 +- ...cell_markdown_create_attributes_content.rb | 17 +- .../v2/models/incident_type.rb | 4 +- .../v2/models/incident_update_attributes.rb | 23 +- .../v2/models/incident_update_data.rb | 20 +- .../models/incident_update_relationships.rb | 22 +- .../v2/models/incident_update_request.rb | 17 +- .../v2/models/incidents_response.rb | 19 +- .../v2/models/incidents_response_meta.rb | 135 +++++- .../incidents_response_meta_pagination.rb | 271 ++++++++++++ .../models/list_application_keys_response.rb | 17 +- lib/datadog_api_client/v2/models/log.rb | 19 +- .../v2/models/log_attributes.rb | 29 +- lib/datadog_api_client/v2/models/log_type.rb | 4 +- .../v2/models/logs_aggregate_bucket.rb | 25 +- .../v2/models/logs_aggregate_bucket_value.rb | 10 +- ...aggregate_bucket_value_timeseries_point.rb | 17 +- .../v2/models/logs_aggregate_request.rb | 21 +- .../v2/models/logs_aggregate_request_page.rb | 17 +- .../v2/models/logs_aggregate_response.rb | 19 +- .../v2/models/logs_aggregate_response_data.rb | 17 +- .../models/logs_aggregate_response_status.rb | 4 +- .../v2/models/logs_aggregate_sort.rb | 20 +- .../v2/models/logs_aggregate_sort_type.rb | 4 +- .../v2/models/logs_aggregation_function.rb | 4 +- .../v2/models/logs_archive.rb | 18 +- .../v2/models/logs_archive_attributes.rb | 28 +- .../v2/models/logs_archive_create_request.rb | 18 +- .../logs_archive_create_request_attributes.rb | 22 +- .../logs_archive_create_request_definition.rb | 17 +- ...logs_archive_create_request_destination.rb | 4 +- .../v2/models/logs_archive_definition.rb | 17 +- .../v2/models/logs_archive_destination.rb | 4 +- .../models/logs_archive_destination_azure.rb | 21 +- .../logs_archive_destination_azure_type.rb | 4 +- .../v2/models/logs_archive_destination_gcs.rb | 20 +- .../logs_archive_destination_gcs_type.rb | 4 +- .../v2/models/logs_archive_destination_s3.rb | 20 +- .../logs_archive_destination_s3_type.rb | 4 +- .../models/logs_archive_integration_azure.rb | 17 +- .../v2/models/logs_archive_integration_gcs.rb | 17 +- .../v2/models/logs_archive_integration_s3.rb | 17 +- .../v2/models/logs_archive_order.rb | 18 +- .../models/logs_archive_order_attributes.rb | 19 +- .../models/logs_archive_order_definition.rb | 19 +- .../logs_archive_order_definition_type.rb | 4 +- .../v2/models/logs_archive_state.rb | 4 +- .../v2/models/logs_archives.rb | 17 +- .../v2/models/logs_compute.rb | 21 +- .../v2/models/logs_compute_type.rb | 4 +- .../v2/models/logs_group_by.rb | 23 +- .../v2/models/logs_group_by_histogram.rb | 27 +- .../v2/models/logs_group_by_missing.rb | 8 +- .../v2/models/logs_group_by_total.rb | 10 +- .../v2/models/logs_list_request.rb | 22 +- .../v2/models/logs_list_request_page.rb | 30 +- .../v2/models/logs_list_response.rb | 19 +- .../v2/models/logs_list_response_links.rb | 20 +- .../v2/models/logs_metric_compute.rb | 19 +- .../logs_metric_compute_aggregation_type.rb | 4 +- .../models/logs_metric_create_attributes.rb | 18 +- .../v2/models/logs_metric_create_data.rb | 20 +- .../v2/models/logs_metric_create_request.rb | 17 +- .../v2/models/logs_metric_filter.rb | 17 +- .../v2/models/logs_metric_group_by.rb | 16 +- .../v2/models/logs_metric_response.rb | 18 +- .../models/logs_metric_response_attributes.rb | 19 +- .../v2/models/logs_metric_response_compute.rb | 20 +- ...etric_response_compute_aggregation_type.rb | 4 +- .../v2/models/logs_metric_response_data.rb | 19 +- .../v2/models/logs_metric_response_filter.rb | 17 +- .../models/logs_metric_response_group_by.rb | 17 +- .../v2/models/logs_metric_type.rb | 4 +- .../models/logs_metric_update_attributes.rb | 18 +- .../v2/models/logs_metric_update_data.rb | 19 +- .../v2/models/logs_metric_update_request.rb | 17 +- .../v2/models/logs_metrics_response.rb | 17 +- .../v2/models/logs_query_filter.rb | 19 +- .../v2/models/logs_query_options.rb | 22 +- .../v2/models/logs_response_metadata.rb | 22 +- .../v2/models/logs_response_metadata_page.rb | 20 +- lib/datadog_api_client/v2/models/logs_sort.rb | 4 +- .../v2/models/logs_sort_order.rb | 4 +- .../v2/models/logs_warning.rb | 17 +- lib/datadog_api_client/v2/models/metric.rb | 18 +- .../v2/models/metric_all_tags.rb | 19 +- .../v2/models/metric_all_tags_attributes.rb | 17 +- .../v2/models/metric_all_tags_response.rb | 18 +- .../v2/models/metric_custom_aggregation.rb | 19 +- .../models/metric_custom_space_aggregation.rb | 4 +- .../models/metric_custom_time_aggregation.rb | 4 +- .../v2/models/metric_distinct_volume.rb | 19 +- .../metric_distinct_volume_attributes.rb | 17 +- .../v2/models/metric_distinct_volume_type.rb | 4 +- .../models/metric_ingested_indexed_volume.rb | 19 +- ...tric_ingested_indexed_volume_attributes.rb | 17 +- .../metric_ingested_indexed_volume_type.rb | 4 +- .../v2/models/metric_tag_configuration.rb | 19 +- .../metric_tag_configuration_attributes.rb | 38 +- ...ric_tag_configuration_create_attributes.rb | 40 +- .../metric_tag_configuration_create_data.rb | 19 +- ...metric_tag_configuration_create_request.rb | 17 +- .../metric_tag_configuration_metric_types.rb | 4 +- .../metric_tag_configuration_response.rb | 18 +- .../models/metric_tag_configuration_type.rb | 4 +- ...ric_tag_configuration_update_attributes.rb | 39 +- .../metric_tag_configuration_update_data.rb | 19 +- ...metric_tag_configuration_update_request.rb | 17 +- .../v2/models/metric_type.rb | 4 +- .../v2/models/metric_volumes.rb | 4 +- .../v2/models/metric_volumes_response.rb | 18 +- .../metrics_and_metric_tag_configurations.rb | 4 +- ..._and_metric_tag_configurations_response.rb | 17 +- .../v2/models/organization.rb | 18 +- .../v2/models/organization_attributes.rb | 17 +- .../v2/models/organizations_type.rb | 4 +- .../v2/models/pagination.rb | 17 +- .../v2/models/partial_api_key.rb | 20 +- .../v2/models/partial_api_key_attributes.rb | 39 +- .../v2/models/partial_application_key.rb | 20 +- .../partial_application_key_attributes.rb | 39 +- .../partial_application_key_response.rb | 18 +- .../v2/models/permission.rb | 18 +- .../v2/models/permission_attributes.rb | 17 +- .../v2/models/permissions_response.rb | 17 +- .../v2/models/permissions_type.rb | 4 +- .../v2/models/process_summaries_meta.rb | 18 +- .../v2/models/process_summaries_meta_page.rb | 42 +- .../v2/models/process_summaries_response.rb | 18 +- .../v2/models/process_summary.rb | 19 +- .../v2/models/process_summary_attributes.rb | 17 +- .../v2/models/process_summary_type.rb | 4 +- .../v2/models/query_sort_order.rb | 4 +- ...p_to_incident_integration_metadata_data.rb | 18 +- ...nship_to_incident_integration_metadatas.rb | 16 +- .../relationship_to_incident_postmortem.rb | 17 +- ...elationship_to_incident_postmortem_data.rb | 18 +- .../v2/models/relationship_to_organization.rb | 17 +- .../relationship_to_organization_data.rb | 18 +- .../models/relationship_to_organizations.rb | 16 +- .../v2/models/relationship_to_permission.rb | 18 +- .../models/relationship_to_permission_data.rb | 18 +- .../v2/models/relationship_to_permissions.rb | 17 +- .../v2/models/relationship_to_role.rb | 18 +- .../v2/models/relationship_to_role_data.rb | 18 +- .../v2/models/relationship_to_roles.rb | 17 +- .../v2/models/relationship_to_user.rb | 17 +- .../v2/models/relationship_to_user_data.rb | 18 +- .../v2/models/relationship_to_users.rb | 16 +- .../v2/models/response_meta_attributes.rb | 18 +- lib/datadog_api_client/v2/models/role.rb | 19 +- .../v2/models/role_attributes.rb | 17 +- .../v2/models/role_clone.rb | 19 +- .../v2/models/role_clone_attributes.rb | 16 +- .../v2/models/role_clone_request.rb | 17 +- .../v2/models/role_create_attributes.rb | 16 +- .../v2/models/role_create_data.rb | 19 +- .../v2/models/role_create_request.rb | 17 +- .../v2/models/role_create_response.rb | 18 +- .../v2/models/role_create_response_data.rb | 19 +- .../v2/models/role_relationships.rb | 19 +- .../v2/models/role_response.rb | 18 +- .../v2/models/role_response_relationships.rb | 18 +- .../v2/models/role_update_attributes.rb | 17 +- .../v2/models/role_update_data.rb | 20 +- .../v2/models/role_update_request.rb | 17 +- .../v2/models/role_update_response.rb | 18 +- .../v2/models/role_update_response_data.rb | 19 +- .../v2/models/roles_response.rb | 18 +- .../v2/models/roles_sort.rb | 4 +- .../v2/models/roles_type.rb | 4 +- .../v2/models/security_filter.rb | 19 +- .../v2/models/security_filter_attributes.rb | 31 +- .../security_filter_create_attributes.rb | 21 +- .../v2/models/security_filter_create_data.rb | 19 +- .../models/security_filter_create_request.rb | 17 +- .../security_filter_exclusion_filter.rb | 17 +- ...curity_filter_exclusion_filter_response.rb | 17 +- .../security_filter_filtered_data_type.rb | 4 +- .../v2/models/security_filter_meta.rb | 17 +- .../v2/models/security_filter_response.rb | 19 +- .../v2/models/security_filter_type.rb | 4 +- .../security_filter_update_attributes.rb | 31 +- .../v2/models/security_filter_update_data.rb | 19 +- .../models/security_filter_update_request.rb | 17 +- .../v2/models/security_filters_response.rb | 18 +- .../v2/models/security_monitoring_filter.rb | 18 +- .../security_monitoring_filter_action.rb | 4 +- ...security_monitoring_list_rules_response.rb | 18 +- .../models/security_monitoring_rule_case.rb | 21 +- .../security_monitoring_rule_case_create.rb | 20 +- ...security_monitoring_rule_create_payload.rb | 23 +- ...curity_monitoring_rule_detection_method.rb | 4 +- ...urity_monitoring_rule_evaluation_window.rb | 5 +- .../security_monitoring_rule_keep_alive.rb | 5 +- ...ity_monitoring_rule_max_signal_duration.rb | 5 +- ...urity_monitoring_rule_new_value_options.rb | 20 +- ...ing_rule_new_value_options_forget_after.rb | 4 +- ...ule_new_value_options_learning_duration.rb | 5 +- .../security_monitoring_rule_options.rb | 25 +- .../models/security_monitoring_rule_query.rb | 21 +- ...urity_monitoring_rule_query_aggregation.rb | 4 +- .../security_monitoring_rule_query_create.rb | 20 +- .../security_monitoring_rule_response.rb | 19 +- .../security_monitoring_rule_severity.rb | 4 +- .../security_monitoring_rule_type_create.rb | 4 +- .../security_monitoring_rule_type_read.rb | 4 +- ...security_monitoring_rule_update_payload.rb | 31 +- .../v2/models/security_monitoring_signal.rb | 20 +- .../security_monitoring_signal_attributes.rb | 28 +- ...security_monitoring_signal_list_request.rb | 20 +- ...y_monitoring_signal_list_request_filter.rb | 17 +- ...ity_monitoring_signal_list_request_page.rb | 30 +- .../models/security_monitoring_signal_type.rb | 4 +- ...curity_monitoring_signals_list_response.rb | 22 +- ..._monitoring_signals_list_response_links.rb | 20 +- ...y_monitoring_signals_list_response_meta.rb | 18 +- ...itoring_signals_list_response_meta_page.rb | 20 +- .../security_monitoring_signals_sort.rb | 4 +- .../service_account_create_attributes.rb | 17 +- .../v2/models/service_account_create_data.rb | 20 +- .../models/service_account_create_request.rb | 17 +- lib/datadog_api_client/v2/models/user.rb | 20 +- .../v2/models/user_attributes.rb | 19 +- .../v2/models/user_create_attributes.rb | 16 +- .../v2/models/user_create_data.rb | 20 +- .../v2/models/user_create_request.rb | 17 +- .../v2/models/user_invitation_data.rb | 19 +- .../models/user_invitation_data_attributes.rb | 17 +- .../models/user_invitation_relationships.rb | 17 +- .../v2/models/user_invitation_response.rb | 18 +- .../models/user_invitation_response_data.rb | 19 +- .../v2/models/user_invitations_request.rb | 16 +- .../v2/models/user_invitations_response.rb | 17 +- .../v2/models/user_invitations_type.rb | 4 +- .../v2/models/user_relationships.rb | 18 +- .../v2/models/user_response.rb | 18 +- .../v2/models/user_response_included_item.rb | 4 +- .../v2/models/user_response_relationships.rb | 21 +- .../v2/models/user_update_attributes.rb | 17 +- .../v2/models/user_update_data.rb | 20 +- .../v2/models/user_update_request.rb | 17 +- .../v2/models/users_response.rb | 18 +- .../v2/models/users_type.rb | 4 +- 1140 files changed, 15449 insertions(+), 12115 deletions(-) delete mode 100644 .generator/openapitools.json create mode 100644 .generator/poetry.lock create mode 100644 .generator/pyproject.toml create mode 100644 .generator/src/generator/__init__.py create mode 100644 .generator/src/generator/__main__.py create mode 100644 .generator/src/generator/cli.py create mode 100644 .generator/src/generator/formatter.py create mode 100644 .generator/src/generator/openapi.py create mode 100644 .generator/src/generator/templates/api.j2 rename .generator/{templates/api_client.mustache => src/generator/templates/api_client.j2} (56%) rename .generator/{templates/api_error.mustache => src/generator/templates/api_error.j2} (94%) create mode 100644 .generator/src/generator/templates/api_info.j2 rename .generator/{templates/configuration.mustache => src/generator/templates/configuration.j2} (65%) create mode 100644 .generator/src/generator/templates/model.j2 rename .generator/{templates/partial_model_enum_class.mustache => src/generator/templates/model_enum.j2} (55%) create mode 100644 .generator/src/generator/templates/model_generic.j2 rename .generator/{templates/partial_oneof_module.mustache => src/generator/templates/model_oneof.j2} (86%) rename .generator/{templates/gem.mustache => src/generator/templates/package.j2} (50%) delete mode 100644 .generator/templates/Gemfile.mustache delete mode 100644 .generator/templates/README.mustache delete mode 100644 .generator/templates/Rakefile.mustache delete mode 100644 .generator/templates/api.mustache delete mode 100644 .generator/templates/api_client_faraday_partial.mustache delete mode 100644 .generator/templates/api_client_spec.mustache delete mode 100644 .generator/templates/api_client_typhoeus_partial.mustache delete mode 100644 .generator/templates/api_doc.mustache delete mode 100644 .generator/templates/api_info.mustache delete mode 100644 .generator/templates/api_test.mustache delete mode 100644 .generator/templates/configuration_spec.mustache delete mode 100644 .generator/templates/configuration_tls_faraday_partial.mustache delete mode 100644 .generator/templates/configuration_tls_typhoeus_partial.mustache delete mode 100644 .generator/templates/gemspec.mustache delete mode 100755 .generator/templates/git_push.sh.mustache delete mode 100644 .generator/templates/gitignore.mustache delete mode 100644 .generator/templates/model.mustache delete mode 100644 .generator/templates/model_doc.mustache delete mode 100644 .generator/templates/model_test.mustache delete mode 100644 .generator/templates/partial_model_generic.mustache delete mode 100644 .generator/templates/partial_model_generic_doc.mustache delete mode 100644 .generator/templates/partial_oneof_module_doc.mustache delete mode 100644 .generator/templates/rspec.mustache delete mode 100644 .generator/templates/rubocop.mustache delete mode 100644 .generator/templates/spec_helper.mustache delete mode 100644 .generator/templates/travis.mustache delete mode 100644 .generator/templates/version.mustache create mode 100644 lib/datadog_api_client/v1/models/funnel_query_steps_item.rb create mode 100644 lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb create mode 100644 lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb create mode 100644 lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb create mode 100644 lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb create mode 100644 lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb create mode 100644 lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb create mode 100644 lib/datadog_api_client/v2/models/incident_teams_response_meta.rb create mode 100644 lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb rename .generator/templates/base_object.mustache => lib/datadog_api_client/v2/models/incidents_response_meta.rb (52%) create mode 100644 lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb diff --git a/.generator/openapitools.json b/.generator/openapitools.json deleted file mode 100644 index ad3d8004c19..00000000000 --- a/.generator/openapitools.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json", - "spaces": 2, - "generator-cli": { - "version": "5.3.1", - "storageDir": "lib", - "repository": { - "downloadUrl": "https://github.com/DataDog/openapi-generator/releases/download/5.3.0-60b29e1f8e2/openapi-generator-cli.jar" - }, - "generators": { - "v1": { - "generatorName": "ruby", - "config": "config/v1.json", - "inputSpec": "schemas/v1/openapi.yaml", - "output": "../v1", - "typeMappings": "AnyType=Object", - "additionalProperties": "apiNameSuffix=API", - "globalProperty": "skipFormModel=false", - "templateDir": "templates" - }, - "v2": { - "generatorName": "ruby", - "config": "config/v2.json", - "inputSpec": "schemas/v2/openapi.yaml", - "output": "../v2", - "typeMappings": "AnyType=Object", - "additionalProperties": "apiNameSuffix=API", - "globalProperty": "skipFormModel=false", - "templateDir": "templates" - } - } - } -} diff --git a/.generator/poetry.lock b/.generator/poetry.lock new file mode 100644 index 00000000000..c4cc8f83a42 --- /dev/null +++ b/.generator/poetry.lock @@ -0,0 +1,185 @@ +[[package]] +name = "click" +version = "8.0.1" +description = "Composable command line interface toolkit" +category = "main" +optional = false +python-versions = ">=3.6" + +[package.dependencies] +colorama = {version = "*", markers = "platform_system == \"Windows\""} + +[[package]] +name = "colorama" +version = "0.4.4" +description = "Cross-platform colored terminal text." +category = "main" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" + +[[package]] +name = "jinja2" +version = "3.0.3" +description = "A very fast and expressive template engine." +category = "main" +optional = false +python-versions = ">=3.6" + +[package.dependencies] +MarkupSafe = ">=2.0" + +[package.extras] +i18n = ["Babel (>=2.7)"] + +[[package]] +name = "jsonref" +version = "0.2" +description = "An implementation of JSON Reference for Python" +category = "main" +optional = false +python-versions = "*" + +[[package]] +name = "markupsafe" +version = "2.0.1" +description = "Safely add untrusted strings to HTML/XML markup." +category = "main" +optional = false +python-versions = ">=3.6" + +[[package]] +name = "pyyaml" +version = "6.0" +description = "YAML parser and emitter for Python" +category = "main" +optional = false +python-versions = ">=3.6" + +[metadata] +lock-version = "1.1" +python-versions = "^3.9" +content-hash = "90e8465fb418524eabeb9595e9f20ee8a03f6bb65ce0d096a51fbbcf7583241d" + +[metadata.files] +click = [ + {file = "click-8.0.1-py3-none-any.whl", hash = "sha256:fba402a4a47334742d782209a7c79bc448911afe1149d07bdabdf480b3e2f4b6"}, + {file = "click-8.0.1.tar.gz", hash = "sha256:8c04c11192119b1ef78ea049e0a6f0463e4c48ef00a30160c704337586f3ad7a"}, +] +colorama = [ + {file = "colorama-0.4.4-py2.py3-none-any.whl", hash = "sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2"}, + {file = "colorama-0.4.4.tar.gz", hash = "sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"}, +] +jinja2 = [ + {file = "Jinja2-3.0.3-py3-none-any.whl", hash = "sha256:077ce6014f7b40d03b47d1f1ca4b0fc8328a692bd284016f806ed0eaca390ad8"}, + {file = "Jinja2-3.0.3.tar.gz", hash = "sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7"}, +] +jsonref = [ + {file = "jsonref-0.2-py3-none-any.whl", hash = "sha256:b1e82fa0b62e2c2796a13e5401fe51790b248f6d9bf9d7212a3e31a3501b291f"}, + {file = "jsonref-0.2.tar.gz", hash = "sha256:f3c45b121cf6257eafabdc3a8008763aed1cd7da06dbabc59a9e4d2a5e4e6697"}, +] +markupsafe = [ + {file = "MarkupSafe-2.0.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:d8446c54dc28c01e5a2dbac5a25f071f6653e6e40f3a8818e8b45d790fe6ef53"}, + {file = "MarkupSafe-2.0.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:36bc903cbb393720fad60fc28c10de6acf10dc6cc883f3e24ee4012371399a38"}, + {file = "MarkupSafe-2.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2d7d807855b419fc2ed3e631034685db6079889a1f01d5d9dac950f764da3dad"}, + {file = "MarkupSafe-2.0.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:add36cb2dbb8b736611303cd3bfcee00afd96471b09cda130da3581cbdc56a6d"}, + {file = "MarkupSafe-2.0.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:168cd0a3642de83558a5153c8bd34f175a9a6e7f6dc6384b9655d2697312a646"}, + {file = "MarkupSafe-2.0.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:4dc8f9fb58f7364b63fd9f85013b780ef83c11857ae79f2feda41e270468dd9b"}, + {file = "MarkupSafe-2.0.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:20dca64a3ef2d6e4d5d615a3fd418ad3bde77a47ec8a23d984a12b5b4c74491a"}, + {file = "MarkupSafe-2.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:cdfba22ea2f0029c9261a4bd07e830a8da012291fbe44dc794e488b6c9bb353a"}, + {file = "MarkupSafe-2.0.1-cp310-cp310-win32.whl", hash = "sha256:99df47edb6bda1249d3e80fdabb1dab8c08ef3975f69aed437cb69d0a5de1e28"}, + {file = "MarkupSafe-2.0.1-cp310-cp310-win_amd64.whl", hash = "sha256:e0f138900af21926a02425cf736db95be9f4af72ba1bb21453432a07f6082134"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:f9081981fe268bd86831e5c75f7de206ef275defcb82bc70740ae6dc507aee51"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:0955295dd5eec6cb6cc2fe1698f4c6d84af2e92de33fbcac4111913cd100a6ff"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:0446679737af14f45767963a1a9ef7620189912317d095f2d9ffa183a4d25d2b"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:f826e31d18b516f653fe296d967d700fddad5901ae07c622bb3705955e1faa94"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:fa130dd50c57d53368c9d59395cb5526eda596d3ffe36666cd81a44d56e48872"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:905fec760bd2fa1388bb5b489ee8ee5f7291d692638ea5f67982d968366bef9f"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bf5d821ffabf0ef3533c39c518f3357b171a1651c1ff6827325e4489b0e46c3c"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:0d4b31cc67ab36e3392bbf3862cfbadac3db12bdd8b02a2731f509ed5b829724"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:baa1a4e8f868845af802979fcdbf0bb11f94f1cb7ced4c4b8a351bb60d108145"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:deb993cacb280823246a026e3b2d81c493c53de6acfd5e6bfe31ab3402bb37dd"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:63f3268ba69ace99cab4e3e3b5840b03340efed0948ab8f78d2fd87ee5442a4f"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:8d206346619592c6200148b01a2142798c989edcb9c896f9ac9722a99d4e77e6"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-win32.whl", hash = "sha256:6c4ca60fa24e85fe25b912b01e62cb969d69a23a5d5867682dd3e80b5b02581d"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-win_amd64.whl", hash = "sha256:b2f4bf27480f5e5e8ce285a8c8fd176c0b03e93dcc6646477d4630e83440c6a9"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:0717a7390a68be14b8c793ba258e075c6f4ca819f15edfc2a3a027c823718567"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:6557b31b5e2c9ddf0de32a691f2312a32f77cd7681d8af66c2692efdbef84c18"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:49e3ceeabbfb9d66c3aef5af3a60cc43b85c33df25ce03d0031a608b0a8b2e3f"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:d7f9850398e85aba693bb640262d3611788b1f29a79f0c93c565694658f4071f"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:6a7fae0dd14cf60ad5ff42baa2e95727c3d81ded453457771d02b7d2b3f9c0c2"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:b7f2d075102dc8c794cbde1947378051c4e5180d52d276987b8d28a3bd58c17d"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e9936f0b261d4df76ad22f8fee3ae83b60d7c3e871292cd42f40b81b70afae85"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:2a7d351cbd8cfeb19ca00de495e224dea7e7d919659c2841bbb7f420ad03e2d6"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:60bf42e36abfaf9aff1f50f52644b336d4f0a3fd6d8a60ca0d054ac9f713a864"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:d6c7ebd4e944c85e2c3421e612a7057a2f48d478d79e61800d81468a8d842207"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:f0567c4dc99f264f49fe27da5f735f414c4e7e7dd850cfd8e69f0862d7c74ea9"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:89c687013cb1cd489a0f0ac24febe8c7a666e6e221b783e53ac50ebf68e45d86"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-win32.whl", hash = "sha256:a30e67a65b53ea0a5e62fe23682cfe22712e01f453b95233b25502f7c61cb415"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-win_amd64.whl", hash = "sha256:611d1ad9a4288cf3e3c16014564df047fe08410e628f89805e475368bd304914"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:5bb28c636d87e840583ee3adeb78172efc47c8b26127267f54a9c0ec251d41a9"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:be98f628055368795d818ebf93da628541e10b75b41c559fdf36d104c5787066"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-manylinux1_i686.whl", hash = "sha256:1d609f577dc6e1aa17d746f8bd3c31aa4d258f4070d61b2aa5c4166c1539de35"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:7d91275b0245b1da4d4cfa07e0faedd5b0812efc15b702576d103293e252af1b"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:01a9b8ea66f1658938f65b93a85ebe8bc016e6769611be228d797c9d998dd298"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:47ab1e7b91c098ab893b828deafa1203de86d0bc6ab587b160f78fe6c4011f75"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:97383d78eb34da7e1fa37dd273c20ad4320929af65d156e35a5e2d89566d9dfb"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6fcf051089389abe060c9cd7caa212c707e58153afa2c649f00346ce6d260f1b"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:5855f8438a7d1d458206a2466bf82b0f104a3724bf96a1c781ab731e4201731a"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:3dd007d54ee88b46be476e293f48c85048603f5f516008bee124ddd891398ed6"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:aca6377c0cb8a8253e493c6b451565ac77e98c2951c45f913e0b52facdcff83f"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:04635854b943835a6ea959e948d19dcd311762c5c0c6e1f0e16ee57022669194"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:6300b8454aa6930a24b9618fbb54b5a68135092bc666f7b06901f897fa5c2fee"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-win32.whl", hash = "sha256:023cb26ec21ece8dc3907c0e8320058b2e0cb3c55cf9564da612bc325bed5e64"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-win_amd64.whl", hash = "sha256:984d76483eb32f1bcb536dc27e4ad56bba4baa70be32fa87152832cdd9db0833"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:2ef54abee730b502252bcdf31b10dacb0a416229b72c18b19e24a4509f273d26"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:3c112550557578c26af18a1ccc9e090bfe03832ae994343cfdacd287db6a6ae7"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-manylinux1_i686.whl", hash = "sha256:53edb4da6925ad13c07b6d26c2a852bd81e364f95301c66e930ab2aef5b5ddd8"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f5653a225f31e113b152e56f154ccbe59eeb1c7487b39b9d9f9cdb58e6c79dc5"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-manylinux2010_i686.whl", hash = "sha256:4efca8f86c54b22348a5467704e3fec767b2db12fc39c6d963168ab1d3fc9135"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-manylinux2010_x86_64.whl", hash = "sha256:ab3ef638ace319fa26553db0624c4699e31a28bb2a835c5faca8f8acf6a5a902"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:f8ba0e8349a38d3001fae7eadded3f6606f0da5d748ee53cc1dab1d6527b9509"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c47adbc92fc1bb2b3274c4b3a43ae0e4573d9fbff4f54cd484555edbf030baf1"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:37205cac2a79194e3750b0af2a5720d95f786a55ce7df90c3af697bfa100eaac"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:1f2ade76b9903f39aa442b4aadd2177decb66525062db244b35d71d0ee8599b6"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:4296f2b1ce8c86a6aea78613c34bb1a672ea0e3de9c6ba08a960efe0b0a09047"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:9f02365d4e99430a12647f09b6cc8bab61a6564363f313126f775eb4f6ef798e"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:5b6d930f030f8ed98e3e6c98ffa0652bdb82601e7a016ec2ab5d7ff23baa78d1"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-win32.whl", hash = "sha256:10f82115e21dc0dfec9ab5c0223652f7197feb168c940f3ef61563fc2d6beb74"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-win_amd64.whl", hash = "sha256:693ce3f9e70a6cf7d2fb9e6c9d8b204b6b39897a2c4a1aa65728d5ac97dcc1d8"}, + {file = "MarkupSafe-2.0.1.tar.gz", hash = "sha256:594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a"}, +] +pyyaml = [ + {file = "PyYAML-6.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d4db7c7aef085872ef65a8fd7d6d09a14ae91f691dec3e87ee5ee0539d516f53"}, + {file = "PyYAML-6.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9df7ed3b3d2e0ecfe09e14741b857df43adb5a3ddadc919a2d94fbdf78fea53c"}, + {file = "PyYAML-6.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:77f396e6ef4c73fdc33a9157446466f1cff553d979bd00ecb64385760c6babdc"}, + {file = "PyYAML-6.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a80a78046a72361de73f8f395f1f1e49f956c6be882eed58505a15f3e430962b"}, + {file = "PyYAML-6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f84fbc98b019fef2ee9a1cb3ce93e3187a6df0b2538a651bfb890254ba9f90b5"}, + {file = "PyYAML-6.0-cp310-cp310-win32.whl", hash = "sha256:2cd5df3de48857ed0544b34e2d40e9fac445930039f3cfe4bcc592a1f836d513"}, + {file = "PyYAML-6.0-cp310-cp310-win_amd64.whl", hash = "sha256:daf496c58a8c52083df09b80c860005194014c3698698d1a57cbcfa182142a3a"}, + {file = "PyYAML-6.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:897b80890765f037df3403d22bab41627ca8811ae55e9a722fd0392850ec4d86"}, + {file = "PyYAML-6.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:50602afada6d6cbfad699b0c7bb50d5ccffa7e46a3d738092afddc1f9758427f"}, + {file = "PyYAML-6.0-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:48c346915c114f5fdb3ead70312bd042a953a8ce5c7106d5bfb1a5254e47da92"}, + {file = "PyYAML-6.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:98c4d36e99714e55cfbaaee6dd5badbc9a1ec339ebfc3b1f52e293aee6bb71a4"}, + {file = "PyYAML-6.0-cp36-cp36m-win32.whl", hash = "sha256:0283c35a6a9fbf047493e3a0ce8d79ef5030852c51e9d911a27badfde0605293"}, + {file = "PyYAML-6.0-cp36-cp36m-win_amd64.whl", hash = "sha256:07751360502caac1c067a8132d150cf3d61339af5691fe9e87803040dbc5db57"}, + {file = "PyYAML-6.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:819b3830a1543db06c4d4b865e70ded25be52a2e0631ccd2f6a47a2822f2fd7c"}, + {file = "PyYAML-6.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:473f9edb243cb1935ab5a084eb238d842fb8f404ed2193a915d1784b5a6b5fc0"}, + {file = "PyYAML-6.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0ce82d761c532fe4ec3f87fc45688bdd3a4c1dc5e0b4a19814b9009a29baefd4"}, + {file = "PyYAML-6.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:231710d57adfd809ef5d34183b8ed1eeae3f76459c18fb4a0b373ad56bedcdd9"}, + {file = "PyYAML-6.0-cp37-cp37m-win32.whl", hash = "sha256:c5687b8d43cf58545ade1fe3e055f70eac7a5a1a0bf42824308d868289a95737"}, + {file = "PyYAML-6.0-cp37-cp37m-win_amd64.whl", hash = "sha256:d15a181d1ecd0d4270dc32edb46f7cb7733c7c508857278d3d378d14d606db2d"}, + {file = "PyYAML-6.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0b4624f379dab24d3725ffde76559cff63d9ec94e1736b556dacdfebe5ab6d4b"}, + {file = "PyYAML-6.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:213c60cd50106436cc818accf5baa1aba61c0189ff610f64f4a3e8c6726218ba"}, + {file = "PyYAML-6.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9fa600030013c4de8165339db93d182b9431076eb98eb40ee068700c9c813e34"}, + {file = "PyYAML-6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:277a0ef2981ca40581a47093e9e2d13b3f1fbbeffae064c1d21bfceba2030287"}, + {file = "PyYAML-6.0-cp38-cp38-win32.whl", hash = "sha256:d4eccecf9adf6fbcc6861a38015c2a64f38b9d94838ac1810a9023a0609e1b78"}, + {file = "PyYAML-6.0-cp38-cp38-win_amd64.whl", hash = "sha256:1e4747bc279b4f613a09eb64bba2ba602d8a6664c6ce6396a4d0cd413a50ce07"}, + {file = "PyYAML-6.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:055d937d65826939cb044fc8c9b08889e8c743fdc6a32b33e2390f66013e449b"}, + {file = "PyYAML-6.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:e61ceaab6f49fb8bdfaa0f92c4b57bcfbea54c09277b1b4f7ac376bfb7a7c174"}, + {file = "PyYAML-6.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d67d839ede4ed1b28a4e8909735fc992a923cdb84e618544973d7dfc71540803"}, + {file = "PyYAML-6.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cba8c411ef271aa037d7357a2bc8f9ee8b58b9965831d9e51baf703280dc73d3"}, + {file = "PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:40527857252b61eacd1d9af500c3337ba8deb8fc298940291486c465c8b46ec0"}, + {file = "PyYAML-6.0-cp39-cp39-win32.whl", hash = "sha256:b5b9eccad747aabaaffbc6064800670f0c297e52c12754eb1d976c57e4f74dcb"}, + {file = "PyYAML-6.0-cp39-cp39-win_amd64.whl", hash = "sha256:b3d267842bf12586ba6c734f89d1f5b871df0273157918b0ccefa29deb05c21c"}, + {file = "PyYAML-6.0.tar.gz", hash = "sha256:68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2"}, +] diff --git a/.generator/pyproject.toml b/.generator/pyproject.toml new file mode 100644 index 00000000000..4e4e52d6f71 --- /dev/null +++ b/.generator/pyproject.toml @@ -0,0 +1,19 @@ +[tool.poetry] +name = "generator" +version = "0.1.0" +description = "" +authors = ["Jiri Kuncar "] +license = "Apache-2.0" + +[tool.poetry.dependencies] +python = "^3.9" +click = "8.0.1" +PyYAML = "6.0" +jsonref = "0.2" +jinja2 = "3.0.3" + +[tool.poetry.dev-dependencies] + +[build-system] +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api" diff --git a/.generator/src/generator/__init__.py b/.generator/src/generator/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/.generator/src/generator/__main__.py b/.generator/src/generator/__main__.py new file mode 100644 index 00000000000..35348b78b4c --- /dev/null +++ b/.generator/src/generator/__main__.py @@ -0,0 +1,3 @@ +from .cli import cli + +cli() \ No newline at end of file diff --git a/.generator/src/generator/cli.py b/.generator/src/generator/cli.py new file mode 100644 index 00000000000..21558067940 --- /dev/null +++ b/.generator/src/generator/cli.py @@ -0,0 +1,94 @@ +import json +import pathlib + +import click +from jinja2 import Environment, FileSystemLoader, Template + +from . import openapi +from . import formatter + + +@click.command() +@click.option( + "-i", + "--input", + type=click.Path( + exists=True, file_okay=True, dir_okay=False, path_type=pathlib.Path + ), +) +@click.option( + "-o", + "--output", + type=click.Path(path_type=pathlib.Path), +) +def cli(input, output): + """ + Generate a Ruby code snippet from OpenAPI specification. + """ + spec = openapi.load(input) + + version = input.parent.name + with (input.parent.parent.parent / "config" / f"{version}.json").open() as fp: + config = json.load(fp) + + env = Environment( + loader=FileSystemLoader(str(pathlib.Path(__file__).parent / "templates")) + ) + + env.filters["accept_headers"] = openapi.accept_headers + env.filters["attribute_name"] = formatter.attribute_name + env.filters["camel_case"] = formatter.camel_case + env.filters["collection_format"] = openapi.collection_format + env.filters["format_value"] = formatter.format_value + env.filters["format_server"] = openapi.format_server + env.filters["parameters"] = openapi.parameters + env.filters["return_type"] = openapi.return_type + env.filters["snake_case"] = formatter.snake_case + + env.globals["config"] = config + env.globals["enumerate"] = enumerate + env.globals["version"] = version + env.globals["openapi"] = spec + env.globals["get_name"] = openapi.get_name + env.globals["get_type_for_attribute"] = openapi.get_type_for_attribute + env.globals["get_type_for_parameter"] = openapi.get_type_for_parameter + + api_j2 = env.get_template("api.j2") + model_j2 = env.get_template("model.j2") + package_j2 = env.get_template("package.j2") + + extra_files = { + "api_client.rb": env.get_template("api_client.j2"), + "api_error.rb": env.get_template("api_error.j2"), + "configuration.rb": env.get_template("configuration.j2"), + } + + apis = openapi.apis(spec) + models = openapi.models(spec) + + package = output / config["gemNameInExamples"] / f"{version}.rb" + package.parent.mkdir(parents=True, exist_ok=True) + with package.open("w") as fp: + fp.write(package_j2.render(apis=apis, models=models)) + + gem_path = output / config["gemName"] + gem_path.mkdir(parents=True, exist_ok=True) + + for name, template in extra_files.items(): + filename = gem_path / name + with filename.open("w") as fp: + fp.write(template.render(apis=apis, models=models)) + + for name, model in models.items(): + filename = formatter.snake_case(name) + ".rb" + model_path = gem_path / "models" / filename + model_path.parent.mkdir(parents=True, exist_ok=True) + with model_path.open("w") as fp: + fp.write(model_j2.render(name=name, model=model)) + + for name, operations in apis.items(): + filename = formatter.snake_case(name) + "_api.rb" + api_path = gem_path / "api" / filename + api_path.parent.mkdir(parents=True, exist_ok=True) + with api_path.open("w") as fp: + fp.write(api_j2.render(name=name, operations=operations)) diff --git a/.generator/src/generator/formatter.py b/.generator/src/generator/formatter.py new file mode 100644 index 00000000000..2f339550f5e --- /dev/null +++ b/.generator/src/generator/formatter.py @@ -0,0 +1,289 @@ +"""Data formatter.""" +import re +import warnings +from functools import singledispatch + + +KEYWORDS = { + "__FILE__", + "and", + "def", + "end", + "in", + "or", + "self", + "unless", + "__LINE__", + "begin", + "defined?", + "ensure", + "module", + "redo", + "super", + "until", + "BEGIN", + "break", + "do", + "false", + "next", + "rescue", + "then", + "when", + "END", + "case", + "else", + "for", + "nil", + "retry", + "true", + "while", + "alias", + "class", + "elsif", + "if", + "not", + "return", + "undef", + "yield", +} + +PATTERN_DOUBLE_UNDERSCORE = re.compile(r"__+") +PATTERN_LEADING_ALPHA = re.compile(r"(.)([A-Z][a-z]+)") +PATTERN_FOLLOWING_ALPHA = re.compile(r"([a-z0-9])([A-Z])") +PATTERN_WHITESPACE = re.compile(r"\W") + + +def snake_case(value): + s1 = PATTERN_LEADING_ALPHA.sub(r"\1_\2", value) + s1 = PATTERN_FOLLOWING_ALPHA.sub(r"\1_\2", s1).lower() + s1 = PATTERN_WHITESPACE.sub("_", s1) + s1 = s1.rstrip("_") + return PATTERN_DOUBLE_UNDERSCORE.sub("_", s1) + + +def camel_case(value): + return "".join(x.title() for x in snake_case(value).split("_")) + + +def untitle_case(value): + return value[0].lower() + value[1:] + + +def schema_name(schema): + if not schema: + return None + + if hasattr(schema, "__reference__"): + return schema.__reference__["$ref"].split("/")[-1] + + +def given_variables(context): + """Return a list of variables using in given steps.""" + return {key for values in context.get("_given", {}).values() for key in values} + +def escape_reserved_keyword(word): + """ + Escape reserved language keywords like openapi generator does it + :param word: Word to escape + :return: The escaped word if it was a reserved keyword, the word unchanged otherwise + """ + if word in KEYWORDS: + return f"_{word}" + return word + + +def attribute_name(attribute): + return escape_reserved_keyword(snake_case(attribute)) + + +def format_value(value, quotes="'"): + if isinstance(value, str): + return f'{quotes}{value}{quotes}' + elif isinstance(value, bool): + return "true" if value else "false" + return value + + +def format_parameters(kwargs, spec, replace_values=None, has_body=False): + parameters = "" + optional_spec = {} + opts = {} + for p in spec.get("parameters", []): + required = p.get("required", False) + k = snake_case(p["name"]) + if required: + v = kwargs.pop(k) # otherwise there is a missing required parameters + value = format_data_with_schema( + v["value"], + p["schema"], + replace_values=replace_values, + ) + parameters += f"{value}, " + else: + optional_spec[k] = p + + if optional_spec: + for k, v in kwargs.items(): + k = snake_case(k) + value = format_data_with_schema( + v["value"], + optional_spec[k]["schema"], + replace_values=replace_values, + ) + opts[escape_reserved_keyword(k)] = value + + if opts: + parameters += "opts" + + return parameters, opts + + +def get_name(schema): + + name = None + if hasattr(schema, "__reference__"): + name = schema.__reference__["$ref"].split("/")[-1] + + return name + + +@singledispatch +def format_data_with_schema( + data, + schema, + name_prefix="", + replace_values=None, + default_name=None, +): + name = get_name(schema) + + if "enum" in schema and data not in schema["enum"]: + raise ValueError(f"{data} is not valid enum value {schema['enum']}") + + if replace_values and data in replace_values: + warnings.warn(f"implement '{replace_values[data]}' with value {data}") + parameters = replace_values[data] + if schema.get("type") == "integer": + parameters = f"{parameters}.to_i" + elif schema.get("type") == "number": + parameters = f"{parameters}.to_f" + elif "enum" in schema: + parameters = schema["x-enum-varnames"][schema["enum"].index(data)] + else: + if schema.get("nullable") and data is None: + return "nil" + else: + formatter = { + "number": str, + "integer": str, + "boolean": lambda x: "true" if x else "false", + "string": repr, + None: repr, + }[schema.get("type")] + + # TODO format date and datetime + parameters = formatter(data) + + if "enum" in schema and name: + return f"{name_prefix}{name}::{parameters.upper()}" + + if schema.get("type") == "string": + return f"{parameters}" + + # NOTE we don't need named parameters for basic types except enums handled above + # if name: + # return f"{name_prefix}{name}.new({{{parameters}}})" + + return parameters + + +@format_data_with_schema.register(list) +def format_data_with_schema_list( + data, + schema, + name_prefix="", + replace_values=None, + default_name=None, +): + name = get_name(schema) + + parameters = "" + for d in data: + value = format_data_with_schema( + d, + schema["items"], + name_prefix=name_prefix, + replace_values=replace_values, + default_name=name, + ) + parameters += f"{value},\n" + return f"[\n{parameters}]" + + +@format_data_with_schema.register(dict) +def format_data_with_schema_dict( + data, + schema, + name_prefix="", + replace_values=None, + default_name=None, +): + name = get_name(schema) + + parameters = "" + if "properties" in schema: + for k, v in data.items(): + value = format_data_with_schema( + v, + schema["properties"][k], + name_prefix=name_prefix, + replace_values=replace_values, + default_name=name + camel_case(k) if name else None, + ) + parameters += f"{escape_reserved_keyword(snake_case(k))}: {value},\n" + + if "additionalProperties" in schema: + for k, v in data.items(): + value = format_data_with_schema( + v, + schema["additionalProperties"], + name_prefix=name_prefix, + replace_values=replace_values, + ) + parameters += f"{k}: {value}, " + + if not name and "oneOf" not in schema: + if default_name: + name = default_name + else: + name = "dict" + warnings.warn(f"Unnamed schema {schema} for {data}") + + if "oneOf" in schema: + matched = 0 + for sub_schema in schema["oneOf"]: + try: + formatted = format_data_with_schema( + data, + sub_schema, + name_prefix=name_prefix, + replace_values=replace_values, + ) + if matched == 0: + # NOTE we do not support mixed schemas with oneOf + # parameters += formatted + parameters = formatted + name = None + matched += 1 + except (KeyError, ValueError) as e: + print(f"{e}") + + if matched == 0: + raise ValueError(f"[{matched}] {data} is not valid for schema {name}") + elif matched > 1: + warnings.warn(f"[{matched}] {data} is not valid for schema {name}") + + if name: + return f"{name_prefix}{name}.new({{\n{parameters}}})" + + return parameters diff --git a/.generator/src/generator/openapi.py b/.generator/src/generator/openapi.py new file mode 100644 index 00000000000..911a0b76c0e --- /dev/null +++ b/.generator/src/generator/openapi.py @@ -0,0 +1,329 @@ +import pathlib +import yaml +import warnings +from jsonref import JsonRef +from urllib.parse import urlparse +from yaml import CSafeLoader + +from . import formatter + + +def load(filename): + path = pathlib.Path(filename) + with path.open() as fp: + return JsonRef.replace_refs(yaml.load(fp, Loader=CSafeLoader)) + + +def get_name(schema): + name = None + if hasattr(schema, "__reference__"): + name = schema.__reference__["$ref"].split("/")[-1] + + return name + + +def type_to_ruby(schema, alternative_name=None): + """Return Ruby type name for the type.""" + name = get_name(schema) + if name: + if "enum" in schema: + return name + if ( + "additionalProperties" not in schema + and schema.get("type", "object") == "object" + ): + return name + + type_ = schema.get("type") + if type_ is None: + if "items" in schema: + type_ = "array" + elif "properties" in schema: + type_ = "object" + else: + type_ = "object" + warnings.warn( + f"Unknown type for schema: {schema} ({name or alternative_name})" + ) + + if type_ == "integer": + return "Integer" + elif type_ == "number": + return "Float" + elif type_ == "string": + format_ = schema.get("format") + if format_ in {"date", "date-time"}: + return "Time" + elif format_ == "binary": + return "File" + return "String" + elif type_ == "boolean": + return "Boolean" + elif type_ == "array": + return "Array<{}>".format(type_to_ruby(schema["items"])) + elif type_ == "object": + if "additionalProperties" in schema: + return "Hash".format( + type_to_ruby(schema["additionalProperties"]) + ) + return ( + alternative_name + if alternative_name + and ( + "properties" in schema + or "oneOf" in schema + or "anyOf" in schema + or "allOf" in schema + ) + else "Object" + ) + elif type_ == "null": + return "nil" + else: + raise ValueError(f"Unknown type {type_}") + + +def get_type_for_attribute(schema, attribute, current_name=None): + """Return Ruby type name for the attribute.""" + child_schema = schema.get("properties", {}).get(attribute) + alternative_name = ( + current_name + formatter.camel_case(attribute) if current_name else None + ) + return type_to_ruby(child_schema, alternative_name=alternative_name) + + +def get_type_for_parameter(parameter): + """Return Ruby type name for the parameter.""" + if "content" in parameter: + assert "in" not in parameter + for content in parameter["content"].values(): + return type_to_ruby(content["schema"]) + return type_to_ruby(parameter.get("schema")) + + +def child_models(schema, alternative_name=None, seen=None): + seen = seen or set() + current_name = get_name(schema) + name = current_name or alternative_name + + has_sub_models = False + if "allOf" in schema: + has_sub_models = True + for child in schema["allOf"]: + yield from child_models(child, seen=seen) + if "oneOf" in schema: + has_sub_models = True + for child in schema["oneOf"]: + yield from child_models(child, seen=seen) + if "anyOf" in schema: + has_sub_models = True + for child in schema["anyOf"]: + yield from child_models(child, seen=seen) + + if "items" in schema: + yield from child_models( + schema["items"], + alternative_name=alternative_name + "Item" + if alternative_name is not None + else None, + seen=seen, + ) + + if ( + schema.get("type") == "object" or "properties" in schema or has_sub_models + ) and "additionalProperties" not in schema: + if not has_sub_models and name is None: + # this is a basic map object so we don't need a type + return + + if name is None: + raise ValueError(f"Schema {schema} has no name") + + if name in seen: + return + + if "properties" in schema or has_sub_models: + seen.add(name) + yield name, schema + + for key, child in schema.get("properties", {}).items(): + yield from child_models( + child, alternative_name=name + formatter.camel_case(key), seen=seen + ) + + if "enum" in schema: + if name is None: + raise ValueError(f"Schema {schema} has no name") + + if name in seen: + return + + seen.add(name) + yield name, schema + + if "additionalProperties" in schema: + nested_name = get_name(schema["additionalProperties"]) + if nested_name: + yield from child_models( + schema["additionalProperties"], + alternative_name=name, + seen=seen, + ) + + +def models(spec): + name_to_schema = {} + + for path in spec["paths"]: + for method in spec["paths"][path]: + operation = spec["paths"][path][method] + + for content in operation.get("parameters", []): + if "schema" in content: + name_to_schema.update(dict(child_models(content["schema"]))) + + for content in operation.get("requestBody", {}).get("content", {}).values(): + if "schema" in content: + name_to_schema.update(dict(child_models(content["schema"]))) + + for response in operation.get("responses", {}).values(): + for content in response.get("content", {}).values(): + if "schema" in content: + name_to_schema.update(dict(child_models(content["schema"]))) + + return name_to_schema + + +def apis(spec): + operations = {} + + for path in spec["paths"]: + for method in spec["paths"][path]: + operation = spec["paths"][path][method] + tag = operation.get("tags", [None])[0] + operations.setdefault(tag, []).append((path, method, operation)) + + return operations + + +def operation(spec, operation_id): + for path in spec["paths"]: + for method in spec["paths"][path]: + operation = spec["paths"][path][method] + if operation["operationId"] == operation_id: + return operation + return None + + +def parameters(operation): + for content in operation.get("parameters", []): + if "schema" in content: + yield content["name"], content + + if "requestBody" in operation: + name = operation.get("x-codegen-request-body-name", "body") + yield name, operation["requestBody"] + + +def return_type(operation): + for response in operation.get("responses", {}).values(): + for content in response.get("content", {}).values(): + if "schema" in content: + return type_to_ruby(content["schema"]) + return + + +def accept_headers(operation): + any_type = "*/*" + seen = [] + for response in operation.get("responses", {}).values(): + if "content" in response: + for media_type in response["content"].keys(): + if media_type not in seen: + seen.append(media_type) + else: + return [any_type] + return seen + + +def collection_format(schema): + in_to_style = { + "query": "form", + "path": "simple", + "header": "simple", + "cookie": "form", + } + matrix = { + ("form", False): "csv", + ("form", True): "multi", + # TODO add more cases from https://swagger.io/specification/#parameter-style + } + if ( + "style" in schema + or "explode" in schema + and (schema.get("type") == "array" or "items" in schema) + ): + in_ = schema.get("in", "query") + style = schema.get("style", in_to_style[in_]) + explode = schema.get("explode", True if style == "form" else False) + return matrix.get((style, explode), "multi") + + +def format_server(server, server_variables=None, path=""): + url = server["url"] + path + # replace potential path variables + for variable, value in (server_variables or {}).items(): + url = url.replace("{" + variable + "}", value) + # replace server variables if they were not replace before + for variable in server["variables"]: + if server_variables and variable in server_variables: + continue + url = url.replace( + "{" + variable + "}", server["variables"][variable]["default"] + ) + return urlparse(url) + + +def server_url_and_method(spec, operation_id, server_index=0, server_variables=None): + for path in spec["paths"]: + for method in spec["paths"][path]: + operation = spec["paths"][path][method] + if operation["operationId"] == operation_id: + if "servers" in operation: + server = operation["servers"][server_index] + else: + server = spec["servers"][server_index] + return ( + format_server( + server, server_variables=server_variables, path=path + ).geturl(), + method, + ) + + raise ValueError(f"Operation {operation_id} not found") + + +def response_code_and_accept_type(operation, status_code=None): + for response in operation["responses"]: + if status_code is None: + return int(response), next( + iter(operation["responses"][response].get("content", {None: None})) + ) + if response == str(status_code): + return status_code, next( + iter(operation["responses"][response].get("content", {None: None})) + ) + return status_code, None + + +def request_content_type(operation, status_code=None): + return next(iter(operation.get("requestBody", {}).get("content", {None: None}))) + + +def response(operation, status_code=None): + for response in operation["responses"]: + if status_code is None or response == str(status_code): + return list(operation["responses"][response]["content"].values())[0][ + "schema" + ] + return None diff --git a/.generator/src/generator/templates/api.j2 b/.generator/src/generator/templates/api.j2 new file mode 100644 index 00000000000..7c22511ad9f --- /dev/null +++ b/.generator/src/generator/templates/api.j2 @@ -0,0 +1,218 @@ +=begin +{% include "api_info.j2" %} +=end + +require 'cgi' + +module {{ config.moduleName }} +{%- set classname = name.replace(" ", "") + "API" %} + class {{ classname }} + attr_accessor :api_client + + def initialize(api_client = APIClient.default) + @api_client = api_client + end + +{%- for path, method, operation in operations|sort(attribute="2.operationId") %} + {%- set httpMethod = method.upper() %} + {%- set returnType = operation|return_type %} + + # {{ operation.summary.rstrip()|replace('\n', '\n# ')|indent(4) }} + {%- if operation.description %} + # {{ operation.description.rstrip()|replace('\n', '\n# ')|indent(4) }} + {%- endif %} + {%- for name, parameter in operation|parameters if parameter.required %} + # @param {{ name|attribute_name }} [{{ get_type_for_parameter(parameter) }}] {{ parameter.get("description", "").replace('\n', ' ') }} + {%- endfor %} + # @param [Hash] opts the optional parameters + {%- for name, parameter in operation|parameters if not parameter.required %} + # @option opts [{{ get_type_for_parameter(parameter) }}] :{{ name|attribute_name }} {{ parameter.get("description", "").replace('\n', ' ') }}{% if "default" in parameter%} (default to {{ parameter.default|format_value }}) {% endif %} + {%- endfor %} + # @return [{% if returnType %}{{ returnType }}{% else %}nil{% endif %}] + def {{ operation.operationId|snake_case }}({% for name, parameter in operation|parameters if parameter.required %}{{ name|attribute_name }}, {% endfor %}opts = {}) + {% if returnType %}data, _status_code, _headers = {% endif %}{{ operation.operationId|snake_case }}_with_http_info({% for name, parameter in operation|parameters if parameter.required %}{{ name|attribute_name }}, {% endfor %}opts) + {% if returnType %}data{% else %}nil{% endif %} + end + + # {{ operation.summary.rstrip()|replace('\n', '\n# ')|indent(4) }} + {%- if operation.description %} + # {{ operation.description.rstrip()|replace('\n', '\n# ')|indent(4) }} + {%- endif %} + {%- for name, parameter in operation|parameters if parameter.required %} + # @param {{ name|attribute_name }} [{{ get_type_for_parameter(parameter) }}] {{ parameter.get("description", "").replace('\n', ' ') }} + {%- endfor %} + # @param [Hash] opts the optional parameters + {%- for name, parameter in operation|parameters if not parameter.required %} + # @option opts [{{ get_type_for_parameter(parameter) }}] :{{ name|attribute_name }} {{ parameter.get("description", "").replace('\n', ' ') }}{% if "default" in parameter%} (default to {{ parameter.default|json }}) {% endif %} + {%- endfor %} + # @return [Array<({% if returnType %}{{ returnType }}{% else %}nil{% endif %}, Integer, Hash)>] {% if returnType %}{{ returnType }} data{% else %}nil{% endif %}, response status code and response headers + def {{ operation.operationId|snake_case }}_with_http_info({% for name, parameter in operation|parameters if parameter.required %}{{ name|attribute_name }}, {% endfor %}opts = {}) + + if @api_client.config.unstable_operations.has_key?(:{{ operation.operationId|snake_case }}) + unstable_enabled = @api_client.config.unstable_operations[:{{ operation.operationId|snake_case }}] + if unstable_enabled + @api_client.config.logger.warn format("Using unstable operation '%s'", "{{ operation.operationId|snake_case }}") + else + raise APIError.new(message: format("Unstable operation '%s' is disabled", "{{ operation.operationId|snake_case }}")) + end + end + + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: {{classname}}.{{ operation.operationId|snake_case }} ...' + end + +{%- for name, parameter in operation|parameters %} + {%- if parameter.required %} + {%- if not parameter.isNullable %} + # verify the required parameter '{{ name|attribute_name }}' is set + if @api_client.config.client_side_validation && {{ name|attribute_name }}.nil? + fail ArgumentError, "Missing the required parameter '{{ name|attribute_name }}' when calling {{classname}}.{{ operation.operationId|snake_case }}" + end + {%- if "enum" in parameter and not parameter|collection_format %} + # verify enum value + allowable_values = [{% for value in parameter.enum %}{{ value|format_value }}{%- if not loop.last %}, {% endif %}{% endfor %}] + if @api_client.config.client_side_validation && !allowable_values.include?({{ name|attribute_name }}) + fail ArgumentError, "invalid value for \"{{ name|attribute_name }}\", must be one of #{allowable_values}" + end + {%- endif %} + {%- endif %} + {%- else %} + {%- if "enum" in parameter %} + allowable_values = [{% for value in parameter.enum %}{{ value|format_value }}{%- if not loop.last %}, {% endif %}{% endfor %}] + {%- if parameter|collection_format %} + if @api_client.config.client_side_validation && opts[:'{{ name|attribute_name }}'] && !opts[:'{{ name|attribute_name }}'].all? { |item| allowable_values.include?(item) } + fail ArgumentError, "invalid value for \"{{ name|attribute_name }}\", must include one of #{allowable_values}" + end + {%- else %} + if @api_client.config.client_side_validation && opts[:'{{ name|attribute_name }}'] && !allowable_values.include?(opts[:'{{ name|attribute_name }}']) + fail ArgumentError, "invalid value for \"{{ name|attribute_name }}\", must be one of #{allowable_values}" + end + {%- endif %} + {%- endif %} + + {%- endif %}{# + {{#hasValidation}} + {{#maxLength}} + if @api_client.config.client_side_validation && {{^required}}!opts[:'{{ name|attribute_name }}'].nil? && {{/required}}{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:'{{ name|attribute_name }}']{{/required}}.to_s.length > {{{maxLength}}} + fail ArgumentError, 'invalid value for "{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:"{{ name|attribute_name }}"]{{/required}}" when calling {{classname}}.{{ operation.operationId }}, the character length must be smaller than or equal to {{{maxLength}}}.' + end + + {{/maxLength}} + {{#minLength}} + if @api_client.config.client_side_validation && {{^required}}!opts[:'{{ name|attribute_name }}'].nil? && {{/required}}{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:'{{ name|attribute_name }}']{{/required}}.to_s.length < {{{minLength}}} + fail ArgumentError, 'invalid value for "{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:"{{ name|attribute_name }}"]{{/required}}" when calling {{classname}}.{{ operation.operationId }}, the character length must be great than or equal to {{{minLength}}}.' + end + + {{/minLength}} + {{#maximum}} + if @api_client.config.client_side_validation && {{^required}}!opts[:'{{ name|attribute_name }}'].nil? && {{/required}}{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:'{{ name|attribute_name }}']{{/required}} >{{#exclusiveMaximum}}={{/exclusiveMaximum}} {{{maximum}}} + fail ArgumentError, 'invalid value for "{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:"{{ name|attribute_name }}"]{{/required}}" when calling {{classname}}.{{ operation.operationId }}, must be smaller than {{^exclusiveMaximum}}or equal to {{/exclusiveMaximum}}{{{maximum}}}.' + end + + {{/maximum}} + {{#minimum}} + if @api_client.config.client_side_validation && {{^required}}!opts[:'{{ name|attribute_name }}'].nil? && {{/required}}{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:'{{ name|attribute_name }}']{{/required}} <{{#exclusiveMinimum}}={{/exclusiveMinimum}} {{{minimum}}} + fail ArgumentError, 'invalid value for "{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:"{{ name|attribute_name }}"]{{/required}}" when calling {{classname}}.{{ operation.operationId }}, must be greater than {{^exclusiveMinimum}}or equal to {{/exclusiveMinimum}}{{{minimum}}}.' + end + + {{/minimum}} + {{#pattern}} + pattern = Regexp.new({{{pattern}}}) + if @api_client.config.client_side_validation && {{^required}}!opts[:'{{ name|attribute_name }}'].nil? && {{/required}}{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:'{{ name|attribute_name }}']{{/required}} !~ pattern + fail ArgumentError, "invalid value for '{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:\"{{ name|attribute_name }}\"]{{/required}}' when calling {{classname}}.{{ operation.operationId }}, must conform to the pattern #{pattern}." + end + + {{/pattern}} + {{#maxItems}} + if @api_client.config.client_side_validation && {{^required}}!opts[:'{{ name|attribute_name }}'].nil? && {{/required}}{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:'{{ name|attribute_name }}']{{/required}}.length > {{{maxItems}}} + fail ArgumentError, 'invalid value for "{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:"{{ name|attribute_name }}"]{{/required}}" when calling {{classname}}.{{ operation.operationId }}, number of items must be less than or equal to {{{maxItems}}}.' + end + + {{/maxItems}} + {{#minItems}} + if @api_client.config.client_side_validation && {{^required}}!opts[:'{{ name|attribute_name }}'].nil? && {{/required}}{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:'{{ name|attribute_name }}']{{/required}}.length < {{{minItems}}} + fail ArgumentError, 'invalid value for "{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:"{{ name|attribute_name }}"]{{/required}}" when calling {{classname}}.{{ operation.operationId }}, number of items must be greater than or equal to {{{minItems}}}.' + end + + {{/minItems}} + {{/hasValidation}} +#}{%- endfor %} + # resource path + local_var_path = '{{ path }}'{% for parameter in operation.parameters if parameter.in == "path" %}.sub('{{ '{' }}{{ parameter.name }}{{ '}'}}', CGI.escape({{ parameter.name }}.to_s).gsub('%2F', '/')){% endfor %} + + # query parameters + query_params = opts[:query_params] || {} + {%- for name, parameter in operation|parameters if parameter.in == "query" and parameter.required %} + query_params[:'{{ name }}'] = {% if parameter|collection_format %}@api_client.build_collection_param({{ name|attribute_name }}, :{{ parameter|collection_format }}){% else %}{{ name|attribute_name }}{% endif %} + {%- endfor %} + {%- for name, parameter in operation|parameters if parameter.in == "query" and not parameter.required %} + query_params[:'{{ name }}'] = {% if parameter|collection_format %}@api_client.build_collection_param(opts[:'{{ name|attribute_name }}'], :{{ parameter|collection_format }}){% else %}opts[:'{{ name|attribute_name }}']{% endif %} if !opts[:'{{ name|attribute_name }}'].nil? + {%- endfor %} + + # header parameters + header_params = opts[:header_params] || {} + {%- if operation.responses %} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept([{% for mediaType in operation|accept_headers %}'{{ mediaType }}'{%- if not loop.last %}, {% endif %}{% endfor %}]) + {%- endif %} + + {%- if operation.requestBody %} + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type([{% for mediaType in operation.requestBody.content.keys() %}'{{ mediaType }}'{%- if not loop.last %}, {% endif %}{% endfor %}]) + {%- endif %} + + {%- for name, parameter in operation|parameters if parameter.in == "header" and parameter.required %} + header_params['{{ name }}'] = {% if parameter|collection_format %}@api_client.build_collection_param({{ name|attribute_name }}, :{{ parameter|collection_format }}){% else %}{ name|attribute_name }}{% endif %} + {%- endfor %} + {%- for name, parameter in operation|parameters if parameter.in == "header" and parameter.required %} + header_params['{{ name }}'] = {% if parameter|collection_format %}@api_client.build_collection_param(opts[:'{{ name|attribute_name }}'], :{{ parameter|collection_format }}){% else %}opts[:'{{ name|attribute_name }}']{% endif %} if !opts[:'{{ name|attribute_name }}'].nil? + {%- endfor %} + + # form parameters + form_params = opts[:form_params] || {} + {%- for name, parameter in operation|parameters if parameter.in == "form" and parameter.required %} + form_params['{{baseName}}'] = {% if parameter|collection_format %}@api_client.build_collection_param({{ name|attribute_name }}, :{{ parameter|collection_format }}){% else %}{ name|attribute_name }}{% endif %} + {%- endfor %} + {%- for name, parameter in operation|parameters if parameter.in == "form" and parameter.required %} + form_params['{{baseName}}'] = {% if parameter|collection_format %}@api_client.build_collection_param(opts[:'{{ name|attribute_name }}'], :{{ parameter|collection_format }}){% else %}opts[:'{{ name|attribute_name }}']{% endif %} if !opts[:'{{ name|attribute_name }}'].nil? + {%- endfor %} + + # http body (model) + post_body = opts[:debug_body]{% if operation.requestBody %} || @api_client.object_to_http_body( + {%- if operation.requestBody.required -%} + {{ operation.get("x-codegen-request-body-name", "body") }} + {%- else -%} + opts[:'{{ operation.get("x-codegen-request-body-name", "body") }}'] + {%- endif -%} + ){% endif %} + + # return_type + return_type = opts[:debug_return_type]{% if returnType %} || '{{ returnType }}'{% endif %} + + # auth_names + {%- set authMethods = operation.security if "security" in operation else openapi.security %} + auth_names = opts[:debug_auth_names] || [{% for auth in (authMethods or []) %}:{{ ", :".join(auth.keys()) }}{%- if not loop.last %}, {% endif %}{% endfor %}] + + new_options = opts.merge( + :operation => :{{ operation.operationId|snake_case }}, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:{{ httpMethod }}, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: {{ classname }}#{{ operation.operationId|snake_case }}\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end +{%- if not loop.last %} + +{%- endif %} +{%- endfor %} + end +end +{# keep new line at the end of file #} \ No newline at end of file diff --git a/.generator/templates/api_client.mustache b/.generator/src/generator/templates/api_client.j2 similarity index 56% rename from .generator/templates/api_client.mustache rename to .generator/src/generator/templates/api_client.j2 index a9a8d94a547..1d26dda6461 100644 --- a/.generator/templates/api_client.mustache +++ b/.generator/src/generator/templates/api_client.j2 @@ -1,5 +1,5 @@ =begin -{{> api_info}} +{% include "api_info.j2" %} =end require 'date' @@ -7,14 +7,9 @@ require 'json' require 'logger' require 'tempfile' require 'time' -{{^isFaraday}} require 'typhoeus' -{{/isFaraday}} -{{#isFaraday}} -require 'faraday' -{{/isFaraday}} -module {{moduleName}} +module {{ config.moduleName }} class APIClient # The Configuration object holding settings to be used in the API client. attr_accessor :config @@ -28,7 +23,7 @@ module {{moduleName}} # @option config [Configuration] Configuration for initializing the object, default to Configuration.default def initialize(config = Configuration.default) @config = config - @user_agent = "{{{httpUserAgent}}}{{^httpUserAgent}}OpenAPI-Generator/#{VERSION}/ruby{{/httpUserAgent}}" + @user_agent = "{{ config.httpUserAgent }}" @default_headers = { 'Content-Type' => 'application/json', 'User-Agent' => @user_agent @@ -40,12 +35,171 @@ module {{moduleName}} @@default ||= APIClient.new end -{{^isFaraday}} -{{> api_client_typhoeus_partial}} -{{/isFaraday}} -{{#isFaraday}} -{{> api_client_faraday_partial}} -{{/isFaraday}} + # Call an API with given options. + # + # @return [Array<(Object, Integer, Hash)>] an array of 3 elements: + # the data deserialized from response body (could be nil), response status code and response headers. + def call_api(http_method, path, opts = {}) + request = build_request(http_method, path, opts) + response = request.run + + if @config.debugging + @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n" + end + + unless response.success? + if response.timed_out? + fail APIError.new('Connection timed out') + elsif response.code == 0 + # Errors from libcurl will be made visible here + fail APIError.new(:code => 0, + :message => response.return_message) + else + body = response.body + if response.headers['Content-Encoding'].eql?('gzip') && !(body.nil? || body.empty?) then + gzip = Zlib::Inflate.new(Zlib::MAX_WBITS + 16) + body = gzip.inflate(body) + gzip.close + end + fail APIError.new(:code => response.code, + :response_headers => response.headers, + :response_body => body), + response.status_message + end + end + + if opts[:return_type] + data = deserialize(response, opts[:return_type]) + else + data = nil + end + return data, response.code, response.headers + end + + # Builds the HTTP request + # + # @param [String] http_method HTTP method/verb (e.g. POST) + # @param [String] path URL path (e.g. /account/new) + # @option opts [Hash] :header_params Header parameters + # @option opts [Hash] :query_params Query parameters + # @option opts [Hash] :form_params Query parameters + # @option opts [Object] :body HTTP body (JSON/XML) + # @return [Typhoeus::Request] A Typhoeus Request + def build_request(http_method, path, opts = {}) + url = build_request_url(path, opts) + http_method = http_method.to_sym.downcase + + header_params = @default_headers.merge(opts[:header_params] || {}) + query_params = opts[:query_params] || {} + form_params = opts[:form_params] || {} + + update_params_for_auth! header_params, query_params, opts[:auth_names] + + # set ssl_verifyhosts option based on @config.verify_ssl_host (true/false) + _verify_ssl_host = @config.verify_ssl_host ? 2 : 0 + + req_opts = { + :method => http_method, + :headers => header_params, + :params => query_params, + :params_encoding => @config.params_encoding, + :timeout => @config.timeout, + :ssl_verifypeer => @config.verify_ssl, + :ssl_verifyhost => _verify_ssl_host, + :sslcert => @config.cert_file, + :sslkey => @config.key_file, + :verbose => @config.debugging + } + + # set custom cert, if provided + req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert + + if [:post, :patch, :put, :delete].include?(http_method) + req_body = build_request_body(header_params, form_params, opts[:body]) + req_opts.update :body => req_body + if @config.debugging + @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n" + end + end + + request = Typhoeus::Request.new(url, req_opts) + download_file(request) if opts[:return_type] == 'File' + request + end + + # Builds the HTTP request body + # + # @param [Hash] header_params Header parameters + # @param [Hash] form_params Query parameters + # @param [Object] body HTTP body (JSON/XML) + # @return [String] HTTP body data in the form of string + def build_request_body(header_params, form_params, body) + # http form + if header_params['Content-Type'] == 'application/x-www-form-urlencoded' || + header_params['Content-Type'] == 'multipart/form-data' + data = {} + form_params.each do |key, value| + case value + when ::File, ::Array, nil + # let typhoeus handle File, Array and nil parameters + data[key] = value + else + data[key] = value.to_s + end + end + elsif body + data = body.is_a?(String) ? body : body.to_json + else + data = nil + end + if header_params['Content-Encoding'] == 'gzip' + gzip = Zlib::Deflate.new(nil, Zlib::MAX_WBITS + 16) + data = gzip.deflate(data, Zlib::FINISH) + gzip.close + elsif header_params['Content-Encoding'] == 'deflate' + data = Zlib::deflate(data) + end + data + end + + # Save response body into a file in (the defined) temporary folder, using the filename + # from the "Content-Disposition" header if provided, otherwise a random filename. + # The response body is written to the file in chunks in order to handle files which + # size is larger than maximum Ruby String or even larger than the maximum memory a Ruby + # process can use. + # + # @see Configuration#temp_folder_path + def download_file(request) + tempfile = nil + encoding = nil + request.on_headers do |response| + content_disposition = response.headers['Content-Disposition'] + if content_disposition && content_disposition =~ /filename=/i + filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1] + prefix = sanitize_filename(filename) + else + prefix = 'download-' + end + prefix = prefix + '-' unless prefix.end_with?('-') + encoding = response.body.encoding + tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding) + @tempfile = tempfile + end + request.on_body do |chunk| + chunk.force_encoding(encoding) + tempfile.write(chunk) + end + request.on_complete do |response| + if tempfile + tempfile.close + @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\ + "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\ + "will be deleted automatically with GC. It's also recommended to delete the temp file "\ + "explicitly with `tempfile.delete`" + end + end + end + # Check if the given MIME is a JSON MIME. # JSON MIME examples: # application/json @@ -67,30 +221,7 @@ module {{moduleName}} # handle file downloading - return the File instance processed in request callbacks # note that response body is empty when the file is written in chunks in request on_body callback - {{^isFaraday}} return @tempfile if return_type == 'File' - {{/isFaraday}} - {{#isFaraday}} - if return_type == 'File' - content_disposition = response.headers['Content-Disposition'] - if content_disposition && content_disposition =~ /filename=/i - filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1] - prefix = sanitize_filename(filename) - else - prefix = 'download-' - end - prefix = prefix + '-' unless prefix.end_with?('-') - encoding = body.encoding - @tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding) - @tempfile.write(@stream.join.force_encoding(encoding)) - @tempfile.close - @config.logger.info "Temp file written to #{@tempfile.path}, please copy the file to a proper folder "\ - "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\ - "will be deleted automatically with GC. It's also recommended to delete the temp file "\ - "explicitly with `tempfile.delete`" - return @tempfile - end - {{/isFaraday}} return nil if body.nil? || body.empty? @@ -157,7 +288,7 @@ module {{moduleName}} end else # models (e.g. Pet) or oneOf - klass = {{moduleName}}.const_get(return_type) + klass = {{ config.moduleName }}.const_get(return_type) klass.respond_to?(:openapi_one_of) ? klass.build(data) : klass.build_from_hash(data) end end diff --git a/.generator/templates/api_error.mustache b/.generator/src/generator/templates/api_error.j2 similarity index 94% rename from .generator/templates/api_error.mustache rename to .generator/src/generator/templates/api_error.j2 index 5974236076e..7e795e86d04 100644 --- a/.generator/templates/api_error.mustache +++ b/.generator/src/generator/templates/api_error.j2 @@ -1,8 +1,8 @@ =begin -{{> api_info}} +{% include "api_info.j2" %} =end -module {{moduleName}} +module {{ config.moduleName }} class APIError < StandardError attr_reader :code, :response_headers, :response_body diff --git a/.generator/src/generator/templates/api_info.j2 b/.generator/src/generator/templates/api_info.j2 new file mode 100644 index 00000000000..fc250389d02 --- /dev/null +++ b/.generator/src/generator/templates/api_info.j2 @@ -0,0 +1,12 @@ +#{{ openapi.info.title }} + +#{{ openapi.info.description }} + +The version of the OpenAPI document: {{ openapi.info.version }} +Contact: support@datadoghq.com +Generated by: https://openapi-generator.tech{# TODO change this to datadoghq.com #} + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. +{# keep new line #} \ No newline at end of file diff --git a/.generator/templates/configuration.mustache b/.generator/src/generator/templates/configuration.j2 similarity index 65% rename from .generator/templates/configuration.mustache rename to .generator/src/generator/templates/configuration.j2 index e94dd85c2d4..e6b396eb3be 100644 --- a/.generator/templates/configuration.mustache +++ b/.generator/src/generator/templates/configuration.j2 @@ -1,8 +1,8 @@ =begin -{{> api_info}} +{% include "api_info.j2" %} =end -module {{moduleName}} +module {{ config.moduleName }} class Configuration # Defines url scheme attr_accessor :scheme @@ -86,12 +86,41 @@ module {{moduleName}} # Keep track of the unstable operations, and if they have been enabled attr_accessor :unstable_operations -{{^isFaraday}} -{{> configuration_tls_typhoeus_partial}} -{{/isFaraday}} -{{#isFaraday}} -{{> configuration_tls_faraday_partial}} -{{/isFaraday}} + ### TLS/SSL setting + # Set this to false to skip verifying SSL certificate when calling API from https server. + # Default to true. + # + # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks. + # + # @return [true, false] + attr_accessor :verify_ssl + + ### TLS/SSL setting + # Set this to false to skip verifying SSL host name + # Default to true. + # + # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks. + # + # @return [true, false] + attr_accessor :verify_ssl_host + + ### TLS/SSL setting + # Set this to customize the certificate file to verify the peer. + # + # @return [String] the path to the certificate file + # + # @see The `cainfo` option of Typhoeus, `--cert` option of libcurl. Related source code: + # https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus/easy_factory.rb#L145 + attr_accessor :ssl_ca_cert + + ### TLS/SSL setting + # Client certificate file (for client certificate) + attr_accessor :cert_file + + ### TLS/SSL setting + # Client private key file (for client certificate) + attr_accessor :key_file + # Set this to customize parameters encoding of array parameter with multi collectionFormat. # Default to nil. # @@ -107,9 +136,10 @@ module {{moduleName}} attr_accessor :compress def initialize - @scheme = '{{scheme}}' - @host = '{{host}}{{#port}}:{{{.}}}{{/port}}' - @base_path = '{{contextPath}}' + {%- set default_server = openapi.servers[0]|format_server %} + @scheme = '{{ default_server.scheme }}' + @host = '{{ default_server.netloc }}' + @base_path = '{{ default_server.path }}' @server_index = 0 @server_operation_index = {} @server_variables = {} @@ -118,46 +148,29 @@ module {{moduleName}} @api_key_prefix = {} @timeout = 0 @client_side_validation = true - {{#isFaraday}} - @ssl_verify = true - @ssl_verify_mode = nil - @ssl_ca_file = nil - @ssl_client_cert = nil - @ssl_client_key = nil - {{/isFaraday}} - {{^isFaraday}} @verify_ssl = true @verify_ssl_host = true @params_encoding = nil @cert_file = nil @key_file = nil - {{/isFaraday}} @debugging = false @inject_format = false @force_ending_format = false @compress = true @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT) @unstable_operations = { - {{#apiInfo}} - {{#apis}} - {{#operations}} - {{#operation}} - {{#vendorExtensions.x-unstable}} - {{operationId}}: false, - {{/vendorExtensions.x-unstable}} - {{/operation}} - {{/operations}} - {{/apis}} - {{/apiInfo}} + {%- for path in openapi.paths.values() %} + {%- for operation in path.values() %} + {%- if "x-unstable" in operation %} + {{ operation.operationId|snake_case }}: false, + {%- endif %} + {%- endfor %} + {%- endfor %} } @server_variables[:site] = ENV['DD_SITE'] if ENV.key? 'DD_SITE' - {{#authMethods}} - {{#isApiKey}} - {{#isKeyInHeader}} - @api_key['{{name}}'] = ENV['{{vendorExtensions.x-env-name}}'] if ENV.key? '{{vendorExtensions.x-env-name}}' - {{/isKeyInHeader}} - {{/isApiKey}} - {{/authMethods}} + {%- for name, schema in openapi.components.securitySchemes.items() if "x-env-name" in schema and schema.in == "header" and schema.type == "apiKey" %} + @api_key['{{ name }}'] = ENV['{{ schema["x-env-name"] }}'] if ENV.key? '{{ schema["x-env-name"] }}' + {%- endfor %} yield(self) if block_given? end @@ -215,18 +228,16 @@ module {{moduleName}} # Returns Auth Settings hash for api client. def auth_settings { -{{#authMethods}} -{{#isApiKey}} - {{name}}: +{%- for name, schema in openapi.components.securitySchemes.items() %} +{%- if schema.type == "apiKey" %} + {{ name }}: { type: 'api_key', - in: {{#isKeyInHeader}}'header'{{/isKeyInHeader}}{{#isKeyInQuery}}'query'{{/isKeyInQuery}}, - key: '{{keyParamName}}', - value: api_key_with_prefix('{{name}}'{{#vendorExtensions.x-auth-id-alias}}, '{{.}}'{{/vendorExtensions.x-auth-id-alias}}) + in: '{{ schema.in }}', + key: '{{ schema.name }}', + value: api_key_with_prefix('{{ name }}'{% if "x-auth-id-alias" in schema %}, '{{ schema["x-auth-id-alias"] }}'{% endif %}) }, -{{/isApiKey}} -{{#isBasic}} -{{#isBasicBasic}} +{%- elif schema.type == "http" and schema.scheme == "basic" %} {{name}}: { type: 'basic', @@ -234,21 +245,18 @@ module {{moduleName}} key: 'Authorization', value: basic_auth_token }, -{{/isBasicBasic}} -{{#isBasicBearer}} +{%- elif schema.type == "http" and schema.scheme == "bearer" %} {{name}}: { type: 'bearer', in: 'header', - {{#bearerFormat}} - format: '{{{.}}}', - {{/bearerFormat}} + {% if schema.bearerFormat %} + format: '{{ schema.bearerFormat }}', + {% endif %} key: 'Authorization', value: "Bearer #{access_token}" }, -{{/isBasicBearer}} -{{/isBasic}} -{{#isOAuth}} +{%- elif schema.type == "oauth2" %} {{name}}: { type: 'oauth2', @@ -256,87 +264,60 @@ module {{moduleName}} key: 'Authorization', value: "Bearer #{access_token}" }, -{{/isOAuth}} -{{/authMethods}} +{%- endif %} +{%- endfor %} } end # Returns an array of Server setting +{%- macro server_configuration(server) -%} +{ + url: "{{ server.url }}", + description: "{{ server.description|default("No description provided") }}", + variables: { + {%- for name, variable in server.get("variables", {}).items() %} + {{ name }}: { + description: "{{ variable.description|default("No description provided") }}", + default_value: "{{ variable.default }}", + {%- for value in variable.enum %} + {%- if loop.first %} + enum_values: [ + {%- endif %} + "{{ value }}"{% if not loop.last %},{% endif %} + {%- if loop.last %} + ] + {%- endif %} + {%- endfor %} + }{%- if not loop.last %},{%- endif %} + {%- if loop.last %} + } + {%- endif %} + {%- endfor%} +} +{%- endmacro %} def server_settings [ - {{#servers}} - { - url: "{{{url}}}", - description: "{{{description}}}{{^description}}No description provided{{/description}}", - {{#variables}} - {{#-first}} - variables: { - {{/-first}} - {{{name}}}: { - description: "{{{description}}}{{^description}}No description provided{{/description}}", - default_value: "{{{defaultValue}}}", - {{#enumValues}} - {{#-first}} - enum_values: [ - {{/-first}} - "{{{.}}}"{{^-last}},{{/-last}} - {{#-last}} - ] - {{/-last}} - {{/enumValues}} - }{{^-last}},{{/-last}} - {{#-last}} - } - {{/-last}} - {{/variables}} - }{{^-last}},{{/-last}} - {{/servers}} + {%- for server in openapi.servers %} + {{ server_configuration(server)|indent(8) }}{% if not loop.last %},{% endif %} + {%- endfor %} ] end def operation_server_settings { - {{#apiInfo}} - {{#apis}} - {{#operations}} - {{#operation}} - {{#servers}} - {{#-first}} - {{{nickname}}}: [ - {{/-first}} - { - url: "{{{url}}}", - description: "{{{description}}}{{^description}}No description provided{{/description}}", - {{#variables}} - {{#-first}} - variables: { - {{/-first}} - {{{name}}}: { - description: "{{{description}}}{{^description}}No description provided{{/description}}", - default_value: "{{{defaultValue}}}", - {{#enumValues}} - {{#-first}} - enum_values: [ - {{/-first}} - "{{{.}}}"{{^-last}},{{/-last}} - {{#-last}} - ] - {{/-last}} - {{/enumValues}} - }{{^-last}},{{/-last}} - {{#-last}} - } - {{/-last}} - {{/variables}} - }{{^-last}},{{/-last}} - {{#-last}} + {%- for path in openapi.paths.values() %} + {%- for operation in path.values() %} + {%- for server in operation.servers %} + {%- if loop.first %} + {{ operation.operationId|snake_case }}: [ + {%- endif %} + {{ server_configuration(server)|indent(10) }}{% if not loop.last %},{% endif %} + {%- if loop.last %} ], - {{/-last}} - {{/servers}} - {{/operation}} - {{/operations}} - {{/apis}} - {{/apiInfo}} + {%- endif %} + {%- endfor %} + {%- endfor %} + {%- endfor %} } end diff --git a/.generator/src/generator/templates/model.j2 b/.generator/src/generator/templates/model.j2 new file mode 100644 index 00000000000..3080e5c99bb --- /dev/null +++ b/.generator/src/generator/templates/model.j2 @@ -0,0 +1,17 @@ +=begin +{% include "api_info.j2" %} +=end + +require 'date' +require 'time' + +module {{ config.moduleName }} + # {{ model.description.rstrip()|replace('\n', '\n# ')|indent(2) }} +{% if "enum" in model -%} +{% include "model_enum.j2" -%} +{%- elif "oneOf" in model -%} +{%- include "model_oneof.j2" %} +{% else -%} +{% include "model_generic.j2" %} +{% endif %} +end diff --git a/.generator/templates/partial_model_enum_class.mustache b/.generator/src/generator/templates/model_enum.j2 similarity index 55% rename from .generator/templates/partial_model_enum_class.mustache rename to .generator/src/generator/templates/model_enum.j2 index cd98e6027af..ea6459d92c4 100644 --- a/.generator/templates/partial_model_enum_class.mustache +++ b/.generator/src/generator/templates/model_enum.j2 @@ -1,7 +1,8 @@ - class {{classname}}{{#allowableValues}}{{#enumVars}} - {{{name}}} = {{{value}}}.freeze{{/enumVars}} + class {{ name }} +{%- for index, value in enumerate(model.enum) %} + {{ model["x-enum-varnames"][index] or value.upper() }} = {{ value|format_value(quotes='"') }}.freeze +{%- endfor %} -{{/allowableValues}} # Builds the enum from string # @param value [String] The enum value in the form of the string # @return [String] The enum value @@ -15,7 +16,7 @@ # @return [String] The enum value # @!visibility private def build_from_hash(value) - constantValues = {{classname}}.constants.select { |c| {{classname}}::const_get(c) == value } - constantValues.empty? ? {{moduleName}}::UnparsedObject.new(value) : value + constantValues = {{ name }}.constants.select { |c| {{ name }}::const_get(c) == value } + constantValues.empty? ? {{ config.moduleName }}::UnparsedObject.new(value) : value end end diff --git a/.generator/src/generator/templates/model_generic.j2 b/.generator/src/generator/templates/model_generic.j2 new file mode 100644 index 00000000000..ca055229f5c --- /dev/null +++ b/.generator/src/generator/templates/model_generic.j2 @@ -0,0 +1,264 @@ + class {{ name }} + # whether the object has unparsed attributes + # @!visibility private + attr_accessor :_unparsed +{%- for attr, definition in model.get("properties", {}).items() %} + + # {{ definition.description|replace('\n', '\n# ')|indent(4) }} + attr_accessor :{{ attr|attribute_name }} +{%- endfor %} + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { +{%- for attr in model.properties %} + :'{{ attr|attribute_name }}' => :'{{ attr }}'{% if not loop.last %},{% endif %} +{%- endfor %} + } + end + + # Returns all the JSON keys this model knows about{# TODO add parent #} + # @!visibility private + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { +{%- for attr in model.properties %} + :'{{ attr|attribute_name }}' => :'{{ get_type_for_attribute(model, attr, current_name=name) }}'{% if not loop.last %},{% endif %} +{%- endfor %} + } + end + + # List of attributes with nullable: true + # @!visibility private + def self.openapi_nullable + Set.new([ + {%- for attr, spec in model.properties.items() if spec.nullable %} + :'{{ attr|attribute_name }}'{% if not loop.last %},{% endif %} + {%- endfor %} + ]) + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `{{ config.moduleName }}::{{ name }}` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `{{ config.moduleName }}::{{ name }}`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } +{%- for attr, definition in model.get("properties", {}).items() %} + + if attributes.key?(:'{{ attr|attribute_name }}') + {%- if definition.get("type", "object") == "array" %} + if (value = attributes[:'{{ attr|attribute_name }}']).is_a?(Array) + self.{{ attr|attribute_name }} = value + end + {%- else %} + self.{{ attr|attribute_name }} = attributes[:'{{ attr|attribute_name }}'] + {%- endif %} +{%- if "default" in definition and definition.default != None %} + else + self.{{ attr|attribute_name }} = {{ definition.default|format_value }} +{%- endif %} + end +{%- endfor %} + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + # @!visibility private + def list_invalid_properties + invalid_properties = Array.new +{%- for attr, definition in model.get("properties", {}).items() %} +{%- if attr in model.get("required", []) %} + if @{{ attr|attribute_name }}.nil? + invalid_properties.push('invalid value for "{{ attr|attribute_name }}", {{ attr|attribute_name }} cannot be nil.') + end +{%- endif %} +{%- endfor %} + + invalid_properties + 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? +{%- for attr, definition in model.get("properties", {}).items() %} +{%- if attr in model.get("required", []) %} + return false if @{{ attr|attribute_name }}.nil? +{%- endif %} +{%- endfor %} + true + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && +{%- for attr in model.properties %} + {{ attr|attribute_name }} == o.{{ attr|attribute_name }}{% if not loop.last %} &&{% endif %} +{%- endfor %} + end + + # @see the `==` method + # @param o [Object] Object to be compared + # @!visibility private + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [{% for attr in model.properties %}{{ attr|attribute_name }}{% if not loop.last %}, {% endif %}{% endfor %}].hash + end + + # Builds the object from hash + # @param attributes [Hash] Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param type [string] Data type + # @param value [string] Value to be deserialized + # @return [Object] Deserialized data + # @!visibility private + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when :Array + # generic array, return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = {{ config.moduleName }}.const_get(type) + res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + if res.instance_of? {{ config.moduleName }}::UnparsedObject + self._unparsed = true + end + res + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + # @!visibility private + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_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 + + # 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 + # @return [Hash] Returns the value in the form of hash + # @!visibility private + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end \ No newline at end of file diff --git a/.generator/templates/partial_oneof_module.mustache b/.generator/src/generator/templates/model_oneof.j2 similarity index 86% rename from .generator/templates/partial_oneof_module.mustache rename to .generator/src/generator/templates/model_oneof.j2 index 3e7cf06128b..19b30a855eb 100644 --- a/.generator/templates/partial_oneof_module.mustache +++ b/.generator/src/generator/templates/model_oneof.j2 @@ -1,31 +1,25 @@ - {{#description}} - # {{{.}}} - {{/description}} - module {{classname}} + module {{ name }} class << self attr_accessor :_unparsed - {{#oneOf}} - {{#-first}} # List of class defined in oneOf (OpenAPI v3) def openapi_one_of [ - {{/-first}} - :'{{{.}}}'{{^-last}},{{/-last}} - {{#-last}} + {%- for schema in model.oneOf %} + :'{{ get_name(schema) }}'{% if not loop.last %},{% endif %} + {%- endfor %} ] end - {{/-last}} - {{/oneOf}} - {{#discriminator}} - {{#propertyName}} + {%- if model.discriminator %} + {%- if model.discriminator.propertyName %} # Discriminator's property name (OpenAPI v3) def openapi_discriminator_name - :'{{{.}}}' + :'{{ model.discriminator.propertyName}}' end - {{/propertyName}} + {%- endif %} + {# TODO add support for discriminator mapping (OpenAPI v3) {{#mappedModels}} {{#-first}} # Discriminator's mapping (OpenAPI v3) @@ -39,14 +33,16 @@ {{/-last}} {{/mappedModels}} - {{/discriminator}} + #} + {%- endif %} # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself def build(data) - {{#discriminator}} + {%- if model.discriminator %} discriminator_value = data[openapi_discriminator_name] return nil unless discriminator_value + {# TODO {{#mappedModels}} {{#-first}} @@ -59,8 +55,8 @@ {{^mappedModels}} {{moduleName}}.const_get(discriminator_value).build_from_hash(data) {{/mappedModels}} - {{/discriminator}} - {{^discriminator}} + #} + {%- else %} # Go through the list of oneOf items and attempt to identify the appropriate one. # Note: # - We do not attempt to check whether exactly one item matches. @@ -82,12 +78,12 @@ data else self._unparsed = true - {{moduleName}}::UnparsedObject.new(data) + {{ config.moduleName }}::UnparsedObject.new(data) end - {{/discriminator}} + {%- endif %} end - {{^discriminator}} + {%- if not model.discriminator %} private @@ -123,7 +119,7 @@ return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } end else # model - const = {{moduleName}}.const_get(klass) + const = {{ config.moduleName }}.const_get(klass) if const if const.respond_to?(:openapi_one_of) # nested oneOf model model = const.build(data) @@ -141,6 +137,6 @@ rescue raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" end - {{/discriminator}} + {%- endif %} end end diff --git a/.generator/templates/gem.mustache b/.generator/src/generator/templates/package.j2 similarity index 50% rename from .generator/templates/gem.mustache rename to .generator/src/generator/templates/package.j2 index 1bd524764ad..11b1f88ae5d 100644 --- a/.generator/templates/gem.mustache +++ b/.generator/src/generator/templates/package.j2 @@ -1,30 +1,27 @@ =begin -{{> api_info}} +{% include "api_info.j2" %} =end # Common files require 'datadog_api_client/version' -require '{{gemName}}/api_client' -require '{{gemName}}/api_error' -require '{{gemName}}/configuration' +require '{{ config.gemName }}/api_client' +require '{{ config.gemName }}/api_error' +require '{{ config.gemName }}/configuration' # Models -{{#models}} -{{#model}} -require '{{gemName}}/{{modelPackage}}/{{classFilename}}'{{/model}} -{{/models}} +{%- for model in models|sort %} +require '{{ config.gemName }}/models/{{ model|snake_case }}' +{%- endfor %} # APIs -{{#apiInfo}} -{{#apis}} -require '{{importPath}}' -{{/apis}} -{{/apiInfo}} +{%- for api in apis|sort %} +require '{{ config.gemName }}/api/{{ api|snake_case }}_api' +{%- endfor %} -module {{moduleName}} +module {{ config.moduleName}} class << self # Customize default settings for the SDK using block. - # {{moduleName}}.configure do |config| + # {{ config.moduleName}}.configure do |config| # config.username = "xxx" # config.password = "xxx" # end diff --git a/.generator/templates/Gemfile.mustache b/.generator/templates/Gemfile.mustache deleted file mode 100644 index c2e3127cdcf..00000000000 --- a/.generator/templates/Gemfile.mustache +++ /dev/null @@ -1,9 +0,0 @@ -source 'https://rubygems.org' - -gemspec - -group :development, :test do - gem 'rake', '~> 13.0.1' - gem 'pry-byebug' - gem 'rubocop', '~> 0.66.0' -end diff --git a/.generator/templates/README.mustache b/.generator/templates/README.mustache deleted file mode 100644 index 7193d47e1ec..00000000000 --- a/.generator/templates/README.mustache +++ /dev/null @@ -1,82 +0,0 @@ -# {{gemName}} - -{{moduleName}} - the Ruby gem for the {{appName}} - -{{#appDescriptionWithNewLines}} -{{{appDescriptionWithNewLines}}} -{{/appDescriptionWithNewLines}} - -## Getting Started - -Please follow the [installation](#installation) procedure and then run the following code: - -```ruby -# Load the gem -require '{{{gemName}}}' -{{#apiInfo}}{{#apis}}{{#-first}}{{#operations}}{{#operation}}{{#-first}} -api_instance = {{{moduleName}}}::{{{classname}}}.new -{{#requiredParams}} -{{{paramName}}} = {{{vendorExtensions.x-ruby-example}}} # {{{dataType}}} | {{{description}}} -{{/requiredParams}} -{{#optionalParams}} -{{#-first}} -opts = { -{{/-first}} - {{{paramName}}}: {{{vendorExtensions.x-ruby-example}}}{{^-last}},{{/-last}} # {{{dataType}}} | {{{description}}} -{{#-last}} -} -{{/-last}} -{{/optionalParams}} - -begin -{{#summary}} #{{{.}}} -{{/summary}} {{#returnType}}result = {{/returnType}}api_instance.{{{operationId}}}{{#hasParams}}({{#requiredParams}}{{{paramName}}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#optionalParams}}{{#-last}}{{#hasRequiredParams}}, {{/hasRequiredParams}}opts{{/-last}}{{/optionalParams}}){{/hasParams}}{{#returnType}} - p result{{/returnType}} -rescue {{{moduleName}}}::APIError => e - puts "Exception when calling {{classname}}->{{{operationId}}}: #{e}" -end -{{/-first}}{{/operation}}{{/operations}}{{/-first}}{{/apis}}{{/apiInfo}} -``` - -## Documentation for API Endpoints - -All URIs are relative to *{{basePath}}* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -{{#apiInfo}}{{#apis}}{{#operations}}{{#operation}}*{{moduleName}}::{{classname}}* | [**{{operationId}}**]({{classname}}.md#{{operationId}}) | **{{httpMethod}}** {{path}} | {{{summary}}} -{{/operation}}{{/operations}}{{/apis}}{{/apiInfo}} - -## Documentation for Models - -{{#models}}{{#model}} - [{{moduleName}}::{{classname}}]({{classname}}.md) -{{/model}}{{/models}} - -## Documentation for Authorization - -{{^authMethods}} All endpoints do not require authorization. -{{/authMethods}}{{#authMethods}}{{#last}} Authentication schemes defined for the API:{{/last}}{{/authMethods}} -{{#authMethods}}### {{name}} - -{{#isApiKey}} - -- **Type**: API key -- **API key parameter name**: {{keyParamName}} -- **Location**: {{#isKeyInQuery}}URL query string{{/isKeyInQuery}}{{#isKeyInHeader}}HTTP header{{/isKeyInHeader}} -{{/isApiKey}} -{{#isBasic}} -{{#isBasicBasic}}- **Type**: HTTP basic authentication -{{/isBasicBasic}}{{#isBasicBearer}}- **Type**: Bearer authentication{{#bearerFormat}} ({{{.}}}){{/bearerFormat}} -{{/isBasicBearer}} -{{/isBasic}} -{{#isOAuth}} - -- **Type**: OAuth -- **Flow**: {{flow}} -- **Authorization URL**: {{authorizationUrl}} -- **Scopes**: {{^scopes}}N/A{{/scopes}} -{{#scopes}} - {{scope}}: {{description}} -{{/scopes}} -{{/isOAuth}} - -{{/authMethods}} diff --git a/.generator/templates/Rakefile.mustache b/.generator/templates/Rakefile.mustache deleted file mode 100644 index c72ca30d454..00000000000 --- a/.generator/templates/Rakefile.mustache +++ /dev/null @@ -1,10 +0,0 @@ -require "bundler/gem_tasks" - -begin - require 'rspec/core/rake_task' - - RSpec::Core::RakeTask.new(:spec) - task default: :spec -rescue LoadError - # no rspec available -end diff --git a/.generator/templates/api.mustache b/.generator/templates/api.mustache deleted file mode 100644 index ab74e4b00d2..00000000000 --- a/.generator/templates/api.mustache +++ /dev/null @@ -1,216 +0,0 @@ -=begin -{{> api_info}} -=end - -require 'cgi' - -module {{moduleName}} -{{#operations}} - class {{classname}} - attr_accessor :api_client - - def initialize(api_client = APIClient.default) - @api_client = api_client - end -{{#operation}} - {{#summary}} - # {{{.}}} - {{/summary}} - {{#notes}} - # {{{.}}} - {{/notes}} -{{#allParams}}{{#required}} # @param {{paramName}} [{{{dataType}}}] {{description}} -{{/required}}{{/allParams}} # @param [Hash] opts the optional parameters -{{#allParams}}{{^required}} # @option opts [{{{dataType}}}] :{{paramName}} {{description}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}} -{{/required}}{{/allParams}} # @return [{{{returnType}}}{{^returnType}}nil{{/returnType}}] - def {{operationId}}({{#allParams}}{{#required}}{{paramName}}, {{/required}}{{/allParams}}opts = {}) - {{#returnType}}data, _status_code, _headers = {{/returnType}}{{operationId}}_with_http_info({{#allParams}}{{#required}}{{paramName}}, {{/required}}{{/allParams}}opts) - {{#returnType}}data{{/returnType}}{{^returnType}}nil{{/returnType}} - end - - {{#summary}} - # {{.}} - {{/summary}} - {{#notes}} - # {{.}} - {{/notes}} -{{#allParams}}{{#required}} # @param {{paramName}} [{{{dataType}}}] {{description}} -{{/required}}{{/allParams}} # @param [Hash] opts the optional parameters -{{#allParams}}{{^required}} # @option opts [{{{dataType}}}] :{{paramName}} {{description}} -{{/required}}{{/allParams}} # @return [Array<({{{returnType}}}{{^returnType}}nil{{/returnType}}, Integer, Hash)>] {{#returnType}}{{{.}}} data{{/returnType}}{{^returnType}}nil{{/returnType}}, response status code and response headers - def {{operationId}}_with_http_info({{#allParams}}{{#required}}{{paramName}}, {{/required}}{{/allParams}}opts = {}) - - if @api_client.config.unstable_operations.has_key?(:{{operationId}}) - unstable_enabled = @api_client.config.unstable_operations[:{{operationId}}] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "{{operationId}}") - else - raise APIError.new(message: format("Unstable operation '%s' is disabled", "{{operationId}}")) - end - end - - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: {{classname}}.{{operationId}} ...' - end - {{#allParams}} - {{^isNullable}} - {{#required}} - # verify the required parameter '{{paramName}}' is set - if @api_client.config.client_side_validation && {{{paramName}}}.nil? - fail ArgumentError, "Missing the required parameter '{{paramName}}' when calling {{classname}}.{{operationId}}" - end - {{#isEnum}} - {{^isContainer}} - # verify enum value - allowable_values = [{{#allowableValues}}{{#enumVars}}{{{value}}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}] - if @api_client.config.client_side_validation && !allowable_values.include?({{{paramName}}}) - fail ArgumentError, "invalid value for \"{{{paramName}}}\", must be one of #{allowable_values}" - end - {{/isContainer}} - {{/isEnum}} - {{/required}} - {{/isNullable}} - {{^required}} - {{#isEnum}} - {{#collectionFormat}} - allowable_values = [{{#allowableValues}}{{#enumVars}}{{{value}}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}] - if @api_client.config.client_side_validation && opts[:'{{{paramName}}}'] && !opts[:'{{{paramName}}}'].all? { |item| allowable_values.include?(item) } - fail ArgumentError, "invalid value for \"{{{paramName}}}\", must include one of #{allowable_values}" - end - {{/collectionFormat}} - {{^collectionFormat}} - allowable_values = [{{#allowableValues}}{{#enumVars}}{{{value}}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}] - if @api_client.config.client_side_validation && opts[:'{{{paramName}}}'] && !allowable_values.include?(opts[:'{{{paramName}}}']) - fail ArgumentError, "invalid value for \"{{{paramName}}}\", must be one of #{allowable_values}" - end - {{/collectionFormat}} - {{/isEnum}} - {{/required}} - {{#hasValidation}} - {{#maxLength}} - if @api_client.config.client_side_validation && {{^required}}!opts[:'{{{paramName}}}'].nil? && {{/required}}{{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:'{{{paramName}}}']{{/required}}.to_s.length > {{{maxLength}}} - fail ArgumentError, 'invalid value for "{{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:"{{{paramName}}}"]{{/required}}" when calling {{classname}}.{{operationId}}, the character length must be smaller than or equal to {{{maxLength}}}.' - end - - {{/maxLength}} - {{#minLength}} - if @api_client.config.client_side_validation && {{^required}}!opts[:'{{{paramName}}}'].nil? && {{/required}}{{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:'{{{paramName}}}']{{/required}}.to_s.length < {{{minLength}}} - fail ArgumentError, 'invalid value for "{{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:"{{{paramName}}}"]{{/required}}" when calling {{classname}}.{{operationId}}, the character length must be great than or equal to {{{minLength}}}.' - end - - {{/minLength}} - {{#maximum}} - if @api_client.config.client_side_validation && {{^required}}!opts[:'{{{paramName}}}'].nil? && {{/required}}{{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:'{{{paramName}}}']{{/required}} >{{#exclusiveMaximum}}={{/exclusiveMaximum}} {{{maximum}}} - fail ArgumentError, 'invalid value for "{{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:"{{{paramName}}}"]{{/required}}" when calling {{classname}}.{{operationId}}, must be smaller than {{^exclusiveMaximum}}or equal to {{/exclusiveMaximum}}{{{maximum}}}.' - end - - {{/maximum}} - {{#minimum}} - if @api_client.config.client_side_validation && {{^required}}!opts[:'{{{paramName}}}'].nil? && {{/required}}{{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:'{{{paramName}}}']{{/required}} <{{#exclusiveMinimum}}={{/exclusiveMinimum}} {{{minimum}}} - fail ArgumentError, 'invalid value for "{{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:"{{{paramName}}}"]{{/required}}" when calling {{classname}}.{{operationId}}, must be greater than {{^exclusiveMinimum}}or equal to {{/exclusiveMinimum}}{{{minimum}}}.' - end - - {{/minimum}} - {{#pattern}} - pattern = Regexp.new({{{pattern}}}) - if @api_client.config.client_side_validation && {{^required}}!opts[:'{{{paramName}}}'].nil? && {{/required}}{{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:'{{{paramName}}}']{{/required}} !~ pattern - fail ArgumentError, "invalid value for '{{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:\"{{{paramName}}}\"]{{/required}}' when calling {{classname}}.{{operationId}}, must conform to the pattern #{pattern}." - end - - {{/pattern}} - {{#maxItems}} - if @api_client.config.client_side_validation && {{^required}}!opts[:'{{{paramName}}}'].nil? && {{/required}}{{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:'{{{paramName}}}']{{/required}}.length > {{{maxItems}}} - fail ArgumentError, 'invalid value for "{{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:"{{{paramName}}}"]{{/required}}" when calling {{classname}}.{{operationId}}, number of items must be less than or equal to {{{maxItems}}}.' - end - - {{/maxItems}} - {{#minItems}} - if @api_client.config.client_side_validation && {{^required}}!opts[:'{{{paramName}}}'].nil? && {{/required}}{{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:'{{{paramName}}}']{{/required}}.length < {{{minItems}}} - fail ArgumentError, 'invalid value for "{{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:"{{{paramName}}}"]{{/required}}" when calling {{classname}}.{{operationId}}, number of items must be greater than or equal to {{{minItems}}}.' - end - - {{/minItems}} - {{/hasValidation}} - {{/allParams}} - # resource path - local_var_path = '{{{path}}}'{{#pathParams}}.sub('{' + '{{baseName}}' + '}', CGI.escape({{paramName}}.to_s){{^strictSpecBehavior}}.gsub('%2F', '/'){{/strictSpecBehavior}}){{/pathParams}} - - # query parameters - query_params = opts[:query_params] || {} - {{#queryParams}} - {{#required}} - query_params[:'{{{baseName}}}'] = {{#collectionFormat}}@api_client.build_collection_param({{{paramName}}}, :{{{collectionFormat}}}){{/collectionFormat}}{{^collectionFormat}}{{{paramName}}}{{/collectionFormat}} - {{/required}} - {{/queryParams}} - {{#queryParams}} - {{^required}} - query_params[:'{{{baseName}}}'] = {{#collectionFormat}}@api_client.build_collection_param(opts[:'{{{paramName}}}'], :{{{collectionFormat}}}){{/collectionFormat}}{{^collectionFormat}}opts[:'{{{paramName}}}']{{/collectionFormat}} if !opts[:'{{{paramName}}}'].nil? - {{/required}} - {{/queryParams}} - - # header parameters - header_params = opts[:header_params] || {} - {{#hasProduces}} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept([{{#produces}}'{{{mediaType}}}'{{^-last}}, {{/-last}}{{/produces}}]) - {{/hasProduces}} - {{#hasConsumes}} - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type([{{#consumes}}'{{{mediaType}}}'{{^-last}}, {{/-last}}{{/consumes}}]) - {{/hasConsumes}} - {{#headerParams}} - {{#required}} - header_params['{{{baseName}}}'] = {{#collectionFormat}}@api_client.build_collection_param({{{paramName}}}, :{{{collectionFormat}}}){{/collectionFormat}}{{^collectionFormat}}{{{paramName}}}{{/collectionFormat}} - {{/required}} - {{/headerParams}} - {{#headerParams}} - {{^required}} - header_params['{{{baseName}}}'] = {{#collectionFormat}}@api_client.build_collection_param(opts[:'{{{paramName}}}'], :{{{collectionFormat}}}){{/collectionFormat}}{{^collectionFormat}}opts[:'{{{paramName}}}']{{/collectionFormat}} if !opts[:'{{{paramName}}}'].nil? - {{/required}} - {{/headerParams}} - - # form parameters - form_params = opts[:form_params] || {} - {{#formParams}} - {{#required}} - form_params['{{baseName}}'] = {{#collectionFormat}}@api_client.build_collection_param({{{paramName}}}, :{{{collectionFormat}}}){{/collectionFormat}}{{^collectionFormat}}{{{paramName}}}{{/collectionFormat}} - {{/required}} - {{/formParams}} - {{#formParams}} - {{^required}} - form_params['{{baseName}}'] = {{#collectionFormat}}@api_client.build_collection_param(opts[:'{{{paramName}}}'], :{{{collectionFormat}}}){{/collectionFormat}}{{^collectionFormat}}opts[:'{{{paramName}}}']{{/collectionFormat}} if !opts[:'{{paramName}}'].nil? - {{/required}} - {{/formParams}} - - # http body (model) - post_body = opts[:debug_body]{{#bodyParam}} || @api_client.object_to_http_body({{#required}}{{{paramName}}}{{/required}}{{^required}}opts[:'{{{paramName}}}']{{/required}}){{/bodyParam}} - - # return_type - return_type = opts[:debug_return_type]{{#returnType}} || '{{{.}}}'{{/returnType}} - - # auth_names - auth_names = opts[:debug_auth_names] || [{{#authMethods}}:{{name}}{{^-last}}, {{/-last}}{{/authMethods}}] - - new_options = opts.merge( - :operation => :{{operationId}}, - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:{{httpMethod}}, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: {{classname}}#{{operationId}}\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end -{{^-last}} - -{{/-last}} -{{/operation}} - end -{{/operations}} -end diff --git a/.generator/templates/api_client_faraday_partial.mustache b/.generator/templates/api_client_faraday_partial.mustache deleted file mode 100644 index b3ba01468e6..00000000000 --- a/.generator/templates/api_client_faraday_partial.mustache +++ /dev/null @@ -1,138 +0,0 @@ - # Call an API with given options. - # - # @return [Array<(Object, Integer, Hash)>] an array of 3 elements: - # the data deserialized from response body (could be nil), response status code and response headers. - def call_api(http_method, path, opts = {}) - ssl_options = { - :ca_file => @config.ssl_ca_file, - :verify => @config.ssl_verify, - :verify_mode => @config.ssl_verify_mode, - :client_cert => @config.ssl_client_cert, - :client_key => @config.ssl_client_key - } - - connection = Faraday.new(:url => config.base_url, :ssl => ssl_options) do |conn| - conn.basic_auth(config.username, config.password) - if opts[:header_params]["Content-Type"] == "multipart/form-data" - conn.request :multipart - conn.request :url_encoded - end - conn.adapter(Faraday.default_adapter) - end - - begin - response = connection.public_send(http_method.to_sym.downcase) do |req| - build_request(http_method, path, req, opts) - end - - if @config.debugging - @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n" - end - - unless response.success? - if response.status == 0 - # Errors from libcurl will be made visible here - fail APIError.new(:code => 0, - :message => response.return_message) - else - fail APIError.new(:code => response.status, - :response_headers => response.headers, - :response_body => response.body), - response.reason_phrase - end - end - rescue Faraday::TimeoutError - fail APIError.new('Connection timed out') - end - - if opts[:return_type] - data = deserialize(response, opts[:return_type]) - else - data = nil - end - return data, response.status, response.headers - end - - # Builds the HTTP request - # - # @param [String] http_method HTTP method/verb (e.g. POST) - # @param [String] path URL path (e.g. /account/new) - # @option opts [Hash] :header_params Header parameters - # @option opts [Hash] :query_params Query parameters - # @option opts [Hash] :form_params Query parameters - # @option opts [Object] :body HTTP body (JSON/XML) - # @return [Typhoeus::Request] A Typhoeus Request - def build_request(http_method, path, request, opts = {}) - url = build_request_url(path, opts) - http_method = http_method.to_sym.downcase - - header_params = @default_headers.merge(opts[:header_params] || {}) - query_params = opts[:query_params] || {} - form_params = opts[:form_params] || {} - - update_params_for_auth! header_params, query_params, opts[:auth_names] - - req_opts = { - :method => http_method, - :headers => header_params, - :params => query_params, - :params_encoding => @config.params_encoding, - :timeout => @config.timeout, - :verbose => @config.debugging - } - - if [:post, :patch, :put, :delete].include?(http_method) - req_body = build_request_body(header_params, form_params, opts[:body]) - req_opts.update :body => req_body - if @config.debugging - @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n" - end - end - request.headers = header_params - request.body = req_body - request.url url - request.params = query_params - download_file(request) if opts[:return_type] == 'File' - request - end - - # Builds the HTTP request body - # - # @param [Hash] header_params Header parameters - # @param [Hash] form_params Query parameters - # @param [Object] body HTTP body (JSON/XML) - # @return [String] HTTP body data in the form of string - def build_request_body(header_params, form_params, body) - # http form - if header_params['Content-Type'] == 'application/x-www-form-urlencoded' - data = URI.encode_www_form(form_params) - elsif header_params['Content-Type'] == 'multipart/form-data' - data = {} - form_params.each do |key, value| - case value - when ::File, ::Tempfile - # TODO hardcode to application/octet-stream, need better way to detect content type - data[key] = Faraday::UploadIO.new(value.path, 'application/octet-stream', value.path) - when ::Array, nil - # let Faraday handle Array and nil parameters - data[key] = value - else - data[key] = value.to_s - end - end - elsif body - data = body.is_a?(String) ? body : body.to_json - else - data = nil - end - data - end - - def download_file(request) - @stream = [] - - # handle streaming Responses - request.options.on_data = Proc.new do |chunk, overall_received_bytes| - @stream << chunk - end - end diff --git a/.generator/templates/api_client_spec.mustache b/.generator/templates/api_client_spec.mustache deleted file mode 100644 index 8830b8ed5a1..00000000000 --- a/.generator/templates/api_client_spec.mustache +++ /dev/null @@ -1,220 +0,0 @@ -=begin -{{> api_info}} -=end - -require 'spec_helper' - -describe {{moduleName}}::APIClient do - context 'initialization' do - context 'URL stuff' do - context 'host' do - it 'removes http from host' do - {{moduleName}}.configure { |c| c.host = 'http://example.com' } - expect({{moduleName}}::Configuration.default.host).to eq('example.com') - end - - it 'removes https from host' do - {{moduleName}}.configure { |c| c.host = 'https://wookiee.com' } - expect({{moduleName}}::APIClient.default.config.host).to eq('wookiee.com') - end - - it 'removes trailing path from host' do - {{moduleName}}.configure { |c| c.host = 'hobo.com/v4' } - expect({{moduleName}}::Configuration.default.host).to eq('hobo.com') - end - end - - context 'base_path' do - it "prepends a slash to base_path" do - {{moduleName}}.configure { |c| c.base_path = 'v4/dog' } - expect({{moduleName}}::Configuration.default.base_path).to eq('/v4/dog') - end - - it "doesn't prepend a slash if one is already there" do - {{moduleName}}.configure { |c| c.base_path = '/v4/dog' } - expect({{moduleName}}::Configuration.default.base_path).to eq('/v4/dog') - end - - it "ends up as a blank string if nil" do - {{moduleName}}.configure { |c| c.base_path = nil } - expect({{moduleName}}::Configuration.default.base_path).to eq('') - end - end - end - end - -{{^isFaraday}} - describe 'params_encoding in #build_request' do - let(:config) { {{moduleName}}::Configuration.new } - let(:api_client) { {{moduleName}}::APIClient.new(config) } - - it 'defaults to nil' do - expect({{moduleName}}::Configuration.default.params_encoding).to eq(nil) - expect(config.params_encoding).to eq(nil) - - request = api_client.build_request(:get, '/test') - expect(request.options[:params_encoding]).to eq(nil) - end - - it 'can be customized' do - config.params_encoding = :multi - request = api_client.build_request(:get, '/test') - expect(request.options[:params_encoding]).to eq(:multi) - end - end - - describe 'timeout in #build_request' do - let(:config) { {{moduleName}}::Configuration.new } - let(:api_client) { {{moduleName}}::APIClient.new(config) } - - it 'defaults to 0' do - expect({{moduleName}}::Configuration.default.timeout).to eq(0) - expect(config.timeout).to eq(0) - - request = api_client.build_request(:get, '/test') - expect(request.options[:timeout]).to eq(0) - end - - it 'can be customized' do - config.timeout = 100 - request = api_client.build_request(:get, '/test') - expect(request.options[:timeout]).to eq(100) - end - end - -{{/isFaraday}} - describe '#deserialize' do - it "handles Array" do - api_client = {{moduleName}}::APIClient.new - headers = { 'Content-Type' => 'application/json' } - response = double('response', headers: headers, body: '[12, 34]') - data = api_client.deserialize(response, 'Array') - expect(data).to be_instance_of(Array) - expect(data).to eq([12, 34]) - end - - it 'handles Array>' do - api_client = {{moduleName}}::APIClient.new - headers = { 'Content-Type' => 'application/json' } - response = double('response', headers: headers, body: '[[12, 34], [56]]') - data = api_client.deserialize(response, 'Array>') - expect(data).to be_instance_of(Array) - expect(data).to eq([[12, 34], [56]]) - end - - it 'handles Hash' do - api_client = {{moduleName}}::APIClient.new - headers = { 'Content-Type' => 'application/json' } - response = double('response', headers: headers, body: '{"message": "Hello"}') - data = api_client.deserialize(response, 'Hash') - expect(data).to be_instance_of(Hash) - expect(data).to eq(:message => 'Hello') - end - end - - describe "#object_to_hash" do - it 'ignores nils and includes empty arrays' do - # uncomment below to test object_to_hash for model - # api_client = {{moduleName}}::APIClient.new - # _model = {{moduleName}}::ModelName.new - # update the model attribute below - # _model.id = 1 - # update the expected value (hash) below - # expected = {id: 1, name: '', tags: []} - # expect(api_client.object_to_hash(_model)).to eq(expected) - end - end - - describe '#build_collection_param' do - let(:param) { ['aa', 'bb', 'cc'] } - let(:api_client) { {{moduleName}}::APIClient.new } - - it 'works for csv' do - expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc') - end - - it 'works for ssv' do - expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc') - end - - it 'works for tsv' do - expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc") - end - - it 'works for pipes' do - expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc') - end - - it 'works for multi' do - expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc']) - end - - it 'fails for invalid collection format' do - expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID') - end - end - - describe '#json_mime?' do - let(:api_client) { {{moduleName}}::APIClient.new } - - it 'works' do - expect(api_client.json_mime?(nil)).to eq false - expect(api_client.json_mime?('')).to eq false - - expect(api_client.json_mime?('application/json')).to eq true - expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true - expect(api_client.json_mime?('APPLICATION/JSON')).to eq true - - expect(api_client.json_mime?('application/xml')).to eq false - expect(api_client.json_mime?('text/plain')).to eq false - expect(api_client.json_mime?('application/jsonp')).to eq false - end - end - - describe '#select_header_accept' do - let(:api_client) { {{moduleName}}::APIClient.new } - - it 'works' do - expect(api_client.select_header_accept(nil)).to be_nil - expect(api_client.select_header_accept([])).to be_nil - - expect(api_client.select_header_accept(['application/json'])).to eq('application/json') - expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8') - expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON') - - expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml') - expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml') - end - end - - describe '#select_header_content_type' do - let(:api_client) { {{moduleName}}::APIClient.new } - - it 'works' do - expect(api_client.select_header_content_type(nil)).to eq('application/json') - expect(api_client.select_header_content_type([])).to eq('application/json') - - expect(api_client.select_header_content_type(['application/json'])).to eq('application/json') - expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8') - expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON') - expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml') - expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain') - end - end - - describe '#sanitize_filename' do - let(:api_client) { {{moduleName}}::APIClient.new } - - it 'works' do - expect(api_client.sanitize_filename('sun')).to eq('sun') - expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif') - end - end -end diff --git a/.generator/templates/api_client_typhoeus_partial.mustache b/.generator/templates/api_client_typhoeus_partial.mustache deleted file mode 100644 index fab1d4165d4..00000000000 --- a/.generator/templates/api_client_typhoeus_partial.mustache +++ /dev/null @@ -1,166 +0,0 @@ - # Call an API with given options. - # - # @return [Array<(Object, Integer, Hash)>] an array of 3 elements: - # the data deserialized from response body (could be nil), response status code and response headers. - def call_api(http_method, path, opts = {}) - request = build_request(http_method, path, opts) - response = request.run - - if @config.debugging - @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n" - end - - unless response.success? - if response.timed_out? - fail APIError.new('Connection timed out') - elsif response.code == 0 - # Errors from libcurl will be made visible here - fail APIError.new(:code => 0, - :message => response.return_message) - else - body = response.body - if response.headers['Content-Encoding'].eql?('gzip') && !(body.nil? || body.empty?) then - gzip = Zlib::Inflate.new(Zlib::MAX_WBITS + 16) - body = gzip.inflate(body) - gzip.close - end - fail APIError.new(:code => response.code, - :response_headers => response.headers, - :response_body => body), - response.status_message - end - end - - if opts[:return_type] - data = deserialize(response, opts[:return_type]) - else - data = nil - end - return data, response.code, response.headers - end - - # Builds the HTTP request - # - # @param [String] http_method HTTP method/verb (e.g. POST) - # @param [String] path URL path (e.g. /account/new) - # @option opts [Hash] :header_params Header parameters - # @option opts [Hash] :query_params Query parameters - # @option opts [Hash] :form_params Query parameters - # @option opts [Object] :body HTTP body (JSON/XML) - # @return [Typhoeus::Request] A Typhoeus Request - def build_request(http_method, path, opts = {}) - url = build_request_url(path, opts) - http_method = http_method.to_sym.downcase - - header_params = @default_headers.merge(opts[:header_params] || {}) - query_params = opts[:query_params] || {} - form_params = opts[:form_params] || {} - - {{#hasAuthMethods}} - update_params_for_auth! header_params, query_params, opts[:auth_names] - {{/hasAuthMethods}} - - # set ssl_verifyhosts option based on @config.verify_ssl_host (true/false) - _verify_ssl_host = @config.verify_ssl_host ? 2 : 0 - - req_opts = { - :method => http_method, - :headers => header_params, - :params => query_params, - :params_encoding => @config.params_encoding, - :timeout => @config.timeout, - :ssl_verifypeer => @config.verify_ssl, - :ssl_verifyhost => _verify_ssl_host, - :sslcert => @config.cert_file, - :sslkey => @config.key_file, - :verbose => @config.debugging - } - - # set custom cert, if provided - req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert - - if [:post, :patch, :put, :delete].include?(http_method) - req_body = build_request_body(header_params, form_params, opts[:body]) - req_opts.update :body => req_body - if @config.debugging - @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n" - end - end - - request = Typhoeus::Request.new(url, req_opts) - download_file(request) if opts[:return_type] == 'File' - request - end - - # Builds the HTTP request body - # - # @param [Hash] header_params Header parameters - # @param [Hash] form_params Query parameters - # @param [Object] body HTTP body (JSON/XML) - # @return [String] HTTP body data in the form of string - def build_request_body(header_params, form_params, body) - # http form - if header_params['Content-Type'] == 'application/x-www-form-urlencoded' || - header_params['Content-Type'] == 'multipart/form-data' - data = {} - form_params.each do |key, value| - case value - when ::File, ::Array, nil - # let typhoeus handle File, Array and nil parameters - data[key] = value - else - data[key] = value.to_s - end - end - elsif body - data = body.is_a?(String) ? body : body.to_json - else - data = nil - end - if header_params['Content-Encoding'] == 'gzip' - gzip = Zlib::Deflate.new(nil, Zlib::MAX_WBITS + 16) - data = gzip.deflate(data, Zlib::FINISH) - gzip.close - elsif header_params['Content-Encoding'] == 'deflate' - data = Zlib::deflate(data) - end - data - end - - # Save response body into a file in (the defined) temporary folder, using the filename - # from the "Content-Disposition" header if provided, otherwise a random filename. - # The response body is written to the file in chunks in order to handle files which - # size is larger than maximum Ruby String or even larger than the maximum memory a Ruby - # process can use. - # - # @see Configuration#temp_folder_path - def download_file(request) - tempfile = nil - encoding = nil - request.on_headers do |response| - content_disposition = response.headers['Content-Disposition'] - if content_disposition && content_disposition =~ /filename=/i - filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1] - prefix = sanitize_filename(filename) - else - prefix = 'download-' - end - prefix = prefix + '-' unless prefix.end_with?('-') - encoding = response.body.encoding - tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding) - @tempfile = tempfile - end - request.on_body do |chunk| - chunk.force_encoding(encoding) - tempfile.write(chunk) - end - request.on_complete do |response| - if tempfile - tempfile.close - @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\ - "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\ - "will be deleted automatically with GC. It's also recommended to delete the temp file "\ - "explicitly with `tempfile.delete`" - end - end - end diff --git a/.generator/templates/api_doc.mustache b/.generator/templates/api_doc.mustache deleted file mode 100644 index 89b5d021624..00000000000 --- a/.generator/templates/api_doc.mustache +++ /dev/null @@ -1,105 +0,0 @@ -# {{moduleName}}::{{classname}}{{#description}} - -{{.}}{{/description}} - -All URIs are relative to *{{basePath}}* - -| Method | HTTP request | Description | -| ------ | ------------ | ----------- | -{{#operations}} -{{#operation}} -| [**{{operationId}}**]({{classname}}.md#{{operationId}}) | **{{httpMethod}}** {{path}} | {{summary}} | -{{/operation}} -{{/operations}} - -{{#operations}} -{{#operation}} - -## {{operationId}} - -> {{#returnType}}{{#returnTypeIsPrimitive}}{{returnType}}{{/returnTypeIsPrimitive}}{{^returnTypeIsPrimitive}}<{{{returnType}}}>{{/returnTypeIsPrimitive}} {{/returnType}}{{operationId}}{{#hasParams}}({{#requiredParams}}{{{paramName}}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#optionalParams}}{{#-last}}{{#hasRequiredParams}}, {{/hasRequiredParams}}opts{{/-last}}{{/optionalParams}}){{/hasParams}} - -{{#notes}}{{{unescapedNotes}}}{{/notes}} - -### Examples - -```ruby -require '{{{gemNameInExamples}}}' -{{#vendorExtensions.x-unstable}} - -{{{moduleName}}}.configure do |config| - config.unstable_operations[:{{{operationId}}}] = true -end - -{{/vendorExtensions.x-unstable}} -api_instance = {{{moduleName}}}::{{{classname}}}.new -{{#requiredParams}} -{{{paramName}}} = {{{vendorExtensions.x-ruby-example}}} # {{{dataType}}} | {{{description}}} -{{/requiredParams}} -{{#optionalParams}} -{{#-first}} -opts = { -{{/-first}} - {{{paramName}}}: {{{vendorExtensions.x-ruby-example}}}{{^-last}},{{/-last}} # {{{dataType}}} | {{{description}}} -{{#-last}} -} -{{/-last}} -{{/optionalParams}} - -begin - {{#summary}}# {{{.}}}{{/summary}} - {{#returnType}}result = {{/returnType}}api_instance.{{{operationId}}}{{#hasParams}}({{#requiredParams}}{{{paramName}}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#optionalParams}}{{#-last}}{{#hasRequiredParams}}, {{/hasRequiredParams}}opts{{/-last}}{{/optionalParams}}){{/hasParams}} - {{#returnType}} - p result - {{/returnType}} -rescue {{{moduleName}}}::APIError => e - puts "Error when calling {{classname}}->{{{operationId}}}: #{e}" -end -``` - -#### Using the {{operationId}}_with_http_info variant - -This returns an Array which contains the response data{{^returnType}} (`nil` in this case){{/returnType}}, status code and headers. - -> {{/returnTypeIsPrimitive}}{{/returnType}}{{^returnType}}nil{{/returnType}}, Integer, Hash)> {{operationId}}_with_http_info{{#hasParams}}({{#requiredParams}}{{{paramName}}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#optionalParams}}{{#-last}}{{#hasRequiredParams}}, {{/hasRequiredParams}}opts{{/-last}}{{/optionalParams}}){{/hasParams}} - -```ruby -begin - {{#summary}}# {{{.}}}{{/summary}} - data, status_code, headers = api_instance.{{{operationId}}}_with_http_info{{#hasParams}}({{#requiredParams}}{{{paramName}}}{{^-last}}, {{/-last}}{{/requiredParams}}{{#optionalParams}}{{#-last}}{{#hasRequiredParams}}, {{/hasRequiredParams}}opts{{/-last}}{{/optionalParams}}){{/hasParams}} - p status_code # => 2xx - p headers # => { ... } - p data # => {{#returnType}}{{#returnTypeIsPrimitive}}{{returnType}}{{/returnTypeIsPrimitive}}{{^returnTypeIsPrimitive}}<{{{returnType}}}>{{/returnTypeIsPrimitive}}{{/returnType}}{{^returnType}}nil{{/returnType}} -rescue {{{moduleName}}}::APIError => e - puts "Error when calling {{classname}}->{{{operationId}}}_with_http_info: #{e}" -end -``` - -### Parameters - -{{^allParams}} -This endpoint does not need any parameter. -{{/allParams}} -{{#allParams}} -{{#-first}} -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -{{/-first}} -| **{{paramName}}** | {{#isContainer}}{{#isArray}}{{#items}}{{#isModel}}{{^isFile}}[{{/isFile}}{{/isModel}}**Array<{{dataType}}>**{{#isModel}}{{^isFile}}]({{^baseType}}{{dataType}}{{/baseType}}{{#baseType}}{{baseType}}{{/baseType}}.md){{/isFile}}{{/isModel}}{{/items}}{{/isArray}}{{#isMap}}{{#items}}{{#isModel}}{{^isFile}}[{{/isFile}}{{/isModel}}**Hash<String,{{dataType}}>**{{#isModel}}{{^isFile}}]({{^baseType}}{{dataType}}{{/baseType}}{{#baseType}}{{baseType}}{{/baseType}}.md){{/isFile}}{{/isModel}}{{/items}}{{/isMap}}{{/isContainer}}{{^isContainer}}{{#isModel}}{{^isFile}}[{{/isFile}}{{/isModel}}**{{dataType}}**{{#isModel}}{{^isFile}}]({{^baseType}}{{dataType}}{{/baseType}}{{#baseType}}{{baseType}}{{/baseType}}.md){{/isFile}}{{/isModel}}{{/isContainer}} | {{description}} | {{^required}}[optional]{{/required}}{{#defaultValue}}[default to {{defaultValue}}]{{/defaultValue}} | -{{/allParams}} - -### Return type - -{{#returnType}}{{#returnTypeIsPrimitive}}**{{returnType}}**{{/returnTypeIsPrimitive}}{{^returnTypeIsPrimitive}}[**{{returnType}}**]({{returnBaseType}}.md){{/returnTypeIsPrimitive}}{{/returnType}}{{^returnType}}nil (empty response body){{/returnType}} - -### Authorization - -{{^authMethods}}No authorization required{{/authMethods}}{{#authMethods}}[{{name}}](README.md#{{name}}){{^-last}}, {{/-last}}{{/authMethods}} - -### HTTP request headers - -- **Content-Type**: {{#consumes}}{{{mediaType}}}{{^-last}}, {{/-last}}{{/consumes}}{{^consumes}}Not defined{{/consumes}} -- **Accept**: {{#produces}}{{{mediaType}}}{{^-last}}, {{/-last}}{{/produces}}{{^produces}}Not defined{{/produces}} - -{{/operation}} -{{/operations}} diff --git a/.generator/templates/api_info.mustache b/.generator/templates/api_info.mustache deleted file mode 100644 index a9360061c91..00000000000 --- a/.generator/templates/api_info.mustache +++ /dev/null @@ -1,15 +0,0 @@ -{{#appName}} -#{{{appName}}} - -{{/appName}} -{{#appDescription}} -#{{{appDescription}}} - -{{/appDescription}} -{{#version}}The version of the OpenAPI document: {{version}}{{/version}} -{{#infoEmail}}Contact: {{{infoEmail}}}{{/infoEmail}} -Generated by: https://openapi-generator.tech - - Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - This product includes software developed at Datadog (https://www.datadoghq.com/). - Copyright 2020-Present Datadog, Inc. diff --git a/.generator/templates/api_test.mustache b/.generator/templates/api_test.mustache deleted file mode 100644 index 2ab6515a9b9..00000000000 --- a/.generator/templates/api_test.mustache +++ /dev/null @@ -1,47 +0,0 @@ -=begin -{{> api_info}} -=end - -require 'spec_helper' -require 'json' - -# Unit tests for {{moduleName}}::{{classname}} -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -{{#operations}}describe '{{classname}}' do - before do - # run before each test - @api_instance = {{moduleName}}::{{classname}}.new - end - - after do - # run after each test - end - - describe 'test an instance of {{classname}}' do - it 'should create an instance of {{classname}}' do - expect(@api_instance).to be_instance_of({{moduleName}}::{{classname}}) - end - end - -{{#operation}} - # unit tests for {{operationId}} - {{#summary}} - # {{.}} - {{/summary}} - {{#notes}} - # {{.}} - {{/notes}} -{{#allParams}}{{#required}} # @param {{paramName}} {{description}} -{{/required}}{{/allParams}} # @param [Hash] opts the optional parameters -{{#allParams}}{{^required}} # @option opts [{{{dataType}}}] :{{paramName}} {{description}} -{{/required}}{{/allParams}} # @return [{{{returnType}}}{{^returnType}}nil{{/returnType}}] - describe '{{operationId}} test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -{{/operation}} -end -{{/operations}} diff --git a/.generator/templates/configuration_spec.mustache b/.generator/templates/configuration_spec.mustache deleted file mode 100644 index 22a113e8e32..00000000000 --- a/.generator/templates/configuration_spec.mustache +++ /dev/null @@ -1,34 +0,0 @@ -=begin -{{> api_info}} -=end - -require 'spec_helper' - -describe {{moduleName}}::Configuration do - let(:config) { {{moduleName}}::Configuration.default } - - before(:each) do - # uncomment below to setup host and base_path - # require 'URI' - # uri = URI.parse("{{{basePath}}}") - # {{moduleName}}.configure do |c| - # c.host = uri.host - # c.base_path = uri.path - # end - end - - describe '#base_url' do - it 'should have the default value' do - # uncomment below to test default value of the base path - # expect(config.base_url).to eq("{{{basePath}}}") - end - - it 'should remove trailing slashes' do - [nil, '', '/', '//'].each do |base_path| - config.base_path = base_path - # uncomment below to test trailing slashes - # expect(config.base_url).to eq("{{{basePath}}}") - end - end - end -end diff --git a/.generator/templates/configuration_tls_faraday_partial.mustache b/.generator/templates/configuration_tls_faraday_partial.mustache deleted file mode 100644 index e5f4085cda2..00000000000 --- a/.generator/templates/configuration_tls_faraday_partial.mustache +++ /dev/null @@ -1,29 +0,0 @@ - ### TLS/SSL setting - # Set this to false to skip verifying SSL certificate when calling API from https server. - # Default to true. - # - # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks. - # - # @return [true, false] - attr_accessor :ssl_verify - - ### TLS/SSL setting - # Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html) - # - # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks. - # - attr_accessor :ssl_verify_mode - - ### TLS/SSL setting - # Set this to customize the certificate file to verify the peer. - # - # @return [String] the path to the certificate file - attr_accessor :ssl_ca_file - - ### TLS/SSL setting - # Client certificate file (for client certificate) - attr_accessor :ssl_client_cert - - ### TLS/SSL setting - # Client private key file (for client certificate) - attr_accessor :ssl_client_key diff --git a/.generator/templates/configuration_tls_typhoeus_partial.mustache b/.generator/templates/configuration_tls_typhoeus_partial.mustache deleted file mode 100644 index b75954c254a..00000000000 --- a/.generator/templates/configuration_tls_typhoeus_partial.mustache +++ /dev/null @@ -1,34 +0,0 @@ - ### TLS/SSL setting - # Set this to false to skip verifying SSL certificate when calling API from https server. - # Default to true. - # - # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks. - # - # @return [true, false] - attr_accessor :verify_ssl - - ### TLS/SSL setting - # Set this to false to skip verifying SSL host name - # Default to true. - # - # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks. - # - # @return [true, false] - attr_accessor :verify_ssl_host - - ### TLS/SSL setting - # Set this to customize the certificate file to verify the peer. - # - # @return [String] the path to the certificate file - # - # @see The `cainfo` option of Typhoeus, `--cert` option of libcurl. Related source code: - # https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus/easy_factory.rb#L145 - attr_accessor :ssl_ca_cert - - ### TLS/SSL setting - # Client certificate file (for client certificate) - attr_accessor :cert_file - - ### TLS/SSL setting - # Client private key file (for client certificate) - attr_accessor :key_file diff --git a/.generator/templates/gemspec.mustache b/.generator/templates/gemspec.mustache deleted file mode 100644 index ea84291d48c..00000000000 --- a/.generator/templates/gemspec.mustache +++ /dev/null @@ -1,35 +0,0 @@ -# -*- encoding: utf-8 -*- - -=begin -{{> api_info}} -=end - -$:.push File.expand_path("../lib", __FILE__) -require "{{gemName}}/version" - -Gem::Specification.new do |s| - s.name = "{{gemName}}{{^gemName}}{{{appName}}}{{/gemName}}" - s.version = {{moduleName}}::VERSION - s.platform = Gem::Platform::RUBY - s.authors = ["{{gemAuthor}}{{^gemAuthor}}OpenAPI-Generator{{/gemAuthor}}"] - s.email = ["{{gemAuthorEmail}}{{^gemAuthorEmail}}{{infoEmail}}{{/gemAuthorEmail}}"] - s.homepage = "{{gemHomepage}}{{^gemHomepage}}https://openapi-generator.tech{{/gemHomepage}}" - s.summary = "{{gemSummary}}{{^gemSummary}}{{{appName}}} Ruby Gem{{/gemSummary}}" - s.description = "{{gemDescription}}{{^gemDescription}}{{{appDescription}}}{{^appDescription}}{{{appName}}} Ruby Gem{{/appDescription}}{{/gemDescription}}" - s.license = "{{{gemLicense}}}{{^gemLicense}}Unlicense{{/gemLicense}}" - s.required_ruby_version = "{{{gemRequiredRubyVersion}}}{{^gemRequiredRubyVersion}}>= 2.4{{/gemRequiredRubyVersion}}" - - {{#isFaraday}} - s.add_runtime_dependency 'faraday', '~> 1.0', '>= 1.0.1' - {{/isFaraday}} - {{^isFaraday}} - s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1' - {{/isFaraday}} - - s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0' - - s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? } - s.test_files = `find spec/*`.split("\n") - s.executables = [] - s.require_paths = ["lib"] -end diff --git a/.generator/templates/git_push.sh.mustache b/.generator/templates/git_push.sh.mustache deleted file mode 100755 index 305f9c115ce..00000000000 --- a/.generator/templates/git_push.sh.mustache +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="{{{gitHost}}}" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="{{{gitUserId}}}" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="{{{gitRepoId}}}" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="{{{releaseNote}}}" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/.generator/templates/gitignore.mustache b/.generator/templates/gitignore.mustache deleted file mode 100644 index 05a17cb8f0a..00000000000 --- a/.generator/templates/gitignore.mustache +++ /dev/null @@ -1,39 +0,0 @@ -# Generated by: https://openapi-generator.tech -# - -*.gem -*.rbc -/.config -/coverage/ -/InstalledFiles -/pkg/ -/spec/reports/ -/spec/examples.txt -/test/tmp/ -/test/version_tmp/ -/tmp/ - -## Specific to RubyMotion: -.dat* -.repl_history -build/ - -## Documentation cache and generated files: -/.yardoc/ -/_yardoc/ -/doc/ -/rdoc/ - -## Environment normalization: -/.bundle/ -/vendor/bundle -/lib/bundler/man/ - -# for a library or gem, you might want to ignore these files since the code is -# intended to run in multiple environments; otherwise, check them in: -# Gemfile.lock -# .ruby-version -# .ruby-gemset - -# unless supporting rvm < 1.11.0 or doing something fancy, ignore this: -.rvmrc diff --git a/.generator/templates/model.mustache b/.generator/templates/model.mustache deleted file mode 100644 index fa8f8c5bbb1..00000000000 --- a/.generator/templates/model.mustache +++ /dev/null @@ -1,26 +0,0 @@ -=begin -{{> api_info}} -=end - -require 'date' -require 'time' - -module {{moduleName}} -{{#models}} -{{#model}} -{{#isEnum}} -{{>partial_model_enum_class}} -{{/isEnum}} -{{^isEnum}} -{{#oneOf}} -{{#-first}} -{{>partial_oneof_module}} -{{/-first}} -{{/oneOf}} -{{^oneOf}} -{{>partial_model_generic}} -{{/oneOf}} -{{/isEnum}} -{{/model}} -{{/models}} -end diff --git a/.generator/templates/model_doc.mustache b/.generator/templates/model_doc.mustache deleted file mode 100644 index 37809685d1c..00000000000 --- a/.generator/templates/model_doc.mustache +++ /dev/null @@ -1,12 +0,0 @@ -{{#models}} -{{#model}} -{{#oneOf}} -{{#-first}} -{{>partial_oneof_module_doc}} -{{/-first}} -{{/oneOf}} -{{^oneOf}} -{{>partial_model_generic_doc}} -{{/oneOf}} -{{/model}} -{{/models}} diff --git a/.generator/templates/model_test.mustache b/.generator/templates/model_test.mustache deleted file mode 100644 index 86e5438d61a..00000000000 --- a/.generator/templates/model_test.mustache +++ /dev/null @@ -1,77 +0,0 @@ -=begin -{{> api_info}} -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for {{moduleName}}::{{classname}} -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -{{#models}} -{{#model}} -describe {{moduleName}}::{{classname}} do -{{^oneOf}} - let(:instance) { {{moduleName}}::{{classname}}.new } - - describe 'test an instance of {{classname}}' do - it 'should create an instance of {{classname}}' do - expect(instance).to be_instance_of({{moduleName}}::{{classname}}) - end - end -{{#vars}} - describe 'test attribute "{{{name}}}"' do - it 'should work' do - {{#isEnum}} - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('{{{dataType}}}', [{{#allowableValues}}{{#enumVars}}{{{value}}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}]) - # validator.allowable_values.each do |value| - # expect { instance.{{name}} = value }.not_to raise_error - # end - {{/isEnum}} - {{^isEnum}} - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - {{/isEnum}} - end - end - -{{/vars}} -{{/oneOf}} -{{#oneOf}} -{{#-first}} - describe '.openapi_one_of' do - it 'lists the items referenced in the oneOf array' do - expect(described_class.openapi_one_of).to_not be_empty - end - end - - {{#discriminator}} - {{#propertyName}} - describe '.openapi_discriminator_name' do - it 'returns the value of the "discriminator" property' do - expect(described_class.openapi_discriminator_name).to_not be_empty - end - end - - {{/propertyName}} - {{#mappedModels}} - {{#-first}} - describe '.openapi_discriminator_mapping' do - it 'returns the key/values of the "mapping" property' do - expect(described_class.openapi_discriminator_mapping.values.sort).to eq(described_class.openapi_one_of.sort) - end - end - - {{/-first}} - {{/mappedModels}} - {{/discriminator}} - describe '.build' do - it 'returns the correct model' do - end - end -{{/-first}} -{{/oneOf}} -end -{{/model}} -{{/models}} diff --git a/.generator/templates/partial_model_generic.mustache b/.generator/templates/partial_model_generic.mustache deleted file mode 100644 index b2c9678f18b..00000000000 --- a/.generator/templates/partial_model_generic.mustache +++ /dev/null @@ -1,384 +0,0 @@ - {{#description}} - # {{{.}}} - {{/description}} - class {{classname}}{{#parent}} < {{{.}}}{{/parent}} - # Whether the object has unparsed attributes - # @!visibility private - attr_accessor :_unparsed - - {{#vars}} - {{#description}} - # {{{.}}} - {{/description}} - attr_accessor :{{{name}}} - - {{/vars}} -{{#hasEnums}} - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - -{{/hasEnums}} - # Attribute mapping from ruby-style variable name to JSON key. - # @!visibility private - def self.attribute_map - { - {{#vars}} - :'{{{name}}}' => :'{{{baseName}}}'{{^-last}},{{/-last}} - {{/vars}} - } - end - - # Returns all the JSON keys this model knows about{{#parent}}, including the ones defined in its parent(s){{/parent}} - # @!visibility private - def self.acceptable_attributes - {{^parent}} - attribute_map.values - {{/parent}} - {{#parent}} - attribute_map.values.concat(superclass.acceptable_attributes) - {{/parent}} - end - - # Attribute type mapping. - # @!visibility private - def self.openapi_types - { - {{#vars}} - :'{{{name}}}' => :'{{{dataType}}}'{{^-last}},{{/-last}} - {{/vars}} - } - end - - # List of attributes with nullable: true - # @!visibility private - def self.openapi_nullable - Set.new([ - {{#vars}} - {{#isNullable}} - :'{{{name}}}'{{^-last}},{{/-last}} - {{/isNullable}} - {{/vars}} - ]) - end - - {{#anyOf}} - {{#-first}} - # List of class defined in anyOf (OpenAPI v3) - def self.openapi_any_of - [ - {{/-first}} - :'{{{.}}}'{{^-last}},{{/-last}} - {{#-last}} - ] - end - - {{/-last}} - {{/anyOf}} - {{#allOf}} - {{#-first}} - # List of class defined in allOf (OpenAPI v3) - def self.openapi_all_of - [ - {{/-first}} - :'{{{.}}}'{{^-last}},{{/-last}} - {{#-last}} - ] - end - - {{/-last}} - {{/allOf}} - {{#discriminator}} - {{#propertyName}} - # discriminator's property name in OpenAPI v3 - def self.openapi_discriminator_name - :'{{{.}}}' - end - - {{/propertyName}} - {{/discriminator}} - # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `{{{moduleName}}}::{{{classname}}}` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `{{{moduleName}}}::{{{classname}}}`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - {{#parent}} - - # call parent's initialize - super(attributes) - {{/parent}} - {{#vars}} - - if attributes.key?(:'{{{name}}}') - {{#isArray}} - if (value = attributes[:'{{{name}}}']).is_a?(Array) - self.{{{name}}} = value - end - {{/isArray}} - {{#isMap}} - if (value = attributes[:'{{{name}}}']).is_a?(Hash) - self.{{{name}}} = value - end - {{/isMap}} - {{^isContainer}} - self.{{{name}}} = attributes[:'{{{name}}}'] - {{/isContainer}} - {{#defaultValue}} - else - self.{{{name}}} = {{{defaultValue}}} - {{/defaultValue}} - end - {{/vars}} - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = {{^parent}}Array.new{{/parent}}{{#parent}}super{{/parent}} - {{#vars}} - {{^isNullable}} - {{#required}} - if @{{{name}}}.nil? - invalid_properties.push('invalid value for "{{{name}}}", {{{name}}} cannot be nil.') - end - - {{/required}} - {{/isNullable}} - {{#hasValidation}} - {{#maxLength}} - if {{^required}}!@{{{name}}}.nil? && {{/required}}@{{{name}}}.to_s.length > {{{maxLength}}} - invalid_properties.push('invalid value for "{{{name}}}", the character length must be smaller than or equal to {{{maxLength}}}.') - end - - {{/maxLength}} - {{#minLength}} - if {{^required}}!@{{{name}}}.nil? && {{/required}}@{{{name}}}.to_s.length < {{{minLength}}} - invalid_properties.push('invalid value for "{{{name}}}", the character length must be great than or equal to {{{minLength}}}.') - end - - {{/minLength}} - {{#maximum}} - if {{^required}}!@{{{name}}}.nil? && {{/required}}@{{{name}}} >{{#exclusiveMaximum}}={{/exclusiveMaximum}} {{{maximum}}} - invalid_properties.push('invalid value for "{{{name}}}", must be smaller than {{^exclusiveMaximum}}or equal to {{/exclusiveMaximum}}{{{maximum}}}.') - end - - {{/maximum}} - {{#minimum}} - if {{^required}}!@{{{name}}}.nil? && {{/required}}@{{{name}}} <{{#exclusiveMinimum}}={{/exclusiveMinimum}} {{{minimum}}} - invalid_properties.push('invalid value for "{{{name}}}", must be greater than {{^exclusiveMinimum}}or equal to {{/exclusiveMinimum}}{{{minimum}}}.') - end - - {{/minimum}} - {{#pattern}} - pattern = Regexp.new({{{pattern}}}) - if {{^required}}!@{{{name}}}.nil? && {{/required}}@{{{name}}} !~ pattern - invalid_properties.push("invalid value for \"{{{name}}}\", must conform to the pattern #{pattern}.") - end - - {{/pattern}} - {{#maxItems}} - if {{^required}}!@{{{name}}}.nil? && {{/required}}@{{{name}}}.length > {{{maxItems}}} - invalid_properties.push('invalid value for "{{{name}}}", number of items must be less than or equal to {{{maxItems}}}.') - end - - {{/maxItems}} - {{#minItems}} - if {{^required}}!@{{{name}}}.nil? && {{/required}}@{{{name}}}.length < {{{minItems}}} - invalid_properties.push('invalid value for "{{{name}}}", number of items must be greater than or equal to {{{minItems}}}.') - end - - {{/minItems}} - {{/hasValidation}} - {{/vars}} - invalid_properties - 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? - {{#vars}} - {{^isNullable}} - {{#required}} - return false if @{{{name}}}.nil? - {{/required}} - {{/isNullable}} - {{#isEnum}} - {{^isContainer}} - {{{name}}}_validator = EnumAttributeValidator.new('{{{dataType}}}', [{{#allowableValues}}{{#enumVars}}{{{value}}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}]) - return false unless {{{name}}}_validator.valid?(@{{{name}}}) - {{/isContainer}} - {{/isEnum}} - {{#hasValidation}} - {{#maxLength}} - return false if {{^required}}!@{{{name}}}.nil? && {{/required}}@{{{name}}}.to_s.length > {{{maxLength}}} - {{/maxLength}} - {{#minLength}} - return false if {{^required}}!@{{{name}}}.nil? && {{/required}}@{{{name}}}.to_s.length < {{{minLength}}} - {{/minLength}} - {{#maximum}} - return false if {{^required}}!@{{{name}}}.nil? && {{/required}}@{{{name}}} >{{#exclusiveMaximum}}={{/exclusiveMaximum}} {{{maximum}}} - {{/maximum}} - {{#minimum}} - return false if {{^required}}!@{{{name}}}.nil? && {{/required}}@{{{name}}} <{{#exclusiveMinimum}}={{/exclusiveMinimum}} {{{minimum}}} - {{/minimum}} - {{#pattern}} - return false if {{^required}}!@{{{name}}}.nil? && {{/required}}@{{{name}}} !~ Regexp.new({{{pattern}}}) - {{/pattern}} - {{#maxItems}} - return false if {{^required}}!@{{{name}}}.nil? && {{/required}}@{{{name}}}.length > {{{maxItems}}} - {{/maxItems}} - {{#minItems}} - return false if {{^required}}!@{{{name}}}.nil? && {{/required}}@{{{name}}}.length < {{{minItems}}} - {{/minItems}} - {{/hasValidation}} - {{/vars}} - {{#anyOf}} - {{#-first}} - _any_of_found = false - self.class.openapi_any_of.each do |_class| - _any_of = {{moduleName}}.const_get(_class).build_from_hash(self.to_hash) - if _any_of.valid? - _any_of_found = true - end - end - - if !_any_of_found - return false - end - - {{/-first}} - {{/anyOf}} - true{{#parent}} && super{{/parent}} - end - - {{#vars}} - {{#isEnum}} - {{^isContainer}} - # Custom attribute writer method checking allowed values (enum). - # @param {{{name}}} [Object] {{{name}}} Object to be assigned - def {{{name}}}=({{{name}}}) - validator = EnumAttributeValidator.new('{{{dataType}}}', [{{#allowableValues}}{{#enumVars}}{{{value}}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}]) - unless validator.valid?({{{name}}}) - fail ArgumentError, "invalid value for \"{{{name}}}\", must be one of #{validator.allowable_values}." - end - @{{{name}}} = {{{name}}} - end - - {{/isContainer}} - {{/isEnum}} - {{^isEnum}} - {{#hasValidation}} - # Custom attribute writer method with validation - # @param {{{name}}} [Object] {{{name}}} Value to be assigned - def {{{name}}}=({{{name}}}) - {{^isNullable}} - {{#required}} - if {{{name}}}.nil? - fail ArgumentError, '{{{name}}} cannot be nil' - end - - {{/required}} - {{/isNullable}} - {{#maxLength}} - if {{^required}}!{{{name}}}.nil? && {{/required}}{{{name}}}.to_s.length > {{{maxLength}}} - fail ArgumentError, 'invalid value for "{{{name}}}", the character length must be smaller than or equal to {{{maxLength}}}.' - end - - {{/maxLength}} - {{#minLength}} - if {{^required}}!{{{name}}}.nil? && {{/required}}{{{name}}}.to_s.length < {{{minLength}}} - fail ArgumentError, 'invalid value for "{{{name}}}", the character length must be great than or equal to {{{minLength}}}.' - end - - {{/minLength}} - {{#maximum}} - if {{^required}}!{{{name}}}.nil? && {{/required}}{{{name}}} >{{#exclusiveMaximum}}={{/exclusiveMaximum}} {{{maximum}}} - fail ArgumentError, 'invalid value for "{{{name}}}", must be smaller than {{^exclusiveMaximum}}or equal to {{/exclusiveMaximum}}{{{maximum}}}.' - end - - {{/maximum}} - {{#minimum}} - if {{^required}}!{{{name}}}.nil? && {{/required}}{{{name}}} <{{#exclusiveMinimum}}={{/exclusiveMinimum}} {{{minimum}}} - fail ArgumentError, 'invalid value for "{{{name}}}", must be greater than {{^exclusiveMinimum}}or equal to {{/exclusiveMinimum}}{{{minimum}}}.' - end - - {{/minimum}} - {{#pattern}} - pattern = Regexp.new({{{pattern}}}) - if {{^required}}!{{{name}}}.nil? && {{/required}}{{{name}}} !~ pattern - fail ArgumentError, "invalid value for \"{{{name}}}\", must conform to the pattern #{pattern}." - end - - {{/pattern}} - {{#maxItems}} - if {{^required}}!{{{name}}}.nil? && {{/required}}{{{name}}}.length > {{{maxItems}}} - fail ArgumentError, 'invalid value for "{{{name}}}", number of items must be less than or equal to {{{maxItems}}}.' - end - - {{/maxItems}} - {{#minItems}} - if {{^required}}!{{{name}}}.nil? && {{/required}}{{{name}}}.length < {{{minItems}}} - fail ArgumentError, 'invalid value for "{{{name}}}", number of items must be greater than or equal to {{{minItems}}}.' - end - - {{/minItems}} - @{{{name}}} = {{{name}}} - end - - {{/hasValidation}} - {{/isEnum}} - {{/vars}} - # Checks equality by comparing each attribute. - # @param o [Object] Object to be compared - # @!visibility private - def ==(o) - return true if self.equal?(o) - self.class == o.class{{#vars}} && - {{name}} == o.{{name}}{{/vars}}{{#parent}} && super(o){{/parent}} - end - - # @see the `==` method - # @param o [Object] Object to be compared - # @!visibility private - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - # @!visibility private - def hash - [{{#vars}}{{name}}{{^-last}}, {{/-last}}{{/vars}}].hash - end - -{{> base_object}} - end diff --git a/.generator/templates/partial_model_generic_doc.mustache b/.generator/templates/partial_model_generic_doc.mustache deleted file mode 100644 index 95bdb7107c2..00000000000 --- a/.generator/templates/partial_model_generic_doc.mustache +++ /dev/null @@ -1,28 +0,0 @@ -# {{moduleName}}::{{classname}} - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -{{#vars}} -| **{{name}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{dataType}}**]({{complexType}}.md){{/isPrimitiveType}} | {{description}} | {{^required}}[optional]{{/required}}{{#isReadOnly}}[readonly]{{/isReadOnly}}{{#defaultValue}}[default to {{.}}]{{/defaultValue}} | -{{/vars}} - -## Example - -```ruby -require '{{{gemName}}}' - -{{^vars}} -instance = {{moduleName}}::{{classname}}.new() -{{/vars}} -{{#vars}} -{{#-first}} -instance = {{moduleName}}::{{classname}}.new( -{{/-first}} - {{name}}: {{example}}{{^-last}},{{/-last}} -{{#-last}} -) -{{/-last}} -{{/vars}} -``` diff --git a/.generator/templates/partial_oneof_module_doc.mustache b/.generator/templates/partial_oneof_module_doc.mustache deleted file mode 100644 index 64a6c32dc85..00000000000 --- a/.generator/templates/partial_oneof_module_doc.mustache +++ /dev/null @@ -1,92 +0,0 @@ -# {{moduleName}}::{{classname}} - -## Class instance methods - -### `openapi_one_of` - -Returns the list of classes defined in oneOf. - -#### Example - -```ruby -require '{{{gemName}}}' - -{{moduleName}}::{{classname}}.openapi_one_of -# => -{{#oneOf}} -{{#-first}} -# [ -{{/-first}} -# :'{{{.}}}'{{^-last}},{{/-last}} -{{#-last}} -# ] -{{/-last}} -{{/oneOf}} -``` -{{#discriminator}} -{{#propertyName}} - -### `openapi_discriminator_name` - -Returns the discriminator's property name. - -#### Example - -```ruby -require '{{{gemName}}}' - -{{moduleName}}::{{classname}}.openapi_discriminator_name -# => :'{{{.}}}' -``` -{{/propertyName}} -{{#mappedModels}} -{{#-first}} - -### `openapi_discriminator_name` - -Returns the discriminator's mapping. - -#### Example - -```ruby -require '{{{gemName}}}' - -{{moduleName}}::{{classname}}.openapi_discriminator_mapping -# => -# { -{{/-first}} -# :'{{{mappingName}}}' => :'{{{modelName}}}'{{^-last}},{{/-last}} -{{#-last}} -# } -{{/-last}} -{{/mappedModels}} -{{/discriminator}} - -### build - -Find the appropriate object from the `openapi_one_of` list and casts the data into it. - -#### Example - -```ruby -require '{{{gemName}}}' - -{{moduleName}}::{{classname}}.build(data) -# => {{#oneOf}}{{#-first}}#<{{{.}}}:0x00007fdd4aab02a0>{{/-first}}{{/oneOf}} - -{{moduleName}}::{{classname}}.build(data_that_doesnt_match) -# => nil -``` - -#### Parameters - -| Name | Type | Description | -| ---- | ---- | ----------- | -| **data** | **Mixed** | data to be matched against the list of oneOf items | - -#### Return type - -{{#oneOf}} -- `{{{.}}}` -{{/oneOf}} -- `nil` (if no type matches) diff --git a/.generator/templates/rspec.mustache b/.generator/templates/rspec.mustache deleted file mode 100644 index 83e16f80447..00000000000 --- a/.generator/templates/rspec.mustache +++ /dev/null @@ -1,2 +0,0 @@ ---color ---require spec_helper diff --git a/.generator/templates/rubocop.mustache b/.generator/templates/rubocop.mustache deleted file mode 100644 index d32b2b1cdab..00000000000 --- a/.generator/templates/rubocop.mustache +++ /dev/null @@ -1,148 +0,0 @@ -# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license) -# Automatically generated by OpenAPI Generator (https://openapi-generator.tech) -AllCops: - TargetRubyVersion: 2.4 - # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop - # to ignore them, so only the ones explicitly set in this file are enabled. - DisabledByDefault: true - Exclude: - - '**/templates/**/*' - - '**/vendor/**/*' - - 'actionpack/lib/action_dispatch/journey/parser.rb' - -# Prefer &&/|| over and/or. -Style/AndOr: - Enabled: true - -# Align `when` with `case`. -Layout/CaseIndentation: - Enabled: true - -# Align comments with method definitions. -Layout/CommentIndentation: - Enabled: true - -Layout/ElseAlignment: - Enabled: true - -Layout/EmptyLineAfterMagicComment: - Enabled: true - -# In a regular class definition, no empty lines around the body. -Layout/EmptyLinesAroundClassBody: - Enabled: true - -# In a regular method definition, no empty lines around the body. -Layout/EmptyLinesAroundMethodBody: - Enabled: true - -# In a regular module definition, no empty lines around the body. -Layout/EmptyLinesAroundModuleBody: - Enabled: true - -Layout/FirstArgumentIndentation: - Enabled: true - -# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. -Style/HashSyntax: - Enabled: false - -# Method definitions after `private` or `protected` isolated calls need one -# extra level of indentation. -Layout/IndentationConsistency: - Enabled: true - EnforcedStyle: indented_internal_methods - -# Two spaces, no tabs (for indentation). -Layout/IndentationWidth: - Enabled: true - -Layout/LeadingCommentSpace: - Enabled: true - -Layout/SpaceAfterColon: - Enabled: true - -Layout/SpaceAfterComma: - Enabled: true - -Layout/SpaceAroundEqualsInParameterDefault: - Enabled: true - -Layout/SpaceAroundKeyword: - Enabled: true - -Layout/SpaceAroundOperators: - Enabled: true - -Layout/SpaceBeforeComma: - Enabled: true - -Layout/SpaceBeforeFirstArg: - Enabled: true - -Style/DefWithParentheses: - Enabled: true - -# Defining a method with parameters needs parentheses. -Style/MethodDefParentheses: - Enabled: true - -Style/FrozenStringLiteralComment: - Enabled: false - EnforcedStyle: always - -# Use `foo {}` not `foo{}`. -Layout/SpaceBeforeBlockBraces: - Enabled: true - -# Use `foo { bar }` not `foo {bar}`. -Layout/SpaceInsideBlockBraces: - Enabled: true - -# Use `{ a: 1 }` not `{a:1}`. -Layout/SpaceInsideHashLiteralBraces: - Enabled: true - -Layout/SpaceInsideParens: - Enabled: true - -# Check quotes usage according to lint rule below. -#Style/StringLiterals: -# Enabled: true -# EnforcedStyle: single_quotes - -# Detect hard tabs, no hard tabs. -Layout/IndentationStyle: - Enabled: true - -# Blank lines should not have any spaces. -Layout/TrailingEmptyLines: - Enabled: true - -# No trailing whitespace. -Layout/TrailingWhitespace: - Enabled: false - -# Use quotes for string literals when they are enough. -Style/RedundantPercentQ: - Enabled: true - -# Align `end` with the matching keyword or starting expression except for -# assignments, where it should be aligned with the LHS. -Layout/EndAlignment: - Enabled: true - EnforcedStyleAlignWith: variable - AutoCorrect: true - -# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg. -Lint/RequireParentheses: - Enabled: true - -Style/RedundantReturn: - Enabled: true - AllowMultipleReturnValues: true - -Style/Semicolon: - Enabled: true - AllowAsExpressionSeparator: true diff --git a/.generator/templates/spec_helper.mustache b/.generator/templates/spec_helper.mustache deleted file mode 100644 index 8f4bb754165..00000000000 --- a/.generator/templates/spec_helper.mustache +++ /dev/null @@ -1,103 +0,0 @@ -=begin -{{> api_info}} -=end - -# load the gem -require '{{{gemName}}}' - -# The following was generated by the `rspec --init` command. Conventionally, all -# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. -# The generated `.rspec` file contains `--require spec_helper` which will cause -# this file to always be loaded, without a need to explicitly require it in any -# files. -# -# Given that it is always loaded, you are encouraged to keep this file as -# light-weight as possible. Requiring heavyweight dependencies from this file -# will add to the boot time of your test suite on EVERY test run, even for an -# individual file that may not need all of that loaded. Instead, consider making -# a separate helper file that requires the additional dependencies and performs -# the additional setup, and require it from the spec files that actually need -# it. -# -# The `.rspec` file also contains a few flags that are not defaults but that -# users commonly want. -# -# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration -RSpec.configure do |config| - # rspec-expectations config goes here. You can use an alternate - # assertion/expectation library such as wrong or the stdlib/minitest - # assertions if you prefer. - config.expect_with :rspec do |expectations| - # This option will default to `true` in RSpec 4. It makes the `description` - # and `failure_message` of custom matchers include text for helper methods - # defined using `chain`, e.g.: - # be_bigger_than(2).and_smaller_than(4).description - # # => "be bigger than 2 and smaller than 4" - # ...rather than: - # # => "be bigger than 2" - expectations.include_chain_clauses_in_custom_matcher_descriptions = true - end - - # rspec-mocks config goes here. You can use an alternate test double - # library (such as bogus or mocha) by changing the `mock_with` option here. - config.mock_with :rspec do |mocks| - # Prevents you from mocking or stubbing a method that does not exist on - # a real object. This is generally recommended, and will default to - # `true` in RSpec 4. - mocks.verify_partial_doubles = true - end - -# The settings below are suggested to provide a good initial experience -# with RSpec, but feel free to customize to your heart's content. -=begin - # These two settings work together to allow you to limit a spec run - # to individual examples or groups you care about by tagging them with - # `:focus` metadata. When nothing is tagged with `:focus`, all examples - # get run. - config.filter_run :focus - config.run_all_when_everything_filtered = true - - # Allows RSpec to persist some state between runs in order to support - # the `--only-failures` and `--next-failure` CLI options. We recommend - # you configure your source control system to ignore this file. - config.example_status_persistence_file_path = "spec/examples.txt" - - # Limits the available syntax to the non-monkey patched syntax that is - # recommended. For more details, see: - # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/ - # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ - # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode - config.disable_monkey_patching! - - # This setting enables warnings. It's recommended, but in some cases may - # be too noisy due to issues in dependencies. - config.warnings = true - - # Many RSpec users commonly either run the entire suite or an individual - # file, and it's useful to allow more verbose output when running an - # individual spec file. - if config.files_to_run.one? - # Use the documentation formatter for detailed output, - # unless a formatter has already been configured - # (e.g. via a command-line flag). - config.default_formatter = 'doc' - end - - # Print the 10 slowest examples and example groups at the - # end of the spec run, to help surface which specs are running - # particularly slow. - config.profile_examples = 10 - - # Run specs in random order to surface order dependencies. If you find an - # order dependency and want to debug it, you can fix the order by providing - # the seed, which is printed after each run. - # --seed 1234 - config.order = :random - - # Seed global randomization in this process using the `--seed` CLI option. - # Setting this allows you to use `--seed` to deterministically reproduce - # test failures related to randomization by passing the same `--seed` value - # as the one that triggered the failure. - Kernel.srand config.seed -=end -end diff --git a/.generator/templates/travis.mustache b/.generator/templates/travis.mustache deleted file mode 100644 index 0d1ed3815a6..00000000000 --- a/.generator/templates/travis.mustache +++ /dev/null @@ -1,14 +0,0 @@ -language: ruby -cache: bundler -rvm: - - 2.3 - - 2.4 - - 2.5 - - 2.6 - - 2.7 - - 3.0 -script: - - bundle install --path vendor/bundle - - bundle exec rspec - - gem build {{{gemName}}}.gemspec - - gem install ./{{{gemName}}}-{{{gemVersion}}}.gem diff --git a/.generator/templates/version.mustache b/.generator/templates/version.mustache deleted file mode 100644 index 3ed97bceab3..00000000000 --- a/.generator/templates/version.mustache +++ /dev/null @@ -1,7 +0,0 @@ -=begin -{{> api_info}} -=end - -module {{moduleName}} - VERSION = '{{gemVersion}}' -end diff --git a/.gitignore b/.gitignore index fc8e7ea5706..8c345094183 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,9 @@ coverage/ datadog_api_client-*.gem vendor/ .generator/lib + +__pycache__ +*.pyc +*.pyo + +.yardoc/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 72d29bd3107..7d5195558a7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: hooks: - id: generate name: Generate - language: node + language: system entry: make files: '^(\.generator/.*|\.pre-commit-config\.yaml|Makefile)' pass_filenames: false @@ -20,12 +20,12 @@ repos: # When updating the version of prettier, make sure to check the pre-commit file # And keep the `entry` here up to date https://github.com/pre-commit/mirrors-prettier/blob/master/.pre-commit-hooks.yaml - prettier@2.5.1 - - id: openapi-generator - name: OpenAPI-generator - language: node - entry: bash -c "cd .generator && openapi-generator-cli generate" + - id: generator + name: generator + language: python + entry: bash -c "cd .generator && poetry install && poetry run python -m generator -i ./schemas/v1/openapi.yaml -o ../lib/ && poetry run python -m generator -i schemas/v2/openapi.yaml -o ../lib/" files: "^.generator/.*" stages: [manual] pass_filenames: false additional_dependencies: - - "@openapitools/openapi-generator-cli" + - "poetry" diff --git a/Makefile b/Makefile index 894f2c14045..966147e7709 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,5 @@ .PHONY: all -all: .generator .env - @rm -rf ./lib/v1 ./lib/v2 ./examples/generated - @pre-commit run --all-files --hook-stage=manual openapi-generator || true - @mkdir -p spec/v1 spec/v2 examples/generated/v1 examples/generated/v2 - @cp -R v1/lib/datadog_api_client ./lib/ - @cp -R v2/lib/datadog_api_client ./lib/ - @rm lib/datadog_api_client/v*/version.rb - @ls v1/docs/*API.md | grep -v IPPrefixesAPI.md | xargs -n1 ./extract-code-blocks.awk -v output="examples/generated/v1" - @ls v2/docs/*API.md | grep -v IPPrefixesAPI.md | xargs -n1 ./extract-code-blocks.awk -v output="examples/generated/v2" - @rm -rf v1 v2 +all: + @rm -rf ./lib/v1 ./lib/v2 + @pre-commit run --all-files --hook-stage=manual generator || true @pre-commit run --all-files --hook-stage=manual docs || echo "modified files" - -.PHONY: .env -.env: - @echo "export UID=$(shell id -u)\nexport GID=$(shell id -g)" > $@ diff --git a/lib/datadog_api_client/v1.rb b/lib/datadog_api_client/v1.rb index cc7e4ae7d7c..19a3a87675d 100644 --- a/lib/datadog_api_client/v1.rb +++ b/lib/datadog_api_client/v1.rb @@ -20,7 +20,22 @@ require 'datadog_api_client/v1/configuration' # Models +require 'datadog_api_client/v1/models/access_role' +require 'datadog_api_client/v1/models/alert_graph_widget_definition' +require 'datadog_api_client/v1/models/alert_graph_widget_definition_type' +require 'datadog_api_client/v1/models/alert_value_widget_definition' +require 'datadog_api_client/v1/models/alert_value_widget_definition_type' require 'datadog_api_client/v1/models/api_error_response' +require 'datadog_api_client/v1/models/api_key' +require 'datadog_api_client/v1/models/api_key_list_response' +require 'datadog_api_client/v1/models/api_key_response' +require 'datadog_api_client/v1/models/apm_stats_query_column_type' +require 'datadog_api_client/v1/models/apm_stats_query_definition' +require 'datadog_api_client/v1/models/apm_stats_query_row_type' +require 'datadog_api_client/v1/models/application_key' +require 'datadog_api_client/v1/models/application_key_list_response' +require 'datadog_api_client/v1/models/application_key_response' +require 'datadog_api_client/v1/models/authentication_validation_response' require 'datadog_api_client/v1/models/aws_account' require 'datadog_api_client/v1/models/aws_account_and_lambda_request' require 'datadog_api_client/v1/models/aws_account_create_response' @@ -37,21 +52,6 @@ require 'datadog_api_client/v1/models/aws_tag_filter_create_request' require 'datadog_api_client/v1/models/aws_tag_filter_delete_request' require 'datadog_api_client/v1/models/aws_tag_filter_list_response' -require 'datadog_api_client/v1/models/access_role' -require 'datadog_api_client/v1/models/alert_graph_widget_definition' -require 'datadog_api_client/v1/models/alert_graph_widget_definition_type' -require 'datadog_api_client/v1/models/alert_value_widget_definition' -require 'datadog_api_client/v1/models/alert_value_widget_definition_type' -require 'datadog_api_client/v1/models/api_key' -require 'datadog_api_client/v1/models/api_key_list_response' -require 'datadog_api_client/v1/models/api_key_response' -require 'datadog_api_client/v1/models/apm_stats_query_column_type' -require 'datadog_api_client/v1/models/apm_stats_query_definition' -require 'datadog_api_client/v1/models/apm_stats_query_row_type' -require 'datadog_api_client/v1/models/application_key' -require 'datadog_api_client/v1/models/application_key_list_response' -require 'datadog_api_client/v1/models/application_key_response' -require 'datadog_api_client/v1/models/authentication_validation_response' require 'datadog_api_client/v1/models/azure_account' require 'datadog_api_client/v1/models/cancel_downtimes_by_scope_request' require 'datadog_api_client/v1/models/canceled_downtimes_ids' @@ -126,6 +126,7 @@ require 'datadog_api_client/v1/models/free_text_widget_definition' require 'datadog_api_client/v1/models/free_text_widget_definition_type' require 'datadog_api_client/v1/models/funnel_query' +require 'datadog_api_client/v1/models/funnel_query_steps_item' require 'datadog_api_client/v1/models/funnel_request_type' require 'datadog_api_client/v1/models/funnel_source' require 'datadog_api_client/v1/models/funnel_widget_definition' @@ -140,9 +141,6 @@ require 'datadog_api_client/v1/models/graph_snapshot' require 'datadog_api_client/v1/models/group_widget_definition' require 'datadog_api_client/v1/models/group_widget_definition_type' -require 'datadog_api_client/v1/models/http_log_error' -require 'datadog_api_client/v1/models/http_log_item' -require 'datadog_api_client/v1/models/http_method' require 'datadog_api_client/v1/models/heat_map_widget_definition' require 'datadog_api_client/v1/models/heat_map_widget_definition_type' require 'datadog_api_client/v1/models/heat_map_widget_request' @@ -165,21 +163,24 @@ require 'datadog_api_client/v1/models/hourly_usage_attribution_pagination' require 'datadog_api_client/v1/models/hourly_usage_attribution_response' require 'datadog_api_client/v1/models/hourly_usage_attribution_usage_type' +require 'datadog_api_client/v1/models/http_log_error' +require 'datadog_api_client/v1/models/http_log_item' +require 'datadog_api_client/v1/models/http_method' +require 'datadog_api_client/v1/models/idp_form_data' +require 'datadog_api_client/v1/models/idp_response' require 'datadog_api_client/v1/models/i_frame_widget_definition' require 'datadog_api_client/v1/models/i_frame_widget_definition_type' +require 'datadog_api_client/v1/models/image_widget_definition' +require 'datadog_api_client/v1/models/image_widget_definition_type' +require 'datadog_api_client/v1/models/intake_payload_accepted' +require 'datadog_api_client/v1/models/ip_prefixes_agents' require 'datadog_api_client/v1/models/ip_prefixes_api' require 'datadog_api_client/v1/models/ip_prefixes_apm' -require 'datadog_api_client/v1/models/ip_prefixes_agents' require 'datadog_api_client/v1/models/ip_prefixes_logs' require 'datadog_api_client/v1/models/ip_prefixes_process' require 'datadog_api_client/v1/models/ip_prefixes_synthetics' require 'datadog_api_client/v1/models/ip_prefixes_webhooks' require 'datadog_api_client/v1/models/ip_ranges' -require 'datadog_api_client/v1/models/idp_form_data' -require 'datadog_api_client/v1/models/idp_response' -require 'datadog_api_client/v1/models/image_widget_definition' -require 'datadog_api_client/v1/models/image_widget_definition_type' -require 'datadog_api_client/v1/models/intake_payload_accepted' require 'datadog_api_client/v1/models/list_stream_column' require 'datadog_api_client/v1/models/list_stream_column_width' require 'datadog_api_client/v1/models/list_stream_query' @@ -194,8 +195,6 @@ require 'datadog_api_client/v1/models/log_query_definition_group_by' require 'datadog_api_client/v1/models/log_query_definition_group_by_sort' require 'datadog_api_client/v1/models/log_query_definition_search' -require 'datadog_api_client/v1/models/log_stream_widget_definition' -require 'datadog_api_client/v1/models/log_stream_widget_definition_type' require 'datadog_api_client/v1/models/logs_api_error' require 'datadog_api_client/v1/models/logs_api_error_response' require 'datadog_api_client/v1/models/logs_arithmetic_processor' @@ -204,8 +203,8 @@ require 'datadog_api_client/v1/models/logs_attribute_remapper_type' require 'datadog_api_client/v1/models/logs_by_retention' require 'datadog_api_client/v1/models/logs_by_retention_monthly_usage' -require 'datadog_api_client/v1/models/logs_by_retention_org_usage' require 'datadog_api_client/v1/models/logs_by_retention_orgs' +require 'datadog_api_client/v1/models/logs_by_retention_org_usage' require 'datadog_api_client/v1/models/logs_category_processor' require 'datadog_api_client/v1/models/logs_category_processor_category' require 'datadog_api_client/v1/models/logs_category_processor_type' @@ -220,9 +219,9 @@ require 'datadog_api_client/v1/models/logs_grok_parser_rules' require 'datadog_api_client/v1/models/logs_grok_parser_type' require 'datadog_api_client/v1/models/logs_index' +require 'datadog_api_client/v1/models/logs_indexes_order' require 'datadog_api_client/v1/models/logs_index_list_response' require 'datadog_api_client/v1/models/logs_index_update_request' -require 'datadog_api_client/v1/models/logs_indexes_order' require 'datadog_api_client/v1/models/logs_list_request' require 'datadog_api_client/v1/models/logs_list_request_time' require 'datadog_api_client/v1/models/logs_list_response' @@ -247,6 +246,8 @@ require 'datadog_api_client/v1/models/logs_string_builder_processor_type' require 'datadog_api_client/v1/models/logs_trace_remapper' require 'datadog_api_client/v1/models/logs_trace_remapper_type' +require 'datadog_api_client/v1/models/log_stream_widget_definition' +require 'datadog_api_client/v1/models/log_stream_widget_definition_type' require 'datadog_api_client/v1/models/logs_url_parser' require 'datadog_api_client/v1/models/logs_url_parser_type' require 'datadog_api_client/v1/models/logs_user_agent_parser' @@ -272,6 +273,8 @@ require 'datadog_api_client/v1/models/monitor_formula_and_function_query_definition' require 'datadog_api_client/v1/models/monitor_group_search_response' require 'datadog_api_client/v1/models/monitor_group_search_response_counts' +require 'datadog_api_client/v1/models/monitor_group_search_response_counts_status_item' +require 'datadog_api_client/v1/models/monitor_group_search_response_counts_type_item' require 'datadog_api_client/v1/models/monitor_group_search_result' require 'datadog_api_client/v1/models/monitor_options' require 'datadog_api_client/v1/models/monitor_options_aggregation' @@ -279,6 +282,10 @@ require 'datadog_api_client/v1/models/monitor_renotify_status_type' require 'datadog_api_client/v1/models/monitor_search_response' require 'datadog_api_client/v1/models/monitor_search_response_counts' +require 'datadog_api_client/v1/models/monitor_search_response_counts_muted_item' +require 'datadog_api_client/v1/models/monitor_search_response_counts_status_item' +require 'datadog_api_client/v1/models/monitor_search_response_counts_tag_item' +require 'datadog_api_client/v1/models/monitor_search_response_counts_type_item' require 'datadog_api_client/v1/models/monitor_search_response_metadata' require 'datadog_api_client/v1/models/monitor_search_result' require 'datadog_api_client/v1/models/monitor_search_result_notification' @@ -286,8 +293,8 @@ require 'datadog_api_client/v1/models/monitor_state_group' require 'datadog_api_client/v1/models/monitor_summary_widget_definition' require 'datadog_api_client/v1/models/monitor_summary_widget_definition_type' -require 'datadog_api_client/v1/models/monitor_threshold_window_options' require 'datadog_api_client/v1/models/monitor_thresholds' +require 'datadog_api_client/v1/models/monitor_threshold_window_options' require 'datadog_api_client/v1/models/monitor_type' require 'datadog_api_client/v1/models/monitor_update_request' require 'datadog_api_client/v1/models/monthly_usage_attribution_body' @@ -296,8 +303,6 @@ require 'datadog_api_client/v1/models/monthly_usage_attribution_response' require 'datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics' require 'datadog_api_client/v1/models/monthly_usage_attribution_values' -require 'datadog_api_client/v1/models/note_widget_definition' -require 'datadog_api_client/v1/models/note_widget_definition_type' require 'datadog_api_client/v1/models/notebook_absolute_time' require 'datadog_api_client/v1/models/notebook_author' require 'datadog_api_client/v1/models/notebook_cell_create_request' @@ -327,6 +332,11 @@ require 'datadog_api_client/v1/models/notebook_response_data' require 'datadog_api_client/v1/models/notebook_response_data_attributes' require 'datadog_api_client/v1/models/notebook_split_by' +require 'datadog_api_client/v1/models/notebooks_response' +require 'datadog_api_client/v1/models/notebooks_response_data' +require 'datadog_api_client/v1/models/notebooks_response_data_attributes' +require 'datadog_api_client/v1/models/notebooks_response_meta' +require 'datadog_api_client/v1/models/notebooks_response_page' require 'datadog_api_client/v1/models/notebook_status' require 'datadog_api_client/v1/models/notebook_timeseries_cell_attributes' require 'datadog_api_client/v1/models/notebook_toplist_cell_attributes' @@ -334,11 +344,8 @@ require 'datadog_api_client/v1/models/notebook_update_data' require 'datadog_api_client/v1/models/notebook_update_data_attributes' require 'datadog_api_client/v1/models/notebook_update_request' -require 'datadog_api_client/v1/models/notebooks_response' -require 'datadog_api_client/v1/models/notebooks_response_data' -require 'datadog_api_client/v1/models/notebooks_response_data_attributes' -require 'datadog_api_client/v1/models/notebooks_response_meta' -require 'datadog_api_client/v1/models/notebooks_response_page' +require 'datadog_api_client/v1/models/note_widget_definition' +require 'datadog_api_client/v1/models/note_widget_definition_type' require 'datadog_api_client/v1/models/organization' require 'datadog_api_client/v1/models/organization_billing' require 'datadog_api_client/v1/models/organization_create_body' @@ -361,6 +368,26 @@ require 'datadog_api_client/v1/models/query_value_widget_definition_type' require 'datadog_api_client/v1/models/query_value_widget_request' require 'datadog_api_client/v1/models/response_meta_attributes' +require 'datadog_api_client/v1/models/scatterplot_dimension' +require 'datadog_api_client/v1/models/scatter_plot_request' +require 'datadog_api_client/v1/models/scatterplot_table_request' +require 'datadog_api_client/v1/models/scatterplot_widget_aggregator' +require 'datadog_api_client/v1/models/scatter_plot_widget_definition' +require 'datadog_api_client/v1/models/scatter_plot_widget_definition_requests' +require 'datadog_api_client/v1/models/scatter_plot_widget_definition_type' +require 'datadog_api_client/v1/models/scatterplot_widget_formula' +require 'datadog_api_client/v1/models/series' +require 'datadog_api_client/v1/models/service_check' +require 'datadog_api_client/v1/models/service_check_status' +require 'datadog_api_client/v1/models/service_level_objective' +require 'datadog_api_client/v1/models/service_level_objective_query' +require 'datadog_api_client/v1/models/service_level_objective_request' +require 'datadog_api_client/v1/models/service_map_widget_definition' +require 'datadog_api_client/v1/models/service_map_widget_definition_type' +require 'datadog_api_client/v1/models/service_summary_widget_definition' +require 'datadog_api_client/v1/models/service_summary_widget_definition_type' +require 'datadog_api_client/v1/models/slack_integration_channel' +require 'datadog_api_client/v1/models/slack_integration_channel_display' require 'datadog_api_client/v1/models/slo_bulk_delete_error' require 'datadog_api_client/v1/models/slo_bulk_delete_response' require 'datadog_api_client/v1/models/slo_bulk_delete_response_data' @@ -400,26 +427,6 @@ require 'datadog_api_client/v1/models/slo_type_numeric' require 'datadog_api_client/v1/models/slo_widget_definition' require 'datadog_api_client/v1/models/slo_widget_definition_type' -require 'datadog_api_client/v1/models/scatter_plot_request' -require 'datadog_api_client/v1/models/scatter_plot_widget_definition' -require 'datadog_api_client/v1/models/scatter_plot_widget_definition_requests' -require 'datadog_api_client/v1/models/scatter_plot_widget_definition_type' -require 'datadog_api_client/v1/models/scatterplot_dimension' -require 'datadog_api_client/v1/models/scatterplot_table_request' -require 'datadog_api_client/v1/models/scatterplot_widget_aggregator' -require 'datadog_api_client/v1/models/scatterplot_widget_formula' -require 'datadog_api_client/v1/models/series' -require 'datadog_api_client/v1/models/service_check' -require 'datadog_api_client/v1/models/service_check_status' -require 'datadog_api_client/v1/models/service_level_objective' -require 'datadog_api_client/v1/models/service_level_objective_query' -require 'datadog_api_client/v1/models/service_level_objective_request' -require 'datadog_api_client/v1/models/service_map_widget_definition' -require 'datadog_api_client/v1/models/service_map_widget_definition_type' -require 'datadog_api_client/v1/models/service_summary_widget_definition' -require 'datadog_api_client/v1/models/service_summary_widget_definition_type' -require 'datadog_api_client/v1/models/slack_integration_channel' -require 'datadog_api_client/v1/models/slack_integration_channel_display' require 'datadog_api_client/v1/models/sunburst_widget_definition' require 'datadog_api_client/v1/models/sunburst_widget_definition_type' require 'datadog_api_client/v1/models/sunburst_widget_legend' @@ -432,14 +439,14 @@ require 'datadog_api_client/v1/models/synthetics_api_step_subtype' require 'datadog_api_client/v1/models/synthetics_api_test' require 'datadog_api_client/v1/models/synthetics_api_test_config' +require 'datadog_api_client/v1/models/synthetics_api_test_failure_code' require 'datadog_api_client/v1/models/synthetics_api_test_result_data' +require 'datadog_api_client/v1/models/synthetics_api_test_result_failure' require 'datadog_api_client/v1/models/synthetics_api_test_result_full' require 'datadog_api_client/v1/models/synthetics_api_test_result_full_check' require 'datadog_api_client/v1/models/synthetics_api_test_result_short' require 'datadog_api_client/v1/models/synthetics_api_test_result_short_result' require 'datadog_api_client/v1/models/synthetics_api_test_type' -require 'datadog_api_client/v1/models/synthetics_api_test_failure_code' -require 'datadog_api_client/v1/models/synthetics_api_test_result_failure' require 'datadog_api_client/v1/models/synthetics_assertion' require 'datadog_api_client/v1/models/synthetics_assertion_json_path_operator' require 'datadog_api_client/v1/models/synthetics_assertion_json_path_target' @@ -471,6 +478,7 @@ require 'datadog_api_client/v1/models/synthetics_browser_test_type' require 'datadog_api_client/v1/models/synthetics_browser_variable' require 'datadog_api_client/v1/models/synthetics_browser_variable_type' +require 'datadog_api_client/v1/models/synthetics_check_type' require 'datadog_api_client/v1/models/synthetics_ci_batch_metadata' require 'datadog_api_client/v1/models/synthetics_ci_batch_metadata_ci' require 'datadog_api_client/v1/models/synthetics_ci_batch_metadata_git' @@ -478,22 +486,21 @@ require 'datadog_api_client/v1/models/synthetics_ci_batch_metadata_provider' require 'datadog_api_client/v1/models/synthetics_ci_test' require 'datadog_api_client/v1/models/synthetics_ci_test_body' -require 'datadog_api_client/v1/models/synthetics_check_type' require 'datadog_api_client/v1/models/synthetics_config_variable' require 'datadog_api_client/v1/models/synthetics_config_variable_type' require 'datadog_api_client/v1/models/synthetics_core_web_vitals' +require 'datadog_api_client/v1/models/synthetics_deleted_test' require 'datadog_api_client/v1/models/synthetics_delete_tests_payload' require 'datadog_api_client/v1/models/synthetics_delete_tests_response' -require 'datadog_api_client/v1/models/synthetics_deleted_test' require 'datadog_api_client/v1/models/synthetics_device' require 'datadog_api_client/v1/models/synthetics_device_id' require 'datadog_api_client/v1/models/synthetics_get_api_test_latest_results_response' require 'datadog_api_client/v1/models/synthetics_get_browser_test_latest_results_response' require 'datadog_api_client/v1/models/synthetics_global_variable' require 'datadog_api_client/v1/models/synthetics_global_variable_attributes' +require 'datadog_api_client/v1/models/synthetics_global_variable_parser_type' require 'datadog_api_client/v1/models/synthetics_global_variable_parse_test_options' require 'datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type' -require 'datadog_api_client/v1/models/synthetics_global_variable_parser_type' require 'datadog_api_client/v1/models/synthetics_global_variable_value' require 'datadog_api_client/v1/models/synthetics_list_global_variables_response' require 'datadog_api_client/v1/models/synthetics_list_tests_response' @@ -577,8 +584,6 @@ require 'datadog_api_client/v1/models/usage_billable_summary_hour' require 'datadog_api_client/v1/models/usage_billable_summary_keys' require 'datadog_api_client/v1/models/usage_billable_summary_response' -require 'datadog_api_client/v1/models/usage_cws_hour' -require 'datadog_api_client/v1/models/usage_cws_response' require 'datadog_api_client/v1/models/usage_cloud_security_posture_management_hour' require 'datadog_api_client/v1/models/usage_cloud_security_posture_management_response' require 'datadog_api_client/v1/models/usage_custom_reports_attributes' @@ -586,6 +591,8 @@ require 'datadog_api_client/v1/models/usage_custom_reports_meta' require 'datadog_api_client/v1/models/usage_custom_reports_page' require 'datadog_api_client/v1/models/usage_custom_reports_response' +require 'datadog_api_client/v1/models/usage_cws_hour' +require 'datadog_api_client/v1/models/usage_cws_response' require 'datadog_api_client/v1/models/usage_dbm_hour' require 'datadog_api_client/v1/models/usage_dbm_response' require 'datadog_api_client/v1/models/usage_fargate_hour' @@ -702,9 +709,9 @@ require 'datadog_api_client/v1/models/widget_viz_type' # APIs +require 'datadog_api_client/v1/api/authentication_api' require 'datadog_api_client/v1/api/aws_integration_api' require 'datadog_api_client/v1/api/aws_logs_integration_api' -require 'datadog_api_client/v1/api/authentication_api' require 'datadog_api_client/v1/api/azure_integration_api' require 'datadog_api_client/v1/api/dashboard_lists_api' require 'datadog_api_client/v1/api/dashboards_api' @@ -749,4 +756,4 @@ def configure end end end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/api/authentication_api.rb b/lib/datadog_api_client/v1/api/authentication_api.rb index 97f41cfd991..3a004888a34 100644 --- a/lib/datadog_api_client/v1/api/authentication_api.rb +++ b/lib/datadog_api_client/v1/api/authentication_api.rb @@ -22,6 +22,7 @@ class AuthenticationAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Validate API key # Check if the API key (not the APP key) is valid. If invalid, a 403 is returned. # @param [Hash] opts the optional parameters @@ -70,7 +71,7 @@ def validate_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'AuthenticationValidationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :AuthZ] new_options = opts.merge( :operation => :validate, diff --git a/lib/datadog_api_client/v1/api/aws_integration_api.rb b/lib/datadog_api_client/v1/api/aws_integration_api.rb index 6fe3c977c8b..e2e175d43c7 100644 --- a/lib/datadog_api_client/v1/api/aws_integration_api.rb +++ b/lib/datadog_api_client/v1/api/aws_integration_api.rb @@ -22,8 +22,12 @@ class AWSIntegrationAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create an AWS integration - # Create a Datadog-Amazon Web Services integration. Using the `POST` method updates your integration configuration by adding your new configuration to the existing one in your Datadog organization. A unique AWS Account ID for role based authentication. + # Create a Datadog-Amazon Web Services integration. + # Using the `POST` method updates your integration configuration + # by adding your new configuration to the existing one in your Datadog organization. + # A unique AWS Account ID for role based authentication. # @param body [AWSAccount] AWS Request Object # @param [Hash] opts the optional parameters # @return [AWSAccountCreateResponse] @@ -33,7 +37,10 @@ def create_aws_account(body, opts = {}) end # Create an AWS integration - # Create a Datadog-Amazon Web Services integration. Using the `POST` method updates your integration configuration by adding your new configuration to the existing one in your Datadog organization. A unique AWS Account ID for role based authentication. + # Create a Datadog-Amazon Web Services integration. + # Using the `POST` method updates your integration configuration + # by adding your new configuration to the existing one in your Datadog organization. + # A unique AWS Account ID for role based authentication. # @param body [AWSAccount] AWS Request Object # @param [Hash] opts the optional parameters # @return [Array<(AWSAccountCreateResponse, Integer, Hash)>] AWSAccountCreateResponse data, response status code and response headers @@ -99,7 +106,7 @@ def create_aws_account_with_http_info(body, opts = {}) # Set an AWS tag filter # Set an AWS tag filter. - # @param body [AWSTagFilterCreateRequest] Set an AWS tag filter using an `aws_account_identifier`, `namespace`, and filtering string. Namespace options are `application_elb`, `elb`, `lambda`, `network_elb`, `rds`, `sqs`, and `custom`. + # @param body [AWSTagFilterCreateRequest] Set an AWS tag filter using an `aws_account_identifier`, `namespace`, and filtering string. Namespace options are `application_elb`, `elb`, `lambda`, `network_elb`, `rds`, `sqs`, and `custom`. # @param [Hash] opts the optional parameters # @return [Object] def create_aws_tag_filter(body, opts = {}) @@ -109,7 +116,7 @@ def create_aws_tag_filter(body, opts = {}) # Set an AWS tag filter # Set an AWS tag filter. - # @param body [AWSTagFilterCreateRequest] Set an AWS tag filter using an `aws_account_identifier`, `namespace`, and filtering string. Namespace options are `application_elb`, `elb`, `lambda`, `network_elb`, `rds`, `sqs`, and `custom`. + # @param body [AWSTagFilterCreateRequest] Set an AWS tag filter using an `aws_account_identifier`, `namespace`, and filtering string. Namespace options are `application_elb`, `elb`, `lambda`, `network_elb`, `rds`, `sqs`, and `custom`. # @param [Hash] opts the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def create_aws_tag_filter_with_http_info(body, opts = {}) @@ -258,7 +265,7 @@ def delete_aws_account(body, opts = {}) end # Delete an AWS integration - # Delete a Datadog-AWS integration matching the specified `account_id` and `role_name parameters`. + # Delete a Datadog-AWS integration matching the specified `account_id` and `role_name parameters`. # @param body [AWSAccountDeleteRequest] AWS request object # @param [Hash] opts the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers @@ -324,7 +331,7 @@ def delete_aws_account_with_http_info(body, opts = {}) # Delete a tag filtering entry # Delete a tag filtering entry. - # @param body [AWSTagFilterDeleteRequest] Delete a tag filtering entry for a given AWS account and `dd-aws` namespace. + # @param body [AWSTagFilterDeleteRequest] Delete a tag filtering entry for a given AWS account and `dd-aws` namespace. # @param [Hash] opts the optional parameters # @return [Object] def delete_aws_tag_filter(body, opts = {}) @@ -334,7 +341,7 @@ def delete_aws_tag_filter(body, opts = {}) # Delete a tag filtering entry # Delete a tag filtering entry. - # @param body [AWSTagFilterDeleteRequest] Delete a tag filtering entry for a given AWS account and `dd-aws` namespace. + # @param body [AWSTagFilterDeleteRequest] Delete a tag filtering entry for a given AWS account and `dd-aws` namespace. # @param [Hash] opts the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def delete_aws_tag_filter_with_http_info(body, opts = {}) @@ -467,9 +474,9 @@ def list_available_aws_namespaces_with_http_info(opts = {}) # List all AWS integrations # List all Datadog-AWS integrations available in your Datadog organization. # @param [Hash] opts the optional parameters - # @option opts [String] :account_id Only return AWS accounts that matches this `account_id`. + # @option opts [String] :account_id Only return AWS accounts that matches this `account_id`. # @option opts [String] :role_name Only return AWS accounts that matches this role_name. - # @option opts [String] :access_key_id Only return AWS accounts that matches this `access_key_id`. + # @option opts [String] :access_key_id Only return AWS accounts that matches this `access_key_id`. # @return [AWSAccountListResponse] def list_aws_accounts(opts = {}) data, _status_code, _headers = list_aws_accounts_with_http_info(opts) @@ -479,9 +486,9 @@ def list_aws_accounts(opts = {}) # List all AWS integrations # List all Datadog-AWS integrations available in your Datadog organization. # @param [Hash] opts the optional parameters - # @option opts [String] :account_id Only return AWS accounts that matches this `account_id`. + # @option opts [String] :account_id Only return AWS accounts that matches this `account_id`. # @option opts [String] :role_name Only return AWS accounts that matches this role_name. - # @option opts [String] :access_key_id Only return AWS accounts that matches this `access_key_id`. + # @option opts [String] :access_key_id Only return AWS accounts that matches this `access_key_id`. # @return [Array<(AWSAccountListResponse, Integer, Hash)>] AWSAccountListResponse data, response status code and response headers def list_aws_accounts_with_http_info(opts = {}) @@ -542,7 +549,7 @@ def list_aws_accounts_with_http_info(opts = {}) # Get all AWS tag filters # Get all AWS tag filters. - # @param account_id [String] Only return AWS filters that matches this `account_id`. + # @param account_id [String] Only return AWS filters that matches this `account_id`. # @param [Hash] opts the optional parameters # @return [AWSTagFilterListResponse] def list_aws_tag_filters(account_id, opts = {}) @@ -552,7 +559,7 @@ def list_aws_tag_filters(account_id, opts = {}) # Get all AWS tag filters # Get all AWS tag filters. - # @param account_id [String] Only return AWS filters that matches this `account_id`. + # @param account_id [String] Only return AWS filters that matches this `account_id`. # @param [Hash] opts the optional parameters # @return [Array<(AWSTagFilterListResponse, Integer, Hash)>] AWSTagFilterListResponse data, response status code and response headers def list_aws_tag_filters_with_http_info(account_id, opts = {}) @@ -618,9 +625,9 @@ def list_aws_tag_filters_with_http_info(account_id, opts = {}) # Update a Datadog-Amazon Web Services integration. # @param body [AWSAccount] AWS request object # @param [Hash] opts the optional parameters - # @option opts [String] :account_id Only return AWS accounts that matches this `account_id`. - # @option opts [String] :role_name Only return AWS accounts that match this `role_name`. Required if `account_id` is specified. - # @option opts [String] :access_key_id Only return AWS accounts that matches this `access_key_id`. Required if none of the other two options are specified. + # @option opts [String] :account_id Only return AWS accounts that matches this `account_id`. + # @option opts [String] :role_name Only return AWS accounts that match this `role_name`. Required if `account_id` is specified. + # @option opts [String] :access_key_id Only return AWS accounts that matches this `access_key_id`. Required if none of the other two options are specified. # @return [Object] def update_aws_account(body, opts = {}) data, _status_code, _headers = update_aws_account_with_http_info(body, opts) @@ -631,9 +638,9 @@ def update_aws_account(body, opts = {}) # Update a Datadog-Amazon Web Services integration. # @param body [AWSAccount] AWS request object # @param [Hash] opts the optional parameters - # @option opts [String] :account_id Only return AWS accounts that matches this `account_id`. - # @option opts [String] :role_name Only return AWS accounts that match this `role_name`. Required if `account_id` is specified. - # @option opts [String] :access_key_id Only return AWS accounts that matches this `access_key_id`. Required if none of the other two options are specified. + # @option opts [String] :account_id Only return AWS accounts that matches this `account_id`. + # @option opts [String] :role_name Only return AWS accounts that match this `role_name`. Required if `account_id` is specified. + # @option opts [String] :access_key_id Only return AWS accounts that matches this `access_key_id`. Required if none of the other two options are specified. # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def update_aws_account_with_http_info(body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb b/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb index aceddccff90..22f71a19c3a 100644 --- a/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb +++ b/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb @@ -22,8 +22,16 @@ class AWSLogsIntegrationAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Check that an AWS Lambda Function exists - # Test if permissions are present to add a log-forwarding triggers for the given services and AWS account. The input is the same as for Enable an AWS service log collection. Subsequent requests will always repeat the above, so this endpoint can be polled intermittently instead of blocking. - Returns a status of 'created' when it's checking if the Lambda exists in the account. - Returns a status of 'waiting' while checking. - Returns a status of 'checked and ok' if the Lambda exists. - Returns a status of 'error' if the Lambda does not exist. + # Test if permissions are present to add a log-forwarding triggers for the given services and AWS account. The input + # is the same as for Enable an AWS service log collection. Subsequent requests will always repeat the above, so this + # endpoint can be polled intermittently instead of blocking. + # + # - Returns a status of 'created' when it's checking if the Lambda exists in the account. + # - Returns a status of 'waiting' while checking. + # - Returns a status of 'checked and ok' if the Lambda exists. + # - Returns a status of 'error' if the Lambda does not exist. # @param body [AWSAccountAndLambdaRequest] Check AWS Log Lambda Async request body. # @param [Hash] opts the optional parameters # @return [AWSLogsAsyncResponse] @@ -33,7 +41,14 @@ def check_aws_logs_lambda_async(body, opts = {}) end # Check that an AWS Lambda Function exists - # Test if permissions are present to add a log-forwarding triggers for the given services and AWS account. The input is the same as for Enable an AWS service log collection. Subsequent requests will always repeat the above, so this endpoint can be polled intermittently instead of blocking. - Returns a status of 'created' when it's checking if the Lambda exists in the account. - Returns a status of 'waiting' while checking. - Returns a status of 'checked and ok' if the Lambda exists. - Returns a status of 'error' if the Lambda does not exist. + # Test if permissions are present to add a log-forwarding triggers for the given services and AWS account. The input + # is the same as for Enable an AWS service log collection. Subsequent requests will always repeat the above, so this + # endpoint can be polled intermittently instead of blocking. + # + # - Returns a status of 'created' when it's checking if the Lambda exists in the account. + # - Returns a status of 'waiting' while checking. + # - Returns a status of 'checked and ok' if the Lambda exists. + # - Returns a status of 'error' if the Lambda does not exist. # @param body [AWSAccountAndLambdaRequest] Check AWS Log Lambda Async request body. # @param [Hash] opts the optional parameters # @return [Array<(AWSLogsAsyncResponse, Integer, Hash)>] AWSLogsAsyncResponse data, response status code and response headers @@ -78,7 +93,7 @@ def check_aws_logs_lambda_async_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'AWSLogsAsyncResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :check_aws_logs_lambda_async, @@ -98,7 +113,16 @@ def check_aws_logs_lambda_async_with_http_info(body, opts = {}) end # Check permissions for log services - # Test if permissions are present to add log-forwarding triggers for the given services and AWS account. Input is the same as for `EnableAWSLogServices`. Done async, so can be repeatedly polled in a non-blocking fashion until the async request completes. - Returns a status of `created` when it's checking if the permissions exists in the AWS account. - Returns a status of `waiting` while checking. - Returns a status of `checked and ok` if the Lambda exists. - Returns a status of `error` if the Lambda does not exist. + # Test if permissions are present to add log-forwarding triggers for the + # given services and AWS account. Input is the same as for `EnableAWSLogServices`. + # Done async, so can be repeatedly polled in a non-blocking fashion until + # the async request completes. + # + # - Returns a status of `created` when it's checking if the permissions exists + # in the AWS account. + # - Returns a status of `waiting` while checking. + # - Returns a status of `checked and ok` if the Lambda exists. + # - Returns a status of `error` if the Lambda does not exist. # @param body [AWSLogsServicesRequest] Check AWS Logs Async Services request body. # @param [Hash] opts the optional parameters # @return [AWSLogsAsyncResponse] @@ -108,7 +132,16 @@ def check_aws_logs_services_async(body, opts = {}) end # Check permissions for log services - # Test if permissions are present to add log-forwarding triggers for the given services and AWS account. Input is the same as for `EnableAWSLogServices`. Done async, so can be repeatedly polled in a non-blocking fashion until the async request completes. - Returns a status of `created` when it's checking if the permissions exists in the AWS account. - Returns a status of `waiting` while checking. - Returns a status of `checked and ok` if the Lambda exists. - Returns a status of `error` if the Lambda does not exist. + # Test if permissions are present to add log-forwarding triggers for the + # given services and AWS account. Input is the same as for `EnableAWSLogServices`. + # Done async, so can be repeatedly polled in a non-blocking fashion until + # the async request completes. + # + # - Returns a status of `created` when it's checking if the permissions exists + # in the AWS account. + # - Returns a status of `waiting` while checking. + # - Returns a status of `checked and ok` if the Lambda exists. + # - Returns a status of `error` if the Lambda does not exist. # @param body [AWSLogsServicesRequest] Check AWS Logs Async Services request body. # @param [Hash] opts the optional parameters # @return [Array<(AWSLogsAsyncResponse, Integer, Hash)>] AWSLogsAsyncResponse data, response status code and response headers @@ -333,7 +366,7 @@ def enable_aws_log_services(body, opts = {}) end # Enable an AWS Logs integration - # Enable automatic log collection for a list of services. This should be run after running `CreateAWSLambdaARN` to save the configuration. + # Enable automatic log collection for a list of services. This should be run after running `CreateAWSLambdaARN` to save the configuration. # @param body [AWSLogsServicesRequest] Enable AWS Log Services request body. # @param [Hash] opts the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers diff --git a/lib/datadog_api_client/v1/api/azure_integration_api.rb b/lib/datadog_api_client/v1/api/azure_integration_api.rb index a20291f0a61..626f7819ec0 100644 --- a/lib/datadog_api_client/v1/api/azure_integration_api.rb +++ b/lib/datadog_api_client/v1/api/azure_integration_api.rb @@ -22,8 +22,15 @@ class AzureIntegrationAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create an Azure integration - # Create a Datadog-Azure integration. Using the `POST` method updates your integration configuration by adding your new configuration to the existing one in your Datadog organization. Using the `PUT` method updates your integration configuration by replacing your current configuration with the new one sent to your Datadog organization. + # Create a Datadog-Azure integration. + # + # Using the `POST` method updates your integration configuration by adding your new + # configuration to the existing one in your Datadog organization. + # + # Using the `PUT` method updates your integration configuration by replacing your + # current configuration with the new one sent to your Datadog organization. # @param body [AzureAccount] Create a Datadog-Azure integration for your Datadog account request body. # @param [Hash] opts the optional parameters # @return [Object] @@ -33,7 +40,13 @@ def create_azure_integration(body, opts = {}) end # Create an Azure integration - # Create a Datadog-Azure integration. Using the `POST` method updates your integration configuration by adding your new configuration to the existing one in your Datadog organization. Using the `PUT` method updates your integration configuration by replacing your current configuration with the new one sent to your Datadog organization. + # Create a Datadog-Azure integration. + # + # Using the `POST` method updates your integration configuration by adding your new + # configuration to the existing one in your Datadog organization. + # + # Using the `PUT` method updates your integration configuration by replacing your + # current configuration with the new one sent to your Datadog organization. # @param body [AzureAccount] Create a Datadog-Azure integration for your Datadog account request body. # @param [Hash] opts the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers @@ -241,7 +254,7 @@ def list_azure_integration_with_http_info(opts = {}) # Update Azure integration host filters # Update the defined list of host filters for a given Datadog-Azure integration. - # @param body [AzureAccount] Update a Datadog-Azure integration's host filters request body. + # @param body [AzureAccount] Update a Datadog-Azure integration's host filters request body. # @param [Hash] opts the optional parameters # @return [Object] def update_azure_host_filters(body, opts = {}) @@ -251,7 +264,7 @@ def update_azure_host_filters(body, opts = {}) # Update Azure integration host filters # Update the defined list of host filters for a given Datadog-Azure integration. - # @param body [AzureAccount] Update a Datadog-Azure integration's host filters request body. + # @param body [AzureAccount] Update a Datadog-Azure integration's host filters request body. # @param [Hash] opts the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def update_azure_host_filters_with_http_info(body, opts = {}) @@ -315,7 +328,9 @@ def update_azure_host_filters_with_http_info(body, opts = {}) end # Update an Azure integration - # Update a Datadog-Azure integration. Requires an existing `tenant_name` and `client_id`. Any other fields supplied will overwrite existing values. To overwrite `tenant_name` or `client_id`, use `new_tenant_name` and `new_client_id`. To leave a field unchanged, do not supply that field in the payload. + # Update a Datadog-Azure integration. Requires an existing `tenant_name` and `client_id`. + # Any other fields supplied will overwrite existing values. To overwrite `tenant_name` or `client_id`, + # use `new_tenant_name` and `new_client_id`. To leave a field unchanged, do not supply that field in the payload. # @param body [AzureAccount] Update a Datadog-Azure integration request body. # @param [Hash] opts the optional parameters # @return [Object] @@ -325,7 +340,9 @@ def update_azure_integration(body, opts = {}) end # Update an Azure integration - # Update a Datadog-Azure integration. Requires an existing `tenant_name` and `client_id`. Any other fields supplied will overwrite existing values. To overwrite `tenant_name` or `client_id`, use `new_tenant_name` and `new_client_id`. To leave a field unchanged, do not supply that field in the payload. + # Update a Datadog-Azure integration. Requires an existing `tenant_name` and `client_id`. + # Any other fields supplied will overwrite existing values. To overwrite `tenant_name` or `client_id`, + # use `new_tenant_name` and `new_client_id`. To leave a field unchanged, do not supply that field in the payload. # @param body [AzureAccount] Update a Datadog-Azure integration request body. # @param [Hash] opts the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers diff --git a/lib/datadog_api_client/v1/api/dashboard_lists_api.rb b/lib/datadog_api_client/v1/api/dashboard_lists_api.rb index a37e9ffb549..36be7e55f5f 100644 --- a/lib/datadog_api_client/v1/api/dashboard_lists_api.rb +++ b/lib/datadog_api_client/v1/api/dashboard_lists_api.rb @@ -22,6 +22,7 @@ class DashboardListsAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create a dashboard list # Create an empty dashboard list. # @param body [DashboardList] Create a dashboard list request body. @@ -78,7 +79,7 @@ def create_dashboard_list_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'DashboardList' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_dashboard_list, @@ -131,7 +132,7 @@ def delete_dashboard_list_with_http_info(list_id, opts = {}) fail ArgumentError, "Missing the required parameter 'list_id' when calling DashboardListsAPI.delete_dashboard_list" end # resource path - local_var_path = '/api/v1/dashboard/lists/manual/{list_id}'.sub('{' + 'list_id' + '}', CGI.escape(list_id.to_s)) + local_var_path = '/api/v1/dashboard/lists/manual/{list_id}'.sub('{list_id}', CGI.escape(list_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -151,7 +152,7 @@ def delete_dashboard_list_with_http_info(list_id, opts = {}) return_type = opts[:debug_return_type] || 'DashboardListDeleteResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_dashboard_list, @@ -181,7 +182,7 @@ def get_dashboard_list(list_id, opts = {}) end # Get a dashboard list - # Fetch an existing dashboard list's definition. + # Fetch an existing dashboard list's definition. # @param list_id [Integer] ID of the dashboard list to fetch. # @param [Hash] opts the optional parameters # @return [Array<(DashboardList, Integer, Hash)>] DashboardList data, response status code and response headers @@ -204,7 +205,7 @@ def get_dashboard_list_with_http_info(list_id, opts = {}) fail ArgumentError, "Missing the required parameter 'list_id' when calling DashboardListsAPI.get_dashboard_list" end # resource path - local_var_path = '/api/v1/dashboard/lists/manual/{list_id}'.sub('{' + 'list_id' + '}', CGI.escape(list_id.to_s)) + local_var_path = '/api/v1/dashboard/lists/manual/{list_id}'.sub('{list_id}', CGI.escape(list_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -224,7 +225,7 @@ def get_dashboard_list_with_http_info(list_id, opts = {}) return_type = opts[:debug_return_type] || 'DashboardList' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_dashboard_list, @@ -291,7 +292,7 @@ def list_dashboard_lists_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'DashboardListListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_dashboard_lists, @@ -350,7 +351,7 @@ def update_dashboard_list_with_http_info(list_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling DashboardListsAPI.update_dashboard_list" end # resource path - local_var_path = '/api/v1/dashboard/lists/manual/{list_id}'.sub('{' + 'list_id' + '}', CGI.escape(list_id.to_s)) + local_var_path = '/api/v1/dashboard/lists/manual/{list_id}'.sub('{list_id}', CGI.escape(list_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -372,7 +373,7 @@ def update_dashboard_list_with_http_info(list_id, body, opts = {}) return_type = opts[:debug_return_type] || 'DashboardList' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_dashboard_list, diff --git a/lib/datadog_api_client/v1/api/dashboards_api.rb b/lib/datadog_api_client/v1/api/dashboards_api.rb index 966137244c5..949e0cde2d6 100644 --- a/lib/datadog_api_client/v1/api/dashboards_api.rb +++ b/lib/datadog_api_client/v1/api/dashboards_api.rb @@ -22,8 +22,10 @@ class DashboardsAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create a new dashboard - # Create a dashboard using the specified options. When defining queries in your widgets, take note of which queries should have the `as_count()` or `as_rate()` modifiers appended. Refer to the following [documentation](https://docs.datadoghq.com/developers/metrics/type_modifiers/?tab=count#in-application-modifiers) for more information on these modifiers. + # Create a dashboard using the specified options. When defining queries in your widgets, take note of which queries should have the `as_count()` or `as_rate()` modifiers appended. + # Refer to the following [documentation](https://docs.datadoghq.com/developers/metrics/type_modifiers/?tab=count#in-application-modifiers) for more information on these modifiers. # @param body [Dashboard] Create a dashboard request body. # @param [Hash] opts the optional parameters # @return [Dashboard] @@ -33,7 +35,8 @@ def create_dashboard(body, opts = {}) end # Create a new dashboard - # Create a dashboard using the specified options. When defining queries in your widgets, take note of which queries should have the `as_count()` or `as_rate()` modifiers appended. Refer to the following [documentation](https://docs.datadoghq.com/developers/metrics/type_modifiers/?tab=count#in-application-modifiers) for more information on these modifiers. + # Create a dashboard using the specified options. When defining queries in your widgets, take note of which queries should have the `as_count()` or `as_rate()` modifiers appended. + # Refer to the following [documentation](https://docs.datadoghq.com/developers/metrics/type_modifiers/?tab=count#in-application-modifiers) for more information on these modifiers. # @param body [Dashboard] Create a dashboard request body. # @param [Hash] opts the optional parameters # @return [Array<(Dashboard, Integer, Hash)>] Dashboard data, response status code and response headers @@ -78,7 +81,7 @@ def create_dashboard_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'Dashboard' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_dashboard, @@ -131,7 +134,7 @@ def delete_dashboard_with_http_info(dashboard_id, opts = {}) fail ArgumentError, "Missing the required parameter 'dashboard_id' when calling DashboardsAPI.delete_dashboard" end # resource path - local_var_path = '/api/v1/dashboard/{dashboard_id}'.sub('{' + 'dashboard_id' + '}', CGI.escape(dashboard_id.to_s)) + local_var_path = '/api/v1/dashboard/{dashboard_id}'.sub('{dashboard_id}', CGI.escape(dashboard_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -151,7 +154,7 @@ def delete_dashboard_with_http_info(dashboard_id, opts = {}) return_type = opts[:debug_return_type] || 'DashboardDeleteResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_dashboard, @@ -212,7 +215,7 @@ def delete_dashboards_with_http_info(body, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) @@ -226,7 +229,7 @@ def delete_dashboards_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_dashboards, @@ -279,7 +282,7 @@ def get_dashboard_with_http_info(dashboard_id, opts = {}) fail ArgumentError, "Missing the required parameter 'dashboard_id' when calling DashboardsAPI.get_dashboard" end # resource path - local_var_path = '/api/v1/dashboard/{dashboard_id}'.sub('{' + 'dashboard_id' + '}', CGI.escape(dashboard_id.to_s)) + local_var_path = '/api/v1/dashboard/{dashboard_id}'.sub('{dashboard_id}', CGI.escape(dashboard_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -299,7 +302,7 @@ def get_dashboard_with_http_info(dashboard_id, opts = {}) return_type = opts[:debug_return_type] || 'Dashboard' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_dashboard, @@ -319,10 +322,13 @@ def get_dashboard_with_http_info(dashboard_id, opts = {}) end # Get all dashboards - # Get all dashboards. **Note**: This query will only return custom created or cloned dashboards. This query will not return preset dashboards. + # Get all dashboards. + # + # **Note**: This query will only return custom created or cloned dashboards. + # This query will not return preset dashboards. # @param [Hash] opts the optional parameters - # @option opts [Boolean] :filter_shared When `true`, this query only returns shared custom created or cloned dashboards. - # @option opts [Boolean] :filter_deleted When `true`, this query returns only deleted custom-created or cloned dashboards. This parameter is incompatible with `filter[shared]`. + # @option opts [Boolean] :filter_shared When `true`, this query only returns shared custom created or cloned dashboards. + # @option opts [Boolean] :filter_deleted When `true`, this query returns only deleted custom-created or cloned dashboards. This parameter is incompatible with `filter[shared]`. # @return [DashboardSummary] def list_dashboards(opts = {}) data, _status_code, _headers = list_dashboards_with_http_info(opts) @@ -330,10 +336,13 @@ def list_dashboards(opts = {}) end # Get all dashboards - # Get all dashboards. **Note**: This query will only return custom created or cloned dashboards. This query will not return preset dashboards. + # Get all dashboards. + # + # **Note**: This query will only return custom created or cloned dashboards. + # This query will not return preset dashboards. # @param [Hash] opts the optional parameters - # @option opts [Boolean] :filter_shared When `true`, this query only returns shared custom created or cloned dashboards. - # @option opts [Boolean] :filter_deleted When `true`, this query returns only deleted custom-created or cloned dashboards. This parameter is incompatible with `filter[shared]`. + # @option opts [Boolean] :filter_shared When `true`, this query only returns shared custom created or cloned dashboards. + # @option opts [Boolean] :filter_deleted When `true`, this query returns only deleted custom-created or cloned dashboards. This parameter is incompatible with `filter[shared]`. # @return [Array<(DashboardSummary, Integer, Hash)>] DashboardSummary data, response status code and response headers def list_dashboards_with_http_info(opts = {}) @@ -372,7 +381,7 @@ def list_dashboards_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'DashboardSummary' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_dashboards, @@ -433,7 +442,7 @@ def restore_dashboards_with_http_info(body, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) @@ -447,7 +456,7 @@ def restore_dashboards_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :restore_dashboards, @@ -506,7 +515,7 @@ def update_dashboard_with_http_info(dashboard_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling DashboardsAPI.update_dashboard" end # resource path - local_var_path = '/api/v1/dashboard/{dashboard_id}'.sub('{' + 'dashboard_id' + '}', CGI.escape(dashboard_id.to_s)) + local_var_path = '/api/v1/dashboard/{dashboard_id}'.sub('{dashboard_id}', CGI.escape(dashboard_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -528,7 +537,7 @@ def update_dashboard_with_http_info(dashboard_id, body, opts = {}) return_type = opts[:debug_return_type] || 'Dashboard' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_dashboard, diff --git a/lib/datadog_api_client/v1/api/downtimes_api.rb b/lib/datadog_api_client/v1/api/downtimes_api.rb index b389d3d90c3..05a38bf6b70 100644 --- a/lib/datadog_api_client/v1/api/downtimes_api.rb +++ b/lib/datadog_api_client/v1/api/downtimes_api.rb @@ -22,6 +22,7 @@ class DowntimesAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Cancel a downtime # Cancel a downtime. # @param downtime_id [Integer] ID of the downtime to cancel. @@ -56,7 +57,7 @@ def cancel_downtime_with_http_info(downtime_id, opts = {}) fail ArgumentError, "Missing the required parameter 'downtime_id' when calling DowntimesAPI.cancel_downtime" end # resource path - local_var_path = '/api/v1/downtime/{downtime_id}'.sub('{' + 'downtime_id' + '}', CGI.escape(downtime_id.to_s)) + local_var_path = '/api/v1/downtime/{downtime_id}'.sub('{downtime_id}', CGI.escape(downtime_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -64,7 +65,7 @@ def cancel_downtime_with_http_info(downtime_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -76,7 +77,7 @@ def cancel_downtime_with_http_info(downtime_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :cancel_downtime, @@ -106,7 +107,7 @@ def cancel_downtimes_by_scope(body, opts = {}) end # Cancel downtimes by scope - # Delete all downtimes that match the scope of `X`. + # Delete all downtimes that match the scope of `X`. # @param body [CancelDowntimesByScopeRequest] Scope to cancel downtimes for. # @param [Hash] opts the optional parameters # @return [Array<(CanceledDowntimesIds, Integer, Hash)>] CanceledDowntimesIds data, response status code and response headers @@ -151,7 +152,7 @@ def cancel_downtimes_by_scope_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'CanceledDowntimesIds' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :cancel_downtimes_by_scope, @@ -226,7 +227,7 @@ def create_downtime_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'Downtime' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_downtime, @@ -256,7 +257,7 @@ def get_downtime(downtime_id, opts = {}) end # Get a downtime - # Get downtime detail by `downtime_id`. + # Get downtime detail by `downtime_id`. # @param downtime_id [Integer] ID of the downtime to fetch. # @param [Hash] opts the optional parameters # @return [Array<(Downtime, Integer, Hash)>] Downtime data, response status code and response headers @@ -279,7 +280,7 @@ def get_downtime_with_http_info(downtime_id, opts = {}) fail ArgumentError, "Missing the required parameter 'downtime_id' when calling DowntimesAPI.get_downtime" end # resource path - local_var_path = '/api/v1/downtime/{downtime_id}'.sub('{' + 'downtime_id' + '}', CGI.escape(downtime_id.to_s)) + local_var_path = '/api/v1/downtime/{downtime_id}'.sub('{downtime_id}', CGI.escape(downtime_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -299,7 +300,7 @@ def get_downtime_with_http_info(downtime_id, opts = {}) return_type = opts[:debug_return_type] || 'Downtime' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_downtime, @@ -369,7 +370,7 @@ def list_downtimes_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'Array' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_downtimes, @@ -422,7 +423,7 @@ def list_monitor_downtimes_with_http_info(monitor_id, opts = {}) fail ArgumentError, "Missing the required parameter 'monitor_id' when calling DowntimesAPI.list_monitor_downtimes" end # resource path - local_var_path = '/api/v1/monitor/{monitor_id}/downtimes'.sub('{' + 'monitor_id' + '}', CGI.escape(monitor_id.to_s)) + local_var_path = '/api/v1/monitor/{monitor_id}/downtimes'.sub('{monitor_id}', CGI.escape(monitor_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -442,7 +443,7 @@ def list_monitor_downtimes_with_http_info(monitor_id, opts = {}) return_type = opts[:debug_return_type] || 'Array' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_monitor_downtimes, @@ -473,7 +474,7 @@ def update_downtime(downtime_id, body, opts = {}) end # Update a downtime - # Update a single downtime by `downtime_id`. + # Update a single downtime by `downtime_id`. # @param downtime_id [Integer] ID of the downtime to update. # @param body [Downtime] Update a downtime request body. # @param [Hash] opts the optional parameters @@ -501,7 +502,7 @@ def update_downtime_with_http_info(downtime_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling DowntimesAPI.update_downtime" end # resource path - local_var_path = '/api/v1/downtime/{downtime_id}'.sub('{' + 'downtime_id' + '}', CGI.escape(downtime_id.to_s)) + local_var_path = '/api/v1/downtime/{downtime_id}'.sub('{downtime_id}', CGI.escape(downtime_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -523,7 +524,7 @@ def update_downtime_with_http_info(downtime_id, body, opts = {}) return_type = opts[:debug_return_type] || 'Downtime' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_downtime, diff --git a/lib/datadog_api_client/v1/api/events_api.rb b/lib/datadog_api_client/v1/api/events_api.rb index 0fd4832a08d..4b191b67d31 100644 --- a/lib/datadog_api_client/v1/api/events_api.rb +++ b/lib/datadog_api_client/v1/api/events_api.rb @@ -22,8 +22,10 @@ class EventsAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Post an event - # This endpoint allows you to post events to the stream. Tag them, set priority and event aggregate them with other events. + # This endpoint allows you to post events to the stream. + # Tag them, set priority and event aggregate them with other events. # @param body [EventCreateRequest] Event request object # @param [Hash] opts the optional parameters # @return [EventCreateResponse] @@ -33,7 +35,8 @@ def create_event(body, opts = {}) end # Post an event - # This endpoint allows you to post events to the stream. Tag them, set priority and event aggregate them with other events. + # This endpoint allows you to post events to the stream. + # Tag them, set priority and event aggregate them with other events. # @param body [EventCreateRequest] Event request object # @param [Hash] opts the optional parameters # @return [Array<(EventCreateResponse, Integer, Hash)>] EventCreateResponse data, response status code and response headers @@ -98,7 +101,10 @@ def create_event_with_http_info(body, opts = {}) end # Get an event - # This endpoint allows you to query for event details. **Note**: If the event you’re querying contains markdown formatting of any kind, you may see characters such as `%`,`\\`,`n` in your output. + # This endpoint allows you to query for event details. + # + # **Note**: If the event you’re querying contains markdown formatting of any kind, + # you may see characters such as `%`,`\`,`n` in your output. # @param event_id [Integer] The ID of the event. # @param [Hash] opts the optional parameters # @return [EventResponse] @@ -108,7 +114,10 @@ def get_event(event_id, opts = {}) end # Get an event - # This endpoint allows you to query for event details. **Note**: If the event you’re querying contains markdown formatting of any kind, you may see characters such as `%`,`\\`,`n` in your output. + # This endpoint allows you to query for event details. + # + # **Note**: If the event you’re querying contains markdown formatting of any kind, + # you may see characters such as `%`,`\`,`n` in your output. # @param event_id [Integer] The ID of the event. # @param [Hash] opts the optional parameters # @return [Array<(EventResponse, Integer, Hash)>] EventResponse data, response status code and response headers @@ -131,7 +140,7 @@ def get_event_with_http_info(event_id, opts = {}) fail ArgumentError, "Missing the required parameter 'event_id' when calling EventsAPI.get_event" end # resource path - local_var_path = '/api/v1/events/{event_id}'.sub('{' + 'event_id' + '}', CGI.escape(event_id.to_s)) + local_var_path = '/api/v1/events/{event_id}'.sub('{event_id}', CGI.escape(event_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -151,7 +160,7 @@ def get_event_with_http_info(event_id, opts = {}) return_type = opts[:debug_return_type] || 'EventResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_event, @@ -171,16 +180,24 @@ def get_event_with_http_info(event_id, opts = {}) end # Query the event stream - # The event stream can be queried and filtered by time, priority, sources and tags. **Notes**: - If the event you’re querying contains markdown formatting of any kind, you may see characters such as `%`,`\\`,`n` in your output. - This endpoint returns a maximum of `1000` most recent results. To return additional results, identify the last timestamp of the last result and set that as the `end` query time to paginate the results. You can also use the page parameter to specify which set of `1000` results to return. + # The event stream can be queried and filtered by time, priority, sources and tags. + # + # **Notes**: + # - If the event you’re querying contains markdown formatting of any kind, + # you may see characters such as `%`,`\`,`n` in your output. + # + # - This endpoint returns a maximum of `1000` most recent results. To return additional results, + # identify the last timestamp of the last result and set that as the `end` query time to + # paginate the results. You can also use the page parameter to specify which set of `1000` results to return. # @param start [Integer] POSIX timestamp. # @param _end [Integer] POSIX timestamp. # @param [Hash] opts the optional parameters - # @option opts [EventPriority] :priority Priority of your events, either `low` or `normal`. + # @option opts [EventPriority] :priority Priority of your events, either `low` or `normal`. # @option opts [String] :sources A comma separated string of sources. # @option opts [String] :tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope. - # @option opts [Boolean] :unaggregated Set unaggregated to `true` to return all events within the specified [`start`,`end`] timeframe. Otherwise if an event is aggregated to a parent event with a timestamp outside of the timeframe, it won't be available in the output. Aggregated events with `is_aggregate=true` in the response will still be returned unless exclude_aggregate is set to `true.` - # @option opts [Boolean] :exclude_aggregate Set `exclude_aggregate` to `true` to only return unaggregated events where `is_aggregate=false` in the response. If the `exclude_aggregate` parameter is set to `true`, then the unaggregated parameter is ignored and will be `true` by default. - # @option opts [Integer] :page By default 1000 results are returned per request. Set page to the number of the page to return with `0` being the first page. The page parameter can only be used when either unaggregated or exclude_aggregate is set to `true.` + # @option opts [Boolean] :unaggregated Set unaggregated to `true` to return all events within the specified [`start`,`end`] timeframe. Otherwise if an event is aggregated to a parent event with a timestamp outside of the timeframe, it won't be available in the output. Aggregated events with `is_aggregate=true` in the response will still be returned unless exclude_aggregate is set to `true.` + # @option opts [Boolean] :exclude_aggregate Set `exclude_aggregate` to `true` to only return unaggregated events where `is_aggregate=false` in the response. If the `exclude_aggregate` parameter is set to `true`, then the unaggregated parameter is ignored and will be `true` by default. + # @option opts [Integer] :page By default 1000 results are returned per request. Set page to the number of the page to return with `0` being the first page. The page parameter can only be used when either unaggregated or exclude_aggregate is set to `true.` # @return [EventListResponse] def list_events(start, _end, opts = {}) data, _status_code, _headers = list_events_with_http_info(start, _end, opts) @@ -188,16 +205,24 @@ def list_events(start, _end, opts = {}) end # Query the event stream - # The event stream can be queried and filtered by time, priority, sources and tags. **Notes**: - If the event you’re querying contains markdown formatting of any kind, you may see characters such as `%`,`\\`,`n` in your output. - This endpoint returns a maximum of `1000` most recent results. To return additional results, identify the last timestamp of the last result and set that as the `end` query time to paginate the results. You can also use the page parameter to specify which set of `1000` results to return. + # The event stream can be queried and filtered by time, priority, sources and tags. + # + # **Notes**: + # - If the event you’re querying contains markdown formatting of any kind, + # you may see characters such as `%`,`\`,`n` in your output. + # + # - This endpoint returns a maximum of `1000` most recent results. To return additional results, + # identify the last timestamp of the last result and set that as the `end` query time to + # paginate the results. You can also use the page parameter to specify which set of `1000` results to return. # @param start [Integer] POSIX timestamp. # @param _end [Integer] POSIX timestamp. # @param [Hash] opts the optional parameters - # @option opts [EventPriority] :priority Priority of your events, either `low` or `normal`. + # @option opts [EventPriority] :priority Priority of your events, either `low` or `normal`. # @option opts [String] :sources A comma separated string of sources. # @option opts [String] :tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope. - # @option opts [Boolean] :unaggregated Set unaggregated to `true` to return all events within the specified [`start`,`end`] timeframe. Otherwise if an event is aggregated to a parent event with a timestamp outside of the timeframe, it won't be available in the output. Aggregated events with `is_aggregate=true` in the response will still be returned unless exclude_aggregate is set to `true.` - # @option opts [Boolean] :exclude_aggregate Set `exclude_aggregate` to `true` to only return unaggregated events where `is_aggregate=false` in the response. If the `exclude_aggregate` parameter is set to `true`, then the unaggregated parameter is ignored and will be `true` by default. - # @option opts [Integer] :page By default 1000 results are returned per request. Set page to the number of the page to return with `0` being the first page. The page parameter can only be used when either unaggregated or exclude_aggregate is set to `true.` + # @option opts [Boolean] :unaggregated Set unaggregated to `true` to return all events within the specified [`start`,`end`] timeframe. Otherwise if an event is aggregated to a parent event with a timestamp outside of the timeframe, it won't be available in the output. Aggregated events with `is_aggregate=true` in the response will still be returned unless exclude_aggregate is set to `true.` + # @option opts [Boolean] :exclude_aggregate Set `exclude_aggregate` to `true` to only return unaggregated events where `is_aggregate=false` in the response. If the `exclude_aggregate` parameter is set to `true`, then the unaggregated parameter is ignored and will be `true` by default. + # @option opts [Integer] :page By default 1000 results are returned per request. Set page to the number of the page to return with `0` being the first page. The page parameter can only be used when either unaggregated or exclude_aggregate is set to `true.` # @return [Array<(EventListResponse, Integer, Hash)>] EventListResponse data, response status code and response headers def list_events_with_http_info(start, _end, opts = {}) @@ -221,10 +246,6 @@ def list_events_with_http_info(start, _end, opts = {}) if @api_client.config.client_side_validation && _end.nil? fail ArgumentError, "Missing the required parameter '_end' when calling EventsAPI.list_events" end - if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] > 2147483647 - fail ArgumentError, 'invalid value for "opts[:"page"]" when calling EventsAPI.list_events, must be smaller than or equal to 2147483647.' - end - # resource path local_var_path = '/api/v1/events' @@ -254,7 +275,7 @@ def list_events_with_http_info(start, _end, opts = {}) return_type = opts[:debug_return_type] || 'EventListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_events, diff --git a/lib/datadog_api_client/v1/api/gcp_integration_api.rb b/lib/datadog_api_client/v1/api/gcp_integration_api.rb index 678eb03cc26..2b6b5347090 100644 --- a/lib/datadog_api_client/v1/api/gcp_integration_api.rb +++ b/lib/datadog_api_client/v1/api/gcp_integration_api.rb @@ -22,6 +22,7 @@ class GCPIntegrationAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create a GCP integration # Create a Datadog-GCP integration. # @param body [GCPAccount] Create a Datadog-GCP integration. @@ -240,7 +241,10 @@ def list_gcp_integration_with_http_info(opts = {}) end # Update a GCP integration - # Update a Datadog-GCP integrations host_filters and/or auto-mute. Requires a `project_id` and `client_email`, however these fields cannot be updated. If you need to update these fields, delete and use the create (`POST`) endpoint. The unspecified fields will keep their original values. + # Update a Datadog-GCP integrations host_filters and/or auto-mute. + # Requires a `project_id` and `client_email`, however these fields cannot be updated. + # If you need to update these fields, delete and use the create (`POST`) endpoint. + # The unspecified fields will keep their original values. # @param body [GCPAccount] Update a Datadog-GCP integration. # @param [Hash] opts the optional parameters # @return [Object] @@ -250,7 +254,10 @@ def update_gcp_integration(body, opts = {}) end # Update a GCP integration - # Update a Datadog-GCP integrations host_filters and/or auto-mute. Requires a `project_id` and `client_email`, however these fields cannot be updated. If you need to update these fields, delete and use the create (`POST`) endpoint. The unspecified fields will keep their original values. + # Update a Datadog-GCP integrations host_filters and/or auto-mute. + # Requires a `project_id` and `client_email`, however these fields cannot be updated. + # If you need to update these fields, delete and use the create (`POST`) endpoint. + # The unspecified fields will keep their original values. # @param body [GCPAccount] Update a Datadog-GCP integration. # @param [Hash] opts the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers diff --git a/lib/datadog_api_client/v1/api/hosts_api.rb b/lib/datadog_api_client/v1/api/hosts_api.rb index 69e4a703274..9b015fc32db 100644 --- a/lib/datadog_api_client/v1/api/hosts_api.rb +++ b/lib/datadog_api_client/v1/api/hosts_api.rb @@ -22,8 +22,10 @@ class HostsAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Get the total number of active hosts - # This endpoint returns the total number of active and up hosts in your Datadog account. Active means the host has reported in the past hour, and up means it has reported in the past two hours. + # This endpoint returns the total number of active and up hosts in your Datadog account. + # Active means the host has reported in the past hour, and up means it has reported in the past two hours. # @param [Hash] opts the optional parameters # @option opts [Integer] :from Number of seconds from which you want to get total number of active hosts. # @return [HostTotals] @@ -33,7 +35,8 @@ def get_host_totals(opts = {}) end # Get the total number of active hosts - # This endpoint returns the total number of active and up hosts in your Datadog account. Active means the host has reported in the past hour, and up means it has reported in the past two hours. + # This endpoint returns the total number of active and up hosts in your Datadog account. + # Active means the host has reported in the past hour, and up means it has reported in the past two hours. # @param [Hash] opts the optional parameters # @option opts [Integer] :from Number of seconds from which you want to get total number of active hosts. # @return [Array<(HostTotals, Integer, Hash)>] HostTotals data, response status code and response headers @@ -73,7 +76,7 @@ def get_host_totals_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'HostTotals' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_host_totals, @@ -93,11 +96,14 @@ def get_host_totals_with_http_info(opts = {}) end # Get all hosts for your organization - # This endpoint allows searching for hosts by name, alias, or tag. Hosts live within the past 3 hours are included by default. Retention is 7 days. Results are paginated with a max of 1000 results at a time. + # This endpoint allows searching for hosts by name, alias, or tag. + # Hosts live within the past 3 hours are included by default. + # Retention is 7 days. + # Results are paginated with a max of 1000 results at a time. # @param [Hash] opts the optional parameters # @option opts [String] :filter String to filter search results. # @option opts [String] :sort_field Sort hosts by this field. - # @option opts [String] :sort_dir Direction of sort. Options include `asc` and `desc`. + # @option opts [String] :sort_dir Direction of sort. Options include `asc` and `desc`. # @option opts [Integer] :start Host result to start search from. # @option opts [Integer] :count Number of hosts to return. Max 1000. # @option opts [Integer] :from Number of seconds since UNIX epoch from which you want to search your hosts. @@ -110,11 +116,14 @@ def list_hosts(opts = {}) end # Get all hosts for your organization - # This endpoint allows searching for hosts by name, alias, or tag. Hosts live within the past 3 hours are included by default. Retention is 7 days. Results are paginated with a max of 1000 results at a time. + # This endpoint allows searching for hosts by name, alias, or tag. + # Hosts live within the past 3 hours are included by default. + # Retention is 7 days. + # Results are paginated with a max of 1000 results at a time. # @param [Hash] opts the optional parameters # @option opts [String] :filter String to filter search results. # @option opts [String] :sort_field Sort hosts by this field. - # @option opts [String] :sort_dir Direction of sort. Options include `asc` and `desc`. + # @option opts [String] :sort_dir Direction of sort. Options include `asc` and `desc`. # @option opts [Integer] :start Host result to start search from. # @option opts [Integer] :count Number of hosts to return. Max 1000. # @option opts [Integer] :from Number of seconds since UNIX epoch from which you want to search your hosts. @@ -164,7 +173,7 @@ def list_hosts_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'HostListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_hosts, @@ -223,7 +232,7 @@ def mute_host_with_http_info(host_name, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling HostsAPI.mute_host" end # resource path - local_var_path = '/api/v1/host/{host_name}/mute'.sub('{' + 'host_name' + '}', CGI.escape(host_name.to_s)) + local_var_path = '/api/v1/host/{host_name}/mute'.sub('{host_name}', CGI.escape(host_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -298,7 +307,7 @@ def unmute_host_with_http_info(host_name, opts = {}) fail ArgumentError, "Missing the required parameter 'host_name' when calling HostsAPI.unmute_host" end # resource path - local_var_path = '/api/v1/host/{host_name}/unmute'.sub('{' + 'host_name' + '}', CGI.escape(host_name.to_s)) + local_var_path = '/api/v1/host/{host_name}/unmute'.sub('{host_name}', CGI.escape(host_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/datadog_api_client/v1/api/ip_ranges_api.rb b/lib/datadog_api_client/v1/api/ip_ranges_api.rb index 5125671788d..9b1a135ad06 100644 --- a/lib/datadog_api_client/v1/api/ip_ranges_api.rb +++ b/lib/datadog_api_client/v1/api/ip_ranges_api.rb @@ -22,6 +22,7 @@ class IPRangesAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # List IP Ranges # Get information about Datadog IP ranges. # @param [Hash] opts the optional parameters diff --git a/lib/datadog_api_client/v1/api/key_management_api.rb b/lib/datadog_api_client/v1/api/key_management_api.rb index a92d587e94c..8ccc679117a 100644 --- a/lib/datadog_api_client/v1/api/key_management_api.rb +++ b/lib/datadog_api_client/v1/api/key_management_api.rb @@ -22,6 +22,7 @@ class KeyManagementAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create an API key # Creates an API key with a given name. # @param body [ApiKey] @@ -206,7 +207,7 @@ def delete_api_key_with_http_info(key, opts = {}) fail ArgumentError, "Missing the required parameter 'key' when calling KeyManagementAPI.delete_api_key" end # resource path - local_var_path = '/api/v1/api_key/{key}'.sub('{' + 'key' + '}', CGI.escape(key.to_s)) + local_var_path = '/api/v1/api_key/{key}'.sub('{key}', CGI.escape(key.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -279,7 +280,7 @@ def delete_application_key_with_http_info(key, opts = {}) fail ArgumentError, "Missing the required parameter 'key' when calling KeyManagementAPI.delete_application_key" end # resource path - local_var_path = '/api/v1/application_key/{key}'.sub('{' + 'key' + '}', CGI.escape(key.to_s)) + local_var_path = '/api/v1/application_key/{key}'.sub('{key}', CGI.escape(key.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -352,7 +353,7 @@ def get_api_key_with_http_info(key, opts = {}) fail ArgumentError, "Missing the required parameter 'key' when calling KeyManagementAPI.get_api_key" end # resource path - local_var_path = '/api/v1/api_key/{key}'.sub('{' + 'key' + '}', CGI.escape(key.to_s)) + local_var_path = '/api/v1/api_key/{key}'.sub('{key}', CGI.escape(key.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -425,7 +426,7 @@ def get_application_key_with_http_info(key, opts = {}) fail ArgumentError, "Missing the required parameter 'key' when calling KeyManagementAPI.get_application_key" end # resource path - local_var_path = '/api/v1/application_key/{key}'.sub('{' + 'key' + '}', CGI.escape(key.to_s)) + local_var_path = '/api/v1/application_key/{key}'.sub('{key}', CGI.escape(key.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -638,7 +639,7 @@ def update_api_key_with_http_info(key, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling KeyManagementAPI.update_api_key" end # resource path - local_var_path = '/api/v1/api_key/{key}'.sub('{' + 'key' + '}', CGI.escape(key.to_s)) + local_var_path = '/api/v1/api_key/{key}'.sub('{key}', CGI.escape(key.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -719,7 +720,7 @@ def update_application_key_with_http_info(key, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling KeyManagementAPI.update_application_key" end # resource path - local_var_path = '/api/v1/application_key/{key}'.sub('{' + 'key' + '}', CGI.escape(key.to_s)) + local_var_path = '/api/v1/application_key/{key}'.sub('{key}', CGI.escape(key.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/datadog_api_client/v1/api/logs_api.rb b/lib/datadog_api_client/v1/api/logs_api.rb index 954a9be981b..cf343ccf988 100644 --- a/lib/datadog_api_client/v1/api/logs_api.rb +++ b/lib/datadog_api_client/v1/api/logs_api.rb @@ -22,8 +22,17 @@ class LogsAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Search logs - # List endpoint returns logs that match a log search query. [Results are paginated][1]. **If you are considering archiving logs for your organization, consider use of the Datadog archive capabilities instead of the log list API. See [Datadog Logs Archive documentation][2].** [1]: /logs/guide/collect-multiple-logs-with-pagination [2]: https://docs.datadoghq.com/logs/archives + # List endpoint returns logs that match a log search query. + # [Results are paginated][1]. + # + # **If you are considering archiving logs for your organization, + # consider use of the Datadog archive capabilities instead of the log list API. + # See [Datadog Logs Archive documentation][2].** + # + # [1]: /logs/guide/collect-multiple-logs-with-pagination + # [2]: https://docs.datadoghq.com/logs/archives # @param body [LogsListRequest] Logs filter # @param [Hash] opts the optional parameters # @return [LogsListResponse] @@ -33,7 +42,15 @@ def list_logs(body, opts = {}) end # Search logs - # List endpoint returns logs that match a log search query. [Results are paginated][1]. **If you are considering archiving logs for your organization, consider use of the Datadog archive capabilities instead of the log list API. See [Datadog Logs Archive documentation][2].** [1]: /logs/guide/collect-multiple-logs-with-pagination [2]: https://docs.datadoghq.com/logs/archives + # List endpoint returns logs that match a log search query. + # [Results are paginated][1]. + # + # **If you are considering archiving logs for your organization, + # consider use of the Datadog archive capabilities instead of the log list API. + # See [Datadog Logs Archive documentation][2].** + # + # [1]: /logs/guide/collect-multiple-logs-with-pagination + # [2]: https://docs.datadoghq.com/logs/archives # @param body [LogsListRequest] Logs filter # @param [Hash] opts the optional parameters # @return [Array<(LogsListResponse, Integer, Hash)>] LogsListResponse data, response status code and response headers @@ -98,11 +115,29 @@ def list_logs_with_http_info(body, opts = {}) end # Send logs - # Send your logs to your Datadog platform over HTTP. Limits per HTTP request are: - Maximum content size per payload (uncompressed): 5MB - Maximum size for a single log: 1MB - Maximum array size if sending multiple logs in an array: 1000 entries Any log exceeding 1MB is accepted and truncated by Datadog: - For a single log request, the API truncates the log at 1MB and returns a 2xx. - For a multi-logs request, the API processes all logs, truncates only logs larger than 1MB, and returns a 2xx. Datadog recommends sending your logs compressed. Add the `Content-Encoding: gzip` header to the request when sending compressed logs. The status codes answered by the HTTP API are: - 200: OK - 400: Bad request (likely an issue in the payload formatting) - 403: Permission issue (likely using an invalid API Key) - 413: Payload too large (batch is above 5MB uncompressed) - 5xx: Internal error, request should be retried after some time + # Send your logs to your Datadog platform over HTTP. Limits per HTTP request are: + # + # - Maximum content size per payload (uncompressed): 5MB + # - Maximum size for a single log: 1MB + # - Maximum array size if sending multiple logs in an array: 1000 entries + # + # Any log exceeding 1MB is accepted and truncated by Datadog: + # - For a single log request, the API truncates the log at 1MB and returns a 2xx. + # - For a multi-logs request, the API processes all logs, truncates only logs larger than 1MB, and returns a 2xx. + # + # Datadog recommends sending your logs compressed. + # Add the `Content-Encoding: gzip` header to the request when sending compressed logs. + # + # The status codes answered by the HTTP API are: + # - 200: OK + # - 400: Bad request (likely an issue in the payload formatting) + # - 403: Permission issue (likely using an invalid API Key) + # - 413: Payload too large (batch is above 5MB uncompressed) + # - 5xx: Internal error, request should be retried after some time # @param body [Array] Log to send (JSON format). # @param [Hash] opts the optional parameters # @option opts [ContentEncoding] :content_encoding HTTP header used to compress the media-type. - # @option opts [String] :ddtags Log tags can be passed as query parameters with `text/plain` content type. + # @option opts [String] :ddtags Log tags can be passed as query parameters with `text/plain` content type. # @return [Object] def submit_log(body, opts = {}) data, _status_code, _headers = submit_log_with_http_info(body, opts) @@ -110,11 +145,29 @@ def submit_log(body, opts = {}) end # Send logs - # Send your logs to your Datadog platform over HTTP. Limits per HTTP request are: - Maximum content size per payload (uncompressed): 5MB - Maximum size for a single log: 1MB - Maximum array size if sending multiple logs in an array: 1000 entries Any log exceeding 1MB is accepted and truncated by Datadog: - For a single log request, the API truncates the log at 1MB and returns a 2xx. - For a multi-logs request, the API processes all logs, truncates only logs larger than 1MB, and returns a 2xx. Datadog recommends sending your logs compressed. Add the `Content-Encoding: gzip` header to the request when sending compressed logs. The status codes answered by the HTTP API are: - 200: OK - 400: Bad request (likely an issue in the payload formatting) - 403: Permission issue (likely using an invalid API Key) - 413: Payload too large (batch is above 5MB uncompressed) - 5xx: Internal error, request should be retried after some time + # Send your logs to your Datadog platform over HTTP. Limits per HTTP request are: + # + # - Maximum content size per payload (uncompressed): 5MB + # - Maximum size for a single log: 1MB + # - Maximum array size if sending multiple logs in an array: 1000 entries + # + # Any log exceeding 1MB is accepted and truncated by Datadog: + # - For a single log request, the API truncates the log at 1MB and returns a 2xx. + # - For a multi-logs request, the API processes all logs, truncates only logs larger than 1MB, and returns a 2xx. + # + # Datadog recommends sending your logs compressed. + # Add the `Content-Encoding: gzip` header to the request when sending compressed logs. + # + # The status codes answered by the HTTP API are: + # - 200: OK + # - 400: Bad request (likely an issue in the payload formatting) + # - 403: Permission issue (likely using an invalid API Key) + # - 413: Payload too large (batch is above 5MB uncompressed) + # - 5xx: Internal error, request should be retried after some time # @param body [Array] Log to send (JSON format). # @param [Hash] opts the optional parameters # @option opts [ContentEncoding] :content_encoding HTTP header used to compress the media-type. - # @option opts [String] :ddtags Log tags can be passed as query parameters with `text/plain` content type. + # @option opts [String] :ddtags Log tags can be passed as query parameters with `text/plain` content type. # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def submit_log_with_http_info(body, opts = {}) @@ -147,7 +200,6 @@ def submit_log_with_http_info(body, opts = {}) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/logplex-1', 'text/plain']) - header_params['Content-Encoding'] = opts[:'content_encoding'] if !opts[:'content_encoding'].nil? # form parameters form_params = opts[:form_params] || {} diff --git a/lib/datadog_api_client/v1/api/logs_indexes_api.rb b/lib/datadog_api_client/v1/api/logs_indexes_api.rb index b8abaef4e8a..1cebdd14373 100644 --- a/lib/datadog_api_client/v1/api/logs_indexes_api.rb +++ b/lib/datadog_api_client/v1/api/logs_indexes_api.rb @@ -22,6 +22,7 @@ class LogsIndexesAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create an index # Creates a new index. Returns the Index object passed in the request body when the request is successful. # @param body [LogsIndex] Object containing the new index. @@ -131,7 +132,7 @@ def get_logs_index_with_http_info(name, opts = {}) fail ArgumentError, "Missing the required parameter 'name' when calling LogsIndexesAPI.get_logs_index" end # resource path - local_var_path = '/api/v1/logs/config/indexes/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)) + local_var_path = '/api/v1/logs/config/indexes/{name}'.sub('{name}', CGI.escape(name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -218,7 +219,7 @@ def get_logs_index_order_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LogsIndexesOrder' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_logs_index_order, @@ -238,7 +239,8 @@ def get_logs_index_order_with_http_info(opts = {}) end # Get all indexes - # The Index object describes the configuration of a log index. This endpoint returns an array of the `LogIndex` objects of your organization. + # The Index object describes the configuration of a log index. + # This endpoint returns an array of the `LogIndex` objects of your organization. # @param [Hash] opts the optional parameters # @return [LogsIndexListResponse] def list_log_indexes(opts = {}) @@ -247,7 +249,8 @@ def list_log_indexes(opts = {}) end # Get all indexes - # The Index object describes the configuration of a log index. This endpoint returns an array of the `LogIndex` objects of your organization. + # The Index object describes the configuration of a log index. + # This endpoint returns an array of the `LogIndex` objects of your organization. # @param [Hash] opts the optional parameters # @return [Array<(LogsIndexListResponse, Integer, Hash)>] LogsIndexListResponse data, response status code and response headers def list_log_indexes_with_http_info(opts = {}) @@ -285,7 +288,7 @@ def list_log_indexes_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LogsIndexListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_log_indexes, @@ -305,9 +308,13 @@ def list_log_indexes_with_http_info(opts = {}) end # Update an index - # Update an index as identified by its name. Returns the Index object passed in the request body when the request is successful. Using the `PUT` method updates your index’s configuration by **replacing** your current configuration with the new one sent to your Datadog organization. + # Update an index as identified by its name. + # Returns the Index object passed in the request body when the request is successful. + # + # Using the `PUT` method updates your index’s configuration by **replacing** + # your current configuration with the new one sent to your Datadog organization. # @param name [String] Name of the log index. - # @param body [LogsIndexUpdateRequest] Object containing the new `LogsIndexUpdateRequest`. + # @param body [LogsIndexUpdateRequest] Object containing the new `LogsIndexUpdateRequest`. # @param [Hash] opts the optional parameters # @return [LogsIndex] def update_logs_index(name, body, opts = {}) @@ -316,9 +323,13 @@ def update_logs_index(name, body, opts = {}) end # Update an index - # Update an index as identified by its name. Returns the Index object passed in the request body when the request is successful. Using the `PUT` method updates your index’s configuration by **replacing** your current configuration with the new one sent to your Datadog organization. + # Update an index as identified by its name. + # Returns the Index object passed in the request body when the request is successful. + # + # Using the `PUT` method updates your index’s configuration by **replacing** + # your current configuration with the new one sent to your Datadog organization. # @param name [String] Name of the log index. - # @param body [LogsIndexUpdateRequest] Object containing the new `LogsIndexUpdateRequest`. + # @param body [LogsIndexUpdateRequest] Object containing the new `LogsIndexUpdateRequest`. # @param [Hash] opts the optional parameters # @return [Array<(LogsIndex, Integer, Hash)>] LogsIndex data, response status code and response headers def update_logs_index_with_http_info(name, body, opts = {}) @@ -344,7 +355,7 @@ def update_logs_index_with_http_info(name, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling LogsIndexesAPI.update_logs_index" end # resource path - local_var_path = '/api/v1/logs/config/indexes/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)) + local_var_path = '/api/v1/logs/config/indexes/{name}'.sub('{name}', CGI.escape(name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -386,7 +397,8 @@ def update_logs_index_with_http_info(name, body, opts = {}) end # Update indexes order - # This endpoint updates the index order of your organization. It returns the index order object passed in the request body when the request is successful. + # This endpoint updates the index order of your organization. + # It returns the index order object passed in the request body when the request is successful. # @param body [LogsIndexesOrder] Object containing the new ordered list of index names # @param [Hash] opts the optional parameters # @return [LogsIndexesOrder] @@ -396,7 +408,8 @@ def update_logs_index_order(body, opts = {}) end # Update indexes order - # This endpoint updates the index order of your organization. It returns the index order object passed in the request body when the request is successful. + # This endpoint updates the index order of your organization. + # It returns the index order object passed in the request body when the request is successful. # @param body [LogsIndexesOrder] Object containing the new ordered list of index names # @param [Hash] opts the optional parameters # @return [Array<(LogsIndexesOrder, Integer, Hash)>] LogsIndexesOrder data, response status code and response headers diff --git a/lib/datadog_api_client/v1/api/logs_pipelines_api.rb b/lib/datadog_api_client/v1/api/logs_pipelines_api.rb index c8d1380d7ee..3fd49a1fd6f 100644 --- a/lib/datadog_api_client/v1/api/logs_pipelines_api.rb +++ b/lib/datadog_api_client/v1/api/logs_pipelines_api.rb @@ -22,6 +22,7 @@ class LogsPipelinesAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create a pipeline # Create a pipeline in your organization. # @param body [LogsPipeline] Definition of the new pipeline. @@ -98,7 +99,8 @@ def create_logs_pipeline_with_http_info(body, opts = {}) end # Delete a pipeline - # Delete a given pipeline from your organization. This endpoint takes no JSON arguments. + # Delete a given pipeline from your organization. + # This endpoint takes no JSON arguments. # @param pipeline_id [String] ID of the pipeline to delete. # @param [Hash] opts the optional parameters # @return [nil] @@ -108,7 +110,8 @@ def delete_logs_pipeline(pipeline_id, opts = {}) end # Delete a pipeline - # Delete a given pipeline from your organization. This endpoint takes no JSON arguments. + # Delete a given pipeline from your organization. + # This endpoint takes no JSON arguments. # @param pipeline_id [String] ID of the pipeline to delete. # @param [Hash] opts the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers @@ -131,7 +134,7 @@ def delete_logs_pipeline_with_http_info(pipeline_id, opts = {}) fail ArgumentError, "Missing the required parameter 'pipeline_id' when calling LogsPipelinesAPI.delete_logs_pipeline" end # resource path - local_var_path = '/api/v1/logs/config/pipelines/{pipeline_id}'.sub('{' + 'pipeline_id' + '}', CGI.escape(pipeline_id.to_s)) + local_var_path = '/api/v1/logs/config/pipelines/{pipeline_id}'.sub('{pipeline_id}', CGI.escape(pipeline_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -139,7 +142,7 @@ def delete_logs_pipeline_with_http_info(pipeline_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -171,7 +174,8 @@ def delete_logs_pipeline_with_http_info(pipeline_id, opts = {}) end # Get a pipeline - # Get a specific pipeline from your organization. This endpoint takes no JSON arguments. + # Get a specific pipeline from your organization. + # This endpoint takes no JSON arguments. # @param pipeline_id [String] ID of the pipeline to get. # @param [Hash] opts the optional parameters # @return [LogsPipeline] @@ -181,7 +185,8 @@ def get_logs_pipeline(pipeline_id, opts = {}) end # Get a pipeline - # Get a specific pipeline from your organization. This endpoint takes no JSON arguments. + # Get a specific pipeline from your organization. + # This endpoint takes no JSON arguments. # @param pipeline_id [String] ID of the pipeline to get. # @param [Hash] opts the optional parameters # @return [Array<(LogsPipeline, Integer, Hash)>] LogsPipeline data, response status code and response headers @@ -204,7 +209,7 @@ def get_logs_pipeline_with_http_info(pipeline_id, opts = {}) fail ArgumentError, "Missing the required parameter 'pipeline_id' when calling LogsPipelinesAPI.get_logs_pipeline" end # resource path - local_var_path = '/api/v1/logs/config/pipelines/{pipeline_id}'.sub('{' + 'pipeline_id' + '}', CGI.escape(pipeline_id.to_s)) + local_var_path = '/api/v1/logs/config/pipelines/{pipeline_id}'.sub('{pipeline_id}', CGI.escape(pipeline_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -224,7 +229,7 @@ def get_logs_pipeline_with_http_info(pipeline_id, opts = {}) return_type = opts[:debug_return_type] || 'LogsPipeline' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_logs_pipeline, @@ -244,7 +249,8 @@ def get_logs_pipeline_with_http_info(pipeline_id, opts = {}) end # Get pipeline order - # Get the current order of your pipelines. This endpoint takes no JSON arguments. + # Get the current order of your pipelines. + # This endpoint takes no JSON arguments. # @param [Hash] opts the optional parameters # @return [LogsPipelinesOrder] def get_logs_pipeline_order(opts = {}) @@ -253,7 +259,8 @@ def get_logs_pipeline_order(opts = {}) end # Get pipeline order - # Get the current order of your pipelines. This endpoint takes no JSON arguments. + # Get the current order of your pipelines. + # This endpoint takes no JSON arguments. # @param [Hash] opts the optional parameters # @return [Array<(LogsPipelinesOrder, Integer, Hash)>] LogsPipelinesOrder data, response status code and response headers def get_logs_pipeline_order_with_http_info(opts = {}) @@ -291,7 +298,7 @@ def get_logs_pipeline_order_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LogsPipelinesOrder' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_logs_pipeline_order, @@ -311,7 +318,8 @@ def get_logs_pipeline_order_with_http_info(opts = {}) end # Get all pipelines - # Get all pipelines from your organization. This endpoint takes no JSON arguments. + # Get all pipelines from your organization. + # This endpoint takes no JSON arguments. # @param [Hash] opts the optional parameters # @return [Array] def list_logs_pipelines(opts = {}) @@ -320,7 +328,8 @@ def list_logs_pipelines(opts = {}) end # Get all pipelines - # Get all pipelines from your organization. This endpoint takes no JSON arguments. + # Get all pipelines from your organization. + # This endpoint takes no JSON arguments. # @param [Hash] opts the optional parameters # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers def list_logs_pipelines_with_http_info(opts = {}) @@ -358,7 +367,7 @@ def list_logs_pipelines_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'Array' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_logs_pipelines, @@ -378,7 +387,10 @@ def list_logs_pipelines_with_http_info(opts = {}) end # Update a pipeline - # Update a given pipeline configuration to change it’s processors or their order. **Note**: Using this method updates your pipeline configuration by **replacing** your current configuration with the new one sent to your Datadog organization. + # Update a given pipeline configuration to change it’s processors or their order. + # + # **Note**: Using this method updates your pipeline configuration by **replacing** + # your current configuration with the new one sent to your Datadog organization. # @param pipeline_id [String] ID of the pipeline to delete. # @param body [LogsPipeline] New definition of the pipeline. # @param [Hash] opts the optional parameters @@ -389,7 +401,10 @@ def update_logs_pipeline(pipeline_id, body, opts = {}) end # Update a pipeline - # Update a given pipeline configuration to change it’s processors or their order. **Note**: Using this method updates your pipeline configuration by **replacing** your current configuration with the new one sent to your Datadog organization. + # Update a given pipeline configuration to change it’s processors or their order. + # + # **Note**: Using this method updates your pipeline configuration by **replacing** + # your current configuration with the new one sent to your Datadog organization. # @param pipeline_id [String] ID of the pipeline to delete. # @param body [LogsPipeline] New definition of the pipeline. # @param [Hash] opts the optional parameters @@ -417,7 +432,7 @@ def update_logs_pipeline_with_http_info(pipeline_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling LogsPipelinesAPI.update_logs_pipeline" end # resource path - local_var_path = '/api/v1/logs/config/pipelines/{pipeline_id}'.sub('{' + 'pipeline_id' + '}', CGI.escape(pipeline_id.to_s)) + local_var_path = '/api/v1/logs/config/pipelines/{pipeline_id}'.sub('{pipeline_id}', CGI.escape(pipeline_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -459,7 +474,11 @@ def update_logs_pipeline_with_http_info(pipeline_id, body, opts = {}) end # Update pipeline order - # Update the order of your pipelines. Since logs are processed sequentially, reordering a pipeline may change the structure and content of the data processed by other pipelines and their processors. **Note**: Using the `PUT` method updates your pipeline order by replacing your current order with the new one sent to your Datadog organization. + # Update the order of your pipelines. Since logs are processed sequentially, reordering a pipeline may change + # the structure and content of the data processed by other pipelines and their processors. + # + # **Note**: Using the `PUT` method updates your pipeline order by replacing your current order + # with the new one sent to your Datadog organization. # @param body [LogsPipelinesOrder] Object containing the new ordered list of pipeline IDs. # @param [Hash] opts the optional parameters # @return [LogsPipelinesOrder] @@ -469,7 +488,11 @@ def update_logs_pipeline_order(body, opts = {}) end # Update pipeline order - # Update the order of your pipelines. Since logs are processed sequentially, reordering a pipeline may change the structure and content of the data processed by other pipelines and their processors. **Note**: Using the `PUT` method updates your pipeline order by replacing your current order with the new one sent to your Datadog organization. + # Update the order of your pipelines. Since logs are processed sequentially, reordering a pipeline may change + # the structure and content of the data processed by other pipelines and their processors. + # + # **Note**: Using the `PUT` method updates your pipeline order by replacing your current order + # with the new one sent to your Datadog organization. # @param body [LogsPipelinesOrder] Object containing the new ordered list of pipeline IDs. # @param [Hash] opts the optional parameters # @return [Array<(LogsPipelinesOrder, Integer, Hash)>] LogsPipelinesOrder data, response status code and response headers diff --git a/lib/datadog_api_client/v1/api/metrics_api.rb b/lib/datadog_api_client/v1/api/metrics_api.rb index 9428458982c..1923e4e3d9d 100644 --- a/lib/datadog_api_client/v1/api/metrics_api.rb +++ b/lib/datadog_api_client/v1/api/metrics_api.rb @@ -22,6 +22,7 @@ class MetricsAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Get metric metadata # Get metadata about a specific metric. # @param metric_name [String] Name of the metric for which to get metadata. @@ -56,7 +57,7 @@ def get_metric_metadata_with_http_info(metric_name, opts = {}) fail ArgumentError, "Missing the required parameter 'metric_name' when calling MetricsAPI.get_metric_metadata" end # resource path - local_var_path = '/api/v1/metrics/{metric_name}'.sub('{' + 'metric_name' + '}', CGI.escape(metric_name.to_s)) + local_var_path = '/api/v1/metrics/{metric_name}'.sub('{metric_name}', CGI.escape(metric_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -76,7 +77,7 @@ def get_metric_metadata_with_http_info(metric_name, opts = {}) return_type = opts[:debug_return_type] || 'MetricMetadata' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_metric_metadata, @@ -156,7 +157,7 @@ def list_active_metrics_with_http_info(from, opts = {}) return_type = opts[:debug_return_type] || 'MetricsListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_active_metrics, @@ -177,7 +178,7 @@ def list_active_metrics_with_http_info(from, opts = {}) # Search metrics # Search for metrics from the last 24 hours in Datadog. - # @param q [String] Query string to search metrics upon. Must be prefixed with `metrics:`. + # @param q [String] Query string to search metrics upon. Must be prefixed with `metrics:`. # @param [Hash] opts the optional parameters # @return [MetricSearchResponse] def list_metrics(q, opts = {}) @@ -187,7 +188,7 @@ def list_metrics(q, opts = {}) # Search metrics # Search for metrics from the last 24 hours in Datadog. - # @param q [String] Query string to search metrics upon. Must be prefixed with `metrics:`. + # @param q [String] Query string to search metrics upon. Must be prefixed with `metrics:`. # @param [Hash] opts the optional parameters # @return [Array<(MetricSearchResponse, Integer, Hash)>] MetricSearchResponse data, response status code and response headers def list_metrics_with_http_info(q, opts = {}) @@ -230,7 +231,7 @@ def list_metrics_with_http_info(q, opts = {}) return_type = opts[:debug_return_type] || 'MetricSearchResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_metrics, @@ -318,7 +319,7 @@ def query_metrics_with_http_info(from, to, query, opts = {}) return_type = opts[:debug_return_type] || 'MetricsQueryResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :query_metrics, @@ -338,7 +339,17 @@ def query_metrics_with_http_info(from, to, query, opts = {}) end # Submit metrics - # The metrics end-point allows you to post time-series data that can be graphed on Datadog’s dashboards. The maximum payload size is 3.2 megabytes (3200000 bytes). Compressed payloads must have a decompressed size of less than 62 megabytes (62914560 bytes). If you’re submitting metrics directly to the Datadog API without using DogStatsD, expect: - 64 bits for the timestamp - 32 bits for the value - 20 bytes for the metric names - 50 bytes for the timeseries - The full payload is approximately 100 bytes. However, with the DogStatsD API, compression is applied, which reduces the payload size. + # The metrics end-point allows you to post time-series data that can be graphed on Datadog’s dashboards. + # The maximum payload size is 3.2 megabytes (3200000 bytes). Compressed payloads must have a decompressed size of less than 62 megabytes (62914560 bytes). + # + # If you’re submitting metrics directly to the Datadog API without using DogStatsD, expect: + # + # - 64 bits for the timestamp + # - 32 bits for the value + # - 20 bytes for the metric names + # - 50 bytes for the timeseries + # - The full payload is approximately 100 bytes. However, with the DogStatsD API, + # compression is applied, which reduces the payload size. # @param body [MetricsPayload] # @param [Hash] opts the optional parameters # @option opts [MetricContentEncoding] :content_encoding HTTP header used to compress the media-type. @@ -349,7 +360,17 @@ def submit_metrics(body, opts = {}) end # Submit metrics - # The metrics end-point allows you to post time-series data that can be graphed on Datadog’s dashboards. The maximum payload size is 3.2 megabytes (3200000 bytes). Compressed payloads must have a decompressed size of less than 62 megabytes (62914560 bytes). If you’re submitting metrics directly to the Datadog API without using DogStatsD, expect: - 64 bits for the timestamp - 32 bits for the value - 20 bytes for the metric names - 50 bytes for the timeseries - The full payload is approximately 100 bytes. However, with the DogStatsD API, compression is applied, which reduces the payload size. + # The metrics end-point allows you to post time-series data that can be graphed on Datadog’s dashboards. + # The maximum payload size is 3.2 megabytes (3200000 bytes). Compressed payloads must have a decompressed size of less than 62 megabytes (62914560 bytes). + # + # If you’re submitting metrics directly to the Datadog API without using DogStatsD, expect: + # + # - 64 bits for the timestamp + # - 32 bits for the value + # - 20 bytes for the metric names + # - 50 bytes for the timeseries + # - The full payload is approximately 100 bytes. However, with the DogStatsD API, + # compression is applied, which reduces the payload size. # @param body [MetricsPayload] # @param [Hash] opts the optional parameters # @option opts [MetricContentEncoding] :content_encoding HTTP header used to compress the media-type. @@ -384,7 +405,6 @@ def submit_metrics_with_http_info(body, opts = {}) header_params['Accept'] = @api_client.select_header_accept(['text/json', 'application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['text/json']) - header_params['Content-Encoding'] = opts[:'content_encoding'] if !opts[:'content_encoding'].nil? # form parameters form_params = opts[:form_params] || {} @@ -455,7 +475,7 @@ def update_metric_metadata_with_http_info(metric_name, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling MetricsAPI.update_metric_metadata" end # resource path - local_var_path = '/api/v1/metrics/{metric_name}'.sub('{' + 'metric_name' + '}', CGI.escape(metric_name.to_s)) + local_var_path = '/api/v1/metrics/{metric_name}'.sub('{metric_name}', CGI.escape(metric_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/datadog_api_client/v1/api/monitors_api.rb b/lib/datadog_api_client/v1/api/monitors_api.rb index fb88b228d35..ce3f113b250 100644 --- a/lib/datadog_api_client/v1/api/monitors_api.rb +++ b/lib/datadog_api_client/v1/api/monitors_api.rb @@ -22,6 +22,7 @@ class MonitorsAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Check if a monitor can be deleted # Check if the given monitors can be deleted. # @param monitor_ids [Array] The IDs of the monitor to check. @@ -77,7 +78,7 @@ def check_can_delete_monitor_with_http_info(monitor_ids, opts = {}) return_type = opts[:debug_return_type] || 'CheckCanDeleteMonitorResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :check_can_delete_monitor, @@ -97,7 +98,165 @@ def check_can_delete_monitor_with_http_info(monitor_ids, opts = {}) end # Create a monitor - # Create a monitor using the specified options. #### Monitor Types The type of monitor chosen from: - anomaly: `query alert` - APM: `query alert` or `trace-analytics alert` - composite: `composite` - custom: `service check` - event: `event alert` - forecast: `query alert` - host: `service check` - integration: `query alert` or `service check` - live process: `process alert` - logs: `log alert` - metric: `query alert` - network: `service check` - outlier: `query alert` - process: `service check` - rum: `rum alert` - SLO: `slo alert` - watchdog: `event alert` - event-v2: `event-v2 alert` - audit: `audit alert` #### Query Types **Metric Alert Query** Example: `time_aggr(time_window):space_aggr:metric{tags} [by {key}] operator #` - `time_aggr`: avg, sum, max, min, change, or pct_change - `time_window`: `last_#m` (with `#` between 1 and 10080 depending on the monitor type) or `last_#h`(with `#` between 1 and 168 depending on the monitor type) or `last_1d`, or `last_1w` - `space_aggr`: avg, sum, min, or max - `tags`: one or more tags (comma-separated), or * - `key`: a 'key' in key:value tag syntax; defines a separate alert for each tag in the group (multi-alert) - `operator`: <, <=, >, >=, ==, or != - `#`: an integer or decimal number used to set the threshold If you are using the `_change_` or `_pct_change_` time aggregator, instead use `change_aggr(time_aggr(time_window), timeshift):space_aggr:metric{tags} [by {key}] operator #` with: - `change_aggr` change, pct_change - `time_aggr` avg, sum, max, min [Learn more](https://docs.datadoghq.com/monitors/create/types/#define-the-conditions) - `time_window` last\\_#m (between 1 and 2880 depending on the monitor type), last\\_#h (between 1 and 48 depending on the monitor type), or last_#d (1 or 2) - `timeshift` #m_ago (5, 10, 15, or 30), #h_ago (1, 2, or 4), or 1d_ago Use this to create an outlier monitor using the following query: `avg(last_30m):outliers(avg:system.cpu.user{role:es-events-data} by {host}, 'dbscan', 7) > 0` **Service Check Query** Example: `\"check\".over(tags).last(count).by(group).count_by_status()` - **`check`** name of the check, for example `datadog.agent.up` - **`tags`** one or more quoted tags (comma-separated), or \"*\". for example: `.over(\"env:prod\", \"role:db\")`; **`over`** cannot be blank. - **`count`** must be at greater than or equal to your max threshold (defined in the `options`). It is limited to 100. For example, if you've specified to notify on 1 critical, 3 ok, and 2 warn statuses, `count` should be at least 3. - **`group`** must be specified for check monitors. Per-check grouping is already explicitly known for some service checks. For example, Postgres integration monitors are tagged by `db`, `host`, and `port`, and Network monitors by `host`, `instance`, and `url`. See [Service Checks](https://docs.datadoghq.com/api/latest/service-checks/) documentation for more information. **Event Alert Query** Example: `events('sources:nagios status:error,warning priority:normal tags: \"string query\"').rollup(\"count\").last(\"1h\")\"` - **`event`**, the event query string: - **`string_query`** free text query to match against event title and text. - **`sources`** event sources (comma-separated). - **`status`** event statuses (comma-separated). Valid options: error, warn, and info. - **`priority`** event priorities (comma-separated). Valid options: low, normal, all. - **`host`** event reporting host (comma-separated). - **`tags`** event tags (comma-separated). - **`excluded_tags`** excluded event tags (comma-separated). - **`rollup`** the stats roll-up method. `count` is the only supported method now. - **`last`** the timeframe to roll up the counts. Examples: 45m, 4h. Supported timeframes: m, h and d. This value should not exceed 48 hours. **NOTE** Only available on US1 and EU. **Event V2 Alert Query** Example: `events(query).rollup(rollup_method[, measure]).last(time_window) operator #` - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. - **`#`** an integer or decimal number used to set the threshold. **NOTE** Only available on US1-FED, US3, US5 and in closed beta on EU and US1. **Process Alert Query** Example: `processes(search).over(tags).rollup('count').last(timeframe) operator #` - **`search`** free text search string for querying processes. Matching processes match results on the [Live Processes](https://docs.datadoghq.com/infrastructure/process/?tab=linuxwindows) page. - **`tags`** one or more tags (comma-separated) - **`timeframe`** the timeframe to roll up the counts. Examples: 10m, 4h. Supported timeframes: s, m, h and d - **`operator`** <, <=, >, >=, ==, or != - **`#`** an integer or decimal number used to set the threshold **Logs Alert Query** Example: `logs(query).index(index_name).rollup(rollup_method[, measure]).last(time_window) operator #` - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). - **`index_name`** For multi-index organizations, the log index in which the request is performed. - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. - **`#`** an integer or decimal number used to set the threshold. **Composite Query** Example: `12345 && 67890`, where `12345` and `67890` are the IDs of non-composite monitors * **`name`** [*required*, *default* = **dynamic, based on query**]: The name of the alert. * **`message`** [*required*, *default* = **dynamic, based on query**]: A message to include with notifications for this monitor. Email notifications can be sent to specific users by using the same '@username' notation as events. * **`tags`** [*optional*, *default* = **empty list**]: A list of tags to associate with your monitor. When getting all monitor details via the API, use the `monitor_tags` argument to filter results by these tags. It is only available via the API and isn't visible or editable in the Datadog UI. **SLO Alert Query** Example: `error_budget(\"slo_id\").over(\"time_window\") operator #` - **`slo_id`**: The alphanumeric SLO ID of the SLO you are configuring the alert for. - **`time_window`**: The time window of the SLO target you wish to alert on. Valid options: `7d`, `30d`, `90d`. - **`operator`**: `>=` or `>` **Audit Alert Query** Example: `audits(query).rollup(rollup_method[, measure]).last(time_window) operator #` - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. - **`#`** an integer or decimal number used to set the threshold. **NOTE** Only available on US1-FED and in closed beta on US1, EU, US3, and US5. **CI Pipelines Alert Query** Example: `ci-pipelines(query).rollup(rollup_method[, measure]).last(time_window) operator #` - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). - **`rollup_method`** The stats roll-up method - supports `count`, `avg`, and `cardinality`. - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. - **`#`** an integer or decimal number used to set the threshold. **NOTE** Only available in closed beta on US1, EU, US3 and US5. + # Create a monitor using the specified options. + # + # #### Monitor Types + # + # The type of monitor chosen from: + # + # - anomaly: `query alert` + # - APM: `query alert` or `trace-analytics alert` + # - composite: `composite` + # - custom: `service check` + # - event: `event alert` + # - forecast: `query alert` + # - host: `service check` + # - integration: `query alert` or `service check` + # - live process: `process alert` + # - logs: `log alert` + # - metric: `query alert` + # - network: `service check` + # - outlier: `query alert` + # - process: `service check` + # - rum: `rum alert` + # - SLO: `slo alert` + # - watchdog: `event alert` + # - event-v2: `event-v2 alert` + # - audit: `audit alert` + # + # #### Query Types + # + # **Metric Alert Query** + # + # Example: `time_aggr(time_window):space_aggr:metric{tags} [by {key}] operator #` + # + # - `time_aggr`: avg, sum, max, min, change, or pct_change + # - `time_window`: `last_#m` (with `#` between 1 and 10080 depending on the monitor type) or `last_#h`(with `#` between 1 and 168 depending on the monitor type) or `last_1d`, or `last_1w` + # - `space_aggr`: avg, sum, min, or max + # - `tags`: one or more tags (comma-separated), or * + # - `key`: a 'key' in key:value tag syntax; defines a separate alert for each tag in the group (multi-alert) + # - `operator`: <, <=, >, >=, ==, or != + # - `#`: an integer or decimal number used to set the threshold + # + # If you are using the `_change_` or `_pct_change_` time aggregator, instead use `change_aggr(time_aggr(time_window), + # timeshift):space_aggr:metric{tags} [by {key}] operator #` with: + # + # - `change_aggr` change, pct_change + # - `time_aggr` avg, sum, max, min [Learn more](https://docs.datadoghq.com/monitors/create/types/#define-the-conditions) + # - `time_window` last\_#m (between 1 and 2880 depending on the monitor type), last\_#h (between 1 and 48 depending on the monitor type), or last_#d (1 or 2) + # - `timeshift` #m_ago (5, 10, 15, or 30), #h_ago (1, 2, or 4), or 1d_ago + # + # Use this to create an outlier monitor using the following query: + # `avg(last_30m):outliers(avg:system.cpu.user{role:es-events-data} by {host}, 'dbscan', 7) > 0` + # + # **Service Check Query** + # + # Example: `"check".over(tags).last(count).by(group).count_by_status()` + # + # - **`check`** name of the check, for example `datadog.agent.up` + # - **`tags`** one or more quoted tags (comma-separated), or "*". for example: `.over("env:prod", "role:db")`; **`over`** cannot be blank. + # - **`count`** must be at greater than or equal to your max threshold (defined in the `options`). It is limited to 100. + # For example, if you've specified to notify on 1 critical, 3 ok, and 2 warn statuses, `count` should be at least 3. + # - **`group`** must be specified for check monitors. Per-check grouping is already explicitly known for some service checks. + # For example, Postgres integration monitors are tagged by `db`, `host`, and `port`, and Network monitors by `host`, `instance`, and `url`. See [Service Checks](https://docs.datadoghq.com/api/latest/service-checks/) documentation for more information. + # + # **Event Alert Query** + # + # Example: `events('sources:nagios status:error,warning priority:normal tags: "string query"').rollup("count").last("1h")"` + # + # - **`event`**, the event query string: + # - **`string_query`** free text query to match against event title and text. + # - **`sources`** event sources (comma-separated). + # - **`status`** event statuses (comma-separated). Valid options: error, warn, and info. + # - **`priority`** event priorities (comma-separated). Valid options: low, normal, all. + # - **`host`** event reporting host (comma-separated). + # - **`tags`** event tags (comma-separated). + # - **`excluded_tags`** excluded event tags (comma-separated). + # - **`rollup`** the stats roll-up method. `count` is the only supported method now. + # - **`last`** the timeframe to roll up the counts. Examples: 45m, 4h. Supported timeframes: m, h and d. This value should not exceed 48 hours. + # + # **NOTE** Only available on US1 and EU. + # + # **Event V2 Alert Query** + # + # Example: `events(query).rollup(rollup_method[, measure]).last(time_window) operator #` + # + # - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). + # - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. + # - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. + # - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). + # - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. + # - **`#`** an integer or decimal number used to set the threshold. + # + # **NOTE** Only available on US1-FED, US3, US5 and in closed beta on EU and US1. + # + # **Process Alert Query** + # + # Example: `processes(search).over(tags).rollup('count').last(timeframe) operator #` + # + # - **`search`** free text search string for querying processes. + # Matching processes match results on the [Live Processes](https://docs.datadoghq.com/infrastructure/process/?tab=linuxwindows) page. + # - **`tags`** one or more tags (comma-separated) + # - **`timeframe`** the timeframe to roll up the counts. Examples: 10m, 4h. Supported timeframes: s, m, h and d + # - **`operator`** <, <=, >, >=, ==, or != + # - **`#`** an integer or decimal number used to set the threshold + # + # **Logs Alert Query** + # + # Example: `logs(query).index(index_name).rollup(rollup_method[, measure]).last(time_window) operator #` + # + # - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). + # - **`index_name`** For multi-index organizations, the log index in which the request is performed. + # - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. + # - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. + # - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). + # - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. + # - **`#`** an integer or decimal number used to set the threshold. + # + # **Composite Query** + # + # Example: `12345 && 67890`, where `12345` and `67890` are the IDs of non-composite monitors + # + # * **`name`** [*required*, *default* = **dynamic, based on query**]: The name of the alert. + # * **`message`** [*required*, *default* = **dynamic, based on query**]: A message to include with notifications for this monitor. + # Email notifications can be sent to specific users by using the same '@username' notation as events. + # * **`tags`** [*optional*, *default* = **empty list**]: A list of tags to associate with your monitor. + # When getting all monitor details via the API, use the `monitor_tags` argument to filter results by these tags. + # It is only available via the API and isn't visible or editable in the Datadog UI. + # + # **SLO Alert Query** + # + # Example: `error_budget("slo_id").over("time_window") operator #` + # + # - **`slo_id`**: The alphanumeric SLO ID of the SLO you are configuring the alert for. + # - **`time_window`**: The time window of the SLO target you wish to alert on. Valid options: `7d`, `30d`, `90d`. + # - **`operator`**: `>=` or `>` + # + # **Audit Alert Query** + # + # Example: `audits(query).rollup(rollup_method[, measure]).last(time_window) operator #` + # + # - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). + # - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. + # - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. + # - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). + # - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. + # - **`#`** an integer or decimal number used to set the threshold. + # + # **NOTE** Only available on US1-FED and in closed beta on US1, EU, US3, and US5. + # + # **CI Pipelines Alert Query** + # + # Example: `ci-pipelines(query).rollup(rollup_method[, measure]).last(time_window) operator #` + # + # - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). + # - **`rollup_method`** The stats roll-up method - supports `count`, `avg`, and `cardinality`. + # - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. + # - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). + # - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. + # - **`#`** an integer or decimal number used to set the threshold. + # + # **NOTE** Only available in closed beta on US1, EU, US3 and US5. # @param body [Monitor] Create a monitor request body. # @param [Hash] opts the optional parameters # @return [Monitor] @@ -107,7 +266,165 @@ def create_monitor(body, opts = {}) end # Create a monitor - # Create a monitor using the specified options. #### Monitor Types The type of monitor chosen from: - anomaly: `query alert` - APM: `query alert` or `trace-analytics alert` - composite: `composite` - custom: `service check` - event: `event alert` - forecast: `query alert` - host: `service check` - integration: `query alert` or `service check` - live process: `process alert` - logs: `log alert` - metric: `query alert` - network: `service check` - outlier: `query alert` - process: `service check` - rum: `rum alert` - SLO: `slo alert` - watchdog: `event alert` - event-v2: `event-v2 alert` - audit: `audit alert` #### Query Types **Metric Alert Query** Example: `time_aggr(time_window):space_aggr:metric{tags} [by {key}] operator #` - `time_aggr`: avg, sum, max, min, change, or pct_change - `time_window`: `last_#m` (with `#` between 1 and 10080 depending on the monitor type) or `last_#h`(with `#` between 1 and 168 depending on the monitor type) or `last_1d`, or `last_1w` - `space_aggr`: avg, sum, min, or max - `tags`: one or more tags (comma-separated), or * - `key`: a 'key' in key:value tag syntax; defines a separate alert for each tag in the group (multi-alert) - `operator`: <, <=, >, >=, ==, or != - `#`: an integer or decimal number used to set the threshold If you are using the `_change_` or `_pct_change_` time aggregator, instead use `change_aggr(time_aggr(time_window), timeshift):space_aggr:metric{tags} [by {key}] operator #` with: - `change_aggr` change, pct_change - `time_aggr` avg, sum, max, min [Learn more](https://docs.datadoghq.com/monitors/create/types/#define-the-conditions) - `time_window` last\\_#m (between 1 and 2880 depending on the monitor type), last\\_#h (between 1 and 48 depending on the monitor type), or last_#d (1 or 2) - `timeshift` #m_ago (5, 10, 15, or 30), #h_ago (1, 2, or 4), or 1d_ago Use this to create an outlier monitor using the following query: `avg(last_30m):outliers(avg:system.cpu.user{role:es-events-data} by {host}, 'dbscan', 7) > 0` **Service Check Query** Example: `\"check\".over(tags).last(count).by(group).count_by_status()` - **`check`** name of the check, for example `datadog.agent.up` - **`tags`** one or more quoted tags (comma-separated), or \"*\". for example: `.over(\"env:prod\", \"role:db\")`; **`over`** cannot be blank. - **`count`** must be at greater than or equal to your max threshold (defined in the `options`). It is limited to 100. For example, if you've specified to notify on 1 critical, 3 ok, and 2 warn statuses, `count` should be at least 3. - **`group`** must be specified for check monitors. Per-check grouping is already explicitly known for some service checks. For example, Postgres integration monitors are tagged by `db`, `host`, and `port`, and Network monitors by `host`, `instance`, and `url`. See [Service Checks](https://docs.datadoghq.com/api/latest/service-checks/) documentation for more information. **Event Alert Query** Example: `events('sources:nagios status:error,warning priority:normal tags: \"string query\"').rollup(\"count\").last(\"1h\")\"` - **`event`**, the event query string: - **`string_query`** free text query to match against event title and text. - **`sources`** event sources (comma-separated). - **`status`** event statuses (comma-separated). Valid options: error, warn, and info. - **`priority`** event priorities (comma-separated). Valid options: low, normal, all. - **`host`** event reporting host (comma-separated). - **`tags`** event tags (comma-separated). - **`excluded_tags`** excluded event tags (comma-separated). - **`rollup`** the stats roll-up method. `count` is the only supported method now. - **`last`** the timeframe to roll up the counts. Examples: 45m, 4h. Supported timeframes: m, h and d. This value should not exceed 48 hours. **NOTE** Only available on US1 and EU. **Event V2 Alert Query** Example: `events(query).rollup(rollup_method[, measure]).last(time_window) operator #` - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. - **`#`** an integer or decimal number used to set the threshold. **NOTE** Only available on US1-FED, US3, US5 and in closed beta on EU and US1. **Process Alert Query** Example: `processes(search).over(tags).rollup('count').last(timeframe) operator #` - **`search`** free text search string for querying processes. Matching processes match results on the [Live Processes](https://docs.datadoghq.com/infrastructure/process/?tab=linuxwindows) page. - **`tags`** one or more tags (comma-separated) - **`timeframe`** the timeframe to roll up the counts. Examples: 10m, 4h. Supported timeframes: s, m, h and d - **`operator`** <, <=, >, >=, ==, or != - **`#`** an integer or decimal number used to set the threshold **Logs Alert Query** Example: `logs(query).index(index_name).rollup(rollup_method[, measure]).last(time_window) operator #` - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). - **`index_name`** For multi-index organizations, the log index in which the request is performed. - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. - **`#`** an integer or decimal number used to set the threshold. **Composite Query** Example: `12345 && 67890`, where `12345` and `67890` are the IDs of non-composite monitors * **`name`** [*required*, *default* = **dynamic, based on query**]: The name of the alert. * **`message`** [*required*, *default* = **dynamic, based on query**]: A message to include with notifications for this monitor. Email notifications can be sent to specific users by using the same '@username' notation as events. * **`tags`** [*optional*, *default* = **empty list**]: A list of tags to associate with your monitor. When getting all monitor details via the API, use the `monitor_tags` argument to filter results by these tags. It is only available via the API and isn't visible or editable in the Datadog UI. **SLO Alert Query** Example: `error_budget(\"slo_id\").over(\"time_window\") operator #` - **`slo_id`**: The alphanumeric SLO ID of the SLO you are configuring the alert for. - **`time_window`**: The time window of the SLO target you wish to alert on. Valid options: `7d`, `30d`, `90d`. - **`operator`**: `>=` or `>` **Audit Alert Query** Example: `audits(query).rollup(rollup_method[, measure]).last(time_window) operator #` - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. - **`#`** an integer or decimal number used to set the threshold. **NOTE** Only available on US1-FED and in closed beta on US1, EU, US3, and US5. **CI Pipelines Alert Query** Example: `ci-pipelines(query).rollup(rollup_method[, measure]).last(time_window) operator #` - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). - **`rollup_method`** The stats roll-up method - supports `count`, `avg`, and `cardinality`. - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. - **`#`** an integer or decimal number used to set the threshold. **NOTE** Only available in closed beta on US1, EU, US3 and US5. + # Create a monitor using the specified options. + # + # #### Monitor Types + # + # The type of monitor chosen from: + # + # - anomaly: `query alert` + # - APM: `query alert` or `trace-analytics alert` + # - composite: `composite` + # - custom: `service check` + # - event: `event alert` + # - forecast: `query alert` + # - host: `service check` + # - integration: `query alert` or `service check` + # - live process: `process alert` + # - logs: `log alert` + # - metric: `query alert` + # - network: `service check` + # - outlier: `query alert` + # - process: `service check` + # - rum: `rum alert` + # - SLO: `slo alert` + # - watchdog: `event alert` + # - event-v2: `event-v2 alert` + # - audit: `audit alert` + # + # #### Query Types + # + # **Metric Alert Query** + # + # Example: `time_aggr(time_window):space_aggr:metric{tags} [by {key}] operator #` + # + # - `time_aggr`: avg, sum, max, min, change, or pct_change + # - `time_window`: `last_#m` (with `#` between 1 and 10080 depending on the monitor type) or `last_#h`(with `#` between 1 and 168 depending on the monitor type) or `last_1d`, or `last_1w` + # - `space_aggr`: avg, sum, min, or max + # - `tags`: one or more tags (comma-separated), or * + # - `key`: a 'key' in key:value tag syntax; defines a separate alert for each tag in the group (multi-alert) + # - `operator`: <, <=, >, >=, ==, or != + # - `#`: an integer or decimal number used to set the threshold + # + # If you are using the `_change_` or `_pct_change_` time aggregator, instead use `change_aggr(time_aggr(time_window), + # timeshift):space_aggr:metric{tags} [by {key}] operator #` with: + # + # - `change_aggr` change, pct_change + # - `time_aggr` avg, sum, max, min [Learn more](https://docs.datadoghq.com/monitors/create/types/#define-the-conditions) + # - `time_window` last\_#m (between 1 and 2880 depending on the monitor type), last\_#h (between 1 and 48 depending on the monitor type), or last_#d (1 or 2) + # - `timeshift` #m_ago (5, 10, 15, or 30), #h_ago (1, 2, or 4), or 1d_ago + # + # Use this to create an outlier monitor using the following query: + # `avg(last_30m):outliers(avg:system.cpu.user{role:es-events-data} by {host}, 'dbscan', 7) > 0` + # + # **Service Check Query** + # + # Example: `"check".over(tags).last(count).by(group).count_by_status()` + # + # - **`check`** name of the check, for example `datadog.agent.up` + # - **`tags`** one or more quoted tags (comma-separated), or "*". for example: `.over("env:prod", "role:db")`; **`over`** cannot be blank. + # - **`count`** must be at greater than or equal to your max threshold (defined in the `options`). It is limited to 100. + # For example, if you've specified to notify on 1 critical, 3 ok, and 2 warn statuses, `count` should be at least 3. + # - **`group`** must be specified for check monitors. Per-check grouping is already explicitly known for some service checks. + # For example, Postgres integration monitors are tagged by `db`, `host`, and `port`, and Network monitors by `host`, `instance`, and `url`. See [Service Checks](https://docs.datadoghq.com/api/latest/service-checks/) documentation for more information. + # + # **Event Alert Query** + # + # Example: `events('sources:nagios status:error,warning priority:normal tags: "string query"').rollup("count").last("1h")"` + # + # - **`event`**, the event query string: + # - **`string_query`** free text query to match against event title and text. + # - **`sources`** event sources (comma-separated). + # - **`status`** event statuses (comma-separated). Valid options: error, warn, and info. + # - **`priority`** event priorities (comma-separated). Valid options: low, normal, all. + # - **`host`** event reporting host (comma-separated). + # - **`tags`** event tags (comma-separated). + # - **`excluded_tags`** excluded event tags (comma-separated). + # - **`rollup`** the stats roll-up method. `count` is the only supported method now. + # - **`last`** the timeframe to roll up the counts. Examples: 45m, 4h. Supported timeframes: m, h and d. This value should not exceed 48 hours. + # + # **NOTE** Only available on US1 and EU. + # + # **Event V2 Alert Query** + # + # Example: `events(query).rollup(rollup_method[, measure]).last(time_window) operator #` + # + # - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). + # - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. + # - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. + # - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). + # - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. + # - **`#`** an integer or decimal number used to set the threshold. + # + # **NOTE** Only available on US1-FED, US3, US5 and in closed beta on EU and US1. + # + # **Process Alert Query** + # + # Example: `processes(search).over(tags).rollup('count').last(timeframe) operator #` + # + # - **`search`** free text search string for querying processes. + # Matching processes match results on the [Live Processes](https://docs.datadoghq.com/infrastructure/process/?tab=linuxwindows) page. + # - **`tags`** one or more tags (comma-separated) + # - **`timeframe`** the timeframe to roll up the counts. Examples: 10m, 4h. Supported timeframes: s, m, h and d + # - **`operator`** <, <=, >, >=, ==, or != + # - **`#`** an integer or decimal number used to set the threshold + # + # **Logs Alert Query** + # + # Example: `logs(query).index(index_name).rollup(rollup_method[, measure]).last(time_window) operator #` + # + # - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). + # - **`index_name`** For multi-index organizations, the log index in which the request is performed. + # - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. + # - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. + # - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). + # - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. + # - **`#`** an integer or decimal number used to set the threshold. + # + # **Composite Query** + # + # Example: `12345 && 67890`, where `12345` and `67890` are the IDs of non-composite monitors + # + # * **`name`** [*required*, *default* = **dynamic, based on query**]: The name of the alert. + # * **`message`** [*required*, *default* = **dynamic, based on query**]: A message to include with notifications for this monitor. + # Email notifications can be sent to specific users by using the same '@username' notation as events. + # * **`tags`** [*optional*, *default* = **empty list**]: A list of tags to associate with your monitor. + # When getting all monitor details via the API, use the `monitor_tags` argument to filter results by these tags. + # It is only available via the API and isn't visible or editable in the Datadog UI. + # + # **SLO Alert Query** + # + # Example: `error_budget("slo_id").over("time_window") operator #` + # + # - **`slo_id`**: The alphanumeric SLO ID of the SLO you are configuring the alert for. + # - **`time_window`**: The time window of the SLO target you wish to alert on. Valid options: `7d`, `30d`, `90d`. + # - **`operator`**: `>=` or `>` + # + # **Audit Alert Query** + # + # Example: `audits(query).rollup(rollup_method[, measure]).last(time_window) operator #` + # + # - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). + # - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. + # - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. + # - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). + # - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. + # - **`#`** an integer or decimal number used to set the threshold. + # + # **NOTE** Only available on US1-FED and in closed beta on US1, EU, US3, and US5. + # + # **CI Pipelines Alert Query** + # + # Example: `ci-pipelines(query).rollup(rollup_method[, measure]).last(time_window) operator #` + # + # - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). + # - **`rollup_method`** The stats roll-up method - supports `count`, `avg`, and `cardinality`. + # - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. + # - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). + # - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. + # - **`#`** an integer or decimal number used to set the threshold. + # + # **NOTE** Only available in closed beta on US1, EU, US3 and US5. # @param body [Monitor] Create a monitor request body. # @param [Hash] opts the optional parameters # @return [Array<(Monitor, Integer, Hash)>] Monitor data, response status code and response headers @@ -152,7 +469,7 @@ def create_monitor_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'Monitor' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_monitor, @@ -175,7 +492,7 @@ def create_monitor_with_http_info(body, opts = {}) # Delete the specified monitor # @param monitor_id [Integer] The ID of the monitor. # @param [Hash] opts the optional parameters - # @option opts [String] :force Delete the monitor even if it's referenced by other resources (for example SLO, composite monitor). + # @option opts [String] :force Delete the monitor even if it's referenced by other resources (for example SLO, composite monitor). # @return [DeletedMonitor] def delete_monitor(monitor_id, opts = {}) data, _status_code, _headers = delete_monitor_with_http_info(monitor_id, opts) @@ -186,7 +503,7 @@ def delete_monitor(monitor_id, opts = {}) # Delete the specified monitor # @param monitor_id [Integer] The ID of the monitor. # @param [Hash] opts the optional parameters - # @option opts [String] :force Delete the monitor even if it's referenced by other resources (for example SLO, composite monitor). + # @option opts [String] :force Delete the monitor even if it's referenced by other resources (for example SLO, composite monitor). # @return [Array<(DeletedMonitor, Integer, Hash)>] DeletedMonitor data, response status code and response headers def delete_monitor_with_http_info(monitor_id, opts = {}) @@ -207,7 +524,7 @@ def delete_monitor_with_http_info(monitor_id, opts = {}) fail ArgumentError, "Missing the required parameter 'monitor_id' when calling MonitorsAPI.delete_monitor" end # resource path - local_var_path = '/api/v1/monitor/{monitor_id}'.sub('{' + 'monitor_id' + '}', CGI.escape(monitor_id.to_s)) + local_var_path = '/api/v1/monitor/{monitor_id}'.sub('{monitor_id}', CGI.escape(monitor_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -228,7 +545,7 @@ def delete_monitor_with_http_info(monitor_id, opts = {}) return_type = opts[:debug_return_type] || 'DeletedMonitor' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_monitor, @@ -251,18 +568,18 @@ def delete_monitor_with_http_info(monitor_id, opts = {}) # Get details about the specified monitor from your organization. # @param monitor_id [Integer] The ID of the monitor # @param [Hash] opts the optional parameters - # @option opts [String] :group_states When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`. + # @option opts [String] :group_states When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`. # @return [Monitor] def get_monitor(monitor_id, opts = {}) data, _status_code, _headers = get_monitor_with_http_info(monitor_id, opts) data end - # Get a monitor's details + # Get a monitor's details # Get details about the specified monitor from your organization. # @param monitor_id [Integer] The ID of the monitor # @param [Hash] opts the optional parameters - # @option opts [String] :group_states When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`. + # @option opts [String] :group_states When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`. # @return [Array<(Monitor, Integer, Hash)>] Monitor data, response status code and response headers def get_monitor_with_http_info(monitor_id, opts = {}) @@ -283,7 +600,7 @@ def get_monitor_with_http_info(monitor_id, opts = {}) fail ArgumentError, "Missing the required parameter 'monitor_id' when calling MonitorsAPI.get_monitor" end # resource path - local_var_path = '/api/v1/monitor/{monitor_id}'.sub('{' + 'monitor_id' + '}', CGI.escape(monitor_id.to_s)) + local_var_path = '/api/v1/monitor/{monitor_id}'.sub('{monitor_id}', CGI.escape(monitor_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -304,7 +621,7 @@ def get_monitor_with_http_info(monitor_id, opts = {}) return_type = opts[:debug_return_type] || 'Monitor' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_monitor, @@ -326,14 +643,14 @@ def get_monitor_with_http_info(monitor_id, opts = {}) # Get all monitor details # Get details about the specified monitor from your organization. # @param [Hash] opts the optional parameters - # @option opts [String] :group_states When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`. + # @option opts [String] :group_states When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`. # @option opts [String] :name A string to filter monitors by name. - # @option opts [String] :tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope. For example, `host:host0`. - # @option opts [String] :monitor_tags A comma separated list indicating what service and/or custom tags, if any, should be used to filter the list of monitors. Tags created in the Datadog UI automatically have the service key prepended. For example, `service:my-app`. + # @option opts [String] :tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope. For example, `host:host0`. + # @option opts [String] :monitor_tags A comma separated list indicating what service and/or custom tags, if any, should be used to filter the list of monitors. Tags created in the Datadog UI automatically have the service key prepended. For example, `service:my-app`. # @option opts [Boolean] :with_downtimes If this argument is set to true, then the returned data includes all current active downtimes for each monitor. # @option opts [Integer] :id_offset Use this parameter for paginating through large sets of monitors. Start with a value of zero, make a request, set the value to the last ID of result set, and then repeat until the response is empty. # @option opts [Integer] :page The page to start paginating from. If this argument is not specified, the request returns all monitors without pagination. - # @option opts [Integer] :page_size The number of monitors to return per page. If the page argument is not specified, the default behavior returns all monitors without a `page_size` limit. However, if page is specified and `page_size` is not, the argument defaults to 100. + # @option opts [Integer] :page_size The number of monitors to return per page. If the page argument is not specified, the default behavior returns all monitors without a `page_size` limit. However, if page is specified and `page_size` is not, the argument defaults to 100. # @return [Array] def list_monitors(opts = {}) data, _status_code, _headers = list_monitors_with_http_info(opts) @@ -343,14 +660,14 @@ def list_monitors(opts = {}) # Get all monitor details # Get details about the specified monitor from your organization. # @param [Hash] opts the optional parameters - # @option opts [String] :group_states When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`. + # @option opts [String] :group_states When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`. # @option opts [String] :name A string to filter monitors by name. - # @option opts [String] :tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope. For example, `host:host0`. - # @option opts [String] :monitor_tags A comma separated list indicating what service and/or custom tags, if any, should be used to filter the list of monitors. Tags created in the Datadog UI automatically have the service key prepended. For example, `service:my-app`. + # @option opts [String] :tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope. For example, `host:host0`. + # @option opts [String] :monitor_tags A comma separated list indicating what service and/or custom tags, if any, should be used to filter the list of monitors. Tags created in the Datadog UI automatically have the service key prepended. For example, `service:my-app`. # @option opts [Boolean] :with_downtimes If this argument is set to true, then the returned data includes all current active downtimes for each monitor. # @option opts [Integer] :id_offset Use this parameter for paginating through large sets of monitors. Start with a value of zero, make a request, set the value to the last ID of result set, and then repeat until the response is empty. # @option opts [Integer] :page The page to start paginating from. If this argument is not specified, the request returns all monitors without pagination. - # @option opts [Integer] :page_size The number of monitors to return per page. If the page argument is not specified, the default behavior returns all monitors without a `page_size` limit. However, if page is specified and `page_size` is not, the argument defaults to 100. + # @option opts [Integer] :page_size The number of monitors to return per page. If the page argument is not specified, the default behavior returns all monitors without a `page_size` limit. However, if page is specified and `page_size` is not, the argument defaults to 100. # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers def list_monitors_with_http_info(opts = {}) @@ -366,10 +683,6 @@ def list_monitors_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MonitorsAPI.list_monitors ...' end - if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000 - fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling MonitorsAPI.list_monitors, must be smaller than or equal to 1000.' - end - # resource path local_var_path = '/api/v1/monitor' @@ -399,7 +712,7 @@ def list_monitors_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'Array' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_monitors, @@ -421,10 +734,10 @@ def list_monitors_with_http_info(opts = {}) # Monitors group search # Search and filter your monitor groups details. # @param [Hash] opts the optional parameters - # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query=\"type:metric status:alert\"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors - # @option opts [Integer] :page Page to start paginating from. (default to 0) - # @option opts [Integer] :per_page Number of monitors to return per page. (default to 30) - # @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags` + # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query="type:metric status:alert"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors + # @option opts [Integer] :page Page to start paginating from. + # @option opts [Integer] :per_page Number of monitors to return per page. + # @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags` # @return [MonitorGroupSearchResponse] def search_monitor_groups(opts = {}) data, _status_code, _headers = search_monitor_groups_with_http_info(opts) @@ -434,10 +747,10 @@ def search_monitor_groups(opts = {}) # Monitors group search # Search and filter your monitor groups details. # @param [Hash] opts the optional parameters - # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query=\"type:metric status:alert\"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors + # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query="type:metric status:alert"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors # @option opts [Integer] :page Page to start paginating from. # @option opts [Integer] :per_page Number of monitors to return per page. - # @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags` + # @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags` # @return [Array<(MonitorGroupSearchResponse, Integer, Hash)>] MonitorGroupSearchResponse data, response status code and response headers def search_monitor_groups_with_http_info(opts = {}) @@ -478,7 +791,7 @@ def search_monitor_groups_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'MonitorGroupSearchResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :search_monitor_groups, @@ -500,10 +813,10 @@ def search_monitor_groups_with_http_info(opts = {}) # Monitors search # Search and filter your monitors details. # @param [Hash] opts the optional parameters - # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query=\"type:metric status:alert\"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors - # @option opts [Integer] :page Page to start paginating from. (default to 0) - # @option opts [Integer] :per_page Number of monitors to return per page. (default to 30) - # @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags` + # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query="type:metric status:alert"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors + # @option opts [Integer] :page Page to start paginating from. + # @option opts [Integer] :per_page Number of monitors to return per page. + # @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags` # @return [MonitorSearchResponse] def search_monitors(opts = {}) data, _status_code, _headers = search_monitors_with_http_info(opts) @@ -513,10 +826,10 @@ def search_monitors(opts = {}) # Monitors search # Search and filter your monitors details. # @param [Hash] opts the optional parameters - # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query=\"type:metric status:alert\"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors + # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query="type:metric status:alert"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors # @option opts [Integer] :page Page to start paginating from. # @option opts [Integer] :per_page Number of monitors to return per page. - # @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags` + # @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags` # @return [Array<(MonitorSearchResponse, Integer, Hash)>] MonitorSearchResponse data, response status code and response headers def search_monitors_with_http_info(opts = {}) @@ -557,7 +870,7 @@ def search_monitors_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'MonitorSearchResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :search_monitors, @@ -616,7 +929,7 @@ def update_monitor_with_http_info(monitor_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling MonitorsAPI.update_monitor" end # resource path - local_var_path = '/api/v1/monitor/{monitor_id}'.sub('{' + 'monitor_id' + '}', CGI.escape(monitor_id.to_s)) + local_var_path = '/api/v1/monitor/{monitor_id}'.sub('{monitor_id}', CGI.escape(monitor_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -638,7 +951,7 @@ def update_monitor_with_http_info(monitor_id, body, opts = {}) return_type = opts[:debug_return_type] || 'Monitor' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_monitor, @@ -713,7 +1026,7 @@ def validate_monitor_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'Object' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :validate_monitor, diff --git a/lib/datadog_api_client/v1/api/notebooks_api.rb b/lib/datadog_api_client/v1/api/notebooks_api.rb index 12d74d29c5d..e30be9891bd 100644 --- a/lib/datadog_api_client/v1/api/notebooks_api.rb +++ b/lib/datadog_api_client/v1/api/notebooks_api.rb @@ -22,6 +22,7 @@ class NotebooksAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create a notebook # Create a notebook using the specified options. # @param body [NotebookCreateRequest] The JSON description of the notebook you want to create. @@ -131,7 +132,7 @@ def delete_notebook_with_http_info(notebook_id, opts = {}) fail ArgumentError, "Missing the required parameter 'notebook_id' when calling NotebooksAPI.delete_notebook" end # resource path - local_var_path = '/api/v1/notebooks/{notebook_id}'.sub('{' + 'notebook_id' + '}', CGI.escape(notebook_id.to_s)) + local_var_path = '/api/v1/notebooks/{notebook_id}'.sub('{notebook_id}', CGI.escape(notebook_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -139,7 +140,7 @@ def delete_notebook_with_http_info(notebook_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -204,7 +205,7 @@ def get_notebook_with_http_info(notebook_id, opts = {}) fail ArgumentError, "Missing the required parameter 'notebook_id' when calling NotebooksAPI.get_notebook" end # resource path - local_var_path = '/api/v1/notebooks/{notebook_id}'.sub('{' + 'notebook_id' + '}', CGI.escape(notebook_id.to_s)) + local_var_path = '/api/v1/notebooks/{notebook_id}'.sub('{notebook_id}', CGI.escape(notebook_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -224,7 +225,7 @@ def get_notebook_with_http_info(notebook_id, opts = {}) return_type = opts[:debug_return_type] || 'NotebookResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_notebook, @@ -244,17 +245,18 @@ def get_notebook_with_http_info(notebook_id, opts = {}) end # Get all notebooks - # Get all notebooks. This can also be used to search for notebooks with a particular `query` in the notebook `name` or author `handle`. + # Get all notebooks. This can also be used to search for notebooks with a particular `query` in the notebook + # `name` or author `handle`. # @param [Hash] opts the optional parameters - # @option opts [String] :author_handle Return notebooks created by the given `author_handle`. - # @option opts [String] :exclude_author_handle Return notebooks not created by the given `author_handle`. + # @option opts [String] :author_handle Return notebooks created by the given `author_handle`. + # @option opts [String] :exclude_author_handle Return notebooks not created by the given `author_handle`. # @option opts [Integer] :start The index of the first notebook you want returned. # @option opts [Integer] :count The number of notebooks to be returned. - # @option opts [String] :sort_field Sort by field `modified`, `name`, or `created`. (default to 'modified') - # @option opts [String] :sort_dir Sort by direction `asc` or `desc`. (default to 'desc') - # @option opts [String] :query Return only notebooks with `query` string in notebook name or author handle. - # @option opts [Boolean] :include_cells Value of `false` excludes the `cells` and global `time` for each notebook. (default to true) - # @option opts [Boolean] :is_template True value returns only template notebooks. Default is false (returns only non-template notebooks). (default to false) + # @option opts [String] :sort_field Sort by field `modified`, `name`, or `created`. + # @option opts [String] :sort_dir Sort by direction `asc` or `desc`. + # @option opts [String] :query Return only notebooks with `query` string in notebook name or author handle. + # @option opts [Boolean] :include_cells Value of `false` excludes the `cells` and global `time` for each notebook. + # @option opts [Boolean] :is_template True value returns only template notebooks. Default is false (returns only non-template notebooks). # @option opts [String] :type If type is provided, returns only notebooks with that metadata type. Default does not have type filtering. # @return [NotebooksResponse] def list_notebooks(opts = {}) @@ -263,16 +265,17 @@ def list_notebooks(opts = {}) end # Get all notebooks - # Get all notebooks. This can also be used to search for notebooks with a particular `query` in the notebook `name` or author `handle`. + # Get all notebooks. This can also be used to search for notebooks with a particular `query` in the notebook + # `name` or author `handle`. # @param [Hash] opts the optional parameters - # @option opts [String] :author_handle Return notebooks created by the given `author_handle`. - # @option opts [String] :exclude_author_handle Return notebooks not created by the given `author_handle`. + # @option opts [String] :author_handle Return notebooks created by the given `author_handle`. + # @option opts [String] :exclude_author_handle Return notebooks not created by the given `author_handle`. # @option opts [Integer] :start The index of the first notebook you want returned. # @option opts [Integer] :count The number of notebooks to be returned. - # @option opts [String] :sort_field Sort by field `modified`, `name`, or `created`. - # @option opts [String] :sort_dir Sort by direction `asc` or `desc`. - # @option opts [String] :query Return only notebooks with `query` string in notebook name or author handle. - # @option opts [Boolean] :include_cells Value of `false` excludes the `cells` and global `time` for each notebook. + # @option opts [String] :sort_field Sort by field `modified`, `name`, or `created`. + # @option opts [String] :sort_dir Sort by direction `asc` or `desc`. + # @option opts [String] :query Return only notebooks with `query` string in notebook name or author handle. + # @option opts [Boolean] :include_cells Value of `false` excludes the `cells` and global `time` for each notebook. # @option opts [Boolean] :is_template True value returns only template notebooks. Default is false (returns only non-template notebooks). # @option opts [String] :type If type is provided, returns only notebooks with that metadata type. Default does not have type filtering. # @return [Array<(NotebooksResponse, Integer, Hash)>] NotebooksResponse data, response status code and response headers @@ -295,16 +298,16 @@ def list_notebooks_with_http_info(opts = {}) # query parameters query_params = opts[:query_params] || {} - query_params[:'author_handle'] = opts[:'author_handle'] if !opts[:'author_handle'].nil? - query_params[:'exclude_author_handle'] = opts[:'exclude_author_handle'] if !opts[:'exclude_author_handle'].nil? - query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil? - query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil? - query_params[:'sort_field'] = opts[:'sort_field'] if !opts[:'sort_field'].nil? - query_params[:'sort_dir'] = opts[:'sort_dir'] if !opts[:'sort_dir'].nil? - query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil? - query_params[:'include_cells'] = opts[:'include_cells'] if !opts[:'include_cells'].nil? - query_params[:'is_template'] = opts[:'is_template'] if !opts[:'is_template'].nil? - query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil? + query_params[:'author_handle'] = @api_client.build_collection_param(opts[:'author_handle'], :multi) if !opts[:'author_handle'].nil? + query_params[:'exclude_author_handle'] = @api_client.build_collection_param(opts[:'exclude_author_handle'], :multi) if !opts[:'exclude_author_handle'].nil? + query_params[:'start'] = @api_client.build_collection_param(opts[:'start'], :multi) if !opts[:'start'].nil? + query_params[:'count'] = @api_client.build_collection_param(opts[:'count'], :multi) if !opts[:'count'].nil? + query_params[:'sort_field'] = @api_client.build_collection_param(opts[:'sort_field'], :multi) if !opts[:'sort_field'].nil? + query_params[:'sort_dir'] = @api_client.build_collection_param(opts[:'sort_dir'], :multi) if !opts[:'sort_dir'].nil? + query_params[:'query'] = @api_client.build_collection_param(opts[:'query'], :multi) if !opts[:'query'].nil? + query_params[:'include_cells'] = @api_client.build_collection_param(opts[:'include_cells'], :multi) if !opts[:'include_cells'].nil? + query_params[:'is_template'] = @api_client.build_collection_param(opts[:'is_template'], :multi) if !opts[:'is_template'].nil? + query_params[:'type'] = @api_client.build_collection_param(opts[:'type'], :multi) if !opts[:'type'].nil? # header parameters header_params = opts[:header_params] || {} @@ -321,7 +324,7 @@ def list_notebooks_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'NotebooksResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_notebooks, @@ -380,7 +383,7 @@ def update_notebook_with_http_info(notebook_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling NotebooksAPI.update_notebook" end # resource path - local_var_path = '/api/v1/notebooks/{notebook_id}'.sub('{' + 'notebook_id' + '}', CGI.escape(notebook_id.to_s)) + local_var_path = '/api/v1/notebooks/{notebook_id}'.sub('{notebook_id}', CGI.escape(notebook_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/datadog_api_client/v1/api/organizations_api.rb b/lib/datadog_api_client/v1/api/organizations_api.rb index 7fc981857e8..3fea3643755 100644 --- a/lib/datadog_api_client/v1/api/organizations_api.rb +++ b/lib/datadog_api_client/v1/api/organizations_api.rb @@ -22,8 +22,18 @@ class OrganizationsAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create a child organization - # Create a child organization. This endpoint requires the [multi-organization account](https://docs.datadoghq.com/account_management/multi_organization/) feature and must be enabled by [contacting support](https://docs.datadoghq.com/help/). Once a new child organization is created, you can interact with it by using the `org.public_id`, `api_key.key`, and `application_key.hash` provided in the response. + # Create a child organization. + # + # This endpoint requires the + # [multi-organization account](https://docs.datadoghq.com/account_management/multi_organization/) + # feature and must be enabled by + # [contacting support](https://docs.datadoghq.com/help/). + # + # Once a new child organization is created, you can interact with it + # by using the `org.public_id`, `api_key.key`, and + # `application_key.hash` provided in the response. # @param body [OrganizationCreateBody] Organization object that needs to be created # @param [Hash] opts the optional parameters # @return [OrganizationCreateResponse] @@ -33,7 +43,16 @@ def create_child_org(body, opts = {}) end # Create a child organization - # Create a child organization. This endpoint requires the [multi-organization account](https://docs.datadoghq.com/account_management/multi_organization/) feature and must be enabled by [contacting support](https://docs.datadoghq.com/help/). Once a new child organization is created, you can interact with it by using the `org.public_id`, `api_key.key`, and `application_key.hash` provided in the response. + # Create a child organization. + # + # This endpoint requires the + # [multi-organization account](https://docs.datadoghq.com/account_management/multi_organization/) + # feature and must be enabled by + # [contacting support](https://docs.datadoghq.com/help/). + # + # Once a new child organization is created, you can interact with it + # by using the `org.public_id`, `api_key.key`, and + # `application_key.hash` provided in the response. # @param body [OrganizationCreateBody] Organization object that needs to be created # @param [Hash] opts the optional parameters # @return [Array<(OrganizationCreateResponse, Integer, Hash)>] OrganizationCreateResponse data, response status code and response headers @@ -99,7 +118,7 @@ def create_child_org_with_http_info(body, opts = {}) # Get organization information # Get organization information. - # @param public_id [String] The `public_id` of the organization you are operating within. + # @param public_id [String] The `public_id` of the organization you are operating within. # @param [Hash] opts the optional parameters # @return [OrganizationResponse] def get_org(public_id, opts = {}) @@ -109,7 +128,7 @@ def get_org(public_id, opts = {}) # Get organization information # Get organization information. - # @param public_id [String] The `public_id` of the organization you are operating within. + # @param public_id [String] The `public_id` of the organization you are operating within. # @param [Hash] opts the optional parameters # @return [Array<(OrganizationResponse, Integer, Hash)>] OrganizationResponse data, response status code and response headers def get_org_with_http_info(public_id, opts = {}) @@ -131,7 +150,7 @@ def get_org_with_http_info(public_id, opts = {}) fail ArgumentError, "Missing the required parameter 'public_id' when calling OrganizationsAPI.get_org" end # resource path - local_var_path = '/api/v1/org/{public_id}'.sub('{' + 'public_id' + '}', CGI.escape(public_id.to_s)) + local_var_path = '/api/v1/org/{public_id}'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -239,7 +258,7 @@ def list_orgs_with_http_info(opts = {}) # Update your organization # Update your organization. - # @param public_id [String] The `public_id` of the organization you are operating within. + # @param public_id [String] The `public_id` of the organization you are operating within. # @param body [Organization] # @param [Hash] opts the optional parameters # @return [OrganizationResponse] @@ -250,7 +269,7 @@ def update_org(public_id, body, opts = {}) # Update your organization # Update your organization. - # @param public_id [String] The `public_id` of the organization you are operating within. + # @param public_id [String] The `public_id` of the organization you are operating within. # @param body [Organization] # @param [Hash] opts the optional parameters # @return [Array<(OrganizationResponse, Integer, Hash)>] OrganizationResponse data, response status code and response headers @@ -277,7 +296,7 @@ def update_org_with_http_info(public_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationsAPI.update_org" end # resource path - local_var_path = '/api/v1/org/{public_id}'.sub('{' + 'public_id' + '}', CGI.escape(public_id.to_s)) + local_var_path = '/api/v1/org/{public_id}'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -319,23 +338,33 @@ def update_org_with_http_info(public_id, body, opts = {}) end # Upload IdP metadata - # There are a couple of options for updating the Identity Provider (IdP) metadata from your SAML IdP. * **Multipart Form-Data**: Post the IdP metadata file using a form post. * **XML Body:** Post the IdP metadata file as the body of the request. - # @param public_id [String] The `public_id` of the organization you are operating with - # @param idp_file [File] The path to the XML metadata file you wish to upload. + # There are a couple of options for updating the Identity Provider (IdP) + # metadata from your SAML IdP. + # + # * **Multipart Form-Data**: Post the IdP metadata file using a form post. + # + # * **XML Body:** Post the IdP metadata file as the body of the request. + # @param public_id [String] The `public_id` of the organization you are operating with + # @param body [IdpFormData] # @param [Hash] opts the optional parameters # @return [IdpResponse] - def upload_id_p_for_org(public_id, idp_file, opts = {}) - data, _status_code, _headers = upload_id_p_for_org_with_http_info(public_id, idp_file, opts) + def upload_id_p_for_org(public_id, body, opts = {}) + data, _status_code, _headers = upload_id_p_for_org_with_http_info(public_id, body, opts) data end # Upload IdP metadata - # There are a couple of options for updating the Identity Provider (IdP) metadata from your SAML IdP. * **Multipart Form-Data**: Post the IdP metadata file using a form post. * **XML Body:** Post the IdP metadata file as the body of the request. - # @param public_id [String] The `public_id` of the organization you are operating with - # @param idp_file [File] The path to the XML metadata file you wish to upload. + # There are a couple of options for updating the Identity Provider (IdP) + # metadata from your SAML IdP. + # + # * **Multipart Form-Data**: Post the IdP metadata file using a form post. + # + # * **XML Body:** Post the IdP metadata file as the body of the request. + # @param public_id [String] The `public_id` of the organization you are operating with + # @param body [IdpFormData] # @param [Hash] opts the optional parameters # @return [Array<(IdpResponse, Integer, Hash)>] IdpResponse data, response status code and response headers - def upload_id_p_for_org_with_http_info(public_id, idp_file, opts = {}) + def upload_id_p_for_org_with_http_info(public_id, body, opts = {}) if @api_client.config.unstable_operations.has_key?(:upload_id_p_for_org) unstable_enabled = @api_client.config.unstable_operations[:upload_id_p_for_org] @@ -353,12 +382,12 @@ def upload_id_p_for_org_with_http_info(public_id, idp_file, opts = {}) if @api_client.config.client_side_validation && public_id.nil? fail ArgumentError, "Missing the required parameter 'public_id' when calling OrganizationsAPI.upload_id_p_for_org" end - # verify the required parameter 'idp_file' is set - if @api_client.config.client_side_validation && idp_file.nil? - fail ArgumentError, "Missing the required parameter 'idp_file' when calling OrganizationsAPI.upload_id_p_for_org" + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationsAPI.upload_id_p_for_org" end # resource path - local_var_path = '/api/v1/org/{public_id}/idp_metadata'.sub('{' + 'public_id' + '}', CGI.escape(public_id.to_s)) + local_var_path = '/api/v1/org/{public_id}/idp_metadata'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -372,10 +401,9 @@ def upload_id_p_for_org_with_http_info(public_id, idp_file, opts = {}) # form parameters form_params = opts[:form_params] || {} - form_params['idp_file'] = idp_file # http body (model) - post_body = opts[:debug_body] + post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type return_type = opts[:debug_return_type] || 'IdpResponse' diff --git a/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb b/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb index fd610d67e98..a7f81d8b0b6 100644 --- a/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb +++ b/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb @@ -22,6 +22,7 @@ class PagerDutyIntegrationAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create a new service object # Create a new service object in the PagerDuty integration. # @param body [PagerDutyService] Create a new service object request body. @@ -131,7 +132,7 @@ def delete_pager_duty_integration_service_with_http_info(service_name, opts = {} fail ArgumentError, "Missing the required parameter 'service_name' when calling PagerDutyIntegrationAPI.delete_pager_duty_integration_service" end # resource path - local_var_path = '/api/v1/integration/pagerduty/configuration/services/{service_name}'.sub('{' + 'service_name' + '}', CGI.escape(service_name.to_s)) + local_var_path = '/api/v1/integration/pagerduty/configuration/services/{service_name}'.sub('{service_name}', CGI.escape(service_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -139,7 +140,7 @@ def delete_pager_duty_integration_service_with_http_info(service_name, opts = {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -204,7 +205,7 @@ def get_pager_duty_integration_service_with_http_info(service_name, opts = {}) fail ArgumentError, "Missing the required parameter 'service_name' when calling PagerDutyIntegrationAPI.get_pager_duty_integration_service" end # resource path - local_var_path = '/api/v1/integration/pagerduty/configuration/services/{service_name}'.sub('{' + 'service_name' + '}', CGI.escape(service_name.to_s)) + local_var_path = '/api/v1/integration/pagerduty/configuration/services/{service_name}'.sub('{service_name}', CGI.escape(service_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -283,7 +284,7 @@ def update_pager_duty_integration_service_with_http_info(service_name, body, opt fail ArgumentError, "Missing the required parameter 'body' when calling PagerDutyIntegrationAPI.update_pager_duty_integration_service" end # resource path - local_var_path = '/api/v1/integration/pagerduty/configuration/services/{service_name}'.sub('{' + 'service_name' + '}', CGI.escape(service_name.to_s)) + local_var_path = '/api/v1/integration/pagerduty/configuration/services/{service_name}'.sub('{service_name}', CGI.escape(service_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -291,7 +292,7 @@ def update_pager_duty_integration_service_with_http_info(service_name, body, opt # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) diff --git a/lib/datadog_api_client/v1/api/service_checks_api.rb b/lib/datadog_api_client/v1/api/service_checks_api.rb index 941e42f1b76..761e26c48ea 100644 --- a/lib/datadog_api_client/v1/api/service_checks_api.rb +++ b/lib/datadog_api_client/v1/api/service_checks_api.rb @@ -22,8 +22,13 @@ class ServiceChecksAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Submit a Service Check - # Submit a list of Service Checks. **Notes**: - A valid API key is required. - Service checks can be submitted up to 10 minutes in the past. + # Submit a list of Service Checks. + # + # **Notes**: + # - A valid API key is required. + # - Service checks can be submitted up to 10 minutes in the past. # @param body [Array] Service Check request body. # @param [Hash] opts the optional parameters # @return [IntakePayloadAccepted] @@ -33,7 +38,11 @@ def submit_service_check(body, opts = {}) end # Submit a Service Check - # Submit a list of Service Checks. **Notes**: - A valid API key is required. - Service checks can be submitted up to 10 minutes in the past. + # Submit a list of Service Checks. + # + # **Notes**: + # - A valid API key is required. + # - Service checks can be submitted up to 10 minutes in the past. # @param body [Array] Service Check request body. # @param [Hash] opts the optional parameters # @return [Array<(IntakePayloadAccepted, Integer, Hash)>] IntakePayloadAccepted data, response status code and response headers diff --git a/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb b/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb index 866d298a192..4f47203c1b2 100644 --- a/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +++ b/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb @@ -22,6 +22,7 @@ class ServiceLevelObjectiveCorrectionsAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create an SLO correction # Create an SLO Correction. # @param body [SLOCorrectionCreateRequest] Create an SLO Correction @@ -131,7 +132,7 @@ def delete_slo_correction_with_http_info(slo_correction_id, opts = {}) fail ArgumentError, "Missing the required parameter 'slo_correction_id' when calling ServiceLevelObjectiveCorrectionsAPI.delete_slo_correction" end # resource path - local_var_path = '/api/v1/slo/correction/{slo_correction_id}'.sub('{' + 'slo_correction_id' + '}', CGI.escape(slo_correction_id.to_s)) + local_var_path = '/api/v1/slo/correction/{slo_correction_id}'.sub('{slo_correction_id}', CGI.escape(slo_correction_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -139,7 +140,7 @@ def delete_slo_correction_with_http_info(slo_correction_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -204,7 +205,7 @@ def get_slo_correction_with_http_info(slo_correction_id, opts = {}) fail ArgumentError, "Missing the required parameter 'slo_correction_id' when calling ServiceLevelObjectiveCorrectionsAPI.get_slo_correction" end # resource path - local_var_path = '/api/v1/slo/correction/{slo_correction_id}'.sub('{' + 'slo_correction_id' + '}', CGI.escape(slo_correction_id.to_s)) + local_var_path = '/api/v1/slo/correction/{slo_correction_id}'.sub('{slo_correction_id}', CGI.escape(slo_correction_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -350,7 +351,7 @@ def update_slo_correction_with_http_info(slo_correction_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling ServiceLevelObjectiveCorrectionsAPI.update_slo_correction" end # resource path - local_var_path = '/api/v1/slo/correction/{slo_correction_id}'.sub('{' + 'slo_correction_id' + '}', CGI.escape(slo_correction_id.to_s)) + local_var_path = '/api/v1/slo/correction/{slo_correction_id}'.sub('{slo_correction_id}', CGI.escape(slo_correction_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/datadog_api_client/v1/api/service_level_objectives_api.rb b/lib/datadog_api_client/v1/api/service_level_objectives_api.rb index a6a8742c5a5..712f3e3b963 100644 --- a/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +++ b/lib/datadog_api_client/v1/api/service_level_objectives_api.rb @@ -22,8 +22,10 @@ class ServiceLevelObjectivesAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Check if SLOs can be safely deleted - # Check if an SLO can be safely deleted. For example, assure an SLO can be deleted without disrupting a dashboard. + # Check if an SLO can be safely deleted. For example, + # assure an SLO can be deleted without disrupting a dashboard. # @param ids [String] A comma separated list of the IDs of the service level objectives objects. # @param [Hash] opts the optional parameters # @return [CheckCanDeleteSLOResponse] @@ -33,7 +35,8 @@ def check_can_delete_slo(ids, opts = {}) end # Check if SLOs can be safely deleted - # Check if an SLO can be safely deleted. For example, assure an SLO can be deleted without disrupting a dashboard. + # Check if an SLO can be safely deleted. For example, + # assure an SLO can be deleted without disrupting a dashboard. # @param ids [String] A comma separated list of the IDs of the service level objectives objects. # @param [Hash] opts the optional parameters # @return [Array<(CheckCanDeleteSLOResponse, Integer, Hash)>] CheckCanDeleteSLOResponse data, response status code and response headers @@ -172,10 +175,13 @@ def create_slo_with_http_info(body, opts = {}) end # Delete an SLO - # Permanently delete the specified service level objective object. If an SLO is used in a dashboard, the `DELETE /v1/slo/` endpoint returns a 409 conflict error because the SLO is referenced in a dashboard. + # Permanently delete the specified service level objective object. + # + # If an SLO is used in a dashboard, the `DELETE /v1/slo/` endpoint returns + # a 409 conflict error because the SLO is referenced in a dashboard. # @param slo_id [String] The ID of the service level objective. # @param [Hash] opts the optional parameters - # @option opts [String] :force Delete the monitor even if it's referenced by other resources (for example SLO, composite monitor). + # @option opts [String] :force Delete the monitor even if it's referenced by other resources (for example SLO, composite monitor). # @return [SLODeleteResponse] def delete_slo(slo_id, opts = {}) data, _status_code, _headers = delete_slo_with_http_info(slo_id, opts) @@ -183,10 +189,13 @@ def delete_slo(slo_id, opts = {}) end # Delete an SLO - # Permanently delete the specified service level objective object. If an SLO is used in a dashboard, the `DELETE /v1/slo/` endpoint returns a 409 conflict error because the SLO is referenced in a dashboard. + # Permanently delete the specified service level objective object. + # + # If an SLO is used in a dashboard, the `DELETE /v1/slo/` endpoint returns + # a 409 conflict error because the SLO is referenced in a dashboard. # @param slo_id [String] The ID of the service level objective. # @param [Hash] opts the optional parameters - # @option opts [String] :force Delete the monitor even if it's referenced by other resources (for example SLO, composite monitor). + # @option opts [String] :force Delete the monitor even if it's referenced by other resources (for example SLO, composite monitor). # @return [Array<(SLODeleteResponse, Integer, Hash)>] SLODeleteResponse data, response status code and response headers def delete_slo_with_http_info(slo_id, opts = {}) @@ -207,7 +216,7 @@ def delete_slo_with_http_info(slo_id, opts = {}) fail ArgumentError, "Missing the required parameter 'slo_id' when calling ServiceLevelObjectivesAPI.delete_slo" end # resource path - local_var_path = '/api/v1/slo/{slo_id}'.sub('{' + 'slo_id' + '}', CGI.escape(slo_id.to_s)) + local_var_path = '/api/v1/slo/{slo_id}'.sub('{slo_id}', CGI.escape(slo_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -248,7 +257,11 @@ def delete_slo_with_http_info(slo_id, opts = {}) end # Bulk Delete SLO Timeframes - # Delete (or partially delete) multiple service level objective objects. This endpoint facilitates deletion of one or more thresholds for one or more service level objective objects. If all thresholds are deleted, the service level objective object is deleted as well. + # Delete (or partially delete) multiple service level objective objects. + # + # This endpoint facilitates deletion of one or more thresholds for one or more + # service level objective objects. If all thresholds are deleted, the service level + # objective object is deleted as well. # @param body [Hash>] Delete multiple service level objective objects request body. # @param [Hash] opts the optional parameters # @return [SLOBulkDeleteResponse] @@ -258,7 +271,11 @@ def delete_slo_timeframe_in_bulk(body, opts = {}) end # Bulk Delete SLO Timeframes - # Delete (or partially delete) multiple service level objective objects. This endpoint facilitates deletion of one or more thresholds for one or more service level objective objects. If all thresholds are deleted, the service level objective object is deleted as well. + # Delete (or partially delete) multiple service level objective objects. + # + # This endpoint facilitates deletion of one or more thresholds for one or more + # service level objective objects. If all thresholds are deleted, the service level + # objective object is deleted as well. # @param body [Hash>] Delete multiple service level objective objects request body. # @param [Hash] opts the optional parameters # @return [Array<(SLOBulkDeleteResponse, Integer, Hash)>] SLOBulkDeleteResponse data, response status code and response headers @@ -333,7 +350,7 @@ def get_slo(slo_id, opts = {}) data end - # Get an SLO's details + # Get an SLO's details # Get a service level objective object. # @param slo_id [String] The ID of the service level objective object. # @param [Hash] opts the optional parameters @@ -358,7 +375,7 @@ def get_slo_with_http_info(slo_id, opts = {}) fail ArgumentError, "Missing the required parameter 'slo_id' when calling ServiceLevelObjectivesAPI.get_slo" end # resource path - local_var_path = '/api/v1/slo/{slo_id}'.sub('{' + 'slo_id' + '}', CGI.escape(slo_id.to_s)) + local_var_path = '/api/v1/slo/{slo_id}'.sub('{slo_id}', CGI.escape(slo_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -379,7 +396,7 @@ def get_slo_with_http_info(slo_id, opts = {}) return_type = opts[:debug_return_type] || 'SLOResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_slo, @@ -432,7 +449,7 @@ def get_slo_corrections_with_http_info(slo_id, opts = {}) fail ArgumentError, "Missing the required parameter 'slo_id' when calling ServiceLevelObjectivesAPI.get_slo_corrections" end # resource path - local_var_path = '/api/v1/slo/{slo_id}/corrections'.sub('{' + 'slo_id' + '}', CGI.escape(slo_id.to_s)) + local_var_path = '/api/v1/slo/{slo_id}/corrections'.sub('{slo_id}', CGI.escape(slo_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -452,7 +469,7 @@ def get_slo_corrections_with_http_info(slo_id, opts = {}) return_type = opts[:debug_return_type] || 'SLOCorrectionListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_slo_corrections, @@ -472,27 +489,41 @@ def get_slo_corrections_with_http_info(slo_id, opts = {}) end # Get an SLO's history - # Get a specific SLO’s history, regardless of its SLO type. The detailed history data is structured according to the source data type. For example, metric data is included for event SLOs that use the metric source, and monitor SLO types include the monitor transition history. **Note:** There are different response formats for event based and time based SLOs. Examples of both are shown. + # Get a specific SLO’s history, regardless of its SLO type. + # + # The detailed history data is structured according to the source data type. + # For example, metric data is included for event SLOs that use + # the metric source, and monitor SLO types include the monitor transition history. + # + # **Note:** There are different response formats for event based and time based SLOs. + # Examples of both are shown. # @param slo_id [String] The ID of the service level objective object. - # @param from_ts [Integer] The `from` timestamp for the query window in epoch seconds. - # @param to_ts [Integer] The `to` timestamp for the query window in epoch seconds. + # @param from_ts [Integer] The `from` timestamp for the query window in epoch seconds. + # @param to_ts [Integer] The `to` timestamp for the query window in epoch seconds. # @param [Hash] opts the optional parameters - # @option opts [Float] :target The SLO target. If `target` is passed in, the response will include the remaining error budget and a timeframe value of `custom`. - # @option opts [Boolean] :apply_correction Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`, then the corrections will not be applied and the SLI values will not be affected. + # @option opts [Float] :target The SLO target. If `target` is passed in, the response will include the remaining error budget and a timeframe value of `custom`. + # @option opts [Boolean] :apply_correction Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`, then the corrections will not be applied and the SLI values will not be affected. # @return [SLOHistoryResponse] def get_slo_history(slo_id, from_ts, to_ts, opts = {}) data, _status_code, _headers = get_slo_history_with_http_info(slo_id, from_ts, to_ts, opts) data end - # Get an SLO's history - # Get a specific SLO’s history, regardless of its SLO type. The detailed history data is structured according to the source data type. For example, metric data is included for event SLOs that use the metric source, and monitor SLO types include the monitor transition history. **Note:** There are different response formats for event based and time based SLOs. Examples of both are shown. + # Get an SLO's history + # Get a specific SLO’s history, regardless of its SLO type. + # + # The detailed history data is structured according to the source data type. + # For example, metric data is included for event SLOs that use + # the metric source, and monitor SLO types include the monitor transition history. + # + # **Note:** There are different response formats for event based and time based SLOs. + # Examples of both are shown. # @param slo_id [String] The ID of the service level objective object. - # @param from_ts [Integer] The `from` timestamp for the query window in epoch seconds. - # @param to_ts [Integer] The `to` timestamp for the query window in epoch seconds. + # @param from_ts [Integer] The `from` timestamp for the query window in epoch seconds. + # @param to_ts [Integer] The `to` timestamp for the query window in epoch seconds. # @param [Hash] opts the optional parameters - # @option opts [Float] :target The SLO target. If `target` is passed in, the response will include the remaining error budget and a timeframe value of `custom`. - # @option opts [Boolean] :apply_correction Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`, then the corrections will not be applied and the SLI values will not be affected. + # @option opts [Float] :target The SLO target. If `target` is passed in, the response will include the remaining error budget and a timeframe value of `custom`. + # @option opts [Boolean] :apply_correction Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`, then the corrections will not be applied and the SLI values will not be affected. # @return [Array<(SLOHistoryResponse, Integer, Hash)>] SLOHistoryResponse data, response status code and response headers def get_slo_history_with_http_info(slo_id, from_ts, to_ts, opts = {}) @@ -520,16 +551,8 @@ def get_slo_history_with_http_info(slo_id, from_ts, to_ts, opts = {}) if @api_client.config.client_side_validation && to_ts.nil? fail ArgumentError, "Missing the required parameter 'to_ts' when calling ServiceLevelObjectivesAPI.get_slo_history" end - if @api_client.config.client_side_validation && !opts[:'target'].nil? && opts[:'target'] >= 100 - fail ArgumentError, 'invalid value for "opts[:"target"]" when calling ServiceLevelObjectivesAPI.get_slo_history, must be smaller than 100.' - end - - if @api_client.config.client_side_validation && !opts[:'target'].nil? && opts[:'target'] <= 0 - fail ArgumentError, 'invalid value for "opts[:"target"]" when calling ServiceLevelObjectivesAPI.get_slo_history, must be greater than 0.' - end - # resource path - local_var_path = '/api/v1/slo/{slo_id}/history'.sub('{' + 'slo_id' + '}', CGI.escape(slo_id.to_s)) + local_var_path = '/api/v1/slo/{slo_id}/history'.sub('{slo_id}', CGI.escape(slo_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -553,7 +576,7 @@ def get_slo_history_with_http_info(slo_id, from_ts, to_ts, opts = {}) return_type = opts[:debug_return_type] || 'SLOHistoryResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_slo_history, @@ -582,8 +605,8 @@ def get_slo_history_with_http_info(slo_id, from_ts, to_ts, opts = {}) # @option opts [Integer] :limit The number of SLOs to return in the response. # @option opts [Integer] :offset The specific offset to use as the beginning of the returned response. # @return [SLOListResponse] - def list_slos(opts = {}) - data, _status_code, _headers = list_slos_with_http_info(opts) + def list_sl_os(opts = {}) + data, _status_code, _headers = list_sl_os_with_http_info(opts) data end @@ -597,19 +620,19 @@ def list_slos(opts = {}) # @option opts [Integer] :limit The number of SLOs to return in the response. # @option opts [Integer] :offset The specific offset to use as the beginning of the returned response. # @return [Array<(SLOListResponse, Integer, Hash)>] SLOListResponse data, response status code and response headers - def list_slos_with_http_info(opts = {}) + def list_sl_os_with_http_info(opts = {}) - if @api_client.config.unstable_operations.has_key?(:list_slos) - unstable_enabled = @api_client.config.unstable_operations[:list_slos] + if @api_client.config.unstable_operations.has_key?(:list_sl_os) + unstable_enabled = @api_client.config.unstable_operations[:list_sl_os] if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "list_slos") + @api_client.config.logger.warn format("Using unstable operation '%s'", "list_sl_os") else - raise APIError.new(message: format("Unstable operation '%s' is disabled", "list_slos")) + raise APIError.new(message: format("Unstable operation '%s' is disabled", "list_sl_os")) end end if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ServiceLevelObjectivesAPI.list_slos ...' + @api_client.config.logger.debug 'Calling API: ServiceLevelObjectivesAPI.list_sl_os ...' end # resource path local_var_path = '/api/v1/slo' @@ -638,10 +661,10 @@ def list_slos_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'SLOListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( - :operation => :list_slos, + :operation => :list_sl_os, :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -652,7 +675,7 @@ def list_slos_with_http_info(opts = {}) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: ServiceLevelObjectivesAPI#list_slos\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ServiceLevelObjectivesAPI#list_sl_os\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end @@ -697,7 +720,7 @@ def update_slo_with_http_info(slo_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling ServiceLevelObjectivesAPI.update_slo" end # resource path - local_var_path = '/api/v1/slo/{slo_id}'.sub('{' + 'slo_id' + '}', CGI.escape(slo_id.to_s)) + local_var_path = '/api/v1/slo/{slo_id}'.sub('{slo_id}', CGI.escape(slo_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/datadog_api_client/v1/api/slack_integration_api.rb b/lib/datadog_api_client/v1/api/slack_integration_api.rb index e8db5194b4c..abce6ab4e37 100644 --- a/lib/datadog_api_client/v1/api/slack_integration_api.rb +++ b/lib/datadog_api_client/v1/api/slack_integration_api.rb @@ -22,6 +22,7 @@ class SlackIntegrationAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create a Slack integration channel # Add a channel to your Datadog-Slack integration. # @param account_name [String] Your Slack account name. @@ -62,7 +63,7 @@ def create_slack_integration_channel_with_http_info(account_name, body, opts = { fail ArgumentError, "Missing the required parameter 'body' when calling SlackIntegrationAPI.create_slack_integration_channel" end # resource path - local_var_path = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels'.sub('{' + 'account_name' + '}', CGI.escape(account_name.to_s)) + local_var_path = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels'.sub('{account_name}', CGI.escape(account_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -143,7 +144,7 @@ def get_slack_integration_channel_with_http_info(account_name, channel_name, opt fail ArgumentError, "Missing the required parameter 'channel_name' when calling SlackIntegrationAPI.get_slack_integration_channel" end # resource path - local_var_path = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels/{channel_name}'.sub('{' + 'account_name' + '}', CGI.escape(account_name.to_s)).sub('{' + 'channel_name' + '}', CGI.escape(channel_name.to_s)) + local_var_path = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels/{channel_name}'.sub('{account_name}', CGI.escape(account_name.to_s).gsub('%2F', '/')).sub('{channel_name}', CGI.escape(channel_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -216,7 +217,7 @@ def get_slack_integration_channels_with_http_info(account_name, opts = {}) fail ArgumentError, "Missing the required parameter 'account_name' when calling SlackIntegrationAPI.get_slack_integration_channels" end # resource path - local_var_path = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels'.sub('{' + 'account_name' + '}', CGI.escape(account_name.to_s)) + local_var_path = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels'.sub('{account_name}', CGI.escape(account_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -295,7 +296,7 @@ def remove_slack_integration_channel_with_http_info(account_name, channel_name, fail ArgumentError, "Missing the required parameter 'channel_name' when calling SlackIntegrationAPI.remove_slack_integration_channel" end # resource path - local_var_path = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels/{channel_name}'.sub('{' + 'account_name' + '}', CGI.escape(account_name.to_s)).sub('{' + 'channel_name' + '}', CGI.escape(channel_name.to_s)) + local_var_path = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels/{channel_name}'.sub('{account_name}', CGI.escape(account_name.to_s).gsub('%2F', '/')).sub('{channel_name}', CGI.escape(channel_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -303,7 +304,7 @@ def remove_slack_integration_channel_with_http_info(account_name, channel_name, # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -380,7 +381,7 @@ def update_slack_integration_channel_with_http_info(account_name, channel_name, fail ArgumentError, "Missing the required parameter 'body' when calling SlackIntegrationAPI.update_slack_integration_channel" end # resource path - local_var_path = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels/{channel_name}'.sub('{' + 'account_name' + '}', CGI.escape(account_name.to_s)).sub('{' + 'channel_name' + '}', CGI.escape(channel_name.to_s)) + local_var_path = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels/{channel_name}'.sub('{account_name}', CGI.escape(account_name.to_s).gsub('%2F', '/')).sub('{channel_name}', CGI.escape(channel_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/datadog_api_client/v1/api/snapshots_api.rb b/lib/datadog_api_client/v1/api/snapshots_api.rb index c047550d218..b6368a16add 100644 --- a/lib/datadog_api_client/v1/api/snapshots_api.rb +++ b/lib/datadog_api_client/v1/api/snapshots_api.rb @@ -22,14 +22,16 @@ class SnapshotsAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Take graph snapshots - # Take graph snapshots. **Note**: When a snapshot is created, there is some delay before it is available. + # Take graph snapshots. + # **Note**: When a snapshot is created, there is some delay before it is available. # @param start [Integer] The POSIX timestamp of the start of the query. # @param _end [Integer] The POSIX timestamp of the end of the query. # @param [Hash] opts the optional parameters # @option opts [String] :metric_query The metric query. # @option opts [String] :event_query A query that adds event bands to the graph. - # @option opts [String] :graph_def A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. The JSON document uses the [grammar defined here](https://docs.datadoghq.com/graphing/graphing_json/#grammar) and should be formatted to a single line then URL encoded. + # @option opts [String] :graph_def A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. The JSON document uses the [grammar defined here](https://docs.datadoghq.com/graphing/graphing_json/#grammar) and should be formatted to a single line then URL encoded. # @option opts [String] :title A title for the graph. If no title is specified, the graph does not have a title. # @return [GraphSnapshot] def get_graph_snapshot(start, _end, opts = {}) @@ -38,13 +40,14 @@ def get_graph_snapshot(start, _end, opts = {}) end # Take graph snapshots - # Take graph snapshots. **Note**: When a snapshot is created, there is some delay before it is available. + # Take graph snapshots. + # **Note**: When a snapshot is created, there is some delay before it is available. # @param start [Integer] The POSIX timestamp of the start of the query. # @param _end [Integer] The POSIX timestamp of the end of the query. # @param [Hash] opts the optional parameters # @option opts [String] :metric_query The metric query. # @option opts [String] :event_query A query that adds event bands to the graph. - # @option opts [String] :graph_def A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. The JSON document uses the [grammar defined here](https://docs.datadoghq.com/graphing/graphing_json/#grammar) and should be formatted to a single line then URL encoded. + # @option opts [String] :graph_def A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. The JSON document uses the [grammar defined here](https://docs.datadoghq.com/graphing/graphing_json/#grammar) and should be formatted to a single line then URL encoded. # @option opts [String] :title A title for the graph. If no title is specified, the graph does not have a title. # @return [Array<(GraphSnapshot, Integer, Hash)>] GraphSnapshot data, response status code and response headers def get_graph_snapshot_with_http_info(start, _end, opts = {}) @@ -96,7 +99,7 @@ def get_graph_snapshot_with_http_info(start, _end, opts = {}) return_type = opts[:debug_return_type] || 'GraphSnapshot' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_graph_snapshot, diff --git a/lib/datadog_api_client/v1/api/synthetics_api.rb b/lib/datadog_api_client/v1/api/synthetics_api.rb index 8baa00c1dbe..70fbbca496d 100644 --- a/lib/datadog_api_client/v1/api/synthetics_api.rb +++ b/lib/datadog_api_client/v1/api/synthetics_api.rb @@ -22,6 +22,7 @@ class SyntheticsAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create a global variable # Create a Synthetics global variable. # @param body [SyntheticsGlobalVariable] Details of the global variable to create. @@ -78,7 +79,7 @@ def create_global_variable_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsGlobalVariable' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_global_variable, @@ -153,7 +154,7 @@ def create_private_location_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsPrivateLocationCreationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_private_location, @@ -228,7 +229,7 @@ def create_synthetics_api_test_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsAPITest' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_synthetics_api_test, @@ -303,7 +304,7 @@ def create_synthetics_browser_test_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsBrowserTest' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_synthetics_browser_test, @@ -356,7 +357,7 @@ def delete_global_variable_with_http_info(variable_id, opts = {}) fail ArgumentError, "Missing the required parameter 'variable_id' when calling SyntheticsAPI.delete_global_variable" end # resource path - local_var_path = '/api/v1/synthetics/variables/{variable_id}'.sub('{' + 'variable_id' + '}', CGI.escape(variable_id.to_s)) + local_var_path = '/api/v1/synthetics/variables/{variable_id}'.sub('{variable_id}', CGI.escape(variable_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -364,7 +365,7 @@ def delete_global_variable_with_http_info(variable_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -376,7 +377,7 @@ def delete_global_variable_with_http_info(variable_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_global_variable, @@ -429,7 +430,7 @@ def delete_private_location_with_http_info(location_id, opts = {}) fail ArgumentError, "Missing the required parameter 'location_id' when calling SyntheticsAPI.delete_private_location" end # resource path - local_var_path = '/api/v1/synthetics/private-locations/{location_id}'.sub('{' + 'location_id' + '}', CGI.escape(location_id.to_s)) + local_var_path = '/api/v1/synthetics/private-locations/{location_id}'.sub('{location_id}', CGI.escape(location_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -437,7 +438,7 @@ def delete_private_location_with_http_info(location_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -449,7 +450,7 @@ def delete_private_location_with_http_info(location_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_private_location, @@ -524,7 +525,7 @@ def delete_tests_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsDeleteTestsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_tests, @@ -583,7 +584,7 @@ def edit_global_variable_with_http_info(variable_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.edit_global_variable" end # resource path - local_var_path = '/api/v1/synthetics/variables/{variable_id}'.sub('{' + 'variable_id' + '}', CGI.escape(variable_id.to_s)) + local_var_path = '/api/v1/synthetics/variables/{variable_id}'.sub('{variable_id}', CGI.escape(variable_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -605,7 +606,7 @@ def edit_global_variable_with_http_info(variable_id, body, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsGlobalVariable' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :edit_global_variable, @@ -625,7 +626,8 @@ def edit_global_variable_with_http_info(variable_id, body, opts = {}) end # Get an API test - # Get the detailed configuration associated with a Synthetic API test. + # Get the detailed configuration associated with + # a Synthetic API test. # @param public_id [String] The public ID of the test to get details from. # @param [Hash] opts the optional parameters # @return [SyntheticsAPITest] @@ -635,7 +637,8 @@ def get_api_test(public_id, opts = {}) end # Get an API test - # Get the detailed configuration associated with a Synthetic API test. + # Get the detailed configuration associated with + # a Synthetic API test. # @param public_id [String] The public ID of the test to get details from. # @param [Hash] opts the optional parameters # @return [Array<(SyntheticsAPITest, Integer, Hash)>] SyntheticsAPITest data, response status code and response headers @@ -658,7 +661,7 @@ def get_api_test_with_http_info(public_id, opts = {}) fail ArgumentError, "Missing the required parameter 'public_id' when calling SyntheticsAPI.get_api_test" end # resource path - local_var_path = '/api/v1/synthetics/tests/api/{public_id}'.sub('{' + 'public_id' + '}', CGI.escape(public_id.to_s)) + local_var_path = '/api/v1/synthetics/tests/api/{public_id}'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -678,7 +681,7 @@ def get_api_test_with_http_info(public_id, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsAPITest' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_api_test, @@ -710,7 +713,7 @@ def get_api_test_latest_results(public_id, opts = {}) data end - # Get an API test's latest results summaries + # Get an API test's latest results summaries # Get the last 50 test results summaries for a given Synthetics API test. # @param public_id [String] The public ID of the test for which to search results for. # @param [Hash] opts the optional parameters @@ -737,13 +740,13 @@ def get_api_test_latest_results_with_http_info(public_id, opts = {}) fail ArgumentError, "Missing the required parameter 'public_id' when calling SyntheticsAPI.get_api_test_latest_results" end # resource path - local_var_path = '/api/v1/synthetics/tests/{public_id}/results'.sub('{' + 'public_id' + '}', CGI.escape(public_id.to_s)) + local_var_path = '/api/v1/synthetics/tests/{public_id}/results'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} query_params[:'from_ts'] = opts[:'from_ts'] if !opts[:'from_ts'].nil? query_params[:'to_ts'] = opts[:'to_ts'] if !opts[:'to_ts'].nil? - query_params[:'probe_dc'] = @api_client.build_collection_param(opts[:'probe_dc'], :multi) if !opts[:'probe_dc'].nil? + query_params[:'probe_dc'] = opts[:'probe_dc'] if !opts[:'probe_dc'].nil? # header parameters header_params = opts[:header_params] || {} @@ -760,7 +763,7 @@ def get_api_test_latest_results_with_http_info(public_id, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsGetAPITestLatestResultsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_api_test_latest_results, @@ -819,7 +822,7 @@ def get_api_test_result_with_http_info(public_id, result_id, opts = {}) fail ArgumentError, "Missing the required parameter 'result_id' when calling SyntheticsAPI.get_api_test_result" end # resource path - local_var_path = '/api/v1/synthetics/tests/{public_id}/results/{result_id}'.sub('{' + 'public_id' + '}', CGI.escape(public_id.to_s)).sub('{' + 'result_id' + '}', CGI.escape(result_id.to_s)) + local_var_path = '/api/v1/synthetics/tests/{public_id}/results/{result_id}'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')).sub('{result_id}', CGI.escape(result_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -839,7 +842,7 @@ def get_api_test_result_with_http_info(public_id, result_id, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsAPITestResultFull' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_api_test_result, @@ -859,7 +862,8 @@ def get_api_test_result_with_http_info(public_id, result_id, opts = {}) end # Get a browser test - # Get the detailed configuration (including steps) associated with a Synthetic browser test. + # Get the detailed configuration (including steps) associated with + # a Synthetic browser test. # @param public_id [String] The public ID of the test to get details from. # @param [Hash] opts the optional parameters # @return [SyntheticsBrowserTest] @@ -869,7 +873,8 @@ def get_browser_test(public_id, opts = {}) end # Get a browser test - # Get the detailed configuration (including steps) associated with a Synthetic browser test. + # Get the detailed configuration (including steps) associated with + # a Synthetic browser test. # @param public_id [String] The public ID of the test to get details from. # @param [Hash] opts the optional parameters # @return [Array<(SyntheticsBrowserTest, Integer, Hash)>] SyntheticsBrowserTest data, response status code and response headers @@ -892,7 +897,7 @@ def get_browser_test_with_http_info(public_id, opts = {}) fail ArgumentError, "Missing the required parameter 'public_id' when calling SyntheticsAPI.get_browser_test" end # resource path - local_var_path = '/api/v1/synthetics/tests/browser/{public_id}'.sub('{' + 'public_id' + '}', CGI.escape(public_id.to_s)) + local_var_path = '/api/v1/synthetics/tests/browser/{public_id}'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -912,7 +917,7 @@ def get_browser_test_with_http_info(public_id, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsBrowserTest' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_browser_test, @@ -944,7 +949,7 @@ def get_browser_test_latest_results(public_id, opts = {}) data end - # Get a browser test's latest results summaries + # Get a browser test's latest results summaries # Get the last 50 test results summaries for a given Synthetics Browser test. # @param public_id [String] The public ID of the browser test for which to search results for. # @param [Hash] opts the optional parameters @@ -971,13 +976,13 @@ def get_browser_test_latest_results_with_http_info(public_id, opts = {}) fail ArgumentError, "Missing the required parameter 'public_id' when calling SyntheticsAPI.get_browser_test_latest_results" end # resource path - local_var_path = '/api/v1/synthetics/tests/browser/{public_id}/results'.sub('{' + 'public_id' + '}', CGI.escape(public_id.to_s)) + local_var_path = '/api/v1/synthetics/tests/browser/{public_id}/results'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} query_params[:'from_ts'] = opts[:'from_ts'] if !opts[:'from_ts'].nil? query_params[:'to_ts'] = opts[:'to_ts'] if !opts[:'to_ts'].nil? - query_params[:'probe_dc'] = @api_client.build_collection_param(opts[:'probe_dc'], :multi) if !opts[:'probe_dc'].nil? + query_params[:'probe_dc'] = opts[:'probe_dc'] if !opts[:'probe_dc'].nil? # header parameters header_params = opts[:header_params] || {} @@ -994,7 +999,7 @@ def get_browser_test_latest_results_with_http_info(public_id, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsGetBrowserTestLatestResultsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_browser_test_latest_results, @@ -1053,7 +1058,7 @@ def get_browser_test_result_with_http_info(public_id, result_id, opts = {}) fail ArgumentError, "Missing the required parameter 'result_id' when calling SyntheticsAPI.get_browser_test_result" end # resource path - local_var_path = '/api/v1/synthetics/tests/browser/{public_id}/results/{result_id}'.sub('{' + 'public_id' + '}', CGI.escape(public_id.to_s)).sub('{' + 'result_id' + '}', CGI.escape(result_id.to_s)) + local_var_path = '/api/v1/synthetics/tests/browser/{public_id}/results/{result_id}'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')).sub('{result_id}', CGI.escape(result_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -1073,7 +1078,7 @@ def get_browser_test_result_with_http_info(public_id, result_id, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsBrowserTestResultFull' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_browser_test_result, @@ -1126,7 +1131,7 @@ def get_global_variable_with_http_info(variable_id, opts = {}) fail ArgumentError, "Missing the required parameter 'variable_id' when calling SyntheticsAPI.get_global_variable" end # resource path - local_var_path = '/api/v1/synthetics/variables/{variable_id}'.sub('{' + 'variable_id' + '}', CGI.escape(variable_id.to_s)) + local_var_path = '/api/v1/synthetics/variables/{variable_id}'.sub('{variable_id}', CGI.escape(variable_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -1146,7 +1151,7 @@ def get_global_variable_with_http_info(variable_id, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsGlobalVariable' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_global_variable, @@ -1199,7 +1204,7 @@ def get_private_location_with_http_info(location_id, opts = {}) fail ArgumentError, "Missing the required parameter 'location_id' when calling SyntheticsAPI.get_private_location" end # resource path - local_var_path = '/api/v1/synthetics/private-locations/{location_id}'.sub('{' + 'location_id' + '}', CGI.escape(location_id.to_s)) + local_var_path = '/api/v1/synthetics/private-locations/{location_id}'.sub('{location_id}', CGI.escape(location_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -1219,7 +1224,7 @@ def get_private_location_with_http_info(location_id, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsPrivateLocation' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_private_location, @@ -1249,7 +1254,7 @@ def get_synthetics_ci_batch(batch_id, opts = {}) end # Get details of batch - # Get a batch's updated details. + # Get a batch's updated details. # @param batch_id [String] The ID of the batch. # @param [Hash] opts the optional parameters # @return [Array<(SyntheticsBatchDetails, Integer, Hash)>] SyntheticsBatchDetails data, response status code and response headers @@ -1272,7 +1277,7 @@ def get_synthetics_ci_batch_with_http_info(batch_id, opts = {}) fail ArgumentError, "Missing the required parameter 'batch_id' when calling SyntheticsAPI.get_synthetics_ci_batch" end # resource path - local_var_path = '/api/v1/synthetics/ci/batch/{batch_id}'.sub('{' + 'batch_id' + '}', CGI.escape(batch_id.to_s)) + local_var_path = '/api/v1/synthetics/ci/batch/{batch_id}'.sub('{batch_id}', CGI.escape(batch_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -1292,7 +1297,7 @@ def get_synthetics_ci_batch_with_http_info(batch_id, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsBatchDetails' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_synthetics_ci_batch, @@ -1345,7 +1350,7 @@ def get_test_with_http_info(public_id, opts = {}) fail ArgumentError, "Missing the required parameter 'public_id' when calling SyntheticsAPI.get_test" end # resource path - local_var_path = '/api/v1/synthetics/tests/{public_id}'.sub('{' + 'public_id' + '}', CGI.escape(public_id.to_s)) + local_var_path = '/api/v1/synthetics/tests/{public_id}'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -1365,7 +1370,7 @@ def get_test_with_http_info(public_id, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsTestDetails' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_test, @@ -1432,7 +1437,7 @@ def list_global_variables_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsListGlobalVariablesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_global_variables, @@ -1452,7 +1457,8 @@ def list_global_variables_with_http_info(opts = {}) end # Get all locations (public and private) - # Get the list of public and private locations available for Synthetic tests. No arguments required. + # Get the list of public and private locations available for Synthetic + # tests. No arguments required. # @param [Hash] opts the optional parameters # @return [SyntheticsLocations] def list_locations(opts = {}) @@ -1461,7 +1467,8 @@ def list_locations(opts = {}) end # Get all locations (public and private) - # Get the list of public and private locations available for Synthetic tests. No arguments required. + # Get the list of public and private locations available for Synthetic + # tests. No arguments required. # @param [Hash] opts the optional parameters # @return [Array<(SyntheticsLocations, Integer, Hash)>] SyntheticsLocations data, response status code and response headers def list_locations_with_http_info(opts = {}) @@ -1499,7 +1506,7 @@ def list_locations_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsLocations' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_locations, @@ -1566,7 +1573,7 @@ def list_tests_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsListTestsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_tests, @@ -1641,7 +1648,7 @@ def trigger_ci_tests_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsTriggerCITestsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :trigger_ci_tests, @@ -1716,7 +1723,7 @@ def trigger_tests_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsTriggerCITestsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :trigger_tests, @@ -1775,7 +1782,7 @@ def update_api_test_with_http_info(public_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.update_api_test" end # resource path - local_var_path = '/api/v1/synthetics/tests/api/{public_id}'.sub('{' + 'public_id' + '}', CGI.escape(public_id.to_s)) + local_var_path = '/api/v1/synthetics/tests/api/{public_id}'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -1797,7 +1804,7 @@ def update_api_test_with_http_info(public_id, body, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsAPITest' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_api_test, @@ -1856,7 +1863,7 @@ def update_browser_test_with_http_info(public_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.update_browser_test" end # resource path - local_var_path = '/api/v1/synthetics/tests/browser/{public_id}'.sub('{' + 'public_id' + '}', CGI.escape(public_id.to_s)) + local_var_path = '/api/v1/synthetics/tests/browser/{public_id}'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -1878,7 +1885,7 @@ def update_browser_test_with_http_info(public_id, body, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsBrowserTest' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_browser_test, @@ -1937,7 +1944,7 @@ def update_private_location_with_http_info(location_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.update_private_location" end # resource path - local_var_path = '/api/v1/synthetics/private-locations/{location_id}'.sub('{' + 'location_id' + '}', CGI.escape(location_id.to_s)) + local_var_path = '/api/v1/synthetics/private-locations/{location_id}'.sub('{location_id}', CGI.escape(location_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -1959,7 +1966,7 @@ def update_private_location_with_http_info(location_id, body, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsPrivateLocation' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_private_location, @@ -2018,7 +2025,7 @@ def update_test_pause_status_with_http_info(public_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.update_test_pause_status" end # resource path - local_var_path = '/api/v1/synthetics/tests/{public_id}/status'.sub('{' + 'public_id' + '}', CGI.escape(public_id.to_s)) + local_var_path = '/api/v1/synthetics/tests/{public_id}/status'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -2040,7 +2047,7 @@ def update_test_pause_status_with_http_info(public_id, body, opts = {}) return_type = opts[:debug_return_type] || 'Boolean' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_test_pause_status, diff --git a/lib/datadog_api_client/v1/api/tags_api.rb b/lib/datadog_api_client/v1/api/tags_api.rb index 32e68721325..e811d244832 100644 --- a/lib/datadog_api_client/v1/api/tags_api.rb +++ b/lib/datadog_api_client/v1/api/tags_api.rb @@ -22,8 +22,10 @@ class TagsAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Add tags to a host - # This endpoint allows you to add new tags to a host, optionally specifying where these tags come from. + # This endpoint allows you to add new tags to a host, + # optionally specifying where these tags come from. # @param host_name [String] This endpoint allows you to add new tags to a host, optionally specifying where the tags came from. # @param body [HostTags] Update host tags request body. # @param [Hash] opts the optional parameters @@ -35,7 +37,8 @@ def create_host_tags(host_name, body, opts = {}) end # Add tags to a host - # This endpoint allows you to add new tags to a host, optionally specifying where these tags come from. + # This endpoint allows you to add new tags to a host, + # optionally specifying where these tags come from. # @param host_name [String] This endpoint allows you to add new tags to a host, optionally specifying where the tags came from. # @param body [HostTags] Update host tags request body. # @param [Hash] opts the optional parameters @@ -64,7 +67,7 @@ def create_host_tags_with_http_info(host_name, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling TagsAPI.create_host_tags" end # resource path - local_var_path = '/api/v1/tags/hosts/{host_name}'.sub('{' + 'host_name' + '}', CGI.escape(host_name.to_s)) + local_var_path = '/api/v1/tags/hosts/{host_name}'.sub('{host_name}', CGI.escape(host_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -107,7 +110,8 @@ def create_host_tags_with_http_info(host_name, body, opts = {}) end # Remove host tags - # This endpoint allows you to remove all user-assigned tags for a single host. + # This endpoint allows you to remove all user-assigned tags + # for a single host. # @param host_name [String] This endpoint allows you to remove all user-assigned tags for a single host. # @param [Hash] opts the optional parameters # @option opts [String] :source The source of the tags (for example chef, puppet). [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). @@ -118,7 +122,8 @@ def delete_host_tags(host_name, opts = {}) end # Remove host tags - # This endpoint allows you to remove all user-assigned tags for a single host. + # This endpoint allows you to remove all user-assigned tags + # for a single host. # @param host_name [String] This endpoint allows you to remove all user-assigned tags for a single host. # @param [Hash] opts the optional parameters # @option opts [String] :source The source of the tags (for example chef, puppet). [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). @@ -142,7 +147,7 @@ def delete_host_tags_with_http_info(host_name, opts = {}) fail ArgumentError, "Missing the required parameter 'host_name' when calling TagsAPI.delete_host_tags" end # resource path - local_var_path = '/api/v1/tags/hosts/{host_name}'.sub('{' + 'host_name' + '}', CGI.escape(host_name.to_s)) + local_var_path = '/api/v1/tags/hosts/{host_name}'.sub('{host_name}', CGI.escape(host_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -151,7 +156,7 @@ def delete_host_tags_with_http_info(host_name, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -218,7 +223,7 @@ def get_host_tags_with_http_info(host_name, opts = {}) fail ArgumentError, "Missing the required parameter 'host_name' when calling TagsAPI.get_host_tags" end # resource path - local_var_path = '/api/v1/tags/hosts/{host_name}'.sub('{' + 'host_name' + '}', CGI.escape(host_name.to_s)) + local_var_path = '/api/v1/tags/hosts/{host_name}'.sub('{host_name}', CGI.escape(host_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -309,7 +314,7 @@ def list_host_tags_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'TagToHosts' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_host_tags, @@ -329,7 +334,8 @@ def list_host_tags_with_http_info(opts = {}) end # Update host tags - # This endpoint allows you to update/replace all tags in an integration source with those supplied in the request. + # This endpoint allows you to update/replace all tags in + # an integration source with those supplied in the request. # @param host_name [String] This endpoint allows you to update/replace all in an integration source with those supplied in the request. # @param body [HostTags] Add tags to host # @param [Hash] opts the optional parameters @@ -341,7 +347,8 @@ def update_host_tags(host_name, body, opts = {}) end # Update host tags - # This endpoint allows you to update/replace all tags in an integration source with those supplied in the request. + # This endpoint allows you to update/replace all tags in + # an integration source with those supplied in the request. # @param host_name [String] This endpoint allows you to update/replace all in an integration source with those supplied in the request. # @param body [HostTags] Add tags to host # @param [Hash] opts the optional parameters @@ -370,7 +377,7 @@ def update_host_tags_with_http_info(host_name, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling TagsAPI.update_host_tags" end # resource path - local_var_path = '/api/v1/tags/hosts/{host_name}'.sub('{' + 'host_name' + '}', CGI.escape(host_name.to_s)) + local_var_path = '/api/v1/tags/hosts/{host_name}'.sub('{host_name}', CGI.escape(host_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/datadog_api_client/v1/api/usage_metering_api.rb b/lib/datadog_api_client/v1/api/usage_metering_api.rb index 534be7c39ba..8f717e00a6c 100644 --- a/lib/datadog_api_client/v1/api/usage_metering_api.rb +++ b/lib/datadog_api_client/v1/api/usage_metering_api.rb @@ -22,13 +22,14 @@ class UsageMeteringAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Get the list of available daily custom reports # Get daily custom reports. # @param [Hash] opts the optional parameters - # @option opts [Integer] :page_size The number of files to return in the response. `[default=60]`. - # @option opts [Integer] :page_number The identifier of the first page to return. This parameter is used for the pagination feature `[default=0]`. - # @option opts [UsageSortDirection] :sort_dir The direction to sort by: `[desc, asc]`. (default to 'desc') - # @option opts [UsageSort] :sort The field to sort by: `[computed_on, size, start_date, end_date]`. (default to 'start_date') + # @option opts [Integer] :page_size The number of files to return in the response. `[default=60]`. + # @option opts [Integer] :page_number The identifier of the first page to return. This parameter is used for the pagination feature `[default=0]`. + # @option opts [UsageSortDirection] :sort_dir The direction to sort by: `[desc, asc]`. + # @option opts [UsageSort] :sort The field to sort by: `[computed_on, size, start_date, end_date]`. # @return [UsageCustomReportsResponse] def get_daily_custom_reports(opts = {}) data, _status_code, _headers = get_daily_custom_reports_with_http_info(opts) @@ -38,10 +39,10 @@ def get_daily_custom_reports(opts = {}) # Get the list of available daily custom reports # Get daily custom reports. # @param [Hash] opts the optional parameters - # @option opts [Integer] :page_size The number of files to return in the response. `[default=60]`. - # @option opts [Integer] :page_number The identifier of the first page to return. This parameter is used for the pagination feature `[default=0]`. - # @option opts [UsageSortDirection] :sort_dir The direction to sort by: `[desc, asc]`. - # @option opts [UsageSort] :sort The field to sort by: `[computed_on, size, start_date, end_date]`. + # @option opts [Integer] :page_size The number of files to return in the response. `[default=60]`. + # @option opts [Integer] :page_number The identifier of the first page to return. This parameter is used for the pagination feature `[default=0]`. + # @option opts [UsageSortDirection] :sort_dir The direction to sort by: `[desc, asc]`. + # @option opts [UsageSort] :sort The field to sort by: `[computed_on, size, start_date, end_date]`. # @return [Array<(UsageCustomReportsResponse, Integer, Hash)>] UsageCustomReportsResponse data, response status code and response headers def get_daily_custom_reports_with_http_info(opts = {}) @@ -82,7 +83,7 @@ def get_daily_custom_reports_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'UsageCustomReportsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_daily_custom_reports, @@ -103,10 +104,10 @@ def get_daily_custom_reports_with_http_info(opts = {}) # Get Hourly Usage Attribution # Get Hourly Usage Attribution. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param usage_type [HourlyUsageAttributionUsageType] Usage type to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @option opts [String] :next_record_id List following results with a next_record_id provided in the previous query. # @option opts [String] :tag_breakdown_keys Comma separated list of tags used to group usage. If no value is provided the usage will not be broken down by tags. # @return [HourlyUsageAttributionResponse] @@ -117,10 +118,10 @@ def get_hourly_usage_attribution(start_hr, usage_type, opts = {}) # Get Hourly Usage Attribution # Get Hourly Usage Attribution. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param usage_type [HourlyUsageAttributionUsageType] Usage type to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @option opts [String] :next_record_id List following results with a next_record_id provided in the previous query. # @option opts [String] :tag_breakdown_keys Comma separated list of tags used to group usage. If no value is provided the usage will not be broken down by tags. # @return [Array<(HourlyUsageAttributionResponse, Integer, Hash)>] HourlyUsageAttributionResponse data, response status code and response headers @@ -172,7 +173,7 @@ def get_hourly_usage_attribution_with_http_info(start_hr, usage_type, opts = {}) return_type = opts[:debug_return_type] || 'HourlyUsageAttributionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_hourly_usage_attribution, @@ -193,9 +194,9 @@ def get_hourly_usage_attribution_with_http_info(start_hr, usage_type, opts = {}) # Get hourly usage for incident management # Get hourly usage for incident management. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageIncidentManagementResponse] def get_incident_management(start_hr, opts = {}) data, _status_code, _headers = get_incident_management_with_http_info(start_hr, opts) @@ -204,9 +205,9 @@ def get_incident_management(start_hr, opts = {}) # Get hourly usage for incident management # Get hourly usage for incident management. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageIncidentManagementResponse, Integer, Hash)>] UsageIncidentManagementResponse data, response status code and response headers def get_incident_management_with_http_info(start_hr, opts = {}) @@ -249,7 +250,7 @@ def get_incident_management_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageIncidentManagementResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_incident_management, @@ -270,9 +271,9 @@ def get_incident_management_with_http_info(start_hr, opts = {}) # Get hourly usage for ingested spans # Get hourly usage for ingested spans. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageIngestedSpansResponse] def get_ingested_spans(start_hr, opts = {}) data, _status_code, _headers = get_ingested_spans_with_http_info(start_hr, opts) @@ -281,9 +282,9 @@ def get_ingested_spans(start_hr, opts = {}) # Get hourly usage for ingested spans # Get hourly usage for ingested spans. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageIngestedSpansResponse, Integer, Hash)>] UsageIngestedSpansResponse data, response status code and response headers def get_ingested_spans_with_http_info(start_hr, opts = {}) @@ -326,7 +327,7 @@ def get_ingested_spans_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageIngestedSpansResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_ingested_spans, @@ -348,10 +349,10 @@ def get_ingested_spans_with_http_info(start_hr, opts = {}) # Get the list of available monthly custom reports # Get monthly custom reports. # @param [Hash] opts the optional parameters - # @option opts [Integer] :page_size The number of files to return in the response `[default=60].` - # @option opts [Integer] :page_number The identifier of the first page to return. This parameter is used for the pagination feature `[default=0]`. - # @option opts [UsageSortDirection] :sort_dir The direction to sort by: `[desc, asc]`. (default to 'desc') - # @option opts [UsageSort] :sort The field to sort by: `[computed_on, size, start_date, end_date]`. (default to 'start_date') + # @option opts [Integer] :page_size The number of files to return in the response `[default=60].` + # @option opts [Integer] :page_number The identifier of the first page to return. This parameter is used for the pagination feature `[default=0]`. + # @option opts [UsageSortDirection] :sort_dir The direction to sort by: `[desc, asc]`. + # @option opts [UsageSort] :sort The field to sort by: `[computed_on, size, start_date, end_date]`. # @return [UsageCustomReportsResponse] def get_monthly_custom_reports(opts = {}) data, _status_code, _headers = get_monthly_custom_reports_with_http_info(opts) @@ -361,10 +362,10 @@ def get_monthly_custom_reports(opts = {}) # Get the list of available monthly custom reports # Get monthly custom reports. # @param [Hash] opts the optional parameters - # @option opts [Integer] :page_size The number of files to return in the response `[default=60].` - # @option opts [Integer] :page_number The identifier of the first page to return. This parameter is used for the pagination feature `[default=0]`. - # @option opts [UsageSortDirection] :sort_dir The direction to sort by: `[desc, asc]`. - # @option opts [UsageSort] :sort The field to sort by: `[computed_on, size, start_date, end_date]`. + # @option opts [Integer] :page_size The number of files to return in the response `[default=60].` + # @option opts [Integer] :page_number The identifier of the first page to return. This parameter is used for the pagination feature `[default=0]`. + # @option opts [UsageSortDirection] :sort_dir The direction to sort by: `[desc, asc]`. + # @option opts [UsageSort] :sort The field to sort by: `[computed_on, size, start_date, end_date]`. # @return [Array<(UsageCustomReportsResponse, Integer, Hash)>] UsageCustomReportsResponse data, response status code and response headers def get_monthly_custom_reports_with_http_info(opts = {}) @@ -405,7 +406,7 @@ def get_monthly_custom_reports_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'UsageCustomReportsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_monthly_custom_reports, @@ -426,11 +427,11 @@ def get_monthly_custom_reports_with_http_info(opts = {}) # Get Monthly Usage Attribution # Get Monthly Usage Attribution. - # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. - # @param fields [MonthlyUsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types. + # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. + # @param fields [MonthlyUsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. - # @option opts [UsageSortDirection] :sort_direction The direction to sort by: `[desc, asc]`. (default to 'desc') + # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. + # @option opts [UsageSortDirection] :sort_direction The direction to sort by: `[desc, asc]`. # @option opts [MonthlyUsageAttributionSupportedMetrics] :sort_name The field to sort by. # @option opts [String] :tag_breakdown_keys Comma separated list of tags used to group usage. If no value is provided the usage will not be broken down by tags. # @option opts [String] :next_record_id List following results with a next_record_id provided in the previous query. @@ -442,11 +443,11 @@ def get_monthly_usage_attribution(start_month, fields, opts = {}) # Get Monthly Usage Attribution # Get Monthly Usage Attribution. - # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. - # @param fields [MonthlyUsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types. + # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. + # @param fields [MonthlyUsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. - # @option opts [UsageSortDirection] :sort_direction The direction to sort by: `[desc, asc]`. + # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. + # @option opts [UsageSortDirection] :sort_direction The direction to sort by: `[desc, asc]`. # @option opts [MonthlyUsageAttributionSupportedMetrics] :sort_name The field to sort by. # @option opts [String] :tag_breakdown_keys Comma separated list of tags used to group usage. If no value is provided the usage will not be broken down by tags. # @option opts [String] :next_record_id List following results with a next_record_id provided in the previous query. @@ -501,7 +502,7 @@ def get_monthly_usage_attribution_with_http_info(start_month, fields, opts = {}) return_type = opts[:debug_return_type] || 'MonthlyUsageAttributionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_monthly_usage_attribution, @@ -522,7 +523,7 @@ def get_monthly_usage_attribution_with_http_info(start_month, fields, opts = {}) # Get specified daily custom reports # Get specified daily custom reports. - # @param report_id [String] Date of the report in the format `YYYY-MM-DD`. + # @param report_id [String] Date of the report in the format `YYYY-MM-DD`. # @param [Hash] opts the optional parameters # @return [UsageSpecifiedCustomReportsResponse] def get_specified_daily_custom_reports(report_id, opts = {}) @@ -532,7 +533,7 @@ def get_specified_daily_custom_reports(report_id, opts = {}) # Get specified daily custom reports # Get specified daily custom reports. - # @param report_id [String] Date of the report in the format `YYYY-MM-DD`. + # @param report_id [String] Date of the report in the format `YYYY-MM-DD`. # @param [Hash] opts the optional parameters # @return [Array<(UsageSpecifiedCustomReportsResponse, Integer, Hash)>] UsageSpecifiedCustomReportsResponse data, response status code and response headers def get_specified_daily_custom_reports_with_http_info(report_id, opts = {}) @@ -554,7 +555,7 @@ def get_specified_daily_custom_reports_with_http_info(report_id, opts = {}) fail ArgumentError, "Missing the required parameter 'report_id' when calling UsageMeteringAPI.get_specified_daily_custom_reports" end # resource path - local_var_path = '/api/v1/daily_custom_reports/{report_id}'.sub('{' + 'report_id' + '}', CGI.escape(report_id.to_s)) + local_var_path = '/api/v1/daily_custom_reports/{report_id}'.sub('{report_id}', CGI.escape(report_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -574,7 +575,7 @@ def get_specified_daily_custom_reports_with_http_info(report_id, opts = {}) return_type = opts[:debug_return_type] || 'UsageSpecifiedCustomReportsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_specified_daily_custom_reports, @@ -595,7 +596,7 @@ def get_specified_daily_custom_reports_with_http_info(report_id, opts = {}) # Get specified monthly custom reports # Get specified monthly custom reports. - # @param report_id [String] Date of the report in the format `YYYY-MM-DD`. + # @param report_id [String] Date of the report in the format `YYYY-MM-DD`. # @param [Hash] opts the optional parameters # @return [UsageSpecifiedCustomReportsResponse] def get_specified_monthly_custom_reports(report_id, opts = {}) @@ -605,7 +606,7 @@ def get_specified_monthly_custom_reports(report_id, opts = {}) # Get specified monthly custom reports # Get specified monthly custom reports. - # @param report_id [String] Date of the report in the format `YYYY-MM-DD`. + # @param report_id [String] Date of the report in the format `YYYY-MM-DD`. # @param [Hash] opts the optional parameters # @return [Array<(UsageSpecifiedCustomReportsResponse, Integer, Hash)>] UsageSpecifiedCustomReportsResponse data, response status code and response headers def get_specified_monthly_custom_reports_with_http_info(report_id, opts = {}) @@ -627,7 +628,7 @@ def get_specified_monthly_custom_reports_with_http_info(report_id, opts = {}) fail ArgumentError, "Missing the required parameter 'report_id' when calling UsageMeteringAPI.get_specified_monthly_custom_reports" end # resource path - local_var_path = '/api/v1/monthly_custom_reports/{report_id}'.sub('{' + 'report_id' + '}', CGI.escape(report_id.to_s)) + local_var_path = '/api/v1/monthly_custom_reports/{report_id}'.sub('{report_id}', CGI.escape(report_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -647,7 +648,7 @@ def get_specified_monthly_custom_reports_with_http_info(report_id, opts = {}) return_type = opts[:debug_return_type] || 'UsageSpecifiedCustomReportsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_specified_monthly_custom_reports, @@ -668,9 +669,9 @@ def get_specified_monthly_custom_reports_with_http_info(report_id, opts = {}) # Get hourly usage for analyzed logs # Get hourly usage for analyzed logs (Security Monitoring). - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageAnalyzedLogsResponse] def get_usage_analyzed_logs(start_hr, opts = {}) data, _status_code, _headers = get_usage_analyzed_logs_with_http_info(start_hr, opts) @@ -679,9 +680,9 @@ def get_usage_analyzed_logs(start_hr, opts = {}) # Get hourly usage for analyzed logs # Get hourly usage for analyzed logs (Security Monitoring). - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageAnalyzedLogsResponse, Integer, Hash)>] UsageAnalyzedLogsResponse data, response status code and response headers def get_usage_analyzed_logs_with_http_info(start_hr, opts = {}) @@ -724,7 +725,7 @@ def get_usage_analyzed_logs_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageAnalyzedLogsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_analyzed_logs, @@ -745,15 +746,15 @@ def get_usage_analyzed_logs_with_http_info(start_hr, opts = {}) # Get Usage Attribution # Get Usage Attribution. - # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. - # @param fields [UsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types. - # @param [Hash] opts the optional parameters - # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. - # @option opts [UsageSortDirection] :sort_direction The direction to sort by: `[desc, asc]`. (default to 'desc') - # @option opts [UsageAttributionSort] :sort_name The field to sort by. (default to 'custom_timeseries_usage') - # @option opts [Boolean] :include_descendants Include child org usage in the response. Defaults to false. (default to false) - # @option opts [Integer] :offset Number of records to skip before beginning to return. (default to 0) - # @option opts [Integer] :limit Maximum number of records to be returned. (default to 5000) + # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. + # @param fields [UsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types. + # @param [Hash] opts the optional parameters + # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. + # @option opts [UsageSortDirection] :sort_direction The direction to sort by: `[desc, asc]`. + # @option opts [UsageAttributionSort] :sort_name The field to sort by. + # @option opts [Boolean] :include_descendants Include child org usage in the response. Defaults to false. + # @option opts [Integer] :offset Number of records to skip before beginning to return. + # @option opts [Integer] :limit Maximum number of records to be returned. # @return [UsageAttributionResponse] def get_usage_attribution(start_month, fields, opts = {}) data, _status_code, _headers = get_usage_attribution_with_http_info(start_month, fields, opts) @@ -762,11 +763,11 @@ def get_usage_attribution(start_month, fields, opts = {}) # Get Usage Attribution # Get Usage Attribution. - # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. - # @param fields [UsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types. + # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. + # @param fields [UsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. - # @option opts [UsageSortDirection] :sort_direction The direction to sort by: `[desc, asc]`. + # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. + # @option opts [UsageSortDirection] :sort_direction The direction to sort by: `[desc, asc]`. # @option opts [UsageAttributionSort] :sort_name The field to sort by. # @option opts [Boolean] :include_descendants Include child org usage in the response. Defaults to false. # @option opts [Integer] :offset Number of records to skip before beginning to return. @@ -823,7 +824,7 @@ def get_usage_attribution_with_http_info(start_month, fields, opts = {}) return_type = opts[:debug_return_type] || 'UsageAttributionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_attribution, @@ -844,9 +845,9 @@ def get_usage_attribution_with_http_info(start_month, fields, opts = {}) # Get hourly usage for audit logs # Get hourly usage for audit logs. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageAuditLogsResponse] def get_usage_audit_logs(start_hr, opts = {}) data, _status_code, _headers = get_usage_audit_logs_with_http_info(start_hr, opts) @@ -855,9 +856,9 @@ def get_usage_audit_logs(start_hr, opts = {}) # Get hourly usage for audit logs # Get hourly usage for audit logs. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageAuditLogsResponse, Integer, Hash)>] UsageAuditLogsResponse data, response status code and response headers def get_usage_audit_logs_with_http_info(start_hr, opts = {}) @@ -900,7 +901,7 @@ def get_usage_audit_logs_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageAuditLogsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_audit_logs, @@ -922,7 +923,7 @@ def get_usage_audit_logs_with_http_info(start_hr, opts = {}) # Get billable usage across your account # Get billable usage across your account. # @param [Hash] opts the optional parameters - # @option opts [Time] :month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage starting this month. + # @option opts [Time] :month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage starting this month. # @return [UsageBillableSummaryResponse] def get_usage_billable_summary(opts = {}) data, _status_code, _headers = get_usage_billable_summary_with_http_info(opts) @@ -932,7 +933,7 @@ def get_usage_billable_summary(opts = {}) # Get billable usage across your account # Get billable usage across your account. # @param [Hash] opts the optional parameters - # @option opts [Time] :month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage starting this month. + # @option opts [Time] :month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage starting this month. # @return [Array<(UsageBillableSummaryResponse, Integer, Hash)>] UsageBillableSummaryResponse data, response status code and response headers def get_usage_billable_summary_with_http_info(opts = {}) @@ -970,7 +971,7 @@ def get_usage_billable_summary_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'UsageBillableSummaryResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_billable_summary, @@ -991,9 +992,9 @@ def get_usage_billable_summary_with_http_info(opts = {}) # Get hourly usage for CSPM # Get hourly usage for Cloud Security Posture Management (CSPM). - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageCloudSecurityPostureManagementResponse] def get_usage_cloud_security_posture_management(start_hr, opts = {}) data, _status_code, _headers = get_usage_cloud_security_posture_management_with_http_info(start_hr, opts) @@ -1002,9 +1003,9 @@ def get_usage_cloud_security_posture_management(start_hr, opts = {}) # Get hourly usage for CSPM # Get hourly usage for Cloud Security Posture Management (CSPM). - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageCloudSecurityPostureManagementResponse, Integer, Hash)>] UsageCloudSecurityPostureManagementResponse data, response status code and response headers def get_usage_cloud_security_posture_management_with_http_info(start_hr, opts = {}) @@ -1047,7 +1048,7 @@ def get_usage_cloud_security_posture_management_with_http_info(start_hr, opts = return_type = opts[:debug_return_type] || 'UsageCloudSecurityPostureManagementResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_cloud_security_posture_management, @@ -1068,9 +1069,9 @@ def get_usage_cloud_security_posture_management_with_http_info(start_hr, opts = # Get hourly usage for Cloud Workload Security # Get hourly usage for Cloud Workload Security. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageCWSResponse] def get_usage_cws(start_hr, opts = {}) data, _status_code, _headers = get_usage_cws_with_http_info(start_hr, opts) @@ -1079,9 +1080,9 @@ def get_usage_cws(start_hr, opts = {}) # Get hourly usage for Cloud Workload Security # Get hourly usage for Cloud Workload Security. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageCWSResponse, Integer, Hash)>] UsageCWSResponse data, response status code and response headers def get_usage_cws_with_http_info(start_hr, opts = {}) @@ -1124,7 +1125,7 @@ def get_usage_cws_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageCWSResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_cws, @@ -1145,9 +1146,9 @@ def get_usage_cws_with_http_info(start_hr, opts = {}) # Get hourly usage for Database Monitoring # Get hourly usage for Database Monitoring - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageDBMResponse] def get_usage_dbm(start_hr, opts = {}) data, _status_code, _headers = get_usage_dbm_with_http_info(start_hr, opts) @@ -1156,9 +1157,9 @@ def get_usage_dbm(start_hr, opts = {}) # Get hourly usage for Database Monitoring # Get hourly usage for Database Monitoring - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageDBMResponse, Integer, Hash)>] UsageDBMResponse data, response status code and response headers def get_usage_dbm_with_http_info(start_hr, opts = {}) @@ -1201,7 +1202,7 @@ def get_usage_dbm_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageDBMResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_dbm, @@ -1278,7 +1279,7 @@ def get_usage_fargate_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageFargateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_fargate, @@ -1355,7 +1356,7 @@ def get_usage_hosts_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageHostsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_hosts, @@ -1376,9 +1377,9 @@ def get_usage_hosts_with_http_info(start_hr, opts = {}) # Get hourly usage for indexed spans # Get hourly usage for indexed spans. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageIndexedSpansResponse] def get_usage_indexed_spans(start_hr, opts = {}) data, _status_code, _headers = get_usage_indexed_spans_with_http_info(start_hr, opts) @@ -1387,9 +1388,9 @@ def get_usage_indexed_spans(start_hr, opts = {}) # Get hourly usage for indexed spans # Get hourly usage for indexed spans. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageIndexedSpansResponse, Integer, Hash)>] UsageIndexedSpansResponse data, response status code and response headers def get_usage_indexed_spans_with_http_info(start_hr, opts = {}) @@ -1432,7 +1433,7 @@ def get_usage_indexed_spans_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageIndexedSpansResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_indexed_spans, @@ -1453,9 +1454,9 @@ def get_usage_indexed_spans_with_http_info(start_hr, opts = {}) # Get hourly usage for IoT # Get hourly usage for IoT. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageIoTResponse] def get_usage_internet_of_things(start_hr, opts = {}) data, _status_code, _headers = get_usage_internet_of_things_with_http_info(start_hr, opts) @@ -1464,9 +1465,9 @@ def get_usage_internet_of_things(start_hr, opts = {}) # Get hourly usage for IoT # Get hourly usage for IoT. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageIoTResponse, Integer, Hash)>] UsageIoTResponse data, response status code and response headers def get_usage_internet_of_things_with_http_info(start_hr, opts = {}) @@ -1509,7 +1510,7 @@ def get_usage_internet_of_things_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageIoTResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_internet_of_things, @@ -1586,7 +1587,7 @@ def get_usage_lambda_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageLambdaResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_lambda, @@ -1663,7 +1664,7 @@ def get_usage_logs_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageLogsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_logs, @@ -1726,7 +1727,7 @@ def get_usage_logs_by_index_with_http_info(start_hr, opts = {}) query_params = opts[:query_params] || {} query_params[:'start_hr'] = start_hr query_params[:'end_hr'] = opts[:'end_hr'] if !opts[:'end_hr'].nil? - query_params[:'index_name'] = @api_client.build_collection_param(opts[:'index_name'], :multi) if !opts[:'index_name'].nil? + query_params[:'index_name'] = opts[:'index_name'] if !opts[:'index_name'].nil? # header parameters header_params = opts[:header_params] || {} @@ -1743,7 +1744,7 @@ def get_usage_logs_by_index_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageLogsByIndexResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_logs_by_index, @@ -1764,9 +1765,9 @@ def get_usage_logs_by_index_with_http_info(start_hr, opts = {}) # Get hourly logs usage by retention # Get hourly usage for indexed logs by retention period. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageLogsByRetentionResponse] def get_usage_logs_by_retention(start_hr, opts = {}) data, _status_code, _headers = get_usage_logs_by_retention_with_http_info(start_hr, opts) @@ -1775,9 +1776,9 @@ def get_usage_logs_by_retention(start_hr, opts = {}) # Get hourly logs usage by retention # Get hourly usage for indexed logs by retention period. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageLogsByRetentionResponse, Integer, Hash)>] UsageLogsByRetentionResponse data, response status code and response headers def get_usage_logs_by_retention_with_http_info(start_hr, opts = {}) @@ -1820,7 +1821,7 @@ def get_usage_logs_by_retention_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageLogsByRetentionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_logs_by_retention, @@ -1841,9 +1842,9 @@ def get_usage_logs_by_retention_with_http_info(start_hr, opts = {}) # Get hourly usage for Network Flows # Get hourly usage for network flows. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageNetworkFlowsResponse] def get_usage_network_flows(start_hr, opts = {}) data, _status_code, _headers = get_usage_network_flows_with_http_info(start_hr, opts) @@ -1852,9 +1853,9 @@ def get_usage_network_flows(start_hr, opts = {}) # Get hourly usage for Network Flows # Get hourly usage for network flows. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageNetworkFlowsResponse, Integer, Hash)>] UsageNetworkFlowsResponse data, response status code and response headers def get_usage_network_flows_with_http_info(start_hr, opts = {}) @@ -1897,7 +1898,7 @@ def get_usage_network_flows_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageNetworkFlowsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_network_flows, @@ -1974,7 +1975,7 @@ def get_usage_network_hosts_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageNetworkHostsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_network_hosts, @@ -1995,9 +1996,9 @@ def get_usage_network_hosts_with_http_info(start_hr, opts = {}) # Get hourly usage for profiled hosts # Get hourly usage for profiled hosts. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageProfilingResponse] def get_usage_profiling(start_hr, opts = {}) data, _status_code, _headers = get_usage_profiling_with_http_info(start_hr, opts) @@ -2006,9 +2007,9 @@ def get_usage_profiling(start_hr, opts = {}) # Get hourly usage for profiled hosts # Get hourly usage for profiled hosts. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageProfilingResponse, Integer, Hash)>] UsageProfilingResponse data, response status code and response headers def get_usage_profiling_with_http_info(start_hr, opts = {}) @@ -2051,7 +2052,7 @@ def get_usage_profiling_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageProfilingResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_profiling, @@ -2075,7 +2076,7 @@ def get_usage_profiling_with_http_info(start_hr, opts = {}) # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. # @param [Hash] opts the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. - # @option opts [String] :type RUM type: `[browser, mobile]`. Defaults to `browser`. + # @option opts [String] :type RUM type: `[browser, mobile]`. Defaults to `browser`. # @return [UsageRumSessionsResponse] def get_usage_rum_sessions(start_hr, opts = {}) data, _status_code, _headers = get_usage_rum_sessions_with_http_info(start_hr, opts) @@ -2087,7 +2088,7 @@ def get_usage_rum_sessions(start_hr, opts = {}) # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. # @param [Hash] opts the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. - # @option opts [String] :type RUM type: `[browser, mobile]`. Defaults to `browser`. + # @option opts [String] :type RUM type: `[browser, mobile]`. Defaults to `browser`. # @return [Array<(UsageRumSessionsResponse, Integer, Hash)>] UsageRumSessionsResponse data, response status code and response headers def get_usage_rum_sessions_with_http_info(start_hr, opts = {}) @@ -2131,7 +2132,7 @@ def get_usage_rum_sessions_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageRumSessionsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_rum_sessions, @@ -2208,7 +2209,7 @@ def get_usage_rum_units_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageRumUnitsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_rum_units, @@ -2229,9 +2230,9 @@ def get_usage_rum_units_with_http_info(start_hr, opts = {}) # Get hourly usage for Sensitive Data Scanner # Get hourly usage for Sensitive Data Scanner. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageSDSResponse] def get_usage_sds(start_hr, opts = {}) data, _status_code, _headers = get_usage_sds_with_http_info(start_hr, opts) @@ -2240,9 +2241,9 @@ def get_usage_sds(start_hr, opts = {}) # Get hourly usage for Sensitive Data Scanner # Get hourly usage for Sensitive Data Scanner. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageSDSResponse, Integer, Hash)>] UsageSDSResponse data, response status code and response headers def get_usage_sds_with_http_info(start_hr, opts = {}) @@ -2285,7 +2286,7 @@ def get_usage_sds_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageSDSResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_sds, @@ -2306,9 +2307,9 @@ def get_usage_sds_with_http_info(start_hr, opts = {}) # Get hourly usage for SNMP devices # Get hourly usage for SNMP devices. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageSNMPResponse] def get_usage_snmp(start_hr, opts = {}) data, _status_code, _headers = get_usage_snmp_with_http_info(start_hr, opts) @@ -2317,9 +2318,9 @@ def get_usage_snmp(start_hr, opts = {}) # Get hourly usage for SNMP devices # Get hourly usage for SNMP devices. - # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. + # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageSNMPResponse, Integer, Hash)>] UsageSNMPResponse data, response status code and response headers def get_usage_snmp_with_http_info(start_hr, opts = {}) @@ -2362,7 +2363,7 @@ def get_usage_snmp_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageSNMPResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_snmp, @@ -2383,9 +2384,9 @@ def get_usage_snmp_with_http_info(start_hr, opts = {}) # Get usage across your multi-org account # Get usage across your multi-org account. You must have the multi-org feature enabled. - # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. + # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. + # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. # @option opts [Boolean] :include_org_details Include usage summaries for each sub-org. # @return [UsageSummaryResponse] def get_usage_summary(start_month, opts = {}) @@ -2395,9 +2396,9 @@ def get_usage_summary(start_month, opts = {}) # Get usage across your multi-org account # Get usage across your multi-org account. You must have the multi-org feature enabled. - # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. + # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. + # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. # @option opts [Boolean] :include_org_details Include usage summaries for each sub-org. # @return [Array<(UsageSummaryResponse, Integer, Hash)>] UsageSummaryResponse data, response status code and response headers def get_usage_summary_with_http_info(start_month, opts = {}) @@ -2442,7 +2443,7 @@ def get_usage_summary_with_http_info(start_month, opts = {}) return_type = opts[:debug_return_type] || 'UsageSummaryResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_summary, @@ -2519,7 +2520,7 @@ def get_usage_synthetics_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageSyntheticsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_synthetics, @@ -2596,7 +2597,7 @@ def get_usage_synthetics_api_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageSyntheticsAPIResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_synthetics_api, @@ -2673,7 +2674,7 @@ def get_usage_synthetics_browser_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageSyntheticsBrowserResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_synthetics_browser, @@ -2750,7 +2751,7 @@ def get_usage_timeseries_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageTimeseriesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_timeseries, @@ -2775,7 +2776,7 @@ def get_usage_timeseries_with_http_info(start_hr, opts = {}) # @option opts [Time] :month Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM] for usage beginning at this hour. (Either month or day should be specified, but not both) # @option opts [Time] :day Datetime in ISO-8601 format, UTC, precise to day: [YYYY-MM-DD] for usage beginning at this hour. (Either month or day should be specified, but not both) # @option opts [Array] :names Comma-separated list of metric names. - # @option opts [Integer] :limit Maximum number of results to return (between 1 and 5000) - defaults to 500 results if limit not specified. (default to 500) + # @option opts [Integer] :limit Maximum number of results to return (between 1 and 5000) - defaults to 500 results if limit not specified. # @option opts [String] :next_record_id List following results with a next_record_id provided in the previous query. # @return [UsageTopAvgMetricsResponse] def get_usage_top_avg_metrics(opts = {}) @@ -2806,14 +2807,6 @@ def get_usage_top_avg_metrics_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_top_avg_metrics ...' end - if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 5000 - fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsageMeteringAPI.get_usage_top_avg_metrics, must be smaller than or equal to 5000.' - end - - if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 - fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsageMeteringAPI.get_usage_top_avg_metrics, must be greater than or equal to 1.' - end - # resource path local_var_path = '/api/v1/usage/top_avg_metrics' @@ -2821,7 +2814,7 @@ def get_usage_top_avg_metrics_with_http_info(opts = {}) query_params = opts[:query_params] || {} query_params[:'month'] = opts[:'month'] if !opts[:'month'].nil? query_params[:'day'] = opts[:'day'] if !opts[:'day'].nil? - query_params[:'names'] = @api_client.build_collection_param(opts[:'names'], :multi) if !opts[:'names'].nil? + query_params[:'names'] = opts[:'names'] if !opts[:'names'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'next_record_id'] = opts[:'next_record_id'] if !opts[:'next_record_id'].nil? @@ -2840,7 +2833,7 @@ def get_usage_top_avg_metrics_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'UsageTopAvgMetricsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_top_avg_metrics, diff --git a/lib/datadog_api_client/v1/api/users_api.rb b/lib/datadog_api_client/v1/api/users_api.rb index e60ba2ded73..bd1518bb97f 100644 --- a/lib/datadog_api_client/v1/api/users_api.rb +++ b/lib/datadog_api_client/v1/api/users_api.rb @@ -22,8 +22,12 @@ class UsersAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create a user - # Create a user for your organization. **Note**: Users can only be created with the admin access role if application keys belong to administrators. + # Create a user for your organization. + # + # **Note**: Users can only be created with the admin access role + # if application keys belong to administrators. # @param body [User] User object that needs to be created. # @param [Hash] opts the optional parameters # @return [UserResponse] @@ -33,7 +37,10 @@ def create_user(body, opts = {}) end # Create a user - # Create a user for your organization. **Note**: Users can only be created with the admin access role if application keys belong to administrators. + # Create a user for your organization. + # + # **Note**: Users can only be created with the admin access role + # if application keys belong to administrators. # @param body [User] User object that needs to be created. # @param [Hash] opts the optional parameters # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers @@ -78,7 +85,7 @@ def create_user_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'UserResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_user, @@ -98,7 +105,10 @@ def create_user_with_http_info(body, opts = {}) end # Disable a user - # Delete a user from an organization. **Note**: This endpoint can only be used with application keys belonging to administrators. + # Delete a user from an organization. + # + # **Note**: This endpoint can only be used with application keys belonging to + # administrators. # @param user_handle [String] The handle of the user. # @param [Hash] opts the optional parameters # @return [UserDisableResponse] @@ -108,7 +118,10 @@ def disable_user(user_handle, opts = {}) end # Disable a user - # Delete a user from an organization. **Note**: This endpoint can only be used with application keys belonging to administrators. + # Delete a user from an organization. + # + # **Note**: This endpoint can only be used with application keys belonging to + # administrators. # @param user_handle [String] The handle of the user. # @param [Hash] opts the optional parameters # @return [Array<(UserDisableResponse, Integer, Hash)>] UserDisableResponse data, response status code and response headers @@ -131,7 +144,7 @@ def disable_user_with_http_info(user_handle, opts = {}) fail ArgumentError, "Missing the required parameter 'user_handle' when calling UsersAPI.disable_user" end # resource path - local_var_path = '/api/v1/user/{user_handle}'.sub('{' + 'user_handle' + '}', CGI.escape(user_handle.to_s)) + local_var_path = '/api/v1/user/{user_handle}'.sub('{user_handle}', CGI.escape(user_handle.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -181,7 +194,7 @@ def get_user(user_handle, opts = {}) end # Get user details - # Get a user's details. + # Get a user's details. # @param user_handle [String] The ID of the user. # @param [Hash] opts the optional parameters # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers @@ -204,7 +217,7 @@ def get_user_with_http_info(user_handle, opts = {}) fail ArgumentError, "Missing the required parameter 'user_handle' when calling UsersAPI.get_user" end # resource path - local_var_path = '/api/v1/user/{user_handle}'.sub('{' + 'user_handle' + '}', CGI.escape(user_handle.to_s)) + local_var_path = '/api/v1/user/{user_handle}'.sub('{user_handle}', CGI.escape(user_handle.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -291,7 +304,7 @@ def list_users_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'UserListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_users, @@ -311,7 +324,9 @@ def list_users_with_http_info(opts = {}) end # Update a user - # Update a user information. **Note**: It can only be used with application keys belonging to administrators. + # Update a user information. + # + # **Note**: It can only be used with application keys belonging to administrators. # @param user_handle [String] The ID of the user. # @param body [User] Description of the update. # @param [Hash] opts the optional parameters @@ -322,7 +337,9 @@ def update_user(user_handle, body, opts = {}) end # Update a user - # Update a user information. **Note**: It can only be used with application keys belonging to administrators. + # Update a user information. + # + # **Note**: It can only be used with application keys belonging to administrators. # @param user_handle [String] The ID of the user. # @param body [User] Description of the update. # @param [Hash] opts the optional parameters @@ -350,7 +367,7 @@ def update_user_with_http_info(user_handle, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling UsersAPI.update_user" end # resource path - local_var_path = '/api/v1/user/{user_handle}'.sub('{' + 'user_handle' + '}', CGI.escape(user_handle.to_s)) + local_var_path = '/api/v1/user/{user_handle}'.sub('{user_handle}', CGI.escape(user_handle.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/datadog_api_client/v1/api/webhooks_integration_api.rb b/lib/datadog_api_client/v1/api/webhooks_integration_api.rb index e20d3bf4b9b..ff1b5529692 100644 --- a/lib/datadog_api_client/v1/api/webhooks_integration_api.rb +++ b/lib/datadog_api_client/v1/api/webhooks_integration_api.rb @@ -22,6 +22,7 @@ class WebhooksIntegrationAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create a webhooks integration # Creates an endpoint with the name ``. # @param body [WebhooksIntegration] Create a webhooks integration request body. @@ -33,7 +34,7 @@ def create_webhooks_integration(body, opts = {}) end # Create a webhooks integration - # Creates an endpoint with the name `<WEBHOOK_NAME>`. + # Creates an endpoint with the name ``. # @param body [WebhooksIntegration] Create a webhooks integration request body. # @param [Hash] opts the optional parameters # @return [Array<(WebhooksIntegration, Integer, Hash)>] WebhooksIntegration data, response status code and response headers @@ -108,7 +109,7 @@ def create_webhooks_integration_custom_variable(body, opts = {}) end # Create a custom variable - # Creates an endpoint with the name `<CUSTOM_VARIABLE_NAME>`. + # Creates an endpoint with the name ``. # @param body [WebhooksIntegrationCustomVariable] Define a custom variable request body. # @param [Hash] opts the optional parameters # @return [Array<(WebhooksIntegrationCustomVariableResponse, Integer, Hash)>] WebhooksIntegrationCustomVariableResponse data, response status code and response headers @@ -183,7 +184,7 @@ def delete_webhooks_integration(webhook_name, opts = {}) end # Delete a webhook - # Deletes the endpoint with the name `<WEBHOOK NAME>`. + # Deletes the endpoint with the name ``. # @param webhook_name [String] The name of the webhook. # @param [Hash] opts the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers @@ -206,7 +207,7 @@ def delete_webhooks_integration_with_http_info(webhook_name, opts = {}) fail ArgumentError, "Missing the required parameter 'webhook_name' when calling WebhooksIntegrationAPI.delete_webhooks_integration" end # resource path - local_var_path = '/api/v1/integration/webhooks/configuration/webhooks/{webhook_name}'.sub('{' + 'webhook_name' + '}', CGI.escape(webhook_name.to_s)) + local_var_path = '/api/v1/integration/webhooks/configuration/webhooks/{webhook_name}'.sub('{webhook_name}', CGI.escape(webhook_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -214,7 +215,7 @@ def delete_webhooks_integration_with_http_info(webhook_name, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -256,7 +257,7 @@ def delete_webhooks_integration_custom_variable(custom_variable_name, opts = {}) end # Delete a custom variable - # Deletes the endpoint with the name `<CUSTOM_VARIABLE_NAME>`. + # Deletes the endpoint with the name ``. # @param custom_variable_name [String] The name of the custom variable. # @param [Hash] opts the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers @@ -279,7 +280,7 @@ def delete_webhooks_integration_custom_variable_with_http_info(custom_variable_n fail ArgumentError, "Missing the required parameter 'custom_variable_name' when calling WebhooksIntegrationAPI.delete_webhooks_integration_custom_variable" end # resource path - local_var_path = '/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}'.sub('{' + 'custom_variable_name' + '}', CGI.escape(custom_variable_name.to_s)) + local_var_path = '/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}'.sub('{custom_variable_name}', CGI.escape(custom_variable_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -287,7 +288,7 @@ def delete_webhooks_integration_custom_variable_with_http_info(custom_variable_n # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -329,7 +330,7 @@ def get_webhooks_integration(webhook_name, opts = {}) end # Get a webhook integration - # Gets the content of the webhook with the name `<WEBHOOK_NAME>`. + # Gets the content of the webhook with the name ``. # @param webhook_name [String] The name of the webhook. # @param [Hash] opts the optional parameters # @return [Array<(WebhooksIntegration, Integer, Hash)>] WebhooksIntegration data, response status code and response headers @@ -352,7 +353,7 @@ def get_webhooks_integration_with_http_info(webhook_name, opts = {}) fail ArgumentError, "Missing the required parameter 'webhook_name' when calling WebhooksIntegrationAPI.get_webhooks_integration" end # resource path - local_var_path = '/api/v1/integration/webhooks/configuration/webhooks/{webhook_name}'.sub('{' + 'webhook_name' + '}', CGI.escape(webhook_name.to_s)) + local_var_path = '/api/v1/integration/webhooks/configuration/webhooks/{webhook_name}'.sub('{webhook_name}', CGI.escape(webhook_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -392,7 +393,10 @@ def get_webhooks_integration_with_http_info(webhook_name, opts = {}) end # Get a custom variable - # Shows the content of the custom variable with the name ``. If the custom variable is secret, the value does not return in the response payload. + # Shows the content of the custom variable with the name ``. + # + # If the custom variable is secret, the value does not return in the + # response payload. # @param custom_variable_name [String] The name of the custom variable. # @param [Hash] opts the optional parameters # @return [WebhooksIntegrationCustomVariableResponse] @@ -402,7 +406,10 @@ def get_webhooks_integration_custom_variable(custom_variable_name, opts = {}) end # Get a custom variable - # Shows the content of the custom variable with the name `<CUSTOM_VARIABLE_NAME>`. If the custom variable is secret, the value does not return in the response payload. + # Shows the content of the custom variable with the name ``. + # + # If the custom variable is secret, the value does not return in the + # response payload. # @param custom_variable_name [String] The name of the custom variable. # @param [Hash] opts the optional parameters # @return [Array<(WebhooksIntegrationCustomVariableResponse, Integer, Hash)>] WebhooksIntegrationCustomVariableResponse data, response status code and response headers @@ -425,7 +432,7 @@ def get_webhooks_integration_custom_variable_with_http_info(custom_variable_name fail ArgumentError, "Missing the required parameter 'custom_variable_name' when calling WebhooksIntegrationAPI.get_webhooks_integration_custom_variable" end # resource path - local_var_path = '/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}'.sub('{' + 'custom_variable_name' + '}', CGI.escape(custom_variable_name.to_s)) + local_var_path = '/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}'.sub('{custom_variable_name}', CGI.escape(custom_variable_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -476,7 +483,7 @@ def update_webhooks_integration(webhook_name, body, opts = {}) end # Update a webhook - # Updates the endpoint with the name `<WEBHOOK_NAME>`. + # Updates the endpoint with the name ``. # @param webhook_name [String] The name of the webhook. # @param body [WebhooksIntegrationUpdateRequest] Update an existing Datadog-Webhooks integration. # @param [Hash] opts the optional parameters @@ -504,7 +511,7 @@ def update_webhooks_integration_with_http_info(webhook_name, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling WebhooksIntegrationAPI.update_webhooks_integration" end # resource path - local_var_path = '/api/v1/integration/webhooks/configuration/webhooks/{webhook_name}'.sub('{' + 'webhook_name' + '}', CGI.escape(webhook_name.to_s)) + local_var_path = '/api/v1/integration/webhooks/configuration/webhooks/{webhook_name}'.sub('{webhook_name}', CGI.escape(webhook_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -557,7 +564,7 @@ def update_webhooks_integration_custom_variable(custom_variable_name, body, opts end # Update a custom variable - # Updates the endpoint with the name `<CUSTOM_VARIABLE_NAME>`. + # Updates the endpoint with the name ``. # @param custom_variable_name [String] The name of the custom variable. # @param body [WebhooksIntegrationCustomVariableUpdateRequest] Update an existing custom variable request body. # @param [Hash] opts the optional parameters @@ -585,7 +592,7 @@ def update_webhooks_integration_custom_variable_with_http_info(custom_variable_n fail ArgumentError, "Missing the required parameter 'body' when calling WebhooksIntegrationAPI.update_webhooks_integration_custom_variable" end # resource path - local_var_path = '/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}'.sub('{' + 'custom_variable_name' + '}', CGI.escape(custom_variable_name.to_s)) + local_var_path = '/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}'.sub('{custom_variable_name}', CGI.escape(custom_variable_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/datadog_api_client/v1/api_client.rb b/lib/datadog_api_client/v1/api_client.rb index d587900e4e8..78f082eed77 100644 --- a/lib/datadog_api_client/v1/api_client.rb +++ b/lib/datadog_api_client/v1/api_client.rb @@ -410,4 +410,4 @@ def build_collection_param(param, collection_format) end end end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/api_error.rb b/lib/datadog_api_client/v1/api_error.rb index 22cb2f29b93..3370f668bbb 100644 --- a/lib/datadog_api_client/v1/api_error.rb +++ b/lib/datadog_api_client/v1/api_error.rb @@ -57,4 +57,4 @@ def message msg end end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/configuration.rb b/lib/datadog_api_client/v1/configuration.rb index 9e424d9ea20..934e33f0162 100644 --- a/lib/datadog_api_client/v1/configuration.rb +++ b/lib/datadog_api_client/v1/configuration.rb @@ -169,20 +169,20 @@ def initialize @compress = true @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT) @unstable_operations = { + get_daily_custom_reports: false, + get_specified_daily_custom_reports: false, + get_monthly_custom_reports: false, + get_specified_monthly_custom_reports: false, + list_slo_correction: false, create_slo_correction: false, delete_slo_correction: false, get_slo_correction: false, - list_slo_correction: false, update_slo_correction: false, get_slo_corrections: false, get_slo_history: false, - get_daily_custom_reports: false, + get_usage_attribution: false, get_hourly_usage_attribution: false, - get_monthly_custom_reports: false, get_monthly_usage_attribution: false, - get_specified_daily_custom_reports: false, - get_specified_monthly_custom_reports: false, - get_usage_attribution: false, } @server_variables[:site] = ENV['DD_SITE'] if ENV.key? 'DD_SITE' @api_key['apiKeyAuth'] = ENV['DD_API_KEY'] if ENV.key? 'DD_API_KEY' @@ -290,49 +290,49 @@ def server_settings description: "No description provided", variables: { site: { - description: "The regional site for a Datadog customer.", - default_value: "datadoghq.com", - enum_values: [ - "datadoghq.com", - "us3.datadoghq.com", - "us5.datadoghq.com", - "datadoghq.eu", - "ddog-gov.com" - ] - }, + description: "The regional site for a Datadog customer.", + default_value: "datadoghq.com", + enum_values: [ + "datadoghq.com", + "us3.datadoghq.com", + "us5.datadoghq.com", + "datadoghq.eu", + "ddog-gov.com" + ] + }, subdomain: { - description: "The subdomain where the API is deployed.", - default_value: "api", - } + description: "The subdomain where the API is deployed.", + default_value: "api", } + } }, { url: "{protocol}://{name}", description: "No description provided", variables: { name: { - description: "Full site DNS name.", - default_value: "api.datadoghq.com", - }, + description: "Full site DNS name.", + default_value: "api.datadoghq.com", + }, protocol: { - description: "The protocol for accessing the API.", - default_value: "https", - } + description: "The protocol for accessing the API.", + default_value: "https", } + } }, { url: "https://{subdomain}.{site}", description: "No description provided", variables: { site: { - description: "Any Datadog deployment.", - default_value: "datadoghq.com", - }, + description: "Any Datadog deployment.", + default_value: "datadoghq.com", + }, subdomain: { - description: "The subdomain where the API is deployed.", - default_value: "api", - } + description: "The subdomain where the API is deployed.", + default_value: "api", } + } } ] end @@ -341,10 +341,10 @@ def operation_server_settings { get_ip_ranges: [ { - url: "https://{subdomain}.{site}", - description: "No description provided", - variables: { - site: { + url: "https://{subdomain}.{site}", + description: "No description provided", + variables: { + site: { description: "The regional site for Datadog customers.", default_value: "datadoghq.com", enum_values: [ @@ -355,43 +355,43 @@ def operation_server_settings "ddog-gov.com" ] }, - subdomain: { + subdomain: { description: "The subdomain where the API is deployed.", default_value: "ip-ranges", } } }, { - url: "{protocol}://{name}", - description: "No description provided", - variables: { - name: { + url: "{protocol}://{name}", + description: "No description provided", + variables: { + name: { description: "Full site DNS name.", default_value: "ip-ranges.datadoghq.com", }, - protocol: { + protocol: { description: "The protocol for accessing the API.", default_value: "https", } } }, { - url: "https://{subdomain}.datadoghq.com", - description: "No description provided", - variables: { - subdomain: { + url: "https://{subdomain}.datadoghq.com", + description: "No description provided", + variables: { + subdomain: { description: "The subdomain where the API is deployed.", default_value: "ip-ranges", } } - } + } ], submit_log: [ { - url: "https://{subdomain}.{site}", - description: "No description provided", - variables: { - site: { + url: "https://{subdomain}.{site}", + description: "No description provided", + variables: { + site: { description: "The regional site for Datadog customers.", default_value: "datadoghq.com", enum_values: [ @@ -402,40 +402,40 @@ def operation_server_settings "ddog-gov.com" ] }, - subdomain: { + subdomain: { description: "The subdomain where the API is deployed.", default_value: "http-intake.logs", } } }, { - url: "{protocol}://{name}", - description: "No description provided", - variables: { - name: { + url: "{protocol}://{name}", + description: "No description provided", + variables: { + name: { description: "Full site DNS name.", default_value: "http-intake.logs.datadoghq.com", }, - protocol: { + protocol: { description: "The protocol for accessing the API.", default_value: "https", } } }, { - url: "https://{subdomain}.{site}", - description: "No description provided", - variables: { - site: { + url: "https://{subdomain}.{site}", + description: "No description provided", + variables: { + site: { description: "Any Datadog deployment.", default_value: "datadoghq.com", }, - subdomain: { + subdomain: { description: "The subdomain where the API is deployed.", default_value: "http-intake.logs", } } - } + } ], } end @@ -488,4 +488,4 @@ def to_hash end end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/access_role.rb b/lib/datadog_api_client/v1/models/access_role.rb index 38e063b63de..59c3e350712 100644 --- a/lib/datadog_api_client/v1/models/access_role.rb +++ b/lib/datadog_api_client/v1/models/access_role.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). class AccessRole STANDARD = "st".freeze ADMIN = "adm".freeze @@ -40,5 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 1d9b1494b92..4aed6250b23 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 @@ -19,25 +19,29 @@ module DatadogAPIClient::V1 # Alert graphs are timeseries graphs showing the current status of any monitor defined on your system. class AlertGraphWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # ID of the alert to use in the widget. attr_accessor :alert_id + # Time setting for the widget. attr_accessor :time # The title of the widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the alert graph widget. attr_accessor :type + # Whether to display the Alert Graph as a timeseries or a top list. attr_accessor :viz_type # Attribute mapping from ruby-style variable name to JSON key. @@ -82,7 +86,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AlertGraphWidgetDefinition` initialize method" @@ -128,18 +133,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @alert_id.nil? invalid_properties.push('invalid value for "alert_id", alert_id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - if @viz_type.nil? invalid_properties.push('invalid value for "viz_type", viz_type cannot be nil.') end @@ -187,7 +190,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -195,7 +198,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -301,7 +304,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] value 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) @@ -317,7 +320,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/alert_graph_widget_definition_type.rb b/lib/datadog_api_client/v1/models/alert_graph_widget_definition_type.rb index 2a16e33fad9..d92be09ebc4 100644 --- a/lib/datadog_api_client/v1/models/alert_graph_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/alert_graph_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the alert graph widget. class AlertGraphWidgetDefinitionType ALERT_GRAPH = "alert_graph".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 572c55ce3a6..76857e4bbda 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Alert values are query values showing the current value of the metric in any monitor defined on your system. class AlertValueWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,16 +29,19 @@ class AlertValueWidgetDefinition # Number of decimal to show. If not defined, will use the raw value. attr_accessor :precision + # How to align the text on the widget. attr_accessor :text_align # Title of the widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of value in the widget. attr_accessor :title_size + # Type of the alert value widget. attr_accessor :type # Unit to display with the value. @@ -88,7 +91,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AlertValueWidgetDefinition` initialize method" @@ -138,14 +142,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @alert_id.nil? invalid_properties.push('invalid value for "alert_id", alert_id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -193,7 +196,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -201,7 +204,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -307,7 +310,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] value 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) @@ -323,7 +326,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/alert_value_widget_definition_type.rb b/lib/datadog_api_client/v1/models/alert_value_widget_definition_type.rb index dbddd9b7c2a..6b6f19cb83d 100644 --- a/lib/datadog_api_client/v1/models/alert_value_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/alert_value_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the alert value widget. class AlertValueWidgetDefinitionType ALERT_VALUE = "alert_value".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 b0fe403c89a..9ae0bc3c4da 100644 --- a/lib/datadog_api_client/v1/models/api_error_response.rb +++ b/lib/datadog_api_client/v1/models/api_error_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Error response object. class APIErrorResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::APIErrorResponse` initialize method" @@ -78,8 +79,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @errors.nil? @@ -121,7 +122,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -129,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -235,7 +236,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] value 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) @@ -251,7 +252,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/api_key.rb b/lib/datadog_api_client/v1/models/api_key.rb index dc84a4fe298..8087ef9cbf6 100644 --- a/lib/datadog_api_client/v1/models/api_key.rb +++ b/lib/datadog_api_client/v1/models/api_key.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Datadog API key. class ApiKey - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApiKey` initialize method" @@ -103,17 +104,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@key.nil? && @key.to_s.length > 32 - invalid_properties.push('invalid value for "key", the character length must be smaller than or equal to 32.') - end - - if !@key.nil? && @key.to_s.length < 32 - invalid_properties.push('invalid value for "key", the character length must be great than or equal to 32.') - end invalid_properties end @@ -122,25 +116,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@key.nil? && @key.to_s.length > 32 - return false if !@key.nil? && @key.to_s.length < 32 true end - # Custom attribute writer method with validation - # @param key [Object] key Value to be assigned - def key=(key) - if !key.nil? && key.to_s.length > 32 - fail ArgumentError, 'invalid value for "key", the character length must be smaller than or equal to 32.' - end - - if !key.nil? && key.to_s.length < 32 - fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 32.' - end - - @key = key - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -168,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -176,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -282,7 +260,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] value 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) @@ -298,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 c541d546257..545a7b83d65 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # List of API and application keys available for a given organization. class ApiKeyListResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApiKeyListResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 7f1fb7d6f8f..4f41ec14e47 100644 --- a/lib/datadog_api_client/v1/models/api_key_response.rb +++ b/lib/datadog_api_client/v1/models/api_key_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # An API key with its associated metadata. class ApiKeyResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Datadog API key. attr_accessor :api_key # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApiKeyResponse` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 81309ef40af..18793bfc9b6 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 @@ -19,18 +19,20 @@ module DatadogAPIClient::V1 # Column properties. class ApmStatsQueryColumnType - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # A user-assigned alias for the column. attr_accessor :_alias + # Define a display mode for the table cell. attr_accessor :cell_display_mode # Column name. attr_accessor :name + # Widget sorting methods. attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. @@ -69,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApmStatsQueryColumnType` initialize method" @@ -101,8 +104,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -147,7 +150,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -155,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -261,7 +264,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] value 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) @@ -277,7 +280,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 64ba9e034af..70bc44141fa 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The APM stats query for table and distributions widgets. class ApmStatsQueryDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -38,6 +38,7 @@ class ApmStatsQueryDefinition # Resource name. attr_accessor :resource + # The level of detail for the request. attr_accessor :row_type # Service name. @@ -85,7 +86,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApmStatsQueryDefinition` initialize method" @@ -131,26 +133,22 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @env.nil? invalid_properties.push('invalid value for "env", env cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @primary_tag.nil? invalid_properties.push('invalid value for "primary_tag", primary_tag cannot be nil.') end - if @row_type.nil? invalid_properties.push('invalid value for "row_type", row_type cannot be nil.') end - if @service.nil? invalid_properties.push('invalid value for "service", service cannot be nil.') end @@ -200,7 +198,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -208,7 +206,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -314,7 +312,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] value 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) @@ -330,7 +328,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/apm_stats_query_row_type.rb b/lib/datadog_api_client/v1/models/apm_stats_query_row_type.rb index f6abdb55d93..1c811dd416d 100644 --- a/lib/datadog_api_client/v1/models/apm_stats_query_row_type.rb +++ b/lib/datadog_api_client/v1/models/apm_stats_query_row_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The level of detail for the request. class ApmStatsQueryRowType SERVICE = "service".freeze RESOURCE = "resource".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/application_key.rb b/lib/datadog_api_client/v1/models/application_key.rb index 9b575ac51a9..e5c5b6662bd 100644 --- a/lib/datadog_api_client/v1/models/application_key.rb +++ b/lib/datadog_api_client/v1/models/application_key.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An application key with its associated metadata. class ApplicationKey - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApplicationKey` initialize method" @@ -94,17 +95,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@hash.nil? && @hash.to_s.length > 40 - invalid_properties.push('invalid value for "hash", the character length must be smaller than or equal to 40.') - end - - if !@hash.nil? && @hash.to_s.length < 40 - invalid_properties.push('invalid value for "hash", the character length must be great than or equal to 40.') - end invalid_properties end @@ -113,25 +107,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@hash.nil? && @hash.to_s.length > 40 - return false if !@hash.nil? && @hash.to_s.length < 40 true end - # Custom attribute writer method with validation - # @param hash [Object] hash Value to be assigned - def hash=(hash) - if !hash.nil? && hash.to_s.length > 40 - fail ArgumentError, 'invalid value for "hash", the character length must be smaller than or equal to 40.' - end - - if !hash.nil? && hash.to_s.length < 40 - fail ArgumentError, 'invalid value for "hash", the character length must be great than or equal to 40.' - end - - @hash = hash - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -158,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -166,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -272,7 +250,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] value 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) @@ -288,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 9d4f6d4cc12..e080a7faa39 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An application key response. class ApplicationKeyListResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApplicationKeyListResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 f93f16ced44..4b59ebd80cc 100644 --- a/lib/datadog_api_client/v1/models/application_key_response.rb +++ b/lib/datadog_api_client/v1/models/application_key_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # An application key response. class ApplicationKeyResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # An application key with its associated metadata. attr_accessor :application_key # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApplicationKeyResponse` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ec11437568d..7bd5d696daa 100644 --- a/lib/datadog_api_client/v1/models/authentication_validation_response.rb +++ b/lib/datadog_api_client/v1/models/authentication_validation_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Represent validation endpoint responses. class AuthenticationValidationResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AuthenticationValidationResponse` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/aws_account.rb b/lib/datadog_api_client/v1/models/aws_account.rb index 9237e48596b..379857401bf 100644 --- a/lib/datadog_api_client/v1/models/aws_account.rb +++ b/lib/datadog_api_client/v1/models/aws_account.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Returns the AWS account associated with this integration. class AWSAccount - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,7 +29,9 @@ class AWSAccount # Your AWS Account ID without dashes. attr_accessor :account_id - # An object, (in the form `{\"namespace1\":true/false, \"namespace2\":true/false}`), that enables or disables metric collection for specific AWS namespaces for this AWS account only. + # An object, (in the form `{"namespace1":true/false, "namespace2":true/false}`), + # that enables or disables metric collection for specific AWS namespaces for this + # AWS account only. attr_accessor :account_specific_namespace_rules # Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general `resource_collection`. @@ -38,10 +40,16 @@ class AWSAccount # An array of AWS regions to exclude from metrics collection. attr_accessor :excluded_regions - # The array of EC2 tags (in the form `key:value`) defines a filter that Datadog uses when collecting metrics from EC2. Wildcards, such as `?` (for single characters) and `*` (for multiple characters) can also be used. Only hosts that match one of the defined tags will be imported into Datadog. The rest will be ignored. Host matching a given tag can also be excluded by adding `!` before the tag. For example, `env:production,instance-type:c1.*,!region:us-east-1` + # The array of EC2 tags (in the form `key:value`) defines a filter that Datadog uses when collecting metrics from EC2. + # Wildcards, such as `?` (for single characters) and `*` (for multiple characters) can also be used. + # Only hosts that match one of the defined tags + # will be imported into Datadog. The rest will be ignored. + # Host matching a given tag can also be excluded by adding `!` before the tag. + # For example, `env:production,instance-type:c1.*,!region:us-east-1` attr_accessor :filter_tags - # Array of tags (in the form `key:value`) to add to all hosts and metrics reporting through this integration. + # Array of tags (in the form `key:value`) to add to all hosts + # and metrics reporting through this integration. attr_accessor :host_tags # Whether Datadog collects metrics for this AWS account. @@ -106,7 +114,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSAccount` initialize method" @@ -129,9 +138,7 @@ def initialize(attributes = {}) end if attributes.key?(:'account_specific_namespace_rules') - if (value = attributes[:'account_specific_namespace_rules']).is_a?(Hash) - self.account_specific_namespace_rules = value - end + self.account_specific_namespace_rules = attributes[:'account_specific_namespace_rules'] end if attributes.key?(:'cspm_resource_collection_enabled') @@ -180,10 +187,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -228,7 +236,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -236,7 +244,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -342,7 +350,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] value 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) @@ -358,7 +366,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 310a7e71ac2..681683bf0bc 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # AWS account ID and Lambda ARN. class AWSAccountAndLambdaRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSAccountAndLambdaRequest` initialize method" @@ -85,14 +86,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @account_id.nil? invalid_properties.push('invalid value for "account_id", account_id cannot be nil.') end - if @lambda_arn.nil? invalid_properties.push('invalid value for "lambda_arn", lambda_arn cannot be nil.') end @@ -134,7 +134,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +248,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] value 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) @@ -264,7 +264,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 d570131a31f..c6f18967e66 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The Response returned by the AWS Create Account call. class AWSAccountCreateResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSAccountCreateResponse` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 8ccfe7a05bd..c37e830dff2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # List of AWS accounts to delete. class AWSAccountDeleteRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSAccountDeleteRequest` initialize method" @@ -94,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 8f10a8e7e10..e8d6091bf42 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # List of enabled AWS accounts. class AWSAccountListResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSAccountListResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 83d51b33e03..4cffd80ff7a 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Description of errors. class AWSLogsAsyncError - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSLogsAsyncError` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 a9cabf86093..da7cb044d98 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A list of all Datadog-AWS logs integrations available in your Datadog organization. class AWSLogsAsyncResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSLogsAsyncResponse` initialize method" @@ -87,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -126,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -134,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -240,7 +242,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] value 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) @@ -256,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 e3b165b08b8..9561cc95422 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_lambda.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_lambda.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Description of the Lambdas. class AWSLogsLambda - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSLogsLambda` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ce54ad20031..012c29521e1 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A list of all Datadog-AWS logs integrations available in your Datadog organization. class AWSLogsListResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSLogsListResponse` initialize method" @@ -98,10 +99,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -138,7 +140,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -146,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -252,7 +254,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] value 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) @@ -268,7 +270,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 7a8a6d5fc17..51a55131fb1 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The list of current AWS services for which Datadog offers automatic log collection. class AWSLogsListServicesResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSLogsListServicesResponse` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4b245bc9b91..b19e3414d1f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A list of current AWS services for which Datadog offers automatic log collection. class AWSLogsServicesRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSLogsServicesRequest` initialize method" @@ -87,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @account_id.nil? invalid_properties.push('invalid value for "account_id", account_id cannot be nil.') end - if @services.nil? invalid_properties.push('invalid value for "services", services cannot be nil.') end @@ -136,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -250,7 +250,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] value 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) @@ -266,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/aws_namespace.rb b/lib/datadog_api_client/v1/models/aws_namespace.rb index 55fb16d85db..3228779916c 100644 --- a/lib/datadog_api_client/v1/models/aws_namespace.rb +++ b/lib/datadog_api_client/v1/models/aws_namespace.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The namespace associated with the tag filter entry. class AWSNamespace ELB = "elb".freeze APPLICATION_ELB = "application_elb".freeze @@ -43,5 +44,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 7f7e4960f5d..3479e90a229 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # A tag filter. class AWSTagFilter - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The namespace associated with the tag filter entry. attr_accessor :namespace # The tag filter string. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSTagFilter` initialize method" @@ -84,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -123,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -131,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -237,7 +240,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] value 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) @@ -253,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 0e0f2047117..0576f6db39e 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # The objects used to set an AWS tag filter. class AWSTagFilterCreateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Your AWS Account ID without dashes. attr_accessor :account_id + # The namespace associated with the tag filter entry. attr_accessor :namespace # The tag filter string. @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSTagFilterCreateRequest` initialize method" @@ -93,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -133,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -141,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -247,7 +250,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] value 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) @@ -263,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 2dbc816cf64..4f51908cb8c 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # The objects used to delete an AWS tag filter entry. class AWSTagFilterDeleteRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # The unique identifier of your AWS account. attr_accessor :account_id + # The namespace associated with the tag filter entry. attr_accessor :namespace # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSTagFilterDeleteRequest` initialize method" @@ -84,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -123,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -131,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -237,7 +240,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] value 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) @@ -253,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 e67add74cad..5d5c34b6ec9 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An array of tag filter rules by `namespace` and tag filter string. class AWSTagFilterListResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSTagFilterListResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/azure_account.rb b/lib/datadog_api_client/v1/models/azure_account.rb index 18c398cf2a7..b00e8d3ef32 100644 --- a/lib/datadog_api_client/v1/models/azure_account.rb +++ b/lib/datadog_api_client/v1/models/azure_account.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Datadog-Azure integrations configured for your organization. class AzureAccount - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -35,7 +35,8 @@ class AzureAccount # Errors in your configuration. attr_accessor :errors - # Limit the Azure instances that are pulled into Datadog by using tags. Only hosts that match one of the defined tags are imported into Datadog. + # Limit the Azure instances that are pulled into Datadog by using tags. + # Only hosts that match one of the defined tags are imported into Datadog. attr_accessor :host_filters # Your New Azure web application ID. @@ -91,7 +92,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AzureAccount` initialize method" @@ -141,10 +143,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -186,7 +189,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -194,7 +197,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -300,7 +303,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] value 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) @@ -316,7 +319,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 7371cacbe1b..7a7cbf38af1 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 @@ -19,11 +19,13 @@ module DatadogAPIClient::V1 # Cancel downtimes according to scope. class CancelDowntimesByScopeRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # The scope(s) to which the downtime applies. For example, `host:app2`. Provide multiple scopes as a comma-separated list like `env:dev,env:prod`. The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`). + # The scope(s) to which the downtime applies. For example, `host:app2`. + # Provide multiple scopes as a comma-separated list like `env:dev,env:prod`. + # The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`). attr_accessor :scope # Attribute mapping from ruby-style variable name to JSON key. @@ -56,7 +58,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CancelDowntimesByScopeRequest` initialize method" @@ -76,8 +79,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @scope.nil? @@ -119,7 +122,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -127,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -233,7 +236,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] value 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) @@ -249,7 +252,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 e82f28a1f12..54544120f62 100644 --- a/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb +++ b/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing array of IDs of canceled downtimes. class CanceledDowntimesIds - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CanceledDowntimesIds` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 a5d56576a9d..88183f4427f 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition.rb @@ -19,26 +19,32 @@ module DatadogAPIClient::V1 # The Change graph shows you the change in a value over the time period chosen. class ChangeWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # List of custom links. attr_accessor :custom_links - # Array of one request object to display in the widget. See the dedicated [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) to learn how to build the `REQUEST_SCHEMA`. + # Array of one request object to display in the widget. + # + # See the dedicated [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) + # to learn how to build the `REQUEST_SCHEMA`. attr_accessor :requests + # Time setting for the widget. attr_accessor :time # Title of the widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the change widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -83,7 +89,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ChangeWidgetDefinition` initialize method" @@ -133,22 +140,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - - if @requests.length > 1 - invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') - end - - if @requests.length < 1 - invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') - end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -161,30 +159,10 @@ def list_invalid_properties # @!visibility private def valid? return false if @requests.nil? - return false if @requests.length > 1 - return false if @requests.length < 1 return false if @type.nil? true end - # Custom attribute writer method with validation - # @param requests [Object] requests Value to be assigned - def requests=(requests) - if requests.nil? - fail ArgumentError, 'requests cannot be nil' - end - - if requests.length > 1 - fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' - end - - if requests.length < 1 - fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' - end - - @requests = requests - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -215,7 +193,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -223,7 +201,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -329,7 +307,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] value 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) @@ -345,7 +323,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/change_widget_definition_type.rb b/lib/datadog_api_client/v1/models/change_widget_definition_type.rb index fab2269b703..6f8a4211abe 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the change widget. class ChangeWidgetDefinitionType CHANGE = "change".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 2eddc8207b2..7f83a6e015f 100644 --- a/lib/datadog_api_client/v1/models/change_widget_request.rb +++ b/lib/datadog_api_client/v1/models/change_widget_request.rb @@ -19,16 +19,20 @@ module DatadogAPIClient::V1 # Updated change widget. class ChangeWidgetRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The log query. attr_accessor :apm_query + # Show the absolute or the relative change. attr_accessor :change_type + # Timeframe used for the change comparison. attr_accessor :compare_to + # The log query. attr_accessor :event_query # List of formulas that operate on queries. **This feature is currently in beta.** @@ -37,16 +41,22 @@ class ChangeWidgetRequest # Whether to show increase as good. attr_accessor :increase_good + # The log query. attr_accessor :log_query + # The log query. attr_accessor :network_query + # What to order by. attr_accessor :order_by + # Widget sorting methods. attr_accessor :order_dir + # The process query to use in the widget. attr_accessor :process_query + # The log query. attr_accessor :profile_metrics_query # Query definition. @@ -55,10 +65,13 @@ class ChangeWidgetRequest # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries + # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format + # The log query. attr_accessor :rum_query + # The log query. attr_accessor :security_query # Whether to show the present value. @@ -128,7 +141,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ChangeWidgetRequest` initialize method" @@ -220,10 +234,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -275,7 +290,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -283,7 +298,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -389,7 +404,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] value 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) @@ -405,7 +420,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4680a88a565..24462b6ed03 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Response of monitor IDs that can or can't be safely deleted. class CheckCanDeleteMonitorResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Wrapper object with the list of monitor IDs. attr_accessor :data # A mapping of Monitor ID to strings denoting where it's used. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CheckCanDeleteMonitorResponse` initialize method" @@ -79,15 +81,13 @@ def initialize(attributes = {}) end if attributes.key?(:'errors') - if (value = attributes[:'errors']).is_a?(Hash) - self.errors = value - end + self.errors = attributes[:'errors'] end end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -130,7 +130,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -138,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -244,7 +244,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] value 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) @@ -260,7 +260,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 76676c42026..975ef1d9653 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Wrapper object with the list of monitor IDs. class CheckCanDeleteMonitorResponseData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CheckCanDeleteMonitorResponseData` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 7e14d62c02a..ca30431d08e 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # A service level objective response containing the requested object. class CheckCanDeleteSLOResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # An array of service level objective objects. attr_accessor :data # A mapping of SLO id to it's current usages. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CheckCanDeleteSLOResponse` initialize method" @@ -79,17 +81,16 @@ def initialize(attributes = {}) end if attributes.key?(:'errors') - if (value = attributes[:'errors']).is_a?(Hash) - self.errors = value - end + self.errors = attributes[:'errors'] end end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +240,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] value 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) @@ -255,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 f6cba347584..0527dbdfccf 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An array of service level objective objects. class CheckCanDeleteSLOResponseData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CheckCanDeleteSLOResponseData` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 62a1721d6ad..b0e91146a73 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Check status shows the current status or number of results for any check performed. class CheckStatusWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -32,21 +32,25 @@ class CheckStatusWidgetDefinition # List of tag prefixes to group by in the case of a cluster check. attr_accessor :group_by + # The kind of grouping to use. attr_accessor :grouping # List of tags used to filter the groups reporting a cluster check. attr_accessor :tags + # Time setting for the widget. attr_accessor :time # Title of the widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the check status widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -97,7 +101,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CheckStatusWidgetDefinition` initialize method" @@ -159,18 +164,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @check.nil? invalid_properties.push('invalid value for "check", check cannot be nil.') end - if @grouping.nil? invalid_properties.push('invalid value for "grouping", grouping cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -221,7 +224,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -229,7 +232,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -335,7 +338,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] value 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) @@ -351,7 +354,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/check_status_widget_definition_type.rb b/lib/datadog_api_client/v1/models/check_status_widget_definition_type.rb index df8cc1e536f..8fd6aab9cde 100644 --- a/lib/datadog_api_client/v1/models/check_status_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/check_status_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the check status widget. class CheckStatusWidgetDefinitionType CHECK_STATUS = "check_status".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/content_encoding.rb b/lib/datadog_api_client/v1/models/content_encoding.rb index c0f4c84d856..c819f41fee4 100644 --- a/lib/datadog_api_client/v1/models/content_encoding.rb +++ b/lib/datadog_api_client/v1/models/content_encoding.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # HTTP header used to compress the media-type. class ContentEncoding GZIP = "gzip".freeze DEFLATE = "deflate".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/creator.rb b/lib/datadog_api_client/v1/models/creator.rb index 0a739738a94..c0cc4310bf1 100644 --- a/lib/datadog_api_client/v1/models/creator.rb +++ b/lib/datadog_api_client/v1/models/creator.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the creator of the shared element. class Creator - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -67,7 +67,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Creator` initialize method" @@ -95,10 +96,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -135,7 +137,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -143,7 +145,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -249,7 +251,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] value 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) @@ -265,7 +267,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/dashboard.rb b/lib/datadog_api_client/v1/models/dashboard.rb index b8def9a7c10..63eb6949e0a 100644 --- a/lib/datadog_api_client/v1/models/dashboard.rb +++ b/lib/datadog_api_client/v1/models/dashboard.rb @@ -17,9 +17,10 @@ require 'time' module DatadogAPIClient::V1 - # A dashboard is Datadog’s tool for visually tracking, analyzing, and displaying key performance metrics, which enable you to monitor the health of your infrastructure. + # A dashboard is Datadog’s tool for visually tracking, analyzing, and displaying + # key performance metrics, which enable you to monitor the health of your infrastructure. class Dashboard - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -41,6 +42,7 @@ class Dashboard # Whether this dashboard is read-only. If True, only the author and admins can make changes to it. Prefer using `restricted_roles` to manage write authorization. attr_accessor :is_read_only + # Layout type of the dashboard. attr_accessor :layout_type # Modification date of the dashboard. @@ -49,6 +51,9 @@ class Dashboard # List of handles of users to notify when changes are made to this dashboard. attr_accessor :notify_list + # Reflow type for a **new dashboard layout** dashboard. Set this only when layout type is 'ordered'. + # If set to 'fixed', the dashboard expects all widgets to have a layout, and if it's set to 'auto', + # widgets should not have layouts. attr_accessor :reflow_type # A list of role identifiers. Only the author and users associated with at least one of these roles can edit this dashboard. @@ -129,12 +134,13 @@ def self.openapi_nullable :'description', :'notify_list', :'template_variable_presets', - :'template_variables', + :'template_variables' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Dashboard` initialize method" @@ -226,18 +232,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @layout_type.nil? invalid_properties.push('invalid value for "layout_type", layout_type cannot be nil.') end - if @title.nil? invalid_properties.push('invalid value for "title", title cannot be nil.') end - if @widgets.nil? invalid_properties.push('invalid value for "widgets", widgets cannot be nil.') end @@ -294,7 +298,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -302,7 +306,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -408,7 +412,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] value 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) @@ -424,7 +428,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 322dfcee885..32b63f91906 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # Dashboard bulk action request data. class DashboardBulkActionData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Dashboard resource ID. attr_accessor :id + # Dashboard resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardBulkActionData` initialize method" @@ -86,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -135,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -143,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -249,7 +250,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] value 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) @@ -265,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 8a840fba2ae..f66cd1d56ac 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Dashboard bulk delete request body. class DashboardBulkDeleteRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardBulkDeleteRequest` initialize method" @@ -78,8 +79,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -121,7 +122,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -129,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -235,7 +236,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] value 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) @@ -251,7 +252,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 76e42186775..4d2dd16621a 100644 --- a/lib/datadog_api_client/v1/models/dashboard_delete_response.rb +++ b/lib/datadog_api_client/v1/models/dashboard_delete_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response from the delete dashboard call. class DashboardDeleteResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardDeleteResponse` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/dashboard_layout_type.rb b/lib/datadog_api_client/v1/models/dashboard_layout_type.rb index 8b277ea2b5f..eb0d1d8ca9c 100644 --- a/lib/datadog_api_client/v1/models/dashboard_layout_type.rb +++ b/lib/datadog_api_client/v1/models/dashboard_layout_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Layout type of the dashboard. class DashboardLayoutType ORDERED = "ordered".freeze FREE = "free".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/dashboard_list.rb b/lib/datadog_api_client/v1/models/dashboard_list.rb index 0d8f76f99d1..d011515aa2b 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Your Datadog Dashboards. class DashboardList - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object describing the creator of the shared element. attr_accessor :author # Date of creation of the dashboard list. @@ -90,7 +91,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardList` initialize method" @@ -138,8 +140,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -188,7 +190,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -196,7 +198,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -302,7 +304,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] value 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) @@ -318,7 +320,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 5aa8f26e827..d98a84ea7f1 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Deleted dashboard details. class DashboardListDeleteResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardListDeleteResponse` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 543a5eaa864..e0fe6ca2ff4 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Information on your dashboard lists. class DashboardListListResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardListListResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/dashboard_reflow_type.rb b/lib/datadog_api_client/v1/models/dashboard_reflow_type.rb index 853b4dd8f8d..d026cb6e012 100644 --- a/lib/datadog_api_client/v1/models/dashboard_reflow_type.rb +++ b/lib/datadog_api_client/v1/models/dashboard_reflow_type.rb @@ -17,6 +17,9 @@ require 'time' module DatadogAPIClient::V1 + # Reflow type for a **new dashboard layout** dashboard. Set this only when layout type is 'ordered'. + # If set to 'fixed', the dashboard expects all widgets to have a layout, and if it's set to 'auto', + # widgets should not have layouts. class DashboardReflowType AUTO = "auto".freeze FIXED = "fixed".freeze @@ -38,5 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/dashboard_resource_type.rb b/lib/datadog_api_client/v1/models/dashboard_resource_type.rb index 3e5d88d6764..30ef7659bc5 100644 --- a/lib/datadog_api_client/v1/models/dashboard_resource_type.rb +++ b/lib/datadog_api_client/v1/models/dashboard_resource_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Dashboard resource type. class DashboardResourceType DASHBOARD = "dashboard".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 fbf196101da..4b92a96081b 100644 --- a/lib/datadog_api_client/v1/models/dashboard_restore_request.rb +++ b/lib/datadog_api_client/v1/models/dashboard_restore_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Dashboard restore request body. class DashboardRestoreRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardRestoreRequest` initialize method" @@ -78,8 +79,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -121,7 +122,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -129,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -235,7 +236,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] value 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) @@ -251,7 +252,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/dashboard_summary.rb b/lib/datadog_api_client/v1/models/dashboard_summary.rb index e75236af8a0..1c6f08dbe68 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Dashboard summary response. class DashboardSummary - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardSummary` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 0164addb59b..9568b94bc5f 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Dashboard definition. class DashboardSummaryDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -38,6 +38,7 @@ class DashboardSummaryDefinition # Whether this dashboard is read-only. If True, only the author and admins can make changes to it. attr_accessor :is_read_only + # Layout type of the dashboard. attr_accessor :layout_type # Modification date of the dashboard. @@ -91,12 +92,13 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'description', + :'description' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardSummaryDefinition` initialize method" @@ -148,10 +150,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -194,7 +197,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -202,7 +205,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -308,7 +311,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] value 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) @@ -324,7 +327,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ba477479cd5..a29cf3a47e3 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Template variable. class DashboardTemplateVariable - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -74,7 +74,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardTemplateVariable` initialize method" @@ -108,8 +109,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -154,7 +155,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -162,7 +163,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -268,7 +269,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] value 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) @@ -284,7 +285,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 389440e782c..d4c4949c60b 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Template variables saved views. class DashboardTemplateVariablePreset - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardTemplateVariablePreset` initialize method" @@ -87,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -126,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -134,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -240,7 +242,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] value 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) @@ -256,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 f0b66bbbc3b..dfb054001d4 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Template variables saved views. class DashboardTemplateVariablePresetValue - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardTemplateVariablePresetValue` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/deleted_monitor.rb b/lib/datadog_api_client/v1/models/deleted_monitor.rb index 96309f0a1aa..6b9c1da8f67 100644 --- a/lib/datadog_api_client/v1/models/deleted_monitor.rb +++ b/lib/datadog_api_client/v1/models/deleted_monitor.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response from the delete monitor call. class DeletedMonitor - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DeletedMonitor` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 11040988d48..1fae4fec22e 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb @@ -17,9 +17,11 @@ require 'time' module DatadogAPIClient::V1 - # The Distribution visualization is another way of showing metrics aggregated across one or several tags, such as hosts. Unlike the heat map, a distribution graph’s x-axis is quantity rather than time. + # The Distribution visualization is another way of showing metrics + # aggregated across one or several tags, such as hosts. + # Unlike the heat map, a distribution graph’s x-axis is quantity rather than time. class DistributionWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,26 +31,34 @@ class DistributionWidgetDefinition # List of markers. attr_accessor :markers - # Array of one request object to display in the widget. See the dedicated [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) to learn how to build the `REQUEST_SCHEMA`. + # Array of one request object to display in the widget. + # + # See the dedicated [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) + # to learn how to build the `REQUEST_SCHEMA`. attr_accessor :requests # (Deprecated) The widget legend was replaced by a tooltip and sidebar. attr_accessor :show_legend + # Time setting for the widget. attr_accessor :time # Title of the widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the distribution widget. attr_accessor :type + # X Axis controls for the distribution widget. attr_accessor :xaxis + # Y Axis controls for the distribution widget. attr_accessor :yaxis # Attribute mapping from ruby-style variable name to JSON key. @@ -101,7 +111,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DistributionWidgetDefinition` initialize method" @@ -167,22 +178,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - - if @requests.length > 1 - invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') - end - - if @requests.length < 1 - invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') - end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -195,30 +197,10 @@ def list_invalid_properties # @!visibility private def valid? return false if @requests.nil? - return false if @requests.length > 1 - return false if @requests.length < 1 return false if @type.nil? true end - # Custom attribute writer method with validation - # @param requests [Object] requests Value to be assigned - def requests=(requests) - if requests.nil? - fail ArgumentError, 'requests cannot be nil' - end - - if requests.length > 1 - fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' - end - - if requests.length < 1 - fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' - end - - @requests = requests - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -253,7 +235,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -261,7 +243,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -367,7 +349,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] value 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) @@ -383,7 +365,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/distribution_widget_definition_type.rb b/lib/datadog_api_client/v1/models/distribution_widget_definition_type.rb index 6a4fe3006be..b03634e8a28 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the distribution widget. class DistributionWidgetDefinitionType DISTRIBUTION = "distribution".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 89fc8f44631..352e42bac41 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_request.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_request.rb @@ -19,31 +19,41 @@ module DatadogAPIClient::V1 # Updated distribution widget. class DistributionWidgetRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The log query. attr_accessor :apm_query + # The APM stats query for table and distributions widgets. attr_accessor :apm_stats_query + # The log query. attr_accessor :event_query + # The log query. attr_accessor :log_query + # The log query. attr_accessor :network_query + # The process query to use in the widget. attr_accessor :process_query + # The log query. attr_accessor :profile_metrics_query # Widget query. attr_accessor :q + # The log query. attr_accessor :rum_query + # The log query. attr_accessor :security_query + # Widget style definition. attr_accessor :style # Attribute mapping from ruby-style variable name to JSON key. @@ -96,7 +106,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DistributionWidgetRequest` initialize method" @@ -156,10 +167,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -204,7 +216,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -212,7 +224,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -318,7 +330,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] value 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) @@ -334,7 +346,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4195c626ab4..807c75e7151 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # X Axis controls for the distribution widget. class DistributionWidgetXAxis - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DistributionWidgetXAxis` initialize method" @@ -109,10 +110,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -150,7 +152,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -158,7 +160,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -264,7 +266,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] value 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) @@ -280,7 +282,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 77657f54c23..edb1fe3a2b6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Y Axis controls for the distribution widget. class DistributionWidgetYAxis - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -76,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DistributionWidgetYAxis` initialize method" @@ -118,10 +119,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -160,7 +162,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -168,7 +170,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -274,7 +276,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] value 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) @@ -290,7 +292,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/downtime.rb b/lib/datadog_api_client/v1/models/downtime.rb index 021a4fd616e..caf7c20c36a 100644 --- a/lib/datadog_api_client/v1/models/downtime.rb +++ b/lib/datadog_api_client/v1/models/downtime.rb @@ -17,15 +17,20 @@ require 'time' module DatadogAPIClient::V1 - # Downtiming gives you greater control over monitor notifications by allowing you to globally exclude scopes from alerting. Downtime settings, which can be scheduled with start and end times, prevent all alerting related to specified Datadog tags. + # Downtiming gives you greater control over monitor notifications by + # allowing you to globally exclude scopes from alerting. + # Downtime settings, which can be scheduled with start and end times, + # prevent all alerting related to specified Datadog tags. class Downtime - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # If a scheduled downtime currently exists. attr_accessor :active + # The downtime object definition of the active child for the original parent recurring downtime. This + # field will only exist on recurring downtimes. attr_accessor :active_child # If a scheduled downtime is canceled. @@ -37,33 +42,45 @@ class Downtime # If a downtime has been disabled. attr_accessor :disabled - # `0` for a downtime applied on `*` or all, `1` when the downtime is only scoped to hosts, or `2` when the downtime is scoped to anything but hosts. + # `0` for a downtime applied on `*` or all, + # `1` when the downtime is only scoped to hosts, + # or `2` when the downtime is scoped to anything but hosts. attr_accessor :downtime_type - # POSIX timestamp to end the downtime. If not provided, the downtime is in effect indefinitely until you cancel it. + # POSIX timestamp to end the downtime. If not provided, + # the downtime is in effect indefinitely until you cancel it. attr_accessor :_end # The downtime ID. attr_accessor :id - # A message to include with notifications for this downtime. Email notifications can be sent to specific users by using the same `@username` notation as events. + # A message to include with notifications for this downtime. + # Email notifications can be sent to specific users by using the same `@username` notation as events. attr_accessor :message - # A single monitor to which the downtime applies. If not provided, the downtime applies to all monitors. + # A single monitor to which the downtime applies. + # If not provided, the downtime applies to all monitors. attr_accessor :monitor_id - # A comma-separated list of monitor tags. For example, tags that are applied directly to monitors, not tags that are used in monitor queries (which are filtered by the scope parameter), to which the downtime applies. The resulting downtime applies to monitors that match ALL provided monitor tags. For example, `service:postgres` **AND** `team:frontend`. + # A comma-separated list of monitor tags. For example, tags that are applied directly to monitors, + # not tags that are used in monitor queries (which are filtered by the scope parameter), to which the downtime applies. + # The resulting downtime applies to monitors that match ALL provided monitor tags. + # For example, `service:postgres` **AND** `team:frontend`. attr_accessor :monitor_tags # ID of the parent Downtime. attr_accessor :parent_id + # An object defining the recurrence of the downtime. attr_accessor :recurrence - # The scope(s) to which the downtime applies. For example, `host:app2`. Provide multiple scopes as a comma-separated list like `env:dev,env:prod`. The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`). + # The scope(s) to which the downtime applies. For example, `host:app2`. + # Provide multiple scopes as a comma-separated list like `env:dev,env:prod`. + # The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`). attr_accessor :scope - # POSIX timestamp to start the downtime. If not provided, the downtime starts the moment it is created. + # POSIX timestamp to start the downtime. + # If not provided, the downtime starts the moment it is created. attr_accessor :start # The timezone in which to display the downtime's start and end times in Datadog applications. @@ -141,7 +158,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Downtime` initialize method" @@ -229,21 +247,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@creator_id.nil? && @creator_id > 2147483647 - invalid_properties.push('invalid value for "creator_id", must be smaller than or equal to 2147483647.') - end - - if !@downtime_type.nil? && @downtime_type > 2147483647 - invalid_properties.push('invalid value for "downtime_type", must be smaller than or equal to 2147483647.') - end - - if !@updater_id.nil? && @updater_id > 2147483647 - invalid_properties.push('invalid value for "updater_id", must be smaller than or equal to 2147483647.') - end invalid_properties end @@ -252,42 +259,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@creator_id.nil? && @creator_id > 2147483647 - return false if !@downtime_type.nil? && @downtime_type > 2147483647 - return false if !@updater_id.nil? && @updater_id > 2147483647 true end - # Custom attribute writer method with validation - # @param creator_id [Object] creator_id Value to be assigned - def creator_id=(creator_id) - if !creator_id.nil? && creator_id > 2147483647 - fail ArgumentError, 'invalid value for "creator_id", must be smaller than or equal to 2147483647.' - end - - @creator_id = creator_id - end - - # Custom attribute writer method with validation - # @param downtime_type [Object] downtime_type Value to be assigned - def downtime_type=(downtime_type) - if !downtime_type.nil? && downtime_type > 2147483647 - fail ArgumentError, 'invalid value for "downtime_type", must be smaller than or equal to 2147483647.' - end - - @downtime_type = downtime_type - end - - # Custom attribute writer method with validation - # @param updater_id [Object] updater_id Value to be assigned - def updater_id=(updater_id) - if !updater_id.nil? && updater_id > 2147483647 - fail ArgumentError, 'invalid value for "updater_id", must be smaller than or equal to 2147483647.' - end - - @updater_id = updater_id - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -328,7 +302,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -336,7 +310,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -442,7 +416,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] value 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) @@ -458,7 +432,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/downtime_child.rb b/lib/datadog_api_client/v1/models/downtime_child.rb index 5acb0c2c47a..5c856b9a6fc 100644 --- a/lib/datadog_api_client/v1/models/downtime_child.rb +++ b/lib/datadog_api_client/v1/models/downtime_child.rb @@ -17,9 +17,10 @@ require 'time' module DatadogAPIClient::V1 - # The downtime object definition of the active child for the original parent recurring downtime. This field will only exist on recurring downtimes. + # The downtime object definition of the active child for the original parent recurring downtime. This + # field will only exist on recurring downtimes. class DowntimeChild - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -35,33 +36,45 @@ class DowntimeChild # If a downtime has been disabled. attr_accessor :disabled - # `0` for a downtime applied on `*` or all, `1` when the downtime is only scoped to hosts, or `2` when the downtime is scoped to anything but hosts. + # `0` for a downtime applied on `*` or all, + # `1` when the downtime is only scoped to hosts, + # or `2` when the downtime is scoped to anything but hosts. attr_accessor :downtime_type - # POSIX timestamp to end the downtime. If not provided, the downtime is in effect indefinitely until you cancel it. + # POSIX timestamp to end the downtime. If not provided, + # the downtime is in effect indefinitely until you cancel it. attr_accessor :_end # The downtime ID. attr_accessor :id - # A message to include with notifications for this downtime. Email notifications can be sent to specific users by using the same `@username` notation as events. + # A message to include with notifications for this downtime. + # Email notifications can be sent to specific users by using the same `@username` notation as events. attr_accessor :message - # A single monitor to which the downtime applies. If not provided, the downtime applies to all monitors. + # A single monitor to which the downtime applies. + # If not provided, the downtime applies to all monitors. attr_accessor :monitor_id - # A comma-separated list of monitor tags. For example, tags that are applied directly to monitors, not tags that are used in monitor queries (which are filtered by the scope parameter), to which the downtime applies. The resulting downtime applies to monitors that match ALL provided monitor tags. For example, `service:postgres` **AND** `team:frontend`. + # A comma-separated list of monitor tags. For example, tags that are applied directly to monitors, + # not tags that are used in monitor queries (which are filtered by the scope parameter), to which the downtime applies. + # The resulting downtime applies to monitors that match ALL provided monitor tags. + # For example, `service:postgres` **AND** `team:frontend`. attr_accessor :monitor_tags # ID of the parent Downtime. attr_accessor :parent_id + # An object defining the recurrence of the downtime. attr_accessor :recurrence - # The scope(s) to which the downtime applies. For example, `host:app2`. Provide multiple scopes as a comma-separated list like `env:dev,env:prod`. The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`). + # The scope(s) to which the downtime applies. For example, `host:app2`. + # Provide multiple scopes as a comma-separated list like `env:dev,env:prod`. + # The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`). attr_accessor :scope - # POSIX timestamp to start the downtime. If not provided, the downtime starts the moment it is created. + # POSIX timestamp to start the downtime. + # If not provided, the downtime starts the moment it is created. attr_accessor :start # The timezone in which to display the downtime's start and end times in Datadog applications. @@ -136,7 +149,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DowntimeChild` initialize method" @@ -220,21 +234,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@creator_id.nil? && @creator_id > 2147483647 - invalid_properties.push('invalid value for "creator_id", must be smaller than or equal to 2147483647.') - end - - if !@downtime_type.nil? && @downtime_type > 2147483647 - invalid_properties.push('invalid value for "downtime_type", must be smaller than or equal to 2147483647.') - end - - if !@updater_id.nil? && @updater_id > 2147483647 - invalid_properties.push('invalid value for "updater_id", must be smaller than or equal to 2147483647.') - end invalid_properties end @@ -243,42 +246,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@creator_id.nil? && @creator_id > 2147483647 - return false if !@downtime_type.nil? && @downtime_type > 2147483647 - return false if !@updater_id.nil? && @updater_id > 2147483647 true end - # Custom attribute writer method with validation - # @param creator_id [Object] creator_id Value to be assigned - def creator_id=(creator_id) - if !creator_id.nil? && creator_id > 2147483647 - fail ArgumentError, 'invalid value for "creator_id", must be smaller than or equal to 2147483647.' - end - - @creator_id = creator_id - end - - # Custom attribute writer method with validation - # @param downtime_type [Object] downtime_type Value to be assigned - def downtime_type=(downtime_type) - if !downtime_type.nil? && downtime_type > 2147483647 - fail ArgumentError, 'invalid value for "downtime_type", must be smaller than or equal to 2147483647.' - end - - @downtime_type = downtime_type - end - - # Custom attribute writer method with validation - # @param updater_id [Object] updater_id Value to be assigned - def updater_id=(updater_id) - if !updater_id.nil? && updater_id > 2147483647 - fail ArgumentError, 'invalid value for "updater_id", must be smaller than or equal to 2147483647.' - end - - @updater_id = updater_id - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -318,7 +288,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -326,7 +296,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -432,7 +402,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] value 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) @@ -448,7 +418,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/downtime_recurrence.rb b/lib/datadog_api_client/v1/models/downtime_recurrence.rb index 0873792a172..62185a6b929 100644 --- a/lib/datadog_api_client/v1/models/downtime_recurrence.rb +++ b/lib/datadog_api_client/v1/models/downtime_recurrence.rb @@ -19,26 +19,35 @@ module DatadogAPIClient::V1 # An object defining the recurrence of the downtime. class DowntimeRecurrence - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # How often to repeat as an integer. For example, to repeat every 3 days, select a type of `days` and a period of `3`. + # How often to repeat as an integer. + # For example, to repeat every 3 days, select a type of `days` and a period of `3`. attr_accessor :period - # The `RRULE` standard for defining recurring events (**requires to set \"type\" to rrule**) For example, to have a recurring event on the first day of each month, set the type to `rrule` and set the `FREQ` to `MONTHLY` and `BYMONTHDAY` to `1`. Most common `rrule` options from the [iCalendar Spec](https://tools.ietf.org/html/rfc5545) are supported. **Note**: Attributes specifying the duration in `RRULE` are not supported (for example, `DTSTART`, `DTEND`, `DURATION`). More examples available in this [downtime guide](https://docs.datadoghq.com/monitors/guide/suppress-alert-with-downtimes/?tab=api) + # The `RRULE` standard for defining recurring events (**requires to set "type" to rrule**) + # For example, to have a recurring event on the first day of each month, set the type to `rrule` and set the `FREQ` to `MONTHLY` and `BYMONTHDAY` to `1`. + # Most common `rrule` options from the [iCalendar Spec](https://tools.ietf.org/html/rfc5545) are supported. + # + # **Note**: Attributes specifying the duration in `RRULE` are not supported (for example, `DTSTART`, `DTEND`, `DURATION`). + # More examples available in this [downtime guide](https://docs.datadoghq.com/monitors/guide/suppress-alert-with-downtimes/?tab=api) attr_accessor :rrule # The type of recurrence. Choose from `days`, `weeks`, `months`, `years`, `rrule`. attr_accessor :type - # The date at which the recurrence should end as a POSIX timestamp. `until_occurences` and `until_date` are mutually exclusive. + # The date at which the recurrence should end as a POSIX timestamp. + # `until_occurences` and `until_date` are mutually exclusive. attr_accessor :until_date - # How many times the downtime is rescheduled. `until_occurences` and `until_date` are mutually exclusive. + # How many times the downtime is rescheduled. + # `until_occurences` and `until_date` are mutually exclusive. attr_accessor :until_occurrences - # A list of week days to repeat on. Choose from `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat` or `Sun`. Only applicable when type is weeks. First letter must be capitalized. + # A list of week days to repeat on. Choose from `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat` or `Sun`. + # Only applicable when type is weeks. First letter must be capitalized. attr_accessor :week_days # Attribute mapping from ruby-style variable name to JSON key. @@ -84,7 +93,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DowntimeRecurrence` initialize method" @@ -126,17 +136,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@period.nil? && @period > 2147483647 - invalid_properties.push('invalid value for "period", must be smaller than or equal to 2147483647.') - end - - if !@until_occurrences.nil? && @until_occurrences > 2147483647 - invalid_properties.push('invalid value for "until_occurrences", must be smaller than or equal to 2147483647.') - end invalid_properties end @@ -145,31 +148,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@period.nil? && @period > 2147483647 - return false if !@until_occurrences.nil? && @until_occurrences > 2147483647 true end - # Custom attribute writer method with validation - # @param period [Object] period Value to be assigned - def period=(period) - if !period.nil? && period > 2147483647 - fail ArgumentError, 'invalid value for "period", must be smaller than or equal to 2147483647.' - end - - @period = period - end - - # Custom attribute writer method with validation - # @param until_occurrences [Object] until_occurrences Value to be assigned - def until_occurrences=(until_occurrences) - if !until_occurrences.nil? && until_occurrences > 2147483647 - fail ArgumentError, 'invalid value for "until_occurrences", must be smaller than or equal to 2147483647.' - end - - @until_occurrences = until_occurrences - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -199,7 +180,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -207,7 +188,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -313,7 +294,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] value 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) @@ -329,7 +310,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/event.rb b/lib/datadog_api_client/v1/models/event.rb index fecbdb4064e..d01098996ea 100644 --- a/lib/datadog_api_client/v1/models/event.rb +++ b/lib/datadog_api_client/v1/models/event.rb @@ -19,39 +19,49 @@ module DatadogAPIClient::V1 # Object representing an event. class Event - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # If an alert event is enabled, set its type. + # For example, `error`, `warning`, `info`, `success`, `user_update`, + # `recommendation`, and `snapshot`. attr_accessor :alert_type - # POSIX timestamp of the event. Must be sent as an integer (that is no quotes). Limited to events no older than 7 days. + # POSIX timestamp of the event. Must be sent as an integer (that is no quotes). + # Limited to events no older than 7 days. attr_accessor :date_happened # A device name. attr_accessor :device_name - # Host name to associate with the event. Any tags associated with the host are also applied to this event. + # Host name to associate with the event. + # Any tags associated with the host are also applied to this event. attr_accessor :host # Integer ID of the event. attr_accessor :id - # Handling IDs as large 64-bit numbers can cause loss of accuracy issues with some programming languages. Instead, use the string representation of the Event ID to avoid losing accuracy. + # Handling IDs as large 64-bit numbers can cause loss of accuracy issues with some programming languages. + # Instead, use the string representation of the Event ID to avoid losing accuracy. attr_accessor :id_str # Payload of the event. attr_accessor :payload + # The priority of the event. For example, `normal` or `low`. attr_accessor :priority - # The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. A complete list of source attribute values [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). + # The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. + # A complete list of source attribute values [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). attr_accessor :source_type_name # A list of tags to apply to the event. attr_accessor :tags - # The body of the event. Limited to 4000 characters. The text supports markdown. To use markdown in the event text, start the text block with `%%% \\n` and end the text block with `\\n %%%`. Use `msg_text` with the Datadog Ruby library. + # The body of the event. Limited to 4000 characters. The text supports markdown. + # To use markdown in the event text, start the text block with `%%% \n` and end the text block with `\n %%%`. + # Use `msg_text` with the Datadog Ruby library. attr_accessor :text # The event title. @@ -114,7 +124,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Event` initialize method" @@ -184,13 +195,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@text.nil? && @text.to_s.length > 4000 - invalid_properties.push('invalid value for "text", the character length must be smaller than or equal to 4000.') - end invalid_properties end @@ -199,20 +207,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@text.nil? && @text.to_s.length > 4000 true end - # Custom attribute writer method with validation - # @param text [Object] text Value to be assigned - def text=(text) - if !text.nil? && text.to_s.length > 4000 - fail ArgumentError, 'invalid value for "text", the character length must be smaller than or equal to 4000.' - end - - @text = text - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -249,7 +246,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -257,7 +254,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -363,7 +360,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] value 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) @@ -379,7 +376,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/event_alert_type.rb b/lib/datadog_api_client/v1/models/event_alert_type.rb index c0b075709f2..c3b6eb80fff 100644 --- a/lib/datadog_api_client/v1/models/event_alert_type.rb +++ b/lib/datadog_api_client/v1/models/event_alert_type.rb @@ -17,6 +17,9 @@ require 'time' module DatadogAPIClient::V1 + # If an alert event is enabled, set its type. + # For example, `error`, `warning`, `info`, `success`, `user_update`, + # `recommendation`, and `snapshot`. class EventAlertType ERROR = "error".freeze WARNING = "warning".freeze @@ -43,5 +46,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 853bf5bcae5..f42b4e97918 100644 --- a/lib/datadog_api_client/v1/models/event_create_request.rb +++ b/lib/datadog_api_client/v1/models/event_create_request.rb @@ -19,36 +19,46 @@ module DatadogAPIClient::V1 # Object representing an event. class EventCreateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # An arbitrary string to use for aggregation. Limited to 100 characters. If you specify a key, all events using that key are grouped together in the Event Stream. + # An arbitrary string to use for aggregation. Limited to 100 characters. + # If you specify a key, all events using that key are grouped together in the Event Stream. attr_accessor :aggregation_key + # If an alert event is enabled, set its type. + # For example, `error`, `warning`, `info`, `success`, `user_update`, + # `recommendation`, and `snapshot`. attr_accessor :alert_type - # POSIX timestamp of the event. Must be sent as an integer (that is no quotes). Limited to events no older than 7 days. + # POSIX timestamp of the event. Must be sent as an integer (that is no quotes). + # Limited to events no older than 7 days. attr_accessor :date_happened # A device name. attr_accessor :device_name - # Host name to associate with the event. Any tags associated with the host are also applied to this event. + # Host name to associate with the event. + # Any tags associated with the host are also applied to this event. attr_accessor :host + # The priority of the event. For example, `normal` or `low`. attr_accessor :priority # ID of the parent event. Must be sent as an integer (that is no quotes). attr_accessor :related_event_id - # The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. A complete list of source attribute values [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). + # The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. + # A complete list of source attribute values [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). attr_accessor :source_type_name # A list of tags to apply to the event. attr_accessor :tags - # The body of the event. Limited to 4000 characters. The text supports markdown. To use markdown in the event text, start the text block with `%%% \\n` and end the text block with `\\n %%%`. Use `msg_text` with the Datadog Ruby library. + # The body of the event. Limited to 4000 characters. The text supports markdown. + # To use markdown in the event text, start the text block with `%%% \n` and end the text block with `\n %%%`. + # Use `msg_text` with the Datadog Ruby library. attr_accessor :text # The event title. @@ -104,7 +114,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventCreateRequest` initialize method" @@ -166,22 +177,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@aggregation_key.nil? && @aggregation_key.to_s.length > 100 - invalid_properties.push('invalid value for "aggregation_key", the character length must be smaller than or equal to 100.') - end - if @text.nil? invalid_properties.push('invalid value for "text", text cannot be nil.') end - - if @text.to_s.length > 4000 - invalid_properties.push('invalid value for "text", the character length must be smaller than or equal to 4000.') - end - if @title.nil? invalid_properties.push('invalid value for "title", title cannot be nil.') end @@ -193,37 +195,11 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@aggregation_key.nil? && @aggregation_key.to_s.length > 100 return false if @text.nil? - return false if @text.to_s.length > 4000 return false if @title.nil? true end - # Custom attribute writer method with validation - # @param aggregation_key [Object] aggregation_key Value to be assigned - def aggregation_key=(aggregation_key) - if !aggregation_key.nil? && aggregation_key.to_s.length > 100 - fail ArgumentError, 'invalid value for "aggregation_key", the character length must be smaller than or equal to 100.' - end - - @aggregation_key = aggregation_key - end - - # Custom attribute writer method with validation - # @param text [Object] text Value to be assigned - def text=(text) - if text.nil? - fail ArgumentError, 'text cannot be nil' - end - - if text.to_s.length > 4000 - fail ArgumentError, 'invalid value for "text", the character length must be smaller than or equal to 4000.' - end - - @text = text - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -258,7 +234,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -266,7 +242,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -372,7 +348,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] value 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) @@ -388,7 +364,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 e621c4b1c29..cdf32a6ccd1 100644 --- a/lib/datadog_api_client/v1/models/event_create_response.rb +++ b/lib/datadog_api_client/v1/models/event_create_response.rb @@ -19,19 +19,24 @@ module DatadogAPIClient::V1 # Object containing an event response. class EventCreateResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # If an alert event is enabled, set its type. + # For example, `error`, `warning`, `info`, `success`, `user_update`, + # `recommendation`, and `snapshot`. attr_accessor :alert_type - # POSIX timestamp of the event. Must be sent as an integer (that is no quotes). Limited to events no older than 7 days. + # POSIX timestamp of the event. Must be sent as an integer (that is no quotes). + # Limited to events no older than 7 days. attr_accessor :date_happened # A device name. attr_accessor :device_name - # Host name to associate with the event. Any tags associated with the host are also applied to this event. + # Host name to associate with the event. + # Any tags associated with the host are also applied to this event. attr_accessor :host # Integer ID of the event. @@ -40,12 +45,14 @@ class EventCreateResponse # Payload of the event. attr_accessor :payload + # The priority of the event. For example, `normal` or `low`. attr_accessor :priority # ID of the parent event. Must be sent as an integer (that is no quotes). attr_accessor :related_event_id - # The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. A complete list of source attribute values [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). + # The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. + # A complete list of source attribute values [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). attr_accessor :source_type_name # A status. @@ -54,7 +61,8 @@ class EventCreateResponse # A list of tags to apply to the event. attr_accessor :tags - # The body of the event. Limited to 4000 characters. The text supports markdown. Use `msg_text` with the Datadog Ruby library. + # The body of the event. Limited to 4000 characters. The text supports markdown. + # Use `msg_text` with the Datadog Ruby library. attr_accessor :text # The event title. Limited to 100 characters. Use `msg_title` with the Datadog Ruby library. @@ -119,7 +127,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventCreateResponse` initialize method" @@ -193,17 +202,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@text.nil? && @text.to_s.length > 4000 - invalid_properties.push('invalid value for "text", the character length must be smaller than or equal to 4000.') - end - - if !@title.nil? && @title.to_s.length > 100 - invalid_properties.push('invalid value for "title", the character length must be smaller than or equal to 100.') - end invalid_properties end @@ -212,31 +214,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@text.nil? && @text.to_s.length > 4000 - return false if !@title.nil? && @title.to_s.length > 100 true end - # Custom attribute writer method with validation - # @param text [Object] text Value to be assigned - def text=(text) - if !text.nil? && text.to_s.length > 4000 - fail ArgumentError, 'invalid value for "text", the character length must be smaller than or equal to 4000.' - end - - @text = text - end - - # Custom attribute writer method with validation - # @param title [Object] title Value to be assigned - def title=(title) - if !title.nil? && title.to_s.length > 100 - fail ArgumentError, 'invalid value for "title", the character length must be smaller than or equal to 100.' - end - - @title = title - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -274,7 +254,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -282,7 +262,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -388,7 +368,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] value 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) @@ -404,7 +384,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 67822dffa5b..b6b64b5fcd9 100644 --- a/lib/datadog_api_client/v1/models/event_list_response.rb +++ b/lib/datadog_api_client/v1/models/event_list_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An event list response. class EventListResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventListResponse` initialize method" @@ -87,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -126,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -134,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -240,7 +242,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] value 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) @@ -256,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/event_priority.rb b/lib/datadog_api_client/v1/models/event_priority.rb index 55e4db9b3a2..4407d3fa89a 100644 --- a/lib/datadog_api_client/v1/models/event_priority.rb +++ b/lib/datadog_api_client/v1/models/event_priority.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The priority of the event. For example, `normal` or `low`. class EventPriority NORMAL = "normal".freeze LOW = "low".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 cdf367393d8..0fd6d0e2b64 100644 --- a/lib/datadog_api_client/v1/models/event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/event_query_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The event query. class EventQueryDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventQueryDefinition` initialize method" @@ -85,14 +86,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @search.nil? invalid_properties.push('invalid value for "search", search cannot be nil.') end - if @tags_execution.nil? invalid_properties.push('invalid value for "tags_execution", tags_execution cannot be nil.') end @@ -134,7 +134,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +248,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] value 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) @@ -264,7 +264,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/event_response.rb b/lib/datadog_api_client/v1/models/event_response.rb index 1c3436cb2ab..fe7f9c37320 100644 --- a/lib/datadog_api_client/v1/models/event_response.rb +++ b/lib/datadog_api_client/v1/models/event_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Object containing an event response. class EventResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object representing an event. attr_accessor :event # A status. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventResponse` initialize method" @@ -84,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -123,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -131,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -237,7 +240,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] value 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) @@ -253,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 bbf2b0a17d7..30d669b3224 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 @@ -17,12 +17,14 @@ require 'time' module DatadogAPIClient::V1 - # The event stream is a widget version of the stream of events on the Event Stream view. Only available on FREE layout dashboards. + # The event stream is a widget version of the stream of events + # on the Event Stream view. Only available on FREE layout dashboards. class EventStreamWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Size to use to display an event. attr_accessor :event_size # Query to filter the event stream with. @@ -31,16 +33,19 @@ class EventStreamWidgetDefinition # The execution method for multi-value filters. Can be either and or or. attr_accessor :tags_execution + # Time setting for the widget. attr_accessor :time # Title of the widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the event stream widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -87,7 +92,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventStreamWidgetDefinition` initialize method" @@ -137,14 +143,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -192,7 +197,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -200,7 +205,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -306,7 +311,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] value 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) @@ -322,7 +327,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/event_stream_widget_definition_type.rb b/lib/datadog_api_client/v1/models/event_stream_widget_definition_type.rb index a3a02d99583..0214c3143d1 100644 --- a/lib/datadog_api_client/v1/models/event_stream_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/event_stream_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the event stream widget. class EventStreamWidgetDefinitionType EVENT_STREAM = "event_stream".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 5b1ad766f30..1416258c10a 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The event timeline is a widget version of the timeline that appears at the top of the Event Stream view. Only available on FREE layout dashboards. class EventTimelineWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,16 +29,19 @@ class EventTimelineWidgetDefinition # The execution method for multi-value filters. Can be either and or or. attr_accessor :tags_execution + # Time setting for the widget. attr_accessor :time # Title of the widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the event timeline widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -83,7 +86,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventTimelineWidgetDefinition` initialize method" @@ -129,14 +133,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -183,7 +186,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -191,7 +194,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -297,7 +300,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] value 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) @@ -313,7 +316,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/event_timeline_widget_definition_type.rb b/lib/datadog_api_client/v1/models/event_timeline_widget_definition_type.rb index e21e7a22f5a..825531ed222 100644 --- a/lib/datadog_api_client/v1/models/event_timeline_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/event_timeline_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the event timeline widget. class EventTimelineWidgetDefinitionType EVENT_TIMELINE = "event_timeline".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stat_name.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stat_name.rb index bd601701f88..50c2e17939a 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stat_name.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stat_name.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # APM statistic. class FormulaAndFunctionApmDependencyStatName AVG_DURATION = "avg_duration".freeze AVG_ROOT_DURATION = "avg_root_duration".freeze @@ -43,5 +44,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_data_source.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_data_source.rb index 71f8b98b614..e5ddb638461 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_data_source.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_data_source.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Data source for APM dependency stats queries. class FormulaAndFunctionApmDependencyStatsDataSource APM_DEPENDENCY_STATS = "apm_dependency_stats".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 036a26ab56a..c99c408ee67 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # A formula and functions APM dependency stats query. class FormulaAndFunctionApmDependencyStatsQueryDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Data source for APM dependency stats queries. attr_accessor :data_source # APM environment. @@ -49,6 +50,7 @@ class FormulaAndFunctionApmDependencyStatsQueryDefinition # APM service. attr_accessor :service + # APM statistic. attr_accessor :stat # Attribute mapping from ruby-style variable name to JSON key. @@ -99,7 +101,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionApmDependencyStatsQueryDefinition` initialize method" @@ -155,34 +158,28 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data_source.nil? invalid_properties.push('invalid value for "data_source", data_source cannot be nil.') end - if @env.nil? invalid_properties.push('invalid value for "env", env cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @operation_name.nil? invalid_properties.push('invalid value for "operation_name", operation_name cannot be nil.') end - if @resource_name.nil? invalid_properties.push('invalid value for "resource_name", resource_name cannot be nil.') end - if @service.nil? invalid_properties.push('invalid value for "service", service cannot be nil.') end - if @stat.nil? invalid_properties.push('invalid value for "stat", stat cannot be nil.') end @@ -237,7 +234,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -245,7 +242,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -351,7 +348,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] value 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) @@ -367,7 +364,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stat_name.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stat_name.rb index 3dfaaf6eb78..ba074158a4d 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stat_name.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stat_name.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # APM resource stat name. class FormulaAndFunctionApmResourceStatName ERRORS = "errors".freeze ERROR_RATE = "error_rate".freeze @@ -46,5 +47,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_data_source.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_data_source.rb index abc4e5f5c14..931971fc695 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_data_source.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_data_source.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Data source for APM resource stats queries. class FormulaAndFunctionApmResourceStatsDataSource APM_RESOURCE_STATS = "apm_resource_stats".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 950e2cea449..050ca00abb0 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # APM resource stats query using formulas and functions. class FormulaAndFunctionApmResourceStatsQueryDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Data source for APM resource stats queries. attr_accessor :data_source # APM environment. @@ -49,6 +50,7 @@ class FormulaAndFunctionApmResourceStatsQueryDefinition # APM service name. attr_accessor :service + # APM resource stat name. attr_accessor :stat # Attribute mapping from ruby-style variable name to JSON key. @@ -99,7 +101,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionApmResourceStatsQueryDefinition` initialize method" @@ -157,26 +160,22 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data_source.nil? invalid_properties.push('invalid value for "data_source", data_source cannot be nil.') end - if @env.nil? invalid_properties.push('invalid value for "env", env cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @service.nil? invalid_properties.push('invalid value for "service", service cannot be nil.') end - if @stat.nil? invalid_properties.push('invalid value for "stat", stat cannot be nil.') end @@ -229,7 +228,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -237,7 +236,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -343,7 +342,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] value 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) @@ -359,7 +358,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_aggregation.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_aggregation.rb index f3936215e5e..7b5feafb467 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_aggregation.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_aggregation.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Aggregation methods for event platform queries. class FormulaAndFunctionEventAggregation COUNT = "count".freeze CARDINALITY = "cardinality".freeze @@ -48,5 +49,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 aafddea07fe..1db99d672c3 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V1 # A formula and functions events query. class FormulaAndFunctionEventQueryDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Compute options. attr_accessor :compute + # Data source for event platform-based queries. attr_accessor :data_source # Group by options. @@ -36,6 +38,7 @@ class FormulaAndFunctionEventQueryDefinition # Name of the query for use in formulas. attr_accessor :name + # Search options. attr_accessor :search # Attribute mapping from ruby-style variable name to JSON key. @@ -78,7 +81,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinition` initialize method" @@ -122,18 +126,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @compute.nil? invalid_properties.push('invalid value for "compute", compute cannot be nil.') end - if @data_source.nil? invalid_properties.push('invalid value for "data_source", data_source cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end @@ -180,7 +182,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -188,7 +190,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -294,7 +296,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] value 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) @@ -310,7 +312,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 16f2dd477a2..9646c7c3975 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Compute options. class FormulaAndFunctionEventQueryDefinitionCompute - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Aggregation methods for event platform queries. attr_accessor :aggregation # A time interval in milliseconds. @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinitionCompute` initialize method" @@ -93,8 +95,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @aggregation.nil? @@ -138,7 +140,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -146,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -252,7 +254,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] value 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) @@ -268,7 +270,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 c6187e463ce..1beefc08930 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Search options. class FormulaAndFunctionEventQueryDefinitionSearch - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinitionSearch` initialize method" @@ -76,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @query.nil? @@ -119,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -127,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -233,7 +234,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] value 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) @@ -249,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 76c9c92145c..0c14a85655b 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # List of objects used to group by. class FormulaAndFunctionEventQueryGroupBy - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class FormulaAndFunctionEventQueryGroupBy # Number of groups to return. attr_accessor :limit + # Options for sorting group by results. attr_accessor :sort # Attribute mapping from ruby-style variable name to JSON key. @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryGroupBy` initialize method" @@ -93,8 +95,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @facet.nil? @@ -138,7 +140,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -146,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -252,7 +254,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] value 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) @@ -268,7 +270,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4f698ae40b2..edc65927c9e 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V1 # Options for sorting group by results. class FormulaAndFunctionEventQueryGroupBySort - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Aggregation methods for event platform queries. attr_accessor :aggregation # Metric used for sorting group by results. attr_accessor :metric + # Direction of sort. attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryGroupBySort` initialize method" @@ -94,8 +97,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @aggregation.nil? @@ -139,7 +142,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -147,7 +150,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -253,7 +256,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] value 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) @@ -269,7 +272,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb b/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb index fab47bfd522..daf27b874c4 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Data source for event platform-based queries. class FormulaAndFunctionEventsDataSource LOGS = "logs".freeze SPANS = "spans".freeze @@ -44,5 +45,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/formula_and_function_metric_aggregation.rb b/lib/datadog_api_client/v1/models/formula_and_function_metric_aggregation.rb index 6cb078c4d6b..8d61483e1df 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_metric_aggregation.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_metric_aggregation.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The aggregation methods available for metrics queries. class FormulaAndFunctionMetricAggregation AVG = "avg".freeze MIN = "min".freeze @@ -44,5 +45,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/formula_and_function_metric_data_source.rb b/lib/datadog_api_client/v1/models/formula_and_function_metric_data_source.rb index cdb4de90729..5f799aee91d 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_metric_data_source.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_metric_data_source.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Data source for metrics queries. class FormulaAndFunctionMetricDataSource METRICS = "metrics".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 55dac669257..ea458e3a590 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V1 # A formula and functions metrics query. class FormulaAndFunctionMetricQueryDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The aggregation methods available for metrics queries. attr_accessor :aggregator + # Data source for metrics queries. attr_accessor :data_source # Name of the query for use in formulas. @@ -69,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionMetricQueryDefinition` initialize method" @@ -101,18 +104,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data_source.nil? invalid_properties.push('invalid value for "data_source", data_source cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end @@ -157,7 +158,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -165,7 +166,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -271,7 +272,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] value 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) @@ -287,7 +288,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/formula_and_function_process_query_data_source.rb b/lib/datadog_api_client/v1/models/formula_and_function_process_query_data_source.rb index 05d340e8930..0e8e3feba63 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_process_query_data_source.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_process_query_data_source.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Data sources that rely on the process backend. class FormulaAndFunctionProcessQueryDataSource PROCESS = "process".freeze CONTAINER = "container".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 186e7ea1090..4eb9860aa61 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V1 # Process query using formulas and functions. class FormulaAndFunctionProcessQueryDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The aggregation methods available for metrics queries. attr_accessor :aggregator + # Data sources that rely on the process backend. attr_accessor :data_source # Whether to normalize the CPU percentages. @@ -39,6 +41,7 @@ class FormulaAndFunctionProcessQueryDefinition # Name of query for use in formulas. attr_accessor :name + # Direction of sort. attr_accessor :sort # An array of tags to filter by. @@ -93,7 +96,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionProcessQueryDefinition` initialize method" @@ -149,18 +153,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data_source.nil? invalid_properties.push('invalid value for "data_source", data_source cannot be nil.') end - if @metric.nil? invalid_properties.push('invalid value for "metric", metric cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end @@ -210,7 +212,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -218,7 +220,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -324,7 +326,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] value 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) @@ -340,7 +342,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb index 1ce32f15366..79dea6ee355 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb @@ -25,14 +25,13 @@ class << self # List of class defined in oneOf (OpenAPI v3) def openapi_one_of [ - :'FormulaAndFunctionApmDependencyStatsQueryDefinition', - :'FormulaAndFunctionApmResourceStatsQueryDefinition', - :'FormulaAndFunctionEventQueryDefinition', :'FormulaAndFunctionMetricQueryDefinition', - :'FormulaAndFunctionProcessQueryDefinition' + :'FormulaAndFunctionEventQueryDefinition', + :'FormulaAndFunctionProcessQueryDefinition', + :'FormulaAndFunctionApmDependencyStatsQueryDefinition', + :'FormulaAndFunctionApmResourceStatsQueryDefinition' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -60,7 +59,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V1::UnparsedObject.new(data) end - end private @@ -118,4 +116,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/formula_and_function_response_format.rb b/lib/datadog_api_client/v1/models/formula_and_function_response_format.rb index 603690d5ae9..b0fe1ad0590 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_response_format.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_response_format.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Timeseries or Scalar response. **This feature is currently in beta.** class FormulaAndFunctionResponseFormat TIMESERIES = "timeseries".freeze SCALAR = "scalar".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 2d60fb1b644..aba9b1b628d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Free text is a widget that allows you to add headings to your screenboard. Commonly used to state the overall purpose of the dashboard. Only available on FREE layout dashboards. class FreeTextWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -32,8 +32,10 @@ class FreeTextWidgetDefinition # Text to display. attr_accessor :text + # How to align the text on the widget. attr_accessor :text_align + # Type of the free text widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -74,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FreeTextWidgetDefinition` initialize method" @@ -112,14 +115,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @text.nil? invalid_properties.push('invalid value for "text", text cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -164,7 +166,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -172,7 +174,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -278,7 +280,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] value 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) @@ -294,7 +296,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/free_text_widget_definition_type.rb b/lib/datadog_api_client/v1/models/free_text_widget_definition_type.rb index 0e932f8bb25..f18a0952204 100644 --- a/lib/datadog_api_client/v1/models/free_text_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/free_text_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the free text widget. class FreeTextWidgetDefinitionType FREE_TEXT = "free_text".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/funnel_query.rb b/lib/datadog_api_client/v1/models/funnel_query.rb index cc79d2bdf54..0080ed44c2c 100644 --- a/lib/datadog_api_client/v1/models/funnel_query.rb +++ b/lib/datadog_api_client/v1/models/funnel_query.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Updated funnel widget. class FunnelQuery - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Source from which to query items to display in the funnel. attr_accessor :data_source # The widget query. @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FunnelQuery` initialize method" @@ -97,18 +99,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data_source.nil? invalid_properties.push('invalid value for "data_source", data_source cannot be nil.') end - if @query_string.nil? invalid_properties.push('invalid value for "query_string", query_string cannot be nil.') end - if @steps.nil? invalid_properties.push('invalid value for "steps", steps cannot be nil.') end @@ -152,7 +152,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -160,7 +160,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -266,7 +266,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] value 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) @@ -282,7 +282,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb new file mode 100644 index 00000000000..35a907d4eb4 --- /dev/null +++ b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb @@ -0,0 +1,269 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://openapi-generator.tech + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V1 + # The funnel step. + class FunnelQueryStepsItem + # whether the object has unparsed attributes + # @!visibility private + attr_accessor :_unparsed + + # The facet of the step. + attr_accessor :facet + + # The value of the step. + attr_accessor :value + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'facet' => :'facet', + :'value' => :'value' + } + end + + # Returns all the JSON keys this model knows about + # @!visibility private + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'facet' => :'String', + :'value' => :'String' + } + end + + # List of attributes with nullable: true + # @!visibility private + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FunnelQueryStepsItem` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::FunnelQueryStepsItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'facet') + self.facet = attributes[:'facet'] + end + + if attributes.key?(:'value') + self.value = attributes[:'value'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + # @!visibility private + def list_invalid_properties + invalid_properties = Array.new + if @facet.nil? + invalid_properties.push('invalid value for "facet", facet cannot be nil.') + end + if @value.nil? + invalid_properties.push('invalid value for "value", value cannot be nil.') + end + + invalid_properties + 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 @facet.nil? + return false if @value.nil? + true + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + facet == o.facet && + value == o.value + end + + # @see the `==` method + # @param o [Object] Object to be compared + # @!visibility private + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [facet, value].hash + end + + # Builds the object from hash + # @param attributes [Hash] Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param type [string] Data type + # @param value [string] Value to be deserialized + # @return [Object] Deserialized data + # @!visibility private + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when :Array + # generic array, return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = DatadogAPIClient::V1.const_get(type) + res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + if res.instance_of? DatadogAPIClient::V1::UnparsedObject + self._unparsed = true + end + res + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + # @!visibility private + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_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 + + # 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 + # @return [Hash] Returns the value in the form of hash + # @!visibility private + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end + +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/funnel_request_type.rb b/lib/datadog_api_client/v1/models/funnel_request_type.rb index 885580e1502..f6456bf8137 100644 --- a/lib/datadog_api_client/v1/models/funnel_request_type.rb +++ b/lib/datadog_api_client/v1/models/funnel_request_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Widget request type. class FunnelRequestType FUNNEL = "funnel".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/funnel_source.rb b/lib/datadog_api_client/v1/models/funnel_source.rb index 0b7968372cf..3a8cfd5338c 100644 --- a/lib/datadog_api_client/v1/models/funnel_source.rb +++ b/lib/datadog_api_client/v1/models/funnel_source.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Source from which to query items to display in the funnel. class FunnelSource RUM = "rum".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 c6d9a65ee9a..557492660db 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb @@ -17,25 +17,28 @@ require 'time' module DatadogAPIClient::V1 - # The funnel visualization displays a funnel of user sessions that maps a sequence of view navigation and user interaction in your application. + # The funnel visualization displays a funnel of user sessions that maps a sequence of view navigation and user interaction in your application. class FunnelWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Request payload used to query items. attr_accessor :requests + # Time setting for the widget. attr_accessor :time # The title of the widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # The size of the title. attr_accessor :title_size + # Type of funnel widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -78,7 +81,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FunnelWidgetDefinition` initialize method" @@ -122,22 +126,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - - if @requests.length > 1 - invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') - end - - if @requests.length < 1 - invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') - end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -150,30 +145,10 @@ def list_invalid_properties # @!visibility private def valid? return false if @requests.nil? - return false if @requests.length > 1 - return false if @requests.length < 1 return false if @type.nil? true end - # Custom attribute writer method with validation - # @param requests [Object] requests Value to be assigned - def requests=(requests) - if requests.nil? - fail ArgumentError, 'requests cannot be nil' - end - - if requests.length > 1 - fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' - end - - if requests.length < 1 - fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' - end - - @requests = requests - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -203,7 +178,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -211,7 +186,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -317,7 +292,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] value 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) @@ -333,7 +308,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/funnel_widget_definition_type.rb b/lib/datadog_api_client/v1/models/funnel_widget_definition_type.rb index cf2b50c0d1a..466668bb4a6 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of funnel widget. class FunnelWidgetDefinitionType FUNNEL = "funnel".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 fb603507c17..f28b4091234 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_request.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_request.rb @@ -19,12 +19,14 @@ module DatadogAPIClient::V1 # Updated funnel widget. class FunnelWidgetRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Updated funnel widget. attr_accessor :query + # Widget request type. attr_accessor :request_type # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FunnelWidgetRequest` initialize method" @@ -83,14 +86,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end - if @request_type.nil? invalid_properties.push('invalid value for "request_type", request_type cannot be nil.') end @@ -132,7 +134,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -140,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -246,7 +248,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] value 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) @@ -262,7 +264,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/gcp_account.rb b/lib/datadog_api_client/v1/models/gcp_account.rb index 391ab0b9124..c5b291e7332 100644 --- a/lib/datadog_api_client/v1/models/gcp_account.rb +++ b/lib/datadog_api_client/v1/models/gcp_account.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Your Google Cloud Platform Account. class GCPAccount - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -38,13 +38,15 @@ class GCPAccount # Your ID found in your JSON service account key. attr_accessor :client_id - # Should be `https://www.googleapis.com/robot/v1/metadata/x509/` where `` is the email found in your JSON service account key. + # Should be `https://www.googleapis.com/robot/v1/metadata/x509/` + # where `` is the email found in your JSON service account key. attr_accessor :client_x509_cert_url # An array of errors. attr_accessor :errors - # Limit the GCE instances that are pulled into Datadog by using tags. Only hosts that match one of the defined tags are imported into Datadog. + # Limit the GCE instances that are pulled into Datadog by using tags. + # Only hosts that match one of the defined tags are imported into Datadog. attr_accessor :host_filters # Your private key name found in your JSON service account key. @@ -116,7 +118,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GCPAccount` initialize method" @@ -186,10 +189,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -236,7 +240,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -244,7 +248,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -350,7 +354,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] value 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) @@ -366,7 +370,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 35d84e082bc..de724ead66e 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb @@ -19,30 +19,38 @@ module DatadogAPIClient::V1 # This visualization displays a series of values by country on a world map. class GeomapWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # A list of custom links. attr_accessor :custom_links - # Array of one request object to display in the widget. The request must contain a `group-by` tag whose value is a country ISO code. See the [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) for information about building the `REQUEST_SCHEMA`. + # Array of one request object to display in the widget. The request must contain a `group-by` tag whose value is a country ISO code. + # + # See the [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) + # for information about building the `REQUEST_SCHEMA`. attr_accessor :requests + # The style to apply to the widget. attr_accessor :style + # Time setting for the widget. attr_accessor :time # The title of your widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # The size of the title. attr_accessor :title_size + # Type of the geomap widget. attr_accessor :type + # The view of the world that the map should render. attr_accessor :view # Attribute mapping from ruby-style variable name to JSON key. @@ -91,7 +99,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GeomapWidgetDefinition` initialize method" @@ -149,30 +158,19 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - - if @requests.length > 1 - invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') - end - - if @requests.length < 1 - invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') - end - if @style.nil? invalid_properties.push('invalid value for "style", style cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - if @view.nil? invalid_properties.push('invalid value for "view", view cannot be nil.') end @@ -185,32 +183,12 @@ def list_invalid_properties # @!visibility private def valid? return false if @requests.nil? - return false if @requests.length > 1 - return false if @requests.length < 1 return false if @style.nil? return false if @type.nil? return false if @view.nil? true end - # Custom attribute writer method with validation - # @param requests [Object] requests Value to be assigned - def requests=(requests) - if requests.nil? - fail ArgumentError, 'requests cannot be nil' - end - - if requests.length > 1 - fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' - end - - if requests.length < 1 - fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' - end - - @requests = requests - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -243,7 +221,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -251,7 +229,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -357,7 +335,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] value 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) @@ -373,7 +351,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 fb28e74ad8b..1e85124e132 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The style to apply to the widget. class GeomapWidgetDefinitionStyle - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GeomapWidgetDefinitionStyle` initialize method" @@ -85,14 +86,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @palette.nil? invalid_properties.push('invalid value for "palette", palette cannot be nil.') end - if @palette_flip.nil? invalid_properties.push('invalid value for "palette_flip", palette_flip cannot be nil.') end @@ -134,7 +134,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +248,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] value 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) @@ -264,7 +264,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/geomap_widget_definition_type.rb b/lib/datadog_api_client/v1/models/geomap_widget_definition_type.rb index cb6df7aebb0..4e40312c23c 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the geomap widget. class GeomapWidgetDefinitionType GEOMAP = "geomap".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 073300bcd9b..f6da19283eb 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The view of the world that the map should render. class GeomapWidgetDefinitionView - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GeomapWidgetDefinitionView` initialize method" @@ -76,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @focus.nil? @@ -119,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -127,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -233,7 +234,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] value 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) @@ -249,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 5d16fb4dfdb..452611e5e15 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_request.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_request.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # An updated geomap widget. class GeomapWidgetRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas + # The log query. attr_accessor :log_query # The widget metrics query. @@ -34,10 +35,13 @@ class GeomapWidgetRequest # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries + # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format + # The log query. attr_accessor :rum_query + # The log query. attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. @@ -82,7 +86,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GeomapWidgetRequest` initialize method" @@ -130,10 +135,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -174,7 +180,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -182,7 +188,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -288,7 +294,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] value 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) @@ -304,7 +310,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/graph_snapshot.rb b/lib/datadog_api_client/v1/models/graph_snapshot.rb index 843ad15b867..7b41cb09392 100644 --- a/lib/datadog_api_client/v1/models/graph_snapshot.rb +++ b/lib/datadog_api_client/v1/models/graph_snapshot.rb @@ -19,11 +19,13 @@ module DatadogAPIClient::V1 # Object representing a graph snapshot. class GraphSnapshot - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. The JSON document uses the [grammar defined here](https://docs.datadoghq.com/graphing/graphing_json/#grammar) and should be formatted to a single line then URL encoded. + # A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. + # The JSON document uses the [grammar defined here](https://docs.datadoghq.com/graphing/graphing_json/#grammar) + # and should be formatted to a single line then URL encoded. attr_accessor :graph_def # The metric query. One of `metric_query` or `graph_def` is required. @@ -66,7 +68,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GraphSnapshot` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 f2564b3dfa1..1203b9bd778 100644 --- a/lib/datadog_api_client/v1/models/group_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/group_widget_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The groups widget allows you to keep similar graphs together on your timeboard. Each group has a custom header, can hold one to many graphs, and is collapsible. class GroupWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class GroupWidgetDefinition # URL of image to display as a banner for the group. attr_accessor :banner_img + # Layout type of the group. attr_accessor :layout_type # Whether to show the title or not. @@ -37,8 +38,10 @@ class GroupWidgetDefinition # Title of the widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align + # Type of the group widget. attr_accessor :type # List of widget groups. @@ -88,7 +91,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GroupWidgetDefinition` initialize method" @@ -142,18 +146,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @layout_type.nil? invalid_properties.push('invalid value for "layout_type", layout_type cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - if @widgets.nil? invalid_properties.push('invalid value for "widgets", widgets cannot be nil.') end @@ -202,7 +204,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -210,7 +212,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -316,7 +318,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] value 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) @@ -332,7 +334,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/group_widget_definition_type.rb b/lib/datadog_api_client/v1/models/group_widget_definition_type.rb index 6dd052de9c1..5e877ed3020 100644 --- a/lib/datadog_api_client/v1/models/group_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/group_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the group widget. class GroupWidgetDefinitionType GROUP = "group".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 faa6346b306..a7d28d05abf 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The heat map visualization shows metrics aggregated across many tags, such as hosts. The more hosts that have a particular value, the darker that square is. class HeatMapWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,7 +29,7 @@ class HeatMapWidgetDefinition # List of widget events. attr_accessor :events - # Available legend sizes for a widget. Should be one of \"0\", \"2\", \"4\", \"8\", \"16\", or \"auto\". + # Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto". attr_accessor :legend_size # List of widget types. @@ -38,18 +38,22 @@ class HeatMapWidgetDefinition # Whether or not to display the legend on this widget. attr_accessor :show_legend + # Time setting for the widget. attr_accessor :time # Title of the widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the heat map widget. attr_accessor :type + # Axis controls for the widget. attr_accessor :yaxis # Attribute mapping from ruby-style variable name to JSON key. @@ -102,7 +106,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HeatMapWidgetDefinition` initialize method" @@ -170,22 +175,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - - if @requests.length > 1 - invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') - end - - if @requests.length < 1 - invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') - end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -198,30 +194,10 @@ def list_invalid_properties # @!visibility private def valid? return false if @requests.nil? - return false if @requests.length > 1 - return false if @requests.length < 1 return false if @type.nil? true end - # Custom attribute writer method with validation - # @param requests [Object] requests Value to be assigned - def requests=(requests) - if requests.nil? - fail ArgumentError, 'requests cannot be nil' - end - - if requests.length > 1 - fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' - end - - if requests.length < 1 - fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' - end - - @requests = requests - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -256,7 +232,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -264,7 +240,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -370,7 +346,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] value 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) @@ -386,7 +362,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/heat_map_widget_definition_type.rb b/lib/datadog_api_client/v1/models/heat_map_widget_definition_type.rb index 009fa36a89b..27bd358558c 100644 --- a/lib/datadog_api_client/v1/models/heat_map_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/heat_map_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the heat map widget. class HeatMapWidgetDefinitionType HEATMAP = "heatmap".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 962758c4f91..b8ee970c812 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 @@ -19,29 +19,38 @@ module DatadogAPIClient::V1 # Updated heat map widget. class HeatMapWidgetRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The log query. attr_accessor :apm_query + # The event query. attr_accessor :event_query + # The log query. attr_accessor :log_query + # The log query. attr_accessor :network_query + # The process query to use in the widget. attr_accessor :process_query + # The log query. attr_accessor :profile_metrics_query # Widget query. attr_accessor :q + # The log query. attr_accessor :rum_query + # The log query. attr_accessor :security_query + # Widget style definition. attr_accessor :style # Attribute mapping from ruby-style variable name to JSON key. @@ -92,7 +101,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HeatMapWidgetRequest` initialize method" @@ -148,10 +158,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -195,7 +206,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -203,7 +214,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -309,7 +320,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] value 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) @@ -325,7 +336,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/host.rb b/lib/datadog_api_client/v1/models/host.rb index 35ad531a17e..d7020c85f1b 100644 --- a/lib/datadog_api_client/v1/models/host.rb +++ b/lib/datadog_api_client/v1/models/host.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object representing a host. class Host - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -44,8 +44,10 @@ class Host # Last time the host reported a metric data point. attr_accessor :last_reported_time + # Metadata associated with your host. attr_accessor :meta + # Host Metrics collected. attr_accessor :metrics # Timeout of the mute applied to your host. @@ -119,7 +121,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Host` initialize method" @@ -188,9 +191,7 @@ def initialize(attributes = {}) end if attributes.key?(:'tags_by_source') - if (value = attributes[:'tags_by_source']).is_a?(Hash) - self.tags_by_source = value - end + self.tags_by_source = attributes[:'tags_by_source'] end if attributes.key?(:'up') @@ -199,10 +200,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -250,7 +252,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -258,7 +260,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -364,7 +366,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] value 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) @@ -380,7 +382,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 e490c6dbaec..d243ad9abed 100644 --- a/lib/datadog_api_client/v1/models/host_list_response.rb +++ b/lib/datadog_api_client/v1/models/host_list_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response with Host information from Datadog. class HostListResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostListResponse` initialize method" @@ -96,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -136,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -144,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -250,7 +252,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] value 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) @@ -266,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 45a68ec3ff5..eda11bcdf9b 100644 --- a/lib/datadog_api_client/v1/models/host_map_request.rb +++ b/lib/datadog_api_client/v1/models/host_map_request.rb @@ -19,27 +19,35 @@ module DatadogAPIClient::V1 # Updated host map. class HostMapRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The log query. attr_accessor :apm_query + # The log query. attr_accessor :event_query + # The log query. attr_accessor :log_query + # The log query. attr_accessor :network_query + # The process query to use in the widget. attr_accessor :process_query + # The log query. attr_accessor :profile_metrics_query # Query definition. attr_accessor :q + # The log query. attr_accessor :rum_query + # The log query. attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. @@ -88,7 +96,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMapRequest` initialize method" @@ -140,10 +149,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -186,7 +196,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -194,7 +204,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -300,7 +310,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] value 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) @@ -316,7 +326,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ecdf20cd533..2d46021e924 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The host map widget graphs any metric across your hosts using the same visualization available from the main Host Map page. class HostMapWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -35,26 +35,31 @@ class HostMapWidgetDefinition # Whether to show the hosts with no metrics. attr_accessor :no_metric_hosts + # Which type of node to use in the map. attr_accessor :node_type # Notes on the title. attr_accessor :notes + # List of definitions. attr_accessor :requests # List of tags used to filter the map. attr_accessor :scope + # The style to apply to the widget. attr_accessor :style # Title of the widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the host map widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -111,7 +116,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMapWidgetDefinition` initialize method" @@ -187,14 +193,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -247,7 +252,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -255,7 +260,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -361,7 +366,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] value 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) @@ -377,7 +382,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 7a060d7b589..928aae201ca 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V1 # List of definitions. class HostMapWidgetDefinitionRequests - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Updated host map. attr_accessor :fill + # Updated host map. attr_accessor :size # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMapWidgetDefinitionRequests` initialize method" @@ -83,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -122,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -130,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -236,7 +240,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] value 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) @@ -252,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 adf432c74bd..e81042f2355 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The style to apply to the widget. class HostMapWidgetDefinitionStyle - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMapWidgetDefinitionStyle` initialize method" @@ -103,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -144,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +260,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] value 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) @@ -274,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/host_map_widget_definition_type.rb b/lib/datadog_api_client/v1/models/host_map_widget_definition_type.rb index dafb8422cc1..31e8512af3f 100644 --- a/lib/datadog_api_client/v1/models/host_map_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/host_map_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the host map widget. class HostMapWidgetDefinitionType HOSTMAP = "hostmap".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/host_meta.rb b/lib/datadog_api_client/v1/models/host_meta.rb index e51227d8447..b15f084b5ab 100644 --- a/lib/datadog_api_client/v1/models/host_meta.rb +++ b/lib/datadog_api_client/v1/models/host_meta.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Metadata associated with your host. class HostMeta - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -38,6 +38,7 @@ class HostMeta # JSON string containing system information. attr_accessor :gohai + # Agent install method. attr_accessor :install_method # An array of Mac versions. @@ -99,7 +100,7 @@ def self.acceptable_attributes # @!visibility private def self.openapi_types { - :'agent_checks' => :'Array', + :'agent_checks' => :'Array>', :'agent_version' => :'String', :'cpu_cores' => :'Integer', :'fbsd_v' => :'Array', @@ -125,7 +126,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMeta` initialize method" @@ -211,10 +213,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -263,7 +266,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -271,7 +274,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -377,7 +380,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] value 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) @@ -393,7 +396,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 bdc3d1a72dc..0ff286d0061 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Agent install method. class HostMetaInstallMethod - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMetaInstallMethod` initialize method" @@ -94,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/host_metrics.rb b/lib/datadog_api_client/v1/models/host_metrics.rb index d5c674ebac6..68a8dba2c8b 100644 --- a/lib/datadog_api_client/v1/models/host_metrics.rb +++ b/lib/datadog_api_client/v1/models/host_metrics.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Host Metrics collected. class HostMetrics - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMetrics` initialize method" @@ -94,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 d090f7fd4dd..1e94c9fed35 100644 --- a/lib/datadog_api_client/v1/models/host_mute_response.rb +++ b/lib/datadog_api_client/v1/models/host_mute_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response with the list of muted host for your organization. class HostMuteResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMuteResponse` initialize method" @@ -103,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -144,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +260,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] value 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) @@ -274,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 7ba320492a6..83ff9871635 100644 --- a/lib/datadog_api_client/v1/models/host_mute_settings.rb +++ b/lib/datadog_api_client/v1/models/host_mute_settings.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Combination of settings to mute a host. class HostMuteSettings - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMuteSettings` initialize method" @@ -94,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/host_tags.rb b/lib/datadog_api_client/v1/models/host_tags.rb index e649bb98f3c..b433bd3f524 100644 --- a/lib/datadog_api_client/v1/models/host_tags.rb +++ b/lib/datadog_api_client/v1/models/host_tags.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Set of tags to associate with your host. class HostTags - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostTags` initialize method" @@ -87,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -126,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -134,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -240,7 +242,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] value 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) @@ -256,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/host_totals.rb b/lib/datadog_api_client/v1/models/host_totals.rb index 9bb17ee8895..5c5aac160b6 100644 --- a/lib/datadog_api_client/v1/models/host_totals.rb +++ b/lib/datadog_api_client/v1/models/host_totals.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Total number of host currently monitored by Datadog. class HostTotals - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostTotals` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 2c05c379fa0..5c93469e482 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The usage for one set of tags for one hour. class HourlyUsageAttributionBody - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -44,6 +44,7 @@ class HourlyUsageAttributionBody # Shows the most recent hour in the current month for all organizations where usages are calculated. attr_accessor :updated_at + # Supported products for hourly usage attribution requests. attr_accessor :usage_type # Attribute mapping from ruby-style variable name to JSON key. @@ -90,7 +91,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HourlyUsageAttributionBody` initialize method" @@ -121,9 +123,7 @@ def initialize(attributes = {}) end if attributes.key?(:'tags') - if (value = attributes[:'tags']).is_a?(Hash) - self.tags = value - end + self.tags = attributes[:'tags'] end if attributes.key?(:'total_usage_sum') @@ -140,10 +140,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -185,7 +186,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -193,7 +194,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -299,7 +300,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] value 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) @@ -315,7 +316,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 06cc6b6cf9d..6655b41ce15 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # The object containing document metadata. class HourlyUsageAttributionMetadata - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The metadata for the current pagination. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HourlyUsageAttributionMetadata` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 80a029ab90e..6cc601509fe 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The metadata for the current pagination. class HourlyUsageAttributionPagination - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HourlyUsageAttributionPagination` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 601d490edb9..44b2dadcbe9 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Response containing the hourly usage attribution by tag(s). class HourlyUsageAttributionResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The object containing document metadata. attr_accessor :metadata # Get the hourly usage attribution by tag(s). @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HourlyUsageAttributionResponse` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb index 7592b752156..e3dcda0d213 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Supported products for hourly usage attribution requests. class HourlyUsageAttributionUsageType API_USAGE = "api_usage".freeze APM_HOST_USAGE = "apm_host_usage".freeze @@ -50,5 +51,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 f9787e0c974..9c19a5430ee 100644 --- a/lib/datadog_api_client/v1/models/http_log_error.rb +++ b/lib/datadog_api_client/v1/models/http_log_error.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Invalid query performed. class HTTPLogError - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HTTPLogError` initialize method" @@ -85,18 +86,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @code.nil? invalid_properties.push('invalid value for "code", code cannot be nil.') end - - if @code > 2147483647 - invalid_properties.push('invalid value for "code", must be smaller than or equal to 2147483647.') - end - if @message.nil? invalid_properties.push('invalid value for "message", message cannot be nil.') end @@ -109,25 +105,10 @@ def list_invalid_properties # @!visibility private def valid? return false if @code.nil? - return false if @code > 2147483647 return false if @message.nil? true end - # Custom attribute writer method with validation - # @param code [Object] code Value to be assigned - def code=(code) - if code.nil? - fail ArgumentError, 'code cannot be nil' - end - - if code > 2147483647 - fail ArgumentError, 'invalid value for "code", must be smaller than or equal to 2147483647.' - end - - @code = code - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -153,7 +134,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -161,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -267,7 +248,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] value 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) @@ -283,7 +264,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 0024beb72c7..1260776f189 100644 --- a/lib/datadog_api_client/v1/models/http_log_item.rb +++ b/lib/datadog_api_client/v1/models/http_log_item.rb @@ -19,11 +19,13 @@ module DatadogAPIClient::V1 # Logs that are sent over HTTP. class HTTPLogItem - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # The integration name associated with your log: the technology from which the log originated. When it matches an integration name, Datadog automatically installs the corresponding parsers and facets. See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes). + # The integration name associated with your log: the technology from which the log originated. + # When it matches an integration name, Datadog automatically installs the corresponding parsers and facets. + # See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes). attr_accessor :ddsource # Tags associated with your logs. @@ -32,10 +34,14 @@ class HTTPLogItem # The name of the originating host of the log. attr_accessor :hostname - # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. + # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) + # of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. + # That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. attr_accessor :message - # The name of the application or service generating the log events. It is used to switch from Logs to APM, so make sure you define the same value when you use both products. See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes). + # The name of the application or service generating the log events. + # It is used to switch from Logs to APM, so make sure you define the same value when you use both products. + # See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes). attr_accessor :service # Attribute mapping from ruby-style variable name to JSON key. @@ -76,7 +82,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HTTPLogItem` initialize method" @@ -112,10 +119,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -154,7 +162,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -162,7 +170,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -268,7 +276,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] value 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) @@ -284,7 +292,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/http_method.rb b/lib/datadog_api_client/v1/models/http_method.rb index ebdea787cb5..7b98a4d4d59 100644 --- a/lib/datadog_api_client/v1/models/http_method.rb +++ b/lib/datadog_api_client/v1/models/http_method.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The HTTP method. class HTTPMethod GET = "GET".freeze POST = "POST".freeze @@ -43,5 +44,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 b859194a882..ba338a5ab68 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # The iframe widget allows you to embed a portion of any other web page on your dashboard. Only available on FREE layout dashboards. class IFrameWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Type of the iframe widget. attr_accessor :type # URL of the iframe. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IFrameWidgetDefinition` initialize method" @@ -86,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - if @url.nil? invalid_properties.push('invalid value for "url", url cannot be nil.') end @@ -135,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -143,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -249,7 +250,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] value 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) @@ -265,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/i_frame_widget_definition_type.rb b/lib/datadog_api_client/v1/models/i_frame_widget_definition_type.rb index 085bd51dbfe..d50e93777a7 100644 --- a/lib/datadog_api_client/v1/models/i_frame_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/i_frame_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the iframe widget. class IFrameWidgetDefinitionType IFRAME = "iframe".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 9be685c6724..851b1594561 100644 --- a/lib/datadog_api_client/v1/models/idp_form_data.rb +++ b/lib/datadog_api_client/v1/models/idp_form_data.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the IdP configuration. class IdpFormData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IdpFormData` initialize method" @@ -76,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @idp_file.nil? @@ -119,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -127,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -233,7 +234,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] value 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) @@ -249,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/idp_response.rb b/lib/datadog_api_client/v1/models/idp_response.rb index f8ec513b007..679ca6f2cec 100644 --- a/lib/datadog_api_client/v1/models/idp_response.rb +++ b/lib/datadog_api_client/v1/models/idp_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The IdP response object. class IdpResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IdpResponse` initialize method" @@ -76,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @message.nil? @@ -119,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -127,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -233,7 +234,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] value 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) @@ -249,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 2b5a2693b69..1aaa757c21c 100644 --- a/lib/datadog_api_client/v1/models/image_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/image_widget_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The image widget allows you to embed an image on your dashboard. An image can be a PNG, JPG, or animated GIF. Only available on FREE layout dashboards. class ImageWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,12 +29,18 @@ class ImageWidgetDefinition # Whether to display a border or not. attr_accessor :has_border + # Horizontal alignment. attr_accessor :horizontal_align + # Size of the margins around the image. + # **Note**: `small` and `large` values are deprecated. attr_accessor :margin + # How to size the image on the widget. The values are based on the image `object-fit` CSS properties. + # **Note**: `zoom`, `fit` and `center` values are deprecated. attr_accessor :sizing + # Type of the image widget. attr_accessor :type # URL of the image. @@ -43,6 +49,7 @@ class ImageWidgetDefinition # URL of the image in dark mode. attr_accessor :url_dark_theme + # Vertical alignment. attr_accessor :vertical_align # Attribute mapping from ruby-style variable name to JSON key. @@ -91,7 +98,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ImageWidgetDefinition` initialize method" @@ -149,14 +157,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - if @url.nil? invalid_properties.push('invalid value for "url", url cannot be nil.') end @@ -205,7 +212,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -213,7 +220,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -319,7 +326,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] value 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) @@ -335,7 +342,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/image_widget_definition_type.rb b/lib/datadog_api_client/v1/models/image_widget_definition_type.rb index 13629be45c5..3e02b318b99 100644 --- a/lib/datadog_api_client/v1/models/image_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/image_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the image widget. class ImageWidgetDefinitionType IMAGE = "image".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 2b1dac907a1..5aaeae35f6e 100644 --- a/lib/datadog_api_client/v1/models/intake_payload_accepted.rb +++ b/lib/datadog_api_client/v1/models/intake_payload_accepted.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The payload accepted for intake. class IntakePayloadAccepted - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IntakePayloadAccepted` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 f1cd5adec01..94c0675860a 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Available prefix information for the Agent endpoints. class IPPrefixesAgents - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesAgents` initialize method" @@ -89,10 +90,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -128,7 +130,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -136,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -242,7 +244,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] value 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) @@ -258,7 +260,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4722cf19079..e75beeb6488 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_api.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_api.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Available prefix information for the API endpoints. class IPPrefixesAPI - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesAPI` initialize method" @@ -89,10 +90,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -128,7 +130,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -136,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -242,7 +244,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] value 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) @@ -258,7 +260,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 9ecf8440023..85c56fbf2ce 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Available prefix information for the APM endpoints. class IPPrefixesAPM - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesAPM` initialize method" @@ -89,10 +90,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -128,7 +130,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -136,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -242,7 +244,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] value 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) @@ -258,7 +260,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 afee0881f24..1583eb0745b 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Available prefix information for the Logs endpoints. class IPPrefixesLogs - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesLogs` initialize method" @@ -89,10 +90,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -128,7 +130,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -136,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -242,7 +244,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] value 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) @@ -258,7 +260,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 1199deaa508..0a7517edb32 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_process.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_process.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Available prefix information for the Process endpoints. class IPPrefixesProcess - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesProcess` initialize method" @@ -89,10 +90,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -128,7 +130,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -136,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -242,7 +244,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] value 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) @@ -258,7 +260,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4f12211c7a9..0a12da81ba6 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Available prefix information for the Synthetics endpoints. class IPPrefixesSynthetics - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesSynthetics` initialize method" @@ -92,9 +93,7 @@ def initialize(attributes = {}) end if attributes.key?(:'prefixes_ipv4_by_location') - if (value = attributes[:'prefixes_ipv4_by_location']).is_a?(Hash) - self.prefixes_ipv4_by_location = value - end + self.prefixes_ipv4_by_location = attributes[:'prefixes_ipv4_by_location'] end if attributes.key?(:'prefixes_ipv6') @@ -104,17 +103,16 @@ def initialize(attributes = {}) end if attributes.key?(:'prefixes_ipv6_by_location') - if (value = attributes[:'prefixes_ipv6_by_location']).is_a?(Hash) - self.prefixes_ipv6_by_location = value - end + self.prefixes_ipv6_by_location = attributes[:'prefixes_ipv6_by_location'] end end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -152,7 +150,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -160,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -266,7 +264,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] value 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) @@ -282,7 +280,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 6fe6ffb6f38..60b0128a6aa 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Available prefix information for the Webhook endpoints. class IPPrefixesWebhooks - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesWebhooks` initialize method" @@ -89,10 +90,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -128,7 +130,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -136,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -242,7 +244,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] value 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) @@ -258,7 +260,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/ip_ranges.rb b/lib/datadog_api_client/v1/models/ip_ranges.rb index e96b7539d73..fb5e64880ed 100644 --- a/lib/datadog_api_client/v1/models/ip_ranges.rb +++ b/lib/datadog_api_client/v1/models/ip_ranges.rb @@ -19,28 +19,35 @@ module DatadogAPIClient::V1 # IP ranges. class IPRanges - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Available prefix information for the Agent endpoints. attr_accessor :agents + # Available prefix information for the API endpoints. attr_accessor :api + # Available prefix information for the APM endpoints. attr_accessor :apm + # Available prefix information for the Logs endpoints. attr_accessor :logs # Date when last updated, in the form `YYYY-MM-DD-hh-mm-ss`. attr_accessor :modified + # Available prefix information for the Process endpoints. attr_accessor :process + # Available prefix information for the Synthetics endpoints. attr_accessor :synthetics # Version of the IP list. attr_accessor :version + # Available prefix information for the Webhook endpoints. attr_accessor :webhooks # Attribute mapping from ruby-style variable name to JSON key. @@ -89,7 +96,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPRanges` initialize method" @@ -141,10 +149,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -187,7 +196,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -195,7 +204,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -301,7 +310,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] value 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) @@ -317,7 +326,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 8bc53ad2c8f..fb23949981d 100644 --- a/lib/datadog_api_client/v1/models/list_stream_column.rb +++ b/lib/datadog_api_client/v1/models/list_stream_column.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # Widget column. class ListStreamColumn - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Widget column field. attr_accessor :field + # Widget column width. attr_accessor :width # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ListStreamColumn` initialize method" @@ -84,14 +86,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @field.nil? invalid_properties.push('invalid value for "field", field cannot be nil.') end - if @width.nil? invalid_properties.push('invalid value for "width", width cannot be nil.') end @@ -133,7 +134,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -141,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -247,7 +248,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] value 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) @@ -263,7 +264,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/list_stream_column_width.rb b/lib/datadog_api_client/v1/models/list_stream_column_width.rb index 5fd70da20b7..9dce6e837bb 100644 --- a/lib/datadog_api_client/v1/models/list_stream_column_width.rb +++ b/lib/datadog_api_client/v1/models/list_stream_column_width.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Widget column width. class ListStreamColumnWidth AUTO = "auto".freeze COMPACT = "compact".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 5f032116436..16529fff7f2 100644 --- a/lib/datadog_api_client/v1/models/list_stream_query.rb +++ b/lib/datadog_api_client/v1/models/list_stream_query.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Updated list stream widget. class ListStreamQuery - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Source from which to query items to display in the stream. attr_accessor :data_source # List of indexes. @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ListStreamQuery` initialize method" @@ -97,14 +99,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data_source.nil? invalid_properties.push('invalid value for "data_source", data_source cannot be nil.') end - if @query_string.nil? invalid_properties.push('invalid value for "query_string", query_string cannot be nil.') end @@ -147,7 +148,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -155,7 +156,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -261,7 +262,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] value 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) @@ -277,7 +278,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/list_stream_response_format.rb b/lib/datadog_api_client/v1/models/list_stream_response_format.rb index 1cf4064a99e..f01f8ebc0cf 100644 --- a/lib/datadog_api_client/v1/models/list_stream_response_format.rb +++ b/lib/datadog_api_client/v1/models/list_stream_response_format.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Widget response format. class ListStreamResponseFormat EVENT_LIST = "event_list".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/list_stream_source.rb b/lib/datadog_api_client/v1/models/list_stream_source.rb index 8cdef66e728..d23d0af6330 100644 --- a/lib/datadog_api_client/v1/models/list_stream_source.rb +++ b/lib/datadog_api_client/v1/models/list_stream_source.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Source from which to query items to display in the stream. class ListStreamSource ISSUE_STREAM = "issue_stream".freeze LOGS_STREAM = "logs_stream".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 d86f0eaf19f..609c82c8506 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 @@ -17,13 +17,14 @@ require 'time' module DatadogAPIClient::V1 - # The list stream visualization displays a table of recent events in your application that match a search criteria using user-defined columns. + # The list stream visualization displays a table of recent events in your application that + # match a search criteria using user-defined columns. class ListStreamWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # Available legend sizes for a widget. Should be one of \"0\", \"2\", \"4\", \"8\", \"16\", or \"auto\". + # Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto". attr_accessor :legend_size # Request payload used to query items. @@ -32,16 +33,19 @@ class ListStreamWidgetDefinition # Whether or not to display the legend on this widget. attr_accessor :show_legend + # Time setting for the widget. attr_accessor :time # Title of the widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the list stream widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -88,7 +92,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ListStreamWidgetDefinition` initialize method" @@ -140,22 +145,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - - if @requests.length > 1 - invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') - end - - if @requests.length < 1 - invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') - end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -168,30 +164,10 @@ def list_invalid_properties # @!visibility private def valid? return false if @requests.nil? - return false if @requests.length > 1 - return false if @requests.length < 1 return false if @type.nil? true end - # Custom attribute writer method with validation - # @param requests [Object] requests Value to be assigned - def requests=(requests) - if requests.nil? - fail ArgumentError, 'requests cannot be nil' - end - - if requests.length > 1 - fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' - end - - if requests.length < 1 - fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' - end - - @requests = requests - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -223,7 +199,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -231,7 +207,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -337,7 +313,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] value 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) @@ -353,7 +329,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/list_stream_widget_definition_type.rb b/lib/datadog_api_client/v1/models/list_stream_widget_definition_type.rb index bd7496810a0..5b27216e90c 100644 --- a/lib/datadog_api_client/v1/models/list_stream_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/list_stream_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the list stream widget. class ListStreamWidgetDefinitionType LIST_STREAM = "list_stream".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 80aeccf432c..28a23a9fd0d 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V1 # Updated list stream widget. class ListStreamWidgetRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Widget columns. attr_accessor :columns + # Updated list stream widget. attr_accessor :query + # Widget response format. attr_accessor :response_format # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ListStreamWidgetRequest` initialize method" @@ -94,18 +97,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @columns.nil? invalid_properties.push('invalid value for "columns", columns cannot be nil.') end - if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end - if @response_format.nil? invalid_properties.push('invalid value for "response_format", response_format cannot be nil.') end @@ -149,7 +150,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -157,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -263,7 +264,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] value 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) @@ -279,7 +280,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/log.rb b/lib/datadog_api_client/v1/models/log.rb index 6118d3d99c2..990ec14a9e6 100644 --- a/lib/datadog_api_client/v1/models/log.rb +++ b/lib/datadog_api_client/v1/models/log.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Object describing a log after being processed and stored by Datadog. class Log - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # JSON object containing all log attributes and their associated values. attr_accessor :content # Unique ID of the Log. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Log` initialize method" @@ -84,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -123,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -131,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -237,7 +240,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] value 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) @@ -253,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/log_content.rb b/lib/datadog_api_client/v1/models/log_content.rb index 5c483d1209e..e7619cb2986 100644 --- a/lib/datadog_api_client/v1/models/log_content.rb +++ b/lib/datadog_api_client/v1/models/log_content.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # JSON object containing all log attributes and their associated values. class LogContent - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,10 +29,14 @@ class LogContent # Name of the machine from where the logs are being sent. attr_accessor :host - # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. + # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) + # of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. + # That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. attr_accessor :message - # The name of the application or service generating the log events. It is used to switch from Logs to APM, so make sure you define the same value when you use both products. + # The name of the application or service generating the log events. + # It is used to switch from Logs to APM, so make sure you define the same + # value when you use both products. attr_accessor :service # Array of tags associated with your log. @@ -81,7 +85,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogContent` initialize method" @@ -96,9 +101,7 @@ def initialize(attributes = {}) } if attributes.key?(:'attributes') - if (value = attributes[:'attributes']).is_a?(Hash) - self.attributes = value - end + self.attributes = attributes[:'attributes'] end if attributes.key?(:'host') @@ -114,9 +117,7 @@ def initialize(attributes = {}) end if attributes.key?(:'tags') - if (value = attributes[:'tags']).is_a?(Array) - self.tags = value - end + self.tags = attributes[:'tags'] end if attributes.key?(:'timestamp') @@ -125,10 +126,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -168,7 +170,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -176,7 +178,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -282,7 +284,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] value 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) @@ -298,7 +300,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 6dd4b4ca759..77f75fe81c3 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition.rb @@ -19,21 +19,23 @@ module DatadogAPIClient::V1 # The log query. class LogQueryDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Define computation for a log query. attr_accessor :compute # List of tag prefixes to group by in the case of a cluster check. attr_accessor :group_by - # A coma separated-list of index names. Use \"*\" query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes) + # A coma separated-list of index names. Use "*" query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes) attr_accessor :index # This field is mutually exclusive with `compute`. attr_accessor :multi_compute + # The query being made on the logs. attr_accessor :search # Attribute mapping from ruby-style variable name to JSON key. @@ -74,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogQueryDefinition` initialize method" @@ -114,10 +117,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -156,7 +160,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -164,7 +168,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -270,7 +274,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] value 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) @@ -286,7 +290,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ff51e955557..d9a09d7065d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Defined items in the group. class LogQueryDefinitionGroupBy - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class LogQueryDefinitionGroupBy # Maximum number of items in the group. attr_accessor :limit + # Define a sorting method. attr_accessor :sort # Attribute mapping from ruby-style variable name to JSON key. @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogQueryDefinitionGroupBy` initialize method" @@ -93,8 +95,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @facet.nil? @@ -138,7 +140,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -146,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -252,7 +254,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] value 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) @@ -268,7 +270,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 10e5be20e6b..8c5c22a803f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Define a sorting method. class LogQueryDefinitionGroupBySort - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class LogQueryDefinitionGroupBySort # Facet name. attr_accessor :facet + # Widget sorting methods. attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogQueryDefinitionGroupBySort` initialize method" @@ -93,14 +95,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @aggregation.nil? invalid_properties.push('invalid value for "aggregation", aggregation cannot be nil.') end - if @order.nil? invalid_properties.push('invalid value for "order", order cannot be nil.') end @@ -143,7 +144,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -151,7 +152,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -257,7 +258,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] value 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) @@ -273,7 +274,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 57799012ce1..d7bc2b108d2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The query being made on the logs. class LogQueryDefinitionSearch - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogQueryDefinitionSearch` initialize method" @@ -76,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @query.nil? @@ -119,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -127,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -233,7 +234,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] value 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) @@ -249,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 11d9c50f283..a933449abd2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The Log Stream displays a log flow matching the defined query. Only available on FREE layout dashboards. class LogStreamWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -32,6 +32,7 @@ class LogStreamWidgetDefinition # ID of the log set to use. attr_accessor :logset + # Amount of log lines to display attr_accessor :message_display # Query to filter the log stream with. @@ -43,18 +44,22 @@ class LogStreamWidgetDefinition # Whether to show the message column or not attr_accessor :show_message_column + # Which column and order to sort by attr_accessor :sort + # Time setting for the widget. attr_accessor :time # Title of the widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the log stream widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -111,7 +116,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogStreamWidgetDefinition` initialize method" @@ -185,8 +191,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -240,7 +246,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -248,7 +254,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -354,7 +360,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] value 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) @@ -370,7 +376,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/log_stream_widget_definition_type.rb b/lib/datadog_api_client/v1/models/log_stream_widget_definition_type.rb index cfa9c973f02..3e34222163b 100644 --- a/lib/datadog_api_client/v1/models/log_stream_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/log_stream_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the log stream widget. class LogStreamWidgetDefinitionType LOG_STREAM = "log_stream".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 5af64ef8b70..b68fe79874c 100644 --- a/lib/datadog_api_client/v1/models/logs_api_error.rb +++ b/lib/datadog_api_client/v1/models/logs_api_error.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Error returned by the Logs API class LogsAPIError - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsAPIError` initialize method" @@ -96,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -136,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -144,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -250,7 +252,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] value 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) @@ -266,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 31ddcf01977..386723fb28a 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Response returned by the Logs API when errors occur. class LogsAPIErrorResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Error returned by the Logs API attr_accessor :error # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsAPIErrorResponse` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 093c8f86aed..0743cf46701 100644 --- a/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb @@ -17,9 +17,29 @@ require 'time' module DatadogAPIClient::V1 - # Use the Arithmetic Processor to add a new attribute (without spaces or special characters in the new attribute name) to a log with the result of the provided formula. This enables you to remap different time attributes with different units into a single attribute, or to compute operations on attributes within the same log. The formula can use parentheses and the basic arithmetic operators `-`, `+`, `*`, `/`. By default, the calculation is skipped if an attribute is missing. Select “Replace missing attribute by 0” to automatically populate missing attribute values with 0 to ensure that the calculation is done. An attribute is missing if it is not found in the log attributes, or if it cannot be converted to a number. *Notes*: - The operator `-` needs to be space split in the formula as it can also be contained in attribute names. - If the target attribute already exists, it is overwritten by the result of the formula. - Results are rounded up to the 9th decimal. For example, if the result of the formula is `0.1234567891`, the actual value stored for the attribute is `0.123456789`. - If you need to scale a unit of measure, see [Scale Filter](https://docs.datadoghq.com/logs/log_configuration/parsing/?tab=filter#matcher-and-filter). + # Use the Arithmetic Processor to add a new attribute (without spaces or special characters + # in the new attribute name) to a log with the result of the provided formula. + # This enables you to remap different time attributes with different units into a single attribute, + # or to compute operations on attributes within the same log. + # + # The formula can use parentheses and the basic arithmetic operators `-`, `+`, `*`, `/`. + # + # By default, the calculation is skipped if an attribute is missing. + # Select “Replace missing attribute by 0” to automatically populate + # missing attribute values with 0 to ensure that the calculation is done. + # An attribute is missing if it is not found in the log attributes, + # or if it cannot be converted to a number. + # + # *Notes*: + # + # - The operator `-` needs to be space split in the formula as it can also be contained in attribute names. + # - If the target attribute already exists, it is overwritten by the result of the formula. + # - Results are rounded up to the 9th decimal. For example, if the result of the formula is `0.1234567891`, + # the actual value stored for the attribute is `0.123456789`. + # - If you need to scale a unit of measure, + # see [Scale Filter](https://docs.datadoghq.com/logs/log_configuration/parsing/?tab=filter#matcher-and-filter). class LogsArithmeticProcessor - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,7 +49,8 @@ class LogsArithmeticProcessor # Whether or not the processor is enabled. attr_accessor :is_enabled - # If `true`, it replaces all missing attributes of expression by `0`, `false` skip the operation if an attribute is missing. + # If `true`, it replaces all missing attributes of expression by `0`, `false` + # skip the operation if an attribute is missing. attr_accessor :is_replace_missing # Name of the processor. @@ -38,6 +59,7 @@ class LogsArithmeticProcessor # Name of the attribute that contains the result of the arithmetic operation. attr_accessor :target + # Type of logs arithmetic processor. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -80,7 +102,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsArithmeticProcessor` initialize method" @@ -126,18 +149,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @expression.nil? invalid_properties.push('invalid value for "expression", expression cannot be nil.') end - if @target.nil? invalid_properties.push('invalid value for "target", target cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -184,7 +205,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -192,7 +213,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -298,7 +319,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] value 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) @@ -314,7 +335,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_arithmetic_processor_type.rb b/lib/datadog_api_client/v1/models/logs_arithmetic_processor_type.rb index ecf52341c10..eeb9408f2ed 100644 --- a/lib/datadog_api_client/v1/models/logs_arithmetic_processor_type.rb +++ b/lib/datadog_api_client/v1/models/logs_arithmetic_processor_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of logs arithmetic processor. class LogsArithmeticProcessorType ARITHMETIC_PROCESSOR = "arithmetic-processor".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 47dff2e22fe..8c1d3d41e92 100644 --- a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb @@ -17,9 +17,11 @@ require 'time' module DatadogAPIClient::V1 - # The remapper processor remaps any source attribute(s) or tag to another target attribute or tag. Constraints on the tag/attribute name are explained in the [Tag Best Practice documentation](https://docs.datadoghq.com/logs/guide/log-parsing-best-practice). Some additional constraints are applied as `:` or `,` are not allowed in the target tag/attribute name. + # The remapper processor remaps any source attribute(s) or tag to another target attribute or tag. + # Constraints on the tag/attribute name are explained in the [Tag Best Practice documentation](https://docs.datadoghq.com/logs/guide/log-parsing-best-practice). + # Some additional constraints are applied as `:` or `,` are not allowed in the target tag/attribute name. class LogsAttributeRemapper - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -44,11 +46,15 @@ class LogsAttributeRemapper # Final attribute or tag name to remap the sources to. attr_accessor :target + # If the `target_type` of the remapper is `attribute`, try to cast the value to a new specific type. + # If the cast is not possible, the original type is kept. `string`, `integer`, or `double` are the possible types. + # If the `target_type` is `tag`, this parameter may not be specified. attr_accessor :target_format # Defines if the final attribute or tag name is from log `attribute` or `tag`. attr_accessor :target_type + # Type of logs attribute remapper. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -99,7 +105,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsAttributeRemapper` initialize method" @@ -169,18 +176,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @sources.nil? invalid_properties.push('invalid value for "sources", sources cannot be nil.') end - if @target.nil? invalid_properties.push('invalid value for "target", target cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -231,7 +236,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -239,7 +244,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -345,7 +350,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] value 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) @@ -361,7 +366,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_attribute_remapper_type.rb b/lib/datadog_api_client/v1/models/logs_attribute_remapper_type.rb index ea5eb47c606..a5d00080036 100644 --- a/lib/datadog_api_client/v1/models/logs_attribute_remapper_type.rb +++ b/lib/datadog_api_client/v1/models/logs_attribute_remapper_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of logs attribute remapper. class LogsAttributeRemapperType ATTRIBUTE_REMAPPER = "attribute-remapper".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 3b71a10f038..f8df1db1d1a 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention.rb @@ -19,15 +19,17 @@ module DatadogAPIClient::V1 # Object containing logs usage data broken down by retention period. class LogsByRetention - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Indexed logs usage summary for each organization for each retention period with usage. attr_accessor :orgs # Aggregated index logs usage for each retention period with usage. attr_accessor :usage + # Object containing a summary of indexed logs usage by retention period for a single month. attr_accessor :usage_by_month # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsByRetention` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 d48bac64923..d489a2cf753 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing a summary of indexed logs usage by retention period for a single month. class LogsByRetentionMonthlyUsage - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsByRetentionMonthlyUsage` initialize method" @@ -87,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -126,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -134,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -240,7 +242,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] value 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) @@ -256,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 000c99812ad..263e737723d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Indexed logs usage by retention for a single organization. class LogsByRetentionOrgUsage - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsByRetentionOrgUsage` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 cb776a3cce2..b17d2fa5a87 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Indexed logs usage summary for each organization for each retention period with usage. class LogsByRetentionOrgs - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsByRetentionOrgs` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 66e8062935f..2a1d79cf30f 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor.rb @@ -17,13 +17,26 @@ require 'time' module DatadogAPIClient::V1 - # Use the Category Processor to add a new attribute (without spaces or special characters in the new attribute name) to a log matching a provided search query. Use categories to create groups for an analytical view. For example, URL groups, machine groups, environments, and response time buckets. **Notes**: - The syntax of the query is the one of Logs Explorer search bar. The query can be done on any log attribute or tag, whether it is a facet or not. Wildcards can also be used inside your query. - Once the log has matched one of the Processor queries, it stops. Make sure they are properly ordered in case a log could match several queries. - The names of the categories must be unique. - Once defined in the Category Processor, you can map categories to log status using the Log Status Remapper. + # Use the Category Processor to add a new attribute (without spaces or special characters in the new attribute name) + # to a log matching a provided search query. Use categories to create groups for an analytical view. + # For example, URL groups, machine groups, environments, and response time buckets. + # + # **Notes**: + # + # - The syntax of the query is the one of Logs Explorer search bar. + # The query can be done on any log attribute or tag, whether it is a facet or not. + # Wildcards can also be used inside your query. + # - Once the log has matched one of the Processor queries, it stops. + # Make sure they are properly ordered in case a log could match several queries. + # - The names of the categories must be unique. + # - Once defined in the Category Processor, you can map categories to log status using the Log Status Remapper. class LogsCategoryProcessor - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # Array of filters to match or not a log and their corresponding `name`to assign a custom value to the log. + # Array of filters to match or not a log and their + # corresponding `name`to assign a custom value to the log. attr_accessor :categories # Whether or not the processor is enabled. @@ -35,6 +48,7 @@ class LogsCategoryProcessor # Name of the target attribute which value is defined by the matching category. attr_accessor :target + # Type of logs category processor. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -75,7 +89,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsCategoryProcessor` initialize method" @@ -117,18 +132,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @categories.nil? invalid_properties.push('invalid value for "categories", categories cannot be nil.') end - if @target.nil? invalid_properties.push('invalid value for "target", target cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -174,7 +187,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -182,7 +195,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -288,7 +301,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] value 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) @@ -304,7 +317,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 449a866e1ef..2ab5e6af1ea 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Object describing the logs filter. class LogsCategoryProcessorCategory - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Filter for logs. attr_accessor :filter # Value to assign to the target attribute. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsCategoryProcessorCategory` initialize method" @@ -84,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -123,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -131,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -237,7 +240,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] value 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) @@ -253,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_category_processor_type.rb b/lib/datadog_api_client/v1/models/logs_category_processor_type.rb index 03daf13a667..00941d070e0 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor_type.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of logs category processor. class LogsCategoryProcessorType CATEGORY_PROCESSOR = "category-processor".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 cd33db0dd95..a1f6e1703ca 100644 --- a/lib/datadog_api_client/v1/models/logs_date_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_date_remapper.rb @@ -17,9 +17,27 @@ require 'time' module DatadogAPIClient::V1 - # As Datadog receives logs, it timestamps them using the value(s) from any of these default attributes. - `timestamp` - `date` - `_timestamp` - `Timestamp` - `eventTime` - `published_date` If your logs put their dates in an attribute not in this list, use the log date Remapper Processor to define their date attribute as the official log timestamp. The recognized date formats are ISO8601, UNIX (the milliseconds EPOCH format), and RFC3164. **Note:** If your logs don’t contain any of the default attributes and you haven’t defined your own date attribute, Datadog timestamps the logs with the date it received them. If multiple log date remapper processors can be applied to a given log, only the first one (according to the pipelines order) is taken into account. + # As Datadog receives logs, it timestamps them using the value(s) from any of these default attributes. + # + # - `timestamp` + # - `date` + # - `_timestamp` + # - `Timestamp` + # - `eventTime` + # - `published_date` + # + # If your logs put their dates in an attribute not in this list, + # use the log date Remapper Processor to define their date attribute as the official log timestamp. + # The recognized date formats are ISO8601, UNIX (the milliseconds EPOCH format), and RFC3164. + # + # **Note:** If your logs don’t contain any of the default attributes + # and you haven’t defined your own date attribute, Datadog timestamps + # the logs with the date it received them. + # + # If multiple log date remapper processors can be applied to a given log, + # only the first one (according to the pipelines order) is taken into account. class LogsDateRemapper - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -32,6 +50,7 @@ class LogsDateRemapper # Array of source attributes. attr_accessor :sources + # Type of logs date remapper. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -70,7 +89,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsDateRemapper` initialize method" @@ -108,14 +128,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @sources.nil? invalid_properties.push('invalid value for "sources", sources cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -159,7 +178,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -167,7 +186,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -273,7 +292,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] value 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) @@ -289,7 +308,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_date_remapper_type.rb b/lib/datadog_api_client/v1/models/logs_date_remapper_type.rb index a7c33c8c129..2340c9b1b88 100644 --- a/lib/datadog_api_client/v1/models/logs_date_remapper_type.rb +++ b/lib/datadog_api_client/v1/models/logs_date_remapper_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of logs date remapper. class LogsDateRemapperType DATE_REMAPPER = "date-remapper".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_exclusion.rb b/lib/datadog_api_client/v1/models/logs_exclusion.rb index 83c62969997..3dc2c4d1f10 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Represents the index exclusion filter object from configuration API. class LogsExclusion - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Exclusion filter is defined by a query, a sampling rule, and a active/inactive toggle. attr_accessor :filter # Whether or not the exclusion filter is active. @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsExclusion` initialize method" @@ -93,8 +95,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -138,7 +140,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -146,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -252,7 +254,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] value 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) @@ -268,7 +270,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 66be4bdbbc4..d2aeca8a013 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb @@ -19,14 +19,16 @@ module DatadogAPIClient::V1 # Exclusion filter is defined by a query, a sampling rule, and a active/inactive toggle. class LogsExclusionFilter - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # Default query is `*`, meaning all logs flowing in the index would be excluded. Scope down exclusion filter to only a subset of logs with a log query. + # Default query is `*`, meaning all logs flowing in the index would be excluded. + # Scope down exclusion filter to only a subset of logs with a log query. attr_accessor :query - # Sample rate to apply to logs going through this exclusion filter, a value of 1.0 excludes all logs matching the query. + # Sample rate to apply to logs going through this exclusion filter, + # a value of 1.0 excludes all logs matching the query. attr_accessor :sample_rate # Attribute mapping from ruby-style variable name to JSON key. @@ -61,7 +63,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsExclusionFilter` initialize method" @@ -85,8 +88,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @sample_rate.nil? @@ -129,7 +132,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -137,7 +140,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -243,7 +246,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] value 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) @@ -259,7 +262,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_filter.rb b/lib/datadog_api_client/v1/models/logs_filter.rb index f7afb19321a..6877e389c86 100644 --- a/lib/datadog_api_client/v1/models/logs_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_filter.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Filter for logs. class LogsFilter - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsFilter` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 053a25966c3..ec93f000207 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 @@ -17,9 +17,10 @@ require 'time' module DatadogAPIClient::V1 - # The GeoIP parser takes an IP address attribute and extracts if available the Continent, Country, Subdivision, and City information in the target attribute path. + # The GeoIP parser takes an IP address attribute and extracts if available + # the Continent, Country, Subdivision, and City information in the target attribute path. class LogsGeoIPParser - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -35,6 +36,7 @@ class LogsGeoIPParser # Name of the parent attribute that contains all the extracted details from the `sources`. attr_accessor :target + # Type of GeoIP parser. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -75,7 +77,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsGeoIPParser` initialize method" @@ -103,6 +106,8 @@ def initialize(attributes = {}) if (value = attributes[:'sources']).is_a?(Array) self.sources = value end + else + self.sources = ['network.client.ip'] end if attributes.key?(:'target') @@ -119,18 +124,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @sources.nil? invalid_properties.push('invalid value for "sources", sources cannot be nil.') end - if @target.nil? invalid_properties.push('invalid value for "target", target cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -176,7 +179,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -184,7 +187,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -290,7 +293,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] value 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) @@ -306,7 +309,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_geo_ip_parser_type.rb b/lib/datadog_api_client/v1/models/logs_geo_ip_parser_type.rb index bccf6bad788..c41a7fdacee 100644 --- a/lib/datadog_api_client/v1/models/logs_geo_ip_parser_type.rb +++ b/lib/datadog_api_client/v1/models/logs_geo_ip_parser_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of GeoIP parser. class LogsGeoIPParserType GEO_IP_PARSER = "geo-ip-parser".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 6ee0f50acfd..7646c5d96a3 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser.rb @@ -17,12 +17,14 @@ require 'time' module DatadogAPIClient::V1 - # Create custom grok rules to parse the full message or [a specific attribute of your raw event](https://docs.datadoghq.com/logs/log_configuration/parsing/#advanced-settings). For more information, see the [parsing section](https://docs.datadoghq.com/logs/log_configuration/parsing). + # Create custom grok rules to parse the full message or [a specific attribute of your raw event](https://docs.datadoghq.com/logs/log_configuration/parsing/#advanced-settings). + # For more information, see the [parsing section](https://docs.datadoghq.com/logs/log_configuration/parsing). class LogsGrokParser - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Set of rules for the grok parser. attr_accessor :grok # Whether or not the processor is enabled. @@ -37,6 +39,7 @@ class LogsGrokParser # Name of the log attribute to parse. attr_accessor :source + # Type of logs grok parser. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -79,7 +82,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsGrokParser` initialize method" @@ -127,22 +131,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @grok.nil? invalid_properties.push('invalid value for "grok", grok cannot be nil.') end - - if !@samples.nil? && @samples.length > 5 - invalid_properties.push('invalid value for "samples", number of items must be less than or equal to 5.') - end - if @source.nil? invalid_properties.push('invalid value for "source", source cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -155,22 +153,11 @@ def list_invalid_properties # @!visibility private def valid? return false if @grok.nil? - return false if !@samples.nil? && @samples.length > 5 return false if @source.nil? return false if @type.nil? true end - # Custom attribute writer method with validation - # @param samples [Object] samples Value to be assigned - def samples=(samples) - if !samples.nil? && samples.length > 5 - fail ArgumentError, 'invalid value for "samples", number of items must be less than or equal to 5.' - end - - @samples = samples - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -200,7 +187,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -208,7 +195,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -314,7 +301,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] value 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) @@ -330,7 +317,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 2d8377be66e..69e3ae2b6be 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Set of rules for the grok parser. class LogsGrokParserRules - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsGrokParserRules` initialize method" @@ -87,8 +88,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @match_rules.nil? @@ -131,7 +132,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -139,7 +140,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -245,7 +246,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] value 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) @@ -261,7 +262,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_grok_parser_type.rb b/lib/datadog_api_client/v1/models/logs_grok_parser_type.rb index 2e5729dc9a5..832c2c21b18 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser_type.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of logs grok parser. class LogsGrokParserType GROK_PARSER = "grok-parser".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_index.rb b/lib/datadog_api_client/v1/models/logs_index.rb index d444782c58e..8b276abe038 100644 --- a/lib/datadog_api_client/v1/models/logs_index.rb +++ b/lib/datadog_api_client/v1/models/logs_index.rb @@ -19,25 +19,30 @@ module DatadogAPIClient::V1 # Object describing a Datadog Log index. class LogsIndex - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # The number of log events you can send in this index per day before you are rate-limited. attr_accessor :daily_limit - # An array of exclusion objects. The logs are tested against the query of each filter, following the order of the array. Only the first matching active exclusion matters, others (if any) are ignored. + # An array of exclusion objects. The logs are tested against the query of each filter, + # following the order of the array. Only the first matching active exclusion matters, + # others (if any) are ignored. attr_accessor :exclusion_filters + # Filter for logs. attr_accessor :filter - # A boolean stating if the index is rate limited, meaning more logs than the daily limit have been sent. Rate limit is reset every-day at 2pm UTC. + # A boolean stating if the index is rate limited, meaning more logs than the daily limit have been sent. + # Rate limit is reset every-day at 2pm UTC. attr_accessor :is_rate_limited # The name of the index. attr_accessor :name - # The number of days before logs are deleted from this index. Available values depend on retention plans specified in your organization's contract/subscriptions. + # The number of days before logs are deleted from this index. Available values depend on + # retention plans specified in your organization's contract/subscriptions. attr_accessor :num_retention_days # Attribute mapping from ruby-style variable name to JSON key. @@ -80,7 +85,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsIndex` initialize method" @@ -122,14 +128,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @filter.nil? invalid_properties.push('invalid value for "filter", filter cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end @@ -175,7 +180,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -183,7 +188,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -289,7 +294,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] value 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) @@ -305,7 +310,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 c4b4faeffde..0d55a8dd6cb 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object with all Index configurations for a given organization. class LogsIndexListResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsIndexListResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 e920f9e94b6..9ead759d525 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 @@ -19,22 +19,31 @@ module DatadogAPIClient::V1 # Object for updating a Datadog Log index. class LogsIndexUpdateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # The number of log events you can send in this index per day before you are rate-limited. attr_accessor :daily_limit - # If true, sets the `daily_limit` value to null and the index is not limited on a daily basis (any specified `daily_limit` value in the request is ignored). If false or omitted, the index's current `daily_limit` is maintained. + # If true, sets the `daily_limit` value to null and the index is not limited on a daily basis (any + # specified `daily_limit` value in the request is ignored). If false or omitted, the index's current + # `daily_limit` is maintained. attr_accessor :disable_daily_limit - # An array of exclusion objects. The logs are tested against the query of each filter, following the order of the array. Only the first matching active exclusion matters, others (if any) are ignored. + # An array of exclusion objects. The logs are tested against the query of each filter, + # following the order of the array. Only the first matching active exclusion matters, + # others (if any) are ignored. attr_accessor :exclusion_filters + # Filter for logs. attr_accessor :filter - # The number of days before logs are deleted from this index. Available values depend on retention plans specified in your organization's contract/subscriptions. **Note:** Changing the retention for an index adjusts the length of retention for all logs already in this index. It may also affect billing. + # The number of days before logs are deleted from this index. Available values depend on + # retention plans specified in your organization's contract/subscriptions. + # + # **Note:** Changing the retention for an index adjusts the length of retention for all logs + # already in this index. It may also affect billing. attr_accessor :num_retention_days # Attribute mapping from ruby-style variable name to JSON key. @@ -75,7 +84,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsIndexUpdateRequest` initialize method" @@ -113,8 +123,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @filter.nil? @@ -160,7 +170,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -168,7 +178,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -274,7 +284,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] value 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) @@ -290,7 +300,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 6e38f19d6f2..bd6d0fd350c 100644 --- a/lib/datadog_api_client/v1/models/logs_indexes_order.rb +++ b/lib/datadog_api_client/v1/models/logs_indexes_order.rb @@ -19,11 +19,13 @@ module DatadogAPIClient::V1 # Object containing the ordered list of log index names. class LogsIndexesOrder - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # Array of strings identifying by their name(s) the index(es) of your organization. Logs are tested against the query filter of each index one by one, following the order of the array. Logs are eventually stored in the first matching index. + # Array of strings identifying by their name(s) the index(es) of your organization. + # Logs are tested against the query filter of each index one by one, following the order of the array. + # Logs are eventually stored in the first matching index. attr_accessor :index_names # Attribute mapping from ruby-style variable name to JSON key. @@ -56,7 +58,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsIndexesOrder` initialize method" @@ -78,8 +81,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @index_names.nil? @@ -121,7 +124,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -129,7 +132,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -235,7 +238,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] value 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) @@ -251,7 +254,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 045b8dd9470..daee085d076 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request.rb @@ -19,11 +19,12 @@ module DatadogAPIClient::V1 # Object to send with the request to retrieve a list of logs from your Organization. class LogsListRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # The log index on which the request is performed. For multi-index organizations, the default is all live indexes. Historical indexes of rehydrated logs must be specified. + # The log index on which the request is performed. For multi-index organizations, + # the default is all live indexes. Historical indexes of rehydrated logs must be specified. attr_accessor :index # Number of logs return in the response. @@ -32,11 +33,17 @@ class LogsListRequest # The search query - following the log search syntax. attr_accessor :query + # Time-ascending `asc` or time-descending `desc`results. attr_accessor :sort - # Hash identifier of the first log to return in the list, available in a log `id` attribute. This parameter is used for the pagination feature. **Note**: This parameter is ignored if the corresponding log is out of the scope of the specified time window. + # Hash identifier of the first log to return in the list, available in a log `id` attribute. + # This parameter is used for the pagination feature. + # + # **Note**: This parameter is ignored if the corresponding log + # is out of the scope of the specified time window. attr_accessor :start_at + # Timeframe to retrieve the log from. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. @@ -79,7 +86,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsListRequest` initialize method" @@ -119,14 +127,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@limit.nil? && @limit > 1000 - invalid_properties.push('invalid value for "limit", must be smaller than or equal to 1000.') - end - if @time.nil? invalid_properties.push('invalid value for "time", time cannot be nil.') end @@ -138,21 +142,10 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@limit.nil? && @limit > 1000 return false if @time.nil? true end - # Custom attribute writer method with validation - # @param limit [Object] limit Value to be assigned - def limit=(limit) - if !limit.nil? && limit > 1000 - fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 1000.' - end - - @limit = limit - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -182,7 +175,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -190,7 +183,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -296,7 +289,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] value 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) @@ -312,7 +305,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 75fe72c2c70..8724833dd9c 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 @@ -19,14 +19,15 @@ module DatadogAPIClient::V1 # Timeframe to retrieve the log from. class LogsListRequestTime - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Minimum timestamp for requested logs. attr_accessor :from - # Timezone can be specified both as an offset (for example \"UTC+03:00\") or a regional zone (for example \"Europe/Paris\"). + # Timezone can be specified both as an offset (for example "UTC+03:00") + # or a regional zone (for example "Europe/Paris"). attr_accessor :timezone # Maximum timestamp for requested logs. @@ -66,7 +67,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsListRequestTime` initialize method" @@ -94,14 +96,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @from.nil? invalid_properties.push('invalid value for "from", from cannot be nil.') end - if @to.nil? invalid_properties.push('invalid value for "to", to cannot be nil.') end @@ -144,7 +145,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +153,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +259,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] value 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) @@ -274,7 +275,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 e94e6154425..62d154f1ffd 100644 --- a/lib/datadog_api_client/v1/models/logs_list_response.rb +++ b/lib/datadog_api_client/v1/models/logs_list_response.rb @@ -19,14 +19,15 @@ module DatadogAPIClient::V1 # Response object with all logs matching the request and pagination information. class LogsListResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Array of logs matching the request and the `nextLogId` if sent. attr_accessor :logs - # Hash identifier of the next log to return in the list. This parameter is used for the pagination feature. + # Hash identifier of the next log to return in the list. + # This parameter is used for the pagination feature. attr_accessor :next_log_id # Status of the response. @@ -66,7 +67,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsListResponse` initialize method" @@ -96,10 +98,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -136,7 +139,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -144,7 +147,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -250,7 +253,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] value 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) @@ -266,7 +269,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 69dfd748489..4a7a22498b3 100644 --- a/lib/datadog_api_client/v1/models/logs_lookup_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_lookup_processor.rb @@ -17,9 +17,14 @@ require 'time' module DatadogAPIClient::V1 - # Use the Lookup Processor to define a mapping between a log attribute and a human readable value saved in the processors mapping table. For example, you can use the Lookup Processor to map an internal service ID into a human readable service name. Alternatively, you could also use it to check if the MAC address that just attempted to connect to the production environment belongs to your list of stolen machines. + # Use the Lookup Processor to define a mapping between a log attribute + # and a human readable value saved in the processors mapping table. + # For example, you can use the Lookup Processor to map an internal service ID + # into a human readable service name. Alternatively, you could also use it to check + # if the MAC address that just attempted to connect to the production + # environment belongs to your list of stolen machines. class LogsLookupProcessor - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,7 +34,8 @@ class LogsLookupProcessor # Whether or not the processor is enabled. attr_accessor :is_enabled - # Mapping table of values for the source attribute and their associated target attribute values, formatted as `[\"source_key1,target_value1\", \"source_key2,target_value2\"]` + # Mapping table of values for the source attribute and their associated target attribute values, + # formatted as `["source_key1,target_value1", "source_key2,target_value2"]` attr_accessor :lookup_table # Name of the processor. @@ -38,9 +44,11 @@ class LogsLookupProcessor # Source attribute used to perform the lookup. attr_accessor :source - # Name of the attribute that contains the corresponding value in the mapping list or the `default_lookup` if not found in the mapping list. + # Name of the attribute that contains the corresponding value in the mapping list + # or the `default_lookup` if not found in the mapping list. attr_accessor :target + # Type of logs lookup processor. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -85,7 +93,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsLookupProcessor` initialize method" @@ -135,22 +144,19 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @lookup_table.nil? invalid_properties.push('invalid value for "lookup_table", lookup_table cannot be nil.') end - if @source.nil? invalid_properties.push('invalid value for "source", source cannot be nil.') end - if @target.nil? invalid_properties.push('invalid value for "target", target cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -199,7 +205,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -207,7 +213,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -313,7 +319,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] value 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) @@ -329,7 +335,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_lookup_processor_type.rb b/lib/datadog_api_client/v1/models/logs_lookup_processor_type.rb index 6d3a03d26d8..99503aeb591 100644 --- a/lib/datadog_api_client/v1/models/logs_lookup_processor_type.rb +++ b/lib/datadog_api_client/v1/models/logs_lookup_processor_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of logs lookup processor. class LogsLookupProcessorType LOOKUP_PROCESSOR = "lookup-processor".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 dead6512888..6300a4cf672 100644 --- a/lib/datadog_api_client/v1/models/logs_message_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_message_remapper.rb @@ -17,9 +17,14 @@ require 'time' module DatadogAPIClient::V1 - # The message is a key attribute in Datadog. It is displayed in the message column of the Log Explorer and you can do full string search on it. Use this Processor to define one or more attributes as the official log message. **Note:** If multiple log message remapper processors can be applied to a given log, only the first one (according to the pipeline order) is taken into account. + # The message is a key attribute in Datadog. + # It is displayed in the message column of the Log Explorer and you can do full string search on it. + # Use this Processor to define one or more attributes as the official log message. + # + # **Note:** If multiple log message remapper processors can be applied to a given log, + # only the first one (according to the pipeline order) is taken into account. class LogsMessageRemapper - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -32,6 +37,7 @@ class LogsMessageRemapper # Array of source attributes. attr_accessor :sources + # Type of logs message remapper. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -70,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsMessageRemapper` initialize method" @@ -98,6 +105,8 @@ def initialize(attributes = {}) if (value = attributes[:'sources']).is_a?(Array) self.sources = value end + else + self.sources = ['msg'] end if attributes.key?(:'type') @@ -108,14 +117,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @sources.nil? invalid_properties.push('invalid value for "sources", sources cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -159,7 +167,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -167,7 +175,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -273,7 +281,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] value 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) @@ -289,7 +297,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_message_remapper_type.rb b/lib/datadog_api_client/v1/models/logs_message_remapper_type.rb index 11643b8a26c..8dc29b912c7 100644 --- a/lib/datadog_api_client/v1/models/logs_message_remapper_type.rb +++ b/lib/datadog_api_client/v1/models/logs_message_remapper_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of logs message remapper. class LogsMessageRemapperType MESSAGE_REMAPPER = "message-remapper".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_pipeline.rb b/lib/datadog_api_client/v1/models/logs_pipeline.rb index 33ea8d4c555..360e8b79372 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline.rb @@ -17,12 +17,17 @@ require 'time' module DatadogAPIClient::V1 - # Pipelines and processors operate on incoming logs, parsing and transforming them into structured attributes for easier querying. **Note**: These endpoints are only available for admin users. Make sure to use an application key created by an admin. + # Pipelines and processors operate on incoming logs, + # parsing and transforming them into structured attributes for easier querying. + # + # **Note**: These endpoints are only available for admin users. + # Make sure to use an application key created by an admin. class LogsPipeline - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Filter for logs. attr_accessor :filter # ID of the pipeline. @@ -85,7 +90,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsPipeline` initialize method" @@ -131,8 +137,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -180,7 +186,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -188,7 +194,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -294,7 +300,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] value 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) @@ -310,7 +316,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 c590e67398e..2e5a43338b5 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb @@ -17,12 +17,17 @@ require 'time' module DatadogAPIClient::V1 - # Nested Pipelines are pipelines within a pipeline. Use Nested Pipelines to split the processing into two steps. For example, first use a high-level filtering such as team and then a second level of filtering based on the integration, service, or any other tag or attribute. A pipeline can contain Nested Pipelines and Processors whereas a Nested Pipeline can only contain Processors. + # Nested Pipelines are pipelines within a pipeline. Use Nested Pipelines to split the processing into two steps. + # For example, first use a high-level filtering such as team and then a second level of filtering based on the + # integration, service, or any other tag or attribute. + # + # A pipeline can contain Nested Pipelines and Processors whereas a Nested Pipeline can only contain Processors. class LogsPipelineProcessor - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Filter for logs. attr_accessor :filter # Whether or not the processor is enabled. @@ -34,6 +39,7 @@ class LogsPipelineProcessor # Ordered list of processors in this pipeline. attr_accessor :processors + # Type of logs pipeline processor. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -74,7 +80,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsPipelineProcessor` initialize method" @@ -116,8 +123,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -163,7 +170,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -171,7 +178,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -277,7 +284,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] value 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) @@ -293,7 +300,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_pipeline_processor_type.rb b/lib/datadog_api_client/v1/models/logs_pipeline_processor_type.rb index b9403da14ff..5fd182be425 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline_processor_type.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline_processor_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of logs pipeline processor. class LogsPipelineProcessorType PIPELINE = "pipeline".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 e226370347a..0cb19c04a72 100644 --- a/lib/datadog_api_client/v1/models/logs_pipelines_order.rb +++ b/lib/datadog_api_client/v1/models/logs_pipelines_order.rb @@ -19,11 +19,12 @@ module DatadogAPIClient::V1 # Object containing the ordered list of pipeline IDs. class LogsPipelinesOrder - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # Ordered Array of `` strings, the order of pipeline IDs in the array define the overall Pipelines order for Datadog. + # Ordered Array of `` strings, the order of pipeline IDs in the array + # define the overall Pipelines order for Datadog. attr_accessor :pipeline_ids # Attribute mapping from ruby-style variable name to JSON key. @@ -56,7 +57,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsPipelinesOrder` initialize method" @@ -78,8 +80,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @pipeline_ids.nil? @@ -121,7 +123,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -129,7 +131,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -235,7 +237,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] value 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) @@ -251,7 +253,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_processor.rb b/lib/datadog_api_client/v1/models/logs_processor.rb index fdcf85025be..95944487d2a 100644 --- a/lib/datadog_api_client/v1/models/logs_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_processor.rb @@ -25,24 +25,23 @@ class << self # List of class defined in oneOf (OpenAPI v3) def openapi_one_of [ - :'LogsArithmeticProcessor', + :'LogsGrokParser', + :'LogsDateRemapper', + :'LogsStatusRemapper', + :'LogsServiceRemapper', + :'LogsMessageRemapper', :'LogsAttributeRemapper', + :'LogsURLParser', + :'LogsUserAgentParser', :'LogsCategoryProcessor', - :'LogsDateRemapper', + :'LogsArithmeticProcessor', + :'LogsStringBuilderProcessor', + :'LogsPipelineProcessor', :'LogsGeoIPParser', - :'LogsGrokParser', :'LogsLookupProcessor', - :'LogsMessageRemapper', - :'LogsPipelineProcessor', - :'LogsServiceRemapper', - :'LogsStatusRemapper', - :'LogsStringBuilderProcessor', - :'LogsTraceRemapper', - :'LogsURLParser', - :'LogsUserAgentParser' + :'LogsTraceRemapper' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -70,7 +69,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V1::UnparsedObject.new(data) end - end private @@ -128,4 +126,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 e601f5bbc8d..3a61773f9ab 100644 --- a/lib/datadog_api_client/v1/models/logs_query_compute.rb +++ b/lib/datadog_api_client/v1/models/logs_query_compute.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Define computation for a log query. class LogsQueryCompute - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsQueryCompute` initialize method" @@ -94,8 +95,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @aggregation.nil? @@ -139,7 +140,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -147,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -253,7 +254,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] value 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) @@ -269,7 +270,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4d4e29ee6ac..1c06901b879 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing indexed logs usage aggregated across organizations and months for a retention period. class LogsRetentionAggSumUsage - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -32,7 +32,7 @@ class LogsRetentionAggSumUsage # Rehydrated indexed logs for this retention period. attr_accessor :logs_rehydrated_indexed_logs_usage_agg_sum - # The retention period in days or \"custom\" for all custom retention periods. + # The retention period in days or "custom" for all custom retention periods. attr_accessor :retention # Attribute mapping from ruby-style variable name to JSON key. @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsRetentionAggSumUsage` initialize method" @@ -103,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -144,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +260,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] value 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) @@ -274,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 24ebb68fa40..3eb3945444f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing indexed logs usage grouped by retention period and summed. class LogsRetentionSumUsage - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -32,7 +32,7 @@ class LogsRetentionSumUsage # Rehydrated indexed logs for this retention period. attr_accessor :logs_rehydrated_indexed_logs_usage_sum - # The retention period in days or \"custom\" for all custom retention periods. + # The retention period in days or "custom" for all custom retention periods. attr_accessor :retention # Attribute mapping from ruby-style variable name to JSON key. @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsRetentionSumUsage` initialize method" @@ -103,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -144,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +260,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] value 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) @@ -274,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 df039f52afe..9e8ae785c62 100644 --- a/lib/datadog_api_client/v1/models/logs_service_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_service_remapper.rb @@ -17,9 +17,12 @@ require 'time' module DatadogAPIClient::V1 - # Use this processor if you want to assign one or more attributes as the official service. **Note:** If multiple service remapper processors can be applied to a given log, only the first one (according to the pipeline order) is taken into account. + # Use this processor if you want to assign one or more attributes as the official service. + # + # **Note:** If multiple service remapper processors can be applied to a given log, + # only the first one (according to the pipeline order) is taken into account. class LogsServiceRemapper - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -32,6 +35,7 @@ class LogsServiceRemapper # Array of source attributes. attr_accessor :sources + # Type of logs service remapper. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -70,7 +74,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsServiceRemapper` initialize method" @@ -108,14 +113,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @sources.nil? invalid_properties.push('invalid value for "sources", sources cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -159,7 +163,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -167,7 +171,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -273,7 +277,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] value 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) @@ -289,7 +293,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_service_remapper_type.rb b/lib/datadog_api_client/v1/models/logs_service_remapper_type.rb index b5b7ebcc06a..b82880fd482 100644 --- a/lib/datadog_api_client/v1/models/logs_service_remapper_type.rb +++ b/lib/datadog_api_client/v1/models/logs_service_remapper_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of logs service remapper. class LogsServiceRemapperType SERVICE_REMAPPER = "service-remapper".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_sort.rb b/lib/datadog_api_client/v1/models/logs_sort.rb index fc1e063030c..bc93ec33b46 100644 --- a/lib/datadog_api_client/v1/models/logs_sort.rb +++ b/lib/datadog_api_client/v1/models/logs_sort.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Time-ascending `asc` or time-descending `desc`results. class LogsSort TIME_ASCENDING = "asc".freeze TIME_DESCENDING = "desc".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 5b6fbd5353c..a37bac7dbd2 100644 --- a/lib/datadog_api_client/v1/models/logs_status_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_status_remapper.rb @@ -17,9 +17,26 @@ require 'time' module DatadogAPIClient::V1 - # Use this Processor if you want to assign some attributes as the official status. Each incoming status value is mapped as follows. - Integers from 0 to 7 map to the Syslog severity standards - Strings beginning with `emerg` or f (case-insensitive) map to `emerg` (0) - Strings beginning with `a` (case-insensitive) map to `alert` (1) - Strings beginning with `c` (case-insensitive) map to `critical` (2) - Strings beginning with `err` (case-insensitive) map to `error` (3) - Strings beginning with `w` (case-insensitive) map to `warning` (4) - Strings beginning with `n` (case-insensitive) map to `notice` (5) - Strings beginning with `i` (case-insensitive) map to `info` (6) - Strings beginning with `d`, `trace` or `verbose` (case-insensitive) map to `debug` (7) - Strings beginning with `o` or matching `OK` or `Success` (case-insensitive) map to OK - All others map to `info` (6) **Note:** If multiple log status remapper processors can be applied to a given log, only the first one (according to the pipelines order) is taken into account. + # Use this Processor if you want to assign some attributes as the official status. + # + # Each incoming status value is mapped as follows. + # + # - Integers from 0 to 7 map to the Syslog severity standards + # - Strings beginning with `emerg` or f (case-insensitive) map to `emerg` (0) + # - Strings beginning with `a` (case-insensitive) map to `alert` (1) + # - Strings beginning with `c` (case-insensitive) map to `critical` (2) + # - Strings beginning with `err` (case-insensitive) map to `error` (3) + # - Strings beginning with `w` (case-insensitive) map to `warning` (4) + # - Strings beginning with `n` (case-insensitive) map to `notice` (5) + # - Strings beginning with `i` (case-insensitive) map to `info` (6) + # - Strings beginning with `d`, `trace` or `verbose` (case-insensitive) map to `debug` (7) + # - Strings beginning with `o` or matching `OK` or `Success` (case-insensitive) map to OK + # - All others map to `info` (6) + # + # **Note:** If multiple log status remapper processors can be applied to a given log, + # only the first one (according to the pipelines order) is taken into account. class LogsStatusRemapper - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -32,6 +49,7 @@ class LogsStatusRemapper # Array of source attributes. attr_accessor :sources + # Type of logs status remapper. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -70,7 +88,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsStatusRemapper` initialize method" @@ -108,14 +127,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @sources.nil? invalid_properties.push('invalid value for "sources", sources cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -159,7 +177,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -167,7 +185,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -273,7 +291,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] value 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) @@ -289,7 +307,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_status_remapper_type.rb b/lib/datadog_api_client/v1/models/logs_status_remapper_type.rb index 0585c80a6f3..9e880d4dba1 100644 --- a/lib/datadog_api_client/v1/models/logs_status_remapper_type.rb +++ b/lib/datadog_api_client/v1/models/logs_status_remapper_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of logs status remapper. class LogsStatusRemapperType STATUS_REMAPPER = "status-remapper".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 106f73bc69a..137ce4141a0 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 @@ -17,16 +17,29 @@ require 'time' module DatadogAPIClient::V1 - # Use the string builder processor to add a new attribute (without spaces or special characters) to a log with the result of the provided template. This enables aggregation of different attributes or raw strings into a single attribute. The template is defined by both raw text and blocks with the syntax `%{attribute_path}`. **Notes**: - The processor only accepts attributes with values or an array of values in the blocks. - If an attribute cannot be used (object or array of object), it is replaced by an empty string or the entire operation is skipped depending on your selection. - If the target attribute already exists, it is overwritten by the result of the template. - Results of the template cannot exceed 256 characters. + # Use the string builder processor to add a new attribute (without spaces or special characters) + # to a log with the result of the provided template. + # This enables aggregation of different attributes or raw strings into a single attribute. + # + # The template is defined by both raw text and blocks with the syntax `%{attribute_path}`. + # + # **Notes**: + # + # - The processor only accepts attributes with values or an array of values in the blocks. + # - If an attribute cannot be used (object or array of object), + # it is replaced by an empty string or the entire operation is skipped depending on your selection. + # - If the target attribute already exists, it is overwritten by the result of the template. + # - Results of the template cannot exceed 256 characters. class LogsStringBuilderProcessor - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Whether or not the processor is enabled. attr_accessor :is_enabled - # If true, it replaces all missing attributes of `template` by an empty string. If `false` (default), skips the operation for missing attributes. + # If true, it replaces all missing attributes of `template` by an empty string. + # If `false` (default), skips the operation for missing attributes. attr_accessor :is_replace_missing # Name of the processor. @@ -38,6 +51,7 @@ class LogsStringBuilderProcessor # A formula with one or more attributes and raw text. attr_accessor :template + # Type of logs string builder processor. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -80,7 +94,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsStringBuilderProcessor` initialize method" @@ -126,18 +141,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @target.nil? invalid_properties.push('invalid value for "target", target cannot be nil.') end - if @template.nil? invalid_properties.push('invalid value for "template", template cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -184,7 +197,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -192,7 +205,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -298,7 +311,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] value 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) @@ -314,7 +327,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_string_builder_processor_type.rb b/lib/datadog_api_client/v1/models/logs_string_builder_processor_type.rb index 89ae62f84a7..f5c2545afdc 100644 --- a/lib/datadog_api_client/v1/models/logs_string_builder_processor_type.rb +++ b/lib/datadog_api_client/v1/models/logs_string_builder_processor_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of logs string builder processor. class LogsStringBuilderProcessorType STRING_BUILDER_PROCESSOR = "string-builder-processor".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 12df520fa47..dbed47bc166 100644 --- a/lib/datadog_api_client/v1/models/logs_trace_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_trace_remapper.rb @@ -17,9 +17,14 @@ require 'time' module DatadogAPIClient::V1 - # There are two ways to improve correlation between application traces and logs. 1. Follow the documentation on [how to inject a trace ID in the application logs](https://docs.datadoghq.com/tracing/connect_logs_and_traces) and by default log integrations take care of all the rest of the setup. 2. Use the Trace remapper processor to define a log attribute as its associated trace ID. + # There are two ways to improve correlation between application traces and logs. + # + # 1. Follow the documentation on [how to inject a trace ID in the application logs](https://docs.datadoghq.com/tracing/connect_logs_and_traces) + # and by default log integrations take care of all the rest of the setup. + # + # 2. Use the Trace remapper processor to define a log attribute as its associated trace ID. class LogsTraceRemapper - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -32,6 +37,7 @@ class LogsTraceRemapper # Array of source attributes. attr_accessor :sources + # Type of logs trace remapper. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -70,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsTraceRemapper` initialize method" @@ -98,6 +105,8 @@ def initialize(attributes = {}) if (value = attributes[:'sources']).is_a?(Array) self.sources = value end + else + self.sources = ['dd.trace_id'] end if attributes.key?(:'type') @@ -108,8 +117,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -154,7 +163,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -162,7 +171,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -268,7 +277,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] value 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) @@ -284,7 +293,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_trace_remapper_type.rb b/lib/datadog_api_client/v1/models/logs_trace_remapper_type.rb index f433d210b89..d5387b75dca 100644 --- a/lib/datadog_api_client/v1/models/logs_trace_remapper_type.rb +++ b/lib/datadog_api_client/v1/models/logs_trace_remapper_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of logs trace remapper. class LogsTraceRemapperType TRACE_ID_REMAPPER = "trace-id-remapper".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 188ef392967..73876430cd0 100644 --- a/lib/datadog_api_client/v1/models/logs_url_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_url_parser.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # This processor extracts query parameters and other important parameters from a URL. class LogsURLParser - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -38,6 +38,7 @@ class LogsURLParser # Name of the parent attribute that contains all the extracted details from the `sources`. attr_accessor :target + # Type of logs URL parser. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -76,12 +77,13 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'normalize_ending_slashes', + :'normalize_ending_slashes' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsURLParser` initialize method" @@ -115,6 +117,8 @@ def initialize(attributes = {}) if (value = attributes[:'sources']).is_a?(Array) self.sources = value end + else + self.sources = ['http.url'] end if attributes.key?(:'target') @@ -131,18 +135,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @sources.nil? invalid_properties.push('invalid value for "sources", sources cannot be nil.') end - if @target.nil? invalid_properties.push('invalid value for "target", target cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -189,7 +191,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -197,7 +199,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -303,7 +305,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] value 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) @@ -319,7 +321,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_url_parser_type.rb b/lib/datadog_api_client/v1/models/logs_url_parser_type.rb index 4e7c2c6ae7a..20af1ac9ca7 100644 --- a/lib/datadog_api_client/v1/models/logs_url_parser_type.rb +++ b/lib/datadog_api_client/v1/models/logs_url_parser_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of logs URL parser. class LogsURLParserType URL_PARSER = "url-parser".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 284021a861d..643aa0f7754 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 @@ -17,9 +17,10 @@ require 'time' module DatadogAPIClient::V1 - # The User-Agent parser takes a User-Agent attribute and extracts the OS, browser, device, and other user data. It recognizes major bots like the Google Bot, Yahoo Slurp, and Bing. + # The User-Agent parser takes a User-Agent attribute and extracts the OS, browser, device, and other user data. + # It recognizes major bots like the Google Bot, Yahoo Slurp, and Bing. class LogsUserAgentParser - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -38,6 +39,7 @@ class LogsUserAgentParser # Name of the parent attribute that contains all the extracted details from the `sources`. attr_accessor :target + # Type of logs User-Agent parser. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -80,7 +82,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsUserAgentParser` initialize method" @@ -114,6 +117,8 @@ def initialize(attributes = {}) if (value = attributes[:'sources']).is_a?(Array) self.sources = value end + else + self.sources = ['http.useragent'] end if attributes.key?(:'target') @@ -130,18 +135,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @sources.nil? invalid_properties.push('invalid value for "sources", sources cannot be nil.') end - if @target.nil? invalid_properties.push('invalid value for "target", target cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -188,7 +191,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -196,7 +199,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -302,7 +305,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] value 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) @@ -318,7 +321,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/logs_user_agent_parser_type.rb b/lib/datadog_api_client/v1/models/logs_user_agent_parser_type.rb index 6eb669f58a9..caf17a7eae4 100644 --- a/lib/datadog_api_client/v1/models/logs_user_agent_parser_type.rb +++ b/lib/datadog_api_client/v1/models/logs_user_agent_parser_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of logs User-Agent parser. class LogsUserAgentParserType USER_AGENT_PARSER = "user-agent-parser".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/metric_content_encoding.rb b/lib/datadog_api_client/v1/models/metric_content_encoding.rb index 371196a572a..d20b5d77eac 100644 --- a/lib/datadog_api_client/v1/models/metric_content_encoding.rb +++ b/lib/datadog_api_client/v1/models/metric_content_encoding.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # HTTP header used to compress the media-type. class MetricContentEncoding DEFLATE = "deflate".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/metric_metadata.rb b/lib/datadog_api_client/v1/models/metric_metadata.rb index 24aa64108a1..82eda4fb9f6 100644 --- a/lib/datadog_api_client/v1/models/metric_metadata.rb +++ b/lib/datadog_api_client/v1/models/metric_metadata.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object with all metric related metadata. class MetricMetadata - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -86,7 +86,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricMetadata` initialize method" @@ -130,10 +131,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -174,7 +176,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -182,7 +184,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -288,7 +290,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] value 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) @@ -304,7 +306,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 b743b0e649b..cacc59560c2 100644 --- a/lib/datadog_api_client/v1/models/metric_search_response.rb +++ b/lib/datadog_api_client/v1/models/metric_search_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Object containing the list of metrics matching the search query. class MetricSearchResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Search result. attr_accessor :results # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricSearchResponse` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 0ff2d881ad1..df6963d1c37 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Search result. class MetricSearchResponseResults - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricSearchResponseResults` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 204e33c7038..75f3bcd8b6c 100644 --- a/lib/datadog_api_client/v1/models/metrics_list_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_list_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object listing all metric names stored by Datadog since a given time. class MetricsListResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricsListResponse` initialize method" @@ -87,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -126,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -134,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -240,7 +242,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] value 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) @@ -256,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/metrics_payload.rb b/lib/datadog_api_client/v1/models/metrics_payload.rb index 90e683e1712..9558f754ed0 100644 --- a/lib/datadog_api_client/v1/models/metrics_payload.rb +++ b/lib/datadog_api_client/v1/models/metrics_payload.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The metrics' payload. class MetricsPayload - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricsPayload` initialize method" @@ -78,8 +79,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @series.nil? @@ -121,7 +122,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -129,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -235,7 +236,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] value 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) @@ -251,7 +252,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 0c5f8703762..8a0cbea9db3 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_metadata.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing all metric names returned and their associated metadata. class MetricsQueryMetadata - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -59,7 +59,9 @@ class MetricsQueryMetadata # Unique tags identifying this series. attr_accessor :tag_set - # Detailed information about the metric unit. First element describes the \"primary unit\" (for example, `bytes` in `bytes per second`), second describes the \"per unit\" (for example, `second` in `bytes per second`). + # Detailed information about the metric unit. + # First element describes the "primary unit" (for example, `bytes` in `bytes per second`), + # second describes the "per unit" (for example, `second` in `bytes per second`). attr_accessor :unit # Attribute mapping from ruby-style variable name to JSON key. @@ -99,7 +101,7 @@ def self.openapi_types :'interval' => :'Integer', :'length' => :'Integer', :'metric' => :'String', - :'pointlist' => :'Array', + :'pointlist' => :'Array>', :'query_index' => :'Integer', :'scope' => :'String', :'start' => :'Integer', @@ -112,12 +114,13 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'aggr', + :'aggr' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricsQueryMetadata` initialize method" @@ -191,17 +194,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@unit.nil? && @unit.length > 2 - invalid_properties.push('invalid value for "unit", number of items must be less than or equal to 2.') - end - - if !@unit.nil? && @unit.length < 2 - invalid_properties.push('invalid value for "unit", number of items must be greater than or equal to 2.') - end invalid_properties end @@ -210,25 +206,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@unit.nil? && @unit.length > 2 - return false if !@unit.nil? && @unit.length < 2 true end - # Custom attribute writer method with validation - # @param unit [Object] unit Value to be assigned - def unit=(unit) - if !unit.nil? && unit.length > 2 - fail ArgumentError, 'invalid value for "unit", number of items must be less than or equal to 2.' - end - - if !unit.nil? && unit.length < 2 - fail ArgumentError, 'invalid value for "unit", number of items must be greater than or equal to 2.' - end - - @unit = unit - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -265,7 +245,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -273,7 +253,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -379,7 +359,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] value 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) @@ -395,7 +375,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 dbb03478c5c..5e15f3c1878 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response Object that includes your query and the list of metrics retrieved. class MetricsQueryResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -96,7 +96,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricsQueryResponse` initialize method" @@ -152,10 +153,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -198,7 +200,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -206,7 +208,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -312,7 +314,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] value 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) @@ -328,7 +330,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 d04bb86b985..969cb985a05 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_unit.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_unit.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing the metric unit family, scale factor, name, and short name. class MetricsQueryUnit - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -76,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricsQueryUnit` initialize method" @@ -112,10 +113,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -154,7 +156,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -162,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -268,7 +270,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] value 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) @@ -284,7 +286,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor.rb b/lib/datadog_api_client/v1/models/monitor.rb index 161f11c700d..47ce743d1d7 100644 --- a/lib/datadog_api_client/v1/models/monitor.rb +++ b/lib/datadog_api_client/v1/models/monitor.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # Object describing a monitor. class Monitor - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Timestamp of the monitor creation. attr_accessor :created + # Object describing the creator of the shared element. attr_accessor :creator # Whether or not the monitor is deleted. (Always `null`) @@ -46,8 +47,10 @@ class Monitor # The monitor name. attr_accessor :name + # List of options associated with your monitor. attr_accessor :options + # The different states your monitor can be in. attr_accessor :overall_state # Integer from 1 (high) to 5 (low) indicating alert severity. @@ -59,11 +62,13 @@ class Monitor # A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked` option. attr_accessor :restricted_roles + # Wrapper object with the different monitor states. attr_accessor :state # Tags associated to your monitor. attr_accessor :tags + # 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 # Attribute mapping from ruby-style variable name to JSON key. @@ -124,12 +129,13 @@ def self.openapi_nullable Set.new([ :'deleted', :'priority', - :'restricted_roles', + :'restricted_roles' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Monitor` initialize method" @@ -213,22 +219,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@priority.nil? && @priority > 5 - invalid_properties.push('invalid value for "priority", must be smaller than or equal to 5.') - end - - if !@priority.nil? && @priority < 1 - invalid_properties.push('invalid value for "priority", must be greater than or equal to 1.') - end - if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -240,27 +237,11 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@priority.nil? && @priority > 5 - return false if !@priority.nil? && @priority < 1 return false if @query.nil? return false if @type.nil? true end - # Custom attribute writer method with validation - # @param priority [Object] priority Value to be assigned - def priority=(priority) - if !priority.nil? && priority > 5 - fail ArgumentError, 'invalid value for "priority", must be smaller than or equal to 5.' - end - - if !priority.nil? && priority < 1 - fail ArgumentError, 'invalid value for "priority", must be greater than or equal to 1.' - end - - @priority = priority - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -300,7 +281,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -308,7 +289,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -414,7 +395,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] value 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) @@ -430,7 +411,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_device_id.rb b/lib/datadog_api_client/v1/models/monitor_device_id.rb index ae50112d281..2829c27921d 100644 --- a/lib/datadog_api_client/v1/models/monitor_device_id.rb +++ b/lib/datadog_api_client/v1/models/monitor_device_id.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # ID of the device the Synthetics monitor is running on. Same as `SyntheticsDeviceID`. class MonitorDeviceID LAPTOP_LARGE = "laptop_large".freeze TABLET = "tablet".freeze @@ -45,5 +46,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_aggregation.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_aggregation.rb index d7001077361..415fec88d54 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_aggregation.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_aggregation.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Aggregation methods for event platform queries. class MonitorFormulaAndFunctionEventAggregation COUNT = "count".freeze CARDINALITY = "cardinality".freeze @@ -48,5 +49,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 0574ec2aecc..34fe5e6fa9a 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V1 # A formula and functions events query. class MonitorFormulaAndFunctionEventQueryDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Compute options. attr_accessor :compute + # Data source for event platform-based queries. attr_accessor :data_source # Group by options. @@ -36,6 +38,7 @@ class MonitorFormulaAndFunctionEventQueryDefinition # Name of the query for use in formulas. attr_accessor :name + # Search options. attr_accessor :search # Attribute mapping from ruby-style variable name to JSON key. @@ -78,7 +81,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryDefinition` initialize method" @@ -122,18 +126,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @compute.nil? invalid_properties.push('invalid value for "compute", compute cannot be nil.') end - if @data_source.nil? invalid_properties.push('invalid value for "data_source", data_source cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end @@ -180,7 +182,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -188,7 +190,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -294,7 +296,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] value 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) @@ -310,7 +312,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 984324a9705..5c1bf866a24 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Compute options. class MonitorFormulaAndFunctionEventQueryDefinitionCompute - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Aggregation methods for event platform queries. attr_accessor :aggregation # A time interval in milliseconds. @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryDefinitionCompute` initialize method" @@ -93,8 +95,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @aggregation.nil? @@ -138,7 +140,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -146,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -252,7 +254,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] value 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) @@ -268,7 +270,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 64f26a2263b..f96be5f77ee 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Search options. class MonitorFormulaAndFunctionEventQueryDefinitionSearch - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryDefinitionSearch` initialize method" @@ -76,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @query.nil? @@ -119,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -127,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -233,7 +234,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] value 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) @@ -249,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4d968210325..81b08244a45 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # List of objects used to group by. class MonitorFormulaAndFunctionEventQueryGroupBy - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class MonitorFormulaAndFunctionEventQueryGroupBy # Number of groups to return. attr_accessor :limit + # Options for sorting group by results. attr_accessor :sort # Attribute mapping from ruby-style variable name to JSON key. @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryGroupBy` initialize method" @@ -93,8 +95,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @facet.nil? @@ -138,7 +140,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -146,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -252,7 +254,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] value 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) @@ -268,7 +270,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 f76f372ff77..1eab37bb172 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V1 # Options for sorting group by results. class MonitorFormulaAndFunctionEventQueryGroupBySort - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Aggregation methods for event platform queries. attr_accessor :aggregation # Metric used for sorting group by results. attr_accessor :metric + # Direction of sort. attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryGroupBySort` initialize method" @@ -94,8 +97,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @aggregation.nil? @@ -139,7 +142,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -147,7 +150,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -253,7 +256,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] value 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) @@ -269,7 +272,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb index 378011c558e..6e4afd3c7a5 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Data source for event platform-based queries. class MonitorFormulaAndFunctionEventsDataSource RUM = "rum".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb index 77ebc8bb761..1f642f060cd 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb @@ -28,7 +28,6 @@ def openapi_one_of :'MonitorFormulaAndFunctionEventQueryDefinition' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -56,7 +55,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V1::UnparsedObject.new(data) end - end private @@ -114,4 +112,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 d4d944407cf..979a196ce14 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V1 # The response of a monitor group search. class MonitorGroupSearchResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The counts of monitor groups per different criteria. attr_accessor :counts # The list of found monitor groups. attr_accessor :groups + # Metadata about the response. attr_accessor :metadata # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorGroupSearchResponse` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 020d117fc8c..f6f340cd68f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The counts of monitor groups per different criteria. class MonitorGroupSearchResponseCounts - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorGroupSearchResponseCounts` initialize method" @@ -89,10 +90,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -128,7 +130,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -136,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -242,7 +244,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] value 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) @@ -258,7 +260,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb new file mode 100644 index 00000000000..7a46bb93465 --- /dev/null +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb @@ -0,0 +1,261 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://openapi-generator.tech + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V1 + # A facet item. + class MonitorGroupSearchResponseCountsStatusItem + # whether the object has unparsed attributes + # @!visibility private + attr_accessor :_unparsed + + # The number of found monitors with the listed value. + attr_accessor :count + + # The facet value. + attr_accessor :name + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'count' => :'count', + :'name' => :'name' + } + end + + # Returns all the JSON keys this model knows about + # @!visibility private + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'count' => :'Integer', + :'name' => :'Object' + } + end + + # List of attributes with nullable: true + # @!visibility private + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorGroupSearchResponseCountsStatusItem` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorGroupSearchResponseCountsStatusItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'count') + self.count = attributes[:'count'] + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + # @!visibility private + def list_invalid_properties + invalid_properties = Array.new + + invalid_properties + 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? + true + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + count == o.count && + name == o.name + end + + # @see the `==` method + # @param o [Object] Object to be compared + # @!visibility private + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [count, name].hash + end + + # Builds the object from hash + # @param attributes [Hash] Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param type [string] Data type + # @param value [string] Value to be deserialized + # @return [Object] Deserialized data + # @!visibility private + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when :Array + # generic array, return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = DatadogAPIClient::V1.const_get(type) + res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + if res.instance_of? DatadogAPIClient::V1::UnparsedObject + self._unparsed = true + end + res + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + # @!visibility private + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_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 + + # 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 + # @return [Hash] Returns the value in the form of hash + # @!visibility private + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end + +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb new file mode 100644 index 00000000000..f3b11347c0f --- /dev/null +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb @@ -0,0 +1,261 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://openapi-generator.tech + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V1 + # A facet item. + class MonitorGroupSearchResponseCountsTypeItem + # whether the object has unparsed attributes + # @!visibility private + attr_accessor :_unparsed + + # The number of found monitors with the listed value. + attr_accessor :count + + # The facet value. + attr_accessor :name + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'count' => :'count', + :'name' => :'name' + } + end + + # Returns all the JSON keys this model knows about + # @!visibility private + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'count' => :'Integer', + :'name' => :'Object' + } + end + + # List of attributes with nullable: true + # @!visibility private + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorGroupSearchResponseCountsTypeItem` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorGroupSearchResponseCountsTypeItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'count') + self.count = attributes[:'count'] + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + # @!visibility private + def list_invalid_properties + invalid_properties = Array.new + + invalid_properties + 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? + true + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + count == o.count && + name == o.name + end + + # @see the `==` method + # @param o [Object] Object to be compared + # @!visibility private + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [count, name].hash + end + + # Builds the object from hash + # @param attributes [Hash] Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param type [string] Data type + # @param value [string] Value to be deserialized + # @return [Object] Deserialized data + # @!visibility private + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when :Array + # generic array, return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = DatadogAPIClient::V1.const_get(type) + res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + if res.instance_of? DatadogAPIClient::V1::UnparsedObject + self._unparsed = true + end + res + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + # @!visibility private + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_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 + + # 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 + # @return [Hash] Returns the value in the form of hash + # @!visibility private + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end + +end \ No newline at end of file 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 4afab225cd8..bf4dfbeba32 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A single monitor group search result. class MonitorGroupSearchResult - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -41,6 +41,7 @@ class MonitorGroupSearchResult # The name of the monitor. attr_accessor :monitor_name + # The different states your monitor can be in. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. @@ -81,12 +82,13 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'last_triggered_ts', + :'last_triggered_ts' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorGroupSearchResult` initialize method" @@ -132,10 +134,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -176,7 +179,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -184,7 +187,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -290,7 +293,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] value 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) @@ -306,7 +309,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_options.rb b/lib/datadog_api_client/v1/models/monitor_options.rb index 4de97a85886..a389c3fe802 100644 --- a/lib/datadog_api_client/v1/models/monitor_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_options.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # List of options associated with your monitor. class MonitorOptions - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Type of aggregation performed in the monitor query. attr_accessor :aggregation # IDs of the device the Synthetics monitor is running on. @@ -31,16 +32,25 @@ class MonitorOptions # Whether or not to send a log sample when the log monitor triggers. attr_accessor :enable_logs_sample - # We recommend using the [is_renotify](https://docs.datadoghq.com/monitors/notify/?tab=is_alert#renotify), block in the original message instead. A message to include with a re-notification. Supports the `@username` notification we allow elsewhere. Not applicable if `renotify_interval` is `None`. + # We recommend using the [is_renotify](https://docs.datadoghq.com/monitors/notify/?tab=is_alert#renotify), + # block in the original message instead. + # A message to include with a re-notification. Supports the `@username` notification we allow elsewhere. + # Not applicable if `renotify_interval` is `None`. attr_accessor :escalation_message - # Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to `300` (5min), the timeframe is set to `last_5m` and the time is 7:00, the monitor evaluates data from 6:50 to 6:55. This is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation. + # Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to `300` (5min), + # the timeframe is set to `last_5m` and the time is 7:00, the monitor evaluates data from 6:50 to 6:55. + # This is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation. attr_accessor :evaluation_delay # Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. attr_accessor :groupby_simple_monitor - # A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title. **Examples** - If `True`, `[Triggered on {host:h1}] Monitor Title` - If `False`, `[Triggered] Monitor Title` + # A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title. + # + # **Examples** + # - If `True`, `[Triggered on {host:h1}] Monitor Title` + # - If `False`, `[Triggered] Monitor Title` attr_accessor :include_tags # Whether or not the monitor is locked (only editable by creator and admins). @@ -49,16 +59,28 @@ class MonitorOptions # How long the test should be in failure before alerting (integer, number of seconds, max 7200). attr_accessor :min_failure_duration - # The minimum number of locations in failure at the same time during at least one moment in the `min_failure_duration` period (`min_location_failed` and `min_failure_duration` are part of the advanced alerting rules - integer, >= 1). + # The minimum number of locations in failure at the same time during + # at least one moment in the `min_failure_duration` period (`min_location_failed` and `min_failure_duration` + # are part of the advanced alerting rules - integer, >= 1). attr_accessor :min_location_failed - # Time (in seconds) to skip evaluations for new groups. For example, this option can be used to skip evaluations for new hosts while they initialize. Must be a non negative integer. + # Time (in seconds) to skip evaluations for new groups. + # + # For example, this option can be used to skip evaluations for new hosts while they initialize. + # + # Must be a non negative integer. attr_accessor :new_group_delay - # Time (in seconds) to allow a host to boot and applications to fully start before starting the evaluation of monitor results. Should be a non negative integer. Use new_group_delay instead. + # Time (in seconds) to allow a host to boot and applications + # to fully start before starting the evaluation of monitor results. + # Should be a non negative integer. + # + # Use new_group_delay instead. attr_accessor :new_host_delay - # The number of minutes before a monitor notifies after data stops reporting. Datadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks. If omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks. + # The number of minutes before a monitor notifies after data stops reporting. + # Datadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks. + # If omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks. attr_accessor :no_data_timeframe # A Boolean indicating whether tagged users is notified on changes to this monitor. @@ -67,7 +89,8 @@ class MonitorOptions # A Boolean indicating whether this monitor notifies when data stops reporting. attr_accessor :notify_no_data - # The number of minutes after the last notification before a monitor re-notifies on the current status. It only re-notifies if it’s not resolved. + # The number of minutes after the last notification before a monitor re-notifies on the current status. + # It only re-notifies if it’s not resolved. attr_accessor :renotify_interval # The number of times re-notification messages should be sent on the current status at the provided re-notification interval. @@ -76,7 +99,9 @@ class MonitorOptions # The types of monitor statuses for which re-notification messages are sent. attr_accessor :renotify_statuses - # A Boolean indicating whether this monitor needs a full window of data before it’s evaluated. We highly recommend you set this to `false` for sparse metrics, otherwise some evaluations are skipped. Default is false. + # A Boolean indicating whether this monitor needs a full window of data before it’s evaluated. + # We highly recommend you set this to `false` for sparse metrics, + # otherwise some evaluations are skipped. Default is false. attr_accessor :require_full_window # Information about the downtime applied to the monitor. @@ -85,8 +110,10 @@ class MonitorOptions # ID of the corresponding Synthetic check. attr_accessor :synthetics_check_id + # Alerting time window options. attr_accessor :threshold_windows + # List of the different monitor threshold available. attr_accessor :thresholds # The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours. @@ -179,12 +206,13 @@ def self.openapi_nullable :'renotify_occurrences', :'renotify_statuses', :'synthetics_check_id', - :'timeout_h', + :'timeout_h' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorOptions` initialize method" @@ -276,6 +304,8 @@ def initialize(attributes = {}) if attributes.key?(:'renotify_interval') self.renotify_interval = attributes[:'renotify_interval'] + else + self.renotify_interval = 'none' end if attributes.key?(:'renotify_occurrences') @@ -293,9 +323,7 @@ def initialize(attributes = {}) end if attributes.key?(:'silenced') - if (value = attributes[:'silenced']).is_a?(Hash) - self.silenced = value - end + self.silenced = attributes[:'silenced'] end if attributes.key?(:'synthetics_check_id') @@ -312,6 +340,8 @@ def initialize(attributes = {}) if attributes.key?(:'timeout_h') self.timeout_h = attributes[:'timeout_h'] + else + self.timeout_h = 'none' end if attributes.key?(:'variables') @@ -322,17 +352,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@min_failure_duration.nil? && @min_failure_duration > 7200 - invalid_properties.push('invalid value for "min_failure_duration", must be smaller than or equal to 7200.') - end - - if !@min_failure_duration.nil? && @min_failure_duration < 0 - invalid_properties.push('invalid value for "min_failure_duration", must be greater than or equal to 0.') - end invalid_properties end @@ -341,25 +364,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@min_failure_duration.nil? && @min_failure_duration > 7200 - return false if !@min_failure_duration.nil? && @min_failure_duration < 0 true end - # Custom attribute writer method with validation - # @param min_failure_duration [Object] min_failure_duration Value to be assigned - def min_failure_duration=(min_failure_duration) - if !min_failure_duration.nil? && min_failure_duration > 7200 - fail ArgumentError, 'invalid value for "min_failure_duration", must be smaller than or equal to 7200.' - end - - if !min_failure_duration.nil? && min_failure_duration < 0 - fail ArgumentError, 'invalid value for "min_failure_duration", must be greater than or equal to 0.' - end - - @min_failure_duration = min_failure_duration - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -408,7 +415,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -416,7 +423,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -522,7 +529,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] value 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) @@ -538,7 +545,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ecbb82a2b00..cee6926a6b3 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Type of aggregation performed in the monitor query. class MonitorOptionsAggregation - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorOptionsAggregation` initialize method" @@ -94,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_overall_states.rb b/lib/datadog_api_client/v1/models/monitor_overall_states.rb index 5f1ff6c7635..a8cd647bc44 100644 --- a/lib/datadog_api_client/v1/models/monitor_overall_states.rb +++ b/lib/datadog_api_client/v1/models/monitor_overall_states.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The different states your monitor can be in. class MonitorOverallStates ALERT = "Alert".freeze IGNORED = "Ignored".freeze @@ -43,5 +44,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_renotify_status_type.rb b/lib/datadog_api_client/v1/models/monitor_renotify_status_type.rb index 851f1320ff4..ef6ac3025b2 100644 --- a/lib/datadog_api_client/v1/models/monitor_renotify_status_type.rb +++ b/lib/datadog_api_client/v1/models/monitor_renotify_status_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The different statuses for which renotification is supported. class MonitorRenotifyStatusType ALERT = "alert".freeze WARN = "warn".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 9fd819e00ce..75fe12203ee 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response.rb @@ -19,12 +19,14 @@ module DatadogAPIClient::V1 # The response form a monitor search. class MonitorSearchResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The counts of monitors per different criteria. attr_accessor :counts + # Metadata about the response. attr_accessor :metadata # The list of found monitors. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResponse` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 a1185505eb1..81a66851b29 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The counts of monitors per different criteria. class MonitorSearchResponseCounts - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResponseCounts` initialize method" @@ -111,10 +112,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -152,7 +154,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -160,7 +162,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -266,7 +268,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] value 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) @@ -282,7 +284,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb new file mode 100644 index 00000000000..2e90bab6574 --- /dev/null +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb @@ -0,0 +1,261 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://openapi-generator.tech + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V1 + # A facet item. + class MonitorSearchResponseCountsMutedItem + # whether the object has unparsed attributes + # @!visibility private + attr_accessor :_unparsed + + # The number of found monitors with the listed value. + attr_accessor :count + + # The facet value. + attr_accessor :name + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'count' => :'count', + :'name' => :'name' + } + end + + # Returns all the JSON keys this model knows about + # @!visibility private + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'count' => :'Integer', + :'name' => :'Object' + } + end + + # List of attributes with nullable: true + # @!visibility private + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResponseCountsMutedItem` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorSearchResponseCountsMutedItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'count') + self.count = attributes[:'count'] + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + # @!visibility private + def list_invalid_properties + invalid_properties = Array.new + + invalid_properties + 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? + true + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + count == o.count && + name == o.name + end + + # @see the `==` method + # @param o [Object] Object to be compared + # @!visibility private + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [count, name].hash + end + + # Builds the object from hash + # @param attributes [Hash] Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param type [string] Data type + # @param value [string] Value to be deserialized + # @return [Object] Deserialized data + # @!visibility private + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when :Array + # generic array, return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = DatadogAPIClient::V1.const_get(type) + res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + if res.instance_of? DatadogAPIClient::V1::UnparsedObject + self._unparsed = true + end + res + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + # @!visibility private + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_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 + + # 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 + # @return [Hash] Returns the value in the form of hash + # @!visibility private + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end + +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb new file mode 100644 index 00000000000..451d8c49dcc --- /dev/null +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb @@ -0,0 +1,261 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://openapi-generator.tech + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V1 + # A facet item. + class MonitorSearchResponseCountsStatusItem + # whether the object has unparsed attributes + # @!visibility private + attr_accessor :_unparsed + + # The number of found monitors with the listed value. + attr_accessor :count + + # The facet value. + attr_accessor :name + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'count' => :'count', + :'name' => :'name' + } + end + + # Returns all the JSON keys this model knows about + # @!visibility private + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'count' => :'Integer', + :'name' => :'Object' + } + end + + # List of attributes with nullable: true + # @!visibility private + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResponseCountsStatusItem` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorSearchResponseCountsStatusItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'count') + self.count = attributes[:'count'] + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + # @!visibility private + def list_invalid_properties + invalid_properties = Array.new + + invalid_properties + 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? + true + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + count == o.count && + name == o.name + end + + # @see the `==` method + # @param o [Object] Object to be compared + # @!visibility private + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [count, name].hash + end + + # Builds the object from hash + # @param attributes [Hash] Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param type [string] Data type + # @param value [string] Value to be deserialized + # @return [Object] Deserialized data + # @!visibility private + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when :Array + # generic array, return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = DatadogAPIClient::V1.const_get(type) + res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + if res.instance_of? DatadogAPIClient::V1::UnparsedObject + self._unparsed = true + end + res + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + # @!visibility private + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_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 + + # 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 + # @return [Hash] Returns the value in the form of hash + # @!visibility private + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end + +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb new file mode 100644 index 00000000000..00487db78c7 --- /dev/null +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb @@ -0,0 +1,261 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://openapi-generator.tech + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V1 + # A facet item. + class MonitorSearchResponseCountsTagItem + # whether the object has unparsed attributes + # @!visibility private + attr_accessor :_unparsed + + # The number of found monitors with the listed value. + attr_accessor :count + + # The facet value. + attr_accessor :name + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'count' => :'count', + :'name' => :'name' + } + end + + # Returns all the JSON keys this model knows about + # @!visibility private + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'count' => :'Integer', + :'name' => :'Object' + } + end + + # List of attributes with nullable: true + # @!visibility private + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResponseCountsTagItem` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorSearchResponseCountsTagItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'count') + self.count = attributes[:'count'] + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + # @!visibility private + def list_invalid_properties + invalid_properties = Array.new + + invalid_properties + 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? + true + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + count == o.count && + name == o.name + end + + # @see the `==` method + # @param o [Object] Object to be compared + # @!visibility private + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [count, name].hash + end + + # Builds the object from hash + # @param attributes [Hash] Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param type [string] Data type + # @param value [string] Value to be deserialized + # @return [Object] Deserialized data + # @!visibility private + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when :Array + # generic array, return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = DatadogAPIClient::V1.const_get(type) + res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + if res.instance_of? DatadogAPIClient::V1::UnparsedObject + self._unparsed = true + end + res + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + # @!visibility private + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_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 + + # 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 + # @return [Hash] Returns the value in the form of hash + # @!visibility private + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end + +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb new file mode 100644 index 00000000000..b931a68e915 --- /dev/null +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb @@ -0,0 +1,261 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://openapi-generator.tech + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V1 + # A facet item. + class MonitorSearchResponseCountsTypeItem + # whether the object has unparsed attributes + # @!visibility private + attr_accessor :_unparsed + + # The number of found monitors with the listed value. + attr_accessor :count + + # The facet value. + attr_accessor :name + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'count' => :'count', + :'name' => :'name' + } + end + + # Returns all the JSON keys this model knows about + # @!visibility private + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'count' => :'Integer', + :'name' => :'Object' + } + end + + # List of attributes with nullable: true + # @!visibility private + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResponseCountsTypeItem` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorSearchResponseCountsTypeItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'count') + self.count = attributes[:'count'] + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + # @!visibility private + def list_invalid_properties + invalid_properties = Array.new + + invalid_properties + 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? + true + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + count == o.count && + name == o.name + end + + # @see the `==` method + # @param o [Object] Object to be compared + # @!visibility private + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [count, name].hash + end + + # Builds the object from hash + # @param attributes [Hash] Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param type [string] Data type + # @param value [string] Value to be deserialized + # @return [Object] Deserialized data + # @!visibility private + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when :Array + # generic array, return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = DatadogAPIClient::V1.const_get(type) + res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + if res.instance_of? DatadogAPIClient::V1::UnparsedObject + self._unparsed = true + end + res + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + # @!visibility private + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_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 + + # 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 + # @return [Hash] Returns the value in the form of hash + # @!visibility private + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end + +end \ No newline at end of file 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 c402154a16f..344fe6d2568 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Metadata about the response. class MonitorSearchResponseMetadata - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResponseMetadata` initialize method" @@ -103,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -144,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +260,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] value 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) @@ -274,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 90f48fc5415..5857399c0eb 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_result.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_result.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # Holds search results. class MonitorSearchResult - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Classification of the monitor. attr_accessor :classification + # Object describing the creator of the shared element. attr_accessor :creator # ID of the monitor. @@ -49,14 +50,19 @@ class MonitorSearchResult # The monitor query. attr_accessor :query - # The scope(s) to which the downtime applies, for example `host:app2`. Provide multiple scopes as a comma-separated list, for example `env:dev,env:prod`. The resulting downtime applies to sources that matches ALL provided scopes (that is `env:dev AND env:prod`), NOT any of them. + # The scope(s) to which the downtime applies, for example `host:app2`. + # Provide multiple scopes as a comma-separated list, for example `env:dev,env:prod`. + # The resulting downtime applies to sources that matches ALL provided scopes + # (that is `env:dev AND env:prod`), NOT any of them. attr_accessor :scopes + # The different states your monitor can be in. attr_accessor :status # Tags associated with the monitor. attr_accessor :tags + # 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 # Attribute mapping from ruby-style variable name to JSON key. @@ -109,12 +115,13 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'last_triggered_ts', + :'last_triggered_ts' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResult` initialize method" @@ -190,10 +197,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -240,7 +248,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -248,7 +256,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -354,7 +362,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] value 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) @@ -370,7 +378,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 60ed98b923f..e12b40e7bec 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A notification triggered by the monitor. class MonitorSearchResultNotification - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResultNotification` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_state.rb b/lib/datadog_api_client/v1/models/monitor_state.rb index 1b3d1986dc6..c3beeff320c 100644 --- a/lib/datadog_api_client/v1/models/monitor_state.rb +++ b/lib/datadog_api_client/v1/models/monitor_state.rb @@ -19,11 +19,12 @@ module DatadogAPIClient::V1 # Wrapper object with the different monitor states. class MonitorState - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # Dictionary where the keys are groups (comma separated lists of tags) and the values are the list of groups your monitor is broken down on. + # Dictionary where the keys are groups (comma separated lists of tags) and the values are + # the list of groups your monitor is broken down on. attr_accessor :groups # Attribute mapping from ruby-style variable name to JSON key. @@ -56,7 +57,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorState` initialize method" @@ -71,17 +73,16 @@ def initialize(attributes = {}) } if attributes.key?(:'groups') - if (value = attributes[:'groups']).is_a?(Hash) - self.groups = value - end + self.groups = attributes[:'groups'] end end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +117,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +125,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +231,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] value 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) @@ -246,7 +247,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 945efb0a8b0..3a9beeb25e0 100644 --- a/lib/datadog_api_client/v1/models/monitor_state_group.rb +++ b/lib/datadog_api_client/v1/models/monitor_state_group.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Monitor state for a single group. class MonitorStateGroup - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -38,6 +38,7 @@ class MonitorStateGroup # The name of the monitor. attr_accessor :name + # The different states your monitor can be in. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. @@ -80,7 +81,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorStateGroup` initialize method" @@ -120,10 +122,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -163,7 +166,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -171,7 +174,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -277,7 +280,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] value 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) @@ -293,7 +296,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4192c7d6b23..56de0b4ac93 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V1 # The monitor summary widget displays a summary view of all your Datadog monitors, or a subset based on a query. Only available on FREE layout dashboards. class MonitorSummaryWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Which color to use on the widget. attr_accessor :color_preference # The number of monitors to display. attr_accessor :count + # What to display on the widget. attr_accessor :display_format # Whether to show counts of 0 or not. @@ -39,21 +41,25 @@ class MonitorSummaryWidgetDefinition # Whether to show the time that has elapsed since the monitor/group triggered. attr_accessor :show_last_triggered + # Widget sorting methods. attr_accessor :sort # The start of the list. Typically 0. attr_accessor :start + # Which summary type should be used. attr_accessor :summary_type # Title of the widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the monitor summary widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -110,7 +116,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSummaryWidgetDefinition` initialize method" @@ -180,14 +187,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -240,7 +246,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -248,7 +254,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -354,7 +360,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] value 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) @@ -370,7 +376,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_summary_widget_definition_type.rb b/lib/datadog_api_client/v1/models/monitor_summary_widget_definition_type.rb index 384e6cee8c1..2f8ed5ac2ac 100644 --- a/lib/datadog_api_client/v1/models/monitor_summary_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/monitor_summary_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the monitor summary widget. class MonitorSummaryWidgetDefinitionType MANAGE_STATUS = "manage_status".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 fd9dcc17de2..19641bac081 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Alerting time window options. class MonitorThresholdWindowOptions - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -63,7 +63,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorThresholdWindowOptions` initialize method" @@ -87,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -126,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -134,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -240,7 +242,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] value 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) @@ -256,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_thresholds.rb b/lib/datadog_api_client/v1/models/monitor_thresholds.rb index 7e734adc0a0..d8d70776455 100644 --- a/lib/datadog_api_client/v1/models/monitor_thresholds.rb +++ b/lib/datadog_api_client/v1/models/monitor_thresholds.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # List of the different monitor threshold available. class MonitorThresholds - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -86,7 +86,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorThresholds` initialize method" @@ -126,10 +127,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -169,7 +171,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -177,7 +179,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -283,7 +285,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] value 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) @@ -299,7 +301,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_type.rb b/lib/datadog_api_client/v1/models/monitor_type.rb index 0e71f3b7164..55c02008a32 100644 --- a/lib/datadog_api_client/v1/models/monitor_type.rb +++ b/lib/datadog_api_client/v1/models/monitor_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The type of the monitor. For more information about `type`, see the [monitor options](https://docs.datadoghq.com/monitors/guide/monitor_api_options/) docs. class MonitorType COMPOSITE = "composite".freeze EVENT_ALERT = "event alert".freeze @@ -50,5 +51,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 3cad961ae30..1ddc57c4efc 100644 --- a/lib/datadog_api_client/v1/models/monitor_update_request.rb +++ b/lib/datadog_api_client/v1/models/monitor_update_request.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # Object describing a monitor update request. class MonitorUpdateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Timestamp of the monitor creation. attr_accessor :created + # Object describing the creator of the shared element. attr_accessor :creator # Whether or not the monitor is deleted. (Always `null`) @@ -46,8 +47,10 @@ class MonitorUpdateRequest # The monitor name. attr_accessor :name + # List of options associated with your monitor. attr_accessor :options + # The different states your monitor can be in. attr_accessor :overall_state # Integer from 1 (high) to 5 (low) indicating alert severity. @@ -59,11 +62,13 @@ class MonitorUpdateRequest # A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked` option. attr_accessor :restricted_roles + # Wrapper object with the different monitor states. attr_accessor :state # Tags associated to your monitor. attr_accessor :tags + # 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 # Attribute mapping from ruby-style variable name to JSON key. @@ -122,12 +127,13 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'deleted', + :'deleted' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorUpdateRequest` initialize method" @@ -211,17 +217,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@priority.nil? && @priority > 5 - invalid_properties.push('invalid value for "priority", must be smaller than or equal to 5.') - end - - if !@priority.nil? && @priority < 1 - invalid_properties.push('invalid value for "priority", must be greater than or equal to 1.') - end invalid_properties end @@ -230,25 +229,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@priority.nil? && @priority > 5 - return false if !@priority.nil? && @priority < 1 true end - # Custom attribute writer method with validation - # @param priority [Object] priority Value to be assigned - def priority=(priority) - if !priority.nil? && priority > 5 - fail ArgumentError, 'invalid value for "priority", must be smaller than or equal to 5.' - end - - if !priority.nil? && priority < 1 - fail ArgumentError, 'invalid value for "priority", must be greater than or equal to 1.' - end - - @priority = priority - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -288,7 +271,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -296,7 +279,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -402,7 +385,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] value 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) @@ -418,7 +401,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 1363bbf5bea..9862c584616 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Usage Summary by tag for a given organization. class MonthlyUsageAttributionBody - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -41,6 +41,7 @@ class MonthlyUsageAttributionBody # Datetime of the most recent update to the usage values. attr_accessor :updated_at + # Fields in Usage Summary by tag(s). attr_accessor :values # Attribute mapping from ruby-style variable name to JSON key. @@ -85,7 +86,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonthlyUsageAttributionBody` initialize method" @@ -116,9 +118,7 @@ def initialize(attributes = {}) end if attributes.key?(:'tags') - if (value = attributes[:'tags']).is_a?(Hash) - self.tags = value - end + self.tags = attributes[:'tags'] end if attributes.key?(:'updated_at') @@ -131,10 +131,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -175,7 +176,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -183,7 +184,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -289,7 +290,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] value 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) @@ -305,7 +306,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 55769ca96f6..f06e3da70c4 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # The object containing document metadata. class MonthlyUsageAttributionMetadata - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # An array of available aggregates. attr_accessor :aggregates + # The metadata for the current pagination. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonthlyUsageAttributionMetadata` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 d0d81a003d8..393430939ad 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The metadata for the current pagination. class MonthlyUsageAttributionPagination - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonthlyUsageAttributionPagination` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 b346cf7dcda..e6b61bfbbfe 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Response containing the monthly Usage Summary by tag(s). class MonthlyUsageAttributionResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The object containing document metadata. attr_accessor :metadata # Get Usage Summary by tag(s). @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonthlyUsageAttributionResponse` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb index 0c33219cf8a..a6111a10d3b 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Supported metrics for monthly usage attribution requests. class MonthlyUsageAttributionSupportedMetrics API_USAGE = "api_usage".freeze API_PERCENTAGE = "api_percentage".freeze @@ -65,5 +66,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 6a601f6709e..3c5a7c8ba60 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Fields in Usage Summary by tag(s). class MonthlyUsageAttributionValues - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -191,7 +191,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonthlyUsageAttributionValues` initialize method" @@ -319,10 +320,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -384,7 +386,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -392,7 +394,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -498,7 +500,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] value 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) @@ -514,7 +516,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 8e408dad096..003c646a72b 100644 --- a/lib/datadog_api_client/v1/models/note_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/note_widget_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The notes and links widget is similar to free text widget, but allows for more formatting options. class NoteWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -38,15 +38,19 @@ class NoteWidgetDefinition # Whether to show a tick or not. attr_accessor :show_tick + # How to align the text on the widget. attr_accessor :text_align + # Define how you want to align the text on the widget. attr_accessor :tick_edge # Where to position the tick on an edge. attr_accessor :tick_pos + # Type of the note widget. attr_accessor :type + # Vertical alignment. attr_accessor :vertical_align # Attribute mapping from ruby-style variable name to JSON key. @@ -97,7 +101,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NoteWidgetDefinition` initialize method" @@ -157,14 +162,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @content.nil? invalid_properties.push('invalid value for "content", content cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -214,7 +218,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -222,7 +226,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -328,7 +332,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] value 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) @@ -344,7 +348,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/note_widget_definition_type.rb b/lib/datadog_api_client/v1/models/note_widget_definition_type.rb index a181f81bf98..0de9a508bc1 100644 --- a/lib/datadog_api_client/v1/models/note_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/note_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the note widget. class NoteWidgetDefinitionType NOTE = "note".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 d72adcec24e..fdff7b18813 100644 --- a/lib/datadog_api_client/v1/models/notebook_absolute_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_absolute_time.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Absolute timeframe. class NotebookAbsoluteTime - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookAbsoluteTime` initialize method" @@ -94,14 +95,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @_end.nil? invalid_properties.push('invalid value for "_end", _end cannot be nil.') end - if @start.nil? invalid_properties.push('invalid value for "start", start cannot be nil.') end @@ -144,7 +144,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +152,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +258,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] value 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) @@ -274,7 +274,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/notebook_author.rb b/lib/datadog_api_client/v1/models/notebook_author.rb index c58f4fc9b41..8734f2970f1 100644 --- a/lib/datadog_api_client/v1/models/notebook_author.rb +++ b/lib/datadog_api_client/v1/models/notebook_author.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Attributes of user object returned by the API. class NotebookAuthor - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -93,12 +93,13 @@ def self.openapi_types def self.openapi_nullable Set.new([ :'name', - :'title', + :'title' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookAuthor` initialize method" @@ -150,10 +151,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -196,7 +198,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -204,7 +206,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -310,7 +312,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] value 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) @@ -326,7 +328,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 0fb466860fc..87d1d274686 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 @@ -19,12 +19,15 @@ module DatadogAPIClient::V1 # The description of a notebook cell create request. class NotebookCellCreateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The attributes of a notebook cell in create cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, + # `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) attr_accessor :attributes + # Type of the Notebook Cell resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +62,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookCellCreateRequest` initialize method" @@ -85,14 +89,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -134,7 +137,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +145,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +251,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] value 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) @@ -264,7 +267,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb b/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb index 97cb144f1fe..d9b214e3bd7 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb @@ -17,7 +17,8 @@ require 'time' module DatadogAPIClient::V1 - # The attributes of a notebook cell in create cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) + # The attributes of a notebook cell in create cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, + # `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) module NotebookCellCreateRequestAttributes class << self attr_accessor :_unparsed @@ -25,15 +26,14 @@ class << self # List of class defined in oneOf (OpenAPI v3) def openapi_one_of [ - :'NotebookDistributionCellAttributes', - :'NotebookHeatMapCellAttributes', - :'NotebookLogStreamCellAttributes', :'NotebookMarkdownCellAttributes', :'NotebookTimeseriesCellAttributes', - :'NotebookToplistCellAttributes' + :'NotebookToplistCellAttributes', + :'NotebookHeatMapCellAttributes', + :'NotebookDistributionCellAttributes', + :'NotebookLogStreamCellAttributes' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -61,7 +61,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V1::UnparsedObject.new(data) end - end private @@ -119,4 +118,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/notebook_cell_resource_type.rb b/lib/datadog_api_client/v1/models/notebook_cell_resource_type.rb index 73896c279f4..4d99caed021 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_resource_type.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_resource_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the Notebook Cell resource. class NotebookCellResourceType NOTEBOOK_CELLS = "notebook_cells".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 e9ee2c8f8fb..22b31cf1694 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_response.rb @@ -19,15 +19,18 @@ module DatadogAPIClient::V1 # The description of a notebook cell response. class NotebookCellResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The attributes of a notebook cell response. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, + # `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) attr_accessor :attributes # Notebook cell ID. attr_accessor :id + # Type of the Notebook Cell resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +67,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookCellResponse` initialize method" @@ -94,18 +98,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -149,7 +151,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -157,7 +159,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -263,7 +265,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] value 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) @@ -279,7 +281,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/notebook_cell_response_attributes.rb b/lib/datadog_api_client/v1/models/notebook_cell_response_attributes.rb index 34adcfeb330..280fdb84058 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_response_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_response_attributes.rb @@ -17,7 +17,8 @@ require 'time' module DatadogAPIClient::V1 - # The attributes of a notebook cell response. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) + # The attributes of a notebook cell response. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, + # `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) module NotebookCellResponseAttributes class << self attr_accessor :_unparsed @@ -25,15 +26,14 @@ class << self # List of class defined in oneOf (OpenAPI v3) def openapi_one_of [ - :'NotebookDistributionCellAttributes', - :'NotebookHeatMapCellAttributes', - :'NotebookLogStreamCellAttributes', :'NotebookMarkdownCellAttributes', :'NotebookTimeseriesCellAttributes', - :'NotebookToplistCellAttributes' + :'NotebookToplistCellAttributes', + :'NotebookHeatMapCellAttributes', + :'NotebookDistributionCellAttributes', + :'NotebookLogStreamCellAttributes' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -61,7 +61,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V1::UnparsedObject.new(data) end - end private @@ -119,4 +118,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/notebook_cell_time.rb b/lib/datadog_api_client/v1/models/notebook_cell_time.rb index 801de8fb4aa..deaeec39aad 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_time.rb @@ -25,11 +25,10 @@ class << self # List of class defined in oneOf (OpenAPI v3) def openapi_one_of [ - :'NotebookAbsoluteTime', - :'NotebookRelativeTime' + :'NotebookRelativeTime', + :'NotebookAbsoluteTime' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -57,7 +56,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V1::UnparsedObject.new(data) end - end private @@ -115,4 +113,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 47b7b6548dc..8bdef7ac75f 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 @@ -19,15 +19,18 @@ module DatadogAPIClient::V1 # The description of a notebook cell update request. class NotebookCellUpdateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The attributes of a notebook cell in update cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, + # `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) attr_accessor :attributes # Notebook cell ID. attr_accessor :id + # Type of the Notebook Cell resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +67,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookCellUpdateRequest` initialize method" @@ -94,18 +98,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -149,7 +151,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -157,7 +159,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -263,7 +265,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] value 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) @@ -279,7 +281,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/notebook_cell_update_request_attributes.rb b/lib/datadog_api_client/v1/models/notebook_cell_update_request_attributes.rb index 6e3b932ceb7..f9c0c56de54 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_update_request_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_update_request_attributes.rb @@ -17,7 +17,8 @@ require 'time' module DatadogAPIClient::V1 - # The attributes of a notebook cell in update cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) + # The attributes of a notebook cell in update cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, + # `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) module NotebookCellUpdateRequestAttributes class << self attr_accessor :_unparsed @@ -25,15 +26,14 @@ class << self # List of class defined in oneOf (OpenAPI v3) def openapi_one_of [ - :'NotebookDistributionCellAttributes', - :'NotebookHeatMapCellAttributes', - :'NotebookLogStreamCellAttributes', :'NotebookMarkdownCellAttributes', :'NotebookTimeseriesCellAttributes', - :'NotebookToplistCellAttributes' + :'NotebookToplistCellAttributes', + :'NotebookHeatMapCellAttributes', + :'NotebookDistributionCellAttributes', + :'NotebookLogStreamCellAttributes' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -61,7 +61,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V1::UnparsedObject.new(data) end - end private @@ -119,4 +118,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 8bbb7836ac8..981c2b54ab6 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_data.rb @@ -19,12 +19,14 @@ module DatadogAPIClient::V1 # The data for a notebook create request. class NotebookCreateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The data attributes of a notebook. attr_accessor :attributes + # Type of the Notebook resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookCreateData` initialize method" @@ -85,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 2ccd4ee6876..068997165dc 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 @@ -19,20 +19,23 @@ module DatadogAPIClient::V1 # The data attributes of a notebook. class NotebookCreateDataAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # List of cells to display in the notebook. attr_accessor :cells + # Metadata associated with the notebook. attr_accessor :metadata # The name of the notebook. attr_accessor :name + # Publication status of the notebook. For now, always "published". attr_accessor :status + # Notebook global timeframe. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. @@ -73,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookCreateDataAttributes` initialize method" @@ -113,26 +117,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @cells.nil? invalid_properties.push('invalid value for "cells", cells cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - - if @name.to_s.length > 80 - invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 80.') - end - - if @name.to_s.length < 0 - invalid_properties.push('invalid value for "name", the character length must be great than or equal to 0.') - end - if @time.nil? invalid_properties.push('invalid value for "time", time cannot be nil.') end @@ -146,30 +140,10 @@ def list_invalid_properties def valid? return false if @cells.nil? return false if @name.nil? - return false if @name.to_s.length > 80 - return false if @name.to_s.length < 0 return false if @time.nil? true end - # Custom attribute writer method with validation - # @param name [Object] name Value to be assigned - def name=(name) - if name.nil? - fail ArgumentError, 'name cannot be nil' - end - - if name.to_s.length > 80 - fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 80.' - end - - if name.to_s.length < 0 - fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 0.' - end - - @name = name - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -198,7 +172,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -206,7 +180,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -312,7 +286,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] value 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) @@ -328,7 +302,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 51431dacfb2..b01f71388db 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_request.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # The description of a notebook create request. class NotebookCreateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The data for a notebook create request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookCreateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 9861c16d601..f9e3e7883bc 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 @@ -19,16 +19,22 @@ module DatadogAPIClient::V1 # The attributes of a notebook `distribution` cell. class NotebookDistributionCellAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The Distribution visualization is another way of showing metrics + # aggregated across one or several tags, such as hosts. + # Unlike the heat map, a distribution graph’s x-axis is quantity rather than time. attr_accessor :definition + # The size of the graph. attr_accessor :graph_size + # Object describing how to split the graph to display multiple visualizations per request. attr_accessor :split_by + # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +74,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookDistributionCellAttributes` initialize method" @@ -100,8 +107,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @definition.nil? @@ -146,7 +153,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -154,7 +161,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -260,7 +267,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] value 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) @@ -276,7 +283,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/notebook_global_time.rb b/lib/datadog_api_client/v1/models/notebook_global_time.rb index 0e178c98a64..0d748b360c8 100644 --- a/lib/datadog_api_client/v1/models/notebook_global_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_global_time.rb @@ -25,11 +25,10 @@ class << self # List of class defined in oneOf (OpenAPI v3) def openapi_one_of [ - :'NotebookAbsoluteTime', - :'NotebookRelativeTime' + :'NotebookRelativeTime', + :'NotebookAbsoluteTime' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -57,7 +56,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V1::UnparsedObject.new(data) end - end private @@ -115,4 +113,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/notebook_graph_size.rb b/lib/datadog_api_client/v1/models/notebook_graph_size.rb index fbb085b304b..f3e4cd9d24f 100644 --- a/lib/datadog_api_client/v1/models/notebook_graph_size.rb +++ b/lib/datadog_api_client/v1/models/notebook_graph_size.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The size of the graph. class NotebookGraphSize EXTRA_SMALL = "xs".freeze SMALL = "s".freeze @@ -41,5 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 b32bfedb31f..9fef0eb3aab 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 @@ -19,16 +19,20 @@ module DatadogAPIClient::V1 # The attributes of a notebook `heatmap` cell. class NotebookHeatMapCellAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The heat map visualization shows metrics aggregated across many tags, such as hosts. The more hosts that have a particular value, the darker that square is. attr_accessor :definition + # The size of the graph. attr_accessor :graph_size + # Object describing how to split the graph to display multiple visualizations per request. attr_accessor :split_by + # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +72,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookHeatMapCellAttributes` initialize method" @@ -100,8 +105,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @definition.nil? @@ -146,7 +151,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -154,7 +159,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -260,7 +265,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] value 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) @@ -276,7 +281,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 e566e1286d1..5e0eaf99f7e 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 @@ -19,14 +19,17 @@ module DatadogAPIClient::V1 # The attributes of a notebook `log_stream` cell. class NotebookLogStreamCellAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The Log Stream displays a log flow matching the defined query. Only available on FREE layout dashboards. attr_accessor :definition + # The size of the graph. attr_accessor :graph_size + # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +67,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookLogStreamCellAttributes` initialize method" @@ -92,8 +96,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @definition.nil? @@ -137,7 +141,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -145,7 +149,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -251,7 +255,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] value 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) @@ -267,7 +271,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4e4e5c31893..539984c686e 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # The attributes of a notebook `markdown` cell. class NotebookMarkdownCellAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # 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_accessor :definition # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookMarkdownCellAttributes` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @definition.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 32858a57030..2dfd5c98a83 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # 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. class NotebookMarkdownCellDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # The markdown content. attr_accessor :text + # Type of the markdown cell. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookMarkdownCellDefinition` initialize method" @@ -86,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @text.nil? invalid_properties.push('invalid value for "text", text cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -135,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -143,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -249,7 +250,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] value 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) @@ -265,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition_type.rb b/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition_type.rb index 5a8af2185c0..888b886f18c 100644 --- a/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition_type.rb +++ b/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the markdown cell. class NotebookMarkdownCellDefinitionType MARKDOWN = "markdown".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/notebook_metadata.rb b/lib/datadog_api_client/v1/models/notebook_metadata.rb index b9f8614544d..1d5b0075907 100644 --- a/lib/datadog_api_client/v1/models/notebook_metadata.rb +++ b/lib/datadog_api_client/v1/models/notebook_metadata.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Metadata associated with the notebook. class NotebookMetadata - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class NotebookMetadata # Whether or not the notebook takes snapshot image backups of the notebook's fixed-time graphs. attr_accessor :take_snapshots + # Metadata type of the notebook. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -66,7 +67,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookMetadata` initialize method" @@ -94,16 +96,15 @@ def initialize(attributes = {}) if attributes.key?(:'type') self.type = attributes[:'type'] - else - self.type = 'null' end end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -140,7 +141,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -148,7 +149,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -254,7 +255,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] value 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) @@ -270,7 +271,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/notebook_metadata_type.rb b/lib/datadog_api_client/v1/models/notebook_metadata_type.rb index c1b47a5cf39..64cbb08edc5 100644 --- a/lib/datadog_api_client/v1/models/notebook_metadata_type.rb +++ b/lib/datadog_api_client/v1/models/notebook_metadata_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Metadata type of the notebook. class NotebookMetadataType POSTMORTEM = "postmortem".freeze RUNBOOK = "runbook".freeze @@ -41,5 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 b90e133e720..373947f0d52 100644 --- a/lib/datadog_api_client/v1/models/notebook_relative_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_relative_time.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Relative timeframe. class NotebookRelativeTime - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The available timeframes depend on the widget you are using. attr_accessor :live_span # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookRelativeTime` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @live_span.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/notebook_resource_type.rb b/lib/datadog_api_client/v1/models/notebook_resource_type.rb index 0b3cfa85765..6b6423f939a 100644 --- a/lib/datadog_api_client/v1/models/notebook_resource_type.rb +++ b/lib/datadog_api_client/v1/models/notebook_resource_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the Notebook resource. class NotebookResourceType NOTEBOOKS = "notebooks".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/notebook_response.rb b/lib/datadog_api_client/v1/models/notebook_response.rb index a6e34988c9e..683ee836f1f 100644 --- a/lib/datadog_api_client/v1/models/notebook_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # The description of a notebook response. class NotebookResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The data for a notebook. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookResponse` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 2482128325d..0719ca03822 100644 --- a/lib/datadog_api_client/v1/models/notebook_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_response_data.rb @@ -19,15 +19,17 @@ module DatadogAPIClient::V1 # The data for a notebook. class NotebookResponseData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The attributes of a notebook. attr_accessor :attributes # Unique notebook ID, assigned when you create the notebook. attr_accessor :id + # Type of the Notebook resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookResponseData` initialize method" @@ -94,18 +97,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -149,7 +150,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -157,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -263,7 +264,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] value 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) @@ -279,7 +280,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ef865672243..ffcdf519422 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # The attributes of a notebook. class NotebookResponseDataAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes of user object returned by the API. attr_accessor :author # List of cells to display in the notebook. @@ -31,6 +32,7 @@ class NotebookResponseDataAttributes # UTC time stamp for when the notebook was created. attr_accessor :created + # Metadata associated with the notebook. attr_accessor :metadata # UTC time stamp for when the notebook was last modified. @@ -39,8 +41,10 @@ class NotebookResponseDataAttributes # The name of the notebook. attr_accessor :name + # Publication status of the notebook. For now, always "published". attr_accessor :status + # Notebook global timeframe. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. @@ -87,7 +91,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookResponseDataAttributes` initialize method" @@ -139,26 +144,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @cells.nil? invalid_properties.push('invalid value for "cells", cells cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - - if @name.to_s.length > 80 - invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 80.') - end - - if @name.to_s.length < 0 - invalid_properties.push('invalid value for "name", the character length must be great than or equal to 0.') - end - if @time.nil? invalid_properties.push('invalid value for "time", time cannot be nil.') end @@ -172,30 +167,10 @@ def list_invalid_properties def valid? return false if @cells.nil? return false if @name.nil? - return false if @name.to_s.length > 80 - return false if @name.to_s.length < 0 return false if @time.nil? true end - # Custom attribute writer method with validation - # @param name [Object] name Value to be assigned - def name=(name) - if name.nil? - fail ArgumentError, 'name cannot be nil' - end - - if name.to_s.length > 80 - fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 80.' - end - - if name.to_s.length < 0 - fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 0.' - end - - @name = name - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -227,7 +202,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -235,7 +210,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -341,7 +316,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] value 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) @@ -357,7 +332,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 edeae81861e..309a3b1ee25 100644 --- a/lib/datadog_api_client/v1/models/notebook_split_by.rb +++ b/lib/datadog_api_client/v1/models/notebook_split_by.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing how to split the graph to display multiple visualizations per request. class NotebookSplitBy - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookSplitBy` initialize method" @@ -89,14 +90,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @keys.nil? invalid_properties.push('invalid value for "keys", keys cannot be nil.') end - if @tags.nil? invalid_properties.push('invalid value for "tags", tags cannot be nil.') end @@ -138,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -252,7 +252,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] value 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) @@ -268,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/notebook_status.rb b/lib/datadog_api_client/v1/models/notebook_status.rb index f1d47fe7581..694ff9abd3a 100644 --- a/lib/datadog_api_client/v1/models/notebook_status.rb +++ b/lib/datadog_api_client/v1/models/notebook_status.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Publication status of the notebook. For now, always "published". class NotebookStatus PUBLISHED = "published".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 be4dd34b250..442576f15c9 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 @@ -19,16 +19,20 @@ module DatadogAPIClient::V1 # The attributes of a notebook `timeseries` cell. class NotebookTimeseriesCellAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The timeseries visualization allows you to display the evolution of one or more metrics, log events, or Indexed Spans over time. attr_accessor :definition + # The size of the graph. attr_accessor :graph_size + # Object describing how to split the graph to display multiple visualizations per request. attr_accessor :split_by + # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +72,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookTimeseriesCellAttributes` initialize method" @@ -100,8 +105,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @definition.nil? @@ -146,7 +151,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -154,7 +159,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -260,7 +265,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] value 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) @@ -276,7 +281,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 c01a41269c3..df22204134a 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 @@ -19,16 +19,20 @@ module DatadogAPIClient::V1 # The attributes of a notebook `toplist` cell. class NotebookToplistCellAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The top list visualization enables you to display a list of Tag value like hostname or service with the most or least of any metric value, such as highest consumers of CPU, hosts with the least disk space, etc. attr_accessor :definition + # The size of the graph. attr_accessor :graph_size + # Object describing how to split the graph to display multiple visualizations per request. attr_accessor :split_by + # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +72,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookToplistCellAttributes` initialize method" @@ -100,8 +105,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @definition.nil? @@ -146,7 +151,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -154,7 +159,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -260,7 +265,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] value 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) @@ -276,7 +281,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/notebook_update_cell.rb b/lib/datadog_api_client/v1/models/notebook_update_cell.rb index 830870909f6..8d5fe6037cc 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_cell.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_cell.rb @@ -17,7 +17,8 @@ require 'time' module DatadogAPIClient::V1 - # Updating a notebook can either insert new cell(s) or update existing cell(s) by including the cell `id`. To delete existing cell(s), simply omit it from the list of cells. + # Updating a notebook can either insert new cell(s) or update existing cell(s) by including the cell `id`. + # To delete existing cell(s), simply omit it from the list of cells. module NotebookUpdateCell class << self attr_accessor :_unparsed @@ -29,7 +30,6 @@ def openapi_one_of :'NotebookCellUpdateRequest' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -57,7 +57,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V1::UnparsedObject.new(data) end - end private @@ -115,4 +114,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 e74cc24120d..adda6ed53f8 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_data.rb @@ -19,12 +19,14 @@ module DatadogAPIClient::V1 # The data for a notebook update request. class NotebookUpdateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The data attributes of a notebook. attr_accessor :attributes + # Type of the Notebook resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookUpdateData` initialize method" @@ -85,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 fdd166cf145..e6fe196b23b 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 @@ -19,20 +19,23 @@ module DatadogAPIClient::V1 # The data attributes of a notebook. class NotebookUpdateDataAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # List of cells to display in the notebook. attr_accessor :cells + # Metadata associated with the notebook. attr_accessor :metadata # The name of the notebook. attr_accessor :name + # Publication status of the notebook. For now, always "published". attr_accessor :status + # Notebook global timeframe. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. @@ -73,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookUpdateDataAttributes` initialize method" @@ -113,26 +117,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @cells.nil? invalid_properties.push('invalid value for "cells", cells cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - - if @name.to_s.length > 80 - invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 80.') - end - - if @name.to_s.length < 0 - invalid_properties.push('invalid value for "name", the character length must be great than or equal to 0.') - end - if @time.nil? invalid_properties.push('invalid value for "time", time cannot be nil.') end @@ -146,30 +140,10 @@ def list_invalid_properties def valid? return false if @cells.nil? return false if @name.nil? - return false if @name.to_s.length > 80 - return false if @name.to_s.length < 0 return false if @time.nil? true end - # Custom attribute writer method with validation - # @param name [Object] name Value to be assigned - def name=(name) - if name.nil? - fail ArgumentError, 'name cannot be nil' - end - - if name.to_s.length > 80 - fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 80.' - end - - if name.to_s.length < 0 - fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 0.' - end - - @name = name - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -198,7 +172,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -206,7 +180,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -312,7 +286,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] value 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) @@ -328,7 +302,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 e16ccbbb712..177eb51cc89 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_request.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # The description of a notebook update request. class NotebookUpdateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The data for a notebook update request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookUpdateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/notebooks_response.rb b/lib/datadog_api_client/v1/models/notebooks_response.rb index 6b0ee2be1c4..c00d27768e4 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # Notebooks get all response. class NotebooksResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # List of notebook definitions. attr_accessor :data + # Searches metadata returned by the API. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebooksResponse` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 013ca5400c0..18fcf1c643f 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_data.rb @@ -19,15 +19,17 @@ module DatadogAPIClient::V1 # The data for a notebook in get all response. class NotebooksResponseData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The attributes of a notebook in get all response. attr_accessor :attributes # Unique notebook ID, assigned when you create the notebook. attr_accessor :id + # Type of the Notebook resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebooksResponseData` initialize method" @@ -94,18 +97,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -149,7 +150,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -157,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -263,7 +264,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] value 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) @@ -279,7 +280,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4ab905bcac9..fcf4838468d 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # The attributes of a notebook in get all response. class NotebooksResponseDataAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes of user object returned by the API. attr_accessor :author # List of cells to display in the notebook. @@ -31,6 +32,7 @@ class NotebooksResponseDataAttributes # UTC time stamp for when the notebook was created. attr_accessor :created + # Metadata associated with the notebook. attr_accessor :metadata # UTC time stamp for when the notebook was last modified. @@ -39,8 +41,10 @@ class NotebooksResponseDataAttributes # The name of the notebook. attr_accessor :name + # Publication status of the notebook. For now, always "published". attr_accessor :status + # Notebook global timeframe. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. @@ -87,7 +91,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebooksResponseDataAttributes` initialize method" @@ -139,22 +144,14 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @name.to_s.length > 80 - invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 80.') - end - - if @name.to_s.length < 0 - invalid_properties.push('invalid value for "name", the character length must be great than or equal to 0.') - end - invalid_properties end @@ -163,29 +160,9 @@ def list_invalid_properties # @!visibility private def valid? return false if @name.nil? - return false if @name.to_s.length > 80 - return false if @name.to_s.length < 0 true end - # Custom attribute writer method with validation - # @param name [Object] name Value to be assigned - def name=(name) - if name.nil? - fail ArgumentError, 'name cannot be nil' - end - - if name.to_s.length > 80 - fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 80.' - end - - if name.to_s.length < 0 - fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 0.' - end - - @name = name - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -217,7 +194,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -225,7 +202,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -331,7 +308,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] value 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) @@ -347,7 +324,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 5dc538e5654..d8de758f3bb 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_meta.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_meta.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Searches metadata returned by the API. class NotebooksResponseMeta - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Pagination metadata returned by the API. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebooksResponseMeta` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 fa381e0d018..0f8270c394d 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_page.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_page.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Pagination metadata returned by the API. class NotebooksResponsePage - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebooksResponsePage` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/organization.rb b/lib/datadog_api_client/v1/models/organization.rb index 06b1ea969fa..9a5f7a02f6f 100644 --- a/lib/datadog_api_client/v1/models/organization.rb +++ b/lib/datadog_api_client/v1/models/organization.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Create, edit, and manage organizations. class Organization - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # A JSON array of billing type. attr_accessor :billing # Date of the organization creation. @@ -37,8 +38,10 @@ class Organization # The `public_id` of the organization you are operating within. attr_accessor :public_id + # A JSON array of settings. attr_accessor :settings + # Subscription definition. attr_accessor :subscription # Attribute mapping from ruby-style variable name to JSON key. @@ -83,7 +86,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Organization` initialize method" @@ -127,10 +131,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -141,12 +146,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param name [Object] name Value to be assigned - def name=(name) - @name = name - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -177,7 +176,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -185,7 +184,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -291,7 +290,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] value 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) @@ -307,7 +306,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/organization_billing.rb b/lib/datadog_api_client/v1/models/organization_billing.rb index 2bfbc99011c..125261c1438 100644 --- a/lib/datadog_api_client/v1/models/organization_billing.rb +++ b/lib/datadog_api_client/v1/models/organization_billing.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A JSON array of billing type. class OrganizationBilling - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationBilling` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 23e34ae3632..a931e7f58c3 100644 --- a/lib/datadog_api_client/v1/models/organization_create_body.rb +++ b/lib/datadog_api_client/v1/models/organization_create_body.rb @@ -19,15 +19,17 @@ module DatadogAPIClient::V1 # Object describing an organization to create. class OrganizationCreateBody - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # A JSON array of billing type. attr_accessor :billing # The name of the new child-organization, limited to 32 characters. attr_accessor :name + # Subscription definition. attr_accessor :subscription # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationCreateBody` initialize method" @@ -92,8 +95,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -111,16 +114,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param name [Object] name Value to be assigned - def name=(name) - if name.nil? - fail ArgumentError, 'name cannot be nil' - end - - @name = name - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -147,7 +140,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -155,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -261,7 +254,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] value 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) @@ -277,7 +270,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 c1e2acbf070..531bc663ec5 100644 --- a/lib/datadog_api_client/v1/models/organization_create_response.rb +++ b/lib/datadog_api_client/v1/models/organization_create_response.rb @@ -19,16 +19,20 @@ module DatadogAPIClient::V1 # Response object for an organization creation. class OrganizationCreateResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Datadog API key. attr_accessor :api_key + # An application key with its associated metadata. attr_accessor :application_key + # Create, edit, and manage organizations. attr_accessor :org + # Create, edit, and disable users. attr_accessor :user # Attribute mapping from ruby-style variable name to JSON key. @@ -67,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationCreateResponse` initialize method" @@ -99,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -140,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -148,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -254,7 +260,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] value 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) @@ -270,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 20d158e3734..00f91ac44c1 100644 --- a/lib/datadog_api_client/v1/models/organization_list_response.rb +++ b/lib/datadog_api_client/v1/models/organization_list_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response with the list of organizations. class OrganizationListResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationListResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/organization_response.rb b/lib/datadog_api_client/v1/models/organization_response.rb index fba1ce0e083..2f9691d4210 100644 --- a/lib/datadog_api_client/v1/models/organization_response.rb +++ b/lib/datadog_api_client/v1/models/organization_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Response with an organization. class OrganizationResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Create, edit, and manage organizations. attr_accessor :org # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationResponse` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/organization_settings.rb b/lib/datadog_api_client/v1/models/organization_settings.rb index e0452f436fc..95a80178031 100644 --- a/lib/datadog_api_client/v1/models/organization_settings.rb +++ b/lib/datadog_api_client/v1/models/organization_settings.rb @@ -19,17 +19,21 @@ module DatadogAPIClient::V1 # A JSON array of settings. class OrganizationSettings - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Whether or not the organization users can share widgets outside of Datadog. attr_accessor :private_widget_share + # Set the boolean property enabled to enable or disable single sign on with SAML. + # See the SAML documentation for more information about all SAML settings. attr_accessor :saml + # The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). attr_accessor :saml_autocreate_access_role + # Has two properties, `enabled` (boolean) and `domains`, which is a list of domains without the @ symbol. attr_accessor :saml_autocreate_users_domains # Whether or not SAML can be enabled for this organization. @@ -38,6 +42,7 @@ class OrganizationSettings # Identity provider endpoint for SAML authentication. attr_accessor :saml_idp_endpoint + # Has one property enabled (boolean). attr_accessor :saml_idp_initiated_login # Whether or not a SAML identity provider metadata file was provided to the Datadog organization. @@ -46,6 +51,7 @@ class OrganizationSettings # URL for SAML logging. attr_accessor :saml_login_url + # Has one property enabled (boolean). attr_accessor :saml_strict_mode # Attribute mapping from ruby-style variable name to JSON key. @@ -96,7 +102,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationSettings` initialize method" @@ -154,10 +161,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -201,7 +209,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -209,7 +217,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -315,7 +323,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] value 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) @@ -331,7 +339,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 c249898f280..e1b45a942ab 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml.rb @@ -17,9 +17,10 @@ require 'time' module DatadogAPIClient::V1 - # Set the boolean property enabled to enable or disable single sign on with SAML. See the SAML documentation for more information about all SAML settings. + # Set the boolean property enabled to enable or disable single sign on with SAML. + # See the SAML documentation for more information about all SAML settings. class OrganizationSettingsSaml - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +57,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationSettingsSaml` initialize method" @@ -76,10 +78,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +117,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +125,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +231,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] value 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) @@ -244,7 +247,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 7b442812d87..7a076645b17 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Has two properties, `enabled` (boolean) and `domains`, which is a list of domains without the @ symbol. class OrganizationSettingsSamlAutocreateUsersDomains - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationSettingsSamlAutocreateUsersDomains` initialize method" @@ -87,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -126,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -134,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -240,7 +242,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] value 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) @@ -256,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 2a6770a2522..b04659abfd8 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 @@ -19,11 +19,12 @@ module DatadogAPIClient::V1 # Has one property enabled (boolean). class OrganizationSettingsSamlIdpInitiatedLogin - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # Whether SAML IdP initiated login is enabled, learn more in the [SAML documentation](https://docs.datadoghq.com/account_management/saml/#idp-initiated-login). + # Whether SAML IdP initiated login is enabled, learn more + # in the [SAML documentation](https://docs.datadoghq.com/account_management/saml/#idp-initiated-login). attr_accessor :enabled # Attribute mapping from ruby-style variable name to JSON key. @@ -56,7 +57,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationSettingsSamlIdpInitiatedLogin` initialize method" @@ -76,10 +78,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +117,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +125,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +231,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] value 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) @@ -244,7 +247,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 33687320a65..2140eed01f6 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 @@ -19,11 +19,12 @@ module DatadogAPIClient::V1 # Has one property enabled (boolean). class OrganizationSettingsSamlStrictMode - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # Whether or not the SAML strict mode is enabled. If true, all users must log in with SAML. Learn more on the [SAML Strict documentation](https://docs.datadoghq.com/account_management/saml/#saml-strict). + # Whether or not the SAML strict mode is enabled. If true, all users must log in with SAML. + # Learn more on the [SAML Strict documentation](https://docs.datadoghq.com/account_management/saml/#saml-strict). attr_accessor :enabled # Attribute mapping from ruby-style variable name to JSON key. @@ -56,7 +57,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationSettingsSamlStrictMode` initialize method" @@ -76,10 +78,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +117,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +125,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +231,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] value 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) @@ -244,7 +247,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/organization_subscription.rb b/lib/datadog_api_client/v1/models/organization_subscription.rb index 06c5fcc9956..ac80d455e72 100644 --- a/lib/datadog_api_client/v1/models/organization_subscription.rb +++ b/lib/datadog_api_client/v1/models/organization_subscription.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Subscription definition. class OrganizationSubscription - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationSubscription` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 6e1c34a0a53..03bf82de6c0 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The PagerDuty service that is available for integration with Datadog. class PagerDutyService - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::PagerDutyService` initialize method" @@ -85,14 +86,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @service_key.nil? invalid_properties.push('invalid value for "service_key", service_key cannot be nil.') end - if @service_name.nil? invalid_properties.push('invalid value for "service_name", service_name cannot be nil.') end @@ -134,7 +134,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +248,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] value 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) @@ -264,7 +264,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 f128f9960b4..5d0f2e65b5d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # PagerDuty service object key. class PagerDutyServiceKey - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::PagerDutyServiceKey` initialize method" @@ -76,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @service_key.nil? @@ -119,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -127,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -233,7 +234,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] value 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) @@ -249,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ac1e90c98ed..bde237e7204 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # PagerDuty service object name. class PagerDutyServiceName - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::PagerDutyServiceName` initialize method" @@ -76,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @service_name.nil? @@ -119,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -127,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -233,7 +234,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] value 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) @@ -249,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/pagination.rb b/lib/datadog_api_client/v1/models/pagination.rb index a30fa554779..b86038f4622 100644 --- a/lib/datadog_api_client/v1/models/pagination.rb +++ b/lib/datadog_api_client/v1/models/pagination.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Pagination object. class Pagination - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Pagination` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 511142ad948..3bd170287d7 100644 --- a/lib/datadog_api_client/v1/models/process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/process_query_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The process query to use in the widget. class ProcessQueryDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ProcessQueryDefinition` initialize method" @@ -105,14 +106,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@limit.nil? && @limit < 0 - invalid_properties.push('invalid value for "limit", must be greater than or equal to 0.') - end - if @metric.nil? invalid_properties.push('invalid value for "metric", metric cannot be nil.') end @@ -124,21 +121,10 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@limit.nil? && @limit < 0 return false if @metric.nil? true end - # Custom attribute writer method with validation - # @param limit [Object] limit Value to be assigned - def limit=(limit) - if !limit.nil? && limit < 0 - fail ArgumentError, 'invalid value for "limit", must be greater than or equal to 0.' - end - - @limit = limit - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -166,7 +152,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -174,7 +160,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -280,7 +266,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] value 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) @@ -296,7 +282,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/query_sort_order.rb b/lib/datadog_api_client/v1/models/query_sort_order.rb index 5f92abdf702..e8bfbfa1291 100644 --- a/lib/datadog_api_client/v1/models/query_sort_order.rb +++ b/lib/datadog_api_client/v1/models/query_sort_order.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Direction of sort. class QuerySortOrder ASC = "asc".freeze DESC = "desc".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 7452f1debd6..76d90cfbc0e 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Query values display the current value of a given metric, APM, or log query. class QueryValueWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -38,18 +38,22 @@ class QueryValueWidgetDefinition # Widget definition. attr_accessor :requests + # How to align the text on the widget. attr_accessor :text_align + # Time setting for the widget. attr_accessor :time # Title of your widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the query value widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -102,7 +106,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::QueryValueWidgetDefinition` initialize method" @@ -168,22 +173,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - - if @requests.length > 1 - invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') - end - - if @requests.length < 1 - invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') - end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -196,30 +192,10 @@ def list_invalid_properties # @!visibility private def valid? return false if @requests.nil? - return false if @requests.length > 1 - return false if @requests.length < 1 return false if @type.nil? true end - # Custom attribute writer method with validation - # @param requests [Object] requests Value to be assigned - def requests=(requests) - if requests.nil? - fail ArgumentError, 'requests cannot be nil' - end - - if requests.length > 1 - fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' - end - - if requests.length < 1 - fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' - end - - @requests = requests - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -254,7 +230,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -262,7 +238,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -368,7 +344,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] value 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) @@ -384,7 +360,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/query_value_widget_definition_type.rb b/lib/datadog_api_client/v1/models/query_value_widget_definition_type.rb index 2293d787093..8b1481bbf5c 100644 --- a/lib/datadog_api_client/v1/models/query_value_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/query_value_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the query value widget. class QueryValueWidgetDefinitionType QUERY_VALUE = "query_value".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 e988c8f9d2d..3c454a97e62 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 @@ -19,30 +19,38 @@ module DatadogAPIClient::V1 # Updated query value widget. class QueryValueWidgetRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Aggregator used for the request. attr_accessor :aggregator + # The log query. attr_accessor :apm_query + # The log query. attr_accessor :audit_query # List of conditional formats. attr_accessor :conditional_formats + # The log query. attr_accessor :event_query # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas + # The log query. attr_accessor :log_query + # The log query. attr_accessor :network_query + # The process query to use in the widget. attr_accessor :process_query + # The log query. attr_accessor :profile_metrics_query # TODO. @@ -51,10 +59,13 @@ class QueryValueWidgetRequest # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries + # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format + # The log query. attr_accessor :rum_query + # The log query. attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. @@ -115,7 +126,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::QueryValueWidgetRequest` initialize method" @@ -197,10 +209,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -249,7 +262,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -257,7 +270,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -363,7 +376,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] value 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) @@ -379,7 +392,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 e203191a34e..0440c6e4086 100644 --- a/lib/datadog_api_client/v1/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v1/models/response_meta_attributes.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Object describing meta attributes of response. class ResponseMetaAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Pagination object. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ResponseMetaAttributes` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4c6e662d45e..bed42b089bc 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_request.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_request.rb @@ -19,29 +19,38 @@ module DatadogAPIClient::V1 # Updated scatter plot. class ScatterPlotRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Aggregator used for the request. attr_accessor :aggregator + # The log query. attr_accessor :apm_query + # The log query. attr_accessor :event_query + # The log query. attr_accessor :log_query + # The log query. attr_accessor :network_query + # The process query to use in the widget. attr_accessor :process_query + # The log query. attr_accessor :profile_metrics_query # Query definition. attr_accessor :q + # The log query. attr_accessor :rum_query + # The log query. attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. @@ -92,7 +101,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ScatterPlotRequest` initialize method" @@ -148,10 +158,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -195,7 +206,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -203,7 +214,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -309,7 +320,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] value 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) @@ -325,7 +336,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 f2949cd583a..9aff5a8b99c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The scatter plot visualization allows you to graph a chosen scope over two different metrics with their respective aggregation. class ScatterPlotWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,22 +29,28 @@ class ScatterPlotWidgetDefinition # List of custom links. attr_accessor :custom_links + # Widget definition. attr_accessor :requests + # Time setting for the widget. attr_accessor :time # Title of your widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the scatter plot widget. attr_accessor :type + # Axis controls for the widget. attr_accessor :xaxis + # Axis controls for the widget. attr_accessor :yaxis # Attribute mapping from ruby-style variable name to JSON key. @@ -95,7 +101,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ScatterPlotWidgetDefinition` initialize method" @@ -157,14 +164,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -214,7 +220,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -222,7 +228,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -328,7 +334,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] value 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) @@ -344,7 +350,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 d734d37fa5b..bdb548a3224 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 @@ -19,14 +19,17 @@ module DatadogAPIClient::V1 # Widget definition. class ScatterPlotWidgetDefinitionRequests - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Scatterplot request containing formulas and functions. attr_accessor :table + # Updated scatter plot. attr_accessor :x + # Updated scatter plot. attr_accessor :y # Attribute mapping from ruby-style variable name to JSON key. @@ -63,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ScatterPlotWidgetDefinitionRequests` initialize method" @@ -91,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -131,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -139,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -245,7 +250,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] value 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) @@ -261,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_type.rb b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_type.rb index d9e74b9078a..08d1c201f03 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the scatter plot widget. class ScatterPlotWidgetDefinitionType SCATTERPLOT = "scatterplot".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/scatterplot_dimension.rb b/lib/datadog_api_client/v1/models/scatterplot_dimension.rb index 56a4a984fbd..d6ff84b7727 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_dimension.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_dimension.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Dimension of the Scatterplot. class ScatterplotDimension X = "x".freeze Y = "y".freeze @@ -40,5 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 5ec70ef216c..7044d54a1f2 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_table_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Scatterplot request containing formulas and functions. class ScatterplotTableRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class ScatterplotTableRequest # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries + # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format # Attribute mapping from ruby-style variable name to JSON key. @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ScatterplotTableRequest` initialize method" @@ -97,10 +99,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -137,7 +140,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -145,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -251,7 +254,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] value 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) @@ -267,7 +270,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/scatterplot_widget_aggregator.rb b/lib/datadog_api_client/v1/models/scatterplot_widget_aggregator.rb index a9ac7e11e58..7da5e83056a 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_widget_aggregator.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_widget_aggregator.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Aggregator used for the request. class ScatterplotWidgetAggregator AVERAGE = "avg".freeze LAST = "last".freeze @@ -41,5 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 4290873c911..e157998c59b 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # Formula to be used in a Scatterplot widget query. class ScatterplotWidgetFormula - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Expression alias. attr_accessor :_alias + # Dimension of the Scatterplot. attr_accessor :dimension # String expression built from queries, formulas, and functions. @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ScatterplotWidgetFormula` initialize method" @@ -93,14 +95,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @dimension.nil? invalid_properties.push('invalid value for "dimension", dimension cannot be nil.') end - if @formula.nil? invalid_properties.push('invalid value for "formula", formula cannot be nil.') end @@ -143,7 +144,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -151,7 +152,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -257,7 +258,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] value 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) @@ -273,7 +274,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/series.rb b/lib/datadog_api_client/v1/models/series.rb index 99b74423fb4..994d2b5b9ef 100644 --- a/lib/datadog_api_client/v1/models/series.rb +++ b/lib/datadog_api_client/v1/models/series.rb @@ -17,9 +17,10 @@ require 'time' module DatadogAPIClient::V1 - # A metric to submit to Datadog. See [Datadog metrics](https://docs.datadoghq.com/developers/metrics/#custom-metrics-properties). + # A metric to submit to Datadog. + # See [Datadog metrics](https://docs.datadoghq.com/developers/metrics/#custom-metrics-properties). class Series - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -67,7 +68,7 @@ def self.openapi_types :'host' => :'String', :'interval' => :'Integer', :'metric' => :'String', - :'points' => :'Array', + :'points' => :'Array>', :'tags' => :'Array', :'type' => :'String' } @@ -77,12 +78,13 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'interval', + :'interval' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Series` initialize method" @@ -128,14 +130,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @metric.nil? invalid_properties.push('invalid value for "metric", metric cannot be nil.') end - if @points.nil? invalid_properties.push('invalid value for "points", points cannot be nil.') end @@ -181,7 +182,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -189,7 +190,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -295,7 +296,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] value 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) @@ -311,7 +312,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/service_check.rb b/lib/datadog_api_client/v1/models/service_check.rb index f340ef96d5f..1c5fdaaf6dd 100644 --- a/lib/datadog_api_client/v1/models/service_check.rb +++ b/lib/datadog_api_client/v1/models/service_check.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An object containing service check and status. class ServiceCheck - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -32,6 +32,7 @@ class ServiceCheck # Message containing check status. attr_accessor :message + # The status of a service check. attr_accessor :status # Tags related to a check. @@ -80,7 +81,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ServiceCheck` initialize method" @@ -122,22 +124,19 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @check.nil? invalid_properties.push('invalid value for "check", check cannot be nil.') end - if @host_name.nil? invalid_properties.push('invalid value for "host_name", host_name cannot be nil.') end - if @status.nil? invalid_properties.push('invalid value for "status", status cannot be nil.') end - if @tags.nil? invalid_properties.push('invalid value for "tags", tags cannot be nil.') end @@ -185,7 +184,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -193,7 +192,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -299,7 +298,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] value 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) @@ -315,7 +314,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/service_check_status.rb b/lib/datadog_api_client/v1/models/service_check_status.rb index 119e56d404f..be52025e8a3 100644 --- a/lib/datadog_api_client/v1/models/service_check_status.rb +++ b/lib/datadog_api_client/v1/models/service_check_status.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The status of a service check. class ServiceCheckStatus OK = 0.freeze WARNING = 1.freeze @@ -40,5 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 b7e3d58cd81..5a5efd571f1 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective.rb @@ -17,46 +17,74 @@ require 'time' module DatadogAPIClient::V1 - # A service level objective object includes a service level indicator, thresholds for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). + # A service level objective object includes a service level indicator, thresholds + # for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). class ServiceLevelObjective - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # Creation timestamp (UNIX time in seconds) Always included in service level objective responses. + # Creation timestamp (UNIX time in seconds) + # + # Always included in service level objective responses. attr_accessor :created_at + # Object describing the creator of the shared element. attr_accessor :creator - # A user-defined description of the service level objective. Always included in service level objective responses (but may be `null`). Optional in create/update requests. + # A user-defined description of the service level objective. + # + # Always included in service level objective responses (but may be `null`). + # Optional in create/update requests. attr_accessor :description - # A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. Included in service level objective responses if it is not empty. Optional in create/update requests for monitor service level objectives, but may only be used when then length of the `monitor_ids` field is one. + # A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. + # + # Included in service level objective responses if it is not empty. Optional in + # create/update requests for monitor service level objectives, but may only be + # used when then length of the `monitor_ids` field is one. attr_accessor :groups - # A unique identifier for the service level objective object. Always included in service level objective responses. + # A unique identifier for the service level objective object. + # + # Always included in service level objective responses. attr_accessor :id - # Modification timestamp (UNIX time in seconds) Always included in service level objective responses. + # Modification timestamp (UNIX time in seconds) + # + # Always included in service level objective responses. attr_accessor :modified_at - # A list of monitor ids that defines the scope of a monitor service level objective. **Required if type is `monitor`**. + # A list of monitor ids that defines the scope of a monitor service level + # objective. **Required if type is `monitor`**. attr_accessor :monitor_ids - # The union of monitor tags for all monitors referenced by the `monitor_ids` field. Always included in service level objective responses for monitor service level objectives (but may be empty). Ignored in create/update requests. Does not affect which monitors are included in the service level objective (that is determined entirely by the `monitor_ids` field). + # The union of monitor tags for all monitors referenced by the `monitor_ids` + # field. + # Always included in service level objective responses for monitor service level + # objectives (but may be empty). Ignored in create/update requests. Does not + # affect which monitors are included in the service level objective (that is + # determined entirely by the `monitor_ids` field). attr_accessor :monitor_tags # The name of the service level objective object. attr_accessor :name + # A metric SLI query. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator + # to be used because this will sum up all request counts instead of averaging them, or taking the max or + # min of all of those requests. attr_accessor :query - # A list of tags associated with this service level objective. Always included in service level objective responses (but may be empty). Optional in create/update requests. + # A list of tags associated with this service level objective. + # Always included in service level objective responses (but may be empty). + # Optional in create/update requests. attr_accessor :tags - # The thresholds (timeframes and associated targets) for this service level objective object. + # The thresholds (timeframes and associated targets) for this service level + # objective object. attr_accessor :thresholds + # The type of the service level objective. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -109,12 +137,13 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'description', + :'description' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ServiceLevelObjective` initialize method" @@ -192,18 +221,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @thresholds.nil? invalid_properties.push('invalid value for "thresholds", thresholds cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -257,7 +284,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -265,7 +292,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -371,7 +398,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] value 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) @@ -387,7 +414,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 967106e3904..2adb296dcae 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 @@ -17,9 +17,11 @@ require 'time' module DatadogAPIClient::V1 - # A metric SLI query. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator to be used because this will sum up all request counts instead of averaging them, or taking the max or min of all of those requests. + # A metric SLI query. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator + # to be used because this will sum up all request counts instead of averaging them, or taking the max or + # min of all of those requests. class ServiceLevelObjectiveQuery - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +63,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ServiceLevelObjectiveQuery` initialize method" @@ -85,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @denominator.nil? invalid_properties.push('invalid value for "denominator", denominator cannot be nil.') end - if @numerator.nil? invalid_properties.push('invalid value for "numerator", numerator cannot be nil.') end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 e230d8dbe25..745de47b6ed 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 @@ -17,32 +17,48 @@ require 'time' module DatadogAPIClient::V1 - # A service level objective object includes a service level indicator, thresholds for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). + # A service level objective object includes a service level indicator, thresholds + # for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). class ServiceLevelObjectiveRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # A user-defined description of the service level objective. Always included in service level objective responses (but may be `null`). Optional in create/update requests. + # A user-defined description of the service level objective. + # + # Always included in service level objective responses (but may be `null`). + # Optional in create/update requests. attr_accessor :description - # A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. Included in service level objective responses if it is not empty. Optional in create/update requests for monitor service level objectives, but may only be used when then length of the `monitor_ids` field is one. + # A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. + # + # Included in service level objective responses if it is not empty. Optional in + # create/update requests for monitor service level objectives, but may only be + # used when then length of the `monitor_ids` field is one. attr_accessor :groups - # A list of monitor ids that defines the scope of a monitor service level objective. **Required if type is `monitor`**. + # A list of monitor ids that defines the scope of a monitor service level + # objective. **Required if type is `monitor`**. attr_accessor :monitor_ids # The name of the service level objective object. attr_accessor :name + # A metric SLI query. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator + # to be used because this will sum up all request counts instead of averaging them, or taking the max or + # min of all of those requests. attr_accessor :query - # A list of tags associated with this service level objective. Always included in service level objective responses (but may be empty). Optional in create/update requests. + # A list of tags associated with this service level objective. + # Always included in service level objective responses (but may be empty). + # Optional in create/update requests. attr_accessor :tags - # The thresholds (timeframes and associated targets) for this service level objective object. + # The thresholds (timeframes and associated targets) for this service level + # objective object. attr_accessor :thresholds + # The type of the service level objective. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -85,12 +101,13 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'description', + :'description' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ServiceLevelObjectiveRequest` initialize method" @@ -146,18 +163,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @thresholds.nil? invalid_properties.push('invalid value for "thresholds", thresholds cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -206,7 +221,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -214,7 +229,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -320,7 +335,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] value 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) @@ -336,7 +351,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 43d4c59e8c4..e1c489153b3 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # This widget displays a map of a service to all of the services that call it, and all of the services that it calls. class ServiceMapWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -35,11 +35,13 @@ class ServiceMapWidgetDefinition # The title of your widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the service map widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -84,7 +86,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ServiceMapWidgetDefinition` initialize method" @@ -134,22 +137,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @filters.nil? invalid_properties.push('invalid value for "filters", filters cannot be nil.') end - - if @filters.length < 1 - invalid_properties.push('invalid value for "filters", number of items must be greater than or equal to 1.') - end - if @service.nil? invalid_properties.push('invalid value for "service", service cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -162,26 +159,11 @@ def list_invalid_properties # @!visibility private def valid? return false if @filters.nil? - return false if @filters.length < 1 return false if @service.nil? return false if @type.nil? true end - # Custom attribute writer method with validation - # @param filters [Object] filters Value to be assigned - def filters=(filters) - if filters.nil? - fail ArgumentError, 'filters cannot be nil' - end - - if filters.length < 1 - fail ArgumentError, 'invalid value for "filters", number of items must be greater than or equal to 1.' - end - - @filters = filters - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -212,7 +194,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -220,7 +202,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -326,7 +308,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] value 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) @@ -342,7 +324,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/service_map_widget_definition_type.rb b/lib/datadog_api_client/v1/models/service_map_widget_definition_type.rb index a0e4469e88d..1042eea936b 100644 --- a/lib/datadog_api_client/v1/models/service_map_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/service_map_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the service map widget. class ServiceMapWidgetDefinitionType SERVICEMAP = "servicemap".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 ec36269de4e..724e3446383 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # The service summary displays the graphs of a chosen service in your screenboard. Only available on FREE layout dashboards. class ServiceSummaryWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Number of columns to display. attr_accessor :display_format # APM environment. @@ -49,21 +50,25 @@ class ServiceSummaryWidgetDefinition # Whether to show the resource list or not. attr_accessor :show_resource_list + # Size of the widget. attr_accessor :size_format # APM span name. attr_accessor :span_name + # Time setting for the widget. attr_accessor :time # Title of the widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the service summary widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -126,7 +131,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ServiceSummaryWidgetDefinition` initialize method" @@ -208,22 +214,19 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @env.nil? invalid_properties.push('invalid value for "env", env cannot be nil.') end - if @service.nil? invalid_properties.push('invalid value for "service", service cannot be nil.') end - if @span_name.nil? invalid_properties.push('invalid value for "span_name", span_name cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -281,7 +284,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -289,7 +292,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -395,7 +398,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] value 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) @@ -411,7 +414,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/service_summary_widget_definition_type.rb b/lib/datadog_api_client/v1/models/service_summary_widget_definition_type.rb index c115ecde076..50fb1a0c146 100644 --- a/lib/datadog_api_client/v1/models/service_summary_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/service_summary_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the service summary widget. class ServiceSummaryWidgetDefinitionType TRACE_SERVICE = "trace_service".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 260d5813d8e..8325d0aab98 100644 --- a/lib/datadog_api_client/v1/models/slack_integration_channel.rb +++ b/lib/datadog_api_client/v1/models/slack_integration_channel.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # The Slack channel configuration. class SlackIntegrationChannel - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Configuration options for what is shown in an alert event message. attr_accessor :display # Your channel name. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SlackIntegrationChannel` initialize method" @@ -84,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -123,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -131,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -237,7 +240,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] value 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) @@ -253,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 d73c93b151a..22fb05646f6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Configuration options for what is shown in an alert event message. class SlackIntegrationChannelDisplay - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SlackIntegrationChannelDisplay` initialize method" @@ -111,10 +112,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -152,7 +154,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -160,7 +162,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -266,7 +268,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] value 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) @@ -282,7 +284,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 3419dd44f18..9e8fe985841 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 @@ -19,16 +19,19 @@ module DatadogAPIClient::V1 # Object describing the error. class SLOBulkDeleteError - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # The ID of the service level objective object associated with this error. + # The ID of the service level objective object associated with + # this error. attr_accessor :id # The error message. attr_accessor :message + # The timeframe of the threshold associated with this error + # or "all" if all thresholds are affected. attr_accessor :timeframe # Attribute mapping from ruby-style variable name to JSON key. @@ -65,7 +68,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOBulkDeleteError` initialize method" @@ -93,18 +97,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @message.nil? invalid_properties.push('invalid value for "message", message cannot be nil.') end - if @timeframe.nil? invalid_properties.push('invalid value for "timeframe", timeframe cannot be nil.') end @@ -148,7 +150,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -156,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -262,7 +264,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] value 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) @@ -278,7 +280,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 a8bfe5af202..56132cdb1dd 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 @@ -17,12 +17,18 @@ require 'time' module DatadogAPIClient::V1 - # The bulk partial delete service level objective object endpoint response. This endpoint operates on multiple service level objective objects, so it may be partially successful. In such cases, the \"data\" and \"error\" fields in this response indicate which deletions succeeded and failed. + # The bulk partial delete service level objective object endpoint + # response. + # + # This endpoint operates on multiple service level objective objects, so + # it may be partially successful. In such cases, the "data" and "error" + # fields in this response indicate which deletions succeeded and failed. class SLOBulkDeleteResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # An array of service level objective objects. attr_accessor :data # Array of errors object returned. @@ -60,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOBulkDeleteResponse` initialize method" @@ -86,10 +93,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +133,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +141,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +247,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] value 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) @@ -255,7 +263,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 597a92586f8..909c8064bb1 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 @@ -19,14 +19,17 @@ module DatadogAPIClient::V1 # An array of service level objective objects. class SLOBulkDeleteResponseData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # An array of service level objective object IDs that indicates which objects that were completely deleted. + # An array of service level objective object IDs that indicates + # which objects that were completely deleted. attr_accessor :deleted - # An array of service level objective object IDs that indicates which objects that were modified (objects for which at least one threshold was deleted, but that were not completely deleted). + # An array of service level objective object IDs that indicates + # which objects that were modified (objects for which at least one + # threshold was deleted, but that were not completely deleted). attr_accessor :updated # Attribute mapping from ruby-style variable name to JSON key. @@ -61,7 +64,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOBulkDeleteResponseData` initialize method" @@ -89,10 +93,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -128,7 +133,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -136,7 +141,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -242,7 +247,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] value 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) @@ -258,7 +263,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/slo_correction.rb b/lib/datadog_api_client/v1/models/slo_correction.rb index e9f9a0ab88a..583a743ef7c 100644 --- a/lib/datadog_api_client/v1/models/slo_correction.rb +++ b/lib/datadog_api_client/v1/models/slo_correction.rb @@ -19,15 +19,17 @@ module DatadogAPIClient::V1 # The response object of a list of SLO corrections. class SLOCorrection - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The attribute object associated with the SLO correction. attr_accessor :attributes # The ID of the SLO correction. attr_accessor :id + # SLO correction resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrection` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/slo_correction_category.rb b/lib/datadog_api_client/v1/models/slo_correction_category.rb index f3f05369267..ab4e56e7d85 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_category.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_category.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Category the SLO correction belongs to. class SLOCorrectionCategory SCHEDULED_MAINTENANCE = "Scheduled Maintenance".freeze OUTSIDE_BUSINESS_HOURS = "Outside Business Hours".freeze @@ -40,5 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 45a75476646..90b64fff772 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V1 # The data object associated with the SLO correction to be created. class SLOCorrectionCreateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The attribute object associated with the SLO correction to be created. attr_accessor :attributes + # SLO correction resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionCreateData` initialize method" @@ -85,8 +88,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -129,7 +132,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -137,7 +140,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -243,7 +246,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] value 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) @@ -259,7 +262,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 06954e7595f..7a220ab726c 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # An object that defines a correction to be applied to an SLO. class SLOCorrectionCreateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The data object associated with the SLO correction to be created. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionCreateRequest` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 bfd070d5b4e..4f27d9e7f92 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # The attribute object associated with the SLO correction to be created. class SLOCorrectionCreateRequestAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Category the SLO correction belongs to. attr_accessor :category # Description of the correction being made. @@ -34,7 +35,8 @@ class SLOCorrectionCreateRequestAttributes # Ending time of the correction in epoch seconds. attr_accessor :_end - # The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections are `FREQ`, `INTERVAL`, `COUNT` and `UNTIL`. + # The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections + # are `FREQ`, `INTERVAL`, `COUNT` and `UNTIL`. attr_accessor :rrule # ID of the SLO that this correction will be applied to. @@ -43,7 +45,7 @@ class SLOCorrectionCreateRequestAttributes # Starting time of the correction in epoch seconds. attr_accessor :start - # The timezone to display in the UI for the correction times (defaults to \"UTC\"). + # The timezone to display in the UI for the correction times (defaults to "UTC"). attr_accessor :timezone # Attribute mapping from ruby-style variable name to JSON key. @@ -90,7 +92,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionCreateRequestAttributes` initialize method" @@ -138,18 +141,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @category.nil? invalid_properties.push('invalid value for "category", category cannot be nil.') end - if @slo_id.nil? invalid_properties.push('invalid value for "slo_id", slo_id cannot be nil.') end - if @start.nil? invalid_properties.push('invalid value for "start", start cannot be nil.') end @@ -198,7 +199,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -206,7 +207,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -312,7 +313,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] value 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) @@ -328,7 +329,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 77590cdb823..117b8192935 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # A list of SLO correction objects. class SLOCorrectionListResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # The list of of SLO corrections objects. attr_accessor :data + # Object describing meta attributes of response. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionListResponse` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 e751182dd60..0c482e4f4d6 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_response.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # The response object of an SLO correction. class SLOCorrectionResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The response object of a list of SLO corrections. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionResponse` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 d75031fa195..fa7d1bfa30d 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V1 # The attribute object associated with the SLO correction. class SLOCorrectionResponseAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Category the SLO correction belongs to. attr_accessor :category # The epoch timestamp of when the correction was created at attr_accessor :created_at + # Object describing the creator of the shared element. attr_accessor :creator # Description of the correction being made. @@ -42,9 +44,11 @@ class SLOCorrectionResponseAttributes # The epoch timestamp of when the correction was modified at attr_accessor :modified_at + # Modifier of the object. attr_accessor :modifier - # The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections are `FREQ`, `INTERVAL`, `COUNT` and `UNTIL`. + # The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections + # are `FREQ`, `INTERVAL`, `COUNT` and `UNTIL`. attr_accessor :rrule # ID of the SLO that this correction will be applied to. @@ -53,7 +57,7 @@ class SLOCorrectionResponseAttributes # Starting time of the correction in epoch seconds. attr_accessor :start - # The timezone to display in the UI for the correction times (defaults to \"UTC\"). + # The timezone to display in the UI for the correction times (defaults to "UTC"). attr_accessor :timezone # Attribute mapping from ruby-style variable name to JSON key. @@ -106,12 +110,13 @@ def self.openapi_nullable Set.new([ :'duration', :'modifier', - :'rrule', + :'rrule' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionResponseAttributes` initialize method" @@ -175,10 +180,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -224,7 +230,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -232,7 +238,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -338,7 +344,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] value 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) @@ -354,7 +360,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 40f81cdaa03..894548db287 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Modifier of the object. class SLOCorrectionResponseAttributesModifier - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionResponseAttributesModifier` initialize method" @@ -94,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/slo_correction_type.rb b/lib/datadog_api_client/v1/models/slo_correction_type.rb index 6e06cbea604..17e1b71b145 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_type.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # SLO correction resource type. class SLOCorrectionType CORRECTION = "correction".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 dbbdb0888c4..8bcf23990e2 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V1 # The data object associated with the SLO correction to be updated. class SLOCorrectionUpdateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The attribute object associated with the SLO correction to be updated. attr_accessor :attributes + # SLO correction resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionUpdateData` initialize method" @@ -85,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +242,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] value 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) @@ -254,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 0ef6f7a03e6..172e694c8fe 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # An object that defines a correction to be applied to an SLO. class SLOCorrectionUpdateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The data object associated with the SLO correction to be updated. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionUpdateRequest` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 3f3ae71e166..03a05b960c2 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # The attribute object associated with the SLO correction to be updated. class SLOCorrectionUpdateRequestAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Category the SLO correction belongs to. attr_accessor :category # Description of the correction being made. @@ -34,13 +35,14 @@ class SLOCorrectionUpdateRequestAttributes # Ending time of the correction in epoch seconds. attr_accessor :_end - # The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections are `FREQ`, `INTERVAL`, `COUNT` and `UNTIL`. + # The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections + # are `FREQ`, `INTERVAL`, `COUNT` and `UNTIL`. attr_accessor :rrule # Starting time of the correction in epoch seconds. attr_accessor :start - # The timezone to display in the UI for the correction times (defaults to \"UTC\"). + # The timezone to display in the UI for the correction times (defaults to "UTC"). attr_accessor :timezone # Attribute mapping from ruby-style variable name to JSON key. @@ -85,7 +87,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionUpdateRequestAttributes` initialize method" @@ -129,10 +132,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -173,7 +177,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -181,7 +185,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -287,7 +291,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] value 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) @@ -303,7 +307,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 103e0be3110..9a535c0be39 100644 --- a/lib/datadog_api_client/v1/models/slo_delete_response.rb +++ b/lib/datadog_api_client/v1/models/slo_delete_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A response list of all service level objective deleted. class SLODeleteResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLODeleteResponse` initialize method" @@ -82,17 +83,16 @@ def initialize(attributes = {}) end if attributes.key?(:'errors') - if (value = attributes[:'errors']).is_a?(Hash) - self.errors = value - end + self.errors = attributes[:'errors'] end end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -128,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -242,7 +242,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] value 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) @@ -258,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/slo_error_timeframe.rb b/lib/datadog_api_client/v1/models/slo_error_timeframe.rb index a5264553480..16f326aa7d0 100644 --- a/lib/datadog_api_client/v1/models/slo_error_timeframe.rb +++ b/lib/datadog_api_client/v1/models/slo_error_timeframe.rb @@ -17,6 +17,8 @@ require 'time' module DatadogAPIClient::V1 + # The timeframe of the threshold associated with this error + # or "all" if all thresholds are affected. class SLOErrorTimeframe SEVEN_DAYS = "7d".freeze THIRTY_DAYS = "30d".freeze @@ -40,5 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 96053959a44..5afc47e84c0 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics.rb @@ -17,12 +17,16 @@ require 'time' module DatadogAPIClient::V1 - # A `metric` based SLO history response. This is not included in responses for `monitor` based SLOs. + # A `metric` based SLO history response. + # + # This is not included in responses for `monitor` based SLOs. class SLOHistoryMetrics - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # A representation of `metric` based SLO time series for the provided queries. + # This is the same response type from `batch_query` endpoint. attr_accessor :denominator # The aggregated query interval for the series data. It's implicit based on the query time window. @@ -31,6 +35,8 @@ class SLOHistoryMetrics # Optional message if there are specific query issues/warnings. attr_accessor :message + # A representation of `metric` based SLO time series for the provided queries. + # This is the same response type from `batch_query` endpoint. attr_accessor :numerator # The combined numerator and denominator query CSV. @@ -89,7 +95,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryMetrics` initialize method" @@ -139,34 +146,28 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @denominator.nil? invalid_properties.push('invalid value for "denominator", denominator cannot be nil.') end - if @interval.nil? invalid_properties.push('invalid value for "interval", interval cannot be nil.') end - if @numerator.nil? invalid_properties.push('invalid value for "numerator", numerator cannot be nil.') end - if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end - if @res_type.nil? invalid_properties.push('invalid value for "res_type", res_type cannot be nil.') end - if @resp_version.nil? invalid_properties.push('invalid value for "resp_version", resp_version cannot be nil.') end - if @times.nil? invalid_properties.push('invalid value for "times", times cannot be nil.') end @@ -219,7 +220,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -227,7 +228,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -333,7 +334,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] value 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) @@ -349,7 +350,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 dd9c79cf56d..7ad8222fe63 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 @@ -17,15 +17,17 @@ require 'time' module DatadogAPIClient::V1 - # A representation of `metric` based SLO time series for the provided queries. This is the same response type from `batch_query` endpoint. + # A representation of `metric` based SLO time series for the provided queries. + # This is the same response type from `batch_query` endpoint. class SLOHistoryMetricsSeries - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Count of submitted metrics. attr_accessor :count + # Query metadata. attr_accessor :metadata # Total sum of the query. @@ -70,7 +72,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryMetricsSeries` initialize method" @@ -104,18 +107,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @count.nil? invalid_properties.push('invalid value for "count", count cannot be nil.') end - if @sum.nil? invalid_properties.push('invalid value for "sum", sum cannot be nil.') end - if @values.nil? invalid_properties.push('invalid value for "values", values cannot be nil.') end @@ -160,7 +161,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -168,7 +169,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -274,7 +275,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] value 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) @@ -290,7 +291,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 6c3390774b9..f3d70c5571c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Query metadata. class SLOHistoryMetricsSeriesMetadata - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -38,7 +38,9 @@ class SLOHistoryMetricsSeriesMetadata # Query scope. attr_accessor :scope - # An array of metric units that contains up to two unit objects. For example, bytes represents one unit object and bytes per second represents two unit objects. If a metric query only has one unit object, the second array element is null. + # An array of metric units that contains up to two unit objects. + # For example, bytes represents one unit object and bytes per second represents two unit objects. + # If a metric query only has one unit object, the second array element is null. attr_accessor :unit # Attribute mapping from ruby-style variable name to JSON key. @@ -82,7 +84,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryMetricsSeriesMetadata` initialize method" @@ -124,10 +127,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -167,7 +171,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -175,7 +179,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -281,7 +285,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] value 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) @@ -297,7 +301,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ac28e29c401..ae885e9c449 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An Object of metric units. class SLOHistoryMetricsSeriesMetadataUnit - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -83,7 +83,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryMetricsSeriesMetadataUnit` initialize method" @@ -123,10 +124,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -166,7 +168,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -174,7 +176,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -280,7 +282,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] value 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) @@ -296,7 +298,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 095cc2ce3e9..5f0238b03ff 100644 --- a/lib/datadog_api_client/v1/models/slo_history_monitor.rb +++ b/lib/datadog_api_client/v1/models/slo_history_monitor.rb @@ -17,9 +17,10 @@ require 'time' module DatadogAPIClient::V1 - # An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI value. This can also represent the SLI value for a specific monitor in multi-monitor SLOs, or a group in grouped SLOs. + # An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI value. + # This can also represent the SLI value for a specific monitor in multi-monitor SLOs, or a group in grouped SLOs. class SLOHistoryMonitor - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -47,7 +48,8 @@ class SLOHistoryMonitor # The amount of decimal places the SLI value is accurate to for the given from `&&` to timestamp. Use `span_precision` instead. attr_accessor :precision - # For `monitor` based SLOs, when `true` this indicates that a replay is in progress to give an accurate uptime calculation. + # For `monitor` based SLOs, when `true` this indicates that a replay is in progress to give an accurate uptime + # calculation. attr_accessor :preview # The current SLI value of the SLO over the history window. @@ -111,7 +113,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryMonitor` initialize method" @@ -126,9 +129,7 @@ def initialize(attributes = {}) } if attributes.key?(:'error_budget_remaining') - if (value = attributes[:'error_budget_remaining']).is_a?(Hash) - self.error_budget_remaining = value - end + self.error_budget_remaining = attributes[:'error_budget_remaining'] end if attributes.key?(:'errors') @@ -181,10 +182,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -230,7 +232,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -238,7 +240,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -344,7 +346,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] value 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) @@ -360,7 +362,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 aadca574452..60df10a5726 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # A service level objective history response. class SLOHistoryResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # An array of service level objective objects. attr_accessor :data # A list of errors while querying the history data for the service level objective. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryResponse` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 2e6fafc9f1e..7cc8483051e 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 @@ -19,24 +19,35 @@ module DatadogAPIClient::V1 # An array of service level objective objects. class SLOHistoryResponseData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # The `from` timestamp in epoch seconds. attr_accessor :from_ts - # For `metric` based SLOs where the query includes a group-by clause, this represents the list of grouping parameters. This is not included in responses for `monitor` based SLOs. + # For `metric` based SLOs where the query includes a group-by clause, this represents the list of grouping parameters. + # + # This is not included in responses for `monitor` based SLOs. attr_accessor :group_by - # For grouped SLOs, this represents SLI data for specific groups. This is not included in the responses for `metric` based SLOs. + # For grouped SLOs, this represents SLI data for specific groups. + # + # This is not included in the responses for `metric` based SLOs. attr_accessor :groups - # For multi-monitor SLOs, this represents SLI data for specific monitors. This is not included in the responses for `metric` based SLOs. + # For multi-monitor SLOs, this represents SLI data for specific monitors. + # + # This is not included in the responses for `metric` based SLOs. attr_accessor :monitors + # An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI value. + # This can also represent the SLI value for a specific monitor in multi-monitor SLOs, or a group in grouped SLOs. attr_accessor :overall + # A `metric` based SLO history response. + # + # This is not included in responses for `monitor` based SLOs. attr_accessor :series # mapping of string timeframe to the SLO threshold. @@ -45,8 +56,12 @@ class SLOHistoryResponseData # The `to` timestamp in epoch seconds. attr_accessor :to_ts + # The type of the service level objective. attr_accessor :type + # A numeric representation of the type of the service level objective (`0` for + # monitor, `1` for metric). Always included in service level objective responses. + # Ignored in create/update requests. attr_accessor :type_id # Attribute mapping from ruby-style variable name to JSON key. @@ -97,7 +112,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryResponseData` initialize method" @@ -142,9 +158,7 @@ def initialize(attributes = {}) end if attributes.key?(:'thresholds') - if (value = attributes[:'thresholds']).is_a?(Hash) - self.thresholds = value - end + self.thresholds = attributes[:'thresholds'] end if attributes.key?(:'to_ts') @@ -161,10 +175,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -208,7 +223,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -216,7 +231,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -322,7 +337,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] value 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) @@ -338,7 +353,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 2fe965426d9..0354825d49b 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A list of errors while querying the history data for the service level objective. class SLOHistoryResponseError - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryResponseError` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 8107f86863d..715c629c613 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An object describing the error with error type and error message. class SLOHistoryResponseErrorWithType - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryResponseErrorWithType` initialize method" @@ -85,14 +86,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @error_message.nil? invalid_properties.push('invalid value for "error_message", error_message cannot be nil.') end - if @error_type.nil? invalid_properties.push('invalid value for "error_type", error_type cannot be nil.') end @@ -134,7 +134,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +248,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] value 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) @@ -264,7 +264,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 87d399a2c94..063d52da17a 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 @@ -17,9 +17,10 @@ require 'time' module DatadogAPIClient::V1 - # An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI value. This can also represent the SLI value for a specific monitor in multi-monitor SLOs, or a group in grouped SLOs. + # An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI value. + # This can also represent the SLI value for a specific monitor in multi-monitor SLOs, or a group in grouped SLOs. class SLOHistorySLIData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -47,7 +48,8 @@ class SLOHistorySLIData # A mapping of threshold `timeframe` to number of accurate decimals, regardless of the from && to timestamp. attr_accessor :precision - # For `monitor` based SLOs, when `true` this indicates that a replay is in progress to give an accurate uptime calculation. + # For `monitor` based SLOs, when `true` this indicates that a replay is in progress to give an accurate uptime + # calculation. attr_accessor :preview # The current SLI value of the SLO over the history window. @@ -111,7 +113,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistorySLIData` initialize method" @@ -126,9 +129,7 @@ def initialize(attributes = {}) } if attributes.key?(:'error_budget_remaining') - if (value = attributes[:'error_budget_remaining']).is_a?(Hash) - self.error_budget_remaining = value - end + self.error_budget_remaining = attributes[:'error_budget_remaining'] end if attributes.key?(:'errors') @@ -160,9 +161,7 @@ def initialize(attributes = {}) end if attributes.key?(:'precision') - if (value = attributes[:'precision']).is_a?(Hash) - self.precision = value - end + self.precision = attributes[:'precision'] end if attributes.key?(:'preview') @@ -183,10 +182,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -232,7 +232,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -240,7 +240,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -346,7 +346,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] value 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) @@ -362,7 +362,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 eec6324e4da..3518308c3ce 100644 --- a/lib/datadog_api_client/v1/models/slo_list_response.rb +++ b/lib/datadog_api_client/v1/models/slo_list_response.rb @@ -19,16 +19,18 @@ module DatadogAPIClient::V1 # A response with one or more service level objective. class SLOListResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # An array of service level objective objects. attr_accessor :data - # An array of error messages. Each endpoint documents how/whether this field is used. + # An array of error messages. Each endpoint documents how/whether this field is + # used. attr_accessor :errors + # The metadata object containing additional information about the list of SLOs. attr_accessor :metadata # Attribute mapping from ruby-style variable name to JSON key. @@ -65,7 +67,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOListResponse` initialize method" @@ -97,10 +100,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -137,7 +141,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -145,7 +149,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -251,7 +255,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] value 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) @@ -267,7 +271,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 c7495701a2a..c2b9b23150e 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # The metadata object containing additional information about the list of SLOs. class SLOListResponseMetadata - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The object containing information about the pages of the list of SLOs. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOListResponseMetadata` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 5348fdfc9f7..b7e938ab8c6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The object containing information about the pages of the list of SLOs. class SLOListResponseMetadataPage - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOListResponseMetadataPage` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/slo_response.rb b/lib/datadog_api_client/v1/models/slo_response.rb index 8492190e6a7..2088a3747bd 100644 --- a/lib/datadog_api_client/v1/models/slo_response.rb +++ b/lib/datadog_api_client/v1/models/slo_response.rb @@ -19,13 +19,16 @@ module DatadogAPIClient::V1 # A service level objective response containing a single service level objective. class SLOResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # A service level objective object includes a service level indicator, thresholds + # for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). attr_accessor :data - # An array of error messages. Each endpoint documents how/whether this field is used. + # An array of error messages. Each endpoint documents how/whether this field is + # used. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +63,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOResponse` initialize method" @@ -86,10 +90,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +130,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +244,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] value 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) @@ -255,7 +260,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 efbd9d45e03..948d1b6104a 100644 --- a/lib/datadog_api_client/v1/models/slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_response_data.rb @@ -17,49 +17,77 @@ require 'time' module DatadogAPIClient::V1 - # A service level objective object includes a service level indicator, thresholds for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). + # A service level objective object includes a service level indicator, thresholds + # for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). class SLOResponseData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # A list of SLO monitors IDs that reference this SLO. This field is returned only when `with_configured_alert_ids` parameter is true in query. attr_accessor :configured_alert_ids - # Creation timestamp (UNIX time in seconds) Always included in service level objective responses. + # Creation timestamp (UNIX time in seconds) + # + # Always included in service level objective responses. attr_accessor :created_at + # Object describing the creator of the shared element. attr_accessor :creator - # A user-defined description of the service level objective. Always included in service level objective responses (but may be `null`). Optional in create/update requests. + # A user-defined description of the service level objective. + # + # Always included in service level objective responses (but may be `null`). + # Optional in create/update requests. attr_accessor :description - # A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. Included in service level objective responses if it is not empty. Optional in create/update requests for monitor service level objectives, but may only be used when then length of the `monitor_ids` field is one. + # A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. + # + # Included in service level objective responses if it is not empty. Optional in + # create/update requests for monitor service level objectives, but may only be + # used when then length of the `monitor_ids` field is one. attr_accessor :groups - # A unique identifier for the service level objective object. Always included in service level objective responses. + # A unique identifier for the service level objective object. + # + # Always included in service level objective responses. attr_accessor :id - # Modification timestamp (UNIX time in seconds) Always included in service level objective responses. + # Modification timestamp (UNIX time in seconds) + # + # Always included in service level objective responses. attr_accessor :modified_at - # A list of monitor ids that defines the scope of a monitor service level objective. **Required if type is `monitor`**. + # A list of monitor ids that defines the scope of a monitor service level + # objective. **Required if type is `monitor`**. attr_accessor :monitor_ids - # The union of monitor tags for all monitors referenced by the `monitor_ids` field. Always included in service level objective responses for monitor service level objectives (but may be empty). Ignored in create/update requests. Does not affect which monitors are included in the service level objective (that is determined entirely by the `monitor_ids` field). + # The union of monitor tags for all monitors referenced by the `monitor_ids` + # field. + # Always included in service level objective responses for monitor service level + # objectives (but may be empty). Ignored in create/update requests. Does not + # affect which monitors are included in the service level objective (that is + # determined entirely by the `monitor_ids` field). attr_accessor :monitor_tags # The name of the service level objective object. attr_accessor :name + # A metric SLI query. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator + # to be used because this will sum up all request counts instead of averaging them, or taking the max or + # min of all of those requests. attr_accessor :query - # A list of tags associated with this service level objective. Always included in service level objective responses (but may be empty). Optional in create/update requests. + # A list of tags associated with this service level objective. + # Always included in service level objective responses (but may be empty). + # Optional in create/update requests. attr_accessor :tags - # The thresholds (timeframes and associated targets) for this service level objective object. + # The thresholds (timeframes and associated targets) for this service level + # objective object. attr_accessor :thresholds + # The type of the service level objective. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -114,12 +142,13 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'description', + :'description' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOResponseData` initialize method" @@ -203,10 +232,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -254,7 +284,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -262,7 +292,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -368,7 +398,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] value 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) @@ -384,7 +414,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/slo_threshold.rb b/lib/datadog_api_client/v1/models/slo_threshold.rb index e7ddd1b1fc8..c121577592a 100644 --- a/lib/datadog_api_client/v1/models/slo_threshold.rb +++ b/lib/datadog_api_client/v1/models/slo_threshold.rb @@ -19,22 +19,32 @@ module DatadogAPIClient::V1 # SLO thresholds (target and optionally warning) for a single time window. class SLOThreshold - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # The target value for the service level indicator within the corresponding timeframe. + # The target value for the service level indicator within the corresponding + # timeframe. attr_accessor :target - # A string representation of the target that indicates its precision. It uses trailing zeros to show significant decimal places (for example `98.00`). Always included in service level objective responses. Ignored in create/update requests. + # A string representation of the target that indicates its precision. + # It uses trailing zeros to show significant decimal places (for example `98.00`). + # + # Always included in service level objective responses. Ignored in + # create/update requests. attr_accessor :target_display + # The SLO time window options. attr_accessor :timeframe # The warning value for the service level objective. attr_accessor :warning - # A string representation of the warning target (see the description of the `target_display` field for details). Included in service level objective responses if a warning target exists. Ignored in create/update requests. + # A string representation of the warning target (see the description of + # the `target_display` field for details). + # + # Included in service level objective responses if a warning target exists. + # Ignored in create/update requests. attr_accessor :warning_display # Attribute mapping from ruby-style variable name to JSON key. @@ -75,7 +85,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOThreshold` initialize method" @@ -111,14 +122,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @target.nil? invalid_properties.push('invalid value for "target", target cannot be nil.') end - if @timeframe.nil? invalid_properties.push('invalid value for "timeframe", timeframe cannot be nil.') end @@ -163,7 +173,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -171,7 +181,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -277,7 +287,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] value 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) @@ -293,7 +303,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/slo_timeframe.rb b/lib/datadog_api_client/v1/models/slo_timeframe.rb index e5ebb13c727..76f876b7377 100644 --- a/lib/datadog_api_client/v1/models/slo_timeframe.rb +++ b/lib/datadog_api_client/v1/models/slo_timeframe.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The SLO time window options. class SLOTimeframe SEVEN_DAYS = "7d".freeze THIRTY_DAYS = "30d".freeze @@ -40,5 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/slo_type.rb b/lib/datadog_api_client/v1/models/slo_type.rb index e66e3558a7c..77f0910b75d 100644 --- a/lib/datadog_api_client/v1/models/slo_type.rb +++ b/lib/datadog_api_client/v1/models/slo_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The type of the service level objective. class SLOType METRIC = "metric".freeze MONITOR = "monitor".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/slo_type_numeric.rb b/lib/datadog_api_client/v1/models/slo_type_numeric.rb index 29700721d84..eaa0b7e64eb 100644 --- a/lib/datadog_api_client/v1/models/slo_type_numeric.rb +++ b/lib/datadog_api_client/v1/models/slo_type_numeric.rb @@ -17,6 +17,9 @@ require 'time' module DatadogAPIClient::V1 + # A numeric representation of the type of the service level objective (`0` for + # monitor, `1` for metric). Always included in service level objective responses. + # Ignored in create/update requests. class SLOTypeNumeric MONITOR = 0.freeze METRIC = 1.freeze @@ -38,5 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 26c3c9433eb..ba031446144 100644 --- a/lib/datadog_api_client/v1/models/slo_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/slo_widget_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Use the SLO and uptime widget to track your SLOs (Service Level Objectives) and uptime on screenboards and timeboards. class SLOWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -38,13 +38,16 @@ class SLOWidgetDefinition # Title of the widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the SLO widget. attr_accessor :type + # Define how you want the SLO to be displayed. attr_accessor :view_mode # Type of view displayed by the widget. @@ -98,7 +101,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOWidgetDefinition` initialize method" @@ -160,14 +164,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - if @view_type.nil? invalid_properties.push('invalid value for "view_type", view_type cannot be nil.') end @@ -217,7 +220,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -225,7 +228,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -331,7 +334,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] value 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) @@ -347,7 +350,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/slo_widget_definition_type.rb b/lib/datadog_api_client/v1/models/slo_widget_definition_type.rb index 7e77540205a..81075d4915c 100644 --- a/lib/datadog_api_client/v1/models/slo_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/slo_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the SLO widget. class SLOWidgetDefinitionType SLO = "slo".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 9b7eee3659e..2265dc44194 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Sunbursts are spot on to highlight how groups contribute to the total of a query. class SunburstWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,21 +29,25 @@ class SunburstWidgetDefinition # Show the total value in this widget. attr_accessor :hide_total + # Configuration of the legend. attr_accessor :legend # List of sunburst widget requests. attr_accessor :requests + # Time setting for the widget. attr_accessor :time # Title of your widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the Sunburst widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -92,7 +96,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SunburstWidgetDefinition` initialize method" @@ -150,18 +155,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - - if @requests.length < 1 - invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') - end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -174,25 +174,10 @@ def list_invalid_properties # @!visibility private def valid? return false if @requests.nil? - return false if @requests.length < 1 return false if @type.nil? true end - # Custom attribute writer method with validation - # @param requests [Object] requests Value to be assigned - def requests=(requests) - if requests.nil? - fail ArgumentError, 'requests cannot be nil' - end - - if requests.length < 1 - fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' - end - - @requests = requests - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -225,7 +210,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -233,7 +218,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -339,7 +324,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] value 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) @@ -355,7 +340,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_definition_type.rb b/lib/datadog_api_client/v1/models/sunburst_widget_definition_type.rb index 94dcf5ed38e..a3b607240f1 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the Sunburst widget. class SunburstWidgetDefinitionType SUNBURST = "sunburst".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_legend.rb b/lib/datadog_api_client/v1/models/sunburst_widget_legend.rb index 916dbfa6b24..f2b3a126d84 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_legend.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_legend.rb @@ -25,11 +25,10 @@ class << self # List of class defined in oneOf (OpenAPI v3) def openapi_one_of [ - :'SunburstWidgetLegendInlineAutomatic', - :'SunburstWidgetLegendTable' + :'SunburstWidgetLegendTable', + :'SunburstWidgetLegendInlineAutomatic' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -57,7 +56,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V1::UnparsedObject.new(data) end - end private @@ -115,4 +113,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 18438bd2c40..417f69ec8f8 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Configuration of inline or automatic legends. class SunburstWidgetLegendInlineAutomatic - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class SunburstWidgetLegendInlineAutomatic # Whether to hide the values of the groups. attr_accessor :hide_value + # Whether to show the legend inline or let it be automatically generated. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SunburstWidgetLegendInlineAutomatic` initialize method" @@ -93,8 +95,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -138,7 +140,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -146,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -252,7 +254,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] value 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) @@ -268,7 +270,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic_type.rb b/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic_type.rb index a7ffecdb9d8..59805437c41 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic_type.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Whether to show the legend inline or let it be automatically generated. class SunburstWidgetLegendInlineAutomaticType INLINE = "inline".freeze AUTOMATIC = "automatic".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 9475561ae9f..dc98f0e9fa8 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Configuration of table-based legend. class SunburstWidgetLegendTable - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Whether or not to show a table legend. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SunburstWidgetLegendTable` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_legend_table_type.rb b/lib/datadog_api_client/v1/models/sunburst_widget_legend_table_type.rb index 40a961e1f37..d34a57e912d 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_legend_table_type.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_legend_table_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Whether or not to show a table legend. class SunburstWidgetLegendTableType TABLE = "table".freeze NONE = "none".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 b8dc7594cac..55a063a8bc7 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_request.rb @@ -19,25 +19,32 @@ module DatadogAPIClient::V1 # Request definition of sunburst widget. class SunburstWidgetRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The log query. attr_accessor :apm_query + # The log query. attr_accessor :audit_query + # The log query. attr_accessor :event_query # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas + # The log query. attr_accessor :log_query + # The log query. attr_accessor :network_query + # The process query to use in the widget. attr_accessor :process_query + # The log query. attr_accessor :profile_metrics_query # Widget query. @@ -46,10 +53,13 @@ class SunburstWidgetRequest # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries + # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format + # The log query. attr_accessor :rum_query + # The log query. attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. @@ -106,7 +116,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SunburstWidgetRequest` initialize method" @@ -178,10 +189,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -228,7 +240,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -236,7 +248,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -342,7 +354,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] value 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) @@ -358,7 +370,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_api_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_step.rb index 7e7e255567c..0ff99a0692d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_step.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The steps used in a Synthetics multistep API test. class SyntheticsAPIStep - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -32,16 +32,20 @@ class SyntheticsAPIStep # Array of values to parse and save as variables from the response. attr_accessor :extracted_values - # Determines whether or not to consider the entire test as failed if this step fails. Can be used only if `allowFailure` is `true`. + # Determines whether or not to consider the entire test as failed if this step fails. + # Can be used only if `allowFailure` is `true`. attr_accessor :is_critical # The name of the step. attr_accessor :name + # Object describing the Synthetic test request. attr_accessor :request + # Object describing the retry strategy to apply to a Synthetic test. attr_accessor :_retry + # The subtype of the Synthetic multistep API test step, currently only supporting `http`. attr_accessor :subtype # Attribute mapping from ruby-style variable name to JSON key. @@ -88,7 +92,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPIStep` initialize method" @@ -110,6 +115,8 @@ def initialize(attributes = {}) if (value = attributes[:'assertions']).is_a?(Array) self.assertions = value end + else + self.assertions = [] end if attributes.key?(:'extracted_values') @@ -140,22 +147,19 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @assertions.nil? invalid_properties.push('invalid value for "assertions", assertions cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @request.nil? invalid_properties.push('invalid value for "request", request cannot be nil.') end - if @subtype.nil? invalid_properties.push('invalid value for "subtype", subtype cannot be nil.') end @@ -205,7 +209,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -213,7 +217,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -319,7 +323,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] value 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) @@ -335,7 +339,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb b/lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb index 89945af5433..f5794fba216 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The subtype of the Synthetic multistep API test step, currently only supporting `http`. class SyntheticsAPIStepSubtype HTTP = "http".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 81a5e2dff31..bbccf4d7d98 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Object containing details about a Synthetic API test. class SyntheticsAPITest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Configuration object for a Synthetic API test. attr_accessor :config # Array of locations used to run the test. @@ -37,18 +38,24 @@ class SyntheticsAPITest # Name of the test. attr_accessor :name + # Object describing the extra options for a Synthetic test. attr_accessor :options # The public ID for the test. attr_accessor :public_id + # Define whether you want to start (`live`) or pause (`paused`) a + # Synthetic test. attr_accessor :status + # The subtype of the Synthetic API test, `http`, `ssl`, `tcp`, + # `dns`, `icmp`, `udp`, `websocket` or `multi`. attr_accessor :subtype # Array of tags attached to the test. attr_accessor :tags + # Type of the Synthetic test, `api`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -101,7 +108,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITest` initialize method" @@ -167,26 +175,22 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @config.nil? invalid_properties.push('invalid value for "config", config cannot be nil.') end - if @locations.nil? invalid_properties.push('invalid value for "locations", locations cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @options.nil? invalid_properties.push('invalid value for "options", options cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -240,7 +244,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -248,7 +252,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -354,7 +358,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] value 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) @@ -370,7 +374,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 a2942f3cd32..e1e055ff6d6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Configuration object for a Synthetic API test. class SyntheticsAPITestConfig - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class SyntheticsAPITestConfig # Array of variables used for the test. attr_accessor :config_variables + # Object describing the Synthetic test request. attr_accessor :request # When the test subtype is `multi`, the steps of the test. @@ -70,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestConfig` initialize method" @@ -88,6 +90,8 @@ def initialize(attributes = {}) if (value = attributes[:'assertions']).is_a?(Array) self.assertions = value end + else + self.assertions = [] end if attributes.key?(:'config_variables') @@ -108,10 +112,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -149,7 +154,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -157,7 +162,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -263,7 +268,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] value 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) @@ -279,7 +284,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_failure_code.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_failure_code.rb index 221223144f2..54969a79110 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_failure_code.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_failure_code.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Error code that can be returned by a Synthetic test. class SyntheticsApiTestFailureCode BODY_TOO_LARGE = "BODY_TOO_LARGE".freeze DENIED = "DENIED".freeze @@ -62,5 +63,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 5a19368c643..0da53db7f7d 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 @@ -19,14 +19,17 @@ module DatadogAPIClient::V1 # Object containing results for your Synthetic API test. class SyntheticsAPITestResultData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object describing the SSL certificate used for a Synthetic test. attr_accessor :cert + # Status of a Synthetic test. attr_accessor :event_type + # The API test failure details. attr_accessor :failure # The API test HTTP status code. @@ -44,6 +47,8 @@ class SyntheticsAPITestResultData # Global size in byte of the API test response. attr_accessor :response_size + # Object containing all metrics and their values collected for a Synthetic API test. + # Learn more about those metrics in [Synthetics documentation](https://docs.datadoghq.com/synthetics/#metrics). attr_accessor :timings # Attribute mapping from ruby-style variable name to JSON key. @@ -92,7 +97,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestResultData` initialize method" @@ -123,9 +129,7 @@ def initialize(attributes = {}) end if attributes.key?(:'request_headers') - if (value = attributes[:'request_headers']).is_a?(Hash) - self.request_headers = value - end + self.request_headers = attributes[:'request_headers'] end if attributes.key?(:'response_body') @@ -133,9 +137,7 @@ def initialize(attributes = {}) end if attributes.key?(:'response_headers') - if (value = attributes[:'response_headers']).is_a?(Hash) - self.response_headers = value - end + self.response_headers = attributes[:'response_headers'] end if attributes.key?(:'response_size') @@ -148,10 +150,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -194,7 +197,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -202,7 +205,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -308,7 +311,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] value 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) @@ -324,7 +327,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4cfe099a6e1..714e75ecb76 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # The API test failure details. class SyntheticsApiTestResultFailure - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Error code that can be returned by a Synthetic test. attr_accessor :code # The API test error message. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsApiTestResultFailure` initialize method" @@ -84,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -123,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -131,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -237,7 +240,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] value 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) @@ -253,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 443d189dbd3..11374b45258 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Object returned describing a API test result. class SyntheticsAPITestResultFull - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object describing the API test configuration. attr_accessor :check # When the API test was conducted. @@ -34,11 +35,16 @@ class SyntheticsAPITestResultFull # Locations for which to query the API test results. attr_accessor :probe_dc + # Object containing results for your Synthetic API test. attr_accessor :result # ID of the API test result. attr_accessor :result_id + # The status of your Synthetic monitor. + # * `O` for not triggered + # * `1` for triggered + # * `2` for no data attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. @@ -83,7 +89,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestResultFull` initialize method" @@ -127,10 +134,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -171,7 +179,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -179,7 +187,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -285,7 +293,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] value 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) @@ -301,7 +309,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 fbf836b4e8c..64935ce62d5 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Object describing the API test configuration. class SyntheticsAPITestResultFullCheck - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Configuration object for a Synthetic test. attr_accessor :config # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestResultFullCheck` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @config.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 db1d69d74b9..e396399b34a 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object with the results of a single Synthetic API test. class SyntheticsAPITestResultShort - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,11 +29,16 @@ class SyntheticsAPITestResultShort # Location from which the API test was performed. attr_accessor :probe_dc + # Result of the last API test run. attr_accessor :result # ID of the API test result. attr_accessor :result_id + # The status of your Synthetic monitor. + # * `O` for not triggered + # * `1` for triggered + # * `2` for no data attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. @@ -74,7 +79,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestResultShort` initialize method" @@ -110,10 +116,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -152,7 +159,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -160,7 +167,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -266,7 +273,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] value 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) @@ -282,7 +289,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 0cf958ddd6e..e0cd6801831 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 @@ -19,13 +19,15 @@ module DatadogAPIClient::V1 # Result of the last API test run. class SyntheticsAPITestResultShortResult - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Describes if the test run has passed or failed. attr_accessor :passed + # Object containing all metrics and their values collected for a Synthetic API test. + # Learn more about those metrics in [Synthetics documentation](https://docs.datadoghq.com/synthetics/#metrics). attr_accessor :timings # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +62,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestResultShortResult` initialize method" @@ -84,10 +87,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -123,7 +127,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -131,7 +135,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -237,7 +241,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] value 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) @@ -253,7 +257,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_type.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_type.rb index 488a5315ed2..eb73c0103f9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the Synthetic test, `api`. class SyntheticsAPITestType API = "api".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion.rb b/lib/datadog_api_client/v1/models/synthetics_assertion.rb index 5bcc656eead..a99b576aebc 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion.rb @@ -17,7 +17,8 @@ require 'time' module DatadogAPIClient::V1 - # Object describing the assertions type, their associated operator, which property they apply, and upon which target. + # Object describing the assertions type, their associated operator, + # which property they apply, and upon which target. module SyntheticsAssertion class << self attr_accessor :_unparsed @@ -25,11 +26,10 @@ class << self # List of class defined in oneOf (OpenAPI v3) def openapi_one_of [ - :'SyntheticsAssertionJSONPathTarget', - :'SyntheticsAssertionTarget' + :'SyntheticsAssertionTarget', + :'SyntheticsAssertionJSONPathTarget' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -57,7 +57,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V1::UnparsedObject.new(data) end - end private @@ -115,4 +114,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_operator.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_operator.rb index aba33106327..d43c86c0c25 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_operator.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_operator.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Assertion operator to apply. class SyntheticsAssertionJSONPathOperator VALIDATES_JSON_PATH = "validatesJSONPath".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 7b022d56165..101485a0515 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 @@ -19,17 +19,20 @@ module DatadogAPIClient::V1 # An assertion for the `validatesJSONPath` operator. class SyntheticsAssertionJSONPathTarget - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Assertion operator to apply. attr_accessor :operator # The associated assertion property. attr_accessor :property + # Composed target for `validatesJSONPath` operator. attr_accessor :target + # Type of the assertion. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAssertionJSONPathTarget` initialize method" @@ -100,14 +104,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @operator.nil? invalid_properties.push('invalid value for "operator", operator cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -151,7 +154,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -159,7 +162,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -265,7 +268,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] value 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) @@ -281,7 +284,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 47318462aa1..ad5f8827d35 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Composed target for `validatesJSONPath` operator. class SyntheticsAssertionJSONPathTargetTarget - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -62,12 +62,12 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'target_value' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAssertionJSONPathTargetTarget` initialize method" @@ -95,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -135,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -143,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -249,7 +250,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] value 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) @@ -265,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb index 2b1531f168d..92721c220f5 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Assertion operator to apply. class SyntheticsAssertionOperator CONTAINS = "contains".freeze DOES_NOT_CONTAIN = "doesNotContain".freeze @@ -49,5 +50,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 17c0e1d479b..48c9948f3a8 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # An assertion which uses a simple target. class SyntheticsAssertionTarget - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Assertion operator to apply. attr_accessor :operator # The associated assertion property. @@ -31,6 +32,7 @@ class SyntheticsAssertionTarget # Value used by the operator. attr_accessor :target + # Type of the assertion. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -69,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAssertionTarget` initialize method" @@ -101,18 +104,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @operator.nil? invalid_properties.push('invalid value for "operator", operator cannot be nil.') end - if @target.nil? invalid_properties.push('invalid value for "target", target cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -157,7 +158,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -165,7 +166,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -271,7 +272,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] value 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) @@ -287,7 +288,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_type.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_type.rb index 1c71c295257..573f03ccd6e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the assertion. class SyntheticsAssertionType BODY = "body".freeze HEADER = "header".freeze @@ -51,5 +52,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb index 6444a74063c..ccc3d18d84a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb @@ -25,12 +25,11 @@ class << self # List of class defined in oneOf (OpenAPI v3) def openapi_one_of [ - :'SyntheticsBasicAuthNTLM', + :'SyntheticsBasicAuthWeb', :'SyntheticsBasicAuthSigv4', - :'SyntheticsBasicAuthWeb' + :'SyntheticsBasicAuthNTLM' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -58,7 +57,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V1::UnparsedObject.new(data) end - end private @@ -116,4 +114,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 b96b7dd5e43..97229f4b0f6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object to handle `NTLM` authentication when performing the test. class SyntheticsBasicAuthNTLM - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class SyntheticsBasicAuthNTLM # Password for the authentication to use when performing the test. attr_accessor :password + # The type of authentication to use when performing the test. attr_accessor :type # Username for the authentication to use when performing the test. @@ -75,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBasicAuthNTLM` initialize method" @@ -113,8 +115,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -160,7 +162,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -168,7 +170,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -274,7 +276,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] value 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) @@ -290,7 +292,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm_type.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm_type.rb index 524b48dc441..f2152d02e9b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The type of authentication to use when performing the test. class SyntheticsBasicAuthNTLMType NTLM = "ntlm".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 5a452f03bf4..d8c555d1ca5 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object to handle `SIGV4` authentication when performing the test. class SyntheticsBasicAuthSigv4 - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -38,6 +38,7 @@ class SyntheticsBasicAuthSigv4 # Session token for the `SIGV4` authentication. attr_accessor :session_token + # The type of authentication to use when performing the test. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -80,7 +81,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBasicAuthSigv4` initialize method" @@ -122,18 +124,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @access_key.nil? invalid_properties.push('invalid value for "access_key", access_key cannot be nil.') end - if @secret_key.nil? invalid_properties.push('invalid value for "secret_key", secret_key cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -180,7 +180,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -188,7 +188,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -294,7 +294,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] value 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) @@ -310,7 +310,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4_type.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4_type.rb index b5150880755..8e8ff77dbcc 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The type of authentication to use when performing the test. class SyntheticsBasicAuthSigv4Type SIGV4 = "sigv4".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 cf0d5797b43..b5119fc0183 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # Object to handle basic authentication when performing the test. class SyntheticsBasicAuthWeb - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Password to use for the basic authentication. attr_accessor :password + # The type of basic authentication to use when performing the test. attr_accessor :type # Username to use for the basic authentication. @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBasicAuthWeb` initialize method" @@ -95,18 +97,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @password.nil? invalid_properties.push('invalid value for "password", password cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - if @username.nil? invalid_properties.push('invalid value for "username", username cannot be nil.') end @@ -150,7 +150,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -158,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -264,7 +264,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] value 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) @@ -280,7 +280,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_web_type.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_web_type.rb index 1c70941d3ee..6437afae9bc 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_web_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_web_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The type of basic authentication to use when performing the test. class SyntheticsBasicAuthWebType WEB = "web".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 bbc6b3f91ca..959ae72a86c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_details.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Details about a batch response. class SyntheticsBatchDetails - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Wrapper object that contains the details of a batch. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBatchDetails` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 46fb8d93558..0abb399a65d 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V1 # Wrapper object that contains the details of a batch. class SyntheticsBatchDetailsData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Metadata for the Synthetics tests run. attr_accessor :metadata # List of results for the batch. attr_accessor :results + # Determines whether or not the batch has passed, failed, or is in progress. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBatchDetailsData` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 17e62b80707..e15b56f884e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb @@ -19,15 +19,17 @@ module DatadogAPIClient::V1 # Object with the results of a Synthetics batch. class SyntheticsBatchResult - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The device ID. attr_accessor :device # Total duration in millisecond of the test. attr_accessor :duration + # Execution rule for a Synthetics test. attr_accessor :execution_rule # Name of the location. @@ -39,6 +41,7 @@ class SyntheticsBatchResult # Total duration in millisecond of the test. attr_accessor :retries + # Determines whether or not the batch has passed, failed, or is in progress. attr_accessor :status # Name of the test. @@ -47,6 +50,7 @@ class SyntheticsBatchResult # The public ID of the Synthetic test. attr_accessor :test_public_id + # Type of the Synthetic test, either `api` or `browser`. attr_accessor :test_type # Attribute mapping from ruby-style variable name to JSON key. @@ -97,7 +101,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBatchResult` initialize method" @@ -153,10 +158,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -200,7 +206,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -208,7 +214,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -314,7 +320,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] value 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) @@ -330,7 +336,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 3e9cfcadeaa..bef74ec111c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_error.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_error.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Error response object for a browser test. class SyntheticsBrowserError - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -32,6 +32,7 @@ class SyntheticsBrowserError # Status Code of the error. attr_accessor :status + # Error type returned by a browser test. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -70,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserError` initialize method" @@ -102,18 +104,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @description.nil? invalid_properties.push('invalid value for "description", description cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -158,7 +158,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -166,7 +166,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -272,7 +272,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] value 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) @@ -288,7 +288,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_error_type.rb b/lib/datadog_api_client/v1/models/synthetics_browser_error_type.rb index c6105d48971..2d33d827803 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_error_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_error_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Error type returned by a browser test. class SyntheticsBrowserErrorType NETWORK = "network".freeze JS = "js".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 c93975bf7f5..f7fcfe275c6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Object containing details about a Synthetic browser test. class SyntheticsBrowserTest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Configuration object for a Synthetic browser test. attr_accessor :config # Array of locations used to run the test. @@ -37,11 +38,14 @@ class SyntheticsBrowserTest # Name of the test. attr_accessor :name + # Object describing the extra options for a Synthetic test. attr_accessor :options # The public ID of the test. attr_accessor :public_id + # Define whether you want to start (`live`) or pause (`paused`) a + # Synthetic test. attr_accessor :status # The steps of the test. @@ -50,6 +54,7 @@ class SyntheticsBrowserTest # Array of tags attached to the test. attr_accessor :tags + # Type of the Synthetic test, `browser`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -102,7 +107,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTest` initialize method" @@ -170,26 +176,22 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @config.nil? invalid_properties.push('invalid value for "config", config cannot be nil.') end - if @locations.nil? invalid_properties.push('invalid value for "locations", locations cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @options.nil? invalid_properties.push('invalid value for "options", options cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -243,7 +245,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -251,7 +253,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -357,7 +359,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] value 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) @@ -373,7 +375,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 acfbfd81982..ddddadfc441 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Configuration object for a Synthetic browser test. class SyntheticsBrowserTestConfig - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class SyntheticsBrowserTestConfig # Array of variables used for the test. attr_accessor :config_variables + # Object describing the Synthetic test request. attr_accessor :request # Cookies to be used for the request, using the [Set-Cookie](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) syntax. @@ -75,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestConfig` initialize method" @@ -93,6 +95,8 @@ def initialize(attributes = {}) if (value = attributes[:'assertions']).is_a?(Array) self.assertions = value end + else + self.assertions = [] end if attributes.key?(:'config_variables') @@ -117,14 +121,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @assertions.nil? invalid_properties.push('invalid value for "assertions", assertions cannot be nil.') end - if @request.nil? invalid_properties.push('invalid value for "request", request cannot be nil.') end @@ -169,7 +172,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -177,7 +180,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -283,7 +286,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] value 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) @@ -299,7 +302,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_failure_code.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_failure_code.rb index 6a81ba8d184..a62c6ae93a2 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_failure_code.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_failure_code.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Error code that can be returned by a Synthetic test. class SyntheticsBrowserTestFailureCode API_REQUEST_FAILURE = "API_REQUEST_FAILURE".freeze ASSERTION_FAILURE = "ASSERTION_FAILURE".freeze @@ -69,5 +70,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 f9527b4ef51..4642d90825d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing results for your Synthetic browser test. class SyntheticsBrowserTestResultData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class SyntheticsBrowserTestResultData # Browser version used for the browser test. attr_accessor :browser_version + # Object describing the device used to perform the Synthetic test. attr_accessor :device # Global duration in second of the browser test. @@ -37,6 +38,7 @@ class SyntheticsBrowserTestResultData # Error returned for the browser test. attr_accessor :error + # The browser test failure details. attr_accessor :failure # Whether or not the browser test was conducted. @@ -54,7 +56,8 @@ class SyntheticsBrowserTestResultData # Whether or not a thumbnail is associated with the browser test. attr_accessor :thumbnails_bucket_key - # Time in second to wait before the browser test starts after reaching the start URL. + # Time in second to wait before the browser test starts after + # reaching the start URL. attr_accessor :time_to_interactive # Attribute mapping from ruby-style variable name to JSON key. @@ -109,7 +112,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestResultData` initialize method" @@ -175,10 +179,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -224,7 +229,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -232,7 +237,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -338,7 +343,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] value 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) @@ -354,7 +359,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 85417353da8..b6a845bd2a9 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # The browser test failure details. class SyntheticsBrowserTestResultFailure - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Error code that can be returned by a Synthetic test. attr_accessor :code # The browser test error message. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestResultFailure` initialize method" @@ -84,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -123,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -131,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -237,7 +240,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] value 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) @@ -253,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 68b3d98b555..23e21f550af 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Object returned describing a browser test result. class SyntheticsBrowserTestResultFull - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object describing the browser test configuration. attr_accessor :check # When the browser test was conducted. @@ -34,11 +35,16 @@ class SyntheticsBrowserTestResultFull # Location from which the browser test was performed. attr_accessor :probe_dc + # Object containing results for your Synthetic browser test. attr_accessor :result # ID of the browser test result. attr_accessor :result_id + # The status of your Synthetic monitor. + # * `O` for not triggered + # * `1` for triggered + # * `2` for no data attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. @@ -83,7 +89,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestResultFull` initialize method" @@ -127,10 +134,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -171,7 +179,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -179,7 +187,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -285,7 +293,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] value 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) @@ -301,7 +309,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ceb5094da72..db300664a7e 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Object describing the browser test configuration. class SyntheticsBrowserTestResultFullCheck - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Configuration object for a Synthetic test. attr_accessor :config # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestResultFullCheck` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @config.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 af7e1d5f0e3..9eecb3521e9 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object with the results of a single Synthetic browser test. class SyntheticsBrowserTestResultShort - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,11 +29,16 @@ class SyntheticsBrowserTestResultShort # Location from which the Browser test was performed. attr_accessor :probe_dc + # Object with the result of the last browser test run. attr_accessor :result # ID of the browser test result. attr_accessor :result_id + # The status of your Synthetic monitor. + # * `O` for not triggered + # * `1` for triggered + # * `2` for no data attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. @@ -74,7 +79,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestResultShort` initialize method" @@ -110,10 +116,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -152,7 +159,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -160,7 +167,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -266,7 +273,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] value 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) @@ -282,7 +289,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 d3c2ec8e5a8..39b411d3dfe 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Object with the result of the last browser test run. class SyntheticsBrowserTestResultShortResult - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object describing the device used to perform the Synthetic test. attr_accessor :device # Length in second of the browser test run. @@ -75,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestResultShortResult` initialize method" @@ -111,10 +113,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -153,7 +156,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -161,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -267,7 +270,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] value 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) @@ -283,7 +286,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_type.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_type.rb index a2487f845f6..330439da14a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the Synthetic test, `browser`. class SyntheticsBrowserTestType BROWSER = "browser".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 7877499420f..da48b9474ef 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb @@ -17,9 +17,10 @@ require 'time' module DatadogAPIClient::V1 - # Object defining a variable that can be used in your browser test. Learn more in the [Browser test Actions documentation](https://docs.datadoghq.com/synthetics/browser_tests/actions#variable). + # Object defining a variable that can be used in your browser test. + # Learn more in the [Browser test Actions documentation](https://docs.datadoghq.com/synthetics/browser_tests/actions#variable). class SyntheticsBrowserVariable - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -35,6 +36,7 @@ class SyntheticsBrowserVariable # Pattern of the variable. attr_accessor :pattern + # Type of browser test variable. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -75,7 +77,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserVariable` initialize method" @@ -111,14 +114,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -163,7 +165,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -171,7 +173,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -277,7 +279,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] value 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) @@ -293,7 +295,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_variable_type.rb b/lib/datadog_api_client/v1/models/synthetics_browser_variable_type.rb index cb73f5536ed..af7c1cb9f87 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_variable_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_variable_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of browser test variable. class SyntheticsBrowserVariableType ELEMENT = "element".freeze EMAIL = "email".freeze @@ -41,5 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_check_type.rb b/lib/datadog_api_client/v1/models/synthetics_check_type.rb index bff405737ef..0f2d9322a66 100644 --- a/lib/datadog_api_client/v1/models/synthetics_check_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_check_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of assertion to apply in an API test. class SyntheticsCheckType EQUALS = "equals".freeze NOT_EQUALS = "notEquals".freeze @@ -50,5 +51,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 38141f5c272..06feac306d0 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V1 # Metadata for the Synthetics tests run. class SyntheticsCIBatchMetadata - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Description of the CI provider. attr_accessor :ci + # Git information. attr_accessor :git # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCIBatchMetadata` initialize method" @@ -83,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -122,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -130,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -236,7 +240,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] value 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) @@ -252,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 5483fee1845..2c6301e4d38 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V1 # Description of the CI provider. class SyntheticsCIBatchMetadataCI - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Description of the CI pipeline. attr_accessor :pipeline + # Description of the CI provider. attr_accessor :provider # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCIBatchMetadataCI` initialize method" @@ -83,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -122,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -130,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -236,7 +240,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] value 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) @@ -252,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 9a70ed7d8e7..cceb35fe140 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Git information. class SyntheticsCIBatchMetadataGit - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCIBatchMetadataGit` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 a56c9571984..98f1a7bd6c6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Description of the CI pipeline. class SyntheticsCIBatchMetadataPipeline - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCIBatchMetadataPipeline` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 e5b72504a18..5d2189c34c4 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Description of the CI provider. class SyntheticsCIBatchMetadataProvider - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCIBatchMetadataProvider` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 7f9b4b7c429..ef3beb4dd3b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_test.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # Test configuration for Synthetics CI class SyntheticsCITest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Disable certificate checks in API tests. attr_accessor :allow_insecure_certificates + # Object to handle basic authentication when performing the test. attr_accessor :basic_auth # Body to include in the test. @@ -49,11 +50,13 @@ class SyntheticsCITest # Array of locations used to run the test. attr_accessor :locations + # Metadata for the Synthetics tests run. attr_accessor :metadata # The public ID of the Synthetics test to trigger. attr_accessor :public_id + # Object describing the retry strategy to apply to a Synthetic test. attr_accessor :_retry # Starting URL for the browser test. @@ -118,7 +121,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCITest` initialize method" @@ -163,9 +167,7 @@ def initialize(attributes = {}) end if attributes.key?(:'headers') - if (value = attributes[:'headers']).is_a?(Hash) - self.headers = value - end + self.headers = attributes[:'headers'] end if attributes.key?(:'locations') @@ -191,15 +193,13 @@ def initialize(attributes = {}) end if attributes.key?(:'variables') - if (value = attributes[:'variables']).is_a?(Hash) - self.variables = value - end + self.variables = attributes[:'variables'] end end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @public_id.nil? @@ -254,7 +254,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -262,7 +262,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -368,7 +368,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] value 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) @@ -384,7 +384,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 88d06c28876..b558c17a721 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the synthetics tests to trigger. class SyntheticsCITestBody - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCITestBody` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 cb5cc54b62c..64855bb0cd2 100644 --- a/lib/datadog_api_client/v1/models/synthetics_config_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_config_variable.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object defining a variable that can be used in your test configuration. class SyntheticsConfigVariable - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -35,6 +35,7 @@ class SyntheticsConfigVariable # Pattern of the variable. attr_accessor :pattern + # Type of the configuration variable. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -75,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsConfigVariable` initialize method" @@ -111,14 +113,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -163,7 +164,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -171,7 +172,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -277,7 +278,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] value 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) @@ -293,7 +294,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_config_variable_type.rb b/lib/datadog_api_client/v1/models/synthetics_config_variable_type.rb index 78306334689..ae5bb38933c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_config_variable_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_config_variable_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the configuration variable. class SyntheticsConfigVariableType GLOBAL = "global".freeze TEXT = "text".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 7830cebaae4..9aa1dfd5f3c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Core Web Vitals attached to a browser test step. class SyntheticsCoreWebVitals - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCoreWebVitals` initialize method" @@ -94,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 847a87a42f5..3d3184d9d20 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 @@ -17,9 +17,10 @@ require 'time' module DatadogAPIClient::V1 - # A JSON list of the ID or IDs of the Synthetic tests that you want to delete. + # A JSON list of the ID or IDs of the Synthetic tests that you want + # to delete. class SyntheticsDeleteTestsPayload - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +57,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsDeleteTestsPayload` initialize method" @@ -78,10 +80,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +119,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +127,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +233,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] value 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) @@ -246,7 +249,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 a471bc6b9c2..d916fe03752 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 @@ -19,11 +19,12 @@ module DatadogAPIClient::V1 # Response object for deleting Synthetic tests. class SyntheticsDeleteTestsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # Array of objects containing a deleted Synthetic test ID with the associated deletion timestamp. + # Array of objects containing a deleted Synthetic test ID with + # the associated deletion timestamp. attr_accessor :deleted_tests # Attribute mapping from ruby-style variable name to JSON key. @@ -56,7 +57,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsDeleteTestsResponse` initialize method" @@ -78,10 +80,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +119,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +127,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +233,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] value 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) @@ -246,7 +249,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 02d5ddd77ed..bc7bd91b3a5 100644 --- a/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb @@ -17,9 +17,10 @@ require 'time' module DatadogAPIClient::V1 - # Object containing a deleted Synthetic test ID with the associated deletion timestamp. + # Object containing a deleted Synthetic test ID with the associated + # deletion timestamp. class SyntheticsDeletedTest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +62,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsDeletedTest` initialize method" @@ -85,10 +87,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +127,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +135,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +241,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] value 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) @@ -254,7 +257,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_device.rb b/lib/datadog_api_client/v1/models/synthetics_device.rb index fb33c83c88e..3374e3c0152 100644 --- a/lib/datadog_api_client/v1/models/synthetics_device.rb +++ b/lib/datadog_api_client/v1/models/synthetics_device.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # Object describing the device used to perform the Synthetic test. class SyntheticsDevice - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Screen height of the device. attr_accessor :height + # The device ID. attr_accessor :id # Whether or not the device is a mobile. @@ -75,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsDevice` initialize method" @@ -111,22 +113,19 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @height.nil? invalid_properties.push('invalid value for "height", height cannot be nil.') end - if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @width.nil? invalid_properties.push('invalid value for "width", width cannot be nil.') end @@ -173,7 +172,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -181,7 +180,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -287,7 +286,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] value 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) @@ -303,7 +302,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_device_id.rb b/lib/datadog_api_client/v1/models/synthetics_device_id.rb index c65091abdfc..a3cb8dc6d9d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_device_id.rb +++ b/lib/datadog_api_client/v1/models/synthetics_device_id.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The device ID. class SyntheticsDeviceID LAPTOP_LARGE = "laptop_large".freeze TABLET = "tablet".freeze @@ -48,5 +49,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_error_code.rb b/lib/datadog_api_client/v1/models/synthetics_error_code.rb index dae94f111ee..856467aee9b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_error_code.rb +++ b/lib/datadog_api_client/v1/models/synthetics_error_code.rb @@ -5,7 +5,7 @@ The version of the OpenAPI document: 1.0 Contact: support@datadoghq.com -Generated by: https://openapi-generator.tech +Generated by: https://datadoghq.com Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. This product includes software developed at Datadog (https://www.datadoghq.com/). @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Error code that can be returned by a Synthetic test. class SyntheticsErrorCode NO_ERROR = "NO_ERROR".freeze UNKNOWN = "UNKNOWN".freeze @@ -41,4 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end +end \ No newline at end of file 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 8c5d9ead142..583e9926a56 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object with the latest Synthetic API test run. class SyntheticsGetAPITestLatestResultsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGetAPITestLatestResultsResponse` initialize method" @@ -87,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -126,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -134,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -240,7 +242,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] value 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) @@ -256,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 864028261c3..25697100761 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object with the latest Synthetic browser test run. class SyntheticsGetBrowserTestLatestResultsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGetBrowserTestLatestResultsResponse` initialize method" @@ -87,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -126,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -134,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -240,7 +242,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] value 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) @@ -256,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 caa891f990a..0b2dbb7b500 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Synthetics global variable. class SyntheticsGlobalVariable - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes of the global variable. attr_accessor :attributes # Description of the global variable. @@ -34,6 +35,7 @@ class SyntheticsGlobalVariable # Name of the global variable. Unique across Synthetics global variables. attr_accessor :name + # Parser options to use for retrieving a Synthetics global variable from a Synthetics Test. Used in conjunction with `parse_test_public_id`. attr_accessor :parse_test_options # A Synthetic test ID to use as a test to generate the variable value. @@ -42,6 +44,7 @@ class SyntheticsGlobalVariable # Tags of the global variable. attr_accessor :tags + # Value of the global variable. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. @@ -88,7 +91,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGlobalVariable` initialize method" @@ -138,22 +142,19 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @description.nil? invalid_properties.push('invalid value for "description", description cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @tags.nil? invalid_properties.push('invalid value for "tags", tags cannot be nil.') end - if @value.nil? invalid_properties.push('invalid value for "value", value cannot be nil.') end @@ -203,7 +204,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -211,7 +212,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -317,7 +318,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] value 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) @@ -333,7 +334,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4fc7bba9910..95ec82a4aab 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Attributes of the global variable. class SyntheticsGlobalVariableAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGlobalVariableAttributes` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 de5d2fa267c..9d38e221721 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V1 # Parser options to use for retrieving a Synthetics global variable from a Synthetics Test. Used in conjunction with `parse_test_public_id`. class SyntheticsGlobalVariableParseTestOptions - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # When type is `http_header`, name of the header to use to extract the value. attr_accessor :field + # Details of the parser to use for the global variable. attr_accessor :parser + # Property of the Synthetics Test Response to use for a Synthetics global variable. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptions` initialize method" @@ -92,14 +95,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @parser.nil? invalid_properties.push('invalid value for "parser", parser cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -142,7 +144,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -150,7 +152,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -256,7 +258,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] value 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) @@ -272,7 +274,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb index 5214c33d623..b99e15a64db 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Property of the Synthetics Test Response to use for a Synthetics global variable. class SyntheticsGlobalVariableParseTestOptionsType HTTP_BODY = "http_body".freeze HTTP_HEADER = "http_header".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_parser_type.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_parser_type.rb index 561e01c4173..91f43205866 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_parser_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_parser_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of parser for a Synthetics global variable from a synthetics test. class SyntheticsGlobalVariableParserType RAW = "raw".freeze JSON_PATH = "json_path".freeze @@ -40,5 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 106b547a880..bddf49e7d75 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 @@ -19,14 +19,15 @@ module DatadogAPIClient::V1 # Value of the global variable. class SyntheticsGlobalVariableValue - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Determines if the value of the variable is hidden. attr_accessor :secure - # Value of the global variable. When reading a global variable, the value will not be present if the variable is hidden with the `secure` property. + # Value of the global variable. When reading a global variable, + # the value will not be present if the variable is hidden with the `secure` property. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. @@ -61,7 +62,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGlobalVariableValue` initialize method" @@ -85,10 +87,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +127,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +135,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +241,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] value 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) @@ -254,7 +257,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 25721ad6ae6..b89e8fddb2b 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing an array of Synthetic global variables. class SyntheticsListGlobalVariablesResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsListGlobalVariablesResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 32628b9aafc..72ccad4c4b3 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing an array of Synthetic tests configuration. class SyntheticsListTestsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsListTestsResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_location.rb b/lib/datadog_api_client/v1/models/synthetics_location.rb index 0ae8a590809..aad82bdc74f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_location.rb @@ -17,9 +17,10 @@ require 'time' module DatadogAPIClient::V1 - # Synthetic location that can be used when creating or editing a test. + # Synthetic location that can be used when creating or editing a + # test. class SyntheticsLocation - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +62,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsLocation` initialize method" @@ -85,10 +87,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +127,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +135,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +241,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] value 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) @@ -254,7 +257,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_locations.rb b/lib/datadog_api_client/v1/models/synthetics_locations.rb index e4caf3f5d1b..d035d8980a8 100644 --- a/lib/datadog_api_client/v1/models/synthetics_locations.rb +++ b/lib/datadog_api_client/v1/models/synthetics_locations.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # List of Synthetics locations. class SyntheticsLocations - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsLocations` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ee0bf1da43a..f780a6173b4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Parsing options for variables to extract. class SyntheticsParsingOptions - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,8 +29,10 @@ class SyntheticsParsingOptions # Name of the variable to extract. attr_accessor :name + # Details of the parser to use for the global variable. attr_accessor :parser + # Property of the Synthetics Test Response to use for a Synthetics global variable. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -69,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsParsingOptions` initialize method" @@ -101,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -142,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -150,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -256,7 +260,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] value 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) @@ -272,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_playing_tab.rb b/lib/datadog_api_client/v1/models/synthetics_playing_tab.rb index b64d961d24d..c9ad226103e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_playing_tab.rb +++ b/lib/datadog_api_client/v1/models/synthetics_playing_tab.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Navigate between different tabs for your browser test. class SyntheticsPlayingTab MAIN_TAB = -1.freeze NEW_TAB = 0.freeze @@ -41,5 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 c4cd1dc9cf9..093d065c147 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing information about the private location to create. class SyntheticsPrivateLocation - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -32,6 +32,7 @@ class SyntheticsPrivateLocation # Name of the private location. attr_accessor :name + # Secrets for the private location. Only present in the response when creating the private location. attr_accessor :secrets # Array of tags attached to the private location. @@ -75,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPrivateLocation` initialize method" @@ -113,18 +115,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @description.nil? invalid_properties.push('invalid value for "description", description cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @tags.nil? invalid_properties.push('invalid value for "tags", tags cannot be nil.') end @@ -170,7 +170,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -178,7 +178,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -284,7 +284,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] value 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) @@ -300,7 +300,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 955f778e474..4eca7c67e9c 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V1 # Object that contains the new private location, the public key for result encryption, and the configuration skeleton. class SyntheticsPrivateLocationCreationResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Configuration skeleton for the private location. See installation instructions of the private location on how to use this configuration. attr_accessor :config + # Object containing information about the private location to create. attr_accessor :private_location + # Public key for the result encryption. attr_accessor :result_encryption # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPrivateLocationCreationResponse` initialize method" @@ -92,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -132,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -140,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -246,7 +250,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] value 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) @@ -262,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 6fd54b57203..3712bcfe325 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Public key for the result encryption. class SyntheticsPrivateLocationCreationResponseResultEncryption - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPrivateLocationCreationResponseResultEncryption` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 6b698dedcaf..2d73fe598bf 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V1 # Secrets for the private location. Only present in the response when creating the private location. class SyntheticsPrivateLocationSecrets - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Authentication part of the secrets. attr_accessor :authentication + # Private key for the private location. attr_accessor :config_decryption # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPrivateLocationSecrets` initialize method" @@ -83,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -122,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -130,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -236,7 +240,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] value 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) @@ -252,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 a1d06d4b217..75b2b4209f6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Authentication part of the secrets. class SyntheticsPrivateLocationSecretsAuthentication - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPrivateLocationSecretsAuthentication` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 05ca9a8a5bb..542916795cb 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Private key for the private location. class SyntheticsPrivateLocationSecretsConfigDecryption - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPrivateLocationSecretsConfigDecryption` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 06588cf8f3f..26fe99feb29 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the SSL certificate used for a Synthetic test. class SyntheticsSSLCertificate - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -38,6 +38,7 @@ class SyntheticsSSLCertificate # SHA-1 digest of the DER-encoded Certificate information. attr_accessor :fingerprint256 + # Object describing the issuer of a SSL certificate. attr_accessor :issuer # Modulus associated to the SSL certificate private key. @@ -49,6 +50,7 @@ class SyntheticsSSLCertificate # Serial Number assigned by Symantec to the SSL certificate. attr_accessor :serial_number + # Object describing the SSL certificate used for the test. attr_accessor :subject # Date from which the SSL certificate is valid. @@ -109,7 +111,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsSSLCertificate` initialize method" @@ -175,10 +178,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -224,7 +228,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -232,7 +236,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -338,7 +342,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] value 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) @@ -354,7 +358,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 822cdf4b396..eecc9f183e0 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the issuer of a SSL certificate. class SyntheticsSSLCertificateIssuer - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -81,7 +81,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsSSLCertificateIssuer` initialize method" @@ -121,10 +122,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -164,7 +166,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -172,7 +174,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -278,7 +280,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] value 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) @@ -294,7 +296,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 f13885a2567..3c508240eff 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the SSL certificate used for the test. class SyntheticsSSLCertificateSubject - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -86,7 +86,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsSSLCertificateSubject` initialize method" @@ -130,10 +131,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -174,7 +176,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -182,7 +184,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -288,7 +290,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] value 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) @@ -304,7 +306,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_status.rb b/lib/datadog_api_client/v1/models/synthetics_status.rb index 0194ee6a163..364c3d066fe 100644 --- a/lib/datadog_api_client/v1/models/synthetics_status.rb +++ b/lib/datadog_api_client/v1/models/synthetics_status.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Determines whether or not the batch has passed, failed, or is in progress. class SyntheticsStatus PASSED = "passed".freeze skipped = "skipped".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_step.rb b/lib/datadog_api_client/v1/models/synthetics_step.rb index 0684ddd6ae2..577ba82beb6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The steps used in a Synthetics browser test. class SyntheticsStep - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -35,6 +35,7 @@ class SyntheticsStep # The time before declaring a step failed. attr_accessor :timeout + # Step type used in your Synthetic test. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -75,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsStep` initialize method" @@ -111,10 +113,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -153,7 +156,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -161,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -267,7 +270,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] value 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) @@ -283,7 +286,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 9bbbb262a5a..311faf9417d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_detail.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # Object describing a step for a Synthetic test. class SyntheticsStepDetail - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Array of errors collected for a browser test. attr_accessor :browser_errors + # Type of assertion to apply in an API test. attr_accessor :check_type # Description of the test. @@ -37,6 +38,7 @@ class SyntheticsStepDetail # Error returned by the test. attr_accessor :error + # Navigate between different tabs for your browser test. attr_accessor :playing_tab # Whether or not screenshots where collected by the test. @@ -51,12 +53,14 @@ class SyntheticsStepDetail # The step ID. attr_accessor :step_id - # If this steps include a sub-test. [Subtests documentation](https://docs.datadoghq.com/synthetics/browser_tests/advanced_options/#subtests). + # If this steps include a sub-test. + # [Subtests documentation](https://docs.datadoghq.com/synthetics/browser_tests/advanced_options/#subtests). attr_accessor :sub_test_step_details # Time before starting the step. attr_accessor :time_to_interactive + # Step type used in your Synthetic test. attr_accessor :type # URL to perform the step against. @@ -129,12 +133,12 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'value', ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsStepDetail` initialize method" @@ -226,10 +230,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -280,7 +285,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -288,7 +293,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -394,7 +399,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] value 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) @@ -410,7 +415,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 84d86d9695e..8a5e997db3e 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # Object collecting warnings for a given step. class SyntheticsStepDetailWarning - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Message for the warning. attr_accessor :message + # User locator used. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsStepDetailWarning` initialize method" @@ -84,14 +86,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @message.nil? invalid_properties.push('invalid value for "message", message cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -133,7 +134,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -141,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -247,7 +248,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] value 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) @@ -263,7 +264,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_step_type.rb b/lib/datadog_api_client/v1/models/synthetics_step_type.rb index eee9d5aea60..02d361b8bc7 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Step type used in your Synthetic test. class SyntheticsStepType ASSERT_CURRENT_URL = "assertCurrentUrl".freeze ASSERT_ELEMENT_ATTRIBUTE = "assertElementAttribute".freeze @@ -61,5 +62,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 d4c63326fcc..ae7131ef650 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_config.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_config.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Configuration object for a Synthetic test. class SyntheticsTestConfig - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class SyntheticsTestConfig # Array of variables used for the test. attr_accessor :config_variables + # Object describing the Synthetic test request. attr_accessor :request # Browser tests only - array of variables used for the test steps. @@ -70,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestConfig` initialize method" @@ -88,6 +90,8 @@ def initialize(attributes = {}) if (value = attributes[:'assertions']).is_a?(Array) self.assertions = value end + else + self.assertions = [] end if attributes.key?(:'config_variables') @@ -108,10 +112,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -149,7 +154,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -157,7 +162,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -263,7 +268,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] value 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) @@ -279,7 +284,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4e82d0b0d78..d1e9881a626 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details.rb @@ -19,12 +19,14 @@ module DatadogAPIClient::V1 # Object containing details about your Synthetic test. class SyntheticsTestDetails - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Configuration object for a Synthetic test. attr_accessor :config + # Object describing the creator of the shared element. attr_accessor :creator # Array of locations used to run the test. @@ -39,21 +41,27 @@ class SyntheticsTestDetails # Name of the test. attr_accessor :name + # Object describing the extra options for a Synthetic test. attr_accessor :options # The test public ID. attr_accessor :public_id + # Define whether you want to start (`live`) or pause (`paused`) a + # Synthetic test. attr_accessor :status # For browser test, the steps of the test. attr_accessor :steps + # The subtype of the Synthetic API test, `http`, `ssl`, `tcp`, + # `dns`, `icmp`, `udp`, `websocket` or `multi`. attr_accessor :subtype # Array of tags attached to the test. attr_accessor :tags + # Type of the Synthetic test, either `api` or `browser`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -110,7 +118,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestDetails` initialize method" @@ -184,10 +193,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -234,7 +244,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -242,7 +252,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -348,7 +358,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] value 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) @@ -364,7 +374,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb b/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb index 4cc172a29e9..b28eed2bb4a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb @@ -17,6 +17,8 @@ require 'time' module DatadogAPIClient::V1 + # The subtype of the Synthetic API test, `http`, `ssl`, `tcp`, + # `dns`, `icmp`, `udp`, `websocket` or `multi`. class SyntheticsTestDetailsSubType HTTP = "http".freeze SSL = "ssl".freeze @@ -44,5 +46,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_test_details_type.rb b/lib/datadog_api_client/v1/models/synthetics_test_details_type.rb index 721ee3d6046..f0678a6ac17 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the Synthetic test, either `api` or `browser`. class SyntheticsTestDetailsType API = "api".freeze BROWSER = "browser".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_test_execution_rule.rb b/lib/datadog_api_client/v1/models/synthetics_test_execution_rule.rb index 73ff3fded0b..43c487f68cd 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_execution_rule.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_execution_rule.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Execution rule for a Synthetics test. class SyntheticsTestExecutionRule BLOCKING = "blocking".freeze NON_BLOCKING = "non_blocking".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_test_monitor_status.rb b/lib/datadog_api_client/v1/models/synthetics_test_monitor_status.rb index 044721d8cd7..8dd28a86dd5 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_monitor_status.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_monitor_status.rb @@ -17,6 +17,10 @@ require 'time' module DatadogAPIClient::V1 + # The status of your Synthetic monitor. + # * `O` for not triggered + # * `1` for triggered + # * `2` for no data class SyntheticsTestMonitorStatus UNTRIGGERED = 0.freeze TRIGGERED = 1.freeze @@ -39,5 +43,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 8ec5b27ba13..1322b7cfcc8 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options.rb @@ -19,11 +19,12 @@ module DatadogAPIClient::V1 # Object describing the extra options for a Synthetic test. class SyntheticsTestOptions - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # For SSL test, whether or not the test should allow self signed certificates. + # For SSL test, whether or not the test should allow self signed + # certificates. attr_accessor :accept_self_signed # Allows loading insecure content for an HTTP request. @@ -41,12 +42,15 @@ class SyntheticsTestOptions # Minimum amount of time in failure required to trigger an alert. attr_accessor :min_failure_duration - # Minimum number of locations in failure required to trigger an alert. + # Minimum number of locations in failure required to trigger + # an alert. attr_accessor :min_location_failed # The monitor name is used for the alert title as well as for all monitor dashboard widgets and SLOs. attr_accessor :monitor_name + # Object containing the options for a Synthetic test as a monitor + # (for example, renotification). attr_accessor :monitor_options # Integer from 1 (high) to 5 (low) indicating alert severity. @@ -55,6 +59,7 @@ class SyntheticsTestOptions # Prevents saving screenshots of the steps. attr_accessor :no_screenshot + # Object describing the retry strategy to apply to a Synthetic test. attr_accessor :_retry # The frequency at which to run the Synthetic test (in seconds). @@ -114,7 +119,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestOptions` initialize method" @@ -184,25 +190,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@monitor_priority.nil? && @monitor_priority > 5 - invalid_properties.push('invalid value for "monitor_priority", must be smaller than or equal to 5.') - end - - if !@monitor_priority.nil? && @monitor_priority < 1 - invalid_properties.push('invalid value for "monitor_priority", must be greater than or equal to 1.') - end - - if !@tick_every.nil? && @tick_every > 604800 - invalid_properties.push('invalid value for "tick_every", must be smaller than or equal to 604800.') - end - - if !@tick_every.nil? && @tick_every < 30 - invalid_properties.push('invalid value for "tick_every", must be greater than or equal to 30.') - end invalid_properties end @@ -211,41 +202,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@monitor_priority.nil? && @monitor_priority > 5 - return false if !@monitor_priority.nil? && @monitor_priority < 1 - return false if !@tick_every.nil? && @tick_every > 604800 - return false if !@tick_every.nil? && @tick_every < 30 true end - # Custom attribute writer method with validation - # @param monitor_priority [Object] monitor_priority Value to be assigned - def monitor_priority=(monitor_priority) - if !monitor_priority.nil? && monitor_priority > 5 - fail ArgumentError, 'invalid value for "monitor_priority", must be smaller than or equal to 5.' - end - - if !monitor_priority.nil? && monitor_priority < 1 - fail ArgumentError, 'invalid value for "monitor_priority", must be greater than or equal to 1.' - end - - @monitor_priority = monitor_priority - end - - # Custom attribute writer method with validation - # @param tick_every [Object] tick_every Value to be assigned - def tick_every=(tick_every) - if !tick_every.nil? && tick_every > 604800 - fail ArgumentError, 'invalid value for "tick_every", must be smaller than or equal to 604800.' - end - - if !tick_every.nil? && tick_every < 30 - fail ArgumentError, 'invalid value for "tick_every", must be greater than or equal to 30.' - end - - @tick_every = tick_every - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -282,7 +241,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -290,7 +249,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -396,7 +355,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] value 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) @@ -412,7 +371,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 a76383e134f..381cab1b67e 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 @@ -17,13 +17,15 @@ require 'time' module DatadogAPIClient::V1 - # Object containing the options for a Synthetic test as a monitor (for example, renotification). + # Object containing the options for a Synthetic test as a monitor + # (for example, renotification). class SyntheticsTestOptionsMonitorOptions - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # Time interval before renotifying if the test is still failing (in minutes). + # Time interval before renotifying if the test is still failing + # (in minutes). attr_accessor :renotify_interval # Attribute mapping from ruby-style variable name to JSON key. @@ -56,7 +58,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestOptionsMonitorOptions` initialize method" @@ -76,17 +79,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@renotify_interval.nil? && @renotify_interval > 1440 - invalid_properties.push('invalid value for "renotify_interval", must be smaller than or equal to 1440.') - end - - if !@renotify_interval.nil? && @renotify_interval < 0 - invalid_properties.push('invalid value for "renotify_interval", must be greater than or equal to 0.') - end invalid_properties end @@ -95,25 +91,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@renotify_interval.nil? && @renotify_interval > 1440 - return false if !@renotify_interval.nil? && @renotify_interval < 0 true end - # Custom attribute writer method with validation - # @param renotify_interval [Object] renotify_interval Value to be assigned - def renotify_interval=(renotify_interval) - if !renotify_interval.nil? && renotify_interval > 1440 - fail ArgumentError, 'invalid value for "renotify_interval", must be smaller than or equal to 1440.' - end - - if !renotify_interval.nil? && renotify_interval < 0 - fail ArgumentError, 'invalid value for "renotify_interval", must be greater than or equal to 0.' - end - - @renotify_interval = renotify_interval - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -138,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -146,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -252,7 +232,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] value 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) @@ -268,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 177c1664269..90576c84f72 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 @@ -19,14 +19,16 @@ module DatadogAPIClient::V1 # Object describing the retry strategy to apply to a Synthetic test. class SyntheticsTestOptionsRetry - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # Number of times a test needs to be retried before marking a location as failed. Defaults to 0. + # Number of times a test needs to be retried before marking a + # location as failed. Defaults to 0. attr_accessor :count - # Time interval between retries (in milliseconds). Defaults to 300ms. + # Time interval between retries (in milliseconds). Defaults to + # 300ms. attr_accessor :interval # Attribute mapping from ruby-style variable name to JSON key. @@ -61,7 +63,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestOptionsRetry` initialize method" @@ -85,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +242,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] value 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) @@ -254,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_test_pause_status.rb b/lib/datadog_api_client/v1/models/synthetics_test_pause_status.rb index f59de73a514..0cf0ada0eed 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_pause_status.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_pause_status.rb @@ -17,6 +17,8 @@ require 'time' module DatadogAPIClient::V1 + # Define whether you want to start (`live`) or pause (`paused`) a + # Synthetic test. class SyntheticsTestPauseStatus LIVE = "live".freeze PAUSED = "paused".freeze @@ -38,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb b/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb index 9b3231b8bb6..1f4ec11b9af 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Status of a Synthetic test. class SyntheticsTestProcessStatus NOT_SCHEDULED = "not_scheduled".freeze SCHEDULED = "scheduled".freeze @@ -41,5 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 a2463c274df..2a700cda684 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request.rb @@ -19,18 +19,20 @@ module DatadogAPIClient::V1 # Object describing the Synthetic test request. class SyntheticsTestRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Allows loading insecure content for an HTTP request in a multistep test step. attr_accessor :allow_insecure + # Object to handle basic authentication when performing the test. attr_accessor :basic_auth # Body to include in the test. attr_accessor :body + # Client certificate to use when performing the test request. attr_accessor :certificate # DNS server to use for DNS tests. @@ -51,6 +53,7 @@ class SyntheticsTestRequest # Message to send for UDP or WebSocket tests. attr_accessor :message + # The HTTP method. attr_accessor :method # Determines whether or not to save the response body. @@ -62,12 +65,15 @@ class SyntheticsTestRequest # Port to use when performing the test. attr_accessor :port + # The proxy to perform the test. attr_accessor :proxy # Query to use for the test. attr_accessor :query - # For SSL tests, it specifies on which server you want to initiate the TLS handshake, allowing the server to present one of multiple possible certificates on the same IP address and TCP port number. + # For SSL tests, it specifies on which server you want to initiate the TLS handshake, + # allowing the server to present one of multiple possible certificates on + # the same IP address and TCP port number. attr_accessor :servername # Turns on a traceroute probe to discover all gateways along the path to the host destination. @@ -147,7 +153,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestRequest` initialize method" @@ -190,9 +197,7 @@ def initialize(attributes = {}) end if attributes.key?(:'headers') - if (value = attributes[:'headers']).is_a?(Hash) - self.headers = value - end + self.headers = attributes[:'headers'] end if attributes.key?(:'host') @@ -245,25 +250,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@dns_server_port.nil? && @dns_server_port > 65535 - invalid_properties.push('invalid value for "dns_server_port", must be smaller than or equal to 65535.') - end - - if !@dns_server_port.nil? && @dns_server_port < 1 - invalid_properties.push('invalid value for "dns_server_port", must be greater than or equal to 1.') - end - - if !@number_of_packets.nil? && @number_of_packets > 10 - invalid_properties.push('invalid value for "number_of_packets", must be smaller than or equal to 10.') - end - - if !@number_of_packets.nil? && @number_of_packets < 0 - invalid_properties.push('invalid value for "number_of_packets", must be greater than or equal to 0.') - end invalid_properties end @@ -272,41 +262,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@dns_server_port.nil? && @dns_server_port > 65535 - return false if !@dns_server_port.nil? && @dns_server_port < 1 - return false if !@number_of_packets.nil? && @number_of_packets > 10 - return false if !@number_of_packets.nil? && @number_of_packets < 0 true end - # Custom attribute writer method with validation - # @param dns_server_port [Object] dns_server_port Value to be assigned - def dns_server_port=(dns_server_port) - if !dns_server_port.nil? && dns_server_port > 65535 - fail ArgumentError, 'invalid value for "dns_server_port", must be smaller than or equal to 65535.' - end - - if !dns_server_port.nil? && dns_server_port < 1 - fail ArgumentError, 'invalid value for "dns_server_port", must be greater than or equal to 1.' - end - - @dns_server_port = dns_server_port - end - - # Custom attribute writer method with validation - # @param number_of_packets [Object] number_of_packets Value to be assigned - def number_of_packets=(number_of_packets) - if !number_of_packets.nil? && number_of_packets > 10 - fail ArgumentError, 'invalid value for "number_of_packets", must be smaller than or equal to 10.' - end - - if !number_of_packets.nil? && number_of_packets < 0 - fail ArgumentError, 'invalid value for "number_of_packets", must be greater than or equal to 0.' - end - - @number_of_packets = number_of_packets - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -350,7 +308,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -358,7 +316,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -464,7 +422,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] value 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) @@ -480,7 +438,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 0b5cce645ce..45f20626ba7 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V1 # Client certificate to use when performing the test request. class SyntheticsTestRequestCertificate - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Define a request certificate. attr_accessor :cert + # Define a request certificate. attr_accessor :key # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestRequestCertificate` initialize method" @@ -83,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -122,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -130,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -236,7 +240,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] value 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) @@ -252,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 475e3b8b87e..14d7577a7b1 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Define a request certificate. class SyntheticsTestRequestCertificateItem - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestRequestCertificateItem` initialize method" @@ -94,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4251cbdde57..e792d8040be 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The proxy to perform the test. class SyntheticsTestRequestProxy - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestRequestProxy` initialize method" @@ -76,9 +77,7 @@ def initialize(attributes = {}) } if attributes.key?(:'headers') - if (value = attributes[:'headers']).is_a?(Hash) - self.headers = value - end + self.headers = attributes[:'headers'] end if attributes.key?(:'url') @@ -87,8 +86,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @url.nil? @@ -131,7 +130,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -139,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -245,7 +244,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] value 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) @@ -261,7 +260,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_timing.rb b/lib/datadog_api_client/v1/models/synthetics_timing.rb index 931becfb554..fa779be867c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_timing.rb +++ b/lib/datadog_api_client/v1/models/synthetics_timing.rb @@ -17,9 +17,10 @@ require 'time' module DatadogAPIClient::V1 - # Object containing all metrics and their values collected for a Synthetic API test. Learn more about those metrics in [Synthetics documentation](https://docs.datadoghq.com/synthetics/#metrics). + # Object containing all metrics and their values collected for a Synthetic API test. + # Learn more about those metrics in [Synthetics documentation](https://docs.datadoghq.com/synthetics/#metrics). class SyntheticsTiming - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -96,7 +97,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTiming` initialize method" @@ -148,10 +150,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -194,7 +197,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -202,7 +205,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -308,7 +311,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] value 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) @@ -324,7 +327,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 1f7aec96979..271731a0875 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the synthetics tests to trigger. class SyntheticsTriggerBody - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTriggerBody` initialize method" @@ -78,8 +79,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @tests.nil? @@ -121,7 +122,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -129,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -235,7 +236,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] value 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) @@ -251,7 +252,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4580c5db31b..3d9c7d5c729 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Synthetics location. class SyntheticsTriggerCITestLocation - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTriggerCITestLocation` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 b69516e2b1d..2e097bc7bb8 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Information about a single test run. class SyntheticsTriggerCITestRunResult - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The device ID. attr_accessor :device # The location ID of the test run. @@ -70,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTriggerCITestRunResult` initialize method" @@ -102,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -143,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -151,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -257,7 +260,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] value 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) @@ -273,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ec9b557e478..9bd8935fccf 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing information about the tests triggered. class SyntheticsTriggerCITestsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -67,12 +67,13 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'batch_id', + :'batch_id' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTriggerCITestsResponse` initialize method" @@ -110,10 +111,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -151,7 +153,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -159,7 +161,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -265,7 +267,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] value 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) @@ -281,7 +283,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 b4d9f5f6c9a..106f4f2cb34 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Test configuration for Synthetics class SyntheticsTriggerTest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Metadata for the Synthetics tests run. attr_accessor :metadata # The public ID of the Synthetics test to trigger. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTriggerTest` initialize method" @@ -84,8 +86,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @public_id.nil? @@ -128,7 +130,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -136,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -242,7 +244,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] value 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) @@ -258,7 +260,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 d9ad1e8b088..f294caa8162 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 @@ -19,10 +19,12 @@ module DatadogAPIClient::V1 # Object to start or pause an existing Synthetic test. class SyntheticsUpdateTestPauseStatusPayload - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Define whether you want to start (`live`) or pause (`paused`) a + # Synthetic test. attr_accessor :new_status # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +57,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsUpdateTestPauseStatusPayload` initialize method" @@ -75,10 +78,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +117,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +125,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +231,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] value 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) @@ -243,7 +247,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 c918d5b03e8..ed6f1f57e20 100644 --- a/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb +++ b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Details of the parser to use for the global variable. class SyntheticsVariableParser - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Type of parser for a Synthetics global variable from a synthetics test. attr_accessor :type # Regex or JSON path used for the parser. Not used with type `raw`. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsVariableParser` initialize method" @@ -84,8 +86,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -128,7 +130,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -136,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -242,7 +244,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] value 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) @@ -258,7 +260,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/synthetics_warning_type.rb b/lib/datadog_api_client/v1/models/synthetics_warning_type.rb index 1c8963b7112..e0312c907f2 100644 --- a/lib/datadog_api_client/v1/models/synthetics_warning_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_warning_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # User locator used. class SyntheticsWarningType USER_LOCATOR = "user_locator".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/table_widget_cell_display_mode.rb b/lib/datadog_api_client/v1/models/table_widget_cell_display_mode.rb index 9cb40a003df..3aaf7a24b12 100644 --- a/lib/datadog_api_client/v1/models/table_widget_cell_display_mode.rb +++ b/lib/datadog_api_client/v1/models/table_widget_cell_display_mode.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Define a display mode for the table cell. class TableWidgetCellDisplayMode NUMBER = "number".freeze BAR = "bar".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 2d101c69686..f99b8624171 100644 --- a/lib/datadog_api_client/v1/models/table_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/table_widget_definition.rb @@ -19,28 +19,32 @@ module DatadogAPIClient::V1 # The table visualization is available on timeboards and screenboards. It displays columns of metrics grouped by tag key. class TableWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # List of custom links. attr_accessor :custom_links + # Controls the display of the search bar. attr_accessor :has_search_bar # Widget definition. attr_accessor :requests + # Time setting for the widget. attr_accessor :time # Title of your widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the table widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -87,7 +91,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TableWidgetDefinition` initialize method" @@ -141,14 +146,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -196,7 +200,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -204,7 +208,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -310,7 +314,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] value 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) @@ -326,7 +330,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/table_widget_definition_type.rb b/lib/datadog_api_client/v1/models/table_widget_definition_type.rb index eb9079e5519..eff1f9a9f6c 100644 --- a/lib/datadog_api_client/v1/models/table_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/table_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the table widget. class TableWidgetDefinitionType QUERY_TABLE = "query_table".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/table_widget_has_search_bar.rb b/lib/datadog_api_client/v1/models/table_widget_has_search_bar.rb index 417bced6c1d..65f6acf7b57 100644 --- a/lib/datadog_api_client/v1/models/table_widget_has_search_bar.rb +++ b/lib/datadog_api_client/v1/models/table_widget_has_search_bar.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Controls the display of the search bar. class TableWidgetHasSearchBar ALWAYS = "always".freeze NEVER = "never".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 0f284a1385c..202753d1e41 100644 --- a/lib/datadog_api_client/v1/models/table_widget_request.rb +++ b/lib/datadog_api_client/v1/models/table_widget_request.rb @@ -19,17 +19,20 @@ module DatadogAPIClient::V1 # Updated table widget. class TableWidgetRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Aggregator used for the request. attr_accessor :aggregator # The column name (defaults to the metric name). attr_accessor :_alias + # The log query. attr_accessor :apm_query + # The APM stats query for table and distributions widgets. attr_accessor :apm_stats_query # A list of display modes for each table cell. @@ -38,6 +41,7 @@ class TableWidgetRequest # List of conditional formats. attr_accessor :conditional_formats + # The log query. attr_accessor :event_query # List of formulas that operate on queries. **This feature is currently in beta.** @@ -46,14 +50,19 @@ class TableWidgetRequest # For metric queries, the number of lines to show in the table. Only one request should have this property. attr_accessor :limit + # The log query. attr_accessor :log_query + # The log query. attr_accessor :network_query + # Widget sorting methods. attr_accessor :order + # The process query to use in the widget. attr_accessor :process_query + # The log query. attr_accessor :profile_metrics_query # Query definition. @@ -62,10 +71,13 @@ class TableWidgetRequest # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries + # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format + # The log query. attr_accessor :rum_query + # The log query. attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. @@ -134,7 +146,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TableWidgetRequest` initialize method" @@ -234,10 +247,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -290,7 +304,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -298,7 +312,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -404,7 +418,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] value 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) @@ -420,7 +434,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 0a41ac3e818..c814d24bd27 100644 --- a/lib/datadog_api_client/v1/models/tag_to_hosts.rb +++ b/lib/datadog_api_client/v1/models/tag_to_hosts.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # In this object, the key is the tag, the value is a list of host names that are reporting that tag. class TagToHosts - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TagToHosts` initialize method" @@ -71,17 +72,16 @@ def initialize(attributes = {}) } if attributes.key?(:'tags') - if (value = attributes[:'tags']).is_a?(Hash) - self.tags = value - end + self.tags = attributes[:'tags'] end end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +230,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] value 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) @@ -246,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/target_format_type.rb b/lib/datadog_api_client/v1/models/target_format_type.rb index 456a5573d61..558ff1c62d5 100644 --- a/lib/datadog_api_client/v1/models/target_format_type.rb +++ b/lib/datadog_api_client/v1/models/target_format_type.rb @@ -17,6 +17,9 @@ require 'time' module DatadogAPIClient::V1 + # If the `target_type` of the remapper is `attribute`, try to cast the value to a new specific type. + # If the cast is not possible, the original type is kept. `string`, `integer`, or `double` are the possible types. + # If the `target_type` is `tag`, this parameter may not be specified. class TargetFormatType AUTO = "auto".freeze STRING = "string".freeze @@ -40,5 +43,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 a3179c58cdc..c8bd37fcfa6 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The timeseries visualization allows you to display the evolution of one or more metrics, log events, or Indexed Spans over time. class TimeseriesWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -32,9 +32,10 @@ class TimeseriesWidgetDefinition # Columns displayed in the legend. attr_accessor :legend_columns + # Layout of the legend. attr_accessor :legend_layout - # Available legend sizes for a widget. Should be one of \"0\", \"2\", \"4\", \"8\", \"16\", or \"auto\". + # Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto". attr_accessor :legend_size # List of markers. @@ -43,23 +44,28 @@ class TimeseriesWidgetDefinition # List of timeseries widget requests. attr_accessor :requests + # Axis controls for the widget. attr_accessor :right_yaxis # (screenboard only) Show the legend for this widget. attr_accessor :show_legend + # Time setting for the widget. attr_accessor :time # Title of your widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the timeseries widget. attr_accessor :type + # Axis controls for the widget. attr_accessor :yaxis # Attribute mapping from ruby-style variable name to JSON key. @@ -120,7 +126,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TimeseriesWidgetDefinition` initialize method" @@ -208,18 +215,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - - if @requests.length < 1 - invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') - end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -232,25 +234,10 @@ def list_invalid_properties # @!visibility private def valid? return false if @requests.nil? - return false if @requests.length < 1 return false if @type.nil? true end - # Custom attribute writer method with validation - # @param requests [Object] requests Value to be assigned - def requests=(requests) - if requests.nil? - fail ArgumentError, 'requests cannot be nil' - end - - if requests.length < 1 - fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' - end - - @requests = requests - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -289,7 +276,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -297,7 +284,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -403,7 +390,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] value 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) @@ -419,7 +406,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_definition_type.rb b/lib/datadog_api_client/v1/models/timeseries_widget_definition_type.rb index 2833b6a5cbd..b81b52038f8 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the timeseries widget. class TimeseriesWidgetDefinitionType TIMESERIES = "timeseries".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 59b26c2d519..2575a47756d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Define an expression alias. class TimeseriesWidgetExpressionAlias - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TimeseriesWidgetExpressionAlias` initialize method" @@ -85,8 +86,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @expression.nil? @@ -129,7 +130,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -137,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -243,7 +244,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] value 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) @@ -259,7 +260,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_legend_column.rb b/lib/datadog_api_client/v1/models/timeseries_widget_legend_column.rb index 1d8dcec3429..008a1db0c29 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_legend_column.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_legend_column.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Legend column. class TimeseriesWidgetLegendColumn VALUE = "value".freeze AVG = "avg".freeze @@ -41,5 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_legend_layout.rb b/lib/datadog_api_client/v1/models/timeseries_widget_legend_layout.rb index e53f5f6ea45..83585b0a6f3 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_legend_layout.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_legend_layout.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Layout of the legend. class TimeseriesWidgetLegendLayout AUTO = "auto".freeze HORIZONTAL = "horizontal".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 524a127a8f0..f445dffb808 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb @@ -19,33 +19,41 @@ module DatadogAPIClient::V1 # Updated timeseries widget. class TimeseriesWidgetRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The log query. attr_accessor :apm_query + # The log query. attr_accessor :audit_query + # Type of display to use for the request. attr_accessor :display_type + # The log query. attr_accessor :event_query # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas + # The log query. attr_accessor :log_query # Used to define expression aliases. attr_accessor :metadata + # The log query. attr_accessor :network_query # Whether or not to display a second y-axis on the right. attr_accessor :on_right_yaxis + # The process query to use in the widget. attr_accessor :process_query + # The log query. attr_accessor :profile_metrics_query # Widget query. @@ -54,12 +62,16 @@ class TimeseriesWidgetRequest # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries + # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format + # The log query. attr_accessor :rum_query + # The log query. attr_accessor :security_query + # Define request widget style. attr_accessor :style # Attribute mapping from ruby-style variable name to JSON key. @@ -124,7 +136,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TimeseriesWidgetRequest` initialize method" @@ -214,10 +227,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -268,7 +282,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -276,7 +290,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -382,7 +396,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] value 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) @@ -398,7 +412,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 38df907df38..fd1fae82084 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The top list visualization enables you to display a list of Tag value like hostname or service with the most or least of any metric value, such as highest consumers of CPU, hosts with the least disk space, etc. class ToplistWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,16 +29,19 @@ class ToplistWidgetDefinition # List of top list widget requests. attr_accessor :requests + # Time setting for the widget. attr_accessor :time # Title of your widget. attr_accessor :title + # How to align the text on the widget. attr_accessor :title_align # Size of the title. attr_accessor :title_size + # Type of the top list widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -83,7 +86,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ToplistWidgetDefinition` initialize method" @@ -133,14 +137,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -187,7 +190,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -195,7 +198,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -301,7 +304,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] value 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) @@ -317,7 +320,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/toplist_widget_definition_type.rb b/lib/datadog_api_client/v1/models/toplist_widget_definition_type.rb index 31b49e2b336..8a603136cdc 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the top list widget. class ToplistWidgetDefinitionType TOPLIST = "toplist".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 07bec2a4e94..d651c0f669c 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_request.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_request.rb @@ -19,28 +19,35 @@ module DatadogAPIClient::V1 # Updated top list widget. class ToplistWidgetRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The log query. attr_accessor :apm_query + # The log query. attr_accessor :audit_query # List of conditional formats. attr_accessor :conditional_formats + # The log query. attr_accessor :event_query # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas + # The log query. attr_accessor :log_query + # The log query. attr_accessor :network_query + # The process query to use in the widget. attr_accessor :process_query + # The log query. attr_accessor :profile_metrics_query # Widget query. @@ -49,12 +56,16 @@ class ToplistWidgetRequest # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries + # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format + # The log query. attr_accessor :rum_query + # The log query. attr_accessor :security_query + # Define request widget style. attr_accessor :style # Attribute mapping from ruby-style variable name to JSON key. @@ -115,7 +126,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ToplistWidgetRequest` initialize method" @@ -197,13 +209,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@conditional_formats.nil? && @conditional_formats.length < 1 - invalid_properties.push('invalid value for "conditional_formats", number of items must be greater than or equal to 1.') - end invalid_properties end @@ -212,20 +221,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@conditional_formats.nil? && @conditional_formats.length < 1 true end - # Custom attribute writer method with validation - # @param conditional_formats [Object] conditional_formats Value to be assigned - def conditional_formats=(conditional_formats) - if !conditional_formats.nil? && conditional_formats.length < 1 - fail ArgumentError, 'invalid value for "conditional_formats", number of items must be greater than or equal to 1.' - end - - @conditional_formats = conditional_formats - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -264,7 +262,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -272,7 +270,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -378,7 +376,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] value 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) @@ -394,7 +392,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/tree_map_color_by.rb b/lib/datadog_api_client/v1/models/tree_map_color_by.rb index 3eaaad8da6d..886d9cba3d0 100644 --- a/lib/datadog_api_client/v1/models/tree_map_color_by.rb +++ b/lib/datadog_api_client/v1/models/tree_map_color_by.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The attribute used to determine color in the widget. class TreeMapColorBy USER = "user".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/tree_map_group_by.rb b/lib/datadog_api_client/v1/models/tree_map_group_by.rb index 033e50a82ad..38e0d825bdd 100644 --- a/lib/datadog_api_client/v1/models/tree_map_group_by.rb +++ b/lib/datadog_api_client/v1/models/tree_map_group_by.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The attribute used to group elements in the widget. class TreeMapGroupBy USER = "user".freeze FAMILY = "family".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/tree_map_size_by.rb b/lib/datadog_api_client/v1/models/tree_map_size_by.rb index e672295454d..8c4727d3831 100644 --- a/lib/datadog_api_client/v1/models/tree_map_size_by.rb +++ b/lib/datadog_api_client/v1/models/tree_map_size_by.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The attribute used to determine size in the widget. class TreeMapSizeBy PCT_CPU = "pct_cpu".freeze PCT_MEM = "pct_mem".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 60c2d6f0553..635e89e740b 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 @@ -19,22 +19,26 @@ module DatadogAPIClient::V1 # The treemap visualization found on the Host Dashboards comes from the output of `ps auxww`. This is not continuously run on your hosts. Instead, it’s run once on Agent start/restart. The treemap is only supported for process data on a single host dashboard — this may not be reused in other dashboards or for other metrics. class TreeMapWidgetDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The attribute used to determine color in the widget. attr_accessor :color_by + # The attribute used to group elements in the widget. attr_accessor :group_by # List of top list widget requests. attr_accessor :requests + # The attribute used to determine size in the widget. attr_accessor :size_by # Title of your widget. attr_accessor :title + # Type of the treemap widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -77,7 +81,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TreeMapWidgetDefinition` initialize method" @@ -123,22 +128,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - - if @requests.length > 1 - invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') - end - - if @requests.length < 1 - invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') - end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -151,30 +147,10 @@ def list_invalid_properties # @!visibility private def valid? return false if @requests.nil? - return false if @requests.length > 1 - return false if @requests.length < 1 return false if @type.nil? true end - # Custom attribute writer method with validation - # @param requests [Object] requests Value to be assigned - def requests=(requests) - if requests.nil? - fail ArgumentError, 'requests cannot be nil' - end - - if requests.length > 1 - fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' - end - - if requests.length < 1 - fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' - end - - @requests = requests - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -204,7 +180,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -212,7 +188,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -318,7 +294,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] value 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) @@ -334,7 +310,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/tree_map_widget_definition_type.rb b/lib/datadog_api_client/v1/models/tree_map_widget_definition_type.rb index ca2caf670ea..63972ecc792 100644 --- a/lib/datadog_api_client/v1/models/tree_map_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/tree_map_widget_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of the treemap widget. class TreeMapWidgetDefinitionType TREEMAP = "treemap".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 85439d7f2c6..1e7677ffc31 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An updated treemap widget. class TreeMapWidgetRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -32,6 +32,7 @@ class TreeMapWidgetRequest # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries + # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format # Attribute mapping from ruby-style variable name to JSON key. @@ -70,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TreeMapWidgetRequest` initialize method" @@ -106,10 +108,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -147,7 +150,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -155,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -261,7 +264,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] value 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) @@ -277,7 +280,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 fdba7a88c54..5ea3a50f467 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The number of analyzed logs for each hour for a given organization. class UsageAnalyzedLogsHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAnalyzedLogsHour` initialize method" @@ -103,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -144,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +260,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] value 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) @@ -274,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 1cbbf6b4cd2..864408aabe8 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A response containing the number of analyzed logs for each hour for a given organization. class UsageAnalyzedLogsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAnalyzedLogsResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 1c1ac654fce..624b7e2eb25 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The object containing the aggregates. class UsageAttributionAggregatesBody - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionAggregatesBody` initialize method" @@ -94,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/usage_attribution_body.rb b/lib/datadog_api_client/v1/models/usage_attribution_body.rb index e4f6b783e58..0c88a3bd5ae 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_body.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_body.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Usage Summary by tag for a given organization. class UsageAttributionBody - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -41,6 +41,7 @@ class UsageAttributionBody # Shows the the most recent hour in the current months for all organizations for which all usages were calculated. attr_accessor :updated_at + # Fields in Usage Summary by tag(s). attr_accessor :values # Attribute mapping from ruby-style variable name to JSON key. @@ -85,7 +86,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionBody` initialize method" @@ -116,9 +118,7 @@ def initialize(attributes = {}) end if attributes.key?(:'tags') - if (value = attributes[:'tags']).is_a?(Hash) - self.tags = value - end + self.tags = attributes[:'tags'] end if attributes.key?(:'updated_at') @@ -131,10 +131,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -175,7 +176,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -183,7 +184,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -289,7 +290,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] value 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) @@ -305,7 +306,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb b/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb index 93c21489d42..b83141ec885 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # The object containing document metadata. class UsageAttributionMetadata - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # An array of available aggregates. attr_accessor :aggregates + # The metadata for the current pagination. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionMetadata` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb b/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb index c9e83094723..79fc66a61a3 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The metadata for the current pagination. class UsageAttributionPagination - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -76,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionPagination` initialize method" @@ -112,10 +113,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -154,7 +156,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -162,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -268,7 +270,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] value 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) @@ -284,7 +286,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/usage_attribution_response.rb b/lib/datadog_api_client/v1/models/usage_attribution_response.rb index d2447fdd009..c054fb9780b 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_response.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Response containing the Usage Summary by tag(s). class UsageAttributionResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The object containing document metadata. attr_accessor :metadata # Get Usage Summary by tag(s). @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionResponse` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/usage_attribution_sort.rb b/lib/datadog_api_client/v1/models/usage_attribution_sort.rb index 49631cb5d87..2c6d83fb9ce 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_sort.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The field to sort by. class UsageAttributionSort API_PERCENTAGE = "api_percentage".freeze SNMP_USAGE = "snmp_usage".freeze @@ -58,5 +59,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb b/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb index f38fa9248f2..b42be18e80c 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Supported fields for usage attribution requests (valid requests contain one or more metrics, or `*` for all). class UsageAttributionSupportedMetrics CUSTOM_TIMESERIES_USAGE = "custom_timeseries_usage".freeze CONTAINER_USAGE = "container_usage".freeze @@ -71,5 +72,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/usage_attribution_values.rb b/lib/datadog_api_client/v1/models/usage_attribution_values.rb index 8faa3a24890..c35ee64fe41 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_values.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_values.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Fields in Usage Summary by tag(s). class UsageAttributionValues - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -113,10 +113,14 @@ class UsageAttributionValues # The Lambda invocation usage by tag(s). attr_accessor :lambda_invocations_usage - # The percentage of Lambda function usage by tag(s). **Note** this field is deprecated. Use lambda_functions_percentage instead. + # The percentage of Lambda function usage by tag(s). + # + # **Note** this field is deprecated. Use lambda_functions_percentage instead. attr_accessor :lambda_percentage - # The Lambda function usage by tag(s). **Note** this field is deprecated. Use lambda_functions_usage instead. + # The Lambda function usage by tag(s). + # + # **Note** this field is deprecated. Use lambda_functions_usage instead. attr_accessor :lambda_usage # The percentage of network host usage by tag(s). @@ -251,7 +255,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionValues` initialize method" @@ -427,10 +432,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -504,7 +510,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -512,7 +518,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -618,7 +624,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] value 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) @@ -634,7 +640,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 25e42012a67..72481f177f6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Audit logs usage for a given organization for a given hour. class UsageAuditLogsHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAuditLogsHour` initialize method" @@ -103,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -144,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +260,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] value 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) @@ -274,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 fce1ab04f6c..aee0e682802 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the audit logs usage for each hour for a given organization. class UsageAuditLogsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAuditLogsResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 57b348389f2..865eae088ed 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response with properties for each aggregated usage type. class UsageBillableSummaryBody - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -86,7 +86,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageBillableSummaryBody` initialize method" @@ -130,10 +131,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -174,7 +176,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -182,7 +184,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -288,7 +290,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] value 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) @@ -304,7 +306,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 a5ccb8417ed..4ee6f229ae9 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response with monthly summary of data billed by Datadog. class UsageBillableSummaryHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -44,6 +44,7 @@ class UsageBillableSummaryHour # Shows the first date of usage. attr_accessor :start_date + # Response with aggregated usage types. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. @@ -90,7 +91,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageBillableSummaryHour` initialize method" @@ -138,10 +140,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -183,7 +186,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -191,7 +194,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -297,7 +300,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] value 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) @@ -313,7 +316,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 f554e3d1c29..8e8babb6b60 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 @@ -19,72 +19,104 @@ module DatadogAPIClient::V1 # Response with aggregated usage types. class UsageBillableSummaryKeys - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Response with properties for each aggregated usage type. attr_accessor :apm_host_sum + # Response with properties for each aggregated usage type. attr_accessor :apm_host_top99p + # Response with properties for each aggregated usage type. attr_accessor :apm_trace_search_sum + # Response with properties for each aggregated usage type. attr_accessor :fargate_container_average + # Response with properties for each aggregated usage type. attr_accessor :infra_container_sum + # Response with properties for each aggregated usage type. attr_accessor :infra_host_sum + # Response with properties for each aggregated usage type. attr_accessor :infra_host_top99p + # Response with properties for each aggregated usage type. attr_accessor :iot_top99p + # Response with properties for each aggregated usage type. attr_accessor :lambda_function_average + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_15day_sum + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_180day_sum + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_30day_sum + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_3day_sum + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_45day_sum + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_60day_sum + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_7day_sum + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_90day_sum + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_custom_retention_sum + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_sum + # Response with properties for each aggregated usage type. attr_accessor :logs_ingested_sum + # Response with properties for each aggregated usage type. attr_accessor :network_device_top99p + # Response with properties for each aggregated usage type. attr_accessor :npm_flow_sum + # Response with properties for each aggregated usage type. attr_accessor :npm_host_sum + # Response with properties for each aggregated usage type. attr_accessor :npm_host_top99p + # Response with properties for each aggregated usage type. attr_accessor :prof_container_sum + # Response with properties for each aggregated usage type. attr_accessor :prof_host_top99p + # Response with properties for each aggregated usage type. attr_accessor :rum_sum + # Response with properties for each aggregated usage type. attr_accessor :serverless_invocation_sum + # Response with properties for each aggregated usage type. attr_accessor :siem_sum + # Response with properties for each aggregated usage type. attr_accessor :synthetics_api_tests_sum + # Response with properties for each aggregated usage type. attr_accessor :synthetics_browser_checks_sum + # Response with properties for each aggregated usage type. attr_accessor :timeseries_average # Attribute mapping from ruby-style variable name to JSON key. @@ -179,7 +211,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageBillableSummaryKeys` initialize method" @@ -323,10 +356,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -392,7 +426,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -400,7 +434,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -506,7 +540,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] value 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) @@ -522,7 +556,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 31bea4a0385..2c0a2d451c6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response with monthly summary of data billed by Datadog. class UsageBillableSummaryResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageBillableSummaryResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 85a9eb0eb27..a9ecba158f9 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Cloud Security Posture Management usage for a given organization for a given hour. class UsageCloudSecurityPostureManagementHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -91,12 +91,13 @@ def self.openapi_nullable :'azure_host_count', :'compliance_host_count', :'container_count', - :'host_count', + :'host_count' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCloudSecurityPostureManagementHour` initialize method" @@ -144,10 +145,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -189,7 +191,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -197,7 +199,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -303,7 +305,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] value 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) @@ -319,7 +321,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 657cb4abdba..ae1f0c74ca9 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The response containing the Cloud Security Posture Management usage for each hour for a given organization. class UsageCloudSecurityPostureManagementResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCloudSecurityPostureManagementResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 a77b8f921c8..2dc903fd124 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The response containing attributes for custom reports. class UsageCustomReportsAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -76,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCustomReportsAttributes` initialize method" @@ -114,10 +115,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -156,7 +158,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -164,7 +166,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -270,7 +272,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] value 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) @@ -286,7 +288,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 7723f3a7a4a..7db53b615ef 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V1 # The response containing the date and type for custom reports. class UsageCustomReportsData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The response containing attributes for custom reports. attr_accessor :attributes # The date for specified custom reports. attr_accessor :id + # The type of reports. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCustomReportsData` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 283fd2609c8..e38508b0aa9 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # The object containing document metadata. class UsageCustomReportsMeta - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The object containing page total count. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCustomReportsMeta` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 77b07d083d0..75a3149598d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The object containing page total count. class UsageCustomReportsPage - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCustomReportsPage` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 6a56ddd307e..af0833e688c 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # Response containing available custom reports. class UsageCustomReportsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # An array of available custom reports. attr_accessor :data + # The object containing document metadata. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCustomReportsResponse` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 314ce36d28d..4344ca178a6 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Cloud Workload Security usage for a given organization for a given hour. class UsageCWSHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -76,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCWSHour` initialize method" @@ -112,10 +113,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -154,7 +156,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -162,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -268,7 +270,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] value 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) @@ -284,7 +286,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 1e530149b5d..e9d66a1e06b 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_response.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the Cloud Workload Security usage for each hour for a given organization. class UsageCWSResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCWSResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 640bbb97ee5..e700176d0a6 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Database Monitoring usage for a given organization for a given hour. class UsageDBMHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -76,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageDBMHour` initialize method" @@ -112,10 +113,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -154,7 +156,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -162,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -268,7 +270,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] value 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) @@ -284,7 +286,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 6679d3187be..d2d9b401b7c 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_response.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the Database Monitoring usage for each hour for a given organization. class UsageDBMResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageDBMResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 514da7d772d..5ab5910232e 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Number of Fargate tasks run and hourly usage. class UsageFargateHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -76,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageFargateHour` initialize method" @@ -112,10 +113,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -154,7 +156,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -162,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -268,7 +270,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] value 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) @@ -284,7 +286,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 53b3f3cf232..b91988b03d6 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_response.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of Fargate tasks run and hourly usage. class UsageFargateResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageFargateResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 2a160f1a06b..a062a080686 100644 --- a/lib/datadog_api_client/v1/models/usage_host_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_host_hour.rb @@ -19,50 +19,59 @@ module DatadogAPIClient::V1 # Number of hosts/containers recorded for each hour for a given organization. class UsageHostHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # Contains the total number of infrastructure hosts reporting during a given hour that were running the Datadog Agent. + # Contains the total number of infrastructure hosts reporting + # during a given hour that were running the Datadog Agent. attr_accessor :agent_host_count - # Contains the total number of hosts that reported through Alibaba integration (and were NOT running the Datadog Agent). + # Contains the total number of hosts that reported through Alibaba integration + # (and were NOT running the Datadog Agent). attr_accessor :alibaba_host_count # Contains the total number of Azure App Services hosts using APM. attr_accessor :apm_azure_app_service_host_count - # Shows the total number of hosts using APM during the hour, these are counted as billable (except during trial periods). + # Shows the total number of hosts using APM during the hour, + # these are counted as billable (except during trial periods). attr_accessor :apm_host_count - # Contains the total number of hosts that reported through the AWS integration (and were NOT running the Datadog Agent). + # Contains the total number of hosts that reported through the AWS integration + # (and were NOT running the Datadog Agent). attr_accessor :aws_host_count - # Contains the total number of hosts that reported through Azure integration (and were NOT running the Datadog Agent). + # Contains the total number of hosts that reported through Azure integration + # (and were NOT running the Datadog Agent). attr_accessor :azure_host_count # Shows the total number of containers reported by the Docker integration during the hour. attr_accessor :container_count - # Contains the total number of hosts that reported through the Google Cloud integration (and were NOT running the Datadog Agent). + # Contains the total number of hosts that reported through the Google Cloud integration + # (and were NOT running the Datadog Agent). attr_accessor :gcp_host_count # Contains the total number of Heroku dynos reported by the Datadog Agent. attr_accessor :heroku_host_count - # Contains the total number of billable infrastructure hosts reporting during a given hour. This is the sum of `agent_host_count`, `aws_host_count`, and `gcp_host_count`. + # Contains the total number of billable infrastructure hosts reporting during a given hour. + # This is the sum of `agent_host_count`, `aws_host_count`, and `gcp_host_count`. attr_accessor :host_count # The hour for the usage. attr_accessor :hour - # Contains the total number of hosts that reported through the Azure App Services integration (and were NOT running the Datadog Agent). + # Contains the total number of hosts that reported through the Azure App Services integration + # (and were NOT running the Datadog Agent). attr_accessor :infra_azure_app_service # Contains the total number of hosts reported by Datadog exporter for the OpenTelemetry Collector. attr_accessor :opentelemetry_host_count - # Contains the total number of hosts that reported through vSphere integration (and were NOT running the Datadog Agent). + # Contains the total number of hosts that reported through vSphere integration + # (and were NOT running the Datadog Agent). attr_accessor :vsphere_host_count # Attribute mapping from ruby-style variable name to JSON key. @@ -121,7 +130,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageHostHour` initialize method" @@ -193,10 +203,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -244,7 +255,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -252,7 +263,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -358,7 +369,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] value 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) @@ -374,7 +385,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 e1bbc27f513..7f27be91403 100644 --- a/lib/datadog_api_client/v1/models/usage_hosts_response.rb +++ b/lib/datadog_api_client/v1/models/usage_hosts_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Host usage response. class UsageHostsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageHostsResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 83deb769833..f8556e54010 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Incident management usage for a given organization for a given hour. class UsageIncidentManagementHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIncidentManagementHour` initialize method" @@ -103,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -144,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +260,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] value 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) @@ -274,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 55412b58bc8..a896b97aa1f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the incident management usage for each hour for a given organization. class UsageIncidentManagementResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIncidentManagementResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 d0e31ed21e1..76a2c460779 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The hours of indexed spans usage. class UsageIndexedSpansHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIndexedSpansHour` initialize method" @@ -103,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -144,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +260,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] value 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) @@ -274,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 fcddd8f98a7..6494959c3a3 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A response containing indexed spans usage. class UsageIndexedSpansResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIndexedSpansResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 67d4685f0d4..0bc2f795faf 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Ingested spans usage for a given organization for a given hour. class UsageIngestedSpansHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIngestedSpansHour` initialize method" @@ -103,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -144,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +260,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] value 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) @@ -274,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 f0e8168dbc3..801faace64c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the ingested spans usage for each hour for a given organization. class UsageIngestedSpansResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIngestedSpansResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/usage_io_t_hour.rb b/lib/datadog_api_client/v1/models/usage_io_t_hour.rb index 6a74bc3388a..5c9513ed6fa 100644 --- a/lib/datadog_api_client/v1/models/usage_io_t_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_io_t_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # IoT usage for a given organization for a given hour. class UsageIoTHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIoTHour` initialize method" @@ -103,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -144,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +260,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] value 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) @@ -274,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/usage_io_t_response.rb b/lib/datadog_api_client/v1/models/usage_io_t_response.rb index 3786a05cfe0..624e76b37b9 100644 --- a/lib/datadog_api_client/v1/models/usage_io_t_response.rb +++ b/lib/datadog_api_client/v1/models/usage_io_t_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the IoT usage for each hour for a given organization. class UsageIoTResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIoTResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 859b182ef13..8874dd5fe01 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_hour.rb @@ -17,9 +17,10 @@ require 'time' module DatadogAPIClient::V1 - # Number of lambda functions and sum of the invocations of all lambda functions for each hour for a given organization. + # Number of lambda functions and sum of the invocations of all lambda functions + # for each hour for a given organization. class UsageLambdaHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +67,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLambdaHour` initialize method" @@ -94,10 +96,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +137,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +145,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +251,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] value 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) @@ -264,7 +267,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 13e79bb7e65..1562d363302 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_response.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_response.rb @@ -17,9 +17,10 @@ require 'time' module DatadogAPIClient::V1 - # Response containing the number of lambda functions and sum of the invocations of all lambda functions for each hour for a given organization. + # Response containing the number of lambda functions and sum of the invocations of all lambda functions + # for each hour for a given organization. class UsageLambdaResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +57,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLambdaResponse` initialize method" @@ -78,10 +80,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +119,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +127,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +233,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] value 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) @@ -246,7 +249,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 88170f303d5..237b8f7e956 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Number of indexed logs for each hour and index for a given organization. class UsageLogsByIndexHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -76,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLogsByIndexHour` initialize method" @@ -112,10 +113,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -154,7 +156,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -162,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -268,7 +270,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] value 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) @@ -284,7 +286,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 162772d0e29..655a0bf0f81 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of indexed logs for each hour and index for a given organization. class UsageLogsByIndexResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLogsByIndexResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 465187a9b6d..d31836eed3e 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The number of indexed logs for each hour for a given organization broken down by retention period. class UsageLogsByRetentionHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -32,7 +32,7 @@ class UsageLogsByRetentionHour # Rehydrated logs indexed with this retention period during a given hour. attr_accessor :rehydrated_indexed_events_count - # The retention period in days or \"custom\" for all custom retention usage. + # The retention period in days or "custom" for all custom retention usage. attr_accessor :retention # Attribute mapping from ruby-style variable name to JSON key. @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLogsByRetentionHour` initialize method" @@ -103,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -144,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +260,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] value 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) @@ -274,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 1f789aeccdd..db4b6190ad9 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the indexed logs usage broken down by retention period for an organization during a given hour. class UsageLogsByRetentionResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLogsByRetentionResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 28b5da6b3a1..4c7bc10c6fd 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Hour usage for logs. class UsageLogsHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -91,7 +91,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLogsHour` initialize method" @@ -139,10 +140,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -184,7 +186,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -192,7 +194,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -298,7 +300,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] value 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) @@ -314,7 +316,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 5eed2bf4cf7..17d59787ddd 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_response.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of logs for each hour. class UsageLogsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLogsResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/usage_metric_category.rb b/lib/datadog_api_client/v1/models/usage_metric_category.rb index 380417dc12c..6cd34b7955b 100644 --- a/lib/datadog_api_client/v1/models/usage_metric_category.rb +++ b/lib/datadog_api_client/v1/models/usage_metric_category.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Contains the metric category. class UsageMetricCategory STANDARD = "standard".freeze CUSTOM = "custom".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 cd0945901c3..2cb3f0db0d4 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Number of netflow events indexed for each hour for a given organization. class UsageNetworkFlowsHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageNetworkFlowsHour` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 bdd33dd0dfb..e3617f4b123 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of netflow events indexed for each hour for a given organization. class UsageNetworkFlowsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageNetworkFlowsResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 c4f8378088a..50be9ebed82 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Number of active NPM hosts for each hour for a given organization. class UsageNetworkHostsHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageNetworkHostsHour` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 146b3751622..c4d82765d74 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of active NPM hosts for each hour for a given organization. class UsageNetworkHostsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageNetworkHostsResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 8def9507ad7..bab697865ac 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The number of profiled hosts for each hour for a given organization. class UsageProfilingHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -76,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageProfilingHour` initialize method" @@ -112,10 +113,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -154,7 +156,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -162,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -268,7 +270,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] value 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) @@ -284,7 +286,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 b6e4077494b..71110a8aef4 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_response.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of profiled hosts for each hour for a given organization. class UsageProfilingResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageProfilingResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/usage_reports_type.rb b/lib/datadog_api_client/v1/models/usage_reports_type.rb index fb116c2a51d..01dc0c7924b 100644 --- a/lib/datadog_api_client/v1/models/usage_reports_type.rb +++ b/lib/datadog_api_client/v1/models/usage_reports_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The type of reports. class UsageReportsType REPORTS = "reports".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 5bf677ffd62..5a93caf1603 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Number of RUM Sessions recorded for each hour for a given organization. class UsageRumSessionsHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -86,7 +86,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageRumSessionsHour` initialize method" @@ -130,10 +131,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -174,7 +176,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -182,7 +184,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -288,7 +290,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] value 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) @@ -304,7 +306,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 41627088b78..05a35578e2a 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of RUM Sessions for each hour for a given organization. class UsageRumSessionsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageRumSessionsResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 182b4e69e67..7ffdcb89912 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Number of RUM Units used for each hour for a given organization (data available as of November 1, 2021). class UsageRumUnitsHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -77,7 +77,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageRumUnitsHour` initialize method" @@ -113,10 +114,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -155,7 +157,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -163,7 +165,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -269,7 +271,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] value 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) @@ -285,7 +287,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 a73040756c4..85ddb2bb85e 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of RUM Units for each hour for a given organization. class UsageRumUnitsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageRumUnitsResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 cf6ce3e41b9..da9f92021a7 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Sensitive Data Scanner usage for a given organization for a given hour. class UsageSDSHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -76,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSDSHour` initialize method" @@ -112,10 +113,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -154,7 +156,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -162,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -268,7 +270,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] value 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) @@ -284,7 +286,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 5d70f65c43b..0ea5927c674 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_response.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the Sensitive Data Scanner usage for each hour for a given organization. class UsageSDSResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSDSResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 207193fd652..3164b0b7ef4 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The number of SNMP devices for each hour for a given organization. class UsageSNMPHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSNMPHour` initialize method" @@ -103,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -144,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +260,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] value 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) @@ -274,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 16e3a4b0d13..56038664c79 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_response.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of SNMP devices for each hour for a given organization. class UsageSNMPResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSNMPResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/usage_sort.rb b/lib/datadog_api_client/v1/models/usage_sort.rb index f443a5f3a90..d05bcc179f1 100644 --- a/lib/datadog_api_client/v1/models/usage_sort.rb +++ b/lib/datadog_api_client/v1/models/usage_sort.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The field to sort by. class UsageSort COMPUTED_ON = "computed_on".freeze SIZE = "size".freeze @@ -40,5 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/usage_sort_direction.rb b/lib/datadog_api_client/v1/models/usage_sort_direction.rb index e7dd6ecb483..4cc4db79d95 100644 --- a/lib/datadog_api_client/v1/models/usage_sort_direction.rb +++ b/lib/datadog_api_client/v1/models/usage_sort_direction.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The direction to sort by. class UsageSortDirection DESC = "desc".freeze ASC = "asc".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 a3ef7d9d561..59f516246fb 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The response containing attributes for specified custom reports. class UsageSpecifiedCustomReportsAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -81,7 +81,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsAttributes` initialize method" @@ -123,10 +124,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -166,7 +168,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -174,7 +176,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -280,7 +282,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] value 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) @@ -296,7 +298,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 a99aa97ca09..7d29df21959 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V1 # Response containing date and type for specified custom reports. class UsageSpecifiedCustomReportsData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The response containing attributes for specified custom reports. attr_accessor :attributes # The date for specified custom reports. attr_accessor :id + # The type of reports. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsData` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 2cc67606aee..4b1c4190196 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # The object containing document metadata. class UsageSpecifiedCustomReportsMeta - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The object containing page total count for specified ID. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsMeta` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 3ff7f6af561..1a51c0e5bf9 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The object containing page total count for specified ID. class UsageSpecifiedCustomReportsPage - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsPage` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 0c8f8846afa..ff830298742 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V1 # Returns available specified custom reports. class UsageSpecifiedCustomReportsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Response containing date and type for specified custom reports. attr_accessor :data + # The object containing document metadata. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsResponse` initialize method" @@ -83,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -122,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -130,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -236,7 +240,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] value 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) @@ -252,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 adc470203e0..6a3679ecad3 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response with hourly report of all data billed by Datadog all organizations. class UsageSummaryDate - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -336,7 +336,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSummaryDate` initialize method" @@ -582,10 +583,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -676,7 +678,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -684,7 +686,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -790,7 +792,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] value 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) @@ -806,7 +808,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 539dceb5c86..fc4b18f6ef4 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Global hourly report of all data billed by Datadog for a given organization. class UsageSummaryDateOrg - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -341,7 +341,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSummaryDateOrg` initialize method" @@ -589,10 +590,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -684,7 +686,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -692,7 +694,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -798,7 +800,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] value 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) @@ -814,7 +816,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 9c53d56ca4a..35470b2e4ba 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_response.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response summarizing all usage aggregated across the months in the request for all organizations, and broken down by month and by organization. class UsageSummaryResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -143,6 +143,7 @@ class UsageSummaryResponse # Shows the sum of all live logs bytes ingested over all hours in the current months for all organizations (data available as of December 1, 2020). attr_accessor :live_ingested_bytes_agg_sum + # Object containing logs usage data broken down by retention period. attr_accessor :logs_by_retention # Shows the sum of all mobile lite sessions over all hours in the current months for all organizations. @@ -380,7 +381,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSummaryResponse` initialize method" @@ -662,10 +664,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -765,7 +768,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -773,7 +776,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -879,7 +882,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] value 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) @@ -895,7 +898,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 6dfbeb83046..7c450a175f8 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Number of Synthetics API tests run for each hour for a given organization. class UsageSyntheticsAPIHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSyntheticsAPIHour` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 caa69f34435..89072b884f8 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of Synthetics API tests run for each hour for a given organization. class UsageSyntheticsAPIResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSyntheticsAPIResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 d6e0746497e..c58f50495e6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Number of Synthetics Browser tests run for each hour for a given organization. class UsageSyntheticsBrowserHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSyntheticsBrowserHour` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 abd633d2d16..3f1e4be785c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of Synthetics Browser tests run for each hour for a given organization. class UsageSyntheticsBrowserResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSyntheticsBrowserResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ffd526da4e2..5884c436902 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The number of synthetics tests run for each hour for a given organization. class UsageSyntheticsHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSyntheticsHour` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 fc976c204a1..5b4fe1bef80 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_response.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of Synthetics API tests run for each hour for a given organization. class UsageSyntheticsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSyntheticsResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 9098d11389d..b6839b90a99 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The hourly usage of timeseries. class UsageTimeseriesHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageTimeseriesHour` initialize method" @@ -103,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -144,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +260,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] value 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) @@ -274,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 8f759154227..223ea136fa3 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_response.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing hourly usage of timeseries. class UsageTimeseriesResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageTimeseriesResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 43cc414a132..7f04e9a6ade 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Number of hourly recorded custom metrics for a given organization. class UsageTopAvgMetricsHour - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class UsageTopAvgMetricsHour # Maximum number of timeseries per hour in which the metric occurs. attr_accessor :max_metric_hour + # Contains the metric category. attr_accessor :metric_category # Contains the custom metric name. @@ -70,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageTopAvgMetricsHour` initialize method" @@ -102,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -143,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -151,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -257,7 +260,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] value 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) @@ -273,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 7054bed072f..321aa98a59e 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The object containing document metadata. class UsageTopAvgMetricsMetadata - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class UsageTopAvgMetricsMetadata # The month value from the user request that contains the returned usage data. (If month was used the request) attr_accessor :month + # The metadata for the current pagination. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageTopAvgMetricsMetadata` initialize method" @@ -93,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -133,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -141,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -247,7 +250,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] value 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) @@ -263,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 93edf2e1304..e2a39d63ff7 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Response containing the number of hourly recorded custom metrics for a given organization. class UsageTopAvgMetricsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The object containing document metadata. attr_accessor :metadata # Number of hourly recorded custom metrics for a given organization. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageTopAvgMetricsResponse` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/user.rb b/lib/datadog_api_client/v1/models/user.rb index bcddea57c56..6040aa32a7f 100644 --- a/lib/datadog_api_client/v1/models/user.rb +++ b/lib/datadog_api_client/v1/models/user.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Create, edit, and disable users. class User - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). attr_accessor :access_role # The new disabled status of the user. @@ -85,7 +86,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::User` initialize method" @@ -131,10 +133,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -175,7 +178,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -183,7 +186,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -289,7 +292,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] value 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) @@ -305,7 +308,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 1b5458203e6..6c302ac212e 100644 --- a/lib/datadog_api_client/v1/models/user_disable_response.rb +++ b/lib/datadog_api_client/v1/models/user_disable_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Array of user disabled for a given organization. class UserDisableResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UserDisableResponse` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 158b7b54e11..cc9f87c9e41 100644 --- a/lib/datadog_api_client/v1/models/user_list_response.rb +++ b/lib/datadog_api_client/v1/models/user_list_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Array of Datadog users for a given organization. class UserListResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UserListResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/user_response.rb b/lib/datadog_api_client/v1/models/user_response.rb index e45087ffedb..7d01f064027 100644 --- a/lib/datadog_api_client/v1/models/user_response.rb +++ b/lib/datadog_api_client/v1/models/user_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # A Datadog User. class UserResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Create, edit, and disable users. attr_accessor :user # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UserResponse` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/webhooks_integration.rb b/lib/datadog_api_client/v1/models/webhooks_integration.rb index dc6ea27c855..4b06380ca8c 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration.rb @@ -19,19 +19,26 @@ module DatadogAPIClient::V1 # Datadog-Webhooks integration. class WebhooksIntegration - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # If `null`, uses no header. If given a JSON payload, these will be headers attached to your webhook. + # If `null`, uses no header. + # If given a JSON payload, these will be headers attached to your webhook. attr_accessor :custom_headers + # Encoding type. Can be given either `json` or `form`. attr_accessor :encode_as - # The name of the webhook. It corresponds with ``. Learn more on how to use it in [monitor notifications](https://docs.datadoghq.com/monitors/notify). + # The name of the webhook. It corresponds with ``. + # Learn more on how to use it in + # [monitor notifications](https://docs.datadoghq.com/monitors/notify). attr_accessor :name - # If `null`, uses the default payload. If given a JSON payload, the webhook returns the payload specified by the given payload. [Webhooks variable usage](https://docs.datadoghq.com/integrations/webhooks/#usage). + # If `null`, uses the default payload. + # If given a JSON payload, the webhook returns the payload + # specified by the given payload. + # [Webhooks variable usage](https://docs.datadoghq.com/integrations/webhooks/#usage). attr_accessor :payload # URL of the webhook. @@ -72,12 +79,13 @@ def self.openapi_types def self.openapi_nullable Set.new([ :'custom_headers', - :'payload', + :'payload' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WebhooksIntegration` initialize method" @@ -115,14 +123,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @url.nil? invalid_properties.push('invalid value for "url", url cannot be nil.') end @@ -167,7 +174,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -175,7 +182,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -281,7 +288,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] value 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) @@ -297,7 +304,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ab7bd3ef475..26e53784d21 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 @@ -19,11 +19,12 @@ module DatadogAPIClient::V1 # Custom variable for Webhook integration. class WebhooksIntegrationCustomVariable - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # Make custom variable is secret or not. If the custom variable is secret, the value is not returned in the response payload. + # Make custom variable is secret or not. + # If the custom variable is secret, the value is not returned in the response payload. attr_accessor :is_secret # The name of the variable. It corresponds with ``. @@ -66,7 +67,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WebhooksIntegrationCustomVariable` initialize method" @@ -94,18 +96,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @is_secret.nil? invalid_properties.push('invalid value for "is_secret", is_secret cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @value.nil? invalid_properties.push('invalid value for "value", value cannot be nil.') end @@ -149,7 +149,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -157,7 +157,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -263,7 +263,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] value 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) @@ -279,7 +279,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 8b051db754b..5bfc0857057 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 @@ -19,11 +19,12 @@ module DatadogAPIClient::V1 # Custom variable for Webhook integration. class WebhooksIntegrationCustomVariableResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # Make custom variable is secret or not. If the custom variable is secret, the value is not returned in the response payload. + # Make custom variable is secret or not. + # If the custom variable is secret, the value is not returned in the response payload. attr_accessor :is_secret # The name of the variable. It corresponds with ``. It must only contains upper-case characters, integers or underscores. @@ -66,7 +67,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WebhooksIntegrationCustomVariableResponse` initialize method" @@ -94,14 +96,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @is_secret.nil? invalid_properties.push('invalid value for "is_secret", is_secret cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end @@ -144,7 +145,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +153,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +259,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] value 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) @@ -274,7 +275,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 f62d8f9fa47..d618d1d0d8e 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 @@ -17,13 +17,16 @@ require 'time' module DatadogAPIClient::V1 - # Update request of a custom variable object. *All properties are optional.* + # Update request of a custom variable object. + # + # *All properties are optional.* class WebhooksIntegrationCustomVariableUpdateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # Make custom variable is secret or not. If the custom variable is secret, the value is not returned in the response payload. + # Make custom variable is secret or not. + # If the custom variable is secret, the value is not returned in the response payload. attr_accessor :is_secret # The name of the variable. It corresponds with ``. It must only contains upper-case characters, integers or underscores. @@ -66,7 +69,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WebhooksIntegrationCustomVariableUpdateRequest` initialize method" @@ -94,10 +98,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +139,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +147,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +253,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] value 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) @@ -264,7 +269,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/webhooks_integration_encoding.rb b/lib/datadog_api_client/v1/models/webhooks_integration_encoding.rb index 1fd700cff3e..d06a0fbd8e0 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration_encoding.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration_encoding.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Encoding type. Can be given either `json` or `form`. class WebhooksIntegrationEncoding JSON = "json".freeze FORM = "form".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 ea152a3eca0..ab673db8316 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 @@ -17,21 +17,30 @@ require 'time' module DatadogAPIClient::V1 - # Update request of a Webhooks integration object. *All properties are optional.* + # Update request of a Webhooks integration object. + # + # *All properties are optional.* class WebhooksIntegrationUpdateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # If `null`, uses no header. If given a JSON payload, these will be headers attached to your webhook. + # If `null`, uses no header. + # If given a JSON payload, these will be headers attached to your webhook. attr_accessor :custom_headers + # Encoding type. Can be given either `json` or `form`. attr_accessor :encode_as - # The name of the webhook. It corresponds with ``. Learn more on how to use it in [monitor notifications](https://docs.datadoghq.com/monitors/notify). + # The name of the webhook. It corresponds with ``. + # Learn more on how to use it in + # [monitor notifications](https://docs.datadoghq.com/monitors/notify). attr_accessor :name - # If `null`, uses the default payload. If given a JSON payload, the webhook returns the payload specified by the given payload. [Webhooks variable usage](https://docs.datadoghq.com/integrations/webhooks/#usage). + # If `null`, uses the default payload. + # If given a JSON payload, the webhook returns the payload + # specified by the given payload. + # [Webhooks variable usage](https://docs.datadoghq.com/integrations/webhooks/#usage). attr_accessor :payload # URL of the webhook. @@ -71,12 +80,13 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'payload', + :'payload' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WebhooksIntegrationUpdateRequest` initialize method" @@ -114,10 +124,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -156,7 +167,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -164,7 +175,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -270,7 +281,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] value 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) @@ -286,7 +297,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget.rb b/lib/datadog_api_client/v1/models/widget.rb index acac363ebe9..97508988de6 100644 --- a/lib/datadog_api_client/v1/models/widget.rb +++ b/lib/datadog_api_client/v1/models/widget.rb @@ -17,17 +17,24 @@ require 'time' module DatadogAPIClient::V1 - # Information about widget. **Note**: The `layout` property is required for widgets in dashboards with `free` `layout_type`. For the **new dashboard layout**, the `layout` property depends on the `reflow_type` of the dashboard. - If `reflow_type` is `fixed`, `layout` is required. - If `reflow_type` is `auto`, `layout` should not be set. + # Information about widget. + # + # **Note**: The `layout` property is required for widgets in dashboards with `free` `layout_type`. + # For the **new dashboard layout**, the `layout` property depends on the `reflow_type` of the dashboard. + # - If `reflow_type` is `fixed`, `layout` is required. + # - If `reflow_type` is `auto`, `layout` should not be set. class Widget - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # [Definition of the widget](https://docs.datadoghq.com/dashboards/widgets/). attr_accessor :definition # ID of the widget. attr_accessor :id + # The layout for a widget on a `free` or **new dashboard layout** dashboard. attr_accessor :layout # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Widget` initialize method" @@ -92,8 +100,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @definition.nil? @@ -137,7 +145,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -145,7 +153,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -251,7 +259,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] value 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) @@ -267,7 +275,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_aggregator.rb b/lib/datadog_api_client/v1/models/widget_aggregator.rb index 5fe2c3acb4f..7bc4f4f2b06 100644 --- a/lib/datadog_api_client/v1/models/widget_aggregator.rb +++ b/lib/datadog_api_client/v1/models/widget_aggregator.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Aggregator used for the request. class WidgetAggregator AVERAGE = "avg".freeze LAST = "last".freeze @@ -42,5 +43,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_axis.rb b/lib/datadog_api_client/v1/models/widget_axis.rb index fa65515b9e8..19f1651b594 100644 --- a/lib/datadog_api_client/v1/models/widget_axis.rb +++ b/lib/datadog_api_client/v1/models/widget_axis.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Axis controls for the widget. class WidgetAxis - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -76,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetAxis` initialize method" @@ -118,10 +119,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -160,7 +162,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -168,7 +170,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -274,7 +276,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] value 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) @@ -290,7 +292,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_change_type.rb b/lib/datadog_api_client/v1/models/widget_change_type.rb index 2caebf64ad5..2bf07179db0 100644 --- a/lib/datadog_api_client/v1/models/widget_change_type.rb +++ b/lib/datadog_api_client/v1/models/widget_change_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Show the absolute or the relative change. class WidgetChangeType ABSOLUTE = "absolute".freeze RELATIVE = "relative".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_color_preference.rb b/lib/datadog_api_client/v1/models/widget_color_preference.rb index b97a1a239c8..c55717eb4e6 100644 --- a/lib/datadog_api_client/v1/models/widget_color_preference.rb +++ b/lib/datadog_api_client/v1/models/widget_color_preference.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Which color to use on the widget. class WidgetColorPreference BACKGROUND = "background".freeze TEXT = "text".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_comparator.rb b/lib/datadog_api_client/v1/models/widget_comparator.rb index ddc3c548f50..5fa08f76e38 100644 --- a/lib/datadog_api_client/v1/models/widget_comparator.rb +++ b/lib/datadog_api_client/v1/models/widget_comparator.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Comparator to apply. class WidgetComparator GREATER_THAN = ">".freeze GREATER_THAN_OR_EQUAL_TO = ">=".freeze @@ -40,5 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_compare_to.rb b/lib/datadog_api_client/v1/models/widget_compare_to.rb index 4e6b8320c2e..9e860d3d7d0 100644 --- a/lib/datadog_api_client/v1/models/widget_compare_to.rb +++ b/lib/datadog_api_client/v1/models/widget_compare_to.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Timeframe used for the change comparison. class WidgetCompareTo HOUR_BEFORE = "hour_before".freeze DAY_BEFORE = "day_before".freeze @@ -40,5 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 5a4918afde4..e2aae8c7ce4 100644 --- a/lib/datadog_api_client/v1/models/widget_conditional_format.rb +++ b/lib/datadog_api_client/v1/models/widget_conditional_format.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Define a conditional format for the widget. class WidgetConditionalFormat - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Comparator to apply. attr_accessor :comparator # Color palette to apply to the background, same values available as palette. @@ -40,6 +41,7 @@ class WidgetConditionalFormat # Metric from the request to correlate this conditional format with. attr_accessor :metric + # Color palette to apply. attr_accessor :palette # Defines the displayed timeframe. @@ -94,7 +96,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetConditionalFormat` initialize method" @@ -146,18 +149,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @comparator.nil? invalid_properties.push('invalid value for "comparator", comparator cannot be nil.') end - if @palette.nil? invalid_properties.push('invalid value for "palette", palette cannot be nil.') end - if @value.nil? invalid_properties.push('invalid value for "value", value cannot be nil.') end @@ -207,7 +208,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -215,7 +216,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -321,7 +322,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] value 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) @@ -337,7 +338,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 cc8770f4562..45856178864 100644 --- a/lib/datadog_api_client/v1/models/widget_custom_link.rb +++ b/lib/datadog_api_client/v1/models/widget_custom_link.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Custom links help you connect a data value to a URL, like a Datadog page or your AWS console. class WidgetCustomLink - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetCustomLink` initialize method" @@ -103,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -144,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +260,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] value 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) @@ -274,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_definition.rb b/lib/datadog_api_client/v1/models/widget_definition.rb index 3120209fa07..49fdc3f7072 100644 --- a/lib/datadog_api_client/v1/models/widget_definition.rb +++ b/lib/datadog_api_client/v1/models/widget_definition.rb @@ -33,30 +33,29 @@ def openapi_one_of :'EventStreamWidgetDefinition', :'EventTimelineWidgetDefinition', :'FreeTextWidgetDefinition', - :'FunnelWidgetDefinition', :'GeomapWidgetDefinition', :'GroupWidgetDefinition', :'HeatMapWidgetDefinition', :'HostMapWidgetDefinition', :'IFrameWidgetDefinition', :'ImageWidgetDefinition', - :'ListStreamWidgetDefinition', :'LogStreamWidgetDefinition', :'MonitorSummaryWidgetDefinition', :'NoteWidgetDefinition', :'QueryValueWidgetDefinition', - :'SLOWidgetDefinition', :'ScatterPlotWidgetDefinition', + :'SLOWidgetDefinition', :'ServiceMapWidgetDefinition', :'ServiceSummaryWidgetDefinition', :'SunburstWidgetDefinition', :'TableWidgetDefinition', :'TimeseriesWidgetDefinition', :'ToplistWidgetDefinition', - :'TreeMapWidgetDefinition' + :'TreeMapWidgetDefinition', + :'ListStreamWidgetDefinition', + :'FunnelWidgetDefinition' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -84,7 +83,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V1::UnparsedObject.new(data) end - end private @@ -142,4 +140,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_display_type.rb b/lib/datadog_api_client/v1/models/widget_display_type.rb index b2bba3fa98f..453e51f976c 100644 --- a/lib/datadog_api_client/v1/models/widget_display_type.rb +++ b/lib/datadog_api_client/v1/models/widget_display_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of display to use for the request. class WidgetDisplayType AREA = "area".freeze BARS = "bars".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_event.rb b/lib/datadog_api_client/v1/models/widget_event.rb index 031dfeb8d67..7636f1ec6b2 100644 --- a/lib/datadog_api_client/v1/models/widget_event.rb +++ b/lib/datadog_api_client/v1/models/widget_event.rb @@ -17,9 +17,12 @@ require 'time' module DatadogAPIClient::V1 - # Event overlay control options. See the dedicated [Events JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/widget_json/#events-schema) to learn how to build the ``. + # Event overlay control options. + # + # See the dedicated [Events JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/widget_json/#events-schema) + # to learn how to build the ``. class WidgetEvent - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +64,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetEvent` initialize method" @@ -85,8 +89,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @q.nil? @@ -129,7 +133,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -137,7 +141,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -243,7 +247,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] value 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) @@ -259,7 +263,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_event_size.rb b/lib/datadog_api_client/v1/models/widget_event_size.rb index c8e5f593bdd..349df34aa44 100644 --- a/lib/datadog_api_client/v1/models/widget_event_size.rb +++ b/lib/datadog_api_client/v1/models/widget_event_size.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Size to use to display an event. class WidgetEventSize SMALL = "s".freeze LARGE = "l".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 8152eda201e..50eece17152 100644 --- a/lib/datadog_api_client/v1/models/widget_field_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_field_sort.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # Which column and order to sort by class WidgetFieldSort - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Facet path for the column attr_accessor :column + # Widget sorting methods. attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetFieldSort` initialize method" @@ -84,14 +86,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @column.nil? invalid_properties.push('invalid value for "column", column cannot be nil.') end - if @order.nil? invalid_properties.push('invalid value for "order", order cannot be nil.') end @@ -133,7 +134,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -141,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -247,7 +248,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] value 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) @@ -263,7 +264,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_formula.rb b/lib/datadog_api_client/v1/models/widget_formula.rb index 70ff79eaf34..b9ea58d85c2 100644 --- a/lib/datadog_api_client/v1/models/widget_formula.rb +++ b/lib/datadog_api_client/v1/models/widget_formula.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # Formula to be used in a widget query. class WidgetFormula - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Expression alias. attr_accessor :_alias + # Define a display mode for the table cell. attr_accessor :cell_display_mode # List of conditional formats. @@ -34,6 +35,7 @@ class WidgetFormula # String expression built from queries, formulas, and functions. attr_accessor :formula + # Options for limiting results returned. attr_accessor :limit # Attribute mapping from ruby-style variable name to JSON key. @@ -74,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetFormula` initialize method" @@ -112,8 +115,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @formula.nil? @@ -159,7 +162,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -167,7 +170,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -273,7 +276,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] value 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) @@ -289,7 +292,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 2502cc61343..002b0542ac9 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_limit.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_limit.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V1 # Options for limiting results returned. class WidgetFormulaLimit - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Number of results to return. attr_accessor :count + # Direction of sort. attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetFormulaLimit` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_grouping.rb b/lib/datadog_api_client/v1/models/widget_grouping.rb index 7f180a0f9fa..5a69221618b 100644 --- a/lib/datadog_api_client/v1/models/widget_grouping.rb +++ b/lib/datadog_api_client/v1/models/widget_grouping.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The kind of grouping to use. class WidgetGrouping CHECK = "check".freeze CLUSTER = "cluster".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_horizontal_align.rb b/lib/datadog_api_client/v1/models/widget_horizontal_align.rb index 51f42f5b23c..05dcde0748a 100644 --- a/lib/datadog_api_client/v1/models/widget_horizontal_align.rb +++ b/lib/datadog_api_client/v1/models/widget_horizontal_align.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Horizontal alignment. class WidgetHorizontalAlign CENTER = "center".freeze LEFT = "left".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_image_sizing.rb b/lib/datadog_api_client/v1/models/widget_image_sizing.rb index 04f7a1ef63d..96fcf921a2a 100644 --- a/lib/datadog_api_client/v1/models/widget_image_sizing.rb +++ b/lib/datadog_api_client/v1/models/widget_image_sizing.rb @@ -17,6 +17,8 @@ require 'time' module DatadogAPIClient::V1 + # How to size the image on the widget. The values are based on the image `object-fit` CSS properties. + # **Note**: `zoom`, `fit` and `center` values are deprecated. class WidgetImageSizing FILL = "fill".freeze CONTAIN = "contain".freeze @@ -44,5 +46,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_layout.rb b/lib/datadog_api_client/v1/models/widget_layout.rb index c740ea9ac2c..7b548dac7ef 100644 --- a/lib/datadog_api_client/v1/models/widget_layout.rb +++ b/lib/datadog_api_client/v1/models/widget_layout.rb @@ -19,14 +19,15 @@ module DatadogAPIClient::V1 # The layout for a widget on a `free` or **new dashboard layout** dashboard. class WidgetLayout - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # The height of the widget. Should be a non-negative integer. attr_accessor :height - # Whether the widget should be the first one on the second column in high density or not. **Note**: Only for the **new dashboard layout** and only one widget in the dashboard should have this property set to `true`. + # Whether the widget should be the first one on the second column in high density or not. + # **Note**: Only for the **new dashboard layout** and only one widget in the dashboard should have this property set to `true`. attr_accessor :is_column_break # The width of the widget. Should be a non-negative integer. @@ -76,7 +77,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetLayout` initialize method" @@ -112,42 +114,23 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @height.nil? invalid_properties.push('invalid value for "height", height cannot be nil.') end - - if @height < 0 - invalid_properties.push('invalid value for "height", must be greater than or equal to 0.') - end - if @width.nil? invalid_properties.push('invalid value for "width", width cannot be nil.') end - - if @width < 0 - invalid_properties.push('invalid value for "width", must be greater than or equal to 0.') - end - if @x.nil? invalid_properties.push('invalid value for "x", x cannot be nil.') end - - if @x < 0 - invalid_properties.push('invalid value for "x", must be greater than or equal to 0.') - end - if @y.nil? invalid_properties.push('invalid value for "y", y cannot be nil.') end - if @y < 0 - invalid_properties.push('invalid value for "y", must be greater than or equal to 0.') - end - invalid_properties end @@ -156,72 +139,12 @@ def list_invalid_properties # @!visibility private def valid? return false if @height.nil? - return false if @height < 0 return false if @width.nil? - return false if @width < 0 return false if @x.nil? - return false if @x < 0 return false if @y.nil? - return false if @y < 0 true end - # Custom attribute writer method with validation - # @param height [Object] height Value to be assigned - def height=(height) - if height.nil? - fail ArgumentError, 'height cannot be nil' - end - - if height < 0 - fail ArgumentError, 'invalid value for "height", must be greater than or equal to 0.' - end - - @height = height - end - - # Custom attribute writer method with validation - # @param width [Object] width Value to be assigned - def width=(width) - if width.nil? - fail ArgumentError, 'width cannot be nil' - end - - if width < 0 - fail ArgumentError, 'invalid value for "width", must be greater than or equal to 0.' - end - - @width = width - end - - # Custom attribute writer method with validation - # @param x [Object] x Value to be assigned - def x=(x) - if x.nil? - fail ArgumentError, 'x cannot be nil' - end - - if x < 0 - fail ArgumentError, 'invalid value for "x", must be greater than or equal to 0.' - end - - @x = x - end - - # Custom attribute writer method with validation - # @param y [Object] y Value to be assigned - def y=(y) - if y.nil? - fail ArgumentError, 'y cannot be nil' - end - - if y < 0 - fail ArgumentError, 'invalid value for "y", must be greater than or equal to 0.' - end - - @y = y - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -250,7 +173,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -258,7 +181,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -364,7 +287,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] value 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) @@ -380,7 +303,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_layout_type.rb b/lib/datadog_api_client/v1/models/widget_layout_type.rb index f9109ef83e7..eeea67bdb0f 100644 --- a/lib/datadog_api_client/v1/models/widget_layout_type.rb +++ b/lib/datadog_api_client/v1/models/widget_layout_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Layout type of the group. class WidgetLayoutType ORDERED = "ordered".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_line_type.rb b/lib/datadog_api_client/v1/models/widget_line_type.rb index 0467322c122..88728d35194 100644 --- a/lib/datadog_api_client/v1/models/widget_line_type.rb +++ b/lib/datadog_api_client/v1/models/widget_line_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Type of lines displayed. class WidgetLineType DASHED = "dashed".freeze DOTTED = "dotted".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_line_width.rb b/lib/datadog_api_client/v1/models/widget_line_width.rb index 96c1b869aae..ac0e4f6df6b 100644 --- a/lib/datadog_api_client/v1/models/widget_line_width.rb +++ b/lib/datadog_api_client/v1/models/widget_line_width.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Width of line displayed. class WidgetLineWidth NORMAL = "normal".freeze THICK = "thick".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_live_span.rb b/lib/datadog_api_client/v1/models/widget_live_span.rb index 8c641ee2dd3..3b4c8ae3a20 100644 --- a/lib/datadog_api_client/v1/models/widget_live_span.rb +++ b/lib/datadog_api_client/v1/models/widget_live_span.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # The available timeframes depend on the widget you are using. class WidgetLiveSpan PAST_ONE_MINUTE = "1m".freeze PAST_FIVE_MINUTES = "5m".freeze @@ -51,5 +52,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_margin.rb b/lib/datadog_api_client/v1/models/widget_margin.rb index 802a00ba8db..135e90f91a9 100644 --- a/lib/datadog_api_client/v1/models/widget_margin.rb +++ b/lib/datadog_api_client/v1/models/widget_margin.rb @@ -17,6 +17,8 @@ require 'time' module DatadogAPIClient::V1 + # Size of the margins around the image. + # **Note**: `small` and `large` values are deprecated. class WidgetMargin SM = "sm".freeze MD = "md".freeze @@ -41,5 +43,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_marker.rb b/lib/datadog_api_client/v1/models/widget_marker.rb index 6a0a2de1aae..3daf5ee5ce5 100644 --- a/lib/datadog_api_client/v1/models/widget_marker.rb +++ b/lib/datadog_api_client/v1/models/widget_marker.rb @@ -19,11 +19,15 @@ module DatadogAPIClient::V1 # Markers allow you to add visual conditional formatting for your graphs. class WidgetMarker - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # Combination of: - A severity error, warning, ok, or info - A line type: dashed, solid, or bold In this case of a Distribution widget, this can be set to be `x_axis_percentile`. + # Combination of: + # - A severity error, warning, ok, or info + # - A line type: dashed, solid, or bold + # In this case of a Distribution widget, this can be set to be `x_axis_percentile`. + # attr_accessor :display_type # Label to display over the marker. @@ -71,7 +75,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetMarker` initialize method" @@ -103,8 +108,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @value.nil? @@ -149,7 +154,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -157,7 +162,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -263,7 +268,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] value 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) @@ -279,7 +284,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_message_display.rb b/lib/datadog_api_client/v1/models/widget_message_display.rb index d070eeb1c3a..ad91b8bd753 100644 --- a/lib/datadog_api_client/v1/models/widget_message_display.rb +++ b/lib/datadog_api_client/v1/models/widget_message_display.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Amount of log lines to display class WidgetMessageDisplay INLINE = "inline".freeze EXPANDED_MEDIUM = "expanded-md".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_monitor_summary_display_format.rb b/lib/datadog_api_client/v1/models/widget_monitor_summary_display_format.rb index d493cc6d9dc..fc61ed1d47b 100644 --- a/lib/datadog_api_client/v1/models/widget_monitor_summary_display_format.rb +++ b/lib/datadog_api_client/v1/models/widget_monitor_summary_display_format.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # What to display on the widget. class WidgetMonitorSummaryDisplayFormat COUNTS = "counts".freeze COUNTS_AND_LIST = "countsAndList".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb b/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb index 80499a2b992..a10197dee31 100644 --- a/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Widget sorting methods. class WidgetMonitorSummarySort NAME = "name".freeze GROUP = "group".freeze @@ -51,5 +52,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_node_type.rb b/lib/datadog_api_client/v1/models/widget_node_type.rb index b119cbae9e0..d17737fd489 100644 --- a/lib/datadog_api_client/v1/models/widget_node_type.rb +++ b/lib/datadog_api_client/v1/models/widget_node_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Which type of node to use in the map. class WidgetNodeType HOST = "host".freeze CONTAINER = "container".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_order_by.rb b/lib/datadog_api_client/v1/models/widget_order_by.rb index e601784652f..6a0ca881d42 100644 --- a/lib/datadog_api_client/v1/models/widget_order_by.rb +++ b/lib/datadog_api_client/v1/models/widget_order_by.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # What to order by. class WidgetOrderBy CHANGE = "change".freeze NAME = "name".freeze @@ -40,5 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_palette.rb b/lib/datadog_api_client/v1/models/widget_palette.rb index 6a438ad49cb..b8433e444eb 100644 --- a/lib/datadog_api_client/v1/models/widget_palette.rb +++ b/lib/datadog_api_client/v1/models/widget_palette.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Color palette to apply. class WidgetPalette BLUE = "blue".freeze CUSTOM_BACKGROUND = "custom_bg".freeze @@ -55,5 +56,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 858950be682..2db3c32c045 100644 --- a/lib/datadog_api_client/v1/models/widget_request_style.rb +++ b/lib/datadog_api_client/v1/models/widget_request_style.rb @@ -19,12 +19,14 @@ module DatadogAPIClient::V1 # Define request widget style. class WidgetRequestStyle - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Type of lines displayed. attr_accessor :line_type + # Width of line displayed. attr_accessor :line_width # Color palette to apply to the widget. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetRequestStyle` initialize method" @@ -92,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -132,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -140,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -246,7 +250,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] value 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) @@ -262,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_service_summary_display_format.rb b/lib/datadog_api_client/v1/models/widget_service_summary_display_format.rb index e872525ad95..788a4bf7f04 100644 --- a/lib/datadog_api_client/v1/models/widget_service_summary_display_format.rb +++ b/lib/datadog_api_client/v1/models/widget_service_summary_display_format.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Number of columns to display. class WidgetServiceSummaryDisplayFormat ONE_COLUMN = "one_column".freeze TWO_COLUMN = "two_column".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_size_format.rb b/lib/datadog_api_client/v1/models/widget_size_format.rb index 614b7c0ab82..605130c05fd 100644 --- a/lib/datadog_api_client/v1/models/widget_size_format.rb +++ b/lib/datadog_api_client/v1/models/widget_size_format.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Size of the widget. class WidgetSizeFormat SMALL = "small".freeze MEDIUM = "medium".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_sort.rb b/lib/datadog_api_client/v1/models/widget_sort.rb index 809b3f18274..9bcadd74862 100644 --- a/lib/datadog_api_client/v1/models/widget_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_sort.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Widget sorting methods. class WidgetSort ASCENDING = "asc".freeze DESCENDING = "desc".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_style.rb b/lib/datadog_api_client/v1/models/widget_style.rb index 1c3bb598452..e287b0db4b2 100644 --- a/lib/datadog_api_client/v1/models/widget_style.rb +++ b/lib/datadog_api_client/v1/models/widget_style.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Widget style definition. class WidgetStyle - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetStyle` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_summary_type.rb b/lib/datadog_api_client/v1/models/widget_summary_type.rb index 8f491b81340..af85b279bcc 100644 --- a/lib/datadog_api_client/v1/models/widget_summary_type.rb +++ b/lib/datadog_api_client/v1/models/widget_summary_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Which summary type should be used. class WidgetSummaryType MONITORS = "monitors".freeze GROUPS = "groups".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_text_align.rb b/lib/datadog_api_client/v1/models/widget_text_align.rb index dc4b796746c..7f300624e7a 100644 --- a/lib/datadog_api_client/v1/models/widget_text_align.rb +++ b/lib/datadog_api_client/v1/models/widget_text_align.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # How to align the text on the widget. class WidgetTextAlign CENTER = "center".freeze LEFT = "left".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_tick_edge.rb b/lib/datadog_api_client/v1/models/widget_tick_edge.rb index 0200ac66762..4395222c79e 100644 --- a/lib/datadog_api_client/v1/models/widget_tick_edge.rb +++ b/lib/datadog_api_client/v1/models/widget_tick_edge.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Define how you want to align the text on the widget. class WidgetTickEdge BOTTOM = "bottom".freeze LEFT = "left".freeze @@ -40,5 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_time.rb b/lib/datadog_api_client/v1/models/widget_time.rb index ff3607b637f..21e1f7c7192 100644 --- a/lib/datadog_api_client/v1/models/widget_time.rb +++ b/lib/datadog_api_client/v1/models/widget_time.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V1 # Time setting for the widget. class WidgetTime - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The available timeframes depend on the widget you are using. attr_accessor :live_span # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetTime` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_time_windows.rb b/lib/datadog_api_client/v1/models/widget_time_windows.rb index d64beecd9b4..a74f201d41b 100644 --- a/lib/datadog_api_client/v1/models/widget_time_windows.rb +++ b/lib/datadog_api_client/v1/models/widget_time_windows.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Define a time window. class WidgetTimeWindows SEVEN_DAYS = "7d".freeze THIRTY_DAYS = "30d".freeze @@ -44,5 +45,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_vertical_align.rb b/lib/datadog_api_client/v1/models/widget_vertical_align.rb index 28769b140a0..a8305658570 100644 --- a/lib/datadog_api_client/v1/models/widget_vertical_align.rb +++ b/lib/datadog_api_client/v1/models/widget_vertical_align.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Vertical alignment. class WidgetVerticalAlign CENTER = "center".freeze TOP = "top".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_view_mode.rb b/lib/datadog_api_client/v1/models/widget_view_mode.rb index d86804ff050..911e4df1257 100644 --- a/lib/datadog_api_client/v1/models/widget_view_mode.rb +++ b/lib/datadog_api_client/v1/models/widget_view_mode.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Define how you want the SLO to be displayed. class WidgetViewMode OVERALL = "overall".freeze COMPONENT = "component".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/widget_viz_type.rb b/lib/datadog_api_client/v1/models/widget_viz_type.rb index 8ec310359c1..8b5e660c742 100644 --- a/lib/datadog_api_client/v1/models/widget_viz_type.rb +++ b/lib/datadog_api_client/v1/models/widget_viz_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V1 + # Whether to display the Alert Graph as a timeseries or a top list. class WidgetVizType TIMESERIES = "timeseries".freeze TOPLIST = "toplist".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2.rb b/lib/datadog_api_client/v2.rb index 4f24764f04d..c60e6e05386 100644 --- a/lib/datadog_api_client/v2.rb +++ b/lib/datadog_api_client/v2.rb @@ -27,23 +27,23 @@ require 'datadog_api_client/v2/models/api_key_relationships' require 'datadog_api_client/v2/models/api_key_response' require 'datadog_api_client/v2/models/api_key_response_included_item' -require 'datadog_api_client/v2/models/api_key_update_attributes' -require 'datadog_api_client/v2/models/api_key_update_data' -require 'datadog_api_client/v2/models/api_key_update_request' require 'datadog_api_client/v2/models/api_keys_response' require 'datadog_api_client/v2/models/api_keys_sort' require 'datadog_api_client/v2/models/api_keys_type' +require 'datadog_api_client/v2/models/api_key_update_attributes' +require 'datadog_api_client/v2/models/api_key_update_data' +require 'datadog_api_client/v2/models/api_key_update_request' require 'datadog_api_client/v2/models/application_key_create_attributes' require 'datadog_api_client/v2/models/application_key_create_data' require 'datadog_api_client/v2/models/application_key_create_request' require 'datadog_api_client/v2/models/application_key_relationships' require 'datadog_api_client/v2/models/application_key_response' require 'datadog_api_client/v2/models/application_key_response_included_item' +require 'datadog_api_client/v2/models/application_keys_sort' +require 'datadog_api_client/v2/models/application_keys_type' require 'datadog_api_client/v2/models/application_key_update_attributes' require 'datadog_api_client/v2/models/application_key_update_data' require 'datadog_api_client/v2/models/application_key_update_request' -require 'datadog_api_client/v2/models/application_keys_sort' -require 'datadog_api_client/v2/models/application_keys_type' require 'datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes' require 'datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes' require 'datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data' @@ -51,12 +51,12 @@ require 'datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes' require 'datadog_api_client/v2/models/cloud_workload_security_agent_rule_data' require 'datadog_api_client/v2/models/cloud_workload_security_agent_rule_response' +require 'datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response' require 'datadog_api_client/v2/models/cloud_workload_security_agent_rule_type' require 'datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes' require 'datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data' -require 'datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request' require 'datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes' -require 'datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response' +require 'datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request' require 'datadog_api_client/v2/models/content_encoding' require 'datadog_api_client/v2/models/creator' require 'datadog_api_client/v2/models/dashboard_list_add_items_request' @@ -103,13 +103,16 @@ require 'datadog_api_client/v2/models/incident_service_response' require 'datadog_api_client/v2/models/incident_service_response_attributes' require 'datadog_api_client/v2/models/incident_service_response_data' +require 'datadog_api_client/v2/models/incident_services_response' +require 'datadog_api_client/v2/models/incident_services_response_meta' +require 'datadog_api_client/v2/models/incident_services_response_meta_pagination' require 'datadog_api_client/v2/models/incident_service_type' require 'datadog_api_client/v2/models/incident_service_update_attributes' require 'datadog_api_client/v2/models/incident_service_update_data' require 'datadog_api_client/v2/models/incident_service_update_request' -require 'datadog_api_client/v2/models/incident_services_response' -require 'datadog_api_client/v2/models/incident_services_response_meta' -require 'datadog_api_client/v2/models/incident_services_response_meta_pagination' +require 'datadog_api_client/v2/models/incidents_response' +require 'datadog_api_client/v2/models/incidents_response_meta' +require 'datadog_api_client/v2/models/incidents_response_meta_pagination' require 'datadog_api_client/v2/models/incident_team_create_attributes' require 'datadog_api_client/v2/models/incident_team_create_data' require 'datadog_api_client/v2/models/incident_team_create_request' @@ -118,11 +121,13 @@ require 'datadog_api_client/v2/models/incident_team_response' require 'datadog_api_client/v2/models/incident_team_response_attributes' require 'datadog_api_client/v2/models/incident_team_response_data' +require 'datadog_api_client/v2/models/incident_teams_response' +require 'datadog_api_client/v2/models/incident_teams_response_meta' +require 'datadog_api_client/v2/models/incident_teams_response_meta_pagination' require 'datadog_api_client/v2/models/incident_team_type' require 'datadog_api_client/v2/models/incident_team_update_attributes' require 'datadog_api_client/v2/models/incident_team_update_data' require 'datadog_api_client/v2/models/incident_team_update_request' -require 'datadog_api_client/v2/models/incident_teams_response' require 'datadog_api_client/v2/models/incident_timeline_cell_create_attributes' require 'datadog_api_client/v2/models/incident_timeline_cell_markdown_content_type' require 'datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes' @@ -132,11 +137,9 @@ require 'datadog_api_client/v2/models/incident_update_data' require 'datadog_api_client/v2/models/incident_update_relationships' require 'datadog_api_client/v2/models/incident_update_request' -require 'datadog_api_client/v2/models/incidents_response' require 'datadog_api_client/v2/models/list_application_keys_response' require 'datadog_api_client/v2/models/log' require 'datadog_api_client/v2/models/log_attributes' -require 'datadog_api_client/v2/models/log_type' require 'datadog_api_client/v2/models/logs_aggregate_bucket' require 'datadog_api_client/v2/models/logs_aggregate_bucket_value' require 'datadog_api_client/v2/models/logs_aggregate_bucket_value_timeseries_point' @@ -169,8 +172,8 @@ require 'datadog_api_client/v2/models/logs_archive_order_attributes' require 'datadog_api_client/v2/models/logs_archive_order_definition' require 'datadog_api_client/v2/models/logs_archive_order_definition_type' -require 'datadog_api_client/v2/models/logs_archive_state' require 'datadog_api_client/v2/models/logs_archives' +require 'datadog_api_client/v2/models/logs_archive_state' require 'datadog_api_client/v2/models/logs_compute' require 'datadog_api_client/v2/models/logs_compute_type' require 'datadog_api_client/v2/models/logs_group_by' @@ -195,11 +198,11 @@ require 'datadog_api_client/v2/models/logs_metric_response_data' require 'datadog_api_client/v2/models/logs_metric_response_filter' require 'datadog_api_client/v2/models/logs_metric_response_group_by' +require 'datadog_api_client/v2/models/logs_metrics_response' require 'datadog_api_client/v2/models/logs_metric_type' require 'datadog_api_client/v2/models/logs_metric_update_attributes' require 'datadog_api_client/v2/models/logs_metric_update_data' require 'datadog_api_client/v2/models/logs_metric_update_request' -require 'datadog_api_client/v2/models/logs_metrics_response' require 'datadog_api_client/v2/models/logs_query_filter' require 'datadog_api_client/v2/models/logs_query_options' require 'datadog_api_client/v2/models/logs_response_metadata' @@ -207,6 +210,7 @@ require 'datadog_api_client/v2/models/logs_sort' require 'datadog_api_client/v2/models/logs_sort_order' require 'datadog_api_client/v2/models/logs_warning' +require 'datadog_api_client/v2/models/log_type' require 'datadog_api_client/v2/models/metric' require 'datadog_api_client/v2/models/metric_all_tags' require 'datadog_api_client/v2/models/metric_all_tags_attributes' @@ -220,6 +224,8 @@ require 'datadog_api_client/v2/models/metric_ingested_indexed_volume' require 'datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes' require 'datadog_api_client/v2/models/metric_ingested_indexed_volume_type' +require 'datadog_api_client/v2/models/metrics_and_metric_tag_configurations' +require 'datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response' require 'datadog_api_client/v2/models/metric_tag_configuration' require 'datadog_api_client/v2/models/metric_tag_configuration_attributes' require 'datadog_api_client/v2/models/metric_tag_configuration_create_attributes' @@ -234,8 +240,6 @@ require 'datadog_api_client/v2/models/metric_type' require 'datadog_api_client/v2/models/metric_volumes' require 'datadog_api_client/v2/models/metric_volumes_response' -require 'datadog_api_client/v2/models/metrics_and_metric_tag_configurations' -require 'datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response' require 'datadog_api_client/v2/models/organization' require 'datadog_api_client/v2/models/organization_attributes' require 'datadog_api_client/v2/models/organizations_type' @@ -286,14 +290,14 @@ require 'datadog_api_client/v2/models/role_relationships' require 'datadog_api_client/v2/models/role_response' require 'datadog_api_client/v2/models/role_response_relationships' +require 'datadog_api_client/v2/models/roles_response' +require 'datadog_api_client/v2/models/roles_sort' +require 'datadog_api_client/v2/models/roles_type' require 'datadog_api_client/v2/models/role_update_attributes' require 'datadog_api_client/v2/models/role_update_data' require 'datadog_api_client/v2/models/role_update_request' require 'datadog_api_client/v2/models/role_update_response' require 'datadog_api_client/v2/models/role_update_response_data' -require 'datadog_api_client/v2/models/roles_response' -require 'datadog_api_client/v2/models/roles_sort' -require 'datadog_api_client/v2/models/roles_type' require 'datadog_api_client/v2/models/security_filter' require 'datadog_api_client/v2/models/security_filter_attributes' require 'datadog_api_client/v2/models/security_filter_create_attributes' @@ -304,11 +308,11 @@ require 'datadog_api_client/v2/models/security_filter_filtered_data_type' require 'datadog_api_client/v2/models/security_filter_meta' require 'datadog_api_client/v2/models/security_filter_response' +require 'datadog_api_client/v2/models/security_filters_response' require 'datadog_api_client/v2/models/security_filter_type' require 'datadog_api_client/v2/models/security_filter_update_attributes' require 'datadog_api_client/v2/models/security_filter_update_data' require 'datadog_api_client/v2/models/security_filter_update_request' -require 'datadog_api_client/v2/models/security_filters_response' require 'datadog_api_client/v2/models/security_monitoring_filter' require 'datadog_api_client/v2/models/security_monitoring_filter_action' require 'datadog_api_client/v2/models/security_monitoring_list_rules_response' @@ -336,12 +340,12 @@ require 'datadog_api_client/v2/models/security_monitoring_signal_list_request' require 'datadog_api_client/v2/models/security_monitoring_signal_list_request_filter' require 'datadog_api_client/v2/models/security_monitoring_signal_list_request_page' -require 'datadog_api_client/v2/models/security_monitoring_signal_type' require 'datadog_api_client/v2/models/security_monitoring_signals_list_response' require 'datadog_api_client/v2/models/security_monitoring_signals_list_response_links' require 'datadog_api_client/v2/models/security_monitoring_signals_list_response_meta' require 'datadog_api_client/v2/models/security_monitoring_signals_list_response_meta_page' require 'datadog_api_client/v2/models/security_monitoring_signals_sort' +require 'datadog_api_client/v2/models/security_monitoring_signal_type' require 'datadog_api_client/v2/models/service_account_create_attributes' require 'datadog_api_client/v2/models/service_account_create_data' require 'datadog_api_client/v2/models/service_account_create_request' @@ -362,11 +366,11 @@ require 'datadog_api_client/v2/models/user_response' require 'datadog_api_client/v2/models/user_response_included_item' require 'datadog_api_client/v2/models/user_response_relationships' +require 'datadog_api_client/v2/models/users_response' +require 'datadog_api_client/v2/models/users_type' require 'datadog_api_client/v2/models/user_update_attributes' require 'datadog_api_client/v2/models/user_update_data' require 'datadog_api_client/v2/models/user_update_request' -require 'datadog_api_client/v2/models/users_response' -require 'datadog_api_client/v2/models/users_type' # APIs require 'datadog_api_client/v2/api/cloud_workload_security_api' @@ -401,4 +405,4 @@ def configure end end end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb b/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb index e456e6c674b..57f21818508 100644 --- a/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb +++ b/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb @@ -22,6 +22,7 @@ class CloudWorkloadSecurityAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create a Cloud Workload Security Agent rule # Create a new Agent rule with the given parameters. # @param body [CloudWorkloadSecurityAgentRuleCreateRequest] The definition of the new Agent rule. @@ -131,7 +132,7 @@ def delete_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts fail ArgumentError, "Missing the required parameter 'agent_rule_id' when calling CloudWorkloadSecurityAPI.delete_cloud_workload_security_agent_rule" end # resource path - local_var_path = '/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}'.sub('{' + 'agent_rule_id' + '}', CGI.escape(agent_rule_id.to_s)) + local_var_path = '/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}'.sub('{agent_rule_id}', CGI.escape(agent_rule_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -139,7 +140,7 @@ def delete_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -171,7 +172,9 @@ def delete_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts end # Get the latest Cloud Workload Security policy - # The download endpoint generates a Cloud Workload Security policy file from your currently active Cloud Workload Security rules, and downloads them as a .policy file. This file can then be deployed to your agents to update the policy running in your environment. + # The download endpoint generates a Cloud Workload Security policy file from your currently active + # Cloud Workload Security rules, and downloads them as a .policy file. This file can then be deployed to + # your agents to update the policy running in your environment. # @param [Hash] opts the optional parameters # @return [File] def download_cloud_workload_policy_file(opts = {}) @@ -180,7 +183,9 @@ def download_cloud_workload_policy_file(opts = {}) end # Get the latest Cloud Workload Security policy - # The download endpoint generates a Cloud Workload Security policy file from your currently active Cloud Workload Security rules, and downloads them as a .policy file. This file can then be deployed to your agents to update the policy running in your environment. + # The download endpoint generates a Cloud Workload Security policy file from your currently active + # Cloud Workload Security rules, and downloads them as a .policy file. This file can then be deployed to + # your agents to update the policy running in your environment. # @param [Hash] opts the optional parameters # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers def download_cloud_workload_policy_file_with_http_info(opts = {}) @@ -218,7 +223,7 @@ def download_cloud_workload_policy_file_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'File' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :download_cloud_workload_policy_file, @@ -271,7 +276,7 @@ def get_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts = fail ArgumentError, "Missing the required parameter 'agent_rule_id' when calling CloudWorkloadSecurityAPI.get_cloud_workload_security_agent_rule" end # resource path - local_var_path = '/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}'.sub('{' + 'agent_rule_id' + '}', CGI.escape(agent_rule_id.to_s)) + local_var_path = '/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}'.sub('{agent_rule_id}', CGI.escape(agent_rule_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -378,7 +383,8 @@ def list_cloud_workload_security_agent_rules_with_http_info(opts = {}) end # Update a Cloud Workload Security Agent rule - # Update a specific Agent rule. Returns the Agent rule object when the request is successful. + # Update a specific Agent rule. + # Returns the Agent rule object when the request is successful. # @param agent_rule_id [String] The ID of the Agent rule. # @param body [CloudWorkloadSecurityAgentRuleUpdateRequest] New definition of the Agent rule. # @param [Hash] opts the optional parameters @@ -389,7 +395,8 @@ def update_cloud_workload_security_agent_rule(agent_rule_id, body, opts = {}) end # Update a Cloud Workload Security Agent rule - # Update a specific Agent rule. Returns the Agent rule object when the request is successful. + # Update a specific Agent rule. + # Returns the Agent rule object when the request is successful. # @param agent_rule_id [String] The ID of the Agent rule. # @param body [CloudWorkloadSecurityAgentRuleUpdateRequest] New definition of the Agent rule. # @param [Hash] opts the optional parameters @@ -417,7 +424,7 @@ def update_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, body fail ArgumentError, "Missing the required parameter 'body' when calling CloudWorkloadSecurityAPI.update_cloud_workload_security_agent_rule" end # resource path - local_var_path = '/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}'.sub('{' + 'agent_rule_id' + '}', CGI.escape(agent_rule_id.to_s)) + local_var_path = '/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}'.sub('{agent_rule_id}', CGI.escape(agent_rule_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/datadog_api_client/v2/api/dashboard_lists_api.rb b/lib/datadog_api_client/v2/api/dashboard_lists_api.rb index ba9b98b76b2..d062065fdb0 100644 --- a/lib/datadog_api_client/v2/api/dashboard_lists_api.rb +++ b/lib/datadog_api_client/v2/api/dashboard_lists_api.rb @@ -22,6 +22,7 @@ class DashboardListsAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Add Items to a Dashboard List # Add dashboards to an existing dashboard list. # @param dashboard_list_id [Integer] ID of the dashboard list to add items to. @@ -62,7 +63,7 @@ def create_dashboard_list_items_with_http_info(dashboard_list_id, body, opts = { fail ArgumentError, "Missing the required parameter 'body' when calling DashboardListsAPI.create_dashboard_list_items" end # resource path - local_var_path = '/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards'.sub('{' + 'dashboard_list_id' + '}', CGI.escape(dashboard_list_id.to_s)) + local_var_path = '/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards'.sub('{dashboard_list_id}', CGI.escape(dashboard_list_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -143,7 +144,7 @@ def delete_dashboard_list_items_with_http_info(dashboard_list_id, body, opts = { fail ArgumentError, "Missing the required parameter 'body' when calling DashboardListsAPI.delete_dashboard_list_items" end # resource path - local_var_path = '/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards'.sub('{' + 'dashboard_list_id' + '}', CGI.escape(dashboard_list_id.to_s)) + local_var_path = '/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards'.sub('{dashboard_list_id}', CGI.escape(dashboard_list_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -218,7 +219,7 @@ def get_dashboard_list_items_with_http_info(dashboard_list_id, opts = {}) fail ArgumentError, "Missing the required parameter 'dashboard_list_id' when calling DashboardListsAPI.get_dashboard_list_items" end # resource path - local_var_path = '/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards'.sub('{' + 'dashboard_list_id' + '}', CGI.escape(dashboard_list_id.to_s)) + local_var_path = '/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards'.sub('{dashboard_list_id}', CGI.escape(dashboard_list_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -238,7 +239,7 @@ def get_dashboard_list_items_with_http_info(dashboard_list_id, opts = {}) return_type = opts[:debug_return_type] || 'DashboardListItems' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_dashboard_list_items, @@ -297,7 +298,7 @@ def update_dashboard_list_items_with_http_info(dashboard_list_id, body, opts = { fail ArgumentError, "Missing the required parameter 'body' when calling DashboardListsAPI.update_dashboard_list_items" end # resource path - local_var_path = '/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards'.sub('{' + 'dashboard_list_id' + '}', CGI.escape(dashboard_list_id.to_s)) + local_var_path = '/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards'.sub('{dashboard_list_id}', CGI.escape(dashboard_list_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/datadog_api_client/v2/api/incident_services_api.rb b/lib/datadog_api_client/v2/api/incident_services_api.rb index 92168cb8058..09d5885cfe1 100644 --- a/lib/datadog_api_client/v2/api/incident_services_api.rb +++ b/lib/datadog_api_client/v2/api/incident_services_api.rb @@ -22,6 +22,7 @@ class IncidentServicesAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create a new incident service # Creates a new incident service. # @param body [IncidentServiceCreateRequest] Incident Service Payload. @@ -78,7 +79,7 @@ def create_incident_service_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'IncidentServiceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_incident_service, @@ -131,7 +132,7 @@ def delete_incident_service_with_http_info(service_id, opts = {}) fail ArgumentError, "Missing the required parameter 'service_id' when calling IncidentServicesAPI.delete_incident_service" end # resource path - local_var_path = '/api/v2/services/{service_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)) + local_var_path = '/api/v2/services/{service_id}'.sub('{service_id}', CGI.escape(service_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -139,7 +140,7 @@ def delete_incident_service_with_http_info(service_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -151,7 +152,7 @@ def delete_incident_service_with_http_info(service_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_incident_service, @@ -171,7 +172,8 @@ def delete_incident_service_with_http_info(service_id, opts = {}) end # Get details of an incident service - # Get details of an incident service. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident services. + # Get details of an incident service. If the `include[users]` query parameter is provided, + # the included attribute will contain the users related to these incident services. # @param service_id [String] The ID of the incident service. # @param [Hash] opts the optional parameters # @option opts [IncidentRelatedObject] :include Specifies which types of related objects should be included in the response. @@ -182,7 +184,8 @@ def get_incident_service(service_id, opts = {}) end # Get details of an incident service - # Get details of an incident service. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident services. + # Get details of an incident service. If the `include[users]` query parameter is provided, + # the included attribute will contain the users related to these incident services. # @param service_id [String] The ID of the incident service. # @param [Hash] opts the optional parameters # @option opts [IncidentRelatedObject] :include Specifies which types of related objects should be included in the response. @@ -206,7 +209,7 @@ def get_incident_service_with_http_info(service_id, opts = {}) fail ArgumentError, "Missing the required parameter 'service_id' when calling IncidentServicesAPI.get_incident_service" end # resource path - local_var_path = '/api/v2/services/{service_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)) + local_var_path = '/api/v2/services/{service_id}'.sub('{service_id}', CGI.escape(service_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -227,7 +230,7 @@ def get_incident_service_with_http_info(service_id, opts = {}) return_type = opts[:debug_return_type] || 'IncidentServiceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_incident_service, @@ -250,8 +253,8 @@ def get_incident_service_with_http_info(service_id, opts = {}) # Get all incident services uploaded for the requesting user's organization. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident services. # @param [Hash] opts the optional parameters # @option opts [IncidentRelatedObject] :include Specifies which types of related objects should be included in the response. - # @option opts [Integer] :page_size Size for a given page. (default to 10) - # @option opts [Integer] :page_offset Specific offset to use as the beginning of the returned page. (default to 0) + # @option opts [Integer] :page_size Size for a given page. + # @option opts [Integer] :page_offset Specific offset to use as the beginning of the returned page. # @option opts [String] :filter A search query that filters services by name. # @return [IncidentServicesResponse] def list_incident_services(opts = {}) @@ -260,7 +263,7 @@ def list_incident_services(opts = {}) end # Get a list of all incident services - # Get all incident services uploaded for the requesting user's organization. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident services. + # Get all incident services uploaded for the requesting user's organization. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident services. # @param [Hash] opts the optional parameters # @option opts [IncidentRelatedObject] :include Specifies which types of related objects should be included in the response. # @option opts [Integer] :page_size Size for a given page. @@ -306,7 +309,7 @@ def list_incident_services_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'IncidentServicesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_incident_services, @@ -365,7 +368,7 @@ def update_incident_service_with_http_info(service_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling IncidentServicesAPI.update_incident_service" end # resource path - local_var_path = '/api/v2/services/{service_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)) + local_var_path = '/api/v2/services/{service_id}'.sub('{service_id}', CGI.escape(service_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -387,7 +390,7 @@ def update_incident_service_with_http_info(service_id, body, opts = {}) return_type = opts[:debug_return_type] || 'IncidentServiceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_incident_service, diff --git a/lib/datadog_api_client/v2/api/incident_teams_api.rb b/lib/datadog_api_client/v2/api/incident_teams_api.rb index 5976be3bb2a..329303cd37f 100644 --- a/lib/datadog_api_client/v2/api/incident_teams_api.rb +++ b/lib/datadog_api_client/v2/api/incident_teams_api.rb @@ -22,6 +22,7 @@ class IncidentTeamsAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create a new incident team # Creates a new incident team. # @param body [IncidentTeamCreateRequest] Incident Team Payload. @@ -78,7 +79,7 @@ def create_incident_team_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'IncidentTeamResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_incident_team, @@ -131,7 +132,7 @@ def delete_incident_team_with_http_info(team_id, opts = {}) fail ArgumentError, "Missing the required parameter 'team_id' when calling IncidentTeamsAPI.delete_incident_team" end # resource path - local_var_path = '/api/v2/teams/{team_id}'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s)) + local_var_path = '/api/v2/teams/{team_id}'.sub('{team_id}', CGI.escape(team_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -139,7 +140,7 @@ def delete_incident_team_with_http_info(team_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -151,7 +152,7 @@ def delete_incident_team_with_http_info(team_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_incident_team, @@ -171,7 +172,8 @@ def delete_incident_team_with_http_info(team_id, opts = {}) end # Get details of an incident team - # Get details of an incident team. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident teams. + # Get details of an incident team. If the `include[users]` query parameter is provided, + # the included attribute will contain the users related to these incident teams. # @param team_id [String] The ID of the incident team. # @param [Hash] opts the optional parameters # @option opts [IncidentRelatedObject] :include Specifies which types of related objects should be included in the response. @@ -182,7 +184,8 @@ def get_incident_team(team_id, opts = {}) end # Get details of an incident team - # Get details of an incident team. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident teams. + # Get details of an incident team. If the `include[users]` query parameter is provided, + # the included attribute will contain the users related to these incident teams. # @param team_id [String] The ID of the incident team. # @param [Hash] opts the optional parameters # @option opts [IncidentRelatedObject] :include Specifies which types of related objects should be included in the response. @@ -206,7 +209,7 @@ def get_incident_team_with_http_info(team_id, opts = {}) fail ArgumentError, "Missing the required parameter 'team_id' when calling IncidentTeamsAPI.get_incident_team" end # resource path - local_var_path = '/api/v2/teams/{team_id}'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s)) + local_var_path = '/api/v2/teams/{team_id}'.sub('{team_id}', CGI.escape(team_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -227,7 +230,7 @@ def get_incident_team_with_http_info(team_id, opts = {}) return_type = opts[:debug_return_type] || 'IncidentTeamResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_incident_team, @@ -250,8 +253,8 @@ def get_incident_team_with_http_info(team_id, opts = {}) # Get all incident teams for the requesting user's organization. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident teams. # @param [Hash] opts the optional parameters # @option opts [IncidentRelatedObject] :include Specifies which types of related objects should be included in the response. - # @option opts [Integer] :page_size Size for a given page. (default to 10) - # @option opts [Integer] :page_offset Specific offset to use as the beginning of the returned page. (default to 0) + # @option opts [Integer] :page_size Size for a given page. + # @option opts [Integer] :page_offset Specific offset to use as the beginning of the returned page. # @option opts [String] :filter A search query that filters teams by name. # @return [IncidentTeamsResponse] def list_incident_teams(opts = {}) @@ -260,7 +263,7 @@ def list_incident_teams(opts = {}) end # Get a list of all incident teams - # Get all incident teams for the requesting user's organization. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident teams. + # Get all incident teams for the requesting user's organization. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident teams. # @param [Hash] opts the optional parameters # @option opts [IncidentRelatedObject] :include Specifies which types of related objects should be included in the response. # @option opts [Integer] :page_size Size for a given page. @@ -306,7 +309,7 @@ def list_incident_teams_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'IncidentTeamsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_incident_teams, @@ -365,7 +368,7 @@ def update_incident_team_with_http_info(team_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling IncidentTeamsAPI.update_incident_team" end # resource path - local_var_path = '/api/v2/teams/{team_id}'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s)) + local_var_path = '/api/v2/teams/{team_id}'.sub('{team_id}', CGI.escape(team_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -387,7 +390,7 @@ def update_incident_team_with_http_info(team_id, body, opts = {}) return_type = opts[:debug_return_type] || 'IncidentTeamResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_incident_team, diff --git a/lib/datadog_api_client/v2/api/incidents_api.rb b/lib/datadog_api_client/v2/api/incidents_api.rb index 63d2141d515..728289c9f6a 100644 --- a/lib/datadog_api_client/v2/api/incidents_api.rb +++ b/lib/datadog_api_client/v2/api/incidents_api.rb @@ -22,6 +22,7 @@ class IncidentsAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create an incident # Create an incident. # @param body [IncidentCreateRequest] Incident payload. @@ -78,7 +79,7 @@ def create_incident_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'IncidentResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_incident, @@ -131,7 +132,7 @@ def delete_incident_with_http_info(incident_id, opts = {}) fail ArgumentError, "Missing the required parameter 'incident_id' when calling IncidentsAPI.delete_incident" end # resource path - local_var_path = '/api/v2/incidents/{incident_id}'.sub('{' + 'incident_id' + '}', CGI.escape(incident_id.to_s)) + local_var_path = '/api/v2/incidents/{incident_id}'.sub('{incident_id}', CGI.escape(incident_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -139,7 +140,7 @@ def delete_incident_with_http_info(incident_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -151,7 +152,7 @@ def delete_incident_with_http_info(incident_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_incident, @@ -182,7 +183,7 @@ def get_incident(incident_id, opts = {}) end # Get the details of an incident - # Get the details of an incident by `incident_id`. + # Get the details of an incident by `incident_id`. # @param incident_id [String] The UUID of the incident. # @param [Hash] opts the optional parameters # @option opts [Array] :include Specifies which types of related objects should be included in the response. @@ -206,11 +207,11 @@ def get_incident_with_http_info(incident_id, opts = {}) fail ArgumentError, "Missing the required parameter 'incident_id' when calling IncidentsAPI.get_incident" end # resource path - local_var_path = '/api/v2/incidents/{incident_id}'.sub('{' + 'incident_id' + '}', CGI.escape(incident_id.to_s)) + local_var_path = '/api/v2/incidents/{incident_id}'.sub('{incident_id}', CGI.escape(incident_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} - query_params[:'include'] = @api_client.build_collection_param(opts[:'include'], :csv) if !opts[:'include'].nil? + query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil? # header parameters header_params = opts[:header_params] || {} @@ -227,7 +228,7 @@ def get_incident_with_http_info(incident_id, opts = {}) return_type = opts[:debug_return_type] || 'IncidentResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_incident, @@ -250,8 +251,8 @@ def get_incident_with_http_info(incident_id, opts = {}) # Get all incidents for the user's organization. # @param [Hash] opts the optional parameters # @option opts [Array] :include Specifies which types of related objects should be included in the response. - # @option opts [Integer] :page_size Size for a given page. (default to 10) - # @option opts [Integer] :page_offset Specific offset to use as the beginning of the returned page. (default to 0) + # @option opts [Integer] :page_size Size for a given page. + # @option opts [Integer] :page_offset Specific offset to use as the beginning of the returned page. # @return [IncidentsResponse] def list_incidents(opts = {}) data, _status_code, _headers = list_incidents_with_http_info(opts) @@ -259,7 +260,7 @@ def list_incidents(opts = {}) end # Get a list of incidents - # Get all incidents for the user's organization. + # Get all incidents for the user's organization. # @param [Hash] opts the optional parameters # @option opts [Array] :include Specifies which types of related objects should be included in the response. # @option opts [Integer] :page_size Size for a given page. @@ -284,7 +285,7 @@ def list_incidents_with_http_info(opts = {}) # query parameters query_params = opts[:query_params] || {} - query_params[:'include'] = @api_client.build_collection_param(opts[:'include'], :csv) if !opts[:'include'].nil? + query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil? query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil? query_params[:'page[offset]'] = opts[:'page_offset'] if !opts[:'page_offset'].nil? @@ -303,7 +304,7 @@ def list_incidents_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'IncidentsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_incidents, @@ -362,7 +363,7 @@ def update_incident_with_http_info(incident_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling IncidentsAPI.update_incident" end # resource path - local_var_path = '/api/v2/incidents/{incident_id}'.sub('{' + 'incident_id' + '}', CGI.escape(incident_id.to_s)) + local_var_path = '/api/v2/incidents/{incident_id}'.sub('{incident_id}', CGI.escape(incident_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -384,7 +385,7 @@ def update_incident_with_http_info(incident_id, body, opts = {}) return_type = opts[:debug_return_type] || 'IncidentResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_incident, diff --git a/lib/datadog_api_client/v2/api/key_management_api.rb b/lib/datadog_api_client/v2/api/key_management_api.rb index bc4b0fe5cf7..7219c039bfc 100644 --- a/lib/datadog_api_client/v2/api/key_management_api.rb +++ b/lib/datadog_api_client/v2/api/key_management_api.rb @@ -22,6 +22,7 @@ class KeyManagementAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create an API key # Create an API key. # @param body [APIKeyCreateRequest] @@ -206,7 +207,7 @@ def delete_api_key_with_http_info(api_key_id, opts = {}) fail ArgumentError, "Missing the required parameter 'api_key_id' when calling KeyManagementAPI.delete_api_key" end # resource path - local_var_path = '/api/v2/api_keys/{api_key_id}'.sub('{' + 'api_key_id' + '}', CGI.escape(api_key_id.to_s)) + local_var_path = '/api/v2/api_keys/{api_key_id}'.sub('{api_key_id}', CGI.escape(api_key_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -214,7 +215,7 @@ def delete_api_key_with_http_info(api_key_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -279,7 +280,7 @@ def delete_application_key_with_http_info(app_key_id, opts = {}) fail ArgumentError, "Missing the required parameter 'app_key_id' when calling KeyManagementAPI.delete_application_key" end # resource path - local_var_path = '/api/v2/application_keys/{app_key_id}'.sub('{' + 'app_key_id' + '}', CGI.escape(app_key_id.to_s)) + local_var_path = '/api/v2/application_keys/{app_key_id}'.sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -287,7 +288,7 @@ def delete_application_key_with_http_info(app_key_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -352,7 +353,7 @@ def delete_current_user_application_key_with_http_info(app_key_id, opts = {}) fail ArgumentError, "Missing the required parameter 'app_key_id' when calling KeyManagementAPI.delete_current_user_application_key" end # resource path - local_var_path = '/api/v2/current_user/application_keys/{app_key_id}'.sub('{' + 'app_key_id' + '}', CGI.escape(app_key_id.to_s)) + local_var_path = '/api/v2/current_user/application_keys/{app_key_id}'.sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -360,7 +361,7 @@ def delete_current_user_application_key_with_http_info(app_key_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -395,7 +396,7 @@ def delete_current_user_application_key_with_http_info(app_key_id, opts = {}) # Get an API key. # @param api_key_id [String] The ID of the API key. # @param [Hash] opts the optional parameters - # @option opts [String] :include Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`. + # @option opts [String] :include Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`. # @return [APIKeyResponse] def get_api_key(api_key_id, opts = {}) data, _status_code, _headers = get_api_key_with_http_info(api_key_id, opts) @@ -406,7 +407,7 @@ def get_api_key(api_key_id, opts = {}) # Get an API key. # @param api_key_id [String] The ID of the API key. # @param [Hash] opts the optional parameters - # @option opts [String] :include Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`. + # @option opts [String] :include Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`. # @return [Array<(APIKeyResponse, Integer, Hash)>] APIKeyResponse data, response status code and response headers def get_api_key_with_http_info(api_key_id, opts = {}) @@ -427,7 +428,7 @@ def get_api_key_with_http_info(api_key_id, opts = {}) fail ArgumentError, "Missing the required parameter 'api_key_id' when calling KeyManagementAPI.get_api_key" end # resource path - local_var_path = '/api/v2/api_keys/{api_key_id}'.sub('{' + 'api_key_id' + '}', CGI.escape(api_key_id.to_s)) + local_var_path = '/api/v2/api_keys/{api_key_id}'.sub('{api_key_id}', CGI.escape(api_key_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -471,7 +472,7 @@ def get_api_key_with_http_info(api_key_id, opts = {}) # Get an application key for your org. # @param app_key_id [String] The ID of the application key. # @param [Hash] opts the optional parameters - # @option opts [String] :include Resource path for related resources to include in the response. Only `owned_by` is supported. + # @option opts [String] :include Resource path for related resources to include in the response. Only `owned_by` is supported. # @return [ApplicationKeyResponse] def get_application_key(app_key_id, opts = {}) data, _status_code, _headers = get_application_key_with_http_info(app_key_id, opts) @@ -482,7 +483,7 @@ def get_application_key(app_key_id, opts = {}) # Get an application key for your org. # @param app_key_id [String] The ID of the application key. # @param [Hash] opts the optional parameters - # @option opts [String] :include Resource path for related resources to include in the response. Only `owned_by` is supported. + # @option opts [String] :include Resource path for related resources to include in the response. Only `owned_by` is supported. # @return [Array<(ApplicationKeyResponse, Integer, Hash)>] ApplicationKeyResponse data, response status code and response headers def get_application_key_with_http_info(app_key_id, opts = {}) @@ -503,7 +504,7 @@ def get_application_key_with_http_info(app_key_id, opts = {}) fail ArgumentError, "Missing the required parameter 'app_key_id' when calling KeyManagementAPI.get_application_key" end # resource path - local_var_path = '/api/v2/application_keys/{app_key_id}'.sub('{' + 'app_key_id' + '}', CGI.escape(app_key_id.to_s)) + local_var_path = '/api/v2/application_keys/{app_key_id}'.sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -577,7 +578,7 @@ def get_current_user_application_key_with_http_info(app_key_id, opts = {}) fail ArgumentError, "Missing the required parameter 'app_key_id' when calling KeyManagementAPI.get_current_user_application_key" end # resource path - local_var_path = '/api/v2/current_user/application_keys/{app_key_id}'.sub('{' + 'app_key_id' + '}', CGI.escape(app_key_id.to_s)) + local_var_path = '/api/v2/current_user/application_keys/{app_key_id}'.sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -619,15 +620,15 @@ def get_current_user_application_key_with_http_info(app_key_id, opts = {}) # Get all API keys # List all API keys available for your account. # @param [Hash] opts the optional parameters - # @option opts [Integer] :page_size Size for a given page. (default to 10) - # @option opts [Integer] :page_number Specific page number to return. (default to 0) - # @option opts [APIKeysSort] :sort API key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. (default to 'name') + # @option opts [Integer] :page_size Size for a given page. + # @option opts [Integer] :page_number Specific page number to return. + # @option opts [APIKeysSort] :sort API key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. # @option opts [String] :filter Filter API keys by the specified string. # @option opts [String] :filter_created_at_start Only include API keys created on or after the specified date. # @option opts [String] :filter_created_at_end Only include API keys created on or before the specified date. # @option opts [String] :filter_modified_at_start Only include API keys modified on or after the specified date. # @option opts [String] :filter_modified_at_end Only include API keys modified on or before the specified date. - # @option opts [String] :include Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`. + # @option opts [String] :include Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`. # @return [APIKeysResponse] def list_api_keys(opts = {}) data, _status_code, _headers = list_api_keys_with_http_info(opts) @@ -645,7 +646,7 @@ def list_api_keys(opts = {}) # @option opts [String] :filter_created_at_end Only include API keys created on or before the specified date. # @option opts [String] :filter_modified_at_start Only include API keys modified on or after the specified date. # @option opts [String] :filter_modified_at_end Only include API keys modified on or before the specified date. - # @option opts [String] :include Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`. + # @option opts [String] :include Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`. # @return [Array<(APIKeysResponse, Integer, Hash)>] APIKeysResponse data, response status code and response headers def list_api_keys_with_http_info(opts = {}) @@ -713,9 +714,9 @@ def list_api_keys_with_http_info(opts = {}) # Get all application keys # List all application keys available for your org # @param [Hash] opts the optional parameters - # @option opts [Integer] :page_size Size for a given page. (default to 10) - # @option opts [Integer] :page_number Specific page number to return. (default to 0) - # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. (default to 'name') + # @option opts [Integer] :page_size Size for a given page. + # @option opts [Integer] :page_number Specific page number to return. + # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. # @option opts [String] :filter Filter application keys by the specified string. # @option opts [String] :filter_created_at_start Only include application keys created on or after the specified date. # @option opts [String] :filter_created_at_end Only include application keys created on or before the specified date. @@ -798,9 +799,9 @@ def list_application_keys_with_http_info(opts = {}) # Get all application keys owned by current user # List all application keys available for current user # @param [Hash] opts the optional parameters - # @option opts [Integer] :page_size Size for a given page. (default to 10) - # @option opts [Integer] :page_number Specific page number to return. (default to 0) - # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. (default to 'name') + # @option opts [Integer] :page_size Size for a given page. + # @option opts [Integer] :page_number Specific page number to return. + # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. # @option opts [String] :filter Filter application keys by the specified string. # @option opts [String] :filter_created_at_start Only include application keys created on or after the specified date. # @option opts [String] :filter_created_at_end Only include application keys created on or before the specified date. @@ -920,7 +921,7 @@ def update_api_key_with_http_info(api_key_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling KeyManagementAPI.update_api_key" end # resource path - local_var_path = '/api/v2/api_keys/{api_key_id}'.sub('{' + 'api_key_id' + '}', CGI.escape(api_key_id.to_s)) + local_var_path = '/api/v2/api_keys/{api_key_id}'.sub('{api_key_id}', CGI.escape(api_key_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -1001,7 +1002,7 @@ def update_application_key_with_http_info(app_key_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling KeyManagementAPI.update_application_key" end # resource path - local_var_path = '/api/v2/application_keys/{app_key_id}'.sub('{' + 'app_key_id' + '}', CGI.escape(app_key_id.to_s)) + local_var_path = '/api/v2/application_keys/{app_key_id}'.sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -1082,7 +1083,7 @@ def update_current_user_application_key_with_http_info(app_key_id, body, opts = fail ArgumentError, "Missing the required parameter 'body' when calling KeyManagementAPI.update_current_user_application_key" end # resource path - local_var_path = '/api/v2/current_user/application_keys/{app_key_id}'.sub('{' + 'app_key_id' + '}', CGI.escape(app_key_id.to_s)) + local_var_path = '/api/v2/current_user/application_keys/{app_key_id}'.sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/datadog_api_client/v2/api/logs_api.rb b/lib/datadog_api_client/v2/api/logs_api.rb index 8b265c7c305..bbb8463de76 100644 --- a/lib/datadog_api_client/v2/api/logs_api.rb +++ b/lib/datadog_api_client/v2/api/logs_api.rb @@ -22,6 +22,7 @@ class LogsAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Aggregate events # The API endpoint to aggregate events into buckets and compute metrics and timeseries. # @param body [LogsAggregateRequest] @@ -98,7 +99,17 @@ def aggregate_logs_with_http_info(body, opts = {}) end # Search logs - # List endpoint returns logs that match a log search query. [Results are paginated][1]. Use this endpoint to build complex logs filtering and search. **If you are considering archiving logs for your organization, consider use of the Datadog archive capabilities instead of the log list API. See [Datadog Logs Archive documentation][2].** [1]: /logs/guide/collect-multiple-logs-with-pagination [2]: https://docs.datadoghq.com/logs/archives + # List endpoint returns logs that match a log search query. + # [Results are paginated][1]. + # + # Use this endpoint to build complex logs filtering and search. + # + # **If you are considering archiving logs for your organization, + # consider use of the Datadog archive capabilities instead of the log list API. + # See [Datadog Logs Archive documentation][2].** + # + # [1]: /logs/guide/collect-multiple-logs-with-pagination + # [2]: https://docs.datadoghq.com/logs/archives # @param [Hash] opts the optional parameters # @option opts [LogsListRequest] :body # @return [LogsListResponse] @@ -108,7 +119,17 @@ def list_logs(opts = {}) end # Search logs - # List endpoint returns logs that match a log search query. [Results are paginated][1]. Use this endpoint to build complex logs filtering and search. **If you are considering archiving logs for your organization, consider use of the Datadog archive capabilities instead of the log list API. See [Datadog Logs Archive documentation][2].** [1]: /logs/guide/collect-multiple-logs-with-pagination [2]: https://docs.datadoghq.com/logs/archives + # List endpoint returns logs that match a log search query. + # [Results are paginated][1]. + # + # Use this endpoint to build complex logs filtering and search. + # + # **If you are considering archiving logs for your organization, + # consider use of the Datadog archive capabilities instead of the log list API. + # See [Datadog Logs Archive documentation][2].** + # + # [1]: /logs/guide/collect-multiple-logs-with-pagination + # [2]: https://docs.datadoghq.com/logs/archives # @param [Hash] opts the optional parameters # @option opts [LogsListRequest] :body # @return [Array<(LogsListResponse, Integer, Hash)>] LogsListResponse data, response status code and response headers @@ -169,15 +190,25 @@ def list_logs_with_http_info(opts = {}) end # Get a list of logs - # List endpoint returns logs that match a log search query. [Results are paginated][1]. Use this endpoint to see your latest logs. **If you are considering archiving logs for your organization, consider use of the Datadog archive capabilities instead of the log list API. See [Datadog Logs Archive documentation][2].** [1]: /logs/guide/collect-multiple-logs-with-pagination [2]: https://docs.datadoghq.com/logs/archives + # List endpoint returns logs that match a log search query. + # [Results are paginated][1]. + # + # Use this endpoint to see your latest logs. + # + # **If you are considering archiving logs for your organization, + # consider use of the Datadog archive capabilities instead of the log list API. + # See [Datadog Logs Archive documentation][2].** + # + # [1]: /logs/guide/collect-multiple-logs-with-pagination + # [2]: https://docs.datadoghq.com/logs/archives # @param [Hash] opts the optional parameters # @option opts [String] :filter_query Search query following logs syntax. - # @option opts [String] :filter_index For customers with multiple indexes, the indexes to search Defaults to '*' which means all indexes + # @option opts [String] :filter_index For customers with multiple indexes, the indexes to search Defaults to '*' which means all indexes # @option opts [Time] :filter_from Minimum timestamp for requested logs. # @option opts [Time] :filter_to Maximum timestamp for requested logs. # @option opts [LogsSort] :sort Order of logs in results. # @option opts [String] :page_cursor List following results with a cursor provided in the previous query. - # @option opts [Integer] :page_limit Maximum number of logs in the response. (default to 10) + # @option opts [Integer] :page_limit Maximum number of logs in the response. # @return [LogsListResponse] def list_logs_get(opts = {}) data, _status_code, _headers = list_logs_get_with_http_info(opts) @@ -185,10 +216,20 @@ def list_logs_get(opts = {}) end # Get a list of logs - # List endpoint returns logs that match a log search query. [Results are paginated][1]. Use this endpoint to see your latest logs. **If you are considering archiving logs for your organization, consider use of the Datadog archive capabilities instead of the log list API. See [Datadog Logs Archive documentation][2].** [1]: /logs/guide/collect-multiple-logs-with-pagination [2]: https://docs.datadoghq.com/logs/archives + # List endpoint returns logs that match a log search query. + # [Results are paginated][1]. + # + # Use this endpoint to see your latest logs. + # + # **If you are considering archiving logs for your organization, + # consider use of the Datadog archive capabilities instead of the log list API. + # See [Datadog Logs Archive documentation][2].** + # + # [1]: /logs/guide/collect-multiple-logs-with-pagination + # [2]: https://docs.datadoghq.com/logs/archives # @param [Hash] opts the optional parameters # @option opts [String] :filter_query Search query following logs syntax. - # @option opts [String] :filter_index For customers with multiple indexes, the indexes to search Defaults to '*' which means all indexes + # @option opts [String] :filter_index For customers with multiple indexes, the indexes to search Defaults to '*' which means all indexes # @option opts [Time] :filter_from Minimum timestamp for requested logs. # @option opts [Time] :filter_to Maximum timestamp for requested logs. # @option opts [LogsSort] :sort Order of logs in results. @@ -209,10 +250,6 @@ def list_logs_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LogsAPI.list_logs_get ...' end - if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] > 1000 - fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling LogsAPI.list_logs_get, must be smaller than or equal to 1000.' - end - # resource path local_var_path = '/api/v2/logs/events' @@ -261,11 +298,33 @@ def list_logs_get_with_http_info(opts = {}) end # Send logs - # Send your logs to your Datadog platform over HTTP. Limits per HTTP request are: - Maximum content size per payload (uncompressed): 5MB - Maximum size for a single log: 1MB - Maximum array size if sending multiple logs in an array: 1000 entries Any log exceeding 1MB is accepted and truncated by Datadog: - For a single log request, the API truncates the log at 1MB and returns a 2xx. - For a multi-logs request, the API processes all logs, truncates only logs larger than 1MB, and returns a 2xx. Datadog recommends sending your logs compressed. Add the `Content-Encoding: gzip` header to the request when sending compressed logs. The status codes answered by the HTTP API are: - 202: Accepted: the request has been accepted for processing - 400: Bad request (likely an issue in the payload formatting) - 401: Unauthorized (likely a missing API Key) - 403: Permission issue (likely using an invalid API Key) - 408: Request Timeout, request should be retried after some time - 413: Payload too large (batch is above 5MB uncompressed) - 429: Too Many Requests, request should be retried after some time - 500: Internal Server Error, the server encountered an unexpected condition that prevented it from fulfilling the request, request should be retried after some time - 503: Service Unavailable, the server is not ready to handle the request probably because it is overloaded, request should be retried after some time + # Send your logs to your Datadog platform over HTTP. Limits per HTTP request are: + # + # - Maximum content size per payload (uncompressed): 5MB + # - Maximum size for a single log: 1MB + # - Maximum array size if sending multiple logs in an array: 1000 entries + # + # Any log exceeding 1MB is accepted and truncated by Datadog: + # - For a single log request, the API truncates the log at 1MB and returns a 2xx. + # - For a multi-logs request, the API processes all logs, truncates only logs larger than 1MB, and returns a 2xx. + # + # Datadog recommends sending your logs compressed. + # Add the `Content-Encoding: gzip` header to the request when sending compressed logs. + # + # The status codes answered by the HTTP API are: + # - 202: Accepted: the request has been accepted for processing + # - 400: Bad request (likely an issue in the payload formatting) + # - 401: Unauthorized (likely a missing API Key) + # - 403: Permission issue (likely using an invalid API Key) + # - 408: Request Timeout, request should be retried after some time + # - 413: Payload too large (batch is above 5MB uncompressed) + # - 429: Too Many Requests, request should be retried after some time + # - 500: Internal Server Error, the server encountered an unexpected condition that prevented it from fulfilling the request, request should be retried after some time + # - 503: Service Unavailable, the server is not ready to handle the request probably because it is overloaded, request should be retried after some time # @param body [Array] Log to send (JSON format). # @param [Hash] opts the optional parameters # @option opts [ContentEncoding] :content_encoding HTTP header used to compress the media-type. - # @option opts [String] :ddtags Log tags can be passed as query parameters with `text/plain` content type. + # @option opts [String] :ddtags Log tags can be passed as query parameters with `text/plain` content type. # @return [Object] def submit_log(body, opts = {}) data, _status_code, _headers = submit_log_with_http_info(body, opts) @@ -273,11 +332,33 @@ def submit_log(body, opts = {}) end # Send logs - # Send your logs to your Datadog platform over HTTP. Limits per HTTP request are: - Maximum content size per payload (uncompressed): 5MB - Maximum size for a single log: 1MB - Maximum array size if sending multiple logs in an array: 1000 entries Any log exceeding 1MB is accepted and truncated by Datadog: - For a single log request, the API truncates the log at 1MB and returns a 2xx. - For a multi-logs request, the API processes all logs, truncates only logs larger than 1MB, and returns a 2xx. Datadog recommends sending your logs compressed. Add the `Content-Encoding: gzip` header to the request when sending compressed logs. The status codes answered by the HTTP API are: - 202: Accepted: the request has been accepted for processing - 400: Bad request (likely an issue in the payload formatting) - 401: Unauthorized (likely a missing API Key) - 403: Permission issue (likely using an invalid API Key) - 408: Request Timeout, request should be retried after some time - 413: Payload too large (batch is above 5MB uncompressed) - 429: Too Many Requests, request should be retried after some time - 500: Internal Server Error, the server encountered an unexpected condition that prevented it from fulfilling the request, request should be retried after some time - 503: Service Unavailable, the server is not ready to handle the request probably because it is overloaded, request should be retried after some time + # Send your logs to your Datadog platform over HTTP. Limits per HTTP request are: + # + # - Maximum content size per payload (uncompressed): 5MB + # - Maximum size for a single log: 1MB + # - Maximum array size if sending multiple logs in an array: 1000 entries + # + # Any log exceeding 1MB is accepted and truncated by Datadog: + # - For a single log request, the API truncates the log at 1MB and returns a 2xx. + # - For a multi-logs request, the API processes all logs, truncates only logs larger than 1MB, and returns a 2xx. + # + # Datadog recommends sending your logs compressed. + # Add the `Content-Encoding: gzip` header to the request when sending compressed logs. + # + # The status codes answered by the HTTP API are: + # - 202: Accepted: the request has been accepted for processing + # - 400: Bad request (likely an issue in the payload formatting) + # - 401: Unauthorized (likely a missing API Key) + # - 403: Permission issue (likely using an invalid API Key) + # - 408: Request Timeout, request should be retried after some time + # - 413: Payload too large (batch is above 5MB uncompressed) + # - 429: Too Many Requests, request should be retried after some time + # - 500: Internal Server Error, the server encountered an unexpected condition that prevented it from fulfilling the request, request should be retried after some time + # - 503: Service Unavailable, the server is not ready to handle the request probably because it is overloaded, request should be retried after some time # @param body [Array] Log to send (JSON format). # @param [Hash] opts the optional parameters # @option opts [ContentEncoding] :content_encoding HTTP header used to compress the media-type. - # @option opts [String] :ddtags Log tags can be passed as query parameters with `text/plain` content type. + # @option opts [String] :ddtags Log tags can be passed as query parameters with `text/plain` content type. # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def submit_log_with_http_info(body, opts = {}) @@ -310,7 +391,6 @@ def submit_log_with_http_info(body, opts = {}) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/logplex-1', 'text/plain']) - header_params['Content-Encoding'] = opts[:'content_encoding'] if !opts[:'content_encoding'].nil? # form parameters form_params = opts[:form_params] || {} diff --git a/lib/datadog_api_client/v2/api/logs_archives_api.rb b/lib/datadog_api_client/v2/api/logs_archives_api.rb index 9cf09109e35..de904df5e60 100644 --- a/lib/datadog_api_client/v2/api/logs_archives_api.rb +++ b/lib/datadog_api_client/v2/api/logs_archives_api.rb @@ -22,6 +22,7 @@ class LogsArchivesAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Grant role to an archive # Adds a read role to an archive. ([Roles API](https://docs.datadoghq.com/api/v2/roles/)) # @param archive_id [String] The ID of the archive. @@ -62,7 +63,7 @@ def add_read_role_to_archive_with_http_info(archive_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling LogsArchivesAPI.add_read_role_to_archive" end # resource path - local_var_path = '/api/v2/logs/config/archives/{archive_id}/readers'.sub('{' + 'archive_id' + '}', CGI.escape(archive_id.to_s)) + local_var_path = '/api/v2/logs/config/archives/{archive_id}/readers'.sub('{archive_id}', CGI.escape(archive_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -70,7 +71,7 @@ def add_read_role_to_archive_with_http_info(archive_id, body, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) @@ -212,7 +213,7 @@ def delete_logs_archive_with_http_info(archive_id, opts = {}) fail ArgumentError, "Missing the required parameter 'archive_id' when calling LogsArchivesAPI.delete_logs_archive" end # resource path - local_var_path = '/api/v2/logs/config/archives/{archive_id}'.sub('{' + 'archive_id' + '}', CGI.escape(archive_id.to_s)) + local_var_path = '/api/v2/logs/config/archives/{archive_id}'.sub('{archive_id}', CGI.escape(archive_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -220,7 +221,7 @@ def delete_logs_archive_with_http_info(archive_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -285,7 +286,7 @@ def get_logs_archive_with_http_info(archive_id, opts = {}) fail ArgumentError, "Missing the required parameter 'archive_id' when calling LogsArchivesAPI.get_logs_archive" end # resource path - local_var_path = '/api/v2/logs/config/archives/{archive_id}'.sub('{' + 'archive_id' + '}', CGI.escape(archive_id.to_s)) + local_var_path = '/api/v2/logs/config/archives/{archive_id}'.sub('{archive_id}', CGI.escape(archive_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -305,7 +306,7 @@ def get_logs_archive_with_http_info(archive_id, opts = {}) return_type = opts[:debug_return_type] || 'LogsArchive' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_logs_archive, @@ -325,7 +326,8 @@ def get_logs_archive_with_http_info(archive_id, opts = {}) end # Get archive order - # Get the current order of your archives. This endpoint takes no JSON arguments. + # Get the current order of your archives. + # This endpoint takes no JSON arguments. # @param [Hash] opts the optional parameters # @return [LogsArchiveOrder] def get_logs_archive_order(opts = {}) @@ -334,7 +336,8 @@ def get_logs_archive_order(opts = {}) end # Get archive order - # Get the current order of your archives. This endpoint takes no JSON arguments. + # Get the current order of your archives. + # This endpoint takes no JSON arguments. # @param [Hash] opts the optional parameters # @return [Array<(LogsArchiveOrder, Integer, Hash)>] LogsArchiveOrder data, response status code and response headers def get_logs_archive_order_with_http_info(opts = {}) @@ -372,7 +375,7 @@ def get_logs_archive_order_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LogsArchiveOrder' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_logs_archive_order, @@ -425,7 +428,7 @@ def list_archive_read_roles_with_http_info(archive_id, opts = {}) fail ArgumentError, "Missing the required parameter 'archive_id' when calling LogsArchivesAPI.list_archive_read_roles" end # resource path - local_var_path = '/api/v2/logs/config/archives/{archive_id}/readers'.sub('{' + 'archive_id' + '}', CGI.escape(archive_id.to_s)) + local_var_path = '/api/v2/logs/config/archives/{archive_id}/readers'.sub('{archive_id}', CGI.escape(archive_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -445,7 +448,7 @@ def list_archive_read_roles_with_http_info(archive_id, opts = {}) return_type = opts[:debug_return_type] || 'RolesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_archive_read_roles, @@ -512,7 +515,7 @@ def list_logs_archives_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LogsArchives' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_logs_archives, @@ -571,7 +574,7 @@ def remove_role_from_archive_with_http_info(archive_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling LogsArchivesAPI.remove_role_from_archive" end # resource path - local_var_path = '/api/v2/logs/config/archives/{archive_id}/readers'.sub('{' + 'archive_id' + '}', CGI.escape(archive_id.to_s)) + local_var_path = '/api/v2/logs/config/archives/{archive_id}/readers'.sub('{archive_id}', CGI.escape(archive_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -579,7 +582,7 @@ def remove_role_from_archive_with_http_info(archive_id, body, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) @@ -613,7 +616,10 @@ def remove_role_from_archive_with_http_info(archive_id, body, opts = {}) end # Update an archive - # Update a given archive configuration. **Note**: Using this method updates your archive configuration by **replacing** your current configuration with the new one sent to your Datadog organization. + # Update a given archive configuration. + # + # **Note**: Using this method updates your archive configuration by **replacing** + # your current configuration with the new one sent to your Datadog organization. # @param archive_id [String] The ID of the archive. # @param body [LogsArchiveCreateRequest] New definition of the archive. # @param [Hash] opts the optional parameters @@ -624,7 +630,10 @@ def update_logs_archive(archive_id, body, opts = {}) end # Update an archive - # Update a given archive configuration. **Note**: Using this method updates your archive configuration by **replacing** your current configuration with the new one sent to your Datadog organization. + # Update a given archive configuration. + # + # **Note**: Using this method updates your archive configuration by **replacing** + # your current configuration with the new one sent to your Datadog organization. # @param archive_id [String] The ID of the archive. # @param body [LogsArchiveCreateRequest] New definition of the archive. # @param [Hash] opts the optional parameters @@ -652,7 +661,7 @@ def update_logs_archive_with_http_info(archive_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling LogsArchivesAPI.update_logs_archive" end # resource path - local_var_path = '/api/v2/logs/config/archives/{archive_id}'.sub('{' + 'archive_id' + '}', CGI.escape(archive_id.to_s)) + local_var_path = '/api/v2/logs/config/archives/{archive_id}'.sub('{archive_id}', CGI.escape(archive_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -694,7 +703,11 @@ def update_logs_archive_with_http_info(archive_id, body, opts = {}) end # Update archive order - # Update the order of your archives. Since logs are processed sequentially, reordering an archive may change the structure and content of the data processed by other archives. **Note**: Using the `PUT` method updates your archive's order by replacing the current order with the new one. + # Update the order of your archives. Since logs are processed sequentially, reordering an archive may change + # the structure and content of the data processed by other archives. + # + # **Note**: Using the `PUT` method updates your archive's order by replacing the current order + # with the new one. # @param body [LogsArchiveOrder] An object containing the new ordered list of archive IDs. # @param [Hash] opts the optional parameters # @return [LogsArchiveOrder] @@ -704,7 +717,11 @@ def update_logs_archive_order(body, opts = {}) end # Update archive order - # Update the order of your archives. Since logs are processed sequentially, reordering an archive may change the structure and content of the data processed by other archives. **Note**: Using the `PUT` method updates your archive's order by replacing the current order with the new one. + # Update the order of your archives. Since logs are processed sequentially, reordering an archive may change + # the structure and content of the data processed by other archives. + # + # **Note**: Using the `PUT` method updates your archive's order by replacing the current order + # with the new one. # @param body [LogsArchiveOrder] An object containing the new ordered list of archive IDs. # @param [Hash] opts the optional parameters # @return [Array<(LogsArchiveOrder, Integer, Hash)>] LogsArchiveOrder data, response status code and response headers diff --git a/lib/datadog_api_client/v2/api/logs_metrics_api.rb b/lib/datadog_api_client/v2/api/logs_metrics_api.rb index db290762220..1f0ce39d0e9 100644 --- a/lib/datadog_api_client/v2/api/logs_metrics_api.rb +++ b/lib/datadog_api_client/v2/api/logs_metrics_api.rb @@ -22,8 +22,10 @@ class LogsMetricsAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create a log-based metric - # Create a metric based on your ingested logs in your organization. Returns the log-based metric object from the request body when the request is successful. + # Create a metric based on your ingested logs in your organization. + # Returns the log-based metric object from the request body when the request is successful. # @param body [LogsMetricCreateRequest] The definition of the new log-based metric. # @param [Hash] opts the optional parameters # @return [LogsMetricResponse] @@ -33,7 +35,8 @@ def create_logs_metric(body, opts = {}) end # Create a log-based metric - # Create a metric based on your ingested logs in your organization. Returns the log-based metric object from the request body when the request is successful. + # Create a metric based on your ingested logs in your organization. + # Returns the log-based metric object from the request body when the request is successful. # @param body [LogsMetricCreateRequest] The definition of the new log-based metric. # @param [Hash] opts the optional parameters # @return [Array<(LogsMetricResponse, Integer, Hash)>] LogsMetricResponse data, response status code and response headers @@ -131,7 +134,7 @@ def delete_logs_metric_with_http_info(metric_id, opts = {}) fail ArgumentError, "Missing the required parameter 'metric_id' when calling LogsMetricsAPI.delete_logs_metric" end # resource path - local_var_path = '/api/v2/logs/config/metrics/{metric_id}'.sub('{' + 'metric_id' + '}', CGI.escape(metric_id.to_s)) + local_var_path = '/api/v2/logs/config/metrics/{metric_id}'.sub('{metric_id}', CGI.escape(metric_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -139,7 +142,7 @@ def delete_logs_metric_with_http_info(metric_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -204,7 +207,7 @@ def get_logs_metric_with_http_info(metric_id, opts = {}) fail ArgumentError, "Missing the required parameter 'metric_id' when calling LogsMetricsAPI.get_logs_metric" end # resource path - local_var_path = '/api/v2/logs/config/metrics/{metric_id}'.sub('{' + 'metric_id' + '}', CGI.escape(metric_id.to_s)) + local_var_path = '/api/v2/logs/config/metrics/{metric_id}'.sub('{metric_id}', CGI.escape(metric_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -224,7 +227,7 @@ def get_logs_metric_with_http_info(metric_id, opts = {}) return_type = opts[:debug_return_type] || 'LogsMetricResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_logs_metric, @@ -291,7 +294,7 @@ def list_logs_metrics_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LogsMetricsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_logs_metrics, @@ -311,7 +314,8 @@ def list_logs_metrics_with_http_info(opts = {}) end # Update a log-based metric - # Update a specific log-based metric from your organization. Returns the log-based metric object from the request body when the request is successful. + # Update a specific log-based metric from your organization. + # Returns the log-based metric object from the request body when the request is successful. # @param metric_id [String] The name of the log-based metric. # @param body [LogsMetricUpdateRequest] New definition of the log-based metric. # @param [Hash] opts the optional parameters @@ -322,7 +326,8 @@ def update_logs_metric(metric_id, body, opts = {}) end # Update a log-based metric - # Update a specific log-based metric from your organization. Returns the log-based metric object from the request body when the request is successful. + # Update a specific log-based metric from your organization. + # Returns the log-based metric object from the request body when the request is successful. # @param metric_id [String] The name of the log-based metric. # @param body [LogsMetricUpdateRequest] New definition of the log-based metric. # @param [Hash] opts the optional parameters @@ -350,7 +355,7 @@ def update_logs_metric_with_http_info(metric_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling LogsMetricsAPI.update_logs_metric" end # resource path - local_var_path = '/api/v2/logs/config/metrics/{metric_id}'.sub('{' + 'metric_id' + '}', CGI.escape(metric_id.to_s)) + local_var_path = '/api/v2/logs/config/metrics/{metric_id}'.sub('{metric_id}', CGI.escape(metric_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/datadog_api_client/v2/api/metrics_api.rb b/lib/datadog_api_client/v2/api/metrics_api.rb index b794ce85485..84a97133047 100644 --- a/lib/datadog_api_client/v2/api/metrics_api.rb +++ b/lib/datadog_api_client/v2/api/metrics_api.rb @@ -22,8 +22,12 @@ class MetricsAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create a tag configuration - # Create and define a list of queryable tag keys for an existing count/gauge/rate/distribution metric. Optionally, include percentile aggregations on any distribution metric or configure custom aggregations on any count, rate, or gauge metric. Can only be used with application keys of users with the `Manage Tags for Metrics` permission. + # Create and define a list of queryable tag keys for an existing count/gauge/rate/distribution metric. + # Optionally, include percentile aggregations on any distribution metric or configure custom aggregations + # on any count, rate, or gauge metric. + # Can only be used with application keys of users with the `Manage Tags for Metrics` permission. # @param metric_name [String] The name of the metric. # @param body [MetricTagConfigurationCreateRequest] # @param [Hash] opts the optional parameters @@ -34,7 +38,10 @@ def create_tag_configuration(metric_name, body, opts = {}) end # Create a tag configuration - # Create and define a list of queryable tag keys for an existing count/gauge/rate/distribution metric. Optionally, include percentile aggregations on any distribution metric or configure custom aggregations on any count, rate, or gauge metric. Can only be used with application keys of users with the `Manage Tags for Metrics` permission. + # Create and define a list of queryable tag keys for an existing count/gauge/rate/distribution metric. + # Optionally, include percentile aggregations on any distribution metric or configure custom aggregations + # on any count, rate, or gauge metric. + # Can only be used with application keys of users with the `Manage Tags for Metrics` permission. # @param metric_name [String] The name of the metric. # @param body [MetricTagConfigurationCreateRequest] # @param [Hash] opts the optional parameters @@ -62,7 +69,7 @@ def create_tag_configuration_with_http_info(metric_name, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling MetricsAPI.create_tag_configuration" end # resource path - local_var_path = '/api/v2/metrics/{metric_name}/tags'.sub('{' + 'metric_name' + '}', CGI.escape(metric_name.to_s)) + local_var_path = '/api/v2/metrics/{metric_name}/tags'.sub('{metric_name}', CGI.escape(metric_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -104,7 +111,8 @@ def create_tag_configuration_with_http_info(metric_name, body, opts = {}) end # Delete a tag configuration - # Deletes a metric's tag configuration. Can only be used with application keys from users with the `Manage Tags for Metrics` permission. + # Deletes a metric's tag configuration. Can only be used with application + # keys from users with the `Manage Tags for Metrics` permission. # @param metric_name [String] The name of the metric. # @param [Hash] opts the optional parameters # @return [nil] @@ -114,7 +122,8 @@ def delete_tag_configuration(metric_name, opts = {}) end # Delete a tag configuration - # Deletes a metric's tag configuration. Can only be used with application keys from users with the `Manage Tags for Metrics` permission. + # Deletes a metric's tag configuration. Can only be used with application + # keys from users with the `Manage Tags for Metrics` permission. # @param metric_name [String] The name of the metric. # @param [Hash] opts the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers @@ -137,7 +146,7 @@ def delete_tag_configuration_with_http_info(metric_name, opts = {}) fail ArgumentError, "Missing the required parameter 'metric_name' when calling MetricsAPI.delete_tag_configuration" end # resource path - local_var_path = '/api/v2/metrics/{metric_name}/tags'.sub('{' + 'metric_name' + '}', CGI.escape(metric_name.to_s)) + local_var_path = '/api/v2/metrics/{metric_name}/tags'.sub('{metric_name}', CGI.escape(metric_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -145,7 +154,7 @@ def delete_tag_configuration_with_http_info(metric_name, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -210,7 +219,7 @@ def list_tag_configuration_by_name_with_http_info(metric_name, opts = {}) fail ArgumentError, "Missing the required parameter 'metric_name' when calling MetricsAPI.list_tag_configuration_by_name" end # resource path - local_var_path = '/api/v2/metrics/{metric_name}/tags'.sub('{' + 'metric_name' + '}', CGI.escape(metric_name.to_s)) + local_var_path = '/api/v2/metrics/{metric_name}/tags'.sub('{metric_name}', CGI.escape(metric_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -250,11 +259,12 @@ def list_tag_configuration_by_name_with_http_info(metric_name, opts = {}) end # List tag configurations - # Returns all configured count/gauge/rate/distribution metric names (with additional filters if specified). + # Returns all configured count/gauge/rate/distribution metric names + # (with additional filters if specified). # @param [Hash] opts the optional parameters # @option opts [Boolean] :filter_configured Filter metrics that have configured tags. # @option opts [String] :filter_tags_configured Filter tag configurations by configured tags. - # @option opts [MetricTagConfigurationMetricTypes] :filter_metric_type Filter tag configurations by metric type. (default to 'gauge') + # @option opts [MetricTagConfigurationMetricTypes] :filter_metric_type Filter tag configurations by metric type. # @option opts [Boolean] :filter_include_percentiles Filter distributions with additional percentile aggregations enabled or disabled. # @option opts [String] :filter_tags Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Cannot be combined with other filters. # @option opts [Integer] :window_seconds The number of seconds of look back (from now) to apply to a filter[tag] query. Defaults value is 3600 (1 hour), maximum value is 172,800 (2 days). @@ -265,7 +275,8 @@ def list_tag_configurations(opts = {}) end # List tag configurations - # Returns all configured count/gauge/rate/distribution metric names (with additional filters if specified). + # Returns all configured count/gauge/rate/distribution metric names + # (with additional filters if specified). # @param [Hash] opts the optional parameters # @option opts [Boolean] :filter_configured Filter metrics that have configured tags. # @option opts [String] :filter_tags_configured Filter tag configurations by configured tags. @@ -315,7 +326,7 @@ def list_tag_configurations_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'MetricsAndMetricTagConfigurationsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_tag_configurations, @@ -368,7 +379,7 @@ def list_tags_by_metric_name_with_http_info(metric_name, opts = {}) fail ArgumentError, "Missing the required parameter 'metric_name' when calling MetricsAPI.list_tags_by_metric_name" end # resource path - local_var_path = '/api/v2/metrics/{metric_name}/all-tags'.sub('{' + 'metric_name' + '}', CGI.escape(metric_name.to_s)) + local_var_path = '/api/v2/metrics/{metric_name}/all-tags'.sub('{metric_name}', CGI.escape(metric_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -388,7 +399,7 @@ def list_tags_by_metric_name_with_http_info(metric_name, opts = {}) return_type = opts[:debug_return_type] || 'MetricAllTagsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_tags_by_metric_name, @@ -408,7 +419,11 @@ def list_tags_by_metric_name_with_http_info(metric_name, opts = {}) end # List distinct metric volumes by metric name - # View distinct metrics volumes for the given metric name. Custom distribution metrics will return both ingested and indexed custom metric volumes. For Metrics without Limits™ beta customers, all metrics will return both ingested/indexed volumes. Custom metrics generated in-app from other products will return `null` for ingested volumes. + # View distinct metrics volumes for the given metric name. + # + # Custom distribution metrics will return both ingested and indexed custom metric volumes. + # For Metrics without Limits™ beta customers, all metrics will return both ingested/indexed volumes. + # Custom metrics generated in-app from other products will return `null` for ingested volumes. # @param metric_name [String] The name of the metric. # @param [Hash] opts the optional parameters # @return [MetricVolumesResponse] @@ -418,7 +433,11 @@ def list_volumes_by_metric_name(metric_name, opts = {}) end # List distinct metric volumes by metric name - # View distinct metrics volumes for the given metric name. Custom distribution metrics will return both ingested and indexed custom metric volumes. For Metrics without Limits&trade; beta customers, all metrics will return both ingested/indexed volumes. Custom metrics generated in-app from other products will return `null` for ingested volumes. + # View distinct metrics volumes for the given metric name. + # + # Custom distribution metrics will return both ingested and indexed custom metric volumes. + # For Metrics without Limits™ beta customers, all metrics will return both ingested/indexed volumes. + # Custom metrics generated in-app from other products will return `null` for ingested volumes. # @param metric_name [String] The name of the metric. # @param [Hash] opts the optional parameters # @return [Array<(MetricVolumesResponse, Integer, Hash)>] MetricVolumesResponse data, response status code and response headers @@ -441,7 +460,7 @@ def list_volumes_by_metric_name_with_http_info(metric_name, opts = {}) fail ArgumentError, "Missing the required parameter 'metric_name' when calling MetricsAPI.list_volumes_by_metric_name" end # resource path - local_var_path = '/api/v2/metrics/{metric_name}/volumes'.sub('{' + 'metric_name' + '}', CGI.escape(metric_name.to_s)) + local_var_path = '/api/v2/metrics/{metric_name}/volumes'.sub('{metric_name}', CGI.escape(metric_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -461,7 +480,7 @@ def list_volumes_by_metric_name_with_http_info(metric_name, opts = {}) return_type = opts[:debug_return_type] || 'MetricVolumesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_volumes_by_metric_name, @@ -481,7 +500,9 @@ def list_volumes_by_metric_name_with_http_info(metric_name, opts = {}) end # Update a tag configuration - # Update the tag configuration of a metric or percentile aggregations of a distribution metric or custom aggregations of a count, rate, or gauge metric. Can only be used with application keys from users with the `Manage Tags for Metrics` permission. + # Update the tag configuration of a metric or percentile aggregations of a distribution metric or custom aggregations + # of a count, rate, or gauge metric. + # Can only be used with application keys from users with the `Manage Tags for Metrics` permission. # @param metric_name [String] The name of the metric. # @param body [MetricTagConfigurationUpdateRequest] # @param [Hash] opts the optional parameters @@ -492,7 +513,9 @@ def update_tag_configuration(metric_name, body, opts = {}) end # Update a tag configuration - # Update the tag configuration of a metric or percentile aggregations of a distribution metric or custom aggregations of a count, rate, or gauge metric. Can only be used with application keys from users with the `Manage Tags for Metrics` permission. + # Update the tag configuration of a metric or percentile aggregations of a distribution metric or custom aggregations + # of a count, rate, or gauge metric. + # Can only be used with application keys from users with the `Manage Tags for Metrics` permission. # @param metric_name [String] The name of the metric. # @param body [MetricTagConfigurationUpdateRequest] # @param [Hash] opts the optional parameters @@ -520,7 +543,7 @@ def update_tag_configuration_with_http_info(metric_name, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling MetricsAPI.update_tag_configuration" end # resource path - local_var_path = '/api/v2/metrics/{metric_name}/tags'.sub('{' + 'metric_name' + '}', CGI.escape(metric_name.to_s)) + local_var_path = '/api/v2/metrics/{metric_name}/tags'.sub('{metric_name}', CGI.escape(metric_name.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/datadog_api_client/v2/api/processes_api.rb b/lib/datadog_api_client/v2/api/processes_api.rb index 88b36fde5e4..7546d033875 100644 --- a/lib/datadog_api_client/v2/api/processes_api.rb +++ b/lib/datadog_api_client/v2/api/processes_api.rb @@ -22,15 +22,16 @@ class ProcessesAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Get all processes # Get all processes for your organization. # @param [Hash] opts the optional parameters # @option opts [String] :search String to search processes by. # @option opts [String] :tags Comma-separated list of tags to filter processes by. - # @option opts [Integer] :from Unix timestamp (number of seconds since epoch) of the start of the query window. If not provided, the start of the query window will be 15 minutes before the `to` timestamp. If neither `from` nor `to` are provided, the query window will be `[now - 15m, now]`. - # @option opts [Integer] :to Unix timestamp (number of seconds since epoch) of the end of the query window. If not provided, the end of the query window will be 15 minutes after the `from` timestamp. If neither `from` nor `to` are provided, the query window will be `[now - 15m, now]`. - # @option opts [Integer] :page_limit Maximum number of results returned. (default to 1000) - # @option opts [String] :page_cursor String to query the next page of results. This key is provided with each valid response from the API in `meta.page.after`. + # @option opts [Integer] :from Unix timestamp (number of seconds since epoch) of the start of the query window. If not provided, the start of the query window will be 15 minutes before the `to` timestamp. If neither `from` nor `to` are provided, the query window will be `[now - 15m, now]`. + # @option opts [Integer] :to Unix timestamp (number of seconds since epoch) of the end of the query window. If not provided, the end of the query window will be 15 minutes after the `from` timestamp. If neither `from` nor `to` are provided, the query window will be `[now - 15m, now]`. + # @option opts [Integer] :page_limit Maximum number of results returned. + # @option opts [String] :page_cursor String to query the next page of results. This key is provided with each valid response from the API in `meta.page.after`. # @return [ProcessSummariesResponse] def list_processes(opts = {}) data, _status_code, _headers = list_processes_with_http_info(opts) @@ -42,10 +43,10 @@ def list_processes(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :search String to search processes by. # @option opts [String] :tags Comma-separated list of tags to filter processes by. - # @option opts [Integer] :from Unix timestamp (number of seconds since epoch) of the start of the query window. If not provided, the start of the query window will be 15 minutes before the `to` timestamp. If neither `from` nor `to` are provided, the query window will be `[now - 15m, now]`. - # @option opts [Integer] :to Unix timestamp (number of seconds since epoch) of the end of the query window. If not provided, the end of the query window will be 15 minutes after the `from` timestamp. If neither `from` nor `to` are provided, the query window will be `[now - 15m, now]`. + # @option opts [Integer] :from Unix timestamp (number of seconds since epoch) of the start of the query window. If not provided, the start of the query window will be 15 minutes before the `to` timestamp. If neither `from` nor `to` are provided, the query window will be `[now - 15m, now]`. + # @option opts [Integer] :to Unix timestamp (number of seconds since epoch) of the end of the query window. If not provided, the end of the query window will be 15 minutes after the `from` timestamp. If neither `from` nor `to` are provided, the query window will be `[now - 15m, now]`. # @option opts [Integer] :page_limit Maximum number of results returned. - # @option opts [String] :page_cursor String to query the next page of results. This key is provided with each valid response from the API in `meta.page.after`. + # @option opts [String] :page_cursor String to query the next page of results. This key is provided with each valid response from the API in `meta.page.after`. # @return [Array<(ProcessSummariesResponse, Integer, Hash)>] ProcessSummariesResponse data, response status code and response headers def list_processes_with_http_info(opts = {}) @@ -61,14 +62,6 @@ def list_processes_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProcessesAPI.list_processes ...' end - if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] > 10000 - fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling ProcessesAPI.list_processes, must be smaller than or equal to 10000.' - end - - if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] < 1 - fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling ProcessesAPI.list_processes, must be greater than or equal to 1.' - end - # resource path local_var_path = '/api/v2/processes' @@ -96,7 +89,7 @@ def list_processes_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ProcessSummariesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_processes, diff --git a/lib/datadog_api_client/v2/api/roles_api.rb b/lib/datadog_api_client/v2/api/roles_api.rb index 8f3c2a4295d..567ac21e97a 100644 --- a/lib/datadog_api_client/v2/api/roles_api.rb +++ b/lib/datadog_api_client/v2/api/roles_api.rb @@ -22,6 +22,7 @@ class RolesAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Grant permission to a role # Adds a permission to a role. # @param role_id [String] The ID of the role. @@ -62,7 +63,7 @@ def add_permission_to_role_with_http_info(role_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling RolesAPI.add_permission_to_role" end # resource path - local_var_path = '/api/v2/roles/{role_id}/permissions'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s)) + local_var_path = '/api/v2/roles/{role_id}/permissions'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -84,7 +85,7 @@ def add_permission_to_role_with_http_info(role_id, body, opts = {}) return_type = opts[:debug_return_type] || 'PermissionsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :add_permission_to_role, @@ -143,7 +144,7 @@ def add_user_to_role_with_http_info(role_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling RolesAPI.add_user_to_role" end # resource path - local_var_path = '/api/v2/roles/{role_id}/users'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s)) + local_var_path = '/api/v2/roles/{role_id}/users'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -165,7 +166,7 @@ def add_user_to_role_with_http_info(role_id, body, opts = {}) return_type = opts[:debug_return_type] || 'UsersResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :add_user_to_role, @@ -224,7 +225,7 @@ def clone_role_with_http_info(role_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling RolesAPI.clone_role" end # resource path - local_var_path = '/api/v2/roles/{role_id}/clone'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s)) + local_var_path = '/api/v2/roles/{role_id}/clone'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -246,7 +247,7 @@ def clone_role_with_http_info(role_id, body, opts = {}) return_type = opts[:debug_return_type] || 'RoleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :clone_role, @@ -321,7 +322,7 @@ def create_role_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'RoleCreateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_role, @@ -374,7 +375,7 @@ def delete_role_with_http_info(role_id, opts = {}) fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesAPI.delete_role" end # resource path - local_var_path = '/api/v2/roles/{role_id}'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s)) + local_var_path = '/api/v2/roles/{role_id}'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -382,7 +383,7 @@ def delete_role_with_http_info(role_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -394,7 +395,7 @@ def delete_role_with_http_info(role_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_role, @@ -424,7 +425,7 @@ def get_role(role_id, opts = {}) end # Get a role - # Get a role in the organization specified by the role’s `role_id`. + # Get a role in the organization specified by the role’s `role_id`. # @param role_id [String] The ID of the role. # @param [Hash] opts the optional parameters # @return [Array<(RoleResponse, Integer, Hash)>] RoleResponse data, response status code and response headers @@ -447,7 +448,7 @@ def get_role_with_http_info(role_id, opts = {}) fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesAPI.get_role" end # resource path - local_var_path = '/api/v2/roles/{role_id}'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s)) + local_var_path = '/api/v2/roles/{role_id}'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -467,7 +468,7 @@ def get_role_with_http_info(role_id, opts = {}) return_type = opts[:debug_return_type] || 'RoleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_role, @@ -534,7 +535,7 @@ def list_permissions_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'PermissionsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_permissions, @@ -587,7 +588,7 @@ def list_role_permissions_with_http_info(role_id, opts = {}) fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesAPI.list_role_permissions" end # resource path - local_var_path = '/api/v2/roles/{role_id}/permissions'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s)) + local_var_path = '/api/v2/roles/{role_id}/permissions'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -607,7 +608,7 @@ def list_role_permissions_with_http_info(role_id, opts = {}) return_type = opts[:debug_return_type] || 'PermissionsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_role_permissions, @@ -626,49 +627,43 @@ def list_role_permissions_with_http_info(role_id, opts = {}) return data, status_code, headers end - # Get all users of a role - # Gets all users of a role. - # @param role_id [String] The ID of the role. + # List roles + # Returns all roles, including their names and IDs. # @param [Hash] opts the optional parameters - # @option opts [Integer] :page_size Size for a given page. (default to 10) - # @option opts [Integer] :page_number Specific page number to return. (default to 0) - # @option opts [String] :sort User attribute to order results by. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `email`, `status`. (default to 'name') - # @option opts [String] :filter Filter all users by the given string. Defaults to no filtering. - # @return [UsersResponse] - def list_role_users(role_id, opts = {}) - data, _status_code, _headers = list_role_users_with_http_info(role_id, opts) + # @option opts [Integer] :page_size Size for a given page. + # @option opts [Integer] :page_number Specific page number to return. + # @option opts [RolesSort] :sort Sort roles depending on the given field. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example: `sort=-name`. + # @option opts [String] :filter Filter all roles by the given string. + # @return [RolesResponse] + def list_roles(opts = {}) + data, _status_code, _headers = list_roles_with_http_info(opts) data end - # Get all users of a role - # Gets all users of a role. - # @param role_id [String] The ID of the role. + # List roles + # Returns all roles, including their names and IDs. # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. - # @option opts [String] :sort User attribute to order results by. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `email`, `status`. - # @option opts [String] :filter Filter all users by the given string. Defaults to no filtering. - # @return [Array<(UsersResponse, Integer, Hash)>] UsersResponse data, response status code and response headers - def list_role_users_with_http_info(role_id, opts = {}) + # @option opts [RolesSort] :sort Sort roles depending on the given field. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example: `sort=-name`. + # @option opts [String] :filter Filter all roles by the given string. + # @return [Array<(RolesResponse, Integer, Hash)>] RolesResponse data, response status code and response headers + def list_roles_with_http_info(opts = {}) - if @api_client.config.unstable_operations.has_key?(:list_role_users) - unstable_enabled = @api_client.config.unstable_operations[:list_role_users] + if @api_client.config.unstable_operations.has_key?(:list_roles) + unstable_enabled = @api_client.config.unstable_operations[:list_roles] if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "list_role_users") + @api_client.config.logger.warn format("Using unstable operation '%s'", "list_roles") else - raise APIError.new(message: format("Unstable operation '%s' is disabled", "list_role_users")) + raise APIError.new(message: format("Unstable operation '%s' is disabled", "list_roles")) end end if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: RolesAPI.list_role_users ...' - end - # verify the required parameter 'role_id' is set - if @api_client.config.client_side_validation && role_id.nil? - fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesAPI.list_role_users" + @api_client.config.logger.debug 'Calling API: RolesAPI.list_roles ...' end # resource path - local_var_path = '/api/v2/roles/{role_id}/users'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s)) + local_var_path = '/api/v2/roles' # query parameters query_params = opts[:query_params] || {} @@ -689,13 +684,13 @@ def list_role_users_with_http_info(role_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'UsersResponse' + return_type = opts[:debug_return_type] || 'RolesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( - :operation => :list_role_users, + :operation => :list_roles, :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -706,48 +701,54 @@ def list_role_users_with_http_info(role_id, opts = {}) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: RolesAPI#list_role_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RolesAPI#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # List roles - # Returns all roles, including their names and IDs. + # Get all users of a role + # Gets all users of a role. + # @param role_id [String] The ID of the role. # @param [Hash] opts the optional parameters - # @option opts [Integer] :page_size Size for a given page. (default to 10) - # @option opts [Integer] :page_number Specific page number to return. (default to 0) - # @option opts [RolesSort] :sort Sort roles depending on the given field. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example: `sort=-name`. (default to 'name') - # @option opts [String] :filter Filter all roles by the given string. - # @return [RolesResponse] - def list_roles(opts = {}) - data, _status_code, _headers = list_roles_with_http_info(opts) + # @option opts [Integer] :page_size Size for a given page. + # @option opts [Integer] :page_number Specific page number to return. + # @option opts [String] :sort User attribute to order results by. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `email`, `status`. + # @option opts [String] :filter Filter all users by the given string. Defaults to no filtering. + # @return [UsersResponse] + def list_role_users(role_id, opts = {}) + data, _status_code, _headers = list_role_users_with_http_info(role_id, opts) data end - # List roles - # Returns all roles, including their names and IDs. + # Get all users of a role + # Gets all users of a role. + # @param role_id [String] The ID of the role. # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. - # @option opts [RolesSort] :sort Sort roles depending on the given field. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example: `sort=-name`. - # @option opts [String] :filter Filter all roles by the given string. - # @return [Array<(RolesResponse, Integer, Hash)>] RolesResponse data, response status code and response headers - def list_roles_with_http_info(opts = {}) + # @option opts [String] :sort User attribute to order results by. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `email`, `status`. + # @option opts [String] :filter Filter all users by the given string. Defaults to no filtering. + # @return [Array<(UsersResponse, Integer, Hash)>] UsersResponse data, response status code and response headers + def list_role_users_with_http_info(role_id, opts = {}) - if @api_client.config.unstable_operations.has_key?(:list_roles) - unstable_enabled = @api_client.config.unstable_operations[:list_roles] + if @api_client.config.unstable_operations.has_key?(:list_role_users) + unstable_enabled = @api_client.config.unstable_operations[:list_role_users] if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "list_roles") + @api_client.config.logger.warn format("Using unstable operation '%s'", "list_role_users") else - raise APIError.new(message: format("Unstable operation '%s' is disabled", "list_roles")) + raise APIError.new(message: format("Unstable operation '%s' is disabled", "list_role_users")) end end if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: RolesAPI.list_roles ...' + @api_client.config.logger.debug 'Calling API: RolesAPI.list_role_users ...' + end + # verify the required parameter 'role_id' is set + if @api_client.config.client_side_validation && role_id.nil? + fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesAPI.list_role_users" end # resource path - local_var_path = '/api/v2/roles' + local_var_path = '/api/v2/roles/{role_id}/users'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -768,13 +769,13 @@ def list_roles_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'RolesResponse' + return_type = opts[:debug_return_type] || 'UsersResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( - :operation => :list_roles, + :operation => :list_role_users, :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -785,7 +786,7 @@ def list_roles_with_http_info(opts = {}) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: RolesAPI#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: RolesAPI#list_role_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end @@ -830,7 +831,7 @@ def remove_permission_from_role_with_http_info(role_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling RolesAPI.remove_permission_from_role" end # resource path - local_var_path = '/api/v2/roles/{role_id}/permissions'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s)) + local_var_path = '/api/v2/roles/{role_id}/permissions'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -852,7 +853,7 @@ def remove_permission_from_role_with_http_info(role_id, body, opts = {}) return_type = opts[:debug_return_type] || 'PermissionsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :remove_permission_from_role, @@ -911,7 +912,7 @@ def remove_user_from_role_with_http_info(role_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling RolesAPI.remove_user_from_role" end # resource path - local_var_path = '/api/v2/roles/{role_id}/users'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s)) + local_var_path = '/api/v2/roles/{role_id}/users'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -933,7 +934,7 @@ def remove_user_from_role_with_http_info(role_id, body, opts = {}) return_type = opts[:debug_return_type] || 'UsersResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :remove_user_from_role, @@ -992,7 +993,7 @@ def update_role_with_http_info(role_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling RolesAPI.update_role" end # resource path - local_var_path = '/api/v2/roles/{role_id}'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s)) + local_var_path = '/api/v2/roles/{role_id}'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -1014,7 +1015,7 @@ def update_role_with_http_info(role_id, body, opts = {}) return_type = opts[:debug_return_type] || 'RoleUpdateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_role, diff --git a/lib/datadog_api_client/v2/api/security_monitoring_api.rb b/lib/datadog_api_client/v2/api/security_monitoring_api.rb index 1a06ccb3e4f..60a3ecfbdc4 100644 --- a/lib/datadog_api_client/v2/api/security_monitoring_api.rb +++ b/lib/datadog_api_client/v2/api/security_monitoring_api.rb @@ -22,8 +22,12 @@ class SecurityMonitoringAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create a security filter - # Create a security filter. See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) for more examples. + # Create a security filter. + # + # See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) + # for more examples. # @param body [SecurityFilterCreateRequest] The definition of the new security filter. # @param [Hash] opts the optional parameters # @return [SecurityFilterResponse] @@ -33,7 +37,10 @@ def create_security_filter(body, opts = {}) end # Create a security filter - # Create a security filter. See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) for more examples. + # Create a security filter. + # + # See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) + # for more examples. # @param body [SecurityFilterCreateRequest] The definition of the new security filter. # @param [Hash] opts the optional parameters # @return [Array<(SecurityFilterResponse, Integer, Hash)>] SecurityFilterResponse data, response status code and response headers @@ -78,7 +85,7 @@ def create_security_filter_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SecurityFilterResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_security_filter, @@ -153,7 +160,7 @@ def create_security_monitoring_rule_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SecurityMonitoringRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_security_monitoring_rule, @@ -206,7 +213,7 @@ def delete_security_filter_with_http_info(security_filter_id, opts = {}) fail ArgumentError, "Missing the required parameter 'security_filter_id' when calling SecurityMonitoringAPI.delete_security_filter" end # resource path - local_var_path = '/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}'.sub('{' + 'security_filter_id' + '}', CGI.escape(security_filter_id.to_s)) + local_var_path = '/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}'.sub('{security_filter_id}', CGI.escape(security_filter_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -214,7 +221,7 @@ def delete_security_filter_with_http_info(security_filter_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -226,7 +233,7 @@ def delete_security_filter_with_http_info(security_filter_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_security_filter, @@ -279,7 +286,7 @@ def delete_security_monitoring_rule_with_http_info(rule_id, opts = {}) fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.delete_security_monitoring_rule" end # resource path - local_var_path = '/api/v2/security_monitoring/rules/{rule_id}'.sub('{' + 'rule_id' + '}', CGI.escape(rule_id.to_s)) + local_var_path = '/api/v2/security_monitoring/rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -287,7 +294,7 @@ def delete_security_monitoring_rule_with_http_info(rule_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -299,7 +306,7 @@ def delete_security_monitoring_rule_with_http_info(rule_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_security_monitoring_rule, @@ -319,7 +326,10 @@ def delete_security_monitoring_rule_with_http_info(rule_id, opts = {}) end # Get a security filter - # Get the details of a specific security filter. See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) for more examples. + # Get the details of a specific security filter. + # + # See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) + # for more examples. # @param security_filter_id [String] The ID of the security filter. # @param [Hash] opts the optional parameters # @return [SecurityFilterResponse] @@ -329,7 +339,10 @@ def get_security_filter(security_filter_id, opts = {}) end # Get a security filter - # Get the details of a specific security filter. See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) for more examples. + # Get the details of a specific security filter. + # + # See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) + # for more examples. # @param security_filter_id [String] The ID of the security filter. # @param [Hash] opts the optional parameters # @return [Array<(SecurityFilterResponse, Integer, Hash)>] SecurityFilterResponse data, response status code and response headers @@ -352,7 +365,7 @@ def get_security_filter_with_http_info(security_filter_id, opts = {}) fail ArgumentError, "Missing the required parameter 'security_filter_id' when calling SecurityMonitoringAPI.get_security_filter" end # resource path - local_var_path = '/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}'.sub('{' + 'security_filter_id' + '}', CGI.escape(security_filter_id.to_s)) + local_var_path = '/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}'.sub('{security_filter_id}', CGI.escape(security_filter_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -372,7 +385,7 @@ def get_security_filter_with_http_info(security_filter_id, opts = {}) return_type = opts[:debug_return_type] || 'SecurityFilterResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_security_filter, @@ -401,8 +414,8 @@ def get_security_monitoring_rule(rule_id, opts = {}) data end - # Get a rule's details - # Get a rule's details. + # Get a rule's details + # Get a rule's details. # @param rule_id [String] The ID of the rule. # @param [Hash] opts the optional parameters # @return [Array<(SecurityMonitoringRuleResponse, Integer, Hash)>] SecurityMonitoringRuleResponse data, response status code and response headers @@ -425,7 +438,7 @@ def get_security_monitoring_rule_with_http_info(rule_id, opts = {}) fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.get_security_monitoring_rule" end # resource path - local_var_path = '/api/v2/security_monitoring/rules/{rule_id}'.sub('{' + 'rule_id' + '}', CGI.escape(rule_id.to_s)) + local_var_path = '/api/v2/security_monitoring/rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -445,7 +458,7 @@ def get_security_monitoring_rule_with_http_info(rule_id, opts = {}) return_type = opts[:debug_return_type] || 'SecurityMonitoringRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_security_monitoring_rule, @@ -512,7 +525,7 @@ def list_security_filters_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'SecurityFiltersResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_security_filters, @@ -534,8 +547,8 @@ def list_security_filters_with_http_info(opts = {}) # List rules # List rules. # @param [Hash] opts the optional parameters - # @option opts [Integer] :page_size Size for a given page. (default to 10) - # @option opts [Integer] :page_number Specific page number to return. (default to 0) + # @option opts [Integer] :page_size Size for a given page. + # @option opts [Integer] :page_number Specific page number to return. # @return [SecurityMonitoringListRulesResponse] def list_security_monitoring_rules(opts = {}) data, _status_code, _headers = list_security_monitoring_rules_with_http_info(opts) @@ -585,7 +598,7 @@ def list_security_monitoring_rules_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'SecurityMonitoringListRulesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_security_monitoring_rules, @@ -605,14 +618,16 @@ def list_security_monitoring_rules_with_http_info(opts = {}) end # Get a quick list of security signals - # The list endpoint returns security signals that match a search query. Both this endpoint and the POST endpoint can be used interchangeably when listing security signals. + # The list endpoint returns security signals that match a search query. + # Both this endpoint and the POST endpoint can be used interchangeably when listing + # security signals. # @param [Hash] opts the optional parameters # @option opts [String] :filter_query The search query for security signals. # @option opts [Time] :filter_from The minimum timestamp for requested security signals. # @option opts [Time] :filter_to The maximum timestamp for requested security signals. # @option opts [SecurityMonitoringSignalsSort] :sort The order of the security signals in results. # @option opts [String] :page_cursor A list of results using the cursor provided in the previous query. - # @option opts [Integer] :page_limit The maximum number of security signals in the response. (default to 10) + # @option opts [Integer] :page_limit The maximum number of security signals in the response. # @return [SecurityMonitoringSignalsListResponse] def list_security_monitoring_signals(opts = {}) data, _status_code, _headers = list_security_monitoring_signals_with_http_info(opts) @@ -620,7 +635,9 @@ def list_security_monitoring_signals(opts = {}) end # Get a quick list of security signals - # The list endpoint returns security signals that match a search query. Both this endpoint and the POST endpoint can be used interchangeably when listing security signals. + # The list endpoint returns security signals that match a search query. + # Both this endpoint and the POST endpoint can be used interchangeably when listing + # security signals. # @param [Hash] opts the optional parameters # @option opts [String] :filter_query The search query for security signals. # @option opts [Time] :filter_from The minimum timestamp for requested security signals. @@ -643,10 +660,6 @@ def list_security_monitoring_signals_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.list_security_monitoring_signals ...' end - if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] > 1000 - fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling SecurityMonitoringAPI.list_security_monitoring_signals, must be smaller than or equal to 1000.' - end - # resource path local_var_path = '/api/v2/security_monitoring/signals' @@ -674,7 +687,7 @@ def list_security_monitoring_signals_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'SecurityMonitoringSignalsListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_security_monitoring_signals, @@ -694,7 +707,9 @@ def list_security_monitoring_signals_with_http_info(opts = {}) end # Get a list of security signals - # Returns security signals that match a search query. Both this endpoint and the GET endpoint can be used interchangeably for listing security signals. + # Returns security signals that match a search query. + # Both this endpoint and the GET endpoint can be used interchangeably for listing + # security signals. # @param [Hash] opts the optional parameters # @option opts [SecurityMonitoringSignalListRequest] :body # @return [SecurityMonitoringSignalsListResponse] @@ -704,7 +719,9 @@ def search_security_monitoring_signals(opts = {}) end # Get a list of security signals - # Returns security signals that match a search query. Both this endpoint and the GET endpoint can be used interchangeably for listing security signals. + # Returns security signals that match a search query. + # Both this endpoint and the GET endpoint can be used interchangeably for listing + # security signals. # @param [Hash] opts the optional parameters # @option opts [SecurityMonitoringSignalListRequest] :body # @return [Array<(SecurityMonitoringSignalsListResponse, Integer, Hash)>] SecurityMonitoringSignalsListResponse data, response status code and response headers @@ -745,7 +762,7 @@ def search_security_monitoring_signals_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'SecurityMonitoringSignalsListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :search_security_monitoring_signals, @@ -765,7 +782,8 @@ def search_security_monitoring_signals_with_http_info(opts = {}) end # Update a security filter - # Update a specific security filter. Returns the security filter object when the request is successful. + # Update a specific security filter. + # Returns the security filter object when the request is successful. # @param security_filter_id [String] The ID of the security filter. # @param body [SecurityFilterUpdateRequest] New definition of the security filter. # @param [Hash] opts the optional parameters @@ -776,7 +794,8 @@ def update_security_filter(security_filter_id, body, opts = {}) end # Update a security filter - # Update a specific security filter. Returns the security filter object when the request is successful. + # Update a specific security filter. + # Returns the security filter object when the request is successful. # @param security_filter_id [String] The ID of the security filter. # @param body [SecurityFilterUpdateRequest] New definition of the security filter. # @param [Hash] opts the optional parameters @@ -804,7 +823,7 @@ def update_security_filter_with_http_info(security_filter_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.update_security_filter" end # resource path - local_var_path = '/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}'.sub('{' + 'security_filter_id' + '}', CGI.escape(security_filter_id.to_s)) + local_var_path = '/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}'.sub('{security_filter_id}', CGI.escape(security_filter_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -826,7 +845,7 @@ def update_security_filter_with_http_info(security_filter_id, body, opts = {}) return_type = opts[:debug_return_type] || 'SecurityFilterResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_security_filter, @@ -846,7 +865,9 @@ def update_security_filter_with_http_info(security_filter_id, body, opts = {}) end # Update an existing rule - # Update an existing rule. When updating `cases`, `queries` or `options`, the whole field must be included. For example, when modifying a query all queries must be included. Default rules can only be updated to be enabled and to change notifications. + # Update an existing rule. When updating `cases`, `queries` or `options`, the whole field + # must be included. For example, when modifying a query all queries must be included. + # Default rules can only be updated to be enabled and to change notifications. # @param rule_id [String] The ID of the rule. # @param body [SecurityMonitoringRuleUpdatePayload] # @param [Hash] opts the optional parameters @@ -857,7 +878,9 @@ def update_security_monitoring_rule(rule_id, body, opts = {}) end # Update an existing rule - # Update an existing rule. When updating `cases`, `queries` or `options`, the whole field must be included. For example, when modifying a query all queries must be included. Default rules can only be updated to be enabled and to change notifications. + # Update an existing rule. When updating `cases`, `queries` or `options`, the whole field + # must be included. For example, when modifying a query all queries must be included. + # Default rules can only be updated to be enabled and to change notifications. # @param rule_id [String] The ID of the rule. # @param body [SecurityMonitoringRuleUpdatePayload] # @param [Hash] opts the optional parameters @@ -885,7 +908,7 @@ def update_security_monitoring_rule_with_http_info(rule_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.update_security_monitoring_rule" end # resource path - local_var_path = '/api/v2/security_monitoring/rules/{rule_id}'.sub('{' + 'rule_id' + '}', CGI.escape(rule_id.to_s)) + local_var_path = '/api/v2/security_monitoring/rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -907,7 +930,7 @@ def update_security_monitoring_rule_with_http_info(rule_id, body, opts = {}) return_type = opts[:debug_return_type] || 'SecurityMonitoringRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_security_monitoring_rule, diff --git a/lib/datadog_api_client/v2/api/service_accounts_api.rb b/lib/datadog_api_client/v2/api/service_accounts_api.rb index 2252de02940..f9b2e0dc2c2 100644 --- a/lib/datadog_api_client/v2/api/service_accounts_api.rb +++ b/lib/datadog_api_client/v2/api/service_accounts_api.rb @@ -22,6 +22,7 @@ class ServiceAccountsAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create an application key for this service account # Create an application key for this service account. # @param service_account_id [String] The ID of the service account. @@ -62,7 +63,7 @@ def create_service_account_application_key_with_http_info(service_account_id, bo fail ArgumentError, "Missing the required parameter 'body' when calling ServiceAccountsAPI.create_service_account_application_key" end # resource path - local_var_path = '/api/v2/service_accounts/{service_account_id}/application_keys'.sub('{' + 'service_account_id' + '}', CGI.escape(service_account_id.to_s)) + local_var_path = '/api/v2/service_accounts/{service_account_id}/application_keys'.sub('{service_account_id}', CGI.escape(service_account_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -143,7 +144,7 @@ def delete_service_account_application_key_with_http_info(service_account_id, ap fail ArgumentError, "Missing the required parameter 'app_key_id' when calling ServiceAccountsAPI.delete_service_account_application_key" end # resource path - local_var_path = '/api/v2/service_accounts/{service_account_id}/application_keys/{app_key_id}'.sub('{' + 'service_account_id' + '}', CGI.escape(service_account_id.to_s)).sub('{' + 'app_key_id' + '}', CGI.escape(app_key_id.to_s)) + local_var_path = '/api/v2/service_accounts/{service_account_id}/application_keys/{app_key_id}'.sub('{service_account_id}', CGI.escape(service_account_id.to_s).gsub('%2F', '/')).sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -151,7 +152,7 @@ def delete_service_account_application_key_with_http_info(service_account_id, ap # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -222,7 +223,7 @@ def get_service_account_application_key_with_http_info(service_account_id, app_k fail ArgumentError, "Missing the required parameter 'app_key_id' when calling ServiceAccountsAPI.get_service_account_application_key" end # resource path - local_var_path = '/api/v2/service_accounts/{service_account_id}/application_keys/{app_key_id}'.sub('{' + 'service_account_id' + '}', CGI.escape(service_account_id.to_s)).sub('{' + 'app_key_id' + '}', CGI.escape(app_key_id.to_s)) + local_var_path = '/api/v2/service_accounts/{service_account_id}/application_keys/{app_key_id}'.sub('{service_account_id}', CGI.escape(service_account_id.to_s).gsub('%2F', '/')).sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -265,9 +266,9 @@ def get_service_account_application_key_with_http_info(service_account_id, app_k # List all application keys available for this service account. # @param service_account_id [String] The ID of the service account. # @param [Hash] opts the optional parameters - # @option opts [Integer] :page_size Size for a given page. (default to 10) - # @option opts [Integer] :page_number Specific page number to return. (default to 0) - # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. (default to 'name') + # @option opts [Integer] :page_size Size for a given page. + # @option opts [Integer] :page_number Specific page number to return. + # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. # @option opts [String] :filter Filter application keys by the specified string. # @option opts [String] :filter_created_at_start Only include application keys created on or after the specified date. # @option opts [String] :filter_created_at_end Only include application keys created on or before the specified date. @@ -307,7 +308,7 @@ def list_service_account_application_keys_with_http_info(service_account_id, opt fail ArgumentError, "Missing the required parameter 'service_account_id' when calling ServiceAccountsAPI.list_service_account_application_keys" end # resource path - local_var_path = '/api/v2/service_accounts/{service_account_id}/application_keys'.sub('{' + 'service_account_id' + '}', CGI.escape(service_account_id.to_s)) + local_var_path = '/api/v2/service_accounts/{service_account_id}/application_keys'.sub('{service_account_id}', CGI.escape(service_account_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -398,7 +399,7 @@ def update_service_account_application_key_with_http_info(service_account_id, ap fail ArgumentError, "Missing the required parameter 'body' when calling ServiceAccountsAPI.update_service_account_application_key" end # resource path - local_var_path = '/api/v2/service_accounts/{service_account_id}/application_keys/{app_key_id}'.sub('{' + 'service_account_id' + '}', CGI.escape(service_account_id.to_s)).sub('{' + 'app_key_id' + '}', CGI.escape(app_key_id.to_s)) + local_var_path = '/api/v2/service_accounts/{service_account_id}/application_keys/{app_key_id}'.sub('{service_account_id}', CGI.escape(service_account_id.to_s).gsub('%2F', '/')).sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} diff --git a/lib/datadog_api_client/v2/api/users_api.rb b/lib/datadog_api_client/v2/api/users_api.rb index 8e86c02d862..0f7e60ab0d8 100644 --- a/lib/datadog_api_client/v2/api/users_api.rb +++ b/lib/datadog_api_client/v2/api/users_api.rb @@ -22,6 +22,7 @@ class UsersAPI def initialize(api_client = APIClient.default) @api_client = api_client end + # Create a service account # Create a service account for your organization. # @param body [ServiceAccountCreateRequest] @@ -153,7 +154,7 @@ def create_user_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'UserResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_user, @@ -173,7 +174,8 @@ def create_user_with_http_info(body, opts = {}) end # Disable a user - # Disable a user. Can only be used with an application key belonging to an administrator user. + # Disable a user. Can only be used with an application key belonging + # to an administrator user. # @param user_id [String] The ID of the user. # @param [Hash] opts the optional parameters # @return [nil] @@ -183,7 +185,8 @@ def disable_user(user_id, opts = {}) end # Disable a user - # Disable a user. Can only be used with an application key belonging to an administrator user. + # Disable a user. Can only be used with an application key belonging + # to an administrator user. # @param user_id [String] The ID of the user. # @param [Hash] opts the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers @@ -206,7 +209,7 @@ def disable_user_with_http_info(user_id, opts = {}) fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersAPI.disable_user" end # resource path - local_var_path = '/api/v2/users/{user_id}'.sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s)) + local_var_path = '/api/v2/users/{user_id}'.sub('{user_id}', CGI.escape(user_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -214,7 +217,7 @@ def disable_user_with_http_info(user_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = opts[:form_params] || {} @@ -226,7 +229,7 @@ def disable_user_with_http_info(user_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :disable_user, @@ -279,7 +282,7 @@ def get_invitation_with_http_info(user_invitation_uuid, opts = {}) fail ArgumentError, "Missing the required parameter 'user_invitation_uuid' when calling UsersAPI.get_invitation" end # resource path - local_var_path = '/api/v2/user_invitations/{user_invitation_uuid}'.sub('{' + 'user_invitation_uuid' + '}', CGI.escape(user_invitation_uuid.to_s)) + local_var_path = '/api/v2/user_invitations/{user_invitation_uuid}'.sub('{user_invitation_uuid}', CGI.escape(user_invitation_uuid.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -299,7 +302,7 @@ def get_invitation_with_http_info(user_invitation_uuid, opts = {}) return_type = opts[:debug_return_type] || 'UserInvitationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_invitation, @@ -329,7 +332,7 @@ def get_user(user_id, opts = {}) end # Get user details - # Get a user in the organization specified by the user’s `user_id`. + # Get a user in the organization specified by the user’s `user_id`. # @param user_id [String] The ID of the user. # @param [Hash] opts the optional parameters # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers @@ -352,7 +355,7 @@ def get_user_with_http_info(user_id, opts = {}) fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersAPI.get_user" end # resource path - local_var_path = '/api/v2/users/{user_id}'.sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s)) + local_var_path = '/api/v2/users/{user_id}'.sub('{user_id}', CGI.escape(user_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -372,7 +375,7 @@ def get_user_with_http_info(user_id, opts = {}) return_type = opts[:debug_return_type] || 'UserResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_user, @@ -392,7 +395,8 @@ def get_user_with_http_info(user_id, opts = {}) end # Get a user organization - # Get a user organization. Returns the user information and all organizations joined by this user. + # Get a user organization. Returns the user information and all organizations + # joined by this user. # @param user_id [String] The ID of the user. # @param [Hash] opts the optional parameters # @return [UserResponse] @@ -402,7 +406,8 @@ def list_user_organizations(user_id, opts = {}) end # Get a user organization - # Get a user organization. Returns the user information and all organizations joined by this user. + # Get a user organization. Returns the user information and all organizations + # joined by this user. # @param user_id [String] The ID of the user. # @param [Hash] opts the optional parameters # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers @@ -425,7 +430,7 @@ def list_user_organizations_with_http_info(user_id, opts = {}) fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersAPI.list_user_organizations" end # resource path - local_var_path = '/api/v2/users/{user_id}/orgs'.sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s)) + local_var_path = '/api/v2/users/{user_id}/orgs'.sub('{user_id}', CGI.escape(user_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -445,7 +450,7 @@ def list_user_organizations_with_http_info(user_id, opts = {}) return_type = opts[:debug_return_type] || 'UserResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_user_organizations, @@ -465,7 +470,8 @@ def list_user_organizations_with_http_info(user_id, opts = {}) end # Get a user permissions - # Get a user permission set. Returns a list of the user’s permissions granted by the associated user's roles. + # Get a user permission set. Returns a list of the user’s permissions + # granted by the associated user's roles. # @param user_id [String] The ID of the user. # @param [Hash] opts the optional parameters # @return [PermissionsResponse] @@ -475,7 +481,8 @@ def list_user_permissions(user_id, opts = {}) end # Get a user permissions - # Get a user permission set. Returns a list of the user’s permissions granted by the associated user's roles. + # Get a user permission set. Returns a list of the user’s permissions + # granted by the associated user's roles. # @param user_id [String] The ID of the user. # @param [Hash] opts the optional parameters # @return [Array<(PermissionsResponse, Integer, Hash)>] PermissionsResponse data, response status code and response headers @@ -498,7 +505,7 @@ def list_user_permissions_with_http_info(user_id, opts = {}) fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersAPI.list_user_permissions" end # resource path - local_var_path = '/api/v2/users/{user_id}/permissions'.sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s)) + local_var_path = '/api/v2/users/{user_id}/permissions'.sub('{user_id}', CGI.escape(user_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -518,7 +525,7 @@ def list_user_permissions_with_http_info(user_id, opts = {}) return_type = opts[:debug_return_type] || 'PermissionsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_user_permissions, @@ -538,14 +545,15 @@ def list_user_permissions_with_http_info(user_id, opts = {}) end # List all users - # Get the list of all users in the organization. This list includes all users even if they are deactivated or unverified. + # Get the list of all users in the organization. This list includes + # all users even if they are deactivated or unverified. # @param [Hash] opts the optional parameters - # @option opts [Integer] :page_size Size for a given page. (default to 10) - # @option opts [Integer] :page_number Specific page number to return. (default to 0) - # @option opts [String] :sort User attribute to order results by. Sort order is ascending by default. Sort order is descending if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `modified_at`, `user_count`. (default to 'name') - # @option opts [QuerySortOrder] :sort_dir Direction of sort. Options: `asc`, `desc`. (default to 'desc') + # @option opts [Integer] :page_size Size for a given page. + # @option opts [Integer] :page_number Specific page number to return. + # @option opts [String] :sort User attribute to order results by. Sort order is ascending by default. Sort order is descending if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `modified_at`, `user_count`. + # @option opts [QuerySortOrder] :sort_dir Direction of sort. Options: `asc`, `desc`. # @option opts [String] :filter Filter all users by the given string. Defaults to no filtering. - # @option opts [String] :filter_status Filter on status attribute. Comma separated list, with possible values `Active`, `Pending`, and `Disabled`. Defaults to no filtering. + # @option opts [String] :filter_status Filter on status attribute. Comma separated list, with possible values `Active`, `Pending`, and `Disabled`. Defaults to no filtering. # @return [UsersResponse] def list_users(opts = {}) data, _status_code, _headers = list_users_with_http_info(opts) @@ -553,14 +561,15 @@ def list_users(opts = {}) end # List all users - # Get the list of all users in the organization. This list includes all users even if they are deactivated or unverified. + # Get the list of all users in the organization. This list includes + # all users even if they are deactivated or unverified. # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. - # @option opts [String] :sort User attribute to order results by. Sort order is ascending by default. Sort order is descending if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `modified_at`, `user_count`. - # @option opts [QuerySortOrder] :sort_dir Direction of sort. Options: `asc`, `desc`. + # @option opts [String] :sort User attribute to order results by. Sort order is ascending by default. Sort order is descending if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `modified_at`, `user_count`. + # @option opts [QuerySortOrder] :sort_dir Direction of sort. Options: `asc`, `desc`. # @option opts [String] :filter Filter all users by the given string. Defaults to no filtering. - # @option opts [String] :filter_status Filter on status attribute. Comma separated list, with possible values `Active`, `Pending`, and `Disabled`. Defaults to no filtering. + # @option opts [String] :filter_status Filter on status attribute. Comma separated list, with possible values `Active`, `Pending`, and `Disabled`. Defaults to no filtering. # @return [Array<(UsersResponse, Integer, Hash)>] UsersResponse data, response status code and response headers def list_users_with_http_info(opts = {}) @@ -603,7 +612,7 @@ def list_users_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'UsersResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_users, @@ -678,7 +687,7 @@ def send_invitations_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'UserInvitationsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :send_invitations, @@ -698,7 +707,8 @@ def send_invitations_with_http_info(body, opts = {}) end # Update a user - # Edit a user. Can only be used with an application key belonging to an administrator user. + # Edit a user. Can only be used with an application key belonging + # to an administrator user. # @param user_id [String] The ID of the user. # @param body [UserUpdateRequest] # @param [Hash] opts the optional parameters @@ -709,7 +719,8 @@ def update_user(user_id, body, opts = {}) end # Update a user - # Edit a user. Can only be used with an application key belonging to an administrator user. + # Edit a user. Can only be used with an application key belonging + # to an administrator user. # @param user_id [String] The ID of the user. # @param body [UserUpdateRequest] # @param [Hash] opts the optional parameters @@ -737,7 +748,7 @@ def update_user_with_http_info(user_id, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling UsersAPI.update_user" end # resource path - local_var_path = '/api/v2/users/{user_id}'.sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s)) + local_var_path = '/api/v2/users/{user_id}'.sub('{user_id}', CGI.escape(user_id.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} @@ -759,7 +770,7 @@ def update_user_with_http_info(user_id, body, opts = {}) return_type = opts[:debug_return_type] || 'UserResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:AuthZ, :apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_user, diff --git a/lib/datadog_api_client/v2/api_client.rb b/lib/datadog_api_client/v2/api_client.rb index 64cde3e20f0..933cd429dc3 100644 --- a/lib/datadog_api_client/v2/api_client.rb +++ b/lib/datadog_api_client/v2/api_client.rb @@ -410,4 +410,4 @@ def build_collection_param(param, collection_format) end end end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/api_error.rb b/lib/datadog_api_client/v2/api_error.rb index c85d7a37856..0c3634ce977 100644 --- a/lib/datadog_api_client/v2/api_error.rb +++ b/lib/datadog_api_client/v2/api_error.rb @@ -57,4 +57,4 @@ def message msg end end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/configuration.rb b/lib/datadog_api_client/v2/configuration.rb index ccda942dbbf..62cbdfc8ff6 100644 --- a/lib/datadog_api_client/v2/configuration.rb +++ b/lib/datadog_api_client/v2/configuration.rb @@ -169,28 +169,28 @@ def initialize @compress = true @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT) @unstable_operations = { - create_incident_service: false, - delete_incident_service: false, - get_incident_service: false, - list_incident_services: false, - update_incident_service: false, - create_incident_team: false, - delete_incident_team: false, - get_incident_team: false, - list_incident_teams: false, - update_incident_team: false, + list_incidents: false, create_incident: false, delete_incident: false, get_incident: false, - list_incidents: false, update_incident: false, - create_tag_configuration: false, + list_tag_configurations: false, delete_tag_configuration: false, list_tag_configuration_by_name: false, - list_tag_configurations: false, update_tag_configuration: false, + create_tag_configuration: false, list_security_monitoring_signals: false, search_security_monitoring_signals: false, + list_incident_services: false, + create_incident_service: false, + delete_incident_service: false, + get_incident_service: false, + update_incident_service: false, + list_incident_teams: false, + create_incident_team: false, + delete_incident_team: false, + get_incident_team: false, + update_incident_team: false, } @server_variables[:site] = ENV['DD_SITE'] if ENV.key? 'DD_SITE' @api_key['apiKeyAuth'] = ENV['DD_API_KEY'] if ENV.key? 'DD_API_KEY' @@ -284,49 +284,49 @@ def server_settings description: "No description provided", variables: { site: { - description: "The regional site for Datadog customers.", - default_value: "datadoghq.com", - enum_values: [ - "datadoghq.com", - "us3.datadoghq.com", - "us5.datadoghq.com", - "datadoghq.eu", - "ddog-gov.com" - ] - }, + description: "The regional site for Datadog customers.", + default_value: "datadoghq.com", + enum_values: [ + "datadoghq.com", + "us3.datadoghq.com", + "us5.datadoghq.com", + "datadoghq.eu", + "ddog-gov.com" + ] + }, subdomain: { - description: "The subdomain where the API is deployed.", - default_value: "api", - } + description: "The subdomain where the API is deployed.", + default_value: "api", } + } }, { url: "{protocol}://{name}", description: "No description provided", variables: { name: { - description: "Full site DNS name.", - default_value: "api.datadoghq.com", - }, + description: "Full site DNS name.", + default_value: "api.datadoghq.com", + }, protocol: { - description: "The protocol for accessing the API.", - default_value: "https", - } + description: "The protocol for accessing the API.", + default_value: "https", } + } }, { url: "https://{subdomain}.{site}", description: "No description provided", variables: { site: { - description: "Any Datadog deployment.", - default_value: "datadoghq.com", - }, + description: "Any Datadog deployment.", + default_value: "datadoghq.com", + }, subdomain: { - description: "The subdomain where the API is deployed.", - default_value: "api", - } + description: "The subdomain where the API is deployed.", + default_value: "api", } + } } ] end @@ -335,10 +335,10 @@ def operation_server_settings { submit_log: [ { - url: "https://{subdomain}.{site}", - description: "No description provided", - variables: { - site: { + url: "https://{subdomain}.{site}", + description: "No description provided", + variables: { + site: { description: "The regional site for customers.", default_value: "datadoghq.com", enum_values: [ @@ -349,40 +349,40 @@ def operation_server_settings "ddog-gov.com" ] }, - subdomain: { + subdomain: { description: "The subdomain where the API is deployed.", default_value: "http-intake.logs", } } }, { - url: "{protocol}://{name}", - description: "No description provided", - variables: { - name: { + url: "{protocol}://{name}", + description: "No description provided", + variables: { + name: { description: "Full site DNS name.", default_value: "http-intake.logs.datadoghq.com", }, - protocol: { + protocol: { description: "The protocol for accessing the API.", default_value: "https", } } }, { - url: "https://{subdomain}.{site}", - description: "No description provided", - variables: { - site: { + url: "https://{subdomain}.{site}", + description: "No description provided", + variables: { + site: { description: "Any Datadog deployment.", default_value: "datadoghq.com", }, - subdomain: { + subdomain: { description: "The subdomain where the API is deployed.", default_value: "http-intake.logs", } } - } + } ], } end @@ -435,4 +435,4 @@ def to_hash end end -end +end \ No newline at end of file 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 8f7a0a44e26..9c5f3b8ac8d 100644 --- a/lib/datadog_api_client/v2/models/api_error_response.rb +++ b/lib/datadog_api_client/v2/models/api_error_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # API error response. class APIErrorResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIErrorResponse` initialize method" @@ -78,8 +79,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @errors.nil? @@ -121,7 +122,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -129,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -235,7 +236,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] value 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) @@ -251,7 +252,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 328ee26ccfa..a05a65c3be4 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes used to create an API Key. class APIKeyCreateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyCreateAttributes` initialize method" @@ -76,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -119,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -127,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -233,7 +234,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] value 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) @@ -249,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 1b6a432bc3b..884153bc125 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # Object used to create an API key. class APIKeyCreateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes used to create an API Key. attr_accessor :attributes + # API Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyCreateData` initialize method" @@ -85,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 449439a58f2..711d309377e 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Request used to create an API key. class APIKeyCreateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object used to create an API key. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyCreateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 dcd1344013f..febd7b4a892 100644 --- a/lib/datadog_api_client/v2/models/api_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/api_key_relationships.rb @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # Resources related to the API key. class APIKeyRelationships - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Relationship to user. attr_accessor :created_by + # Relationship to user. attr_accessor :modified_by # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyRelationships` initialize method" @@ -83,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -122,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -130,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -236,7 +240,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] value 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) @@ -252,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ece1fc7e8de..c8e6c3a02f4 100644 --- a/lib/datadog_api_client/v2/models/api_key_response.rb +++ b/lib/datadog_api_client/v2/models/api_key_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Response for retrieving an API key. class APIKeyResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Datadog API key. attr_accessor :data # Array of objects related to the API key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyResponse` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/api_key_response_included_item.rb b/lib/datadog_api_client/v2/models/api_key_response_included_item.rb index 2331e1b6c33..d04c7098734 100644 --- a/lib/datadog_api_client/v2/models/api_key_response_included_item.rb +++ b/lib/datadog_api_client/v2/models/api_key_response_included_item.rb @@ -28,7 +28,6 @@ def openapi_one_of :'User' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -56,7 +55,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V2::UnparsedObject.new(data) end - end private @@ -114,4 +112,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 6e70d2320dc..48985667321 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes used to update an API Key. class APIKeyUpdateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyUpdateAttributes` initialize method" @@ -76,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -119,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -127,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -233,7 +234,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] value 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) @@ -249,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 04bd5059176..1c12beb48e7 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # Object used to update an API key. class APIKeyUpdateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes used to update an API Key. attr_accessor :attributes # ID of the API key. attr_accessor :id + # API Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyUpdateData` initialize method" @@ -94,18 +97,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -149,7 +150,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -157,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -263,7 +264,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] value 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) @@ -279,7 +280,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 2e976b6622b..96287425c68 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Request used to update an API key. class APIKeyUpdateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object used to update an API key. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyUpdateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 0a31950d970..56f764eeb2b 100644 --- a/lib/datadog_api_client/v2/models/api_keys_response.rb +++ b/lib/datadog_api_client/v2/models/api_keys_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response for a list of API keys. class APIKeysResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeysResponse` initialize method" @@ -89,10 +90,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -128,7 +130,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -136,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -242,7 +244,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] value 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) @@ -258,7 +260,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/api_keys_sort.rb b/lib/datadog_api_client/v2/models/api_keys_sort.rb index e46fca33ff3..c4ca9350f05 100644 --- a/lib/datadog_api_client/v2/models/api_keys_sort.rb +++ b/lib/datadog_api_client/v2/models/api_keys_sort.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Sorting options class APIKeysSort CREATED_AT_ASCENDING = "created_at".freeze CREATED_AT_DESCENDING = "-created_at".freeze @@ -44,5 +45,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/api_keys_type.rb b/lib/datadog_api_client/v2/models/api_keys_type.rb index fbefd90fb43..f1a9232e497 100644 --- a/lib/datadog_api_client/v2/models/api_keys_type.rb +++ b/lib/datadog_api_client/v2/models/api_keys_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # API Keys resource type. class APIKeysType API_KEYS = "api_keys".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 901ac68314d..44b691b389b 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes used to create an application Key. class ApplicationKeyCreateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -62,7 +62,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyCreateAttributes` initialize method" @@ -88,8 +89,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -132,7 +133,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -140,7 +141,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -246,7 +247,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] value 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) @@ -262,7 +263,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ff17f30fc2b..7f8b2c32674 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # Object used to create an application key. class ApplicationKeyCreateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes used to create an application Key. attr_accessor :attributes + # Application Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyCreateData` initialize method" @@ -85,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 75c59757c45..2472b06b87f 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Request used to create an application key. class ApplicationKeyCreateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object used to create an application key. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyCreateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 c5d26e80c3c..790c584908c 100644 --- a/lib/datadog_api_client/v2/models/application_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/application_key_relationships.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Resources related to the application key. class ApplicationKeyRelationships - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Relationship to user. attr_accessor :owned_by # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyRelationships` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ec0e02b690f..0d1d18d7eb4 100644 --- a/lib/datadog_api_client/v2/models/application_key_response.rb +++ b/lib/datadog_api_client/v2/models/application_key_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Response for retrieving an application key. class ApplicationKeyResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Datadog application key. attr_accessor :data # Array of objects related to the application key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyResponse` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/application_key_response_included_item.rb b/lib/datadog_api_client/v2/models/application_key_response_included_item.rb index 39538ffefc7..6512e1d2dea 100644 --- a/lib/datadog_api_client/v2/models/application_key_response_included_item.rb +++ b/lib/datadog_api_client/v2/models/application_key_response_included_item.rb @@ -25,11 +25,10 @@ class << self # List of class defined in oneOf (OpenAPI v3) def openapi_one_of [ - :'Role', - :'User' + :'User', + :'Role' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -57,7 +56,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V2::UnparsedObject.new(data) end - end private @@ -115,4 +113,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 a0f36ee6634..25d8587bdd3 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes used to update an application Key. class ApplicationKeyUpdateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -62,7 +62,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyUpdateAttributes` initialize method" @@ -88,10 +89,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -127,7 +129,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -135,7 +137,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -241,7 +243,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] value 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) @@ -257,7 +259,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 536aef07f48..abfd66a792f 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # Object used to update an application key. class ApplicationKeyUpdateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes used to update an application Key. attr_accessor :attributes # ID of the application key. attr_accessor :id + # Application Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyUpdateData` initialize method" @@ -94,18 +97,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -149,7 +150,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -157,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -263,7 +264,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] value 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) @@ -279,7 +280,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 0365562bc13..5ca7af8e6cb 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Request used to update an application key. class ApplicationKeyUpdateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object used to update an application key. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyUpdateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/application_keys_sort.rb b/lib/datadog_api_client/v2/models/application_keys_sort.rb index 57b9b16e8ae..c543416eebf 100644 --- a/lib/datadog_api_client/v2/models/application_keys_sort.rb +++ b/lib/datadog_api_client/v2/models/application_keys_sort.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Sorting options class ApplicationKeysSort CREATED_AT_ASCENDING = "created_at".freeze CREATED_AT_DESCENDING = "-created_at".freeze @@ -42,5 +43,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/application_keys_type.rb b/lib/datadog_api_client/v2/models/application_keys_type.rb index 1ad39a4b713..4082765e12a 100644 --- a/lib/datadog_api_client/v2/models/application_keys_type.rb +++ b/lib/datadog_api_client/v2/models/application_keys_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Application Keys resource type. class ApplicationKeysType APPLICATION_KEYS = "application_keys".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 07a0cf1d646..4118b891c21 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A Cloud Workload Security Agent rule returned by the API. class CloudWorkloadSecurityAgentRuleAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class CloudWorkloadSecurityAgentRuleAttributes # When the Agent rule was created, timestamp in milliseconds. attr_accessor :creation_date + # The attributes of the user who created the Agent rule. attr_accessor :creator # Whether the rule is included by default. @@ -49,6 +50,7 @@ class CloudWorkloadSecurityAgentRuleAttributes # When the Agent rule was last updated, timestamp in milliseconds. attr_accessor :updated_at + # The attributes of the user who last updated the Agent rule. attr_accessor :updater # The version of the Agent rule. @@ -104,7 +106,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleAttributes` initialize method" @@ -164,10 +167,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -212,7 +216,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -220,7 +224,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -326,7 +330,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] value 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) @@ -342,7 +346,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 edbe413d9b5..4d322dde510 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Create a new Cloud Workload Security Agent rule. class CloudWorkloadSecurityAgentRuleCreateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateAttributes` initialize method" @@ -103,14 +104,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @expression.nil? invalid_properties.push('invalid value for "expression", expression cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end @@ -154,7 +154,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -162,7 +162,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -268,7 +268,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] value 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) @@ -284,7 +284,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 dd106461612..9060c810c21 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # Object for a single Agent rule. class CloudWorkloadSecurityAgentRuleCreateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Create a new Cloud Workload Security Agent rule. attr_accessor :attributes + # The type of the resource. The value should always be `agent_rule`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateData` initialize method" @@ -85,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 b0a12944bda..00b8a671d4b 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Request object that includes the Agent rule to create. class CloudWorkloadSecurityAgentRuleCreateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object for a single Agent rule. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 7853ddf45d0..15398fd2441 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The attributes of the user who created the Agent rule. class CloudWorkloadSecurityAgentRuleCreatorAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreatorAttributes` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 2eeb99e034a..d83de2e21df 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # Object for a single Agent rule. class CloudWorkloadSecurityAgentRuleData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # A Cloud Workload Security Agent rule returned by the API. attr_accessor :attributes # The ID of the Agent rule. attr_accessor :id + # The type of the resource. The value should always be `agent_rule`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleData` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ef326166cd8..30563b9384d 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Response object that includes an Agent rule. class CloudWorkloadSecurityAgentRuleResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object for a single Agent rule. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleResponse` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_type.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_type.rb index a611de8d81b..7cf567d0f77 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_type.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The type of the resource. The value should always be `agent_rule`. class CloudWorkloadSecurityAgentRuleType AGENT_RULE = "agent_rule".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 63c060ff739..ee1db66cef2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Update an existing Cloud Workload Security Agent rule. class CloudWorkloadSecurityAgentRuleUpdateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdateAttributes` initialize method" @@ -94,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 1d60613e01c..0938acd6c49 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # Object for a single Agent rule. class CloudWorkloadSecurityAgentRuleUpdateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Update an existing Cloud Workload Security Agent rule. attr_accessor :attributes + # The type of the resource. The value should always be `agent_rule`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdateData` initialize method" @@ -85,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 51a0e192caf..fe276491b3a 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Request object that includes the Agent rule with the attributes to update. class CloudWorkloadSecurityAgentRuleUpdateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object for a single Agent rule. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 9e093d4ec32..c461fbec045 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The attributes of the user who last updated the Agent rule. class CloudWorkloadSecurityAgentRuleUpdaterAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdaterAttributes` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 2e99c2d57bc..db25ada11d3 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response object that includes a list of Agent rule. class CloudWorkloadSecurityAgentRulesListResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRulesListResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/content_encoding.rb b/lib/datadog_api_client/v2/models/content_encoding.rb index 0c8432eb165..4834337c426 100644 --- a/lib/datadog_api_client/v2/models/content_encoding.rb +++ b/lib/datadog_api_client/v2/models/content_encoding.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # HTTP header used to compress the media-type. class ContentEncoding GZIP = "gzip".freeze DEFLATE = "deflate".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/creator.rb b/lib/datadog_api_client/v2/models/creator.rb index 8baa1da6c4c..72758cc6a20 100644 --- a/lib/datadog_api_client/v2/models/creator.rb +++ b/lib/datadog_api_client/v2/models/creator.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Creator of the object. class Creator - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Creator` initialize method" @@ -94,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 42c706fd74e..707513b557e 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Request containing a list of dashboards to add. class DashboardListAddItemsRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListAddItemsRequest` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 27834fc2cdd..3958bc5ee37 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response containing a list of added dashboards. class DashboardListAddItemsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListAddItemsResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 dcfd4f3699f..b226fbedeac 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Request containing a list of dashboards to delete. class DashboardListDeleteItemsRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListDeleteItemsRequest` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 6d79ec78646..b223a3552b7 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response containing a list of deleted dashboards. class DashboardListDeleteItemsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListDeleteItemsResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 5acd87adf2b..3bd71a4da71 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # A dashboard within a list. class DashboardListItem - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Creator of the object. attr_accessor :author # Date of creation of the dashboard. @@ -52,6 +53,7 @@ class DashboardListItem # Title of the dashboard. attr_accessor :title + # The type of the dashboard. attr_accessor :type # URL path to the dashboard. @@ -109,7 +111,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListItem` initialize method" @@ -173,18 +176,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - - if !@popularity.nil? && @popularity > 5 - invalid_properties.push('invalid value for "popularity", must be smaller than or equal to 5.') - end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -197,21 +195,10 @@ def list_invalid_properties # @!visibility private def valid? return false if @id.nil? - return false if !@popularity.nil? && @popularity > 5 return false if @type.nil? true end - # Custom attribute writer method with validation - # @param popularity [Object] popularity Value to be assigned - def popularity=(popularity) - if !popularity.nil? && popularity > 5 - fail ArgumentError, 'invalid value for "popularity", must be smaller than or equal to 5.' - end - - @popularity = popularity - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -247,7 +234,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -255,7 +242,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -361,7 +348,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] value 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) @@ -377,7 +364,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 8bcd4cc2496..a364edcc45b 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V2 # A dashboard within a list. class DashboardListItemRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # ID of the dashboard. attr_accessor :id + # The type of the dashboard. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListItemRequest` initialize method" @@ -84,14 +86,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -133,7 +134,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -141,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -247,7 +248,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] value 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) @@ -263,7 +264,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 2269f9dfc9b..68865ca44e4 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V2 # A dashboard within a list. class DashboardListItemResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # ID of the dashboard. attr_accessor :id + # The type of the dashboard. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListItemResponse` initialize method" @@ -84,14 +86,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -133,7 +134,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -141,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -247,7 +248,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] value 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) @@ -263,7 +264,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 99b594d5216..4981ee4086e 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_items.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_items.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Dashboards within a list. class DashboardListItems - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListItems` initialize method" @@ -87,8 +88,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @dashboards.nil? @@ -131,7 +132,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -139,7 +140,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -245,7 +246,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] value 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) @@ -261,7 +262,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 d0bc29c5ca8..7324ce6f56b 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Request containing the list of dashboards to update to. class DashboardListUpdateItemsRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListUpdateItemsRequest` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 a0f7f60872d..56bff393638 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response containing a list of updated dashboards. class DashboardListUpdateItemsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListUpdateItemsResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/dashboard_type.rb b/lib/datadog_api_client/v2/models/dashboard_type.rb index 825edef03cd..8da327887a3 100644 --- a/lib/datadog_api_client/v2/models/dashboard_type.rb +++ b/lib/datadog_api_client/v2/models/dashboard_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The type of the dashboard. class DashboardType CUSTOM_TIMEBOARD = "custom_timeboard".freeze CUSTOM_SCREENBOARD = "custom_screenboard".freeze @@ -41,5 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 23ea3d017f3..4093e42a345 100644 --- a/lib/datadog_api_client/v2/models/full_api_key.rb +++ b/lib/datadog_api_client/v2/models/full_api_key.rb @@ -19,17 +19,20 @@ module DatadogAPIClient::V2 # Datadog API key. class FullAPIKey - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes of a full API key. attr_accessor :attributes # ID of the API key. attr_accessor :id + # Resources related to the API key. attr_accessor :relationships + # API Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FullAPIKey` initialize method" @@ -102,10 +106,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -143,7 +148,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -151,7 +156,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -257,7 +262,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] value 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) @@ -273,7 +278,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 a6fa2732738..41b1c6b7afe 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of a full API key. class FullAPIKeyAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -76,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FullAPIKeyAttributes` initialize method" @@ -112,17 +113,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@last4.nil? && @last4.to_s.length > 4 - invalid_properties.push('invalid value for "last4", the character length must be smaller than or equal to 4.') - end - - if !@last4.nil? && @last4.to_s.length < 4 - invalid_properties.push('invalid value for "last4", the character length must be great than or equal to 4.') - end invalid_properties end @@ -131,25 +125,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@last4.nil? && @last4.to_s.length > 4 - return false if !@last4.nil? && @last4.to_s.length < 4 true end - # Custom attribute writer method with validation - # @param last4 [Object] last4 Value to be assigned - def last4=(last4) - if !last4.nil? && last4.to_s.length > 4 - fail ArgumentError, 'invalid value for "last4", the character length must be smaller than or equal to 4.' - end - - if !last4.nil? && last4.to_s.length < 4 - fail ArgumentError, 'invalid value for "last4", the character length must be great than or equal to 4.' - end - - @last4 = last4 - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -178,7 +156,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -186,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -292,7 +270,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] value 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) @@ -308,7 +286,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 7a5ef19e78c..99d3db096d2 100644 --- a/lib/datadog_api_client/v2/models/full_application_key.rb +++ b/lib/datadog_api_client/v2/models/full_application_key.rb @@ -19,17 +19,20 @@ module DatadogAPIClient::V2 # Datadog application key. class FullApplicationKey - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes of a full application key. attr_accessor :attributes # ID of the application key. attr_accessor :id + # Resources related to the application key. attr_accessor :relationships + # Application Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FullApplicationKey` initialize method" @@ -102,10 +106,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -143,7 +148,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -151,7 +156,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -257,7 +262,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] value 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) @@ -273,7 +278,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 cbb3dba2e2a..b4e4889437e 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of a full application key. class FullApplicationKeyAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -77,7 +77,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FullApplicationKeyAttributes` initialize method" @@ -115,17 +116,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@last4.nil? && @last4.to_s.length > 4 - invalid_properties.push('invalid value for "last4", the character length must be smaller than or equal to 4.') - end - - if !@last4.nil? && @last4.to_s.length < 4 - invalid_properties.push('invalid value for "last4", the character length must be great than or equal to 4.') - end invalid_properties end @@ -134,25 +128,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@last4.nil? && @last4.to_s.length > 4 - return false if !@last4.nil? && @last4.to_s.length < 4 true end - # Custom attribute writer method with validation - # @param last4 [Object] last4 Value to be assigned - def last4=(last4) - if !last4.nil? && last4.to_s.length > 4 - fail ArgumentError, 'invalid value for "last4", the character length must be smaller than or equal to 4.' - end - - if !last4.nil? && last4.to_s.length < 4 - fail ArgumentError, 'invalid value for "last4", the character length must be great than or equal to 4.' - end - - @last4 = last4 - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -181,7 +159,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -189,7 +167,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -295,7 +273,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] value 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) @@ -311,7 +289,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 3c42d39a5f8..7b544472043 100644 --- a/lib/datadog_api_client/v2/models/http_log_error.rb +++ b/lib/datadog_api_client/v2/models/http_log_error.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # List of errors. class HTTPLogError - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::HTTPLogError` initialize method" @@ -94,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 23179b48c7d..67da4f5a3a9 100644 --- a/lib/datadog_api_client/v2/models/http_log_errors.rb +++ b/lib/datadog_api_client/v2/models/http_log_errors.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Invalid query performed. class HTTPLogErrors - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::HTTPLogErrors` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 3aa1ae993e5..83059b87670 100644 --- a/lib/datadog_api_client/v2/models/http_log_item.rb +++ b/lib/datadog_api_client/v2/models/http_log_item.rb @@ -19,11 +19,13 @@ module DatadogAPIClient::V2 # Logs that are sent over HTTP. class HTTPLogItem - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # The integration name associated with your log: the technology from which the log originated. When it matches an integration name, Datadog automatically installs the corresponding parsers and facets. See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes). + # The integration name associated with your log: the technology from which the log originated. + # When it matches an integration name, Datadog automatically installs the corresponding parsers and facets. + # See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes). attr_accessor :ddsource # Tags associated with your logs. @@ -32,10 +34,14 @@ class HTTPLogItem # The name of the originating host of the log. attr_accessor :hostname - # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. + # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) + # of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. + # That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. attr_accessor :message - # The name of the application or service generating the log events. It is used to switch from Logs to APM, so make sure you define the same value when you use both products. See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes). + # The name of the application or service generating the log events. + # It is used to switch from Logs to APM, so make sure you define the same value when you use both products. + # See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes). attr_accessor :service # Attribute mapping from ruby-style variable name to JSON key. @@ -76,7 +82,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::HTTPLogItem` initialize method" @@ -112,10 +119,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -154,7 +162,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -162,7 +170,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -268,7 +276,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] value 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) @@ -284,7 +292,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 19cbc675c0f..ac12221f935 100644 --- a/lib/datadog_api_client/v2/models/incident_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_create_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident's attributes for a create request. class IncidentCreateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -76,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentCreateAttributes` initialize method" @@ -95,9 +96,7 @@ def initialize(attributes = {}) end if attributes.key?(:'fields') - if (value = attributes[:'fields']).is_a?(Hash) - self.fields = value - end + self.fields = attributes[:'fields'] end if attributes.key?(:'initial_cells') @@ -118,14 +117,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @customer_impacted.nil? invalid_properties.push('invalid value for "customer_impacted", customer_impacted cannot be nil.') end - if @title.nil? invalid_properties.push('invalid value for "title", title cannot be nil.') end @@ -170,7 +168,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -178,7 +176,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -284,7 +282,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] value 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) @@ -300,7 +298,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 962fed3965f..d40e12db150 100644 --- a/lib/datadog_api_client/v2/models/incident_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_create_data.rb @@ -19,14 +19,17 @@ module DatadogAPIClient::V2 # Incident data for a create request. class IncidentCreateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The incident's attributes for a create request. attr_accessor :attributes + # The relationships the incident will have with other resources once created. attr_accessor :relationships + # Incident resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -63,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentCreateData` initialize method" @@ -93,14 +97,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -143,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -151,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -257,7 +260,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] value 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) @@ -273,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 e7b708b3c87..1a5243f80d8 100644 --- a/lib/datadog_api_client/v2/models/incident_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_create_relationships.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # The relationships the incident will have with other resources once created. class IncidentCreateRelationships - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Relationship to user. attr_accessor :commander # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentCreateRelationships` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @commander.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 8769f7959aa..58ca8704289 100644 --- a/lib/datadog_api_client/v2/models/incident_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_create_request.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Create request for an incident. class IncidentCreateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Incident data for a create request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentCreateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incident_field_attributes.rb b/lib/datadog_api_client/v2/models/incident_field_attributes.rb index 241361f7a13..1b36a9e1c49 100644 --- a/lib/datadog_api_client/v2/models/incident_field_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_field_attributes.rb @@ -25,11 +25,10 @@ class << self # List of class defined in oneOf (OpenAPI v3) def openapi_one_of [ - :'IncidentFieldAttributesMultipleValue', - :'IncidentFieldAttributesSingleValue' + :'IncidentFieldAttributesSingleValue', + :'IncidentFieldAttributesMultipleValue' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -57,7 +56,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V2::UnparsedObject.new(data) end - end private @@ -115,4 +113,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 c376da3c01f..b51c704270c 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # A field with potentially multiple values selected. class IncidentFieldAttributesMultipleValue - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Type of the multiple value field definitions. attr_accessor :type # The multiple values selected for this field. @@ -61,7 +62,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentFieldAttributesMultipleValue` initialize method" @@ -89,10 +91,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -128,7 +131,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -136,7 +139,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -242,7 +245,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] value 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) @@ -258,7 +261,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 1993e5987d3..3e8fa165fe6 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # A field with a single value selected. class IncidentFieldAttributesSingleValue - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Type of the single value field definitions. attr_accessor :type # The single value selected for this field. @@ -61,7 +62,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentFieldAttributesSingleValue` initialize method" @@ -87,10 +89,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -126,7 +129,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -134,7 +137,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -240,7 +243,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] value 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) @@ -256,7 +259,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incident_field_attributes_single_value_type.rb b/lib/datadog_api_client/v2/models/incident_field_attributes_single_value_type.rb index 46fc3075a0d..bb733fa0330 100644 --- a/lib/datadog_api_client/v2/models/incident_field_attributes_single_value_type.rb +++ b/lib/datadog_api_client/v2/models/incident_field_attributes_single_value_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Type of the single value field definitions. class IncidentFieldAttributesSingleValueType DROPDOWN = "dropdown".freeze TEXTBOX = "textbox".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incident_field_attributes_value_type.rb b/lib/datadog_api_client/v2/models/incident_field_attributes_value_type.rb index 054e7b8508e..35e0161c268 100644 --- a/lib/datadog_api_client/v2/models/incident_field_attributes_value_type.rb +++ b/lib/datadog_api_client/v2/models/incident_field_attributes_value_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Type of the multiple value field definitions. class IncidentFieldAttributesValueType MULTISELECT = "multiselect".freeze TEXTARRAY = "textarray".freeze @@ -40,5 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_type.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_type.rb index 4c89a0c7cb5..b7da060ccce 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_type.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Integration metadata resource type. class IncidentIntegrationMetadataType INCIDENT_INTEGRATIONS = "incident_integrations".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 39932313d24..dc3343151a8 100644 --- a/lib/datadog_api_client/v2/models/incident_notification_handle.rb +++ b/lib/datadog_api_client/v2/models/incident_notification_handle.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A notification handle that will be notified at incident creation. class IncidentNotificationHandle - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentNotificationHandle` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incident_postmortem_type.rb b/lib/datadog_api_client/v2/models/incident_postmortem_type.rb index 186f7919019..d3f858fd244 100644 --- a/lib/datadog_api_client/v2/models/incident_postmortem_type.rb +++ b/lib/datadog_api_client/v2/models/incident_postmortem_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Incident postmortem resource type. class IncidentPostmortemType INCIDENT_POSTMORTEMS = "incident_postmortems".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incident_related_object.rb b/lib/datadog_api_client/v2/models/incident_related_object.rb index a3fcdaa9983..20385d98cdb 100644 --- a/lib/datadog_api_client/v2/models/incident_related_object.rb +++ b/lib/datadog_api_client/v2/models/incident_related_object.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Object related to an incident. class IncidentRelatedObject USERS = "users".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incident_response.rb b/lib/datadog_api_client/v2/models/incident_response.rb index 1c2ed0dda3d..8246f698017 100644 --- a/lib/datadog_api_client/v2/models/incident_response.rb +++ b/lib/datadog_api_client/v2/models/incident_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Response with an incident. class IncidentResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Incident data from a response. attr_accessor :data # Included related resources that the user requested. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentResponse` initialize method" @@ -86,8 +88,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -130,7 +132,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -138,7 +140,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -244,7 +246,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] value 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) @@ -260,7 +262,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 dd4efb3e9a3..7701b325b4d 100644 --- a/lib/datadog_api_client/v2/models/incident_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_response_attributes.rb @@ -19,14 +19,15 @@ module DatadogAPIClient::V2 # The incident's attributes from a response. class IncidentResponseAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Timestamp when the incident was created. attr_accessor :created - # Length of the incident's customer impact in seconds. Equals the difference between `customer_impact_start` and `customer_impact_end`. + # Length of the incident's customer impact in seconds. + # Equals the difference between `customer_impact_start` and `customer_impact_end`. attr_accessor :customer_impact_duration # Timestamp when customers were no longer impacted by the incident. @@ -62,7 +63,8 @@ class IncidentResponseAttributes # Timestamp when the incident's state was set to resolved. attr_accessor :resolved - # The amount of time in seconds to detect the incident. Equals the difference between `customer_impact_start` and `detected`. + # The amount of time in seconds to detect the incident. + # Equals the difference between `customer_impact_start` and `detected`. attr_accessor :time_to_detect # The amount of time in seconds to call incident after detection. Equals the difference of `detected` and `created`. @@ -142,12 +144,13 @@ def self.openapi_nullable :'customer_impact_start', :'detected', :'notification_handles', - :'resolved', + :'resolved' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentResponseAttributes` initialize method" @@ -190,9 +193,7 @@ def initialize(attributes = {}) end if attributes.key?(:'fields') - if (value = attributes[:'fields']).is_a?(Hash) - self.fields = value - end + self.fields = attributes[:'fields'] end if attributes.key?(:'modified') @@ -239,8 +240,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @title.nil? @@ -299,7 +300,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -307,7 +308,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -413,7 +414,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] value 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) @@ -429,7 +430,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 a3f773aebb3..792ff8eafd0 100644 --- a/lib/datadog_api_client/v2/models/incident_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_response_data.rb @@ -19,17 +19,20 @@ module DatadogAPIClient::V2 # Incident data from a response. class IncidentResponseData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The incident's attributes from a response. attr_accessor :attributes # The incident's ID. attr_accessor :id + # The incident's relationships from a response. attr_accessor :relationships + # Incident resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentResponseData` initialize method" @@ -102,14 +106,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -153,7 +156,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -161,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -267,7 +270,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] value 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) @@ -283,7 +286,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incident_response_included_item.rb b/lib/datadog_api_client/v2/models/incident_response_included_item.rb index de072c0e83c..7e3c7f1d3b3 100644 --- a/lib/datadog_api_client/v2/models/incident_response_included_item.rb +++ b/lib/datadog_api_client/v2/models/incident_response_included_item.rb @@ -28,7 +28,6 @@ def openapi_one_of :'User' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -56,7 +55,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V2::UnparsedObject.new(data) end - end private @@ -114,4 +112,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 51aaa1a4f28..e958fd951e4 100644 --- a/lib/datadog_api_client/v2/models/incident_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_response_relationships.rb @@ -19,18 +19,23 @@ module DatadogAPIClient::V2 # The incident's relationships from a response. class IncidentResponseRelationships - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Relationship to user. attr_accessor :commander_user + # Relationship to user. attr_accessor :created_by_user + # A relationship reference for multiple integration metadata objects. attr_accessor :integrations + # Relationship to user. attr_accessor :last_modified_by_user + # A relationship reference for postmortems. attr_accessor :postmortem # Attribute mapping from ruby-style variable name to JSON key. @@ -71,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentResponseRelationships` initialize method" @@ -107,10 +113,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -149,7 +156,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -157,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -263,7 +270,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] value 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) @@ -279,7 +286,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 d6ec4a06355..6e7a5d0d797 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident service's attributes for a create request. class IncidentServiceCreateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceCreateAttributes` initialize method" @@ -76,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -119,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -127,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -233,7 +234,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] value 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) @@ -249,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 cd4be96e1d3..3ce915da3ea 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 @@ -19,14 +19,17 @@ module DatadogAPIClient::V2 # Incident Service payload for create requests. class IncidentServiceCreateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The incident service's attributes for a create request. attr_accessor :attributes + # The incident service's relationships. attr_accessor :relationships + # Incident service resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -63,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceCreateData` initialize method" @@ -93,8 +97,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -138,7 +142,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -146,7 +150,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -252,7 +256,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] value 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) @@ -268,7 +272,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 3d1e3ebd3c7..c0a3bc03f38 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Create request with an incident service payload. class IncidentServiceCreateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Incident Service payload for create requests. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceCreateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incident_service_included_items.rb b/lib/datadog_api_client/v2/models/incident_service_included_items.rb index 1f225f06d8f..d7f70afc8a5 100644 --- a/lib/datadog_api_client/v2/models/incident_service_included_items.rb +++ b/lib/datadog_api_client/v2/models/incident_service_included_items.rb @@ -28,7 +28,6 @@ def openapi_one_of :'User' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -56,7 +55,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V2::UnparsedObject.new(data) end - end private @@ -114,4 +112,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 54b5627981c..a93b6a6217c 100644 --- a/lib/datadog_api_client/v2/models/incident_service_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_service_relationships.rb @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # The incident service's relationships. class IncidentServiceRelationships - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Relationship to user. attr_accessor :created_by + # Relationship to user. attr_accessor :last_modified_by # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceRelationships` initialize method" @@ -83,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -122,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -130,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -236,7 +240,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] value 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) @@ -252,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 cbd444a6e48..b65a37043fe 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Response with an incident service payload. class IncidentServiceResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Incident Service data from responses. attr_accessor :data # Included objects from relationships. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceResponse` initialize method" @@ -86,8 +88,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -130,7 +132,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -138,7 +140,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -244,7 +246,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] value 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) @@ -260,7 +262,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 c417a5dcb1b..6de0c70680d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident service's attributes from a response. class IncidentServiceResponseAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceResponseAttributes` initialize method" @@ -94,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 3e1ff407f8b..1d5c2632124 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 @@ -19,17 +19,20 @@ module DatadogAPIClient::V2 # Incident Service data from responses. class IncidentServiceResponseData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The incident service's attributes from a response. attr_accessor :attributes # The incident service's ID. attr_accessor :id + # The incident service's relationships. attr_accessor :relationships + # Incident service resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceResponseData` initialize method" @@ -102,14 +106,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -153,7 +156,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -161,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -267,7 +270,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] value 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) @@ -283,7 +286,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incident_service_type.rb b/lib/datadog_api_client/v2/models/incident_service_type.rb index ae72f0ac860..2d398570c25 100644 --- a/lib/datadog_api_client/v2/models/incident_service_type.rb +++ b/lib/datadog_api_client/v2/models/incident_service_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Incident service resource type. class IncidentServiceType SERVICES = "services".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 d9f4785ab43..1b07040809f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident service's attributes for an update request. class IncidentServiceUpdateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceUpdateAttributes` initialize method" @@ -76,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -119,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -127,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -233,7 +234,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] value 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) @@ -249,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 2b2b252dc87..f973a5e0ca8 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 @@ -19,17 +19,20 @@ module DatadogAPIClient::V2 # Incident Service payload for update requests. class IncidentServiceUpdateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The incident service's attributes for an update request. attr_accessor :attributes # The incident service's ID. attr_accessor :id + # The incident service's relationships. attr_accessor :relationships + # Incident service resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceUpdateData` initialize method" @@ -102,8 +106,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -148,7 +152,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -156,7 +160,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -262,7 +266,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] value 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) @@ -278,7 +282,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 8b146e3d79d..ad5aa48c360 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Update request with an incident service payload. class IncidentServiceUpdateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Incident Service payload for update requests. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceUpdateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4bba695bac9..2fc0e271902 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response with a list of incident service payloads. class IncidentServicesResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class IncidentServicesResponse # Included related resources which the user requested. attr_accessor :included + # The metadata object containing pagination metadata. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServicesResponse` initialize method" @@ -97,8 +99,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -142,7 +144,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -150,7 +152,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -256,7 +258,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] value 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) @@ -272,7 +274,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incident_services_response_meta.rb b/lib/datadog_api_client/v2/models/incident_services_response_meta.rb index e78a188861f..7007d378ae9 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response_meta.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # The metadata object containing pagination metadata. class IncidentServicesResponseMeta - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Pagination properties. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServicesResponseMeta` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb index ea25e191192..ca16cf257a4 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Pagination properties. class IncidentServicesResponseMetaPagination - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServicesResponseMetaPagination` initialize method" @@ -94,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4783c693f18..9665a71b808 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident team's attributes for a create request. class IncidentTeamCreateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamCreateAttributes` initialize method" @@ -76,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -119,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -127,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -233,7 +234,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] value 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) @@ -249,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 c1df70806bf..f2b1ccb54db 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 @@ -19,14 +19,17 @@ module DatadogAPIClient::V2 # Incident Team data for a create request. class IncidentTeamCreateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The incident team's attributes for a create request. attr_accessor :attributes + # The incident team's relationships. attr_accessor :relationships + # Incident Team resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -63,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamCreateData` initialize method" @@ -93,8 +97,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -138,7 +142,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -146,7 +150,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -252,7 +256,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] value 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) @@ -268,7 +272,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 8a54cb2ec05..2dafd631900 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Create request with an incident team payload. class IncidentTeamCreateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Incident Team data for a create request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamCreateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incident_team_included_items.rb b/lib/datadog_api_client/v2/models/incident_team_included_items.rb index 32ac4941e21..817d8cd197f 100644 --- a/lib/datadog_api_client/v2/models/incident_team_included_items.rb +++ b/lib/datadog_api_client/v2/models/incident_team_included_items.rb @@ -28,7 +28,6 @@ def openapi_one_of :'User' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -56,7 +55,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V2::UnparsedObject.new(data) end - end private @@ -114,4 +112,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 0f380bd8865..a0168ee198d 100644 --- a/lib/datadog_api_client/v2/models/incident_team_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_team_relationships.rb @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # The incident team's relationships. class IncidentTeamRelationships - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Relationship to user. attr_accessor :created_by + # Relationship to user. attr_accessor :last_modified_by # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamRelationships` initialize method" @@ -83,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -122,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -130,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -236,7 +240,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] value 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) @@ -252,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 722bd887f37..16c2c5a1452 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Response with an incident team payload. class IncidentTeamResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Incident Team data from a response. attr_accessor :data # Included objects from relationships. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamResponse` initialize method" @@ -86,8 +88,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -130,7 +132,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -138,7 +140,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -244,7 +246,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] value 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) @@ -260,7 +262,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 c7e79de96cb..66e383b1c6d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident team's attributes from a response. class IncidentTeamResponseAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamResponseAttributes` initialize method" @@ -94,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 7f7ecfe6fe9..083c7472d2b 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 @@ -19,17 +19,20 @@ module DatadogAPIClient::V2 # Incident Team data from a response. class IncidentTeamResponseData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The incident team's attributes from a response. attr_accessor :attributes # The incident team's ID. attr_accessor :id + # The incident team's relationships. attr_accessor :relationships + # Incident Team resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamResponseData` initialize method" @@ -102,10 +106,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -143,7 +148,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -151,7 +156,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -257,7 +262,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] value 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) @@ -273,7 +278,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incident_team_type.rb b/lib/datadog_api_client/v2/models/incident_team_type.rb index a60c681785b..06b1ed76de9 100644 --- a/lib/datadog_api_client/v2/models/incident_team_type.rb +++ b/lib/datadog_api_client/v2/models/incident_team_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Incident Team resource type. class IncidentTeamType TEAMS = "teams".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 8af231736da..f7026c61958 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident team's attributes for an update request. class IncidentTeamUpdateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamUpdateAttributes` initialize method" @@ -76,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -119,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -127,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -233,7 +234,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] value 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) @@ -249,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ff8ba5ac21d..49a5e406393 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 @@ -19,17 +19,20 @@ module DatadogAPIClient::V2 # Incident Team data for an update request. class IncidentTeamUpdateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The incident team's attributes for an update request. attr_accessor :attributes # The incident team's ID. attr_accessor :id + # The incident team's relationships. attr_accessor :relationships + # Incident Team resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamUpdateData` initialize method" @@ -102,8 +106,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -148,7 +152,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -156,7 +160,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -262,7 +266,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] value 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) @@ -278,7 +282,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 3b5b0f9adc5..cf5b0682068 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Update request with an incident team payload. class IncidentTeamUpdateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Incident Team data for an update request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamUpdateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 a5d207f4f15..7c39f2d9a3f 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response with a list of incident team payloads. class IncidentTeamsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class IncidentTeamsResponse # Included related resources which the user requested. attr_accessor :included + # The metadata object containing pagination metadata. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. @@ -53,7 +54,7 @@ def self.openapi_types { :'data' => :'Array', :'included' => :'Array', - :'meta' => :'IncidentServicesResponseMeta' + :'meta' => :'IncidentTeamsResponseMeta' } end @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamsResponse` initialize method" @@ -97,8 +99,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -142,7 +144,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -150,7 +152,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -256,7 +258,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] value 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) @@ -272,7 +274,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb b/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb new file mode 100644 index 00000000000..a1ab07e7017 --- /dev/null +++ b/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb @@ -0,0 +1,251 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://openapi-generator.tech + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # The metadata object containing pagination metadata. + class IncidentTeamsResponseMeta + # whether the object has unparsed attributes + # @!visibility private + attr_accessor :_unparsed + + # Pagination properties. + attr_accessor :pagination + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'pagination' => :'pagination' + } + end + + # Returns all the JSON keys this model knows about + # @!visibility private + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'pagination' => :'IncidentTeamsResponseMetaPagination' + } + end + + # List of attributes with nullable: true + # @!visibility private + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamsResponseMeta` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTeamsResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'pagination') + self.pagination = attributes[:'pagination'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + # @!visibility private + def list_invalid_properties + invalid_properties = Array.new + + invalid_properties + 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? + true + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + pagination == o.pagination + end + + # @see the `==` method + # @param o [Object] Object to be compared + # @!visibility private + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [pagination].hash + end + + # Builds the object from hash + # @param attributes [Hash] Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param type [string] Data type + # @param value [string] Value to be deserialized + # @return [Object] Deserialized data + # @!visibility private + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when :Array + # generic array, return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = DatadogAPIClient::V2.const_get(type) + res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + if res.instance_of? DatadogAPIClient::V2::UnparsedObject + self._unparsed = true + end + res + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + # @!visibility private + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_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 + + # 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 + # @return [Hash] Returns the value in the form of hash + # @!visibility private + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end + +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb new file mode 100644 index 00000000000..b0d6a679e59 --- /dev/null +++ b/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb @@ -0,0 +1,271 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://openapi-generator.tech + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # Pagination properties. + class IncidentTeamsResponseMetaPagination + # whether the object has unparsed attributes + # @!visibility private + attr_accessor :_unparsed + + # The index of the first element in the next page of results. Equal to page size added to the current offset. + attr_accessor :next_offset + + # The index of the first element in the results. + attr_accessor :offset + + # Maximum size of pages to return. + attr_accessor :size + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'next_offset' => :'next_offset', + :'offset' => :'offset', + :'size' => :'size' + } + end + + # Returns all the JSON keys this model knows about + # @!visibility private + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'next_offset' => :'Integer', + :'offset' => :'Integer', + :'size' => :'Integer' + } + end + + # List of attributes with nullable: true + # @!visibility private + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamsResponseMetaPagination` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTeamsResponseMetaPagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'next_offset') + self.next_offset = attributes[:'next_offset'] + end + + if attributes.key?(:'offset') + self.offset = attributes[:'offset'] + end + + if attributes.key?(:'size') + self.size = attributes[:'size'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + # @!visibility private + def list_invalid_properties + invalid_properties = Array.new + + invalid_properties + 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? + true + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + next_offset == o.next_offset && + offset == o.offset && + size == o.size + end + + # @see the `==` method + # @param o [Object] Object to be compared + # @!visibility private + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [next_offset, offset, size].hash + end + + # Builds the object from hash + # @param attributes [Hash] Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param type [string] Data type + # @param value [string] Value to be deserialized + # @return [Object] Deserialized data + # @!visibility private + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when :Array + # generic array, return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = DatadogAPIClient::V2.const_get(type) + res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + if res.instance_of? DatadogAPIClient::V2::UnparsedObject + self._unparsed = true + end + res + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + # @!visibility private + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_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 + + # 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 + # @return [Hash] Returns the value in the form of hash + # @!visibility private + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end + +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incident_timeline_cell_create_attributes.rb b/lib/datadog_api_client/v2/models/incident_timeline_cell_create_attributes.rb index 16b397ca907..6064bb43ec5 100644 --- a/lib/datadog_api_client/v2/models/incident_timeline_cell_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_timeline_cell_create_attributes.rb @@ -28,7 +28,6 @@ def openapi_one_of :'IncidentTimelineCellMarkdownCreateAttributes' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -56,7 +55,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V2::UnparsedObject.new(data) end - end private @@ -114,4 +112,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_content_type.rb b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_content_type.rb index 8b1660766fa..f9cea0a0aca 100644 --- a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_content_type.rb +++ b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_content_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Type of the Markdown timeline cell. class IncidentTimelineCellMarkdownContentType MARKDOWN = "markdown".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 b179a684f0b..934dec3efc5 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # Timeline cell data for Markdown timeline cells for a create request. class IncidentTimelineCellMarkdownCreateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Type of the Markdown timeline cell. attr_accessor :cell_type + # The Markdown timeline cell contents. attr_accessor :content # A flag indicating whether the timeline cell is important and should be highlighted. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTimelineCellMarkdownCreateAttributes` initialize method" @@ -96,14 +99,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @cell_type.nil? invalid_properties.push('invalid value for "cell_type", cell_type cannot be nil.') end - if @content.nil? invalid_properties.push('invalid value for "content", content cannot be nil.') end @@ -146,7 +148,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -154,7 +156,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -260,7 +262,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] value 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) @@ -276,7 +278,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 3e09675d3fd..5b12428b242 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The Markdown timeline cell contents. class IncidentTimelineCellMarkdownCreateAttributesContent - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTimelineCellMarkdownCreateAttributesContent` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incident_type.rb b/lib/datadog_api_client/v2/models/incident_type.rb index 6dcde7a6cc2..49261308219 100644 --- a/lib/datadog_api_client/v2/models/incident_type.rb +++ b/lib/datadog_api_client/v2/models/incident_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Incident resource type. class IncidentType INCIDENTS = "incidents".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 8ce209cbd72..187af87df24 100644 --- a/lib/datadog_api_client/v2/models/incident_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_update_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident's attributes for an update request. class IncidentUpdateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -95,12 +95,13 @@ def self.openapi_nullable :'customer_impact_end', :'customer_impact_start', :'detected', - :'resolved', + :'resolved' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentUpdateAttributes` initialize method" @@ -135,9 +136,7 @@ def initialize(attributes = {}) end if attributes.key?(:'fields') - if (value = attributes[:'fields']).is_a?(Hash) - self.fields = value - end + self.fields = attributes[:'fields'] end if attributes.key?(:'notification_handles') @@ -156,10 +155,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -202,7 +202,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -210,7 +210,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -316,7 +316,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] value 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) @@ -332,7 +332,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4ac41433a5c..13c05ac48c6 100644 --- a/lib/datadog_api_client/v2/models/incident_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_update_data.rb @@ -19,17 +19,20 @@ module DatadogAPIClient::V2 # Incident data for an update request. class IncidentUpdateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The incident's attributes for an update request. attr_accessor :attributes # The team's ID. attr_accessor :id + # The incident's relationships for an update request. attr_accessor :relationships + # Incident resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentUpdateData` initialize method" @@ -102,14 +106,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -153,7 +156,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -161,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -267,7 +270,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] value 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) @@ -283,7 +286,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 6f0042a06cb..cf920e909e3 100644 --- a/lib/datadog_api_client/v2/models/incident_update_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_update_relationships.rb @@ -19,18 +19,23 @@ module DatadogAPIClient::V2 # The incident's relationships for an update request. class IncidentUpdateRelationships - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Relationship to user. attr_accessor :commander_user + # Relationship to user. attr_accessor :created_by_user + # A relationship reference for multiple integration metadata objects. attr_accessor :integrations + # Relationship to user. attr_accessor :last_modified_by_user + # A relationship reference for postmortems. attr_accessor :postmortem # Attribute mapping from ruby-style variable name to JSON key. @@ -71,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentUpdateRelationships` initialize method" @@ -107,10 +113,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -149,7 +156,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -157,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -263,7 +270,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] value 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) @@ -279,7 +286,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 1eaa914cd18..4467ffa307b 100644 --- a/lib/datadog_api_client/v2/models/incident_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_update_request.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Update request for an incident. class IncidentUpdateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Incident data for an update request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentUpdateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incidents_response.rb b/lib/datadog_api_client/v2/models/incidents_response.rb index 8254964ef2a..8f3115a75b0 100644 --- a/lib/datadog_api_client/v2/models/incidents_response.rb +++ b/lib/datadog_api_client/v2/models/incidents_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response with a list of incidents. class IncidentsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class IncidentsResponse # Included related resources that the user requested. attr_accessor :included + # The metadata object containing pagination metadata. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. @@ -53,7 +54,7 @@ def self.openapi_types { :'data' => :'Array', :'included' => :'Array', - :'meta' => :'IncidentServicesResponseMeta' + :'meta' => :'IncidentsResponseMeta' } end @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentsResponse` initialize method" @@ -97,8 +99,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -142,7 +144,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -150,7 +152,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -256,7 +258,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] value 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) @@ -272,7 +274,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/.generator/templates/base_object.mustache b/lib/datadog_api_client/v2/models/incidents_response_meta.rb similarity index 52% rename from .generator/templates/base_object.mustache rename to lib/datadog_api_client/v2/models/incidents_response_meta.rb index 85e5728f56f..0c59f074ece 100644 --- a/.generator/templates/base_object.mustache +++ b/lib/datadog_api_client/v2/models/incidents_response_meta.rb @@ -1,5 +1,122 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://openapi-generator.tech + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # The metadata object containing pagination metadata. + class IncidentsResponseMeta + # whether the object has unparsed attributes + # @!visibility private + attr_accessor :_unparsed + + # Pagination properties. + attr_accessor :pagination + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'pagination' => :'pagination' + } + end + + # Returns all the JSON keys this model knows about + # @!visibility private + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'pagination' => :'IncidentsResponseMetaPagination' + } + end + + # List of attributes with nullable: true + # @!visibility private + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentsResponseMeta` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentsResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'pagination') + self.pagination = attributes[:'pagination'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + # @!visibility private + def list_invalid_properties + invalid_properties = Array.new + + invalid_properties + 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? + true + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + pagination == o.pagination + end + + # @see the `==` method + # @param o [Object] Object to be compared + # @!visibility private + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [pagination].hash + end + # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -7,14 +124,11 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) - {{#parent}} - super(attributes) - {{/parent}} self.class.openapi_types.each_pair do |key, type| if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) self.send("#{key}=", nil) @@ -74,9 +188,9 @@ def _deserialize(type, value) end else # model # models (e.g. Pet) or oneOf - klass = {{moduleName}}.const_get(type) + klass = DatadogAPIClient::V2.const_get(type) res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - if res.instance_of? {{moduleName}}::UnparsedObject + if res.instance_of? DatadogAPIClient::V2::UnparsedObject self._unparsed = true end res @@ -101,7 +215,7 @@ def to_body # @return [Hash] Returns the object in the form of hash # @!visibility private def to_hash - hash = {{^parent}}{}{{/parent}}{{#parent}}super{{/parent}} + hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? @@ -116,7 +230,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] value 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) @@ -132,3 +246,6 @@ def _to_hash(value) value end end + end + +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb new file mode 100644 index 00000000000..0a7e32ef283 --- /dev/null +++ b/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb @@ -0,0 +1,271 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://openapi-generator.tech + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # Pagination properties. + class IncidentsResponseMetaPagination + # whether the object has unparsed attributes + # @!visibility private + attr_accessor :_unparsed + + # The index of the first element in the next page of results. Equal to page size added to the current offset. + attr_accessor :next_offset + + # The index of the first element in the results. + attr_accessor :offset + + # Maximum size of pages to return. + attr_accessor :size + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'next_offset' => :'next_offset', + :'offset' => :'offset', + :'size' => :'size' + } + end + + # Returns all the JSON keys this model knows about + # @!visibility private + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'next_offset' => :'Integer', + :'offset' => :'Integer', + :'size' => :'Integer' + } + end + + # List of attributes with nullable: true + # @!visibility private + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentsResponseMetaPagination` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentsResponseMetaPagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'next_offset') + self.next_offset = attributes[:'next_offset'] + end + + if attributes.key?(:'offset') + self.offset = attributes[:'offset'] + end + + if attributes.key?(:'size') + self.size = attributes[:'size'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + # @!visibility private + def list_invalid_properties + invalid_properties = Array.new + + invalid_properties + 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? + true + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + next_offset == o.next_offset && + offset == o.offset && + size == o.size + end + + # @see the `==` method + # @param o [Object] Object to be compared + # @!visibility private + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [next_offset, offset, size].hash + end + + # Builds the object from hash + # @param attributes [Hash] Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param type [string] Data type + # @param value [string] Value to be deserialized + # @return [Object] Deserialized data + # @!visibility private + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when :Array + # generic array, return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = DatadogAPIClient::V2.const_get(type) + res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + if res.instance_of? DatadogAPIClient::V2::UnparsedObject + self._unparsed = true + end + res + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + # @!visibility private + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_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 + + # 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 + # @return [Hash] Returns the value in the form of hash + # @!visibility private + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end + +end \ No newline at end of file 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 4f2582b489c..5df874fb86a 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response for a list of application keys. class ListApplicationKeysResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListApplicationKeysResponse` initialize method" @@ -89,10 +90,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -128,7 +130,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -136,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -242,7 +244,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] value 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) @@ -258,7 +260,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/log.rb b/lib/datadog_api_client/v2/models/log.rb index 5e182b9098e..4b4485b6adb 100644 --- a/lib/datadog_api_client/v2/models/log.rb +++ b/lib/datadog_api_client/v2/models/log.rb @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # Object description of a log after being processed and stored by Datadog. class Log - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # JSON object containing all log attributes and their associated values. attr_accessor :attributes # Unique ID of the Log. attr_accessor :id + # Type of the event. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Log` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/log_attributes.rb b/lib/datadog_api_client/v2/models/log_attributes.rb index b1307872b58..06d0593ea3d 100644 --- a/lib/datadog_api_client/v2/models/log_attributes.rb +++ b/lib/datadog_api_client/v2/models/log_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # JSON object containing all log attributes and their associated values. class LogAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,10 +29,14 @@ class LogAttributes # Name of the machine from where the logs are being sent. attr_accessor :host - # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. + # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) + # of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. + # That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. attr_accessor :message - # The name of the application or service generating the log events. It is used to switch from Logs to APM, so make sure you define the same value when you use both products. + # The name of the application or service generating the log events. + # It is used to switch from Logs to APM, so make sure you define the same + # value when you use both products. attr_accessor :service # Status of the message associated with your log. @@ -86,7 +90,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogAttributes` initialize method" @@ -101,9 +106,7 @@ def initialize(attributes = {}) } if attributes.key?(:'attributes') - if (value = attributes[:'attributes']).is_a?(Hash) - self.attributes = value - end + self.attributes = attributes[:'attributes'] end if attributes.key?(:'host') @@ -134,10 +137,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -178,7 +182,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -186,7 +190,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -292,7 +296,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] value 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) @@ -308,7 +312,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/log_type.rb b/lib/datadog_api_client/v2/models/log_type.rb index a34b109397f..c21c6fa9f15 100644 --- a/lib/datadog_api_client/v2/models/log_type.rb +++ b/lib/datadog_api_client/v2/models/log_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Type of the event. class LogType LOG = "log".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 05d4914e6b0..bc7610d5560 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A bucket values class LogsAggregateBucket - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateBucket` initialize method" @@ -76,23 +77,20 @@ def initialize(attributes = {}) } if attributes.key?(:'by') - if (value = attributes[:'by']).is_a?(Hash) - self.by = value - end + self.by = attributes[:'by'] end if attributes.key?(:'computes') - if (value = attributes[:'computes']).is_a?(Hash) - self.computes = value - end + self.computes = attributes[:'computes'] end end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -128,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -136,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -242,7 +240,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] value 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) @@ -258,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value.rb b/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value.rb index 0de39fd6a0b..9cf51d644a1 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value.rb @@ -25,12 +25,11 @@ class << self # List of class defined in oneOf (OpenAPI v3) def openapi_one_of [ - :'Array', - :'Float', - :'String' + :'LogsAggregateBucketValueSingleString', + :'LogsAggregateBucketValueSingleNumber', + :'LogsAggregateBucketValueTimeseries' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -58,7 +57,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V2::UnparsedObject.new(data) end - end private @@ -116,4 +114,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 7cb078c8972..7a3d7f4e759 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A timeseries point class LogsAggregateBucketValueTimeseriesPoint - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateBucketValueTimeseriesPoint` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 f23262d6448..c29abf03c90 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_request.rb @@ -19,20 +19,24 @@ module DatadogAPIClient::V2 # The object sent with the request to retrieve a list of logs from your organization. class LogsAggregateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # The list of metrics or timeseries to compute for the retrieved buckets. attr_accessor :compute + # The search and filter query settings attr_accessor :filter # The rules for the group by attr_accessor :group_by + # Global query options that are used during the query. + # Note: You should only supply timezone or time offset but not both otherwise the query will fail. attr_accessor :options + # Paging settings attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. @@ -73,7 +77,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateRequest` initialize method" @@ -113,10 +118,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -155,7 +161,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -163,7 +169,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -269,7 +275,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] value 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) @@ -285,7 +291,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 7e05dc69759..a44cca26e85 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Paging settings class LogsAggregateRequestPage - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateRequestPage` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 e328d3b3ef1..3be28b546ad 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_response.rb @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # The response object for the logs aggregate API endpoint class LogsAggregateResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The query results attr_accessor :data + # The metadata associated with a request attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateResponse` initialize method" @@ -83,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -122,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -130,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -236,7 +240,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] value 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) @@ -252,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 58333799ae1..091ec766ed7 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The query results class LogsAggregateResponseData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateResponseData` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_response_status.rb b/lib/datadog_api_client/v2/models/logs_aggregate_response_status.rb index 0b29e441d83..ce0a467aac7 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_response_status.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_response_status.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The status of the response class LogsAggregateResponseStatus DONE = "done".freeze TIMEOUT = "timeout".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 66b7f7e6509..66e8338d2a6 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb @@ -19,17 +19,20 @@ module DatadogAPIClient::V2 # A sort rule class LogsAggregateSort - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # An aggregation function attr_accessor :aggregation # The metric to sort by (only used for `type=measure`) attr_accessor :metric + # The order to use, ascending or descending attr_accessor :order + # The type of sorting algorithm attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateSort` initialize method" @@ -102,10 +106,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -143,7 +148,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -151,7 +156,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -257,7 +262,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] value 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) @@ -273,7 +278,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_sort_type.rb b/lib/datadog_api_client/v2/models/logs_aggregate_sort_type.rb index b1b4f7d2d9d..5797a67ebaa 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_sort_type.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_sort_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The type of sorting algorithm class LogsAggregateSortType ALPHABETICAL = "alphabetical".freeze MEASURE = "measure".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_aggregation_function.rb b/lib/datadog_api_client/v2/models/logs_aggregation_function.rb index d3785fd0693..8e63efd75bf 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregation_function.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregation_function.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # An aggregation function class LogsAggregationFunction COUNT = "count".freeze CARDINALITY = "cardinality".freeze @@ -47,5 +48,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_archive.rb b/lib/datadog_api_client/v2/models/logs_archive.rb index f5a8884272b..248cdcb2bcc 100644 --- a/lib/datadog_api_client/v2/models/logs_archive.rb +++ b/lib/datadog_api_client/v2/models/logs_archive.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # The logs archive. class LogsArchive - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The definition of an archive. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchive` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 1e3e95d357a..d5bd7f09c90 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb @@ -19,13 +19,15 @@ module DatadogAPIClient::V2 # The attributes associated with the archive. class LogsArchiveAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # An archive's destination. attr_accessor :destination - # To store the tags in the archive, set the value \"true\". If it is set to \"false\", the tags will be deleted when the logs are sent to the archive. + # To store the tags in the archive, set the value "true". + # If it is set to "false", the tags will be deleted when the logs are sent to the archive. attr_accessor :include_tags # The archive name. @@ -37,6 +39,7 @@ class LogsArchiveAttributes # An array of tags to add to rehydrated logs from an archive. attr_accessor :rehydration_tags + # The state of the archive. attr_accessor :state # Attribute mapping from ruby-style variable name to JSON key. @@ -75,12 +78,13 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'destination', + :'destination' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveAttributes` initialize method" @@ -124,14 +128,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + if @destination.nil? + invalid_properties.push('invalid value for "destination", destination cannot be nil.') + end if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end @@ -143,6 +149,7 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @destination.nil? return false if @name.nil? return false if @query.nil? true @@ -177,7 +184,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -185,7 +192,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -291,7 +298,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] value 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) @@ -307,7 +314,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 044bf4eff0d..2eecdf4cffb 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # The logs archive. class LogsArchiveCreateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The definition of an archive. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveCreateRequest` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 eb94c347cae..f1caf4139b2 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 @@ -19,13 +19,15 @@ module DatadogAPIClient::V2 # The attributes associated with the archive. class LogsArchiveCreateRequestAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # An archive's destination. attr_accessor :destination - # To store the tags in the archive, set the value \"true\". If it is set to \"false\", the tags will be deleted when the logs are sent to the archive. + # To store the tags in the archive, set the value "true". + # If it is set to "false", the tags will be deleted when the logs are sent to the archive. attr_accessor :include_tags # The archive name. @@ -75,7 +77,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveCreateRequestAttributes` initialize method" @@ -115,18 +118,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @destination.nil? invalid_properties.push('invalid value for "destination", destination cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end @@ -172,7 +173,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -180,7 +181,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -286,7 +287,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] value 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) @@ -302,7 +303,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 e1681c18020..9189f02e448 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # The definition of an archive. class LogsArchiveCreateRequestDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The attributes associated with the archive. attr_accessor :attributes # The type of the resource. The value should always be archives. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveCreateRequestDefinition` initialize method" @@ -86,8 +88,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -130,7 +132,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -138,7 +140,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -244,7 +246,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] value 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) @@ -260,7 +262,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_archive_create_request_destination.rb b/lib/datadog_api_client/v2/models/logs_archive_create_request_destination.rb index ae100b30836..c4f2e863974 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_create_request_destination.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_create_request_destination.rb @@ -30,7 +30,6 @@ def openapi_one_of :'LogsArchiveDestinationS3' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -58,7 +57,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V2::UnparsedObject.new(data) end - end private @@ -116,4 +114,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 da3df36b82b..e58a2c52210 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_definition.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # The definition of an archive. class LogsArchiveDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The attributes associated with the archive. attr_accessor :attributes # The archive ID. @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveDefinition` initialize method" @@ -95,8 +97,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -140,7 +142,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -148,7 +150,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -254,7 +256,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] value 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) @@ -270,7 +272,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination.rb b/lib/datadog_api_client/v2/models/logs_archive_destination.rb index e2ec36356b1..01b7dd5f126 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination.rb @@ -30,7 +30,6 @@ def openapi_one_of :'LogsArchiveDestinationS3' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -58,7 +57,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V2::UnparsedObject.new(data) end - end private @@ -116,4 +114,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 6d76afc8209..c07efafaa28 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V2 # The Azure archive destination. class LogsArchiveDestinationAzure - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # The container where the archive will be stored. attr_accessor :container + # The Azure archive's integration destination. attr_accessor :integration # The archive path. @@ -37,6 +38,7 @@ class LogsArchiveDestinationAzure # The associated storage account. attr_accessor :storage_account + # Type of the Azure archive destination. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -79,7 +81,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveDestinationAzure` initialize method" @@ -121,22 +124,19 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @container.nil? invalid_properties.push('invalid value for "container", container cannot be nil.') end - if @integration.nil? invalid_properties.push('invalid value for "integration", integration cannot be nil.') end - if @storage_account.nil? invalid_properties.push('invalid value for "storage_account", storage_account cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -184,7 +184,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -192,7 +192,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -298,7 +298,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] value 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) @@ -314,7 +314,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_azure_type.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_azure_type.rb index cbc561ce604..a98754d27f4 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_azure_type.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_azure_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Type of the Azure archive destination. class LogsArchiveDestinationAzureType AZURE = "azure".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 5b4d3e04045..a2e974fd46c 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 @@ -19,18 +19,20 @@ module DatadogAPIClient::V2 # The GCS archive destination. class LogsArchiveDestinationGCS - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # The bucket where the archive will be stored. attr_accessor :bucket + # The GCS archive's integration destination. attr_accessor :integration # The archive path. attr_accessor :path + # Type of the GCS archive destination. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -69,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveDestinationGCS` initialize method" @@ -103,18 +106,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @bucket.nil? invalid_properties.push('invalid value for "bucket", bucket cannot be nil.') end - if @integration.nil? invalid_properties.push('invalid value for "integration", integration cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -159,7 +160,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -167,7 +168,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -273,7 +274,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] value 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) @@ -289,7 +290,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_gcs_type.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_gcs_type.rb index 9d630804df2..5d8a21f3513 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_gcs_type.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_gcs_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Type of the GCS archive destination. class LogsArchiveDestinationGCSType GCS = "gcs".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 0add594b127..979263df261 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 @@ -19,18 +19,20 @@ module DatadogAPIClient::V2 # The S3 archive destination. class LogsArchiveDestinationS3 - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # The bucket where the archive will be stored. attr_accessor :bucket + # The S3 Archive's integration destination. attr_accessor :integration # The archive path. attr_accessor :path + # Type of the S3 archive destination. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -69,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveDestinationS3` initialize method" @@ -103,18 +106,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @bucket.nil? invalid_properties.push('invalid value for "bucket", bucket cannot be nil.') end - if @integration.nil? invalid_properties.push('invalid value for "integration", integration cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -159,7 +160,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -167,7 +168,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -273,7 +274,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] value 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) @@ -289,7 +290,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_s3_type.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_s3_type.rb index c6fa4ad5fae..b7c6144c6b5 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_s3_type.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_s3_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Type of the S3 archive destination. class LogsArchiveDestinationS3Type S3 = "s3".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 482c3e80d62..2f942039b96 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The Azure archive's integration destination. class LogsArchiveIntegrationAzure - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveIntegrationAzure` initialize method" @@ -85,14 +86,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @client_id.nil? invalid_properties.push('invalid value for "client_id", client_id cannot be nil.') end - if @tenant_id.nil? invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.') end @@ -134,7 +134,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +248,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] value 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) @@ -264,7 +264,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 50e0116af8f..85a337372f4 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The GCS archive's integration destination. class LogsArchiveIntegrationGCS - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveIntegrationGCS` initialize method" @@ -85,14 +86,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @client_email.nil? invalid_properties.push('invalid value for "client_email", client_email cannot be nil.') end - if @project_id.nil? invalid_properties.push('invalid value for "project_id", project_id cannot be nil.') end @@ -134,7 +134,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +248,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] value 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) @@ -264,7 +264,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 30da6881ded..1a8abf0bb28 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The S3 Archive's integration destination. class LogsArchiveIntegrationS3 - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveIntegrationS3` initialize method" @@ -85,14 +86,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @account_id.nil? invalid_properties.push('invalid value for "account_id", account_id cannot be nil.') end - if @role_name.nil? invalid_properties.push('invalid value for "role_name", role_name cannot be nil.') end @@ -134,7 +134,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +248,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] value 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) @@ -264,7 +264,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 865f83a90bf..e5d9d03a706 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # A ordered list of archive IDs. class LogsArchiveOrder - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The definition of an archive order. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveOrder` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 84d30a1474b..9c5e1504ab4 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 @@ -19,11 +19,12 @@ module DatadogAPIClient::V2 # The attributes associated with the archive order. class LogsArchiveOrderAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # An ordered array of `` strings, the order of archive IDs in the array define the overall archives order for Datadog. + # An ordered array of `` strings, the order of archive IDs in the array + # define the overall archives order for Datadog. attr_accessor :archive_ids # Attribute mapping from ruby-style variable name to JSON key. @@ -56,7 +57,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveOrderAttributes` initialize method" @@ -78,8 +80,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @archive_ids.nil? @@ -121,7 +123,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -129,7 +131,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -235,7 +237,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] value 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) @@ -251,7 +253,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 2a1a53dee0b..20660d507c9 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # The definition of an archive order. class LogsArchiveOrderDefinition - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The attributes associated with the archive order. attr_accessor :attributes + # Type of the archive order definition. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveOrderDefinition` initialize method" @@ -85,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_archive_order_definition_type.rb b/lib/datadog_api_client/v2/models/logs_archive_order_definition_type.rb index d97af277b43..e98a4d54cb1 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order_definition_type.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order_definition_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Type of the archive order definition. class LogsArchiveOrderDefinitionType ARCHIVE_ORDER = "archive_order".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_archive_state.rb b/lib/datadog_api_client/v2/models/logs_archive_state.rb index 9a4ce6a04ff..41943da3242 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_state.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_state.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The state of the archive. class LogsArchiveState UNKNOWN = "UNKNOWN".freeze WORKING = "WORKING".freeze @@ -40,5 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_archives.rb b/lib/datadog_api_client/v2/models/logs_archives.rb index 4add43d424b..1f5ebb224e2 100644 --- a/lib/datadog_api_client/v2/models/logs_archives.rb +++ b/lib/datadog_api_client/v2/models/logs_archives.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The available archives. class LogsArchives - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchives` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_compute.rb b/lib/datadog_api_client/v2/models/logs_compute.rb index 6c4b505b108..379ac0625d0 100644 --- a/lib/datadog_api_client/v2/models/logs_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_compute.rb @@ -19,18 +19,21 @@ module DatadogAPIClient::V2 # A compute rule to compute metrics or timeseries class LogsCompute - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # An aggregation function attr_accessor :aggregation - # The time buckets' size (only used for type=timeseries) Defaults to a resolution of 150 points + # The time buckets' size (only used for type=timeseries) + # Defaults to a resolution of 150 points attr_accessor :interval # The metric to use attr_accessor :metric + # The type of compute attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -69,7 +72,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsCompute` initialize method" @@ -103,8 +107,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @aggregation.nil? @@ -149,7 +153,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -157,7 +161,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -263,7 +267,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] value 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) @@ -279,7 +283,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_compute_type.rb b/lib/datadog_api_client/v2/models/logs_compute_type.rb index 6e4f5ae53cc..68a69314e31 100644 --- a/lib/datadog_api_client/v2/models/logs_compute_type.rb +++ b/lib/datadog_api_client/v2/models/logs_compute_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The type of compute class LogsComputeType TIMESERIES = "timeseries".freeze TOTAL = "total".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 b92aa5ba446..3e70efb26ba 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by.rb @@ -19,22 +19,27 @@ module DatadogAPIClient::V2 # A group by rule class LogsGroupBy - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # The name of the facet to use (required) attr_accessor :facet + # Used to perform a histogram computation (only for measure facets). + # Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval. attr_accessor :histogram # The maximum buckets to return for this group by attr_accessor :limit + # The value to use for logs that don't have the facet used to group by attr_accessor :missing + # A sort rule attr_accessor :sort + # A resulting object to put the given computes in over all the matching records. attr_accessor :total # Attribute mapping from ruby-style variable name to JSON key. @@ -77,7 +82,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsGroupBy` initialize method" @@ -115,12 +121,14 @@ def initialize(attributes = {}) if attributes.key?(:'total') self.total = attributes[:'total'] + else + self.total = false end end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @facet.nil? @@ -167,7 +175,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -175,7 +183,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -281,7 +289,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] value 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) @@ -297,7 +305,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 50512782465..8a4b1e9a74b 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 @@ -17,19 +17,22 @@ require 'time' module DatadogAPIClient::V2 - # Used to perform a histogram computation (only for measure facets). Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval. + # Used to perform a histogram computation (only for measure facets). + # Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval. class LogsGroupByHistogram - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # The bin size of the histogram buckets attr_accessor :interval - # The maximum value for the measure used in the histogram (values greater than this one are filtered out) + # The maximum value for the measure used in the histogram + # (values greater than this one are filtered out) attr_accessor :max - # The minimum value for the measure used in the histogram (values smaller than this one are filtered out) + # The minimum value for the measure used in the histogram + # (values smaller than this one are filtered out) attr_accessor :min # Attribute mapping from ruby-style variable name to JSON key. @@ -66,7 +69,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsGroupByHistogram` initialize method" @@ -94,18 +98,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @interval.nil? invalid_properties.push('invalid value for "interval", interval cannot be nil.') end - if @max.nil? invalid_properties.push('invalid value for "max", max cannot be nil.') end - if @min.nil? invalid_properties.push('invalid value for "min", min cannot be nil.') end @@ -149,7 +151,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -157,7 +159,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -263,7 +265,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] value 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) @@ -279,7 +281,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_group_by_missing.rb b/lib/datadog_api_client/v2/models/logs_group_by_missing.rb index c18a773b485..3832f6afbb3 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by_missing.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by_missing.rb @@ -25,11 +25,10 @@ class << self # List of class defined in oneOf (OpenAPI v3) def openapi_one_of [ - :'Float', - :'String' + :'LogsGroupByMissingString', + :'LogsGroupByMissingNumber' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -57,7 +56,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V2::UnparsedObject.new(data) end - end private @@ -115,4 +113,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_group_by_total.rb b/lib/datadog_api_client/v2/models/logs_group_by_total.rb index 5f6c61e9c7f..4c25d36b790 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by_total.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by_total.rb @@ -25,12 +25,11 @@ class << self # List of class defined in oneOf (OpenAPI v3) def openapi_one_of [ - :'Boolean', - :'Float', - :'String' + :'LogsGroupByTotalBoolean', + :'LogsGroupByTotalString', + :'LogsGroupByTotalNumber' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -58,7 +57,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V2::UnparsedObject.new(data) end - end private @@ -116,4 +114,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 a66ab468ccd..9b9cd3ab165 100644 --- a/lib/datadog_api_client/v2/models/logs_list_request.rb +++ b/lib/datadog_api_client/v2/models/logs_list_request.rb @@ -19,16 +19,21 @@ module DatadogAPIClient::V2 # The request for a logs list. class LogsListRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The search and filter query settings attr_accessor :filter + # Global query options that are used during the query. + # Note: You should only supply timezone or time offset but not both otherwise the query will fail. attr_accessor :options + # Paging attributes for listing logs. attr_accessor :page + # Sort parameters when querying logs. attr_accessor :sort # Attribute mapping from ruby-style variable name to JSON key. @@ -67,7 +72,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsListRequest` initialize method" @@ -99,10 +105,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -140,7 +147,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -148,7 +155,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -254,7 +261,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] value 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) @@ -270,7 +277,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 300d96ece68..665a99aa68f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Paging attributes for listing logs. class LogsListRequestPage - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsListRequestPage` initialize method" @@ -87,13 +88,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@limit.nil? && @limit > 1000 - invalid_properties.push('invalid value for "limit", must be smaller than or equal to 1000.') - end invalid_properties end @@ -102,20 +100,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@limit.nil? && @limit > 1000 true end - # Custom attribute writer method with validation - # @param limit [Object] limit Value to be assigned - def limit=(limit) - if !limit.nil? && limit > 1000 - fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 1000.' - end - - @limit = limit - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -141,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -149,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -255,7 +242,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] value 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) @@ -271,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 36ee09e28b4..aacad489b66 100644 --- a/lib/datadog_api_client/v2/models/logs_list_response.rb +++ b/lib/datadog_api_client/v2/models/logs_list_response.rb @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # Response object with all logs matching the request and pagination information. class LogsListResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Array of logs matching the request. attr_accessor :data + # Links attributes. attr_accessor :links + # The metadata associated with a request attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsListResponse` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 62bd4d254c9..d8ba9608843 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 @@ -19,11 +19,12 @@ module DatadogAPIClient::V2 # Links attributes. class LogsListResponseLinks - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # Link for the next set of results. Note that the request can also be made using the POST endpoint. + # Link for the next set of results. Note that the request can also be made using the + # POST endpoint. attr_accessor :_next # Attribute mapping from ruby-style variable name to JSON key. @@ -56,7 +57,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsListResponseLinks` initialize method" @@ -76,10 +78,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +117,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +125,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +231,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] value 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) @@ -244,7 +247,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 eaabf50e5ca..ad403e57e0f 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_compute.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V2 # The compute rule to compute the log-based metric. class LogsMetricCompute - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The type of aggregation to use. attr_accessor :aggregation_type - # The path to the value the log-based metric will aggregate on (only used if the aggregation type is a \"distribution\"). + # The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution"). attr_accessor :path # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricCompute` initialize method" @@ -84,8 +86,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @aggregation_type.nil? @@ -128,7 +130,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -136,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -242,7 +244,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] value 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) @@ -258,7 +260,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_metric_compute_aggregation_type.rb b/lib/datadog_api_client/v2/models/logs_metric_compute_aggregation_type.rb index ad773420dea..8aff903aada 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_compute_aggregation_type.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_compute_aggregation_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The type of aggregation to use. class LogsMetricComputeAggregationType COUNT = "count".freeze DISTRIBUTION = "distribution".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 245f35bc865..2942acdbd96 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # The object describing the Datadog log-based metric to create. class LogsMetricCreateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The compute rule to compute the log-based metric. attr_accessor :compute + # The log-based metric filter. Logs matching this filter will be aggregated in this metric. attr_accessor :filter # The rules for the group by. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricCreateAttributes` initialize method" @@ -94,8 +97,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @compute.nil? @@ -139,7 +142,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -147,7 +150,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -253,7 +256,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] value 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) @@ -269,7 +272,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 6f8b4fccc57..b32df9c8b37 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # The new log-based metric properties. class LogsMetricCreateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The object describing the Datadog log-based metric to create. attr_accessor :attributes # The name of the log-based metric. attr_accessor :id + # The type of the resource. The value should always be logs_metrics. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricCreateData` initialize method" @@ -94,18 +97,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -149,7 +150,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -157,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -263,7 +264,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] value 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) @@ -279,7 +280,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 a868ca44ae7..7595c541a2c 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # The new log-based metric body. class LogsMetricCreateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The new log-based metric properties. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricCreateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 90dad3bb6a6..94d07cf295f 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_filter.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The log-based metric filter. Logs matching this filter will be aggregated in this metric. class LogsMetricFilter - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricFilter` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 065d8594022..e50b266f457 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A group by rule. class LogsMetricGroupBy - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricGroupBy` initialize method" @@ -85,8 +86,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @path.nil? @@ -129,7 +130,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -137,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -243,7 +244,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] value 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) @@ -259,7 +260,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4744da41f68..9e55131ad9d 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # The log-based metric object. class LogsMetricResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The log-based metric properties. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricResponse` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 802dcfcfb3c..b4bf04ff6d7 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # The object describing a Datadog log-based metric. class LogsMetricResponseAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The compute rule to compute the log-based metric. attr_accessor :compute + # The log-based metric filter. Logs matching this filter will be aggregated in this metric. attr_accessor :filter # The rules for the group by. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricResponseAttributes` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 5d70b67b0df..f627bd99297 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V2 # The compute rule to compute the log-based metric. class LogsMetricResponseCompute - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The type of aggregation to use. attr_accessor :aggregation_type - # The path to the value the log-based metric will aggregate on (only used if the aggregation type is a \"distribution\"). + # The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution"). attr_accessor :path # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricResponseCompute` initialize method" @@ -84,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -123,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -131,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -237,7 +240,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] value 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) @@ -253,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_compute_aggregation_type.rb b/lib/datadog_api_client/v2/models/logs_metric_response_compute_aggregation_type.rb index 23e04ea4a42..9697f13a93e 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_compute_aggregation_type.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_compute_aggregation_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The type of aggregation to use. class LogsMetricResponseComputeAggregationType COUNT = "count".freeze DISTRIBUTION = "distribution".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 527413936de..ccd8163a5f7 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # The log-based metric properties. class LogsMetricResponseData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The object describing a Datadog log-based metric. attr_accessor :attributes # The name of the log-based metric. attr_accessor :id + # The type of the resource. The value should always be logs_metrics. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricResponseData` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 60a70054605..8ab2c52ae8d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The log-based metric filter. Logs matching this filter will be aggregated in this metric. class LogsMetricResponseFilter - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricResponseFilter` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 fce3265b979..83ae41dd8f3 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A group by rule. class LogsMetricResponseGroupBy - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricResponseGroupBy` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_metric_type.rb b/lib/datadog_api_client/v2/models/logs_metric_type.rb index 7389d59dc44..cf1a11d200a 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_type.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The type of the resource. The value should always be logs_metrics. class LogsMetricType LOGS_METRICS = "logs_metrics".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 9e340f6d1ec..f8d06b0fe9d 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # The log-based metric properties that will be updated. class LogsMetricUpdateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The log-based metric filter. Logs matching this filter will be aggregated in this metric. attr_accessor :filter # The rules for the group by. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricUpdateAttributes` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 5af089fc772..645f306c841 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # The new log-based metric properties. class LogsMetricUpdateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The log-based metric properties that will be updated. attr_accessor :attributes + # The type of the resource. The value should always be logs_metrics. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricUpdateData` initialize method" @@ -85,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 eeda6e6fff6..ea0ad306f44 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # The new log-based metric body. class LogsMetricUpdateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The new log-based metric properties. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricUpdateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 dfd1797cbeb..2bbcad31800 100644 --- a/lib/datadog_api_client/v2/models/logs_metrics_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metrics_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # All the available log-based metric objects. class LogsMetricsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricsResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 14d5b2c5065..87e5de9d1f0 100644 --- a/lib/datadog_api_client/v2/models/logs_query_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_query_filter.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The search and filter query settings class LogsQueryFilter - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsQueryFilter` initialize method" @@ -95,6 +96,8 @@ def initialize(attributes = {}) if (value = attributes[:'indexes']).is_a?(Array) self.indexes = value end + else + self.indexes = ['*'] end if attributes.key?(:'query') @@ -111,10 +114,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -152,7 +156,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -160,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -266,7 +270,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] value 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) @@ -282,7 +286,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 5ff5b4de8dd..3478e749d91 100644 --- a/lib/datadog_api_client/v2/models/logs_query_options.rb +++ b/lib/datadog_api_client/v2/models/logs_query_options.rb @@ -17,16 +17,17 @@ require 'time' module DatadogAPIClient::V2 - # Global query options that are used during the query. Note: You should only supply timezone or time offset but not both otherwise the query will fail. + # Global query options that are used during the query. + # Note: You should only supply timezone or time offset but not both otherwise the query will fail. class LogsQueryOptions - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # The time offset (in seconds) to apply to the query. attr_accessor :time_offset - # The timezone can be specified both as an offset, for example: \"UTC+03:00\". + # The timezone can be specified both as an offset, for example: "UTC+03:00". attr_accessor :timezone # Attribute mapping from ruby-style variable name to JSON key. @@ -61,7 +62,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsQueryOptions` initialize method" @@ -87,10 +89,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -126,7 +129,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -134,7 +137,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -240,7 +243,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] value 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) @@ -256,7 +259,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 fcb3009e6e2..a68ccb06682 100644 --- a/lib/datadog_api_client/v2/models/logs_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/logs_response_metadata.rb @@ -19,21 +19,24 @@ module DatadogAPIClient::V2 # The metadata associated with a request class LogsResponseMetadata - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # The time elapsed in milliseconds attr_accessor :elapsed + # Paging attributes. attr_accessor :page # The identifier of the request attr_accessor :request_id + # The status of the response attr_accessor :status - # A list of warnings (non fatal errors) encountered, partial results might be returned if warnings are present in the response. + # A list of warnings (non fatal errors) encountered, partial results might be returned if + # warnings are present in the response. attr_accessor :warnings # Attribute mapping from ruby-style variable name to JSON key. @@ -74,7 +77,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsResponseMetadata` initialize method" @@ -112,10 +116,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -154,7 +159,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -162,7 +167,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -268,7 +273,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] value 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) @@ -284,7 +289,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 9dd5d31650e..23af83cc6e8 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 @@ -19,11 +19,12 @@ module DatadogAPIClient::V2 # Paging attributes. class LogsResponseMetadataPage - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # 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 `page[cursor]`. + # 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 `page[cursor]`. attr_accessor :after # Attribute mapping from ruby-style variable name to JSON key. @@ -56,7 +57,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsResponseMetadataPage` initialize method" @@ -76,10 +78,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +117,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +125,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +231,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] value 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) @@ -244,7 +247,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_sort.rb b/lib/datadog_api_client/v2/models/logs_sort.rb index 8ec609ce5e4..f5f97caca69 100644 --- a/lib/datadog_api_client/v2/models/logs_sort.rb +++ b/lib/datadog_api_client/v2/models/logs_sort.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Sort parameters when querying logs. class LogsSort TIMESTAMP_ASCENDING = "timestamp".freeze TIMESTAMP_DESCENDING = "-timestamp".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_sort_order.rb b/lib/datadog_api_client/v2/models/logs_sort_order.rb index 145c3766ad6..2fb3c997cd7 100644 --- a/lib/datadog_api_client/v2/models/logs_sort_order.rb +++ b/lib/datadog_api_client/v2/models/logs_sort_order.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The order to use, ascending or descending class LogsSortOrder ASCENDING = "asc".freeze DESCENDING = "desc".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/logs_warning.rb b/lib/datadog_api_client/v2/models/logs_warning.rb index 2efc8620644..9514f612511 100644 --- a/lib/datadog_api_client/v2/models/logs_warning.rb +++ b/lib/datadog_api_client/v2/models/logs_warning.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A warning message indicating something that went wrong with the query class LogsWarning - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsWarning` initialize method" @@ -94,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/metric.rb b/lib/datadog_api_client/v2/models/metric.rb index d46a70902b4..9776595c915 100644 --- a/lib/datadog_api_client/v2/models/metric.rb +++ b/lib/datadog_api_client/v2/models/metric.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V2 # Object for a single metric tag configuration. class Metric - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # The metric name for this resource. attr_accessor :id + # The metric resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Metric` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 336c8d94f5f..ed45fdb28bf 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags.rb @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # Object for a single metric's indexed tags. class MetricAllTags - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object containing the definition of a metric's tags. attr_accessor :attributes # The metric name for this resource. attr_accessor :id + # The metric resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAllTags` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 77d17a069c5..8cb5d3f1dbe 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object containing the definition of a metric's tags. class MetricAllTagsAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAllTagsAttributes` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 b34afa7001d..b943dc9dfc2 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Response object that includes a single metric's indexed tags. class MetricAllTagsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object for a single metric's indexed tags. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAllTagsResponse` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 867d7b80168..afdc72ee9ad 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # A time and space aggregation combination for use in query. class MetricCustomAggregation - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # A space aggregation for use in query. attr_accessor :space + # A time aggregation for use in query. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricCustomAggregation` initialize method" @@ -83,14 +86,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @space.nil? invalid_properties.push('invalid value for "space", space cannot be nil.') end - if @time.nil? invalid_properties.push('invalid value for "time", time cannot be nil.') end @@ -132,7 +134,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -140,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -246,7 +248,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] value 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) @@ -262,7 +264,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/metric_custom_space_aggregation.rb b/lib/datadog_api_client/v2/models/metric_custom_space_aggregation.rb index 1521c5a92e0..592bd6439b5 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_space_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_space_aggregation.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # A space aggregation for use in query. class MetricCustomSpaceAggregation AVG = "avg".freeze MAX = "max".freeze @@ -40,5 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/metric_custom_time_aggregation.rb b/lib/datadog_api_client/v2/models/metric_custom_time_aggregation.rb index abb9ff20353..a42996385bf 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_time_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_time_aggregation.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # A time aggregation for use in query. class MetricCustomTimeAggregation AVG = "avg".freeze COUNT = "count".freeze @@ -41,5 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 a2f04aa8912..31aa484aeff 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume.rb @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # Object for a single metric's distinct volume. class MetricDistinctVolume - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object containing the definition of a metric's distinct volume. attr_accessor :attributes # The metric name for this resource. attr_accessor :id + # The metric distinct volume type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricDistinctVolume` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 07461bf4a40..1725fad32e2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object containing the definition of a metric's distinct volume. class MetricDistinctVolumeAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricDistinctVolumeAttributes` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/metric_distinct_volume_type.rb b/lib/datadog_api_client/v2/models/metric_distinct_volume_type.rb index 09806f362db..9280d45e473 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume_type.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The metric distinct volume type. class MetricDistinctVolumeType DISTINCT_METRIC_VOLUMES = "distinct_metric_volumes".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 3bc5c6a54a2..91214d16ec7 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # Object for a single metric's ingested and indexed volume. class MetricIngestedIndexedVolume - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object containing the definition of a metric's ingested and indexed volume. attr_accessor :attributes # The metric name for this resource. attr_accessor :id + # The metric ingested and indexed volume type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricIngestedIndexedVolume` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 3533411faa4..0e2abcb631f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object containing the definition of a metric's ingested and indexed volume. class MetricIngestedIndexedVolumeAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricIngestedIndexedVolumeAttributes` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_type.rb b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_type.rb index bbf68d37ec8..441e6d0e440 100644 --- a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_type.rb +++ b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The metric ingested and indexed volume type. class MetricIngestedIndexedVolumeType METRIC_VOLUMES = "metric_volumes".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 57e04dcb822..c6d6c54b826 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration.rb @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # Object for a single metric tag configuration. class MetricTagConfiguration - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object containing the definition of a metric tag configuration attributes. attr_accessor :attributes # The metric name for this resource. attr_accessor :id + # The metric tag configuration resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfiguration` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 cc2f2e0c1ed..d5aeb0cff8b 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 @@ -19,19 +19,36 @@ module DatadogAPIClient::V2 # Object containing the definition of a metric tag configuration attributes. class MetricTagConfigurationAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # A list of queryable aggregation combinations for a count, rate, or gauge metric. By default, count and rate metrics require the (time: sum, space: sum) aggregation and Gauge metrics require the (time: avg, space: avg) aggregation. Additional time & space combinations are also available: - time: avg, space: avg - time: avg, space: max - time: avg, space: min - time: avg, space: sum - time: count, space: sum - time: max, space: max - time: min, space: min - time: sum, space: avg - time: sum, space: sum Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`. + # A list of queryable aggregation combinations for a count, rate, or gauge metric. + # By default, count and rate metrics require the (time: sum, space: sum) aggregation and + # Gauge metrics require the (time: avg, space: avg) aggregation. + # Additional time & space combinations are also available: + # + # - time: avg, space: avg + # - time: avg, space: max + # - time: avg, space: min + # - time: avg, space: sum + # - time: count, space: sum + # - time: max, space: max + # - time: min, space: min + # - time: sum, space: avg + # - time: sum, space: sum + # + # Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`. attr_accessor :aggregations # Timestamp when the tag configuration was created. attr_accessor :created_at - # Toggle to turn on/off percentile aggregations for distribution metrics. Only present when the `metric_type` is `distribution`. + # Toggle to turn on/off percentile aggregations for distribution metrics. + # Only present when the `metric_type` is `distribution`. attr_accessor :include_percentiles + # The metric's type. attr_accessor :metric_type # Timestamp when the tag configuration was last modified. @@ -80,7 +97,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationAttributes` initialize method" @@ -126,10 +144,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -169,7 +188,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -177,7 +196,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -283,7 +302,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] value 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) @@ -299,7 +318,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 e7991a98d07..97884e0b06e 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 @@ -19,16 +19,33 @@ module DatadogAPIClient::V2 # Object containing the definition of a metric tag configuration to be created. class MetricTagConfigurationCreateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # A list of queryable aggregation combinations for a count, rate, or gauge metric. By default, count and rate metrics require the (time: sum, space: sum) aggregation and Gauge metrics require the (time: avg, space: avg) aggregation. Additional time & space combinations are also available: - time: avg, space: avg - time: avg, space: max - time: avg, space: min - time: avg, space: sum - time: count, space: sum - time: max, space: max - time: min, space: min - time: sum, space: avg - time: sum, space: sum Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`. + # A list of queryable aggregation combinations for a count, rate, or gauge metric. + # By default, count and rate metrics require the (time: sum, space: sum) aggregation and + # Gauge metrics require the (time: avg, space: avg) aggregation. + # Additional time & space combinations are also available: + # + # - time: avg, space: avg + # - time: avg, space: max + # - time: avg, space: min + # - time: avg, space: sum + # - time: count, space: sum + # - time: max, space: max + # - time: min, space: min + # - time: sum, space: avg + # - time: sum, space: sum + # + # Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`. attr_accessor :aggregations - # Toggle to include/exclude percentiles for a distribution metric. Defaults to false. Can only be applied to metrics that have a `metric_type` of `distribution`. + # Toggle to include/exclude percentiles for a distribution metric. + # Defaults to false. Can only be applied to metrics that have a `metric_type` of `distribution`. attr_accessor :include_percentiles + # The metric's type. attr_accessor :metric_type # A list of tag keys that will be queryable for your metric. @@ -70,7 +87,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationCreateAttributes` initialize method" @@ -106,18 +124,19 @@ def initialize(attributes = {}) if (value = attributes[:'tags']).is_a?(Array) self.tags = value end + else + self.tags = [] end end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @metric_type.nil? invalid_properties.push('invalid value for "metric_type", metric_type cannot be nil.') end - if @tags.nil? invalid_properties.push('invalid value for "tags", tags cannot be nil.') end @@ -161,7 +180,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -169,7 +188,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -275,7 +294,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] value 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) @@ -291,7 +310,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 52470855e3d..ec3b05654e3 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # Object for a single metric to be configure tags on. class MetricTagConfigurationCreateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object containing the definition of a metric tag configuration to be created. attr_accessor :attributes # The metric name for this resource. attr_accessor :id + # The metric tag configuration resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationCreateData` initialize method" @@ -94,14 +97,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -144,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +260,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] value 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) @@ -274,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 0af394b8e61..045c076a5f7 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Request object that includes the metric that you would like to configure tags for. class MetricTagConfigurationCreateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object for a single metric to be configure tags on. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationCreateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_metric_types.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_metric_types.rb index 2dab6f6165c..fd501a59858 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_metric_types.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_metric_types.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The metric's type. class MetricTagConfigurationMetricTypes GAUGE = "gauge".freeze COUNT = "count".freeze @@ -40,5 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 1ae6ad43773..71b702ba35c 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Response object which includes a single metric's tag configuration. class MetricTagConfigurationResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object for a single metric tag configuration. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationResponse` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_type.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_type.rb index 7d5cde84297..c268327bcf6 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_type.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The metric tag configuration resource type. class MetricTagConfigurationType MANAGE_TAGS = "manage_tags".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 a85297d5147..74fe7328cce 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 @@ -19,14 +19,30 @@ module DatadogAPIClient::V2 # Object containing the definition of a metric tag configuration to be updated. class MetricTagConfigurationUpdateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # A list of queryable aggregation combinations for a count, rate, or gauge metric. By default, count and rate metrics require the (time: sum, space: sum) aggregation and Gauge metrics require the (time: avg, space: avg) aggregation. Additional time & space combinations are also available: - time: avg, space: avg - time: avg, space: max - time: avg, space: min - time: avg, space: sum - time: count, space: sum - time: max, space: max - time: min, space: min - time: sum, space: avg - time: sum, space: sum Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`. + # A list of queryable aggregation combinations for a count, rate, or gauge metric. + # By default, count and rate metrics require the (time: sum, space: sum) aggregation and + # Gauge metrics require the (time: avg, space: avg) aggregation. + # Additional time & space combinations are also available: + # + # - time: avg, space: avg + # - time: avg, space: max + # - time: avg, space: min + # - time: avg, space: sum + # - time: count, space: sum + # - time: max, space: max + # - time: min, space: min + # - time: sum, space: avg + # - time: sum, space: sum + # + # Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`. attr_accessor :aggregations - # Toggle to include/exclude percentiles for a distribution metric. Defaults to false. Can only be applied to metrics that have a `metric_type` of `distribution`. + # Toggle to include/exclude percentiles for a distribution metric. + # Defaults to false. Can only be applied to metrics that have a `metric_type` of `distribution`. attr_accessor :include_percentiles # A list of tag keys that will be queryable for your metric. @@ -66,7 +82,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationUpdateAttributes` initialize method" @@ -96,14 +113,17 @@ def initialize(attributes = {}) if (value = attributes[:'tags']).is_a?(Array) self.tags = value end + else + self.tags = [] end end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -140,7 +160,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -148,7 +168,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -254,7 +274,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] value 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) @@ -270,7 +290,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 20e7998a1e6..49c26d54f3c 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # Object for a single tag configuration to be edited. class MetricTagConfigurationUpdateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object containing the definition of a metric tag configuration to be updated. attr_accessor :attributes # The metric name for this resource. attr_accessor :id + # The metric tag configuration resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationUpdateData` initialize method" @@ -94,14 +97,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -144,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +260,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] value 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) @@ -274,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 34ec1530a2a..6b7f117444b 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Request object that includes the metric that you would like to edit the tag configuration on. class MetricTagConfigurationUpdateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object for a single tag configuration to be edited. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationUpdateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/metric_type.rb b/lib/datadog_api_client/v2/models/metric_type.rb index d75c1dc9d7d..3612dbfc993 100644 --- a/lib/datadog_api_client/v2/models/metric_type.rb +++ b/lib/datadog_api_client/v2/models/metric_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The metric resource type. class MetricType METRICS = "metrics".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/metric_volumes.rb b/lib/datadog_api_client/v2/models/metric_volumes.rb index e61437a20a5..3d44a98c1e6 100644 --- a/lib/datadog_api_client/v2/models/metric_volumes.rb +++ b/lib/datadog_api_client/v2/models/metric_volumes.rb @@ -29,7 +29,6 @@ def openapi_one_of :'MetricIngestedIndexedVolume' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -57,7 +56,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V2::UnparsedObject.new(data) end - end private @@ -115,4 +113,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 8d880a06976..312a204159d 100644 --- a/lib/datadog_api_client/v2/models/metric_volumes_response.rb +++ b/lib/datadog_api_client/v2/models/metric_volumes_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Response object which includes a single metric's volume. class MetricVolumesResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Possible response objects for a metric's volume. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricVolumesResponse` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations.rb b/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations.rb index 7a7f6680171..acc04ab794a 100644 --- a/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations.rb +++ b/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations.rb @@ -29,7 +29,6 @@ def openapi_one_of :'MetricTagConfiguration' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -57,7 +56,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V2::UnparsedObject.new(data) end - end private @@ -115,4 +113,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 a25f1c0274e..7e2ae6cf618 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response object that includes metrics and metric tag configurations. class MetricsAndMetricTagConfigurationsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricsAndMetricTagConfigurationsResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/organization.rb b/lib/datadog_api_client/v2/models/organization.rb index a6077d65b2d..1bb7fa8c244 100644 --- a/lib/datadog_api_client/v2/models/organization.rb +++ b/lib/datadog_api_client/v2/models/organization.rb @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # Organization object. class Organization - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes of the organization. attr_accessor :attributes # ID of the organization. attr_accessor :id + # Organizations resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Organization` initialize method" @@ -94,8 +97,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -139,7 +142,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -147,7 +150,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -253,7 +256,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] value 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) @@ -269,7 +272,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/organization_attributes.rb b/lib/datadog_api_client/v2/models/organization_attributes.rb index 288cac8a9ad..c50ee6ed80f 100644 --- a/lib/datadog_api_client/v2/models/organization_attributes.rb +++ b/lib/datadog_api_client/v2/models/organization_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of the organization. class OrganizationAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -91,7 +91,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OrganizationAttributes` initialize method" @@ -139,10 +140,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -184,7 +186,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -192,7 +194,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -298,7 +300,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] value 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) @@ -314,7 +316,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/organizations_type.rb b/lib/datadog_api_client/v2/models/organizations_type.rb index 2321d5dc4ac..ce3d761b11c 100644 --- a/lib/datadog_api_client/v2/models/organizations_type.rb +++ b/lib/datadog_api_client/v2/models/organizations_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Organizations resource type. class OrganizationsType ORGS = "orgs".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/pagination.rb b/lib/datadog_api_client/v2/models/pagination.rb index c5a01f7bf26..51eb7d96f88 100644 --- a/lib/datadog_api_client/v2/models/pagination.rb +++ b/lib/datadog_api_client/v2/models/pagination.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Pagination object. class Pagination - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Pagination` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 2c5cffb3509..144c7112a66 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key.rb @@ -19,17 +19,20 @@ module DatadogAPIClient::V2 # Partial Datadog API key. class PartialAPIKey - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes of a partial API key. attr_accessor :attributes # ID of the API key. attr_accessor :id + # Resources related to the API key. attr_accessor :relationships + # API Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PartialAPIKey` initialize method" @@ -102,10 +106,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -143,7 +148,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -151,7 +156,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -257,7 +262,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] value 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) @@ -273,7 +278,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 34eb615a1c9..ecfc61eb5f5 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of a partial API key. class PartialAPIKeyAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PartialAPIKeyAttributes` initialize method" @@ -103,17 +104,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@last4.nil? && @last4.to_s.length > 4 - invalid_properties.push('invalid value for "last4", the character length must be smaller than or equal to 4.') - end - - if !@last4.nil? && @last4.to_s.length < 4 - invalid_properties.push('invalid value for "last4", the character length must be great than or equal to 4.') - end invalid_properties end @@ -122,25 +116,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@last4.nil? && @last4.to_s.length > 4 - return false if !@last4.nil? && @last4.to_s.length < 4 true end - # Custom attribute writer method with validation - # @param last4 [Object] last4 Value to be assigned - def last4=(last4) - if !last4.nil? && last4.to_s.length > 4 - fail ArgumentError, 'invalid value for "last4", the character length must be smaller than or equal to 4.' - end - - if !last4.nil? && last4.to_s.length < 4 - fail ArgumentError, 'invalid value for "last4", the character length must be great than or equal to 4.' - end - - @last4 = last4 - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -168,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -176,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -282,7 +260,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] value 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) @@ -298,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 12126575277..2fca844f2db 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key.rb @@ -19,17 +19,20 @@ module DatadogAPIClient::V2 # Partial Datadog application key. class PartialApplicationKey - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes of a partial application key. attr_accessor :attributes # ID of the application key. attr_accessor :id + # Resources related to the application key. attr_accessor :relationships + # Application Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PartialApplicationKey` initialize method" @@ -102,10 +106,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -143,7 +148,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -151,7 +156,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -257,7 +262,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] value 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) @@ -273,7 +278,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 af40d0dbf06..c1e672fb3b6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of a partial application key. class PartialApplicationKeyAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -72,7 +72,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PartialApplicationKeyAttributes` initialize method" @@ -106,17 +107,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@last4.nil? && @last4.to_s.length > 4 - invalid_properties.push('invalid value for "last4", the character length must be smaller than or equal to 4.') - end - - if !@last4.nil? && @last4.to_s.length < 4 - invalid_properties.push('invalid value for "last4", the character length must be great than or equal to 4.') - end invalid_properties end @@ -125,25 +119,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@last4.nil? && @last4.to_s.length > 4 - return false if !@last4.nil? && @last4.to_s.length < 4 true end - # Custom attribute writer method with validation - # @param last4 [Object] last4 Value to be assigned - def last4=(last4) - if !last4.nil? && last4.to_s.length > 4 - fail ArgumentError, 'invalid value for "last4", the character length must be smaller than or equal to 4.' - end - - if !last4.nil? && last4.to_s.length < 4 - fail ArgumentError, 'invalid value for "last4", the character length must be great than or equal to 4.' - end - - @last4 = last4 - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -171,7 +149,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -179,7 +157,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -285,7 +263,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] value 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) @@ -301,7 +279,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 fae507d54df..4c53b005ca8 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Response for retrieving a partial application key. class PartialApplicationKeyResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Partial Datadog application key. attr_accessor :data # Array of objects related to the application key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PartialApplicationKeyResponse` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/permission.rb b/lib/datadog_api_client/v2/models/permission.rb index 7a37a179a35..5fead0ccc41 100644 --- a/lib/datadog_api_client/v2/models/permission.rb +++ b/lib/datadog_api_client/v2/models/permission.rb @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # Permission object. class Permission - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes of a permission. attr_accessor :attributes # ID of the permission. attr_accessor :id + # Permissions resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Permission` initialize method" @@ -94,8 +97,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -139,7 +142,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -147,7 +150,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -253,7 +256,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] value 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) @@ -269,7 +272,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/permission_attributes.rb b/lib/datadog_api_client/v2/models/permission_attributes.rb index 799ffc6175d..0d48ca8a69b 100644 --- a/lib/datadog_api_client/v2/models/permission_attributes.rb +++ b/lib/datadog_api_client/v2/models/permission_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of a permission. class PermissionAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -86,7 +86,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PermissionAttributes` initialize method" @@ -130,10 +131,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -174,7 +176,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -182,7 +184,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -288,7 +290,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] value 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) @@ -304,7 +306,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/permissions_response.rb b/lib/datadog_api_client/v2/models/permissions_response.rb index 4181425defb..633a4ac0b7d 100644 --- a/lib/datadog_api_client/v2/models/permissions_response.rb +++ b/lib/datadog_api_client/v2/models/permissions_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Payload with API-returned permissions. class PermissionsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PermissionsResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/permissions_type.rb b/lib/datadog_api_client/v2/models/permissions_type.rb index b795bc3376e..9bce1f527e0 100644 --- a/lib/datadog_api_client/v2/models/permissions_type.rb +++ b/lib/datadog_api_client/v2/models/permissions_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Permissions resource type. class PermissionsType PERMISSIONS = "permissions".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 df97c1f187b..fa3bbb37a49 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_meta.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_meta.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Response metadata object. class ProcessSummariesMeta - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Paging attributes. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProcessSummariesMeta` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 d72e7cd7064..adee9dd5635 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 @@ -19,11 +19,12 @@ module DatadogAPIClient::V2 # Paging attributes. class ProcessSummariesMetaPage - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # The cursor used to get the next results, if any. To make the next request, use the same parameters with the addition of the `page[cursor]`. + # The cursor used to get the next results, if any. To make the next request, use the same + # parameters with the addition of the `page[cursor]`. attr_accessor :after # Number of results returned. @@ -61,7 +62,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProcessSummariesMetaPage` initialize method" @@ -85,17 +87,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@size.nil? && @size > 10000 - invalid_properties.push('invalid value for "size", must be smaller than or equal to 10000.') - end - - if !@size.nil? && @size < 0 - invalid_properties.push('invalid value for "size", must be greater than or equal to 0.') - end invalid_properties end @@ -104,25 +99,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@size.nil? && @size > 10000 - return false if !@size.nil? && @size < 0 true end - # Custom attribute writer method with validation - # @param size [Object] size Value to be assigned - def size=(size) - if !size.nil? && size > 10000 - fail ArgumentError, 'invalid value for "size", must be smaller than or equal to 10000.' - end - - if !size.nil? && size < 0 - fail ArgumentError, 'invalid value for "size", must be greater than or equal to 0.' - end - - @size = size - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -148,7 +127,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -156,7 +135,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -262,7 +241,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] value 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) @@ -278,7 +257,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 699de108873..297a0ed84d4 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_response.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_response.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V2 # List of process summaries. class ProcessSummariesResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Array of process summary objects. attr_accessor :data + # Response metadata object. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProcessSummariesResponse` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/process_summary.rb b/lib/datadog_api_client/v2/models/process_summary.rb index 2d42f8bbc5a..e927cc2c102 100644 --- a/lib/datadog_api_client/v2/models/process_summary.rb +++ b/lib/datadog_api_client/v2/models/process_summary.rb @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # Process summary object. class ProcessSummary - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes for a process summary. attr_accessor :attributes # Process ID. attr_accessor :id + # Type of process summary. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProcessSummary` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 58b95764daf..3263534a056 100644 --- a/lib/datadog_api_client/v2/models/process_summary_attributes.rb +++ b/lib/datadog_api_client/v2/models/process_summary_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes for a process summary. class ProcessSummaryAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -91,7 +91,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProcessSummaryAttributes` initialize method" @@ -141,10 +142,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -186,7 +188,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -194,7 +196,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -300,7 +302,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] value 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) @@ -316,7 +318,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/process_summary_type.rb b/lib/datadog_api_client/v2/models/process_summary_type.rb index 32f48cf1897..e98e3ff7695 100644 --- a/lib/datadog_api_client/v2/models/process_summary_type.rb +++ b/lib/datadog_api_client/v2/models/process_summary_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Type of process summary. class ProcessSummaryType PROCESS = "process".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/query_sort_order.rb b/lib/datadog_api_client/v2/models/query_sort_order.rb index 26970ca40b3..503a536aeaa 100644 --- a/lib/datadog_api_client/v2/models/query_sort_order.rb +++ b/lib/datadog_api_client/v2/models/query_sort_order.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Direction of sort. class QuerySortOrder ASC = "asc".freeze DESC = "desc".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 4fa28871512..5e3e1238cff 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V2 # A relationship reference for an integration metadata object. class RelationshipToIncidentIntegrationMetadataData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # A unique identifier that represents the integration metadata. attr_accessor :id + # Integration metadata resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentIntegrationMetadataData` initialize method" @@ -86,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -135,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -143,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -249,7 +250,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] value 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) @@ -265,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 65f57ba8e8e..034740493f1 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A relationship reference for multiple integration metadata objects. class RelationshipToIncidentIntegrationMetadatas - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentIntegrationMetadatas` initialize method" @@ -78,8 +79,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -121,7 +122,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -129,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -235,7 +236,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] value 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) @@ -251,7 +252,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 87da76e779d..0db62ba9023 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # A relationship reference for postmortems. class RelationshipToIncidentPostmortem - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The postmortem relationship data. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentPostmortem` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 67cdd1161f5..2a6a0907c22 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V2 # The postmortem relationship data. class RelationshipToIncidentPostmortemData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # A unique identifier that represents the postmortem. attr_accessor :id + # Incident postmortem resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentPostmortemData` initialize method" @@ -86,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -135,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -143,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -249,7 +250,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] value 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) @@ -265,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 3a42d97de49..8a6324f6b7b 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organization.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organization.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Relationship to an organization. class RelationshipToOrganization - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Relationship to organization object. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToOrganization` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 863826b2165..c61524ee486 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V2 # Relationship to organization object. class RelationshipToOrganizationData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # ID of the organization. attr_accessor :id + # Organizations resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToOrganizationData` initialize method" @@ -86,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -135,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -143,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -249,7 +250,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] value 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) @@ -265,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 c04fb43f073..b158bd25f75 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organizations.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organizations.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationship to organizations. class RelationshipToOrganizations - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToOrganizations` initialize method" @@ -78,8 +79,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -121,7 +122,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -129,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -235,7 +236,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] value 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) @@ -251,7 +252,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 3e5e0e941a8..b462149d4e3 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permission.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permission.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Relationship to a permissions object. class RelationshipToPermission - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Relationship to permission object. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToPermission` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 37b867060b3..90ab4a33b86 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V2 # Relationship to permission object. class RelationshipToPermissionData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # ID of the permission. attr_accessor :id + # Permissions resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToPermissionData` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 109244ad183..70d72a68ce9 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permissions.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permissions.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationship to multiple permissions objects. class RelationshipToPermissions - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToPermissions` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 16f93dd1e2d..e4b5aa0c2b5 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_role.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_role.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Relationship to role. class RelationshipToRole - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Relationship to role object. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToRole` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 f425f1b6f77..963e676c58c 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V2 # Relationship to role object. class RelationshipToRoleData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # ID of the role. attr_accessor :id + # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToRoleData` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 5a64d79da95..e67deadf6dc 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_roles.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_roles.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationship to roles. class RelationshipToRoles - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToRoles` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 636016b8575..bd9e2dbed17 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Relationship to user. class RelationshipToUser - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Relationship to user object. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToUser` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 8266c08ca62..930dc8e80f1 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V2 # Relationship to user object. class RelationshipToUserData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # A unique identifier that represents the user. attr_accessor :id + # Users resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToUserData` initialize method" @@ -86,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -135,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -143,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -249,7 +250,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] value 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) @@ -265,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 1fe5265e5fd..ddb777d0b30 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_users.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_users.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationship to users. class RelationshipToUsers - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToUsers` initialize method" @@ -78,8 +79,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -121,7 +122,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -129,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -235,7 +236,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] value 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) @@ -251,7 +252,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 7b482f2b61a..e0749e80892 100644 --- a/lib/datadog_api_client/v2/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v2/models/response_meta_attributes.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Object describing meta attributes of response. class ResponseMetaAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Pagination object. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ResponseMetaAttributes` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/role.rb b/lib/datadog_api_client/v2/models/role.rb index d6bce079134..ec630caad42 100644 --- a/lib/datadog_api_client/v2/models/role.rb +++ b/lib/datadog_api_client/v2/models/role.rb @@ -19,17 +19,20 @@ module DatadogAPIClient::V2 # Role object returned by the API. class Role - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes of the role. attr_accessor :attributes # ID of the role. attr_accessor :id + # Relationships of the role object returned by the API. attr_accessor :relationships + # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Role` initialize method" @@ -102,8 +106,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -148,7 +152,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -156,7 +160,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -262,7 +266,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] value 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) @@ -278,7 +282,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/role_attributes.rb b/lib/datadog_api_client/v2/models/role_attributes.rb index 29200e4c574..b9d8368655a 100644 --- a/lib/datadog_api_client/v2/models/role_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of the role. class RoleAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleAttributes` initialize method" @@ -103,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -144,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +260,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] value 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) @@ -274,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/role_clone.rb b/lib/datadog_api_client/v2/models/role_clone.rb index fde152f83ea..55ac7dfcc19 100644 --- a/lib/datadog_api_client/v2/models/role_clone.rb +++ b/lib/datadog_api_client/v2/models/role_clone.rb @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # Data for the clone role request. class RoleClone - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes required to create a new role by cloning an existing one. attr_accessor :attributes + # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleClone` initialize method" @@ -85,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 fc0eed4fb76..994b8178db8 100644 --- a/lib/datadog_api_client/v2/models/role_clone_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_clone_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes required to create a new role by cloning an existing one. class RoleCloneAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCloneAttributes` initialize method" @@ -76,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -119,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -127,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -233,7 +234,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] value 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) @@ -249,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 bf12ea5b159..563b2c43741 100644 --- a/lib/datadog_api_client/v2/models/role_clone_request.rb +++ b/lib/datadog_api_client/v2/models/role_clone_request.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Request to create a role by cloning an existing role. class RoleCloneRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Data for the clone role request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCloneRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 6e498dce479..07538317fa0 100644 --- a/lib/datadog_api_client/v2/models/role_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_create_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of the created role. class RoleCreateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCreateAttributes` initialize method" @@ -94,8 +95,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -139,7 +140,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -147,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -253,7 +254,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] value 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) @@ -269,7 +270,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ac06182c039..a0bbe7fea86 100644 --- a/lib/datadog_api_client/v2/models/role_create_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_data.rb @@ -19,14 +19,17 @@ module DatadogAPIClient::V2 # Data related to the creation of a role. class RoleCreateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes of the created role. attr_accessor :attributes + # Relationships of the role object. attr_accessor :relationships + # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -63,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCreateData` initialize method" @@ -93,8 +97,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -138,7 +142,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -146,7 +150,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -252,7 +256,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] value 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) @@ -268,7 +272,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 214755d4eca..516a84b0a20 100644 --- a/lib/datadog_api_client/v2/models/role_create_request.rb +++ b/lib/datadog_api_client/v2/models/role_create_request.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Create a role. class RoleCreateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Data related to the creation of a role. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCreateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 e6e584991bb..d7d8ae9b63d 100644 --- a/lib/datadog_api_client/v2/models/role_create_response.rb +++ b/lib/datadog_api_client/v2/models/role_create_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Response containing information about a created role. class RoleCreateResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Role object returned by the API. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCreateResponse` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 f48e17c8ae7..3023f921b8c 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 @@ -19,17 +19,20 @@ module DatadogAPIClient::V2 # Role object returned by the API. class RoleCreateResponseData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes of the created role. attr_accessor :attributes # ID of the role. attr_accessor :id + # Relationships of the role object returned by the API. attr_accessor :relationships + # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCreateResponseData` initialize method" @@ -102,8 +106,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -148,7 +152,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -156,7 +160,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -262,7 +266,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] value 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) @@ -278,7 +282,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/role_relationships.rb b/lib/datadog_api_client/v2/models/role_relationships.rb index 84105a4bf3f..aed0eb59b0a 100644 --- a/lib/datadog_api_client/v2/models/role_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_relationships.rb @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # Relationships of the role object. class RoleRelationships - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Relationship to multiple permissions objects. attr_accessor :permissions + # Relationship to users. attr_accessor :users # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleRelationships` initialize method" @@ -83,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -122,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -130,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -236,7 +240,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] value 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) @@ -252,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/role_response.rb b/lib/datadog_api_client/v2/models/role_response.rb index f34469a40fa..9a81c8fa938 100644 --- a/lib/datadog_api_client/v2/models/role_response.rb +++ b/lib/datadog_api_client/v2/models/role_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Response containing information about a single role. class RoleResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Role object returned by the API. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleResponse` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 6e1ec282e37..5310373fd3a 100644 --- a/lib/datadog_api_client/v2/models/role_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_response_relationships.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Relationships of the role object returned by the API. class RoleResponseRelationships - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Relationship to multiple permissions objects. attr_accessor :permissions # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleResponseRelationships` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 f137177b13c..fcce8a41e26 100644 --- a/lib/datadog_api_client/v2/models/role_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_update_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of the role. class RoleUpdateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleUpdateAttributes` initialize method" @@ -94,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 780b6417470..99f3feaa992 100644 --- a/lib/datadog_api_client/v2/models/role_update_data.rb +++ b/lib/datadog_api_client/v2/models/role_update_data.rb @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # Data related to the update of a role. class RoleUpdateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes of the role. attr_accessor :attributes # ID of the role. attr_accessor :id + # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleUpdateData` initialize method" @@ -94,18 +97,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -149,7 +150,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -157,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -263,7 +264,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] value 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) @@ -279,7 +280,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 80ce3dc7841..6ca7d91250f 100644 --- a/lib/datadog_api_client/v2/models/role_update_request.rb +++ b/lib/datadog_api_client/v2/models/role_update_request.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Update a role. class RoleUpdateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Data related to the update of a role. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleUpdateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 22a301f56c4..d8c93d67d82 100644 --- a/lib/datadog_api_client/v2/models/role_update_response.rb +++ b/lib/datadog_api_client/v2/models/role_update_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Response containing information about an updated role. class RoleUpdateResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Role object returned by the API. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleUpdateResponse` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 4b1dd4f0c01..bc356332710 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 @@ -19,17 +19,20 @@ module DatadogAPIClient::V2 # Role object returned by the API. class RoleUpdateResponseData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes of the role. attr_accessor :attributes # ID of the role. attr_accessor :id + # Relationships of the role object returned by the API. attr_accessor :relationships + # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleUpdateResponseData` initialize method" @@ -102,8 +106,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -148,7 +152,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -156,7 +160,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -262,7 +266,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] value 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) @@ -278,7 +282,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/roles_response.rb b/lib/datadog_api_client/v2/models/roles_response.rb index e347a424d2f..0667557248d 100644 --- a/lib/datadog_api_client/v2/models/roles_response.rb +++ b/lib/datadog_api_client/v2/models/roles_response.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V2 # Response containing information about multiple roles. class RolesResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Array of returned roles. attr_accessor :data + # Object describing meta attributes of response. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RolesResponse` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/roles_sort.rb b/lib/datadog_api_client/v2/models/roles_sort.rb index cfc56937746..59df1da9fd1 100644 --- a/lib/datadog_api_client/v2/models/roles_sort.rb +++ b/lib/datadog_api_client/v2/models/roles_sort.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Sorting options for roles. class RolesSort NAME_ASCENDING = "name".freeze NAME_DESCENDING = "-name".freeze @@ -42,5 +43,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/roles_type.rb b/lib/datadog_api_client/v2/models/roles_type.rb index 0da6ebe85a1..b2257da7c96 100644 --- a/lib/datadog_api_client/v2/models/roles_type.rb +++ b/lib/datadog_api_client/v2/models/roles_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Roles type. class RolesType ROLES = "roles".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_filter.rb b/lib/datadog_api_client/v2/models/security_filter.rb index 77968e016cb..7afca05d200 100644 --- a/lib/datadog_api_client/v2/models/security_filter.rb +++ b/lib/datadog_api_client/v2/models/security_filter.rb @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # The security filter's properties. class SecurityFilter - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The object describing a security filter. attr_accessor :attributes # The ID of the security filter. attr_accessor :id + # The type of the resource. The value should always be `security_filters`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilter` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 8ac125581c4..a1a10592965 100644 --- a/lib/datadog_api_client/v2/models/security_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_attributes.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V2 # The object describing a security filter. class SecurityFilterAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # The list of exclusion filters applied in this security filter. attr_accessor :exclusion_filters + # The filtered data type. attr_accessor :filtered_data_type # Whether the security filter is the built-in filter. @@ -85,7 +86,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterAttributes` initialize method" @@ -131,13 +133,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@version.nil? && @version > 2147483647 - invalid_properties.push('invalid value for "version", must be smaller than or equal to 2147483647.') - end invalid_properties end @@ -146,20 +145,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@version.nil? && @version > 2147483647 true end - # Custom attribute writer method with validation - # @param version [Object] version Value to be assigned - def version=(version) - if !version.nil? && version > 2147483647 - fail ArgumentError, 'invalid value for "version", must be smaller than or equal to 2147483647.' - end - - @version = version - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -190,7 +178,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -198,7 +186,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -304,7 +292,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] value 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) @@ -320,7 +308,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 29e141bed27..d81cfddb50b 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V2 # Object containing the attributes of the security filter to be created. class SecurityFilterCreateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Exclusion filters to exclude some logs from the security filter. attr_accessor :exclusion_filters + # The filtered data type. attr_accessor :filtered_data_type # Whether the security filter is enabled. @@ -75,7 +76,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterCreateAttributes` initialize method" @@ -113,26 +115,22 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @exclusion_filters.nil? invalid_properties.push('invalid value for "exclusion_filters", exclusion_filters cannot be nil.') end - if @filtered_data_type.nil? invalid_properties.push('invalid value for "filtered_data_type", filtered_data_type cannot be nil.') end - if @is_enabled.nil? invalid_properties.push('invalid value for "is_enabled", is_enabled cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end @@ -180,7 +178,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -188,7 +186,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -294,7 +292,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] value 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) @@ -310,7 +308,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 40b2e889dcf..cfc89b4aaa3 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # Object for a single security filter. class SecurityFilterCreateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object containing the attributes of the security filter to be created. attr_accessor :attributes + # The type of the resource. The value should always be `security_filters`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterCreateData` initialize method" @@ -85,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 7fc10c6ad5c..63327a6c2d9 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Request object that includes the security filter that you would like to create. class SecurityFilterCreateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object for a single security filter. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterCreateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 dab18053a82..efb6c487080 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Exclusion filter for the security filter. class SecurityFilterExclusionFilter - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterExclusionFilter` initialize method" @@ -85,14 +86,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end @@ -134,7 +134,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +248,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] value 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) @@ -264,7 +264,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 cf17d85d1ac..fe7eb5ee6f3 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A single exclusion filter. class SecurityFilterExclusionFilterResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterExclusionFilterResponse` initialize method" @@ -85,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -124,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -132,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -238,7 +240,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] value 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) @@ -254,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_filter_filtered_data_type.rb b/lib/datadog_api_client/v2/models/security_filter_filtered_data_type.rb index 7d921652fa7..65cd8aad773 100644 --- a/lib/datadog_api_client/v2/models/security_filter_filtered_data_type.rb +++ b/lib/datadog_api_client/v2/models/security_filter_filtered_data_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The filtered data type. class SecurityFilterFilteredDataType LOGS = "logs".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 7475cc87bef..ea0a4faa87e 100644 --- a/lib/datadog_api_client/v2/models/security_filter_meta.rb +++ b/lib/datadog_api_client/v2/models/security_filter_meta.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Optional metadata associated to the response. class SecurityFilterMeta - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterMeta` initialize method" @@ -76,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +230,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] value 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) @@ -244,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 bc83f5b779e..ebb8c6e17b6 100644 --- a/lib/datadog_api_client/v2/models/security_filter_response.rb +++ b/lib/datadog_api_client/v2/models/security_filter_response.rb @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # Response object which includes a single security filter. class SecurityFilterResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The security filter's properties. attr_accessor :data + # Optional metadata associated to the response. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterResponse` initialize method" @@ -83,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -122,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -130,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -236,7 +240,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] value 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) @@ -252,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_filter_type.rb b/lib/datadog_api_client/v2/models/security_filter_type.rb index c76af05b93a..fddaaeae280 100644 --- a/lib/datadog_api_client/v2/models/security_filter_type.rb +++ b/lib/datadog_api_client/v2/models/security_filter_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The type of the resource. The value should always be `security_filters`. class SecurityFilterType SECURITY_FILTERS = "security_filters".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 f0fa2e4a7d4..583d8d09e60 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V2 # The security filters properties to be updated. class SecurityFilterUpdateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Exclusion filters to exclude some logs from the security filter. attr_accessor :exclusion_filters + # The filtered data type. attr_accessor :filtered_data_type # Whether the security filter is enabled. @@ -80,7 +81,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterUpdateAttributes` initialize method" @@ -122,13 +124,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@version.nil? && @version > 2147483647 - invalid_properties.push('invalid value for "version", must be smaller than or equal to 2147483647.') - end invalid_properties end @@ -137,20 +136,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@version.nil? && @version > 2147483647 true end - # Custom attribute writer method with validation - # @param version [Object] version Value to be assigned - def version=(version) - if !version.nil? && version > 2147483647 - fail ArgumentError, 'invalid value for "version", must be smaller than or equal to 2147483647.' - end - - @version = version - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -180,7 +168,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -188,7 +176,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -294,7 +282,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] value 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) @@ -310,7 +298,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 cf24e55b3b5..f55d00af961 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 @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # The new security filter properties. class SecurityFilterUpdateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The security filters properties to be updated. attr_accessor :attributes + # The type of the resource. The value should always be `security_filters`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterUpdateData` initialize method" @@ -85,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 f4b05157496..af8eeb00b96 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # The new security filter body. class SecurityFilterUpdateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The new security filter properties. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterUpdateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 6be40f7b3f5..9686c6ec8e2 100644 --- a/lib/datadog_api_client/v2/models/security_filters_response.rb +++ b/lib/datadog_api_client/v2/models/security_filters_response.rb @@ -19,13 +19,14 @@ module DatadogAPIClient::V2 # All the available security filters objects. class SecurityFiltersResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # A list of security filters objects. attr_accessor :data + # Optional metadata associated to the response. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFiltersResponse` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 d2812d8dd56..6a797d7d16e 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_filter.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_filter.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # The rule's suppression filter. class SecurityMonitoringFilter - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The type of filtering action. attr_accessor :action # Query for selecting logs to apply the filtering action. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringFilter` initialize method" @@ -84,10 +86,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -123,7 +126,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -131,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -237,7 +240,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] value 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) @@ -253,7 +256,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_monitoring_filter_action.rb b/lib/datadog_api_client/v2/models/security_monitoring_filter_action.rb index c91d9899362..423b16dc7c8 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_filter_action.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_filter_action.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The type of filtering action. class SecurityMonitoringFilterAction REQUIRE = "require".freeze SUPPRESS = "suppress".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 7edf4527754..0dc258e2702 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 @@ -19,13 +19,14 @@ module DatadogAPIClient::V2 # List of rules. class SecurityMonitoringListRulesResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # Array containing the list of rules. attr_accessor :data + # Object describing meta attributes of response. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringListRulesResponse` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 ccba0daed21..9ebf8684ea1 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 @@ -19,11 +19,12 @@ module DatadogAPIClient::V2 # Case when signal is generated. class SecurityMonitoringRuleCase - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated based on the event counts in the previously defined queries. + # A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated + # based on the event counts in the previously defined queries. attr_accessor :condition # Name of the case. @@ -32,6 +33,7 @@ class SecurityMonitoringRuleCase # Notification targets for each rule case. attr_accessor :notifications + # Severity of the Security Signal. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. @@ -70,7 +72,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleCase` initialize method" @@ -104,10 +107,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -145,7 +149,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -153,7 +157,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -259,7 +263,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] value 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) @@ -275,7 +279,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 50365ec3a30..f688a6aa751 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 @@ -19,11 +19,12 @@ module DatadogAPIClient::V2 # Case when signal is generated. class SecurityMonitoringRuleCaseCreate - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated based on the event counts in the previously defined queries. + # A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated + # based on the event counts in the previously defined queries. attr_accessor :condition # Name of the case. @@ -32,6 +33,7 @@ class SecurityMonitoringRuleCaseCreate # Notification targets for each rule case. attr_accessor :notifications + # Severity of the Security Signal. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. @@ -70,7 +72,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleCaseCreate` initialize method" @@ -104,8 +107,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @status.nil? @@ -150,7 +153,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -158,7 +161,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -264,7 +267,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] value 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) @@ -280,7 +283,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb index 04090ae39c9..82c8f60d829 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Create a new rule. class SecurityMonitoringRuleCreatePayload - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -41,6 +41,7 @@ class SecurityMonitoringRuleCreatePayload # The name of the rule. attr_accessor :name + # Options on rules. attr_accessor :options # Queries for selecting logs which are part of the rule. @@ -49,6 +50,7 @@ class SecurityMonitoringRuleCreatePayload # Tags for generated signals. attr_accessor :tags + # The rule type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -99,7 +101,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleCreatePayload` initialize method" @@ -163,30 +166,25 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @cases.nil? invalid_properties.push('invalid value for "cases", cases cannot be nil.') end - if @is_enabled.nil? invalid_properties.push('invalid value for "is_enabled", is_enabled cannot be nil.') end - if @message.nil? invalid_properties.push('invalid value for "message", message cannot be nil.') end - if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @options.nil? invalid_properties.push('invalid value for "options", options cannot be nil.') end - if @queries.nil? invalid_properties.push('invalid value for "queries", queries cannot be nil.') end @@ -240,7 +238,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -248,7 +246,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -354,7 +352,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] value 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) @@ -370,7 +368,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb index 71618b7bf80..30810cada54 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The detection method. class SecurityMonitoringRuleDetectionMethod THRESHOLD = "threshold".freeze NEW_VALUE = "new_value".freeze @@ -39,5 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_evaluation_window.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_evaluation_window.rb index 6b72c4e9c13..ad5544b5fc9 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_evaluation_window.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_evaluation_window.rb @@ -17,6 +17,8 @@ require 'time' module DatadogAPIClient::V2 + # A time window is specified to match when at least one of the cases matches true. This is a sliding window + # and evaluates in real time. class SecurityMonitoringRuleEvaluationWindow ZERO_MINUTES = 0.freeze ONE_MINUTE = 60.freeze @@ -44,5 +46,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb index 7c70e6eabf0..a668a9b264a 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb @@ -17,6 +17,8 @@ require 'time' module DatadogAPIClient::V2 + # Once a signal is generated, the signal will remain “open” if a case is matched at least once within + # this keep alive window. class SecurityMonitoringRuleKeepAlive ZERO_MINUTES = 0.freeze ONE_MINUTE = 60.freeze @@ -46,5 +48,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_max_signal_duration.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_max_signal_duration.rb index e0bdfc3d1ac..9cdb916f91d 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_max_signal_duration.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_max_signal_duration.rb @@ -17,6 +17,8 @@ require 'time' module DatadogAPIClient::V2 + # A signal will “close” regardless of the query being matched once the time exceeds the maximum duration. + # This time is calculated from the first seen timestamp. class SecurityMonitoringRuleMaxSignalDuration ZERO_MINUTES = 0.freeze ONE_MINUTE = 60.freeze @@ -48,5 +50,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 6cf5c38244c..b1404e18086 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 @@ -19,12 +19,15 @@ module DatadogAPIClient::V2 # Options on new value rules. class SecurityMonitoringRuleNewValueOptions - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The duration in days after which a learned value is forgotten. attr_accessor :forget_after + # The duration in days during which values are learned, and after which signals will be generated for values that + # weren't learned. If set to 0, a signal will be generated for all new values after the first value is learned. attr_accessor :learning_duration # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +62,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptions` initialize method" @@ -83,10 +87,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -122,7 +127,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -130,7 +135,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -236,7 +241,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] value 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) @@ -252,7 +257,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_forget_after.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_forget_after.rb index 5decdad4918..e6ca05dffe2 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_forget_after.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_forget_after.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The duration in days after which a learned value is forgotten. class SecurityMonitoringRuleNewValueOptionsForgetAfter ONE_DAY = 1.freeze TWO_DAYS = 2.freeze @@ -42,5 +43,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_duration.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_duration.rb index 6fa93de5dec..86e681b15d5 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_duration.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_duration.rb @@ -17,6 +17,8 @@ require 'time' module DatadogAPIClient::V2 + # The duration in days during which values are learned, and after which signals will be generated for values that + # weren't learned. If set to 0, a signal will be generated for all new values after the first value is learned. class SecurityMonitoringRuleNewValueOptionsLearningDuration ZERO_DAYS = 0.freeze ONE_DAY = 1.freeze @@ -39,5 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 62b988d4a09..bdf0938428d 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 @@ -19,18 +19,26 @@ module DatadogAPIClient::V2 # Options on rules. class SecurityMonitoringRuleOptions - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The detection method. attr_accessor :detection_method + # A time window is specified to match when at least one of the cases matches true. This is a sliding window + # and evaluates in real time. attr_accessor :evaluation_window + # Once a signal is generated, the signal will remain “open” if a case is matched at least once within + # this keep alive window. attr_accessor :keep_alive + # A signal will “close” regardless of the query being matched once the time exceeds the maximum duration. + # This time is calculated from the first seen timestamp. attr_accessor :max_signal_duration + # Options on new value rules. attr_accessor :new_value_options # Attribute mapping from ruby-style variable name to JSON key. @@ -71,7 +79,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleOptions` initialize method" @@ -107,10 +116,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -149,7 +159,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -157,7 +167,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -263,7 +273,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] value 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) @@ -279,7 +289,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb index 4545ff753d0..f62627665e0 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Query for matching rule. class SecurityMonitoringRuleQuery - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The aggregation type. attr_accessor :aggregation # Field for which the cardinality is measured. Sent as an array. @@ -31,7 +32,8 @@ class SecurityMonitoringRuleQuery # Fields to group by. attr_accessor :group_by_fields - # The target field to aggregate over when using the sum or max aggregations. + # The target field to aggregate over when using the sum or max + # aggregations. attr_accessor :metric # Name of the query. @@ -80,7 +82,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleQuery` initialize method" @@ -124,10 +127,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -167,7 +171,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -175,7 +179,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -281,7 +285,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] value 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) @@ -297,7 +301,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_aggregation.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_aggregation.rb index a217c15ab0d..c03e389c4d5 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_aggregation.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_aggregation.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The aggregation type. class SecurityMonitoringRuleQueryAggregation COUNT = "count".freeze CARDINALITY = "cardinality".freeze @@ -41,5 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb index 590623b728b..8d0cbde38bc 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Query for matching rule. class SecurityMonitoringRuleQueryCreate - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The aggregation type. attr_accessor :aggregation # Field for which the cardinality is measured. Sent as an array. @@ -31,7 +32,8 @@ class SecurityMonitoringRuleQueryCreate # Fields to group by. attr_accessor :group_by_fields - # The target field to aggregate over when using the sum or max aggregations. + # The target field to aggregate over when using the sum or max + # aggregations. attr_accessor :metric # Name of the query. @@ -80,7 +82,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleQueryCreate` initialize method" @@ -124,8 +127,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @query.nil? @@ -172,7 +175,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -180,7 +183,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -286,7 +289,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] value 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) @@ -302,7 +305,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb index 7aa8f485408..8053415dca0 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Rule. class SecurityMonitoringRuleResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,6 +56,7 @@ class SecurityMonitoringRuleResponse # The name of the rule. attr_accessor :name + # Options on rules. attr_accessor :options # Queries for selecting logs which are part of the rule. @@ -64,6 +65,7 @@ class SecurityMonitoringRuleResponse # Tags for generated signals. attr_accessor :tags + # The rule type. attr_accessor :type # User ID of the user who updated the rule. @@ -134,7 +136,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleResponse` initialize method" @@ -226,10 +229,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -280,7 +284,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -288,7 +292,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -394,7 +398,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] value 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) @@ -410,7 +414,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_severity.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_severity.rb index 8f869917339..14a3212c8cc 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_severity.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_severity.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Severity of the Security Signal. class SecurityMonitoringRuleSeverity INFO = "info".freeze LOW = "low".freeze @@ -41,5 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb index cc41b893af4..85b898b05a4 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The rule type. class SecurityMonitoringRuleTypeCreate LOG_DETECTION = "log_detection".freeze WORKLOAD_SECURITY = "workload_security".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb index f7240275465..2f332e2bab5 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The rule type. class SecurityMonitoringRuleTypeRead LOG_DETECTION = "log_detection".freeze INFRASTRUCTURE_CONFIGURATION = "infrastructure_configuration".freeze @@ -40,5 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 b4a3a47b5c3..6a4fb00eaf1 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Update an existing rule. class SecurityMonitoringRuleUpdatePayload - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -41,6 +41,7 @@ class SecurityMonitoringRuleUpdatePayload # Name of the rule. attr_accessor :name + # Options on rules. attr_accessor :options # Queries for selecting logs which are part of the rule. @@ -100,7 +101,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleUpdatePayload` initialize method" @@ -164,13 +166,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@version.nil? && @version > 2147483647 - invalid_properties.push('invalid value for "version", must be smaller than or equal to 2147483647.') - end invalid_properties end @@ -179,20 +178,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@version.nil? && @version > 2147483647 true end - # Custom attribute writer method with validation - # @param version [Object] version Value to be assigned - def version=(version) - if !version.nil? && version > 2147483647 - fail ArgumentError, 'invalid value for "version", must be smaller than or equal to 2147483647.' - end - - @version = version - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -226,7 +214,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -234,7 +222,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -340,7 +328,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] value 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) @@ -356,7 +344,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 64a9d7606b4..85b1e6a80af 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal.rb @@ -19,15 +19,18 @@ module DatadogAPIClient::V2 # Object description of a security signal. class SecurityMonitoringSignal - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # The object containing all signal attributes and their + # associated values. attr_accessor :attributes # The unique ID of the security signal. attr_accessor :id + # The type of event. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +67,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignal` initialize method" @@ -94,10 +98,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +139,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +147,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +253,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] value 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) @@ -264,7 +269,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 7a1472865e3..22181328f0b 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 @@ -17,9 +17,10 @@ require 'time' module DatadogAPIClient::V2 - # The object containing all signal attributes and their associated values. + # The object containing all signal attributes and their + # associated values. class SecurityMonitoringSignalAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +72,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalAttributes` initialize method" @@ -86,9 +88,7 @@ def initialize(attributes = {}) } if attributes.key?(:'attributes') - if (value = attributes[:'attributes']).is_a?(Hash) - self.attributes = value - end + self.attributes = attributes[:'attributes'] end if attributes.key?(:'message') @@ -96,9 +96,7 @@ def initialize(attributes = {}) end if attributes.key?(:'tags') - if (value = attributes[:'tags']).is_a?(Array) - self.tags = value - end + self.tags = attributes[:'tags'] end if attributes.key?(:'timestamp') @@ -107,10 +105,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -148,7 +147,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -156,7 +155,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -262,7 +261,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] value 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) @@ -278,7 +277,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 05c34589896..b22d55fe880 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 @@ -19,14 +19,17 @@ module DatadogAPIClient::V2 # The request for a security signal list. class SecurityMonitoringSignalListRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Search filters for listing security signals. attr_accessor :filter + # The paging attributes for listing security signals. attr_accessor :page + # The sort parameters used for querying security signals. attr_accessor :sort # Attribute mapping from ruby-style variable name to JSON key. @@ -63,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalListRequest` initialize method" @@ -91,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -131,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -139,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -245,7 +250,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] value 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) @@ -261,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 544d0ffc0c0..df169f8e2e5 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Search filters for listing security signals. class SecurityMonitoringSignalListRequestFilter - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalListRequestFilter` initialize method" @@ -94,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 49d04db1e0d..61a2c7519d1 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The paging attributes for listing security signals. class SecurityMonitoringSignalListRequestPage - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -61,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalListRequestPage` initialize method" @@ -87,13 +88,10 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new - if !@limit.nil? && @limit > 1000 - invalid_properties.push('invalid value for "limit", must be smaller than or equal to 1000.') - end invalid_properties end @@ -102,20 +100,9 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if !@limit.nil? && @limit > 1000 true end - # Custom attribute writer method with validation - # @param limit [Object] limit Value to be assigned - def limit=(limit) - if !limit.nil? && limit > 1000 - fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 1000.' - end - - @limit = limit - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private @@ -141,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -149,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -255,7 +242,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] value 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) @@ -271,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_type.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_type.rb index aebce7f9f21..7b700d3a8f9 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_type.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The type of event. class SecurityMonitoringSignalType SIGNAL = "signal".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 b4d2386d19b..77aad3c6d27 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 @@ -17,17 +17,20 @@ require 'time' module DatadogAPIClient::V2 - # The response object with all security signals matching the request and pagination information. + # The response object with all security signals matching the request + # and pagination information. class SecurityMonitoringSignalsListResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed # An array of security signals matching the request. attr_accessor :data + # Links attributes. attr_accessor :links + # Meta attributes. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +67,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalsListResponse` initialize method" @@ -94,10 +98,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +139,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +147,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +253,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] value 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) @@ -264,7 +269,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 1c45c71b971..17b70ee5cb7 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 @@ -19,11 +19,12 @@ module DatadogAPIClient::V2 # Links attributes. class SecurityMonitoringSignalsListResponseLinks - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # The link for the next set of results. **Note**: The request can also be made using the POST endpoint. + # The link for the next set of results. **Note**: The request can also be made using the + # POST endpoint. attr_accessor :_next # Attribute mapping from ruby-style variable name to JSON key. @@ -56,7 +57,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalsListResponseLinks` initialize method" @@ -76,10 +78,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +117,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +125,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +231,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] value 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) @@ -244,7 +247,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 1d989555a1c..e90b08ff582 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Meta attributes. class SecurityMonitoringSignalsListResponseMeta - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Paging attributes. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalsListResponseMeta` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 b4cfdc3bf0d..12260168fe7 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 @@ -19,11 +19,12 @@ module DatadogAPIClient::V2 # Paging attributes. class SecurityMonitoringSignalsListResponseMetaPage - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed - # The cursor used to get the next results, if any. To make the next request, use the same parameters with the addition of the `page[cursor]`. + # The cursor used to get the next results, if any. To make the next request, use the same + # parameters with the addition of the `page[cursor]`. attr_accessor :after # Attribute mapping from ruby-style variable name to JSON key. @@ -56,7 +57,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalsListResponseMetaPage` initialize method" @@ -76,10 +78,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -114,7 +117,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -122,7 +125,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -228,7 +231,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] value 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) @@ -244,7 +247,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signals_sort.rb b/lib/datadog_api_client/v2/models/security_monitoring_signals_sort.rb index b6aa01fe88f..a39191bab2c 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signals_sort.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signals_sort.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # The sort parameters used for querying security signals. class SecurityMonitoringSignalsSort TIMESTAMP_ASCENDING = "timestamp".freeze TIMESTAMP_DESCENDING = "-timestamp".freeze @@ -38,5 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file 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 275b3ddaab8..59807b27c00 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of the created user. class ServiceAccountCreateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceAccountCreateAttributes` initialize method" @@ -103,14 +104,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @email.nil? invalid_properties.push('invalid value for "email", email cannot be nil.') end - if @service_account.nil? invalid_properties.push('invalid value for "service_account", service_account cannot be nil.') end @@ -154,7 +154,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -162,7 +162,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -268,7 +268,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] value 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) @@ -284,7 +284,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 858bf63dadb..fd22fbc6dd1 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 @@ -19,14 +19,17 @@ module DatadogAPIClient::V2 # Object to create a service account User. class ServiceAccountCreateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes of the created user. attr_accessor :attributes + # Relationships of the user object. attr_accessor :relationships + # Users resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -63,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceAccountCreateData` initialize method" @@ -93,14 +97,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -143,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -151,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -257,7 +260,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] value 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) @@ -273,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 27a8724160f..d5df61779a1 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 @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Create a service account. class ServiceAccountCreateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object to create a service account User. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceAccountCreateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/user.rb b/lib/datadog_api_client/v2/models/user.rb index fca3b4005c1..07bf33adcbc 100644 --- a/lib/datadog_api_client/v2/models/user.rb +++ b/lib/datadog_api_client/v2/models/user.rb @@ -19,17 +19,20 @@ module DatadogAPIClient::V2 # User object returned by the API. class User - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes of user object returned by the API. attr_accessor :attributes # ID of the user. attr_accessor :id + # Relationships of the user object returned by the API. attr_accessor :relationships + # Users resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -68,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::User` initialize method" @@ -102,10 +106,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -143,7 +148,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -151,7 +156,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -257,7 +262,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] value 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) @@ -273,7 +278,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/user_attributes.rb b/lib/datadog_api_client/v2/models/user_attributes.rb index 69c5bb309ae..b78d9e5a61e 100644 --- a/lib/datadog_api_client/v2/models/user_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of user object returned by the API. class UserAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -103,12 +103,13 @@ def self.openapi_types def self.openapi_nullable Set.new([ :'name', - :'title', + :'title' ]) end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserAttributes` initialize method" @@ -168,10 +169,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -216,7 +218,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -224,7 +226,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -330,7 +332,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] value 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) @@ -346,7 +348,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 c6481dd6f2f..a5e1096d825 100644 --- a/lib/datadog_api_client/v2/models/user_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_create_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of the created user. class UserCreateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserCreateAttributes` initialize method" @@ -94,8 +95,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @email.nil? @@ -139,7 +140,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -147,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -253,7 +254,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] value 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) @@ -269,7 +270,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 3b0dade8c92..b2906504b8f 100644 --- a/lib/datadog_api_client/v2/models/user_create_data.rb +++ b/lib/datadog_api_client/v2/models/user_create_data.rb @@ -19,14 +19,17 @@ module DatadogAPIClient::V2 # Object to create a user. class UserCreateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes of the created user. attr_accessor :attributes + # Relationships of the user object. attr_accessor :relationships + # Users resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -63,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserCreateData` initialize method" @@ -93,14 +97,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -143,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -151,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -257,7 +260,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] value 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) @@ -273,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 102efea95d4..721d96bcf41 100644 --- a/lib/datadog_api_client/v2/models/user_create_request.rb +++ b/lib/datadog_api_client/v2/models/user_create_request.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Create a user. class UserCreateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object to create a user. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserCreateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 dd1e3ee1200..efb8121ac8b 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_data.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_data.rb @@ -19,12 +19,14 @@ module DatadogAPIClient::V2 # Object to create a user invitation. class UserInvitationData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Relationships data for user invitation. attr_accessor :relationships + # User invitations type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -59,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationData` initialize method" @@ -85,14 +88,13 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @relationships.nil? invalid_properties.push('invalid value for "relationships", relationships cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 11f2888b299..cc527b5a14d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of a user invitation. class UserInvitationDataAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -71,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationDataAttributes` initialize method" @@ -103,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -144,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -152,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -258,7 +260,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] value 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) @@ -274,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 db20ebccf96..7ee2a201f99 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_relationships.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Relationships data for user invitation. class UserInvitationRelationships - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Relationship to user. attr_accessor :user # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationRelationships` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @user.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 9b5b002d86e..f54bae5b0d6 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # User invitation as returned by the API. class UserInvitationResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object of a user invitation returned by the API. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationResponse` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 6d5b1ea77c2..673ed7ed4ea 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 @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # Object of a user invitation returned by the API. class UserInvitationResponseData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes of a user invitation. attr_accessor :attributes # ID of the user invitation. attr_accessor :id + # User invitations type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationResponseData` initialize method" @@ -94,10 +97,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +138,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +252,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] value 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) @@ -264,7 +268,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 294bdcbbc0f..5973ace720d 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_request.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object to invite users to join the organization. class UserInvitationsRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationsRequest` initialize method" @@ -78,8 +79,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -121,7 +122,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -129,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -235,7 +236,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] value 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) @@ -251,7 +252,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 0e891060c48..5353eef877c 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # User invitations as returned by the API. class UserInvitationsResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -56,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationsResponse` initialize method" @@ -78,10 +79,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -116,7 +118,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -124,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -230,7 +232,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] value 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) @@ -246,7 +248,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/user_invitations_type.rb b/lib/datadog_api_client/v2/models/user_invitations_type.rb index 3d5a13fbc28..57867fe6960 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_type.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # User invitations type. class UserInvitationsType USER_INVITATIONS = "user_invitations".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/user_relationships.rb b/lib/datadog_api_client/v2/models/user_relationships.rb index 6ca0c100ce3..3ff32375664 100644 --- a/lib/datadog_api_client/v2/models/user_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_relationships.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Relationships of the user object. class UserRelationships - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Relationship to roles. attr_accessor :roles # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserRelationships` initialize method" @@ -75,10 +77,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -113,7 +116,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -121,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -227,7 +230,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] value 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) @@ -243,7 +246,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/user_response.rb b/lib/datadog_api_client/v2/models/user_response.rb index e196e3357b0..e35d325c253 100644 --- a/lib/datadog_api_client/v2/models/user_response.rb +++ b/lib/datadog_api_client/v2/models/user_response.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Response containing information about a single user. class UserResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # User object returned by the API. attr_accessor :data # Array of objects related to the user. @@ -60,7 +61,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserResponse` initialize method" @@ -86,10 +88,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -125,7 +128,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -133,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -239,7 +242,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] value 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) @@ -255,7 +258,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/user_response_included_item.rb b/lib/datadog_api_client/v2/models/user_response_included_item.rb index d16b09421d0..d83357025cf 100644 --- a/lib/datadog_api_client/v2/models/user_response_included_item.rb +++ b/lib/datadog_api_client/v2/models/user_response_included_item.rb @@ -30,7 +30,6 @@ def openapi_one_of :'Role' ] end - # Builds the object # @param [Mixed] Data to be matched against the list of oneOf items # @return [Object] Returns the model or the data itself @@ -58,7 +57,6 @@ def build(data) self._unparsed = true DatadogAPIClient::V2::UnparsedObject.new(data) end - end private @@ -116,4 +114,4 @@ def find_and_cast_into_type(klass, data) end end -end +end \ No newline at end of file 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 fc93397d481..045cd331da0 100644 --- a/lib/datadog_api_client/v2/models/user_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_response_relationships.rb @@ -19,16 +19,20 @@ module DatadogAPIClient::V2 # Relationships of the user object returned by the API. class UserResponseRelationships - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Relationship to an organization. attr_accessor :org + # Relationship to organizations. attr_accessor :other_orgs + # Relationship to users. attr_accessor :other_users + # Relationship to roles. attr_accessor :roles # Attribute mapping from ruby-style variable name to JSON key. @@ -67,7 +71,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserResponseRelationships` initialize method" @@ -99,10 +104,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -140,7 +146,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -148,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -254,7 +260,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] value 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) @@ -270,7 +276,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 8208b5edd94..ee15c0cd463 100644 --- a/lib/datadog_api_client/v2/models/user_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_update_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of the edited user. class UserUpdateAttributes - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -66,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserUpdateAttributes` initialize method" @@ -94,10 +95,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -134,7 +136,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -142,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -248,7 +250,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] value 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) @@ -264,7 +266,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 6cb58c95d42..477a023826a 100644 --- a/lib/datadog_api_client/v2/models/user_update_data.rb +++ b/lib/datadog_api_client/v2/models/user_update_data.rb @@ -19,15 +19,17 @@ module DatadogAPIClient::V2 # Object to update a user. class UserUpdateData - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Attributes of the edited user. attr_accessor :attributes # ID of the user. attr_accessor :id + # Users resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. @@ -64,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserUpdateData` initialize method" @@ -94,18 +97,16 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end @@ -149,7 +150,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -157,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -263,7 +264,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] value 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) @@ -279,7 +280,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file 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 7f79bbae5e3..fa8c5b38c15 100644 --- a/lib/datadog_api_client/v2/models/user_update_request.rb +++ b/lib/datadog_api_client/v2/models/user_update_request.rb @@ -19,10 +19,11 @@ module DatadogAPIClient::V2 # Update a user. class UserUpdateRequest - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed + # Object to update a user. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. @@ -55,7 +56,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserUpdateRequest` initialize method" @@ -75,8 +77,8 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -118,7 +120,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -126,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -232,7 +234,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] value 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) @@ -248,7 +250,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/users_response.rb b/lib/datadog_api_client/v2/models/users_response.rb index 0c4b76fb3f9..89c981451ba 100644 --- a/lib/datadog_api_client/v2/models/users_response.rb +++ b/lib/datadog_api_client/v2/models/users_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response containing information about multiple users. class UsersResponse - # Whether the object has unparsed attributes + # whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -29,6 +29,7 @@ class UsersResponse # Array of objects related to the users. attr_accessor :included + # Object describing meta attributes of response. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. @@ -65,7 +66,8 @@ def self.openapi_nullable end # Initializes the object - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UsersResponse` initialize method" @@ -97,10 +99,11 @@ def initialize(attributes = {}) end # Show invalid properties with the reasons. Usually used together with valid? - # @!visibility private # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new + invalid_properties end @@ -137,7 +140,7 @@ def hash end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def self.build_from_hash(attributes) @@ -145,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param attributes [Hash] attributes Model attributes in the form of hash + # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) @@ -251,7 +254,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] value 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) @@ -267,7 +270,6 @@ def _to_hash(value) value end end - end -end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v2/models/users_type.rb b/lib/datadog_api_client/v2/models/users_type.rb index 51a8e170c1e..182fe450767 100644 --- a/lib/datadog_api_client/v2/models/users_type.rb +++ b/lib/datadog_api_client/v2/models/users_type.rb @@ -17,6 +17,7 @@ require 'time' module DatadogAPIClient::V2 + # Users resource type. class UsersType USERS = "users".freeze @@ -37,5 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end - -end +end \ No newline at end of file From 837441ef85c9fa72b5830c6f9c4a0f366a0037b7 Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Thu, 3 Feb 2022 13:57:03 +0100 Subject: [PATCH 02/23] api parameters --- .generator/src/generator/templates/api.j2 | 66 +++++++++++------------ 1 file changed, 32 insertions(+), 34 deletions(-) diff --git a/.generator/src/generator/templates/api.j2 b/.generator/src/generator/templates/api.j2 index 7c22511ad9f..fd86dac1985 100644 --- a/.generator/src/generator/templates/api.j2 +++ b/.generator/src/generator/templates/api.j2 @@ -63,7 +63,7 @@ module {{ config.moduleName }} {%- for name, parameter in operation|parameters %} {%- if parameter.required %} - {%- if not parameter.isNullable %} + {%- if not parameter.nullable %} # verify the required parameter '{{ name|attribute_name }}' is set if @api_client.config.client_side_validation && {{ name|attribute_name }}.nil? fail ArgumentError, "Missing the required parameter '{{ name|attribute_name }}' when calling {{classname}}.{{ operation.operationId|snake_case }}" @@ -90,53 +90,51 @@ module {{ config.moduleName }} {%- endif %} {%- endif %} - {%- endif %}{# - {{#hasValidation}} - {{#maxLength}} - if @api_client.config.client_side_validation && {{^required}}!opts[:'{{ name|attribute_name }}'].nil? && {{/required}}{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:'{{ name|attribute_name }}']{{/required}}.to_s.length > {{{maxLength}}} - fail ArgumentError, 'invalid value for "{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:"{{ name|attribute_name }}"]{{/required}}" when calling {{classname}}.{{ operation.operationId }}, the character length must be smaller than or equal to {{{maxLength}}}.' + {%- endif %} + {%- if parameter.maxLength is defined %} + if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %}.to_s.length > {{ parameter.maxLength }} + fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, the character length must be smaller than or equal to {{ parameter.maxLength }}.' end - {{/maxLength}} - {{#minLength}} - if @api_client.config.client_side_validation && {{^required}}!opts[:'{{ name|attribute_name }}'].nil? && {{/required}}{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:'{{ name|attribute_name }}']{{/required}}.to_s.length < {{{minLength}}} - fail ArgumentError, 'invalid value for "{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:"{{ name|attribute_name }}"]{{/required}}" when calling {{classname}}.{{ operation.operationId }}, the character length must be great than or equal to {{{minLength}}}.' + {%- endif %} + {%- if parameter.minLength is defined %} + if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %}.to_s.length < {{ parameter.minLength }} + fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, the character length must be great than or equal to {{ parameter.minLength }}.' end - {{/minLength}} - {{#maximum}} - if @api_client.config.client_side_validation && {{^required}}!opts[:'{{ name|attribute_name }}'].nil? && {{/required}}{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:'{{ name|attribute_name }}']{{/required}} >{{#exclusiveMaximum}}={{/exclusiveMaximum}} {{{maximum}}} - fail ArgumentError, 'invalid value for "{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:"{{ name|attribute_name }}"]{{/required}}" when calling {{classname}}.{{ operation.operationId }}, must be smaller than {{^exclusiveMaximum}}or equal to {{/exclusiveMaximum}}{{{maximum}}}.' + {%- endif %} + {%- if parameter.maximum is defined %} + if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %} >{% if parameter.exclusiveMaximum %}={% endif %} {{ parameter.maximum }} + fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, must be smaller than {% if not parameter.exclusiveMaximum %}or equal to {% endif %}{{ parameter.maximum }}.' end - {{/maximum}} - {{#minimum}} - if @api_client.config.client_side_validation && {{^required}}!opts[:'{{ name|attribute_name }}'].nil? && {{/required}}{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:'{{ name|attribute_name }}']{{/required}} <{{#exclusiveMinimum}}={{/exclusiveMinimum}} {{{minimum}}} - fail ArgumentError, 'invalid value for "{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:"{{ name|attribute_name }}"]{{/required}}" when calling {{classname}}.{{ operation.operationId }}, must be greater than {{^exclusiveMinimum}}or equal to {{/exclusiveMinimum}}{{{minimum}}}.' + {%- endif %} + {%- if parameter.minimum is defined %} + if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %} <{% if parameter.exclusiveMinimum %}={% endif %} {{ parameter.minimum }} + fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, must be greater than {% if not parameter.exclusiveMinimum %}or equal to {% endif %}{{ parameter.minimum }}.' end - {{/minimum}} - {{#pattern}} - pattern = Regexp.new({{{pattern}}}) - if @api_client.config.client_side_validation && {{^required}}!opts[:'{{ name|attribute_name }}'].nil? && {{/required}}{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:'{{ name|attribute_name }}']{{/required}} !~ pattern - fail ArgumentError, "invalid value for '{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:\"{{ name|attribute_name }}\"]{{/required}}' when calling {{classname}}.{{ operation.operationId }}, must conform to the pattern #{pattern}." + {%- endif %} + {%- if parameter.pattern is defined %} + pattern = Regexp.new({{ parameter.pattern }}) + if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %} !~ pattern + fail ArgumentError, "invalid value for '{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:\"{{ name|attribute_name }}\"]{% endif %}' when calling {{classname}}.{{ operation.operationId }}, must conform to the pattern #{pattern}." end - {{/pattern}} - {{#maxItems}} - if @api_client.config.client_side_validation && {{^required}}!opts[:'{{ name|attribute_name }}'].nil? && {{/required}}{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:'{{ name|attribute_name }}']{{/required}}.length > {{{maxItems}}} - fail ArgumentError, 'invalid value for "{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:"{{ name|attribute_name }}"]{{/required}}" when calling {{classname}}.{{ operation.operationId }}, number of items must be less than or equal to {{{maxItems}}}.' + {%- endif %} + {%- if parameter.maxItems is defined %} + if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %}.length > {{ parameter.maxItems }} + fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, number of items must be less than or equal to {{ parameter.maxItems }}.' end - {{/maxItems}} - {{#minItems}} - if @api_client.config.client_side_validation && {{^required}}!opts[:'{{ name|attribute_name }}'].nil? && {{/required}}{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:'{{ name|attribute_name }}']{{/required}}.length < {{{minItems}}} - fail ArgumentError, 'invalid value for "{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:"{{ name|attribute_name }}"]{{/required}}" when calling {{classname}}.{{ operation.operationId }}, number of items must be greater than or equal to {{{minItems}}}.' + {%- endif %} + {%- if parameter.minItems is defined %} + if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %}.length < {{ parameter.minItems }} + fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, number of items must be greater than or equal to {{ parameter.minItems }}.' end - {{/minItems}} - {{/hasValidation}} -#}{%- endfor %} + {%- endif %} +{%- endfor %} # resource path local_var_path = '{{ path }}'{% for parameter in operation.parameters if parameter.in == "path" %}.sub('{{ '{' }}{{ parameter.name }}{{ '}'}}', CGI.escape({{ parameter.name }}.to_s).gsub('%2F', '/')){% endfor %} From 5e6599bd27e508c57330df4b840dd6534d7c9d89 Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Fri, 4 Feb 2022 16:08:41 +0100 Subject: [PATCH 03/23] http headers and smaller diff --- .generator/src/generator/templates/api.j2 | 4 ++-- .generator/src/generator/templates/model_generic.j2 | 6 +++--- lib/datadog_api_client/v1/api/logs_api.rb | 1 + lib/datadog_api_client/v1/api/metrics_api.rb | 1 + .../v1/models/alert_graph_widget_definition.rb | 4 ++-- .../v1/models/alert_value_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/api_error_response.rb | 4 ++-- lib/datadog_api_client/v1/models/api_key.rb | 4 ++-- lib/datadog_api_client/v1/models/api_key_list_response.rb | 4 ++-- lib/datadog_api_client/v1/models/api_key_response.rb | 4 ++-- .../v1/models/apm_stats_query_column_type.rb | 4 ++-- .../v1/models/apm_stats_query_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/application_key.rb | 4 ++-- .../v1/models/application_key_list_response.rb | 4 ++-- .../v1/models/application_key_response.rb | 4 ++-- .../v1/models/authentication_validation_response.rb | 4 ++-- lib/datadog_api_client/v1/models/aws_account.rb | 4 ++-- .../v1/models/aws_account_and_lambda_request.rb | 4 ++-- .../v1/models/aws_account_create_response.rb | 4 ++-- .../v1/models/aws_account_delete_request.rb | 4 ++-- .../v1/models/aws_account_list_response.rb | 4 ++-- lib/datadog_api_client/v1/models/aws_logs_async_error.rb | 4 ++-- lib/datadog_api_client/v1/models/aws_logs_async_response.rb | 4 ++-- lib/datadog_api_client/v1/models/aws_logs_lambda.rb | 4 ++-- lib/datadog_api_client/v1/models/aws_logs_list_response.rb | 4 ++-- .../v1/models/aws_logs_list_services_response.rb | 4 ++-- .../v1/models/aws_logs_services_request.rb | 4 ++-- lib/datadog_api_client/v1/models/aws_tag_filter.rb | 4 ++-- .../v1/models/aws_tag_filter_create_request.rb | 4 ++-- .../v1/models/aws_tag_filter_delete_request.rb | 4 ++-- .../v1/models/aws_tag_filter_list_response.rb | 4 ++-- lib/datadog_api_client/v1/models/azure_account.rb | 4 ++-- .../v1/models/cancel_downtimes_by_scope_request.rb | 4 ++-- lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb | 4 ++-- .../v1/models/change_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/change_widget_request.rb | 4 ++-- .../v1/models/check_can_delete_monitor_response.rb | 4 ++-- .../v1/models/check_can_delete_monitor_response_data.rb | 4 ++-- .../v1/models/check_can_delete_slo_response.rb | 4 ++-- .../v1/models/check_can_delete_slo_response_data.rb | 4 ++-- .../v1/models/check_status_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/creator.rb | 6 +++--- lib/datadog_api_client/v1/models/dashboard.rb | 6 +++--- .../v1/models/dashboard_bulk_action_data.rb | 4 ++-- .../v1/models/dashboard_bulk_delete_request.rb | 4 ++-- .../v1/models/dashboard_delete_response.rb | 4 ++-- lib/datadog_api_client/v1/models/dashboard_list.rb | 4 ++-- .../v1/models/dashboard_list_delete_response.rb | 4 ++-- .../v1/models/dashboard_list_list_response.rb | 4 ++-- .../v1/models/dashboard_restore_request.rb | 4 ++-- lib/datadog_api_client/v1/models/dashboard_summary.rb | 4 ++-- .../v1/models/dashboard_summary_definition.rb | 6 +++--- .../v1/models/dashboard_template_variable.rb | 6 +++--- .../v1/models/dashboard_template_variable_preset.rb | 4 ++-- .../v1/models/dashboard_template_variable_preset_value.rb | 4 ++-- lib/datadog_api_client/v1/models/deleted_monitor.rb | 4 ++-- .../v1/models/distribution_widget_definition.rb | 4 ++-- .../v1/models/distribution_widget_request.rb | 4 ++-- .../v1/models/distribution_widget_x_axis.rb | 4 ++-- .../v1/models/distribution_widget_y_axis.rb | 4 ++-- lib/datadog_api_client/v1/models/downtime.rb | 6 +++--- lib/datadog_api_client/v1/models/downtime_child.rb | 6 +++--- lib/datadog_api_client/v1/models/downtime_recurrence.rb | 6 +++--- lib/datadog_api_client/v1/models/event.rb | 4 ++-- lib/datadog_api_client/v1/models/event_create_request.rb | 4 ++-- lib/datadog_api_client/v1/models/event_create_response.rb | 4 ++-- lib/datadog_api_client/v1/models/event_list_response.rb | 4 ++-- lib/datadog_api_client/v1/models/event_query_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/event_response.rb | 4 ++-- .../v1/models/event_stream_widget_definition.rb | 4 ++-- .../v1/models/event_timeline_widget_definition.rb | 4 ++-- ...la_and_function_apm_dependency_stats_query_definition.rb | 4 ++-- ...mula_and_function_apm_resource_stats_query_definition.rb | 4 ++-- .../models/formula_and_function_event_query_definition.rb | 4 ++-- .../formula_and_function_event_query_definition_compute.rb | 4 ++-- .../formula_and_function_event_query_definition_search.rb | 4 ++-- .../v1/models/formula_and_function_event_query_group_by.rb | 4 ++-- .../formula_and_function_event_query_group_by_sort.rb | 4 ++-- .../models/formula_and_function_metric_query_definition.rb | 4 ++-- .../models/formula_and_function_process_query_definition.rb | 4 ++-- .../v1/models/free_text_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/funnel_query.rb | 4 ++-- lib/datadog_api_client/v1/models/funnel_query_steps_item.rb | 4 ++-- .../v1/models/funnel_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/funnel_widget_request.rb | 4 ++-- lib/datadog_api_client/v1/models/gcp_account.rb | 4 ++-- .../v1/models/geomap_widget_definition.rb | 4 ++-- .../v1/models/geomap_widget_definition_style.rb | 4 ++-- .../v1/models/geomap_widget_definition_view.rb | 4 ++-- lib/datadog_api_client/v1/models/geomap_widget_request.rb | 4 ++-- lib/datadog_api_client/v1/models/graph_snapshot.rb | 4 ++-- lib/datadog_api_client/v1/models/group_widget_definition.rb | 4 ++-- .../v1/models/heat_map_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/heat_map_widget_request.rb | 4 ++-- lib/datadog_api_client/v1/models/host.rb | 4 ++-- lib/datadog_api_client/v1/models/host_list_response.rb | 4 ++-- lib/datadog_api_client/v1/models/host_map_request.rb | 4 ++-- .../v1/models/host_map_widget_definition.rb | 4 ++-- .../v1/models/host_map_widget_definition_requests.rb | 4 ++-- .../v1/models/host_map_widget_definition_style.rb | 4 ++-- lib/datadog_api_client/v1/models/host_meta.rb | 4 ++-- .../v1/models/host_meta_install_method.rb | 4 ++-- lib/datadog_api_client/v1/models/host_metrics.rb | 4 ++-- lib/datadog_api_client/v1/models/host_mute_response.rb | 4 ++-- lib/datadog_api_client/v1/models/host_mute_settings.rb | 4 ++-- lib/datadog_api_client/v1/models/host_tags.rb | 4 ++-- lib/datadog_api_client/v1/models/host_totals.rb | 4 ++-- .../v1/models/hourly_usage_attribution_body.rb | 4 ++-- .../v1/models/hourly_usage_attribution_metadata.rb | 4 ++-- .../v1/models/hourly_usage_attribution_pagination.rb | 4 ++-- .../v1/models/hourly_usage_attribution_response.rb | 4 ++-- lib/datadog_api_client/v1/models/http_log_error.rb | 4 ++-- lib/datadog_api_client/v1/models/http_log_item.rb | 4 ++-- .../v1/models/i_frame_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/idp_form_data.rb | 4 ++-- lib/datadog_api_client/v1/models/idp_response.rb | 4 ++-- lib/datadog_api_client/v1/models/image_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/intake_payload_accepted.rb | 4 ++-- lib/datadog_api_client/v1/models/ip_prefixes_agents.rb | 4 ++-- lib/datadog_api_client/v1/models/ip_prefixes_api.rb | 4 ++-- lib/datadog_api_client/v1/models/ip_prefixes_apm.rb | 4 ++-- lib/datadog_api_client/v1/models/ip_prefixes_logs.rb | 4 ++-- lib/datadog_api_client/v1/models/ip_prefixes_process.rb | 4 ++-- lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb | 4 ++-- lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb | 4 ++-- lib/datadog_api_client/v1/models/ip_ranges.rb | 4 ++-- lib/datadog_api_client/v1/models/list_stream_column.rb | 4 ++-- lib/datadog_api_client/v1/models/list_stream_query.rb | 4 ++-- .../v1/models/list_stream_widget_definition.rb | 4 ++-- .../v1/models/list_stream_widget_request.rb | 4 ++-- lib/datadog_api_client/v1/models/log.rb | 4 ++-- lib/datadog_api_client/v1/models/log_content.rb | 4 ++-- lib/datadog_api_client/v1/models/log_query_definition.rb | 4 ++-- .../v1/models/log_query_definition_group_by.rb | 4 ++-- .../v1/models/log_query_definition_group_by_sort.rb | 4 ++-- .../v1/models/log_query_definition_search.rb | 4 ++-- .../v1/models/log_stream_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_api_error.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_api_error_response.rb | 4 ++-- .../v1/models/logs_arithmetic_processor.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_attribute_remapper.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_by_retention.rb | 4 ++-- .../v1/models/logs_by_retention_monthly_usage.rb | 4 ++-- .../v1/models/logs_by_retention_org_usage.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_by_retention_orgs.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_category_processor.rb | 4 ++-- .../v1/models/logs_category_processor_category.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_date_remapper.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_exclusion.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_exclusion_filter.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_filter.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_grok_parser.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_index.rb | 4 ++-- .../v1/models/logs_index_list_response.rb | 4 ++-- .../v1/models/logs_index_update_request.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_indexes_order.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_list_request.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_list_request_time.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_list_response.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_lookup_processor.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_message_remapper.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_pipeline.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_pipeline_processor.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_pipelines_order.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_query_compute.rb | 4 ++-- .../v1/models/logs_retention_agg_sum_usage.rb | 4 ++-- .../v1/models/logs_retention_sum_usage.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_service_remapper.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_status_remapper.rb | 4 ++-- .../v1/models/logs_string_builder_processor.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_trace_remapper.rb | 4 ++-- lib/datadog_api_client/v1/models/logs_url_parser.rb | 6 +++--- lib/datadog_api_client/v1/models/logs_user_agent_parser.rb | 4 ++-- lib/datadog_api_client/v1/models/metric_metadata.rb | 4 ++-- lib/datadog_api_client/v1/models/metric_search_response.rb | 4 ++-- .../v1/models/metric_search_response_results.rb | 4 ++-- lib/datadog_api_client/v1/models/metrics_list_response.rb | 4 ++-- lib/datadog_api_client/v1/models/metrics_payload.rb | 4 ++-- lib/datadog_api_client/v1/models/metrics_query_metadata.rb | 6 +++--- lib/datadog_api_client/v1/models/metrics_query_response.rb | 4 ++-- lib/datadog_api_client/v1/models/metrics_query_unit.rb | 4 ++-- lib/datadog_api_client/v1/models/monitor.rb | 6 +++--- .../monitor_formula_and_function_event_query_definition.rb | 4 ++-- ...r_formula_and_function_event_query_definition_compute.rb | 4 ++-- ...or_formula_and_function_event_query_definition_search.rb | 4 ++-- .../monitor_formula_and_function_event_query_group_by.rb | 4 ++-- ...onitor_formula_and_function_event_query_group_by_sort.rb | 4 ++-- .../v1/models/monitor_group_search_response.rb | 4 ++-- .../v1/models/monitor_group_search_response_counts.rb | 4 ++-- .../monitor_group_search_response_counts_status_item.rb | 4 ++-- .../monitor_group_search_response_counts_type_item.rb | 4 ++-- .../v1/models/monitor_group_search_result.rb | 6 +++--- lib/datadog_api_client/v1/models/monitor_options.rb | 6 +++--- .../v1/models/monitor_options_aggregation.rb | 4 ++-- lib/datadog_api_client/v1/models/monitor_search_response.rb | 4 ++-- .../v1/models/monitor_search_response_counts.rb | 4 ++-- .../v1/models/monitor_search_response_counts_muted_item.rb | 4 ++-- .../v1/models/monitor_search_response_counts_status_item.rb | 4 ++-- .../v1/models/monitor_search_response_counts_tag_item.rb | 4 ++-- .../v1/models/monitor_search_response_counts_type_item.rb | 4 ++-- .../v1/models/monitor_search_response_metadata.rb | 4 ++-- lib/datadog_api_client/v1/models/monitor_search_result.rb | 6 +++--- .../v1/models/monitor_search_result_notification.rb | 4 ++-- lib/datadog_api_client/v1/models/monitor_state.rb | 4 ++-- lib/datadog_api_client/v1/models/monitor_state_group.rb | 4 ++-- .../v1/models/monitor_summary_widget_definition.rb | 4 ++-- .../v1/models/monitor_threshold_window_options.rb | 6 +++--- lib/datadog_api_client/v1/models/monitor_thresholds.rb | 6 +++--- lib/datadog_api_client/v1/models/monitor_update_request.rb | 6 +++--- .../v1/models/monthly_usage_attribution_body.rb | 4 ++-- .../v1/models/monthly_usage_attribution_metadata.rb | 4 ++-- .../v1/models/monthly_usage_attribution_pagination.rb | 4 ++-- .../v1/models/monthly_usage_attribution_response.rb | 4 ++-- .../v1/models/monthly_usage_attribution_values.rb | 4 ++-- lib/datadog_api_client/v1/models/note_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/notebook_absolute_time.rb | 4 ++-- lib/datadog_api_client/v1/models/notebook_author.rb | 6 +++--- .../v1/models/notebook_cell_create_request.rb | 4 ++-- lib/datadog_api_client/v1/models/notebook_cell_response.rb | 4 ++-- .../v1/models/notebook_cell_update_request.rb | 4 ++-- lib/datadog_api_client/v1/models/notebook_create_data.rb | 4 ++-- .../v1/models/notebook_create_data_attributes.rb | 4 ++-- lib/datadog_api_client/v1/models/notebook_create_request.rb | 4 ++-- .../v1/models/notebook_distribution_cell_attributes.rb | 6 +++--- .../v1/models/notebook_heat_map_cell_attributes.rb | 6 +++--- .../v1/models/notebook_log_stream_cell_attributes.rb | 6 +++--- .../v1/models/notebook_markdown_cell_attributes.rb | 4 ++-- .../v1/models/notebook_markdown_cell_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/notebook_metadata.rb | 6 +++--- lib/datadog_api_client/v1/models/notebook_relative_time.rb | 4 ++-- lib/datadog_api_client/v1/models/notebook_response.rb | 4 ++-- lib/datadog_api_client/v1/models/notebook_response_data.rb | 4 ++-- .../v1/models/notebook_response_data_attributes.rb | 4 ++-- lib/datadog_api_client/v1/models/notebook_split_by.rb | 4 ++-- .../v1/models/notebook_timeseries_cell_attributes.rb | 6 +++--- .../v1/models/notebook_toplist_cell_attributes.rb | 6 +++--- lib/datadog_api_client/v1/models/notebook_update_data.rb | 4 ++-- .../v1/models/notebook_update_data_attributes.rb | 4 ++-- lib/datadog_api_client/v1/models/notebook_update_request.rb | 4 ++-- lib/datadog_api_client/v1/models/notebooks_response.rb | 4 ++-- lib/datadog_api_client/v1/models/notebooks_response_data.rb | 4 ++-- .../v1/models/notebooks_response_data_attributes.rb | 4 ++-- lib/datadog_api_client/v1/models/notebooks_response_meta.rb | 4 ++-- lib/datadog_api_client/v1/models/notebooks_response_page.rb | 4 ++-- lib/datadog_api_client/v1/models/organization.rb | 4 ++-- lib/datadog_api_client/v1/models/organization_billing.rb | 4 ++-- .../v1/models/organization_create_body.rb | 4 ++-- .../v1/models/organization_create_response.rb | 4 ++-- .../v1/models/organization_list_response.rb | 4 ++-- lib/datadog_api_client/v1/models/organization_response.rb | 4 ++-- lib/datadog_api_client/v1/models/organization_settings.rb | 4 ++-- .../v1/models/organization_settings_saml.rb | 4 ++-- .../organization_settings_saml_autocreate_users_domains.rb | 4 ++-- .../organization_settings_saml_idp_initiated_login.rb | 4 ++-- .../v1/models/organization_settings_saml_strict_mode.rb | 4 ++-- .../v1/models/organization_subscription.rb | 4 ++-- lib/datadog_api_client/v1/models/pager_duty_service.rb | 4 ++-- lib/datadog_api_client/v1/models/pager_duty_service_key.rb | 4 ++-- lib/datadog_api_client/v1/models/pager_duty_service_name.rb | 4 ++-- lib/datadog_api_client/v1/models/pagination.rb | 4 ++-- .../v1/models/process_query_definition.rb | 4 ++-- .../v1/models/query_value_widget_definition.rb | 4 ++-- .../v1/models/query_value_widget_request.rb | 4 ++-- .../v1/models/response_meta_attributes.rb | 4 ++-- lib/datadog_api_client/v1/models/scatter_plot_request.rb | 4 ++-- .../v1/models/scatter_plot_widget_definition.rb | 4 ++-- .../v1/models/scatter_plot_widget_definition_requests.rb | 4 ++-- .../v1/models/scatterplot_table_request.rb | 4 ++-- .../v1/models/scatterplot_widget_formula.rb | 4 ++-- lib/datadog_api_client/v1/models/series.rb | 6 +++--- lib/datadog_api_client/v1/models/service_check.rb | 4 ++-- lib/datadog_api_client/v1/models/service_level_objective.rb | 6 +++--- .../v1/models/service_level_objective_query.rb | 4 ++-- .../v1/models/service_level_objective_request.rb | 6 +++--- .../v1/models/service_map_widget_definition.rb | 4 ++-- .../v1/models/service_summary_widget_definition.rb | 4 ++-- .../v1/models/slack_integration_channel.rb | 4 ++-- .../v1/models/slack_integration_channel_display.rb | 4 ++-- lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb | 4 ++-- .../v1/models/slo_bulk_delete_response.rb | 4 ++-- .../v1/models/slo_bulk_delete_response_data.rb | 4 ++-- lib/datadog_api_client/v1/models/slo_correction.rb | 4 ++-- .../v1/models/slo_correction_create_data.rb | 4 ++-- .../v1/models/slo_correction_create_request.rb | 4 ++-- .../v1/models/slo_correction_create_request_attributes.rb | 4 ++-- .../v1/models/slo_correction_list_response.rb | 4 ++-- lib/datadog_api_client/v1/models/slo_correction_response.rb | 4 ++-- .../v1/models/slo_correction_response_attributes.rb | 6 +++--- .../models/slo_correction_response_attributes_modifier.rb | 4 ++-- .../v1/models/slo_correction_update_data.rb | 4 ++-- .../v1/models/slo_correction_update_request.rb | 4 ++-- .../v1/models/slo_correction_update_request_attributes.rb | 4 ++-- lib/datadog_api_client/v1/models/slo_delete_response.rb | 4 ++-- lib/datadog_api_client/v1/models/slo_history_metrics.rb | 4 ++-- .../v1/models/slo_history_metrics_series.rb | 4 ++-- .../v1/models/slo_history_metrics_series_metadata.rb | 6 +++--- .../v1/models/slo_history_metrics_series_metadata_unit.rb | 6 +++--- lib/datadog_api_client/v1/models/slo_history_monitor.rb | 4 ++-- lib/datadog_api_client/v1/models/slo_history_response.rb | 4 ++-- .../v1/models/slo_history_response_data.rb | 4 ++-- .../v1/models/slo_history_response_error.rb | 4 ++-- .../v1/models/slo_history_response_error_with_type.rb | 4 ++-- lib/datadog_api_client/v1/models/slo_history_sli_data.rb | 4 ++-- lib/datadog_api_client/v1/models/slo_list_response.rb | 4 ++-- .../v1/models/slo_list_response_metadata.rb | 4 ++-- .../v1/models/slo_list_response_metadata_page.rb | 4 ++-- lib/datadog_api_client/v1/models/slo_response.rb | 4 ++-- lib/datadog_api_client/v1/models/slo_response_data.rb | 6 +++--- lib/datadog_api_client/v1/models/slo_threshold.rb | 4 ++-- lib/datadog_api_client/v1/models/slo_widget_definition.rb | 4 ++-- .../v1/models/sunburst_widget_definition.rb | 4 ++-- .../v1/models/sunburst_widget_legend_inline_automatic.rb | 4 ++-- .../v1/models/sunburst_widget_legend_table.rb | 4 ++-- lib/datadog_api_client/v1/models/sunburst_widget_request.rb | 4 ++-- lib/datadog_api_client/v1/models/synthetics_api_step.rb | 4 ++-- lib/datadog_api_client/v1/models/synthetics_api_test.rb | 4 ++-- .../v1/models/synthetics_api_test_config.rb | 4 ++-- .../v1/models/synthetics_api_test_result_data.rb | 4 ++-- .../v1/models/synthetics_api_test_result_failure.rb | 4 ++-- .../v1/models/synthetics_api_test_result_full.rb | 4 ++-- .../v1/models/synthetics_api_test_result_full_check.rb | 4 ++-- .../v1/models/synthetics_api_test_result_short.rb | 4 ++-- .../v1/models/synthetics_api_test_result_short_result.rb | 4 ++-- .../v1/models/synthetics_assertion_json_path_target.rb | 4 ++-- .../models/synthetics_assertion_json_path_target_target.rb | 4 ++-- .../v1/models/synthetics_assertion_target.rb | 4 ++-- .../v1/models/synthetics_basic_auth_ntlm.rb | 4 ++-- .../v1/models/synthetics_basic_auth_sigv4.rb | 4 ++-- .../v1/models/synthetics_basic_auth_web.rb | 4 ++-- .../v1/models/synthetics_batch_details.rb | 4 ++-- .../v1/models/synthetics_batch_details_data.rb | 4 ++-- lib/datadog_api_client/v1/models/synthetics_batch_result.rb | 4 ++-- .../v1/models/synthetics_browser_error.rb | 4 ++-- lib/datadog_api_client/v1/models/synthetics_browser_test.rb | 4 ++-- .../v1/models/synthetics_browser_test_config.rb | 4 ++-- .../v1/models/synthetics_browser_test_result_data.rb | 4 ++-- .../v1/models/synthetics_browser_test_result_failure.rb | 4 ++-- .../v1/models/synthetics_browser_test_result_full.rb | 4 ++-- .../v1/models/synthetics_browser_test_result_full_check.rb | 4 ++-- .../v1/models/synthetics_browser_test_result_short.rb | 4 ++-- .../models/synthetics_browser_test_result_short_result.rb | 4 ++-- .../v1/models/synthetics_browser_variable.rb | 4 ++-- .../v1/models/synthetics_ci_batch_metadata.rb | 4 ++-- .../v1/models/synthetics_ci_batch_metadata_ci.rb | 4 ++-- .../v1/models/synthetics_ci_batch_metadata_git.rb | 4 ++-- .../v1/models/synthetics_ci_batch_metadata_pipeline.rb | 4 ++-- .../v1/models/synthetics_ci_batch_metadata_provider.rb | 4 ++-- lib/datadog_api_client/v1/models/synthetics_ci_test.rb | 4 ++-- lib/datadog_api_client/v1/models/synthetics_ci_test_body.rb | 4 ++-- .../v1/models/synthetics_config_variable.rb | 4 ++-- .../v1/models/synthetics_core_web_vitals.rb | 4 ++-- .../v1/models/synthetics_delete_tests_payload.rb | 4 ++-- .../v1/models/synthetics_delete_tests_response.rb | 4 ++-- lib/datadog_api_client/v1/models/synthetics_deleted_test.rb | 4 ++-- lib/datadog_api_client/v1/models/synthetics_device.rb | 4 ++-- .../synthetics_get_api_test_latest_results_response.rb | 4 ++-- .../synthetics_get_browser_test_latest_results_response.rb | 4 ++-- .../v1/models/synthetics_global_variable.rb | 4 ++-- .../v1/models/synthetics_global_variable_attributes.rb | 4 ++-- .../models/synthetics_global_variable_parse_test_options.rb | 4 ++-- .../v1/models/synthetics_global_variable_value.rb | 4 ++-- .../v1/models/synthetics_list_global_variables_response.rb | 4 ++-- .../v1/models/synthetics_list_tests_response.rb | 4 ++-- lib/datadog_api_client/v1/models/synthetics_location.rb | 4 ++-- lib/datadog_api_client/v1/models/synthetics_locations.rb | 4 ++-- .../v1/models/synthetics_parsing_options.rb | 4 ++-- .../v1/models/synthetics_private_location.rb | 4 ++-- .../models/synthetics_private_location_creation_response.rb | 4 ++-- ..._private_location_creation_response_result_encryption.rb | 4 ++-- .../v1/models/synthetics_private_location_secrets.rb | 4 ++-- .../synthetics_private_location_secrets_authentication.rb | 4 ++-- ...synthetics_private_location_secrets_config_decryption.rb | 4 ++-- .../v1/models/synthetics_ssl_certificate.rb | 4 ++-- .../v1/models/synthetics_ssl_certificate_issuer.rb | 4 ++-- .../v1/models/synthetics_ssl_certificate_subject.rb | 4 ++-- lib/datadog_api_client/v1/models/synthetics_step.rb | 4 ++-- lib/datadog_api_client/v1/models/synthetics_step_detail.rb | 4 ++-- .../v1/models/synthetics_step_detail_warning.rb | 4 ++-- lib/datadog_api_client/v1/models/synthetics_test_config.rb | 4 ++-- lib/datadog_api_client/v1/models/synthetics_test_details.rb | 4 ++-- lib/datadog_api_client/v1/models/synthetics_test_options.rb | 4 ++-- .../v1/models/synthetics_test_options_monitor_options.rb | 4 ++-- .../v1/models/synthetics_test_options_retry.rb | 4 ++-- lib/datadog_api_client/v1/models/synthetics_test_request.rb | 4 ++-- .../v1/models/synthetics_test_request_certificate.rb | 4 ++-- .../v1/models/synthetics_test_request_certificate_item.rb | 4 ++-- .../v1/models/synthetics_test_request_proxy.rb | 4 ++-- lib/datadog_api_client/v1/models/synthetics_timing.rb | 4 ++-- lib/datadog_api_client/v1/models/synthetics_trigger_body.rb | 4 ++-- .../v1/models/synthetics_trigger_ci_test_location.rb | 4 ++-- .../v1/models/synthetics_trigger_ci_test_run_result.rb | 4 ++-- .../v1/models/synthetics_trigger_ci_tests_response.rb | 6 +++--- lib/datadog_api_client/v1/models/synthetics_trigger_test.rb | 4 ++-- .../models/synthetics_update_test_pause_status_payload.rb | 4 ++-- .../v1/models/synthetics_variable_parser.rb | 4 ++-- lib/datadog_api_client/v1/models/table_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/table_widget_request.rb | 4 ++-- lib/datadog_api_client/v1/models/tag_to_hosts.rb | 4 ++-- .../v1/models/timeseries_widget_definition.rb | 4 ++-- .../v1/models/timeseries_widget_expression_alias.rb | 4 ++-- .../v1/models/timeseries_widget_request.rb | 4 ++-- .../v1/models/toplist_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/toplist_widget_request.rb | 4 ++-- .../v1/models/tree_map_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/tree_map_widget_request.rb | 4 ++-- .../v1/models/usage_analyzed_logs_hour.rb | 4 ++-- .../v1/models/usage_analyzed_logs_response.rb | 4 ++-- .../v1/models/usage_attribution_aggregates_body.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_attribution_body.rb | 4 ++-- .../v1/models/usage_attribution_metadata.rb | 4 ++-- .../v1/models/usage_attribution_pagination.rb | 4 ++-- .../v1/models/usage_attribution_response.rb | 4 ++-- .../v1/models/usage_attribution_values.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb | 4 ++-- .../v1/models/usage_audit_logs_response.rb | 4 ++-- .../v1/models/usage_billable_summary_body.rb | 4 ++-- .../v1/models/usage_billable_summary_hour.rb | 4 ++-- .../v1/models/usage_billable_summary_keys.rb | 4 ++-- .../v1/models/usage_billable_summary_response.rb | 4 ++-- .../models/usage_cloud_security_posture_management_hour.rb | 6 +++--- .../usage_cloud_security_posture_management_response.rb | 4 ++-- .../v1/models/usage_custom_reports_attributes.rb | 4 ++-- .../v1/models/usage_custom_reports_data.rb | 4 ++-- .../v1/models/usage_custom_reports_meta.rb | 4 ++-- .../v1/models/usage_custom_reports_page.rb | 4 ++-- .../v1/models/usage_custom_reports_response.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_cws_hour.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_cws_response.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_dbm_hour.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_dbm_response.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_fargate_hour.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_fargate_response.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_host_hour.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_hosts_response.rb | 4 ++-- .../v1/models/usage_incident_management_hour.rb | 4 ++-- .../v1/models/usage_incident_management_response.rb | 4 ++-- .../v1/models/usage_indexed_spans_hour.rb | 4 ++-- .../v1/models/usage_indexed_spans_response.rb | 4 ++-- .../v1/models/usage_ingested_spans_hour.rb | 4 ++-- .../v1/models/usage_ingested_spans_response.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_io_t_hour.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_io_t_response.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_lambda_hour.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_lambda_response.rb | 4 ++-- .../v1/models/usage_logs_by_index_hour.rb | 4 ++-- .../v1/models/usage_logs_by_index_response.rb | 4 ++-- .../v1/models/usage_logs_by_retention_hour.rb | 4 ++-- .../v1/models/usage_logs_by_retention_response.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_logs_hour.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_logs_response.rb | 4 ++-- .../v1/models/usage_network_flows_hour.rb | 4 ++-- .../v1/models/usage_network_flows_response.rb | 4 ++-- .../v1/models/usage_network_hosts_hour.rb | 4 ++-- .../v1/models/usage_network_hosts_response.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_profiling_hour.rb | 4 ++-- .../v1/models/usage_profiling_response.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb | 4 ++-- .../v1/models/usage_rum_sessions_response.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_rum_units_hour.rb | 6 +++--- .../v1/models/usage_rum_units_response.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_sds_hour.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_sds_response.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_snmp_hour.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_snmp_response.rb | 4 ++-- .../v1/models/usage_specified_custom_reports_attributes.rb | 4 ++-- .../v1/models/usage_specified_custom_reports_data.rb | 4 ++-- .../v1/models/usage_specified_custom_reports_meta.rb | 4 ++-- .../v1/models/usage_specified_custom_reports_page.rb | 4 ++-- .../v1/models/usage_specified_custom_reports_response.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_summary_date.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_summary_date_org.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_summary_response.rb | 4 ++-- .../v1/models/usage_synthetics_api_hour.rb | 4 ++-- .../v1/models/usage_synthetics_api_response.rb | 4 ++-- .../v1/models/usage_synthetics_browser_hour.rb | 4 ++-- .../v1/models/usage_synthetics_browser_response.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_synthetics_hour.rb | 4 ++-- .../v1/models/usage_synthetics_response.rb | 4 ++-- lib/datadog_api_client/v1/models/usage_timeseries_hour.rb | 4 ++-- .../v1/models/usage_timeseries_response.rb | 4 ++-- .../v1/models/usage_top_avg_metrics_hour.rb | 4 ++-- .../v1/models/usage_top_avg_metrics_metadata.rb | 4 ++-- .../v1/models/usage_top_avg_metrics_response.rb | 4 ++-- lib/datadog_api_client/v1/models/user.rb | 4 ++-- lib/datadog_api_client/v1/models/user_disable_response.rb | 4 ++-- lib/datadog_api_client/v1/models/user_list_response.rb | 4 ++-- lib/datadog_api_client/v1/models/user_response.rb | 4 ++-- lib/datadog_api_client/v1/models/webhooks_integration.rb | 6 +++--- .../v1/models/webhooks_integration_custom_variable.rb | 4 ++-- .../models/webhooks_integration_custom_variable_response.rb | 4 ++-- .../webhooks_integration_custom_variable_update_request.rb | 4 ++-- .../v1/models/webhooks_integration_update_request.rb | 6 +++--- lib/datadog_api_client/v1/models/widget.rb | 4 ++-- lib/datadog_api_client/v1/models/widget_axis.rb | 4 ++-- .../v1/models/widget_conditional_format.rb | 4 ++-- lib/datadog_api_client/v1/models/widget_custom_link.rb | 4 ++-- lib/datadog_api_client/v1/models/widget_event.rb | 4 ++-- lib/datadog_api_client/v1/models/widget_field_sort.rb | 4 ++-- lib/datadog_api_client/v1/models/widget_formula.rb | 4 ++-- lib/datadog_api_client/v1/models/widget_formula_limit.rb | 4 ++-- lib/datadog_api_client/v1/models/widget_layout.rb | 4 ++-- lib/datadog_api_client/v1/models/widget_marker.rb | 4 ++-- lib/datadog_api_client/v1/models/widget_request_style.rb | 4 ++-- lib/datadog_api_client/v1/models/widget_style.rb | 4 ++-- lib/datadog_api_client/v1/models/widget_time.rb | 4 ++-- lib/datadog_api_client/v2/api/logs_api.rb | 1 + lib/datadog_api_client/v2/models/api_error_response.rb | 4 ++-- .../v2/models/api_key_create_attributes.rb | 4 ++-- lib/datadog_api_client/v2/models/api_key_create_data.rb | 4 ++-- lib/datadog_api_client/v2/models/api_key_create_request.rb | 4 ++-- lib/datadog_api_client/v2/models/api_key_relationships.rb | 4 ++-- lib/datadog_api_client/v2/models/api_key_response.rb | 4 ++-- .../v2/models/api_key_update_attributes.rb | 4 ++-- lib/datadog_api_client/v2/models/api_key_update_data.rb | 4 ++-- lib/datadog_api_client/v2/models/api_key_update_request.rb | 4 ++-- lib/datadog_api_client/v2/models/api_keys_response.rb | 4 ++-- .../v2/models/application_key_create_attributes.rb | 6 +++--- .../v2/models/application_key_create_data.rb | 4 ++-- .../v2/models/application_key_create_request.rb | 4 ++-- .../v2/models/application_key_relationships.rb | 4 ++-- .../v2/models/application_key_response.rb | 4 ++-- .../v2/models/application_key_update_attributes.rb | 6 +++--- .../v2/models/application_key_update_data.rb | 4 ++-- .../v2/models/application_key_update_request.rb | 4 ++-- .../models/cloud_workload_security_agent_rule_attributes.rb | 4 ++-- .../cloud_workload_security_agent_rule_create_attributes.rb | 4 ++-- .../cloud_workload_security_agent_rule_create_data.rb | 4 ++-- .../cloud_workload_security_agent_rule_create_request.rb | 4 ++-- ...cloud_workload_security_agent_rule_creator_attributes.rb | 4 ++-- .../v2/models/cloud_workload_security_agent_rule_data.rb | 4 ++-- .../models/cloud_workload_security_agent_rule_response.rb | 4 ++-- .../cloud_workload_security_agent_rule_update_attributes.rb | 4 ++-- .../cloud_workload_security_agent_rule_update_data.rb | 4 ++-- .../cloud_workload_security_agent_rule_update_request.rb | 4 ++-- ...cloud_workload_security_agent_rule_updater_attributes.rb | 4 ++-- .../cloud_workload_security_agent_rules_list_response.rb | 4 ++-- lib/datadog_api_client/v2/models/creator.rb | 4 ++-- .../v2/models/dashboard_list_add_items_request.rb | 4 ++-- .../v2/models/dashboard_list_add_items_response.rb | 4 ++-- .../v2/models/dashboard_list_delete_items_request.rb | 4 ++-- .../v2/models/dashboard_list_delete_items_response.rb | 4 ++-- lib/datadog_api_client/v2/models/dashboard_list_item.rb | 4 ++-- .../v2/models/dashboard_list_item_request.rb | 4 ++-- .../v2/models/dashboard_list_item_response.rb | 4 ++-- lib/datadog_api_client/v2/models/dashboard_list_items.rb | 4 ++-- .../v2/models/dashboard_list_update_items_request.rb | 4 ++-- .../v2/models/dashboard_list_update_items_response.rb | 4 ++-- lib/datadog_api_client/v2/models/full_api_key.rb | 4 ++-- lib/datadog_api_client/v2/models/full_api_key_attributes.rb | 4 ++-- lib/datadog_api_client/v2/models/full_application_key.rb | 4 ++-- .../v2/models/full_application_key_attributes.rb | 6 +++--- lib/datadog_api_client/v2/models/http_log_error.rb | 4 ++-- lib/datadog_api_client/v2/models/http_log_errors.rb | 4 ++-- lib/datadog_api_client/v2/models/http_log_item.rb | 4 ++-- .../v2/models/incident_create_attributes.rb | 4 ++-- lib/datadog_api_client/v2/models/incident_create_data.rb | 4 ++-- .../v2/models/incident_create_relationships.rb | 4 ++-- lib/datadog_api_client/v2/models/incident_create_request.rb | 4 ++-- .../v2/models/incident_field_attributes_multiple_value.rb | 6 +++--- .../v2/models/incident_field_attributes_single_value.rb | 6 +++--- .../v2/models/incident_notification_handle.rb | 4 ++-- lib/datadog_api_client/v2/models/incident_response.rb | 4 ++-- .../v2/models/incident_response_attributes.rb | 6 +++--- lib/datadog_api_client/v2/models/incident_response_data.rb | 4 ++-- .../v2/models/incident_response_relationships.rb | 4 ++-- .../v2/models/incident_service_create_attributes.rb | 4 ++-- .../v2/models/incident_service_create_data.rb | 4 ++-- .../v2/models/incident_service_create_request.rb | 4 ++-- .../v2/models/incident_service_relationships.rb | 4 ++-- .../v2/models/incident_service_response.rb | 4 ++-- .../v2/models/incident_service_response_attributes.rb | 4 ++-- .../v2/models/incident_service_response_data.rb | 4 ++-- .../v2/models/incident_service_update_attributes.rb | 4 ++-- .../v2/models/incident_service_update_data.rb | 4 ++-- .../v2/models/incident_service_update_request.rb | 4 ++-- .../v2/models/incident_services_response.rb | 4 ++-- .../v2/models/incident_services_response_meta.rb | 4 ++-- .../v2/models/incident_services_response_meta_pagination.rb | 4 ++-- .../v2/models/incident_team_create_attributes.rb | 4 ++-- .../v2/models/incident_team_create_data.rb | 4 ++-- .../v2/models/incident_team_create_request.rb | 4 ++-- .../v2/models/incident_team_relationships.rb | 4 ++-- lib/datadog_api_client/v2/models/incident_team_response.rb | 4 ++-- .../v2/models/incident_team_response_attributes.rb | 4 ++-- .../v2/models/incident_team_response_data.rb | 4 ++-- .../v2/models/incident_team_update_attributes.rb | 4 ++-- .../v2/models/incident_team_update_data.rb | 4 ++-- .../v2/models/incident_team_update_request.rb | 4 ++-- lib/datadog_api_client/v2/models/incident_teams_response.rb | 4 ++-- .../v2/models/incident_teams_response_meta.rb | 4 ++-- .../v2/models/incident_teams_response_meta_pagination.rb | 4 ++-- .../incident_timeline_cell_markdown_create_attributes.rb | 4 ++-- ...dent_timeline_cell_markdown_create_attributes_content.rb | 4 ++-- .../v2/models/incident_update_attributes.rb | 6 +++--- lib/datadog_api_client/v2/models/incident_update_data.rb | 4 ++-- .../v2/models/incident_update_relationships.rb | 4 ++-- lib/datadog_api_client/v2/models/incident_update_request.rb | 4 ++-- lib/datadog_api_client/v2/models/incidents_response.rb | 4 ++-- lib/datadog_api_client/v2/models/incidents_response_meta.rb | 4 ++-- .../v2/models/incidents_response_meta_pagination.rb | 4 ++-- .../v2/models/list_application_keys_response.rb | 4 ++-- lib/datadog_api_client/v2/models/log.rb | 4 ++-- lib/datadog_api_client/v2/models/log_attributes.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb | 4 ++-- .../models/logs_aggregate_bucket_value_timeseries_point.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_aggregate_request.rb | 4 ++-- .../v2/models/logs_aggregate_request_page.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_aggregate_response.rb | 4 ++-- .../v2/models/logs_aggregate_response_data.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_aggregate_sort.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_archive.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_archive_attributes.rb | 6 +++--- .../v2/models/logs_archive_create_request.rb | 4 ++-- .../v2/models/logs_archive_create_request_attributes.rb | 4 ++-- .../v2/models/logs_archive_create_request_definition.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_archive_definition.rb | 4 ++-- .../v2/models/logs_archive_destination_azure.rb | 4 ++-- .../v2/models/logs_archive_destination_gcs.rb | 4 ++-- .../v2/models/logs_archive_destination_s3.rb | 4 ++-- .../v2/models/logs_archive_integration_azure.rb | 4 ++-- .../v2/models/logs_archive_integration_gcs.rb | 4 ++-- .../v2/models/logs_archive_integration_s3.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_archive_order.rb | 4 ++-- .../v2/models/logs_archive_order_attributes.rb | 4 ++-- .../v2/models/logs_archive_order_definition.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_archives.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_compute.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_group_by.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_group_by_histogram.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_list_request.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_list_request_page.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_list_response.rb | 4 ++-- .../v2/models/logs_list_response_links.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_metric_compute.rb | 4 ++-- .../v2/models/logs_metric_create_attributes.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_metric_create_data.rb | 4 ++-- .../v2/models/logs_metric_create_request.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_metric_filter.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_metric_group_by.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_metric_response.rb | 4 ++-- .../v2/models/logs_metric_response_attributes.rb | 4 ++-- .../v2/models/logs_metric_response_compute.rb | 4 ++-- .../v2/models/logs_metric_response_data.rb | 4 ++-- .../v2/models/logs_metric_response_filter.rb | 4 ++-- .../v2/models/logs_metric_response_group_by.rb | 4 ++-- .../v2/models/logs_metric_update_attributes.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_metric_update_data.rb | 4 ++-- .../v2/models/logs_metric_update_request.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_metrics_response.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_query_filter.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_query_options.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_response_metadata.rb | 4 ++-- .../v2/models/logs_response_metadata_page.rb | 4 ++-- lib/datadog_api_client/v2/models/logs_warning.rb | 4 ++-- lib/datadog_api_client/v2/models/metric.rb | 4 ++-- lib/datadog_api_client/v2/models/metric_all_tags.rb | 4 ++-- .../v2/models/metric_all_tags_attributes.rb | 4 ++-- .../v2/models/metric_all_tags_response.rb | 4 ++-- .../v2/models/metric_custom_aggregation.rb | 4 ++-- lib/datadog_api_client/v2/models/metric_distinct_volume.rb | 4 ++-- .../v2/models/metric_distinct_volume_attributes.rb | 4 ++-- .../v2/models/metric_ingested_indexed_volume.rb | 4 ++-- .../v2/models/metric_ingested_indexed_volume_attributes.rb | 4 ++-- .../v2/models/metric_tag_configuration.rb | 4 ++-- .../v2/models/metric_tag_configuration_attributes.rb | 4 ++-- .../v2/models/metric_tag_configuration_create_attributes.rb | 4 ++-- .../v2/models/metric_tag_configuration_create_data.rb | 4 ++-- .../v2/models/metric_tag_configuration_create_request.rb | 4 ++-- .../v2/models/metric_tag_configuration_response.rb | 4 ++-- .../v2/models/metric_tag_configuration_update_attributes.rb | 4 ++-- .../v2/models/metric_tag_configuration_update_data.rb | 4 ++-- .../v2/models/metric_tag_configuration_update_request.rb | 4 ++-- lib/datadog_api_client/v2/models/metric_volumes_response.rb | 4 ++-- .../metrics_and_metric_tag_configurations_response.rb | 4 ++-- lib/datadog_api_client/v2/models/organization.rb | 4 ++-- lib/datadog_api_client/v2/models/organization_attributes.rb | 4 ++-- lib/datadog_api_client/v2/models/pagination.rb | 4 ++-- lib/datadog_api_client/v2/models/partial_api_key.rb | 4 ++-- .../v2/models/partial_api_key_attributes.rb | 4 ++-- lib/datadog_api_client/v2/models/partial_application_key.rb | 4 ++-- .../v2/models/partial_application_key_attributes.rb | 6 +++--- .../v2/models/partial_application_key_response.rb | 4 ++-- lib/datadog_api_client/v2/models/permission.rb | 4 ++-- lib/datadog_api_client/v2/models/permission_attributes.rb | 4 ++-- lib/datadog_api_client/v2/models/permissions_response.rb | 4 ++-- lib/datadog_api_client/v2/models/process_summaries_meta.rb | 4 ++-- .../v2/models/process_summaries_meta_page.rb | 4 ++-- .../v2/models/process_summaries_response.rb | 4 ++-- lib/datadog_api_client/v2/models/process_summary.rb | 4 ++-- .../v2/models/process_summary_attributes.rb | 4 ++-- .../relationship_to_incident_integration_metadata_data.rb | 4 ++-- .../relationship_to_incident_integration_metadatas.rb | 4 ++-- .../v2/models/relationship_to_incident_postmortem.rb | 4 ++-- .../v2/models/relationship_to_incident_postmortem_data.rb | 4 ++-- .../v2/models/relationship_to_organization.rb | 4 ++-- .../v2/models/relationship_to_organization_data.rb | 4 ++-- .../v2/models/relationship_to_organizations.rb | 4 ++-- .../v2/models/relationship_to_permission.rb | 4 ++-- .../v2/models/relationship_to_permission_data.rb | 4 ++-- .../v2/models/relationship_to_permissions.rb | 4 ++-- lib/datadog_api_client/v2/models/relationship_to_role.rb | 4 ++-- .../v2/models/relationship_to_role_data.rb | 4 ++-- lib/datadog_api_client/v2/models/relationship_to_roles.rb | 4 ++-- lib/datadog_api_client/v2/models/relationship_to_user.rb | 4 ++-- .../v2/models/relationship_to_user_data.rb | 4 ++-- lib/datadog_api_client/v2/models/relationship_to_users.rb | 4 ++-- .../v2/models/response_meta_attributes.rb | 4 ++-- lib/datadog_api_client/v2/models/role.rb | 4 ++-- lib/datadog_api_client/v2/models/role_attributes.rb | 4 ++-- lib/datadog_api_client/v2/models/role_clone.rb | 4 ++-- lib/datadog_api_client/v2/models/role_clone_attributes.rb | 4 ++-- lib/datadog_api_client/v2/models/role_clone_request.rb | 4 ++-- lib/datadog_api_client/v2/models/role_create_attributes.rb | 4 ++-- lib/datadog_api_client/v2/models/role_create_data.rb | 4 ++-- lib/datadog_api_client/v2/models/role_create_request.rb | 4 ++-- lib/datadog_api_client/v2/models/role_create_response.rb | 4 ++-- .../v2/models/role_create_response_data.rb | 4 ++-- lib/datadog_api_client/v2/models/role_relationships.rb | 4 ++-- lib/datadog_api_client/v2/models/role_response.rb | 4 ++-- .../v2/models/role_response_relationships.rb | 4 ++-- lib/datadog_api_client/v2/models/role_update_attributes.rb | 4 ++-- lib/datadog_api_client/v2/models/role_update_data.rb | 4 ++-- lib/datadog_api_client/v2/models/role_update_request.rb | 4 ++-- lib/datadog_api_client/v2/models/role_update_response.rb | 4 ++-- .../v2/models/role_update_response_data.rb | 4 ++-- lib/datadog_api_client/v2/models/roles_response.rb | 4 ++-- lib/datadog_api_client/v2/models/security_filter.rb | 4 ++-- .../v2/models/security_filter_attributes.rb | 4 ++-- .../v2/models/security_filter_create_attributes.rb | 4 ++-- .../v2/models/security_filter_create_data.rb | 4 ++-- .../v2/models/security_filter_create_request.rb | 4 ++-- .../v2/models/security_filter_exclusion_filter.rb | 4 ++-- .../v2/models/security_filter_exclusion_filter_response.rb | 4 ++-- lib/datadog_api_client/v2/models/security_filter_meta.rb | 4 ++-- .../v2/models/security_filter_response.rb | 4 ++-- .../v2/models/security_filter_update_attributes.rb | 4 ++-- .../v2/models/security_filter_update_data.rb | 4 ++-- .../v2/models/security_filter_update_request.rb | 4 ++-- .../v2/models/security_filters_response.rb | 4 ++-- .../v2/models/security_monitoring_filter.rb | 4 ++-- .../v2/models/security_monitoring_list_rules_response.rb | 4 ++-- .../v2/models/security_monitoring_rule_case.rb | 4 ++-- .../v2/models/security_monitoring_rule_case_create.rb | 4 ++-- .../v2/models/security_monitoring_rule_create_payload.rb | 4 ++-- .../v2/models/security_monitoring_rule_new_value_options.rb | 4 ++-- .../v2/models/security_monitoring_rule_options.rb | 4 ++-- .../v2/models/security_monitoring_rule_query.rb | 4 ++-- .../v2/models/security_monitoring_rule_query_create.rb | 4 ++-- .../v2/models/security_monitoring_rule_response.rb | 4 ++-- .../v2/models/security_monitoring_rule_update_payload.rb | 4 ++-- .../v2/models/security_monitoring_signal.rb | 4 ++-- .../v2/models/security_monitoring_signal_attributes.rb | 4 ++-- .../v2/models/security_monitoring_signal_list_request.rb | 4 ++-- .../security_monitoring_signal_list_request_filter.rb | 4 ++-- .../models/security_monitoring_signal_list_request_page.rb | 4 ++-- .../v2/models/security_monitoring_signals_list_response.rb | 4 ++-- .../security_monitoring_signals_list_response_links.rb | 4 ++-- .../security_monitoring_signals_list_response_meta.rb | 4 ++-- .../security_monitoring_signals_list_response_meta_page.rb | 4 ++-- .../v2/models/service_account_create_attributes.rb | 4 ++-- .../v2/models/service_account_create_data.rb | 4 ++-- .../v2/models/service_account_create_request.rb | 4 ++-- lib/datadog_api_client/v2/models/user.rb | 4 ++-- lib/datadog_api_client/v2/models/user_attributes.rb | 6 +++--- lib/datadog_api_client/v2/models/user_create_attributes.rb | 4 ++-- lib/datadog_api_client/v2/models/user_create_data.rb | 4 ++-- lib/datadog_api_client/v2/models/user_create_request.rb | 4 ++-- lib/datadog_api_client/v2/models/user_invitation_data.rb | 4 ++-- .../v2/models/user_invitation_data_attributes.rb | 4 ++-- .../v2/models/user_invitation_relationships.rb | 4 ++-- .../v2/models/user_invitation_response.rb | 4 ++-- .../v2/models/user_invitation_response_data.rb | 4 ++-- .../v2/models/user_invitations_request.rb | 4 ++-- .../v2/models/user_invitations_response.rb | 4 ++-- lib/datadog_api_client/v2/models/user_relationships.rb | 4 ++-- lib/datadog_api_client/v2/models/user_response.rb | 4 ++-- .../v2/models/user_response_relationships.rb | 4 ++-- lib/datadog_api_client/v2/models/user_update_attributes.rb | 4 ++-- lib/datadog_api_client/v2/models/user_update_data.rb | 4 ++-- lib/datadog_api_client/v2/models/user_update_request.rb | 4 ++-- lib/datadog_api_client/v2/models/users_response.rb | 4 ++-- 783 files changed, 1609 insertions(+), 1606 deletions(-) diff --git a/.generator/src/generator/templates/api.j2 b/.generator/src/generator/templates/api.j2 index fd86dac1985..0d40f882e7e 100644 --- a/.generator/src/generator/templates/api.j2 +++ b/.generator/src/generator/templates/api.j2 @@ -162,7 +162,7 @@ module {{ config.moduleName }} {%- for name, parameter in operation|parameters if parameter.in == "header" and parameter.required %} header_params['{{ name }}'] = {% if parameter|collection_format %}@api_client.build_collection_param({{ name|attribute_name }}, :{{ parameter|collection_format }}){% else %}{ name|attribute_name }}{% endif %} {%- endfor %} - {%- for name, parameter in operation|parameters if parameter.in == "header" and parameter.required %} + {%- for name, parameter in operation|parameters if parameter.in == "header" and not parameter.required %} header_params['{{ name }}'] = {% if parameter|collection_format %}@api_client.build_collection_param(opts[:'{{ name|attribute_name }}'], :{{ parameter|collection_format }}){% else %}opts[:'{{ name|attribute_name }}']{% endif %} if !opts[:'{{ name|attribute_name }}'].nil? {%- endfor %} @@ -171,7 +171,7 @@ module {{ config.moduleName }} {%- for name, parameter in operation|parameters if parameter.in == "form" and parameter.required %} form_params['{{baseName}}'] = {% if parameter|collection_format %}@api_client.build_collection_param({{ name|attribute_name }}, :{{ parameter|collection_format }}){% else %}{ name|attribute_name }}{% endif %} {%- endfor %} - {%- for name, parameter in operation|parameters if parameter.in == "form" and parameter.required %} + {%- for name, parameter in operation|parameters if parameter.in == "form" and not parameter.required %} form_params['{{baseName}}'] = {% if parameter|collection_format %}@api_client.build_collection_param(opts[:'{{ name|attribute_name }}'], :{{ parameter|collection_format }}){% else %}opts[:'{{ name|attribute_name }}']{% endif %} if !opts[:'{{ name|attribute_name }}'].nil? {%- endfor %} diff --git a/.generator/src/generator/templates/model_generic.j2 b/.generator/src/generator/templates/model_generic.j2 index ca055229f5c..de7b98e11e0 100644 --- a/.generator/src/generator/templates/model_generic.j2 +++ b/.generator/src/generator/templates/model_generic.j2 @@ -1,5 +1,5 @@ class {{ name }} - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed {%- for attr, definition in model.get("properties", {}).items() %} @@ -39,7 +39,7 @@ def self.openapi_nullable Set.new([ {%- for attr, spec in model.properties.items() if spec.nullable %} - :'{{ attr|attribute_name }}'{% if not loop.last %},{% endif %} + :'{{ attr|attribute_name }}', {%- endfor %} ]) end @@ -139,7 +139,7 @@ end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/api/logs_api.rb b/lib/datadog_api_client/v1/api/logs_api.rb index cf343ccf988..7eb7076efe4 100644 --- a/lib/datadog_api_client/v1/api/logs_api.rb +++ b/lib/datadog_api_client/v1/api/logs_api.rb @@ -200,6 +200,7 @@ def submit_log_with_http_info(body, opts = {}) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/logplex-1', 'text/plain']) + header_params['Content-Encoding'] = opts[:'content_encoding'] if !opts[:'content_encoding'].nil? # form parameters form_params = opts[:form_params] || {} diff --git a/lib/datadog_api_client/v1/api/metrics_api.rb b/lib/datadog_api_client/v1/api/metrics_api.rb index 1923e4e3d9d..687f83a7740 100644 --- a/lib/datadog_api_client/v1/api/metrics_api.rb +++ b/lib/datadog_api_client/v1/api/metrics_api.rb @@ -405,6 +405,7 @@ def submit_metrics_with_http_info(body, opts = {}) header_params['Accept'] = @api_client.select_header_accept(['text/json', 'application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['text/json']) + header_params['Content-Encoding'] = opts[:'content_encoding'] if !opts[:'content_encoding'].nil? # form parameters form_params = opts[:form_params] || {} 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 4aed6250b23..20fa17b6156 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Alert graphs are timeseries graphs showing the current status of any monitor defined on your system. class AlertGraphWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -198,7 +198,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 76857e4bbda..c5997d42259 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Alert values are query values showing the current value of the metric in any monitor defined on your system. class AlertValueWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -204,7 +204,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9ae0bc3c4da..77364b0a22e 100644 --- a/lib/datadog_api_client/v1/models/api_error_response.rb +++ b/lib/datadog_api_client/v1/models/api_error_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Error response object. class APIErrorResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -130,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/api_key.rb b/lib/datadog_api_client/v1/models/api_key.rb index 8087ef9cbf6..8d3b04862bd 100644 --- a/lib/datadog_api_client/v1/models/api_key.rb +++ b/lib/datadog_api_client/v1/models/api_key.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Datadog API key. class ApiKey - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 545a7b83d65..11079e4437f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # List of API and application keys available for a given organization. class ApiKeyListResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4f41ec14e47..1446b6cb3a9 100644 --- a/lib/datadog_api_client/v1/models/api_key_response.rb +++ b/lib/datadog_api_client/v1/models/api_key_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An API key with its associated metadata. class ApiKeyResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 18793bfc9b6..c9b5878fd16 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Column properties. class ApmStatsQueryColumnType - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -158,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 70bc44141fa..27b870cf673 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The APM stats query for table and distributions widgets. class ApmStatsQueryDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -206,7 +206,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/application_key.rb b/lib/datadog_api_client/v1/models/application_key.rb index e5c5b6662bd..6146c16f783 100644 --- a/lib/datadog_api_client/v1/models/application_key.rb +++ b/lib/datadog_api_client/v1/models/application_key.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An application key with its associated metadata. class ApplicationKey - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e080a7faa39..3a3126dfb2c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An application key response. class ApplicationKeyListResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4b59ebd80cc..e47a9ee31d8 100644 --- a/lib/datadog_api_client/v1/models/application_key_response.rb +++ b/lib/datadog_api_client/v1/models/application_key_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An application key response. class ApplicationKeyResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7bd5d696daa..13aa5cb90ec 100644 --- a/lib/datadog_api_client/v1/models/authentication_validation_response.rb +++ b/lib/datadog_api_client/v1/models/authentication_validation_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Represent validation endpoint responses. class AuthenticationValidationResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/aws_account.rb b/lib/datadog_api_client/v1/models/aws_account.rb index 379857401bf..ee7f8a8d6ce 100644 --- a/lib/datadog_api_client/v1/models/aws_account.rb +++ b/lib/datadog_api_client/v1/models/aws_account.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Returns the AWS account associated with this integration. class AWSAccount - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -244,7 +244,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 681683bf0bc..f50d50dcd80 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # AWS account ID and Lambda ARN. class AWSAccountAndLambdaRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 c6f18967e66..11cc7b063d2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The Response returned by the AWS Create Account call. class AWSAccountCreateResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 c37e830dff2..1bd63c42bdc 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # List of AWS accounts to delete. class AWSAccountDeleteRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e8d6091bf42..0aff722d873 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # List of enabled AWS accounts. class AWSAccountListResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4cffd80ff7a..cb9176ad040 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Description of errors. class AWSLogsAsyncError - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 da7cb044d98..b96c59c4a7f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A list of all Datadog-AWS logs integrations available in your Datadog organization. class AWSLogsAsyncResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9561cc95422..e384e52a9df 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_lambda.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_lambda.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Description of the Lambdas. class AWSLogsLambda - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 012c29521e1..6520706cdd2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A list of all Datadog-AWS logs integrations available in your Datadog organization. class AWSLogsListResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -148,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 51a55131fb1..b9575515dc6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The list of current AWS services for which Datadog offers automatic log collection. class AWSLogsListServicesResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b19e3414d1f..b14f982be32 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A list of current AWS services for which Datadog offers automatic log collection. class AWSLogsServicesRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3479e90a229..63d330d3dd8 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A tag filter. class AWSTagFilter - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0576f6db39e..940fe7a32ca 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The objects used to set an AWS tag filter. class AWSTagFilterCreateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4f51908cb8c..a4e0f036409 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The objects used to delete an AWS tag filter entry. class AWSTagFilterDeleteRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5d5c34b6ec9..67fbd829ec7 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An array of tag filter rules by `namespace` and tag filter string. class AWSTagFilterListResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/azure_account.rb b/lib/datadog_api_client/v1/models/azure_account.rb index b00e8d3ef32..e0ca0d608d8 100644 --- a/lib/datadog_api_client/v1/models/azure_account.rb +++ b/lib/datadog_api_client/v1/models/azure_account.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Datadog-Azure integrations configured for your organization. class AzureAccount - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -197,7 +197,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7a7cbf38af1..109687f8098 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Cancel downtimes according to scope. class CancelDowntimesByScopeRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -130,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 54544120f62..3c3518c9aa2 100644 --- a/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb +++ b/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing array of IDs of canceled downtimes. class CanceledDowntimesIds - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 88183f4427f..0bb6854f8c5 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The Change graph shows you the change in a value over the time period chosen. class ChangeWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -201,7 +201,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7f83a6e015f..4efe4610572 100644 --- a/lib/datadog_api_client/v1/models/change_widget_request.rb +++ b/lib/datadog_api_client/v1/models/change_widget_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Updated change widget. class ChangeWidgetRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -298,7 +298,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 24462b6ed03..c03919a4911 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response of monitor IDs that can or can't be safely deleted. class CheckCanDeleteMonitorResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -138,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 975ef1d9653..479f64c020f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Wrapper object with the list of monitor IDs. class CheckCanDeleteMonitorResponseData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ca30431d08e..5b23091a581 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A service level objective response containing the requested object. class CheckCanDeleteSLOResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0527dbdfccf..d65413afd72 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An array of service level objective objects. class CheckCanDeleteSLOResponseData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b0e91146a73..ebc81c17e8c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Check status shows the current status or number of results for any check performed. class CheckStatusWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -232,7 +232,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/creator.rb b/lib/datadog_api_client/v1/models/creator.rb index c0cc4310bf1..a89174bd32c 100644 --- a/lib/datadog_api_client/v1/models/creator.rb +++ b/lib/datadog_api_client/v1/models/creator.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the creator of the shared element. class Creator - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -62,7 +62,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'name' + :'name', ]) end @@ -145,7 +145,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/dashboard.rb b/lib/datadog_api_client/v1/models/dashboard.rb index 63eb6949e0a..d5b9adf8943 100644 --- a/lib/datadog_api_client/v1/models/dashboard.rb +++ b/lib/datadog_api_client/v1/models/dashboard.rb @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # A dashboard is Datadog’s tool for visually tracking, analyzing, and displaying # key performance metrics, which enable you to monitor the health of your infrastructure. class Dashboard - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.openapi_nullable :'description', :'notify_list', :'template_variable_presets', - :'template_variables' + :'template_variables', ]) end @@ -306,7 +306,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 32b63f91906..23cac2961c6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Dashboard bulk action request data. class DashboardBulkActionData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f66cd1d56ac..d3a27107506 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Dashboard bulk delete request body. class DashboardBulkDeleteRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -130,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4d2dd16621a..5f3c775be31 100644 --- a/lib/datadog_api_client/v1/models/dashboard_delete_response.rb +++ b/lib/datadog_api_client/v1/models/dashboard_delete_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response from the delete dashboard call. class DashboardDeleteResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/dashboard_list.rb b/lib/datadog_api_client/v1/models/dashboard_list.rb index d011515aa2b..27eeedb5d59 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Your Datadog Dashboards. class DashboardList - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -198,7 +198,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d98a84ea7f1..7897f6f6d45 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Deleted dashboard details. class DashboardListDeleteResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e0fe6ca2ff4..aa0a17c6ad0 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Information on your dashboard lists. class DashboardListListResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4b92a96081b..962b24c35d3 100644 --- a/lib/datadog_api_client/v1/models/dashboard_restore_request.rb +++ b/lib/datadog_api_client/v1/models/dashboard_restore_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Dashboard restore request body. class DashboardRestoreRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -130,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/dashboard_summary.rb b/lib/datadog_api_client/v1/models/dashboard_summary.rb index 1c6f08dbe68..fdb97910424 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Dashboard summary response. class DashboardSummary - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9568b94bc5f..90f84f26d7b 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Dashboard definition. class DashboardSummaryDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -92,7 +92,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'description' + :'description', ]) end @@ -205,7 +205,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 a29cf3a47e3..2cf7702a12f 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Template variable. class DashboardTemplateVariable - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -69,7 +69,7 @@ def self.openapi_nullable Set.new([ :'available_values', :'default', - :'prefix' + :'prefix', ]) end @@ -163,7 +163,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d4c4949c60b..d743e294f72 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Template variables saved views. class DashboardTemplateVariablePreset - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 dfb054001d4..3033f12bdea 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Template variables saved views. class DashboardTemplateVariablePresetValue - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/deleted_monitor.rb b/lib/datadog_api_client/v1/models/deleted_monitor.rb index 6b9c1da8f67..8d98e513b5a 100644 --- a/lib/datadog_api_client/v1/models/deleted_monitor.rb +++ b/lib/datadog_api_client/v1/models/deleted_monitor.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response from the delete monitor call. class DeletedMonitor - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1fae4fec22e..229c5eb790a 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V1 # aggregated across one or several tags, such as hosts. # Unlike the heat map, a distribution graph’s x-axis is quantity rather than time. class DistributionWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -243,7 +243,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 352e42bac41..af4b612ae23 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_request.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Updated distribution widget. class DistributionWidgetRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -224,7 +224,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 807c75e7151..a488c9528c4 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # X Axis controls for the distribution widget. class DistributionWidgetXAxis - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -160,7 +160,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 edb1fe3a2b6..74b56e24fd0 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Y Axis controls for the distribution widget. class DistributionWidgetYAxis - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -170,7 +170,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/downtime.rb b/lib/datadog_api_client/v1/models/downtime.rb index caf7c20c36a..a12bc7a0837 100644 --- a/lib/datadog_api_client/v1/models/downtime.rb +++ b/lib/datadog_api_client/v1/models/downtime.rb @@ -22,7 +22,7 @@ module DatadogAPIClient::V1 # Downtime settings, which can be scheduled with start and end times, # prevent all alerting related to specified Datadog tags. class Downtime - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -153,7 +153,7 @@ def self.openapi_nullable :'monitor_id', :'parent_id', :'recurrence', - :'updater_id' + :'updater_id', ]) end @@ -310,7 +310,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/downtime_child.rb b/lib/datadog_api_client/v1/models/downtime_child.rb index 5c856b9a6fc..45d0f02db8b 100644 --- a/lib/datadog_api_client/v1/models/downtime_child.rb +++ b/lib/datadog_api_client/v1/models/downtime_child.rb @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # The downtime object definition of the active child for the original parent recurring downtime. This # field will only exist on recurring downtimes. class DowntimeChild - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.openapi_nullable :'monitor_id', :'parent_id', :'recurrence', - :'updater_id' + :'updater_id', ]) end @@ -296,7 +296,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/downtime_recurrence.rb b/lib/datadog_api_client/v1/models/downtime_recurrence.rb index 62185a6b929..b0915e5a7b3 100644 --- a/lib/datadog_api_client/v1/models/downtime_recurrence.rb +++ b/lib/datadog_api_client/v1/models/downtime_recurrence.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An object defining the recurrence of the downtime. class DowntimeRecurrence - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -88,7 +88,7 @@ def self.openapi_nullable Set.new([ :'until_date', :'until_occurrences', - :'week_days' + :'week_days', ]) end @@ -188,7 +188,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/event.rb b/lib/datadog_api_client/v1/models/event.rb index d01098996ea..29db0adac4a 100644 --- a/lib/datadog_api_client/v1/models/event.rb +++ b/lib/datadog_api_client/v1/models/event.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object representing an event. class Event - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -254,7 +254,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f42b4e97918..643c07cb718 100644 --- a/lib/datadog_api_client/v1/models/event_create_request.rb +++ b/lib/datadog_api_client/v1/models/event_create_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object representing an event. class EventCreateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -242,7 +242,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 cdf32a6ccd1..ffacada4d00 100644 --- a/lib/datadog_api_client/v1/models/event_create_response.rb +++ b/lib/datadog_api_client/v1/models/event_create_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing an event response. class EventCreateResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -262,7 +262,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b6b64b5fcd9..3c6f005c315 100644 --- a/lib/datadog_api_client/v1/models/event_list_response.rb +++ b/lib/datadog_api_client/v1/models/event_list_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An event list response. class EventListResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0fd6d0e2b64..ba0596da095 100644 --- a/lib/datadog_api_client/v1/models/event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/event_query_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The event query. class EventQueryDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/event_response.rb b/lib/datadog_api_client/v1/models/event_response.rb index fe7f9c37320..c33721927ec 100644 --- a/lib/datadog_api_client/v1/models/event_response.rb +++ b/lib/datadog_api_client/v1/models/event_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing an event response. class EventResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 30d669b3224..01db9dd5d15 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 @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # The event stream is a widget version of the stream of events # on the Event Stream view. Only available on FREE layout dashboards. class EventStreamWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -205,7 +205,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1416258c10a..6f2db2b0742 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The event timeline is a widget version of the timeline that appears at the top of the Event Stream view. Only available on FREE layout dashboards. class EventTimelineWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -194,7 +194,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 c99c408ee67..69ce08fbf93 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A formula and functions APM dependency stats query. class FormulaAndFunctionApmDependencyStatsQueryDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -242,7 +242,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 050ca00abb0..b1134198a46 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # APM resource stats query using formulas and functions. class FormulaAndFunctionApmResourceStatsQueryDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -236,7 +236,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1db99d672c3..9944f40a7c2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A formula and functions events query. class FormulaAndFunctionEventQueryDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -190,7 +190,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9646c7c3975..9fe102688ad 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Compute options. class FormulaAndFunctionEventQueryDefinitionCompute - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -148,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1beefc08930..60b9de203c1 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Search options. class FormulaAndFunctionEventQueryDefinitionSearch - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0c14a85655b..5fe0a622ca4 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # List of objects used to group by. class FormulaAndFunctionEventQueryGroupBy - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -148,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 edc65927c9e..44375b27aa3 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Options for sorting group by results. class FormulaAndFunctionEventQueryGroupBySort - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -150,7 +150,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ea458e3a590..0cdcd1c0933 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A formula and functions metrics query. class FormulaAndFunctionMetricQueryDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -166,7 +166,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4eb9860aa61..13e99e7bd95 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Process query using formulas and functions. class FormulaAndFunctionProcessQueryDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -220,7 +220,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 aba9b1b628d..f49eefda0a1 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Free text is a widget that allows you to add headings to your screenboard. Commonly used to state the overall purpose of the dashboard. Only available on FREE layout dashboards. class FreeTextWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -174,7 +174,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/funnel_query.rb b/lib/datadog_api_client/v1/models/funnel_query.rb index 0080ed44c2c..0656c7b9b40 100644 --- a/lib/datadog_api_client/v1/models/funnel_query.rb +++ b/lib/datadog_api_client/v1/models/funnel_query.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Updated funnel widget. class FunnelQuery - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -160,7 +160,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb index 35a907d4eb4..d586fa45eca 100644 --- a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb +++ b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The funnel step. class FunnelQueryStepsItem - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 557492660db..d591d0807aa 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The funnel visualization displays a funnel of user sessions that maps a sequence of view navigation and user interaction in your application. class FunnelWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -186,7 +186,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f28b4091234..12e93de9b6f 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_request.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Updated funnel widget. class FunnelWidgetRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/gcp_account.rb b/lib/datadog_api_client/v1/models/gcp_account.rb index c5b291e7332..9429ecaff2c 100644 --- a/lib/datadog_api_client/v1/models/gcp_account.rb +++ b/lib/datadog_api_client/v1/models/gcp_account.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Your Google Cloud Platform Account. class GCPAccount - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -248,7 +248,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 de724ead66e..015896f9d1e 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # This visualization displays a series of values by country on a world map. class GeomapWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -229,7 +229,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1e85124e132..f6780a393e7 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The style to apply to the widget. class GeomapWidgetDefinitionStyle - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f6da19283eb..4e9d9e36482 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The view of the world that the map should render. class GeomapWidgetDefinitionView - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 452611e5e15..d8165956355 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_request.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An updated geomap widget. class GeomapWidgetRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -188,7 +188,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/graph_snapshot.rb b/lib/datadog_api_client/v1/models/graph_snapshot.rb index 7b41cb09392..ff91b93e245 100644 --- a/lib/datadog_api_client/v1/models/graph_snapshot.rb +++ b/lib/datadog_api_client/v1/models/graph_snapshot.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object representing a graph snapshot. class GraphSnapshot - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1203b9bd778..44907e7eac9 100644 --- a/lib/datadog_api_client/v1/models/group_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/group_widget_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The groups widget allows you to keep similar graphs together on your timeboard. Each group has a custom header, can hold one to many graphs, and is collapsible. class GroupWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -212,7 +212,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 a7d28d05abf..27daefe0716 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The heat map visualization shows metrics aggregated across many tags, such as hosts. The more hosts that have a particular value, the darker that square is. class HeatMapWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -240,7 +240,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b8ee970c812..148cc5480a1 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Updated heat map widget. class HeatMapWidgetRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -214,7 +214,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/host.rb b/lib/datadog_api_client/v1/models/host.rb index d7020c85f1b..c9a0e7a7dc2 100644 --- a/lib/datadog_api_client/v1/models/host.rb +++ b/lib/datadog_api_client/v1/models/host.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object representing a host. class Host - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -260,7 +260,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d243ad9abed..9d579fc86ac 100644 --- a/lib/datadog_api_client/v1/models/host_list_response.rb +++ b/lib/datadog_api_client/v1/models/host_list_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response with Host information from Datadog. class HostListResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 eda11bcdf9b..a1d1ab4fad4 100644 --- a/lib/datadog_api_client/v1/models/host_map_request.rb +++ b/lib/datadog_api_client/v1/models/host_map_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Updated host map. class HostMapRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -204,7 +204,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2d46021e924..11fc5c75693 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The host map widget graphs any metric across your hosts using the same visualization available from the main Host Map page. class HostMapWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -260,7 +260,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 928aae201ca..9d9f51170ee 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # List of definitions. class HostMapWidgetDefinitionRequests - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e81042f2355..25ec931cce6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The style to apply to the widget. class HostMapWidgetDefinitionStyle - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/host_meta.rb b/lib/datadog_api_client/v1/models/host_meta.rb index b15f084b5ab..cc383e32ac4 100644 --- a/lib/datadog_api_client/v1/models/host_meta.rb +++ b/lib/datadog_api_client/v1/models/host_meta.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Metadata associated with your host. class HostMeta - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -274,7 +274,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0ff286d0061..5dda572f0eb 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Agent install method. class HostMetaInstallMethod - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/host_metrics.rb b/lib/datadog_api_client/v1/models/host_metrics.rb index 68a8dba2c8b..f951a8f01d7 100644 --- a/lib/datadog_api_client/v1/models/host_metrics.rb +++ b/lib/datadog_api_client/v1/models/host_metrics.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Host Metrics collected. class HostMetrics - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1e94c9fed35..8664d5db042 100644 --- a/lib/datadog_api_client/v1/models/host_mute_response.rb +++ b/lib/datadog_api_client/v1/models/host_mute_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response with the list of muted host for your organization. class HostMuteResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 83ff9871635..744025a8d74 100644 --- a/lib/datadog_api_client/v1/models/host_mute_settings.rb +++ b/lib/datadog_api_client/v1/models/host_mute_settings.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Combination of settings to mute a host. class HostMuteSettings - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/host_tags.rb b/lib/datadog_api_client/v1/models/host_tags.rb index b433bd3f524..4854b93340c 100644 --- a/lib/datadog_api_client/v1/models/host_tags.rb +++ b/lib/datadog_api_client/v1/models/host_tags.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Set of tags to associate with your host. class HostTags - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/host_totals.rb b/lib/datadog_api_client/v1/models/host_totals.rb index 5c5aac160b6..c6ce93cab78 100644 --- a/lib/datadog_api_client/v1/models/host_totals.rb +++ b/lib/datadog_api_client/v1/models/host_totals.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Total number of host currently monitored by Datadog. class HostTotals - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5c93469e482..192887b6aab 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The usage for one set of tags for one hour. class HourlyUsageAttributionBody - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -194,7 +194,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 6655b41ce15..23ea5f1294b 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The object containing document metadata. class HourlyUsageAttributionMetadata - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 6cc601509fe..daef00104b7 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The metadata for the current pagination. class HourlyUsageAttributionPagination - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 44b2dadcbe9..204815a10ad 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the hourly usage attribution by tag(s). class HourlyUsageAttributionResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9c19a5430ee..2f24ce86125 100644 --- a/lib/datadog_api_client/v1/models/http_log_error.rb +++ b/lib/datadog_api_client/v1/models/http_log_error.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Invalid query performed. class HTTPLogError - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) 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 1260776f189..2fba8576935 100644 --- a/lib/datadog_api_client/v1/models/http_log_item.rb +++ b/lib/datadog_api_client/v1/models/http_log_item.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Logs that are sent over HTTP. class HTTPLogItem - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -170,7 +170,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ba338a5ab68..ed8e8064155 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The iframe widget allows you to embed a portion of any other web page on your dashboard. Only available on FREE layout dashboards. class IFrameWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 851b1594561..c720aa40222 100644 --- a/lib/datadog_api_client/v1/models/idp_form_data.rb +++ b/lib/datadog_api_client/v1/models/idp_form_data.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the IdP configuration. class IdpFormData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/idp_response.rb b/lib/datadog_api_client/v1/models/idp_response.rb index 679ca6f2cec..229ad15c3b1 100644 --- a/lib/datadog_api_client/v1/models/idp_response.rb +++ b/lib/datadog_api_client/v1/models/idp_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The IdP response object. class IdpResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1aaa757c21c..093b8451b0b 100644 --- a/lib/datadog_api_client/v1/models/image_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/image_widget_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The image widget allows you to embed an image on your dashboard. An image can be a PNG, JPG, or animated GIF. Only available on FREE layout dashboards. class ImageWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -220,7 +220,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5aaeae35f6e..42cfe26c73d 100644 --- a/lib/datadog_api_client/v1/models/intake_payload_accepted.rb +++ b/lib/datadog_api_client/v1/models/intake_payload_accepted.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The payload accepted for intake. class IntakePayloadAccepted - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 94c0675860a..d13087936c2 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Available prefix information for the Agent endpoints. class IPPrefixesAgents - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -138,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e75beeb6488..0b6880e6286 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_api.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_api.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Available prefix information for the API endpoints. class IPPrefixesAPI - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -138,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 85c56fbf2ce..06d82bf6542 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Available prefix information for the APM endpoints. class IPPrefixesAPM - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -138,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1583eb0745b..dc05af8daee 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Available prefix information for the Logs endpoints. class IPPrefixesLogs - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -138,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0a7517edb32..0822684a62e 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_process.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_process.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Available prefix information for the Process endpoints. class IPPrefixesProcess - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -138,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0a12da81ba6..5b0c6bd828d 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Available prefix information for the Synthetics endpoints. class IPPrefixesSynthetics - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -158,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 60b0128a6aa..8c7bef5f071 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Available prefix information for the Webhook endpoints. class IPPrefixesWebhooks - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -138,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/ip_ranges.rb b/lib/datadog_api_client/v1/models/ip_ranges.rb index fb5e64880ed..57f0d4f2c86 100644 --- a/lib/datadog_api_client/v1/models/ip_ranges.rb +++ b/lib/datadog_api_client/v1/models/ip_ranges.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # IP ranges. class IPRanges - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -204,7 +204,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 fb23949981d..cc3f110b562 100644 --- a/lib/datadog_api_client/v1/models/list_stream_column.rb +++ b/lib/datadog_api_client/v1/models/list_stream_column.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Widget column. class ListStreamColumn - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 16529fff7f2..129b897ba61 100644 --- a/lib/datadog_api_client/v1/models/list_stream_query.rb +++ b/lib/datadog_api_client/v1/models/list_stream_query.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Updated list stream widget. class ListStreamQuery - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -156,7 +156,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 609c82c8506..d230be834f2 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 @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # The list stream visualization displays a table of recent events in your application that # match a search criteria using user-defined columns. class ListStreamWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -207,7 +207,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 28a23a9fd0d..970f79950d5 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Updated list stream widget. class ListStreamWidgetRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -158,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/log.rb b/lib/datadog_api_client/v1/models/log.rb index 990ec14a9e6..e848a6f2536 100644 --- a/lib/datadog_api_client/v1/models/log.rb +++ b/lib/datadog_api_client/v1/models/log.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing a log after being processed and stored by Datadog. class Log - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/log_content.rb b/lib/datadog_api_client/v1/models/log_content.rb index e7619cb2986..90050055724 100644 --- a/lib/datadog_api_client/v1/models/log_content.rb +++ b/lib/datadog_api_client/v1/models/log_content.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # JSON object containing all log attributes and their associated values. class LogContent - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -178,7 +178,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 77f75fe81c3..9d829811cf4 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The log query. class LogQueryDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -168,7 +168,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d9a09d7065d..fbbf3360487 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Defined items in the group. class LogQueryDefinitionGroupBy - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -148,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 8c5c22a803f..34b069279d3 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Define a sorting method. class LogQueryDefinitionGroupBySort - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -152,7 +152,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d7bc2b108d2..e725329839b 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The query being made on the logs. class LogQueryDefinitionSearch - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 a933449abd2..b2baef75c9d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The Log Stream displays a log flow matching the defined query. Only available on FREE layout dashboards. class LogStreamWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -254,7 +254,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b68fe79874c..c4a7eedc8c7 100644 --- a/lib/datadog_api_client/v1/models/logs_api_error.rb +++ b/lib/datadog_api_client/v1/models/logs_api_error.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Error returned by the Logs API class LogsAPIError - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 386723fb28a..386d884215a 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response returned by the Logs API when errors occur. class LogsAPIErrorResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0743cf46701..fe9af196514 100644 --- a/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb @@ -39,7 +39,7 @@ module DatadogAPIClient::V1 # - If you need to scale a unit of measure, # see [Scale Filter](https://docs.datadoghq.com/logs/log_configuration/parsing/?tab=filter#matcher-and-filter). class LogsArithmeticProcessor - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -213,7 +213,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 8c1d3d41e92..14295f1bd76 100644 --- a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V1 # Constraints on the tag/attribute name are explained in the [Tag Best Practice documentation](https://docs.datadoghq.com/logs/guide/log-parsing-best-practice). # Some additional constraints are applied as `:` or `,` are not allowed in the target tag/attribute name. class LogsAttributeRemapper - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -244,7 +244,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f8df1db1d1a..08c8e8621c8 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing logs usage data broken down by retention period. class LogsByRetention - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d489a2cf753..92c456ee70d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing a summary of indexed logs usage by retention period for a single month. class LogsByRetentionMonthlyUsage - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 263e737723d..82641f12f8f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Indexed logs usage by retention for a single organization. class LogsByRetentionOrgUsage - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b17d2fa5a87..2d660e18a3f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Indexed logs usage summary for each organization for each retention period with usage. class LogsByRetentionOrgs - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2a1d79cf30f..33690119df6 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor.rb @@ -31,7 +31,7 @@ module DatadogAPIClient::V1 # - The names of the categories must be unique. # - Once defined in the Category Processor, you can map categories to log status using the Log Status Remapper. class LogsCategoryProcessor - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -195,7 +195,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2ab5e6af1ea..a50182cec34 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the logs filter. class LogsCategoryProcessorCategory - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 a1f6e1703ca..cf7f244ca6c 100644 --- a/lib/datadog_api_client/v1/models/logs_date_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_date_remapper.rb @@ -37,7 +37,7 @@ module DatadogAPIClient::V1 # If multiple log date remapper processors can be applied to a given log, # only the first one (according to the pipelines order) is taken into account. class LogsDateRemapper - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -186,7 +186,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/logs_exclusion.rb b/lib/datadog_api_client/v1/models/logs_exclusion.rb index 3dc2c4d1f10..980c37cc973 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Represents the index exclusion filter object from configuration API. class LogsExclusion - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -148,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d2aeca8a013..18cea49a012 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Exclusion filter is defined by a query, a sampling rule, and a active/inactive toggle. class LogsExclusionFilter - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -140,7 +140,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/logs_filter.rb b/lib/datadog_api_client/v1/models/logs_filter.rb index 6877e389c86..2b27d0e6aff 100644 --- a/lib/datadog_api_client/v1/models/logs_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_filter.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Filter for logs. class LogsFilter - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ec93f000207..0a1daff4b3d 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 @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # The GeoIP parser takes an IP address attribute and extracts if available # the Continent, Country, Subdivision, and City information in the target attribute path. class LogsGeoIPParser - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -187,7 +187,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7646c5d96a3..8c5ba9c437d 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser.rb @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # Create custom grok rules to parse the full message or [a specific attribute of your raw event](https://docs.datadoghq.com/logs/log_configuration/parsing/#advanced-settings). # For more information, see the [parsing section](https://docs.datadoghq.com/logs/log_configuration/parsing). class LogsGrokParser - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -195,7 +195,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 69e3ae2b6be..fabb86841f7 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Set of rules for the grok parser. class LogsGrokParserRules - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -140,7 +140,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/logs_index.rb b/lib/datadog_api_client/v1/models/logs_index.rb index 8b276abe038..ad0a6e928d3 100644 --- a/lib/datadog_api_client/v1/models/logs_index.rb +++ b/lib/datadog_api_client/v1/models/logs_index.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing a Datadog Log index. class LogsIndex - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -188,7 +188,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0d55a8dd6cb..27c815f866f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object with all Index configurations for a given organization. class LogsIndexListResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9ead759d525..231d7634781 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object for updating a Datadog Log index. class LogsIndexUpdateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -178,7 +178,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 bd6d0fd350c..6c2eee3a120 100644 --- a/lib/datadog_api_client/v1/models/logs_indexes_order.rb +++ b/lib/datadog_api_client/v1/models/logs_indexes_order.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing the ordered list of log index names. class LogsIndexesOrder - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -132,7 +132,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 daee085d076..41a88897366 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object to send with the request to retrieve a list of logs from your Organization. class LogsListRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -183,7 +183,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 8724833dd9c..576ada46a81 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Timeframe to retrieve the log from. class LogsListRequestTime - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -153,7 +153,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 62d154f1ffd..a88ae1c4c1b 100644 --- a/lib/datadog_api_client/v1/models/logs_list_response.rb +++ b/lib/datadog_api_client/v1/models/logs_list_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response object with all logs matching the request and pagination information. class LogsListResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -147,7 +147,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4a7a22498b3..b145b295ae5 100644 --- a/lib/datadog_api_client/v1/models/logs_lookup_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_lookup_processor.rb @@ -24,7 +24,7 @@ module DatadogAPIClient::V1 # if the MAC address that just attempted to connect to the production # environment belongs to your list of stolen machines. class LogsLookupProcessor - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -213,7 +213,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 6300a4cf672..c7d324645a8 100644 --- a/lib/datadog_api_client/v1/models/logs_message_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_message_remapper.rb @@ -24,7 +24,7 @@ module DatadogAPIClient::V1 # **Note:** If multiple log message remapper processors can be applied to a given log, # only the first one (according to the pipeline order) is taken into account. class LogsMessageRemapper - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -175,7 +175,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/logs_pipeline.rb b/lib/datadog_api_client/v1/models/logs_pipeline.rb index 360e8b79372..8c44ccbc157 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline.rb @@ -23,7 +23,7 @@ module DatadogAPIClient::V1 # **Note**: These endpoints are only available for admin users. # Make sure to use an application key created by an admin. class LogsPipeline - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -194,7 +194,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2e5a43338b5..ffe9875efa4 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb @@ -23,7 +23,7 @@ module DatadogAPIClient::V1 # # A pipeline can contain Nested Pipelines and Processors whereas a Nested Pipeline can only contain Processors. class LogsPipelineProcessor - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -178,7 +178,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0cb19c04a72..1cdbe895e23 100644 --- a/lib/datadog_api_client/v1/models/logs_pipelines_order.rb +++ b/lib/datadog_api_client/v1/models/logs_pipelines_order.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing the ordered list of pipeline IDs. class LogsPipelinesOrder - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -131,7 +131,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3a61773f9ab..477f0d6b428 100644 --- a/lib/datadog_api_client/v1/models/logs_query_compute.rb +++ b/lib/datadog_api_client/v1/models/logs_query_compute.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Define computation for a log query. class LogsQueryCompute - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -148,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1c06901b879..201bfaa2b06 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing indexed logs usage aggregated across organizations and months for a retention period. class LogsRetentionAggSumUsage - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3eb3945444f..294d1352261 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing indexed logs usage grouped by retention period and summed. class LogsRetentionSumUsage - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9e8ae785c62..05a51bb526f 100644 --- a/lib/datadog_api_client/v1/models/logs_service_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_service_remapper.rb @@ -22,7 +22,7 @@ module DatadogAPIClient::V1 # **Note:** If multiple service remapper processors can be applied to a given log, # only the first one (according to the pipeline order) is taken into account. class LogsServiceRemapper - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -171,7 +171,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 a37bac7dbd2..366adbe9756 100644 --- a/lib/datadog_api_client/v1/models/logs_status_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_status_remapper.rb @@ -36,7 +36,7 @@ module DatadogAPIClient::V1 # **Note:** If multiple log status remapper processors can be applied to a given log, # only the first one (according to the pipelines order) is taken into account. class LogsStatusRemapper - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -185,7 +185,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 137ce4141a0..5c3b0715db1 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 @@ -31,7 +31,7 @@ module DatadogAPIClient::V1 # - If the target attribute already exists, it is overwritten by the result of the template. # - Results of the template cannot exceed 256 characters. class LogsStringBuilderProcessor - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -205,7 +205,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 dbed47bc166..a1860dfde0b 100644 --- a/lib/datadog_api_client/v1/models/logs_trace_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_trace_remapper.rb @@ -24,7 +24,7 @@ module DatadogAPIClient::V1 # # 2. Use the Trace remapper processor to define a log attribute as its associated trace ID. class LogsTraceRemapper - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -171,7 +171,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 73876430cd0..4873975dbb9 100644 --- a/lib/datadog_api_client/v1/models/logs_url_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_url_parser.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # This processor extracts query parameters and other important parameters from a URL. class LogsURLParser - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -77,7 +77,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'normalize_ending_slashes' + :'normalize_ending_slashes', ]) end @@ -199,7 +199,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 643aa0f7754..02036cf4739 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 @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # The User-Agent parser takes a User-Agent attribute and extracts the OS, browser, device, and other user data. # It recognizes major bots like the Google Bot, Yahoo Slurp, and Bing. class LogsUserAgentParser - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -199,7 +199,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/metric_metadata.rb b/lib/datadog_api_client/v1/models/metric_metadata.rb index 82eda4fb9f6..1fba84e14c9 100644 --- a/lib/datadog_api_client/v1/models/metric_metadata.rb +++ b/lib/datadog_api_client/v1/models/metric_metadata.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object with all metric related metadata. class MetricMetadata - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -184,7 +184,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 cacc59560c2..aff5a188606 100644 --- a/lib/datadog_api_client/v1/models/metric_search_response.rb +++ b/lib/datadog_api_client/v1/models/metric_search_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing the list of metrics matching the search query. class MetricSearchResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 df6963d1c37..e654a166c76 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Search result. class MetricSearchResponseResults - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 75f3bcd8b6c..7d6827d3da6 100644 --- a/lib/datadog_api_client/v1/models/metrics_list_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_list_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object listing all metric names stored by Datadog since a given time. class MetricsListResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/metrics_payload.rb b/lib/datadog_api_client/v1/models/metrics_payload.rb index 9558f754ed0..55ed2d3f799 100644 --- a/lib/datadog_api_client/v1/models/metrics_payload.rb +++ b/lib/datadog_api_client/v1/models/metrics_payload.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The metrics' payload. class MetricsPayload - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -130,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 8a0cbea9db3..2ba490e82ca 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_metadata.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing all metric names returned and their associated metadata. class MetricsQueryMetadata - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -114,7 +114,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'aggr' + :'aggr', ]) end @@ -253,7 +253,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5e15f3c1878..be65e1faeb7 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response Object that includes your query and the list of metrics retrieved. class MetricsQueryResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -208,7 +208,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 969cb985a05..20907e6e4dc 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_unit.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_unit.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing the metric unit family, scale factor, name, and short name. class MetricsQueryUnit - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -164,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/monitor.rb b/lib/datadog_api_client/v1/models/monitor.rb index 47ce743d1d7..12baf4c13b5 100644 --- a/lib/datadog_api_client/v1/models/monitor.rb +++ b/lib/datadog_api_client/v1/models/monitor.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing a monitor. class Monitor - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -129,7 +129,7 @@ def self.openapi_nullable Set.new([ :'deleted', :'priority', - :'restricted_roles' + :'restricted_roles', ]) end @@ -289,7 +289,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 34fe5e6fa9a..786458e255e 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A formula and functions events query. class MonitorFormulaAndFunctionEventQueryDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -190,7 +190,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5c1bf866a24..1451ccef385 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Compute options. class MonitorFormulaAndFunctionEventQueryDefinitionCompute - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -148,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f96be5f77ee..16d86abbd6f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Search options. class MonitorFormulaAndFunctionEventQueryDefinitionSearch - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 81b08244a45..520f358f19e 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # List of objects used to group by. class MonitorFormulaAndFunctionEventQueryGroupBy - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -148,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1eab37bb172..f45521d0b93 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Options for sorting group by results. class MonitorFormulaAndFunctionEventQueryGroupBySort - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -150,7 +150,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 979a196ce14..054c8a77574 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The response of a monitor group search. class MonitorGroupSearchResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f6f340cd68f..86f4993f1f3 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The counts of monitor groups per different criteria. class MonitorGroupSearchResponseCounts - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -138,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb index 7a46bb93465..bc4b4729231 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A facet item. class MonitorGroupSearchResponseCountsStatusItem - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb index f3b11347c0f..89ee34a6ea0 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A facet item. class MonitorGroupSearchResponseCountsTypeItem - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 bf4dfbeba32..f2a50d731a0 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A single monitor group search result. class MonitorGroupSearchResult - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -82,7 +82,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'last_triggered_ts' + :'last_triggered_ts', ]) end @@ -187,7 +187,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/monitor_options.rb b/lib/datadog_api_client/v1/models/monitor_options.rb index a389c3fe802..e98c7802acb 100644 --- a/lib/datadog_api_client/v1/models/monitor_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_options.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # List of options associated with your monitor. class MonitorOptions - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -206,7 +206,7 @@ def self.openapi_nullable :'renotify_occurrences', :'renotify_statuses', :'synthetics_check_id', - :'timeout_h' + :'timeout_h', ]) end @@ -423,7 +423,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 cee6926a6b3..5b043c9a7a4 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Type of aggregation performed in the monitor query. class MonitorOptionsAggregation - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 75fe12203ee..ae58c3da1a8 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The response form a monitor search. class MonitorSearchResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 81a66851b29..931f101f593 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The counts of monitors per different criteria. class MonitorSearchResponseCounts - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -162,7 +162,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb index 2e90bab6574..44c693f6757 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A facet item. class MonitorSearchResponseCountsMutedItem - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb index 451d8c49dcc..c93a7e35126 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A facet item. class MonitorSearchResponseCountsStatusItem - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb index 00487db78c7..39c122e920f 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A facet item. class MonitorSearchResponseCountsTagItem - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb index b931a68e915..5b218767601 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A facet item. class MonitorSearchResponseCountsTypeItem - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 344fe6d2568..49560c03ffe 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Metadata about the response. class MonitorSearchResponseMetadata - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5857399c0eb..c55229a8325 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_result.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_result.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Holds search results. class MonitorSearchResult - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -115,7 +115,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'last_triggered_ts' + :'last_triggered_ts', ]) end @@ -256,7 +256,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e12b40e7bec..6365b8b5086 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A notification triggered by the monitor. class MonitorSearchResultNotification - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/monitor_state.rb b/lib/datadog_api_client/v1/models/monitor_state.rb index c3beeff320c..02345d3ca79 100644 --- a/lib/datadog_api_client/v1/models/monitor_state.rb +++ b/lib/datadog_api_client/v1/models/monitor_state.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Wrapper object with the different monitor states. class MonitorState - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -125,7 +125,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3a9beeb25e0..aa7ce7b9745 100644 --- a/lib/datadog_api_client/v1/models/monitor_state_group.rb +++ b/lib/datadog_api_client/v1/models/monitor_state_group.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Monitor state for a single group. class MonitorStateGroup - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -174,7 +174,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 56de0b4ac93..3319731eeeb 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The monitor summary widget displays a summary view of all your Datadog monitors, or a subset based on a query. Only available on FREE layout dashboards. class MonitorSummaryWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -254,7 +254,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 19641bac081..522f3a540f8 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Alerting time window options. class MonitorThresholdWindowOptions - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -58,7 +58,7 @@ def self.openapi_types def self.openapi_nullable Set.new([ :'recovery_window', - :'trigger_window' + :'trigger_window', ]) end @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/monitor_thresholds.rb b/lib/datadog_api_client/v1/models/monitor_thresholds.rb index d8d70776455..75a41165368 100644 --- a/lib/datadog_api_client/v1/models/monitor_thresholds.rb +++ b/lib/datadog_api_client/v1/models/monitor_thresholds.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # List of the different monitor threshold available. class MonitorThresholds - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -81,7 +81,7 @@ def self.openapi_nullable :'ok', :'unknown', :'warning', - :'warning_recovery' + :'warning_recovery', ]) end @@ -179,7 +179,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1ddc57c4efc..f787292f29f 100644 --- a/lib/datadog_api_client/v1/models/monitor_update_request.rb +++ b/lib/datadog_api_client/v1/models/monitor_update_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing a monitor update request. class MonitorUpdateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -127,7 +127,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'deleted' + :'deleted', ]) end @@ -279,7 +279,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9862c584616..daa6c5b741e 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Usage Summary by tag for a given organization. class MonthlyUsageAttributionBody - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -184,7 +184,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f06e3da70c4..4b1eb4f6915 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The object containing document metadata. class MonthlyUsageAttributionMetadata - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 393430939ad..07a1519f4dc 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The metadata for the current pagination. class MonthlyUsageAttributionPagination - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e6b61bfbbfe..19e571401d8 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the monthly Usage Summary by tag(s). class MonthlyUsageAttributionResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3c5a7c8ba60..241495935bd 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Fields in Usage Summary by tag(s). class MonthlyUsageAttributionValues - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -394,7 +394,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 003c646a72b..76c76d99af7 100644 --- a/lib/datadog_api_client/v1/models/note_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/note_widget_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The notes and links widget is similar to free text widget, but allows for more formatting options. class NoteWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -226,7 +226,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 fdff7b18813..e6ca1ecc70c 100644 --- a/lib/datadog_api_client/v1/models/notebook_absolute_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_absolute_time.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Absolute timeframe. class NotebookAbsoluteTime - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -152,7 +152,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/notebook_author.rb b/lib/datadog_api_client/v1/models/notebook_author.rb index 8734f2970f1..2d08d012bb5 100644 --- a/lib/datadog_api_client/v1/models/notebook_author.rb +++ b/lib/datadog_api_client/v1/models/notebook_author.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Attributes of user object returned by the API. class NotebookAuthor - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -93,7 +93,7 @@ def self.openapi_types def self.openapi_nullable Set.new([ :'name', - :'title' + :'title', ]) end @@ -206,7 +206,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) 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 87d1d274686..c97b58e6a82 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The description of a notebook cell create request. class NotebookCellCreateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -145,7 +145,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 22b31cf1694..d81cf780404 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The description of a notebook cell response. class NotebookCellResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -159,7 +159,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 8bdef7ac75f..b50c21b26e2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The description of a notebook cell update request. class NotebookCellUpdateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -159,7 +159,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 981c2b54ab6..c16a3635b49 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_data.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The data for a notebook create request. class NotebookCreateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 068997165dc..a1a63cc6d00 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The data attributes of a notebook. class NotebookCreateDataAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -180,7 +180,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b01f71388db..7cd5defa33c 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The description of a notebook create request. class NotebookCreateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f9e3e7883bc..45a98c7ce88 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The attributes of a notebook `distribution` cell. class NotebookDistributionCellAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -69,7 +69,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'time' + :'time', ]) end @@ -161,7 +161,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9fef0eb3aab..fc496f3e757 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The attributes of a notebook `heatmap` cell. class NotebookHeatMapCellAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -67,7 +67,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'time' + :'time', ]) end @@ -159,7 +159,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5e0eaf99f7e..ee4c13deb68 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The attributes of a notebook `log_stream` cell. class NotebookLogStreamCellAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -62,7 +62,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'time' + :'time', ]) end @@ -149,7 +149,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 539984c686e..c480a137e5c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The attributes of a notebook `markdown` cell. class NotebookMarkdownCellAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2dfd5c98a83..3e546388935 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # 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. class NotebookMarkdownCellDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/notebook_metadata.rb b/lib/datadog_api_client/v1/models/notebook_metadata.rb index 1d5b0075907..f415648a60d 100644 --- a/lib/datadog_api_client/v1/models/notebook_metadata.rb +++ b/lib/datadog_api_client/v1/models/notebook_metadata.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Metadata associated with the notebook. class NotebookMetadata - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -62,7 +62,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'type' + :'type', ]) end @@ -149,7 +149,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 373947f0d52..ad9f2992ec4 100644 --- a/lib/datadog_api_client/v1/models/notebook_relative_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_relative_time.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Relative timeframe. class NotebookRelativeTime - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/notebook_response.rb b/lib/datadog_api_client/v1/models/notebook_response.rb index 683ee836f1f..f9fd38d1fd3 100644 --- a/lib/datadog_api_client/v1/models/notebook_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The description of a notebook response. class NotebookResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0719ca03822..af6daaee7ad 100644 --- a/lib/datadog_api_client/v1/models/notebook_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_response_data.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The data for a notebook. class NotebookResponseData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -158,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ffcdf519422..29a0fd09d51 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The attributes of a notebook. class NotebookResponseDataAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -210,7 +210,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 309a3b1ee25..c51f57faaf1 100644 --- a/lib/datadog_api_client/v1/models/notebook_split_by.rb +++ b/lib/datadog_api_client/v1/models/notebook_split_by.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing how to split the graph to display multiple visualizations per request. class NotebookSplitBy - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 442576f15c9..2e422012481 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The attributes of a notebook `timeseries` cell. class NotebookTimeseriesCellAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -67,7 +67,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'time' + :'time', ]) end @@ -159,7 +159,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 df22204134a..9fc6229dea6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The attributes of a notebook `toplist` cell. class NotebookToplistCellAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -67,7 +67,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'time' + :'time', ]) end @@ -159,7 +159,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 adda6ed53f8..b1a86d78a2c 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_data.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The data for a notebook update request. class NotebookUpdateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e6fe196b23b..06f5e58d3a2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The data attributes of a notebook. class NotebookUpdateDataAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -180,7 +180,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 177eb51cc89..6c75dd943c0 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The description of a notebook update request. class NotebookUpdateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/notebooks_response.rb b/lib/datadog_api_client/v1/models/notebooks_response.rb index c00d27768e4..963967d0a4a 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Notebooks get all response. class NotebooksResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 18fcf1c643f..40efac44ba2 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_data.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The data for a notebook in get all response. class NotebooksResponseData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -158,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 fcf4838468d..c7f4585961f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The attributes of a notebook in get all response. class NotebooksResponseDataAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -202,7 +202,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d8de758f3bb..aabd46b2abb 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_meta.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_meta.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Searches metadata returned by the API. class NotebooksResponseMeta - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0f8270c394d..ba1cf1592f9 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_page.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_page.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Pagination metadata returned by the API. class NotebooksResponsePage - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/organization.rb b/lib/datadog_api_client/v1/models/organization.rb index 9a5f7a02f6f..56e2bd9e4f3 100644 --- a/lib/datadog_api_client/v1/models/organization.rb +++ b/lib/datadog_api_client/v1/models/organization.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Create, edit, and manage organizations. class Organization - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -184,7 +184,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/organization_billing.rb b/lib/datadog_api_client/v1/models/organization_billing.rb index 125261c1438..22b4e132e95 100644 --- a/lib/datadog_api_client/v1/models/organization_billing.rb +++ b/lib/datadog_api_client/v1/models/organization_billing.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A JSON array of billing type. class OrganizationBilling - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 a931e7f58c3..3816a48fdba 100644 --- a/lib/datadog_api_client/v1/models/organization_create_body.rb +++ b/lib/datadog_api_client/v1/models/organization_create_body.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing an organization to create. class OrganizationCreateBody - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -148,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 531bc663ec5..4b5cbcb0a48 100644 --- a/lib/datadog_api_client/v1/models/organization_create_response.rb +++ b/lib/datadog_api_client/v1/models/organization_create_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response object for an organization creation. class OrganizationCreateResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 00f91ac44c1..a7e3d7126ee 100644 --- a/lib/datadog_api_client/v1/models/organization_list_response.rb +++ b/lib/datadog_api_client/v1/models/organization_list_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response with the list of organizations. class OrganizationListResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/organization_response.rb b/lib/datadog_api_client/v1/models/organization_response.rb index 2f9691d4210..6d80dcfd847 100644 --- a/lib/datadog_api_client/v1/models/organization_response.rb +++ b/lib/datadog_api_client/v1/models/organization_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response with an organization. class OrganizationResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/organization_settings.rb b/lib/datadog_api_client/v1/models/organization_settings.rb index 95a80178031..11d0e344600 100644 --- a/lib/datadog_api_client/v1/models/organization_settings.rb +++ b/lib/datadog_api_client/v1/models/organization_settings.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A JSON array of settings. class OrganizationSettings - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -217,7 +217,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e1b45a942ab..6fa95f2bfe6 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml.rb @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # Set the boolean property enabled to enable or disable single sign on with SAML. # See the SAML documentation for more information about all SAML settings. class OrganizationSettingsSaml - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -125,7 +125,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7a076645b17..17a823d0f94 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Has two properties, `enabled` (boolean) and `domains`, which is a list of domains without the @ symbol. class OrganizationSettingsSamlAutocreateUsersDomains - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b04659abfd8..c20a01a4d0f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Has one property enabled (boolean). class OrganizationSettingsSamlIdpInitiatedLogin - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -125,7 +125,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2140eed01f6..8fb4e93dc47 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Has one property enabled (boolean). class OrganizationSettingsSamlStrictMode - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -125,7 +125,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/organization_subscription.rb b/lib/datadog_api_client/v1/models/organization_subscription.rb index ac80d455e72..f22ddf01291 100644 --- a/lib/datadog_api_client/v1/models/organization_subscription.rb +++ b/lib/datadog_api_client/v1/models/organization_subscription.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Subscription definition. class OrganizationSubscription - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 03bf82de6c0..21936bba1a8 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The PagerDuty service that is available for integration with Datadog. class PagerDutyService - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5d0f2e65b5d..6105bb43fa8 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # PagerDuty service object key. class PagerDutyServiceKey - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 bde237e7204..1428410881e 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # PagerDuty service object name. class PagerDutyServiceName - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/pagination.rb b/lib/datadog_api_client/v1/models/pagination.rb index b86038f4622..ff021617cbd 100644 --- a/lib/datadog_api_client/v1/models/pagination.rb +++ b/lib/datadog_api_client/v1/models/pagination.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Pagination object. class Pagination - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3bd170287d7..d95781ac3f7 100644 --- a/lib/datadog_api_client/v1/models/process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/process_query_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The process query to use in the widget. class ProcessQueryDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -160,7 +160,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 76d90cfbc0e..0017ae9e5af 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Query values display the current value of a given metric, APM, or log query. class QueryValueWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -238,7 +238,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3c454a97e62..eb39fc8b254 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Updated query value widget. class QueryValueWidgetRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -270,7 +270,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0440c6e4086..603a87c2717 100644 --- a/lib/datadog_api_client/v1/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v1/models/response_meta_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing meta attributes of response. class ResponseMetaAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 bed42b089bc..e735a6c8960 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_request.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Updated scatter plot. class ScatterPlotRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -214,7 +214,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9aff5a8b99c..6dfaf17b90b 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The scatter plot visualization allows you to graph a chosen scope over two different metrics with their respective aggregation. class ScatterPlotWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -228,7 +228,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 bdb548a3224..668babdbc79 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Widget definition. class ScatterPlotWidgetDefinitionRequests - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7044d54a1f2..6a0b5269d3a 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_table_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Scatterplot request containing formulas and functions. class ScatterplotTableRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -148,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e157998c59b..3658dca1a66 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Formula to be used in a Scatterplot widget query. class ScatterplotWidgetFormula - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -152,7 +152,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/series.rb b/lib/datadog_api_client/v1/models/series.rb index 994d2b5b9ef..6febc9bd8bb 100644 --- a/lib/datadog_api_client/v1/models/series.rb +++ b/lib/datadog_api_client/v1/models/series.rb @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # A metric to submit to Datadog. # See [Datadog metrics](https://docs.datadoghq.com/developers/metrics/#custom-metrics-properties). class Series - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -78,7 +78,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'interval' + :'interval', ]) end @@ -190,7 +190,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/service_check.rb b/lib/datadog_api_client/v1/models/service_check.rb index 1c5fdaaf6dd..2a88a452103 100644 --- a/lib/datadog_api_client/v1/models/service_check.rb +++ b/lib/datadog_api_client/v1/models/service_check.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An object containing service check and status. class ServiceCheck - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -192,7 +192,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5a5efd571f1..17c82340333 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective.rb @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # A service level objective object includes a service level indicator, thresholds # for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). class ServiceLevelObjective - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -137,7 +137,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'description' + :'description', ]) end @@ -292,7 +292,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2adb296dcae..d7b80f196a4 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 @@ -21,7 +21,7 @@ module DatadogAPIClient::V1 # to be used because this will sum up all request counts instead of averaging them, or taking the max or # min of all of those requests. class ServiceLevelObjectiveQuery - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 745de47b6ed..f057307696e 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 @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # A service level objective object includes a service level indicator, thresholds # for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). class ServiceLevelObjectiveRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -101,7 +101,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'description' + :'description', ]) end @@ -229,7 +229,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e1c489153b3..3811d6d083c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # This widget displays a map of a service to all of the services that call it, and all of the services that it calls. class ServiceMapWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -202,7 +202,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 724e3446383..cb5deb179a9 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The service summary displays the graphs of a chosen service in your screenboard. Only available on FREE layout dashboards. class ServiceSummaryWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -292,7 +292,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 8325d0aab98..cd6b0a99203 100644 --- a/lib/datadog_api_client/v1/models/slack_integration_channel.rb +++ b/lib/datadog_api_client/v1/models/slack_integration_channel.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The Slack channel configuration. class SlackIntegrationChannel - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 22fb05646f6..782acd8a3df 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Configuration options for what is shown in an alert event message. class SlackIntegrationChannelDisplay - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -162,7 +162,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9e8fe985841..e915529748c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the error. class SLOBulkDeleteError - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -158,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 56132cdb1dd..781352e883e 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 @@ -24,7 +24,7 @@ module DatadogAPIClient::V1 # it may be partially successful. In such cases, the "data" and "error" # fields in this response indicate which deletions succeeded and failed. class SLOBulkDeleteResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -141,7 +141,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 909c8064bb1..f753eb019a7 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An array of service level objective objects. class SLOBulkDeleteResponseData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -141,7 +141,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/slo_correction.rb b/lib/datadog_api_client/v1/models/slo_correction.rb index 583a743ef7c..2e4fc038dae 100644 --- a/lib/datadog_api_client/v1/models/slo_correction.rb +++ b/lib/datadog_api_client/v1/models/slo_correction.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The response object of a list of SLO corrections. class SLOCorrection - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 90b64fff772..6a23d854953 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The data object associated with the SLO correction to be created. class SLOCorrectionCreateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -140,7 +140,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7a220ab726c..be80b560bb5 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An object that defines a correction to be applied to an SLO. class SLOCorrectionCreateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4f27d9e7f92..6942afb63ba 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The attribute object associated with the SLO correction to be created. class SLOCorrectionCreateRequestAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -207,7 +207,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 117b8192935..0733ce11726 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A list of SLO correction objects. class SLOCorrectionListResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0c482e4f4d6..b8429b41fc2 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_response.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The response object of an SLO correction. class SLOCorrectionResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 fa7d1bfa30d..1b7646c1166 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The attribute object associated with the SLO correction. class SLOCorrectionResponseAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -110,7 +110,7 @@ def self.openapi_nullable Set.new([ :'duration', :'modifier', - :'rrule' + :'rrule', ]) end @@ -238,7 +238,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 894548db287..527045e6470 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Modifier of the object. class SLOCorrectionResponseAttributesModifier - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 8bcf23990e2..8e4dbd17967 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The data object associated with the SLO correction to be updated. class SLOCorrectionUpdateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 172e694c8fe..9763d863d3d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An object that defines a correction to be applied to an SLO. class SLOCorrectionUpdateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 03a05b960c2..7a6e0df6b13 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The attribute object associated with the SLO correction to be updated. class SLOCorrectionUpdateRequestAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -185,7 +185,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9a535c0be39..7d4bfbf21c5 100644 --- a/lib/datadog_api_client/v1/models/slo_delete_response.rb +++ b/lib/datadog_api_client/v1/models/slo_delete_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A response list of all service level objective deleted. class SLODeleteResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5afc47e84c0..aa9c0dbb610 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V1 # # This is not included in responses for `monitor` based SLOs. class SLOHistoryMetrics - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -228,7 +228,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7ad8222fe63..f7741290300 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 @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # A representation of `metric` based SLO time series for the provided queries. # This is the same response type from `batch_query` endpoint. class SLOHistoryMetricsSeries - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -169,7 +169,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f3d70c5571c..e000c413f71 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Query metadata. class SLOHistoryMetricsSeriesMetadata - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -79,7 +79,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'unit' + :'unit', ]) end @@ -179,7 +179,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ae885e9c449..23f13ae590d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An Object of metric units. class SLOHistoryMetricsSeriesMetadataUnit - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -78,7 +78,7 @@ def self.openapi_types def self.openapi_nullable Set.new([ :'plural', - :'short_name' + :'short_name', ]) end @@ -176,7 +176,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5f0238b03ff..e3018c43875 100644 --- a/lib/datadog_api_client/v1/models/slo_history_monitor.rb +++ b/lib/datadog_api_client/v1/models/slo_history_monitor.rb @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI value. # This can also represent the SLI value for a specific monitor in multi-monitor SLOs, or a group in grouped SLOs. class SLOHistoryMonitor - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -240,7 +240,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 60df10a5726..e95b7934af4 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A service level objective history response. class SLOHistoryResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7cc8483051e..116ea1e939d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An array of service level objective objects. class SLOHistoryResponseData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -231,7 +231,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0354825d49b..ea616e1b3e2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A list of errors while querying the history data for the service level objective. class SLOHistoryResponseError - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 715c629c613..1dc153bf976 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An object describing the error with error type and error message. class SLOHistoryResponseErrorWithType - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 063d52da17a..b6827765ad5 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 @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI value. # This can also represent the SLI value for a specific monitor in multi-monitor SLOs, or a group in grouped SLOs. class SLOHistorySLIData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -240,7 +240,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3518308c3ce..4dce58edd50 100644 --- a/lib/datadog_api_client/v1/models/slo_list_response.rb +++ b/lib/datadog_api_client/v1/models/slo_list_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A response with one or more service level objective. class SLOListResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -149,7 +149,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 c2b9b23150e..8573ebd2bc1 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The metadata object containing additional information about the list of SLOs. class SLOListResponseMetadata - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b7e938ab8c6..f6145c36e70 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The object containing information about the pages of the list of SLOs. class SLOListResponseMetadataPage - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/slo_response.rb b/lib/datadog_api_client/v1/models/slo_response.rb index 2088a3747bd..062ca0eb681 100644 --- a/lib/datadog_api_client/v1/models/slo_response.rb +++ b/lib/datadog_api_client/v1/models/slo_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A service level objective response containing a single service level objective. class SLOResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -138,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 948d1b6104a..e451bb10556 100644 --- a/lib/datadog_api_client/v1/models/slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_response_data.rb @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # A service level objective object includes a service level indicator, thresholds # for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). class SLOResponseData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -142,7 +142,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'description' + :'description', ]) end @@ -292,7 +292,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/slo_threshold.rb b/lib/datadog_api_client/v1/models/slo_threshold.rb index c121577592a..45f7baaac66 100644 --- a/lib/datadog_api_client/v1/models/slo_threshold.rb +++ b/lib/datadog_api_client/v1/models/slo_threshold.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # SLO thresholds (target and optionally warning) for a single time window. class SLOThreshold - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -181,7 +181,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ba031446144..7e8a6b341f2 100644 --- a/lib/datadog_api_client/v1/models/slo_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/slo_widget_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Use the SLO and uptime widget to track your SLOs (Service Level Objectives) and uptime on screenboards and timeboards. class SLOWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -228,7 +228,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2265dc44194..a2b58971754 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Sunbursts are spot on to highlight how groups contribute to the total of a query. class SunburstWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -218,7 +218,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 417f69ec8f8..439d0ea3ad8 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Configuration of inline or automatic legends. class SunburstWidgetLegendInlineAutomatic - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -148,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 dc98f0e9fa8..fffc5acdfd9 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Configuration of table-based legend. class SunburstWidgetLegendTable - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 55a063a8bc7..19a2c3919b2 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Request definition of sunburst widget. class SunburstWidgetRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -248,7 +248,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/synthetics_api_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_step.rb index 0ff99a0692d..50fb795cece 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_step.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The steps used in a Synthetics multistep API test. class SyntheticsAPIStep - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -217,7 +217,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 bbccf4d7d98..1775ba0343a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing details about a Synthetic API test. class SyntheticsAPITest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -252,7 +252,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e1e055ff6d6..c3f89b5a65a 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Configuration object for a Synthetic API test. class SyntheticsAPITestConfig - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -162,7 +162,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0da53db7f7d..0a399a9220c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing results for your Synthetic API test. class SyntheticsAPITestResultData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -205,7 +205,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 714e75ecb76..f333bb9da5f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The API test failure details. class SyntheticsApiTestResultFailure - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 11374b45258..79e2b7d1f16 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object returned describing a API test result. class SyntheticsAPITestResultFull - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -187,7 +187,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 64935ce62d5..b0094ac9bb6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the API test configuration. class SyntheticsAPITestResultFullCheck - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e396399b34a..a78c811fab7 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object with the results of a single Synthetic API test. class SyntheticsAPITestResultShort - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -167,7 +167,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e0cd6801831..4fc8762a226 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Result of the last API test run. class SyntheticsAPITestResultShortResult - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -135,7 +135,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 101485a0515..57dffcca880 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An assertion for the `validatesJSONPath` operator. class SyntheticsAssertionJSONPathTarget - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -162,7 +162,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ad5f8827d35..0c8c94c1a78 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Composed target for `validatesJSONPath` operator. class SyntheticsAssertionJSONPathTargetTarget - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 48c9948f3a8..043cbf4ab53 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An assertion which uses a simple target. class SyntheticsAssertionTarget - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -166,7 +166,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 97229f4b0f6..f91fcb7d2b7 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object to handle `NTLM` authentication when performing the test. class SyntheticsBasicAuthNTLM - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -170,7 +170,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d8c555d1ca5..d18fefa205e 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object to handle `SIGV4` authentication when performing the test. class SyntheticsBasicAuthSigv4 - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -188,7 +188,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b5119fc0183..126df5fbf65 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object to handle basic authentication when performing the test. class SyntheticsBasicAuthWeb - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -158,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 959ae72a86c..4e3f22c3748 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_details.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Details about a batch response. class SyntheticsBatchDetails - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0abb399a65d..5b2f732d51c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Wrapper object that contains the details of a batch. class SyntheticsBatchDetailsData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e15b56f884e..c41cfb8a756 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object with the results of a Synthetics batch. class SyntheticsBatchResult - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -214,7 +214,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 bef74ec111c..bd94606cea9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_error.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_error.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Error response object for a browser test. class SyntheticsBrowserError - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -166,7 +166,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f7fcfe275c6..181808793be 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing details about a Synthetic browser test. class SyntheticsBrowserTest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -253,7 +253,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ddddadfc441..5c1ca819852 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Configuration object for a Synthetic browser test. class SyntheticsBrowserTestConfig - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -180,7 +180,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4642d90825d..268390736b0 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing results for your Synthetic browser test. class SyntheticsBrowserTestResultData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -237,7 +237,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b6a845bd2a9..c4ffb83b8fb 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The browser test failure details. class SyntheticsBrowserTestResultFailure - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 23e21f550af..7c1c9ec9fe9 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object returned describing a browser test result. class SyntheticsBrowserTestResultFull - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -187,7 +187,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 db300664a7e..4092c110a37 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the browser test configuration. class SyntheticsBrowserTestResultFullCheck - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9eecb3521e9..ece5259f44f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object with the results of a single Synthetic browser test. class SyntheticsBrowserTestResultShort - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -167,7 +167,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 39b411d3dfe..6ed93b0b73a 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object with the result of the last browser test run. class SyntheticsBrowserTestResultShortResult - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -164,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 da48b9474ef..a3278e866ba 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # Object defining a variable that can be used in your browser test. # Learn more in the [Browser test Actions documentation](https://docs.datadoghq.com/synthetics/browser_tests/actions#variable). class SyntheticsBrowserVariable - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -173,7 +173,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 06feac306d0..32cc98b0029 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Metadata for the Synthetics tests run. class SyntheticsCIBatchMetadata - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2c6301e4d38..a45fb8c8779 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Description of the CI provider. class SyntheticsCIBatchMetadataCI - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 cceb35fe140..a2856c10927 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Git information. class SyntheticsCIBatchMetadataGit - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 98f1a7bd6c6..e02010eab55 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Description of the CI pipeline. class SyntheticsCIBatchMetadataPipeline - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5d2189c34c4..dbf29543db9 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Description of the CI provider. class SyntheticsCIBatchMetadataProvider - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ef3beb4dd3b..c162c67d692 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_test.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Test configuration for Synthetics CI class SyntheticsCITest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -262,7 +262,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b558c17a721..965ae90bd8a 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the synthetics tests to trigger. class SyntheticsCITestBody - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 64855bb0cd2..7fb0a728769 100644 --- a/lib/datadog_api_client/v1/models/synthetics_config_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_config_variable.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object defining a variable that can be used in your test configuration. class SyntheticsConfigVariable - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -172,7 +172,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9aa1dfd5f3c..f0e40b419cd 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Core Web Vitals attached to a browser test step. class SyntheticsCoreWebVitals - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3d3184d9d20..5ad899425b1 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 @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # A JSON list of the ID or IDs of the Synthetic tests that you want # to delete. class SyntheticsDeleteTestsPayload - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -127,7 +127,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d916fe03752..71a6200a194 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response object for deleting Synthetic tests. class SyntheticsDeleteTestsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -127,7 +127,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 bc7bd91b3a5..f6b5326a16a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # Object containing a deleted Synthetic test ID with the associated # deletion timestamp. class SyntheticsDeletedTest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -135,7 +135,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/synthetics_device.rb b/lib/datadog_api_client/v1/models/synthetics_device.rb index 3374e3c0152..339feb353a9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_device.rb +++ b/lib/datadog_api_client/v1/models/synthetics_device.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the device used to perform the Synthetic test. class SyntheticsDevice - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -180,7 +180,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 583e9926a56..df1ee5933af 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object with the latest Synthetic API test run. class SyntheticsGetAPITestLatestResultsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 25697100761..ba7538e83f7 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object with the latest Synthetic browser test run. class SyntheticsGetBrowserTestLatestResultsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0b2dbb7b500..0a5ded3a89e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Synthetics global variable. class SyntheticsGlobalVariable - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -212,7 +212,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 95ec82a4aab..888af5c36a2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Attributes of the global variable. class SyntheticsGlobalVariableAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9d38e221721..73937ec1fdb 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Parser options to use for retrieving a Synthetics global variable from a Synthetics Test. Used in conjunction with `parse_test_public_id`. class SyntheticsGlobalVariableParseTestOptions - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -152,7 +152,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 bddf49e7d75..5f59d22f4d3 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Value of the global variable. class SyntheticsGlobalVariableValue - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -135,7 +135,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b89e8fddb2b..cb86fde2467 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing an array of Synthetic global variables. class SyntheticsListGlobalVariablesResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 72ccad4c4b3..8709a422b56 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing an array of Synthetic tests configuration. class SyntheticsListTestsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/synthetics_location.rb b/lib/datadog_api_client/v1/models/synthetics_location.rb index aad82bdc74f..6d6ff7c43a5 100644 --- a/lib/datadog_api_client/v1/models/synthetics_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_location.rb @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # Synthetic location that can be used when creating or editing a # test. class SyntheticsLocation - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -135,7 +135,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/synthetics_locations.rb b/lib/datadog_api_client/v1/models/synthetics_locations.rb index d035d8980a8..68d24306d2e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_locations.rb +++ b/lib/datadog_api_client/v1/models/synthetics_locations.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # List of Synthetics locations. class SyntheticsLocations - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f780a6173b4..25989b223ea 100644 --- a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Parsing options for variables to extract. class SyntheticsParsingOptions - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 093d065c147..e34e5b328ad 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing information about the private location to create. class SyntheticsPrivateLocation - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -178,7 +178,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4eca7c67e9c..99d22a50bcf 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object that contains the new private location, the public key for result encryption, and the configuration skeleton. class SyntheticsPrivateLocationCreationResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3712bcfe325..879b680dcf6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Public key for the result encryption. class SyntheticsPrivateLocationCreationResponseResultEncryption - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2d73fe598bf..9c004dfb820 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Secrets for the private location. Only present in the response when creating the private location. class SyntheticsPrivateLocationSecrets - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 75b2b4209f6..88f37dcc1b5 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Authentication part of the secrets. class SyntheticsPrivateLocationSecretsAuthentication - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 542916795cb..9d602692462 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Private key for the private location. class SyntheticsPrivateLocationSecretsConfigDecryption - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 26fe99feb29..40b33d5430f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the SSL certificate used for a Synthetic test. class SyntheticsSSLCertificate - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -236,7 +236,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 eecc9f183e0..3173ad731bf 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the issuer of a SSL certificate. class SyntheticsSSLCertificateIssuer - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -174,7 +174,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3c508240eff..36501cce353 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the SSL certificate used for the test. class SyntheticsSSLCertificateSubject - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -184,7 +184,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/synthetics_step.rb b/lib/datadog_api_client/v1/models/synthetics_step.rb index 577ba82beb6..de79b79babb 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The steps used in a Synthetics browser test. class SyntheticsStep - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -164,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 311faf9417d..2d32913ba03 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_detail.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing a step for a Synthetic test. class SyntheticsStepDetail - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -293,7 +293,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 8a5e997db3e..da1952c1c1f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object collecting warnings for a given step. class SyntheticsStepDetailWarning - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ae7131ef650..0eaec29f87b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_config.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_config.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Configuration object for a Synthetic test. class SyntheticsTestConfig - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -162,7 +162,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d1e9881a626..548e9930378 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing details about your Synthetic test. class SyntheticsTestDetails - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -252,7 +252,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1322b7cfcc8..c4a749c38f9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the extra options for a Synthetic test. class SyntheticsTestOptions - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -249,7 +249,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 381cab1b67e..9fb5fb60918 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 @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # Object containing the options for a Synthetic test as a monitor # (for example, renotification). class SyntheticsTestOptionsMonitorOptions - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 90576c84f72..efa5284152f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the retry strategy to apply to a Synthetic test. class SyntheticsTestOptionsRetry - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2a700cda684..cadb4c2b8d9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the Synthetic test request. class SyntheticsTestRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -316,7 +316,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 45f20626ba7..811e0368ad9 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Client certificate to use when performing the test request. class SyntheticsTestRequestCertificate - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 14d7577a7b1..86a63ac3e93 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Define a request certificate. class SyntheticsTestRequestCertificateItem - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e792d8040be..75595eda550 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The proxy to perform the test. class SyntheticsTestRequestProxy - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -138,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/synthetics_timing.rb b/lib/datadog_api_client/v1/models/synthetics_timing.rb index fa779be867c..36f4898440c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_timing.rb +++ b/lib/datadog_api_client/v1/models/synthetics_timing.rb @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # Object containing all metrics and their values collected for a Synthetic API test. # Learn more about those metrics in [Synthetics documentation](https://docs.datadoghq.com/synthetics/#metrics). class SyntheticsTiming - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -205,7 +205,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 271731a0875..79de5455df0 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object describing the synthetics tests to trigger. class SyntheticsTriggerBody - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -130,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3d9c7d5c729..91c51ae2d31 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Synthetics location. class SyntheticsTriggerCITestLocation - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2e097bc7bb8..8cba6b5ce4c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Information about a single test run. class SyntheticsTriggerCITestRunResult - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9bd8935fccf..4b778f6e6d2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object containing information about the tests triggered. class SyntheticsTriggerCITestsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -67,7 +67,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'batch_id' + :'batch_id', ]) end @@ -161,7 +161,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 106f4f2cb34..9d46de2cad6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Test configuration for Synthetics class SyntheticsTriggerTest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -138,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f294caa8162..850ee33650b 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Object to start or pause an existing Synthetic test. class SyntheticsUpdateTestPauseStatusPayload - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -125,7 +125,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ed6f1f57e20..1588253a0a5 100644 --- a/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb +++ b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Details of the parser to use for the global variable. class SyntheticsVariableParser - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -138,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f99b8624171..a46658353eb 100644 --- a/lib/datadog_api_client/v1/models/table_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/table_widget_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The table visualization is available on timeboards and screenboards. It displays columns of metrics grouped by tag key. class TableWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -208,7 +208,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 202753d1e41..e7d9ca38431 100644 --- a/lib/datadog_api_client/v1/models/table_widget_request.rb +++ b/lib/datadog_api_client/v1/models/table_widget_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Updated table widget. class TableWidgetRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -312,7 +312,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 c814d24bd27..1b583289d89 100644 --- a/lib/datadog_api_client/v1/models/tag_to_hosts.rb +++ b/lib/datadog_api_client/v1/models/tag_to_hosts.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # In this object, the key is the tag, the value is a list of host names that are reporting that tag. class TagToHosts - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 c8bd37fcfa6..cca13cdb0b6 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The timeseries visualization allows you to display the evolution of one or more metrics, log events, or Indexed Spans over time. class TimeseriesWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -284,7 +284,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2575a47756d..bf0b72efedb 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Define an expression alias. class TimeseriesWidgetExpressionAlias - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -138,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f445dffb808..ced01ed6c2f 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Updated timeseries widget. class TimeseriesWidgetRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -290,7 +290,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 fd1fae82084..70c0c134eb9 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The top list visualization enables you to display a list of Tag value like hostname or service with the most or least of any metric value, such as highest consumers of CPU, hosts with the least disk space, etc. class ToplistWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -198,7 +198,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d651c0f669c..d0b8c80a097 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_request.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Updated top list widget. class ToplistWidgetRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -270,7 +270,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 635e89e740b..727db88982c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The treemap visualization found on the Host Dashboards comes from the output of `ps auxww`. This is not continuously run on your hosts. Instead, it’s run once on Agent start/restart. The treemap is only supported for process data on a single host dashboard — this may not be reused in other dashboards or for other metrics. class TreeMapWidgetDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -188,7 +188,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1e7677ffc31..c4f69b14508 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # An updated treemap widget. class TreeMapWidgetRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -158,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5ea3a50f467..009c2ab08f1 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The number of analyzed logs for each hour for a given organization. class UsageAnalyzedLogsHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 864408aabe8..4cec562410d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A response containing the number of analyzed logs for each hour for a given organization. class UsageAnalyzedLogsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 624b7e2eb25..3ca5e08c32f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The object containing the aggregates. class UsageAttributionAggregatesBody - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/usage_attribution_body.rb b/lib/datadog_api_client/v1/models/usage_attribution_body.rb index 0c88a3bd5ae..ae00293db6a 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_body.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_body.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Usage Summary by tag for a given organization. class UsageAttributionBody - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -184,7 +184,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb b/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb index b83141ec885..56503102f12 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The object containing document metadata. class UsageAttributionMetadata - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb b/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb index 79fc66a61a3..dc70a218504 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The metadata for the current pagination. class UsageAttributionPagination - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -164,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/usage_attribution_response.rb b/lib/datadog_api_client/v1/models/usage_attribution_response.rb index c054fb9780b..5ed862c1655 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_response.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the Usage Summary by tag(s). class UsageAttributionResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/usage_attribution_values.rb b/lib/datadog_api_client/v1/models/usage_attribution_values.rb index c35ee64fe41..590f6083dbb 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_values.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_values.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Fields in Usage Summary by tag(s). class UsageAttributionValues - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -518,7 +518,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 72481f177f6..2758e3144a3 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Audit logs usage for a given organization for a given hour. class UsageAuditLogsHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 aee0e682802..dc67990e3cd 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the audit logs usage for each hour for a given organization. class UsageAuditLogsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 865eae088ed..2a80398f7e9 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response with properties for each aggregated usage type. class UsageBillableSummaryBody - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -184,7 +184,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4ee6f229ae9..cf26e59a6f3 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response with monthly summary of data billed by Datadog. class UsageBillableSummaryHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -194,7 +194,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 8e8babb6b60..ed871b80d23 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response with aggregated usage types. class UsageBillableSummaryKeys - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -434,7 +434,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2c0a2d451c6..45550e38dba 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response with monthly summary of data billed by Datadog. class UsageBillableSummaryResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 a9ecba158f9..00503d97040 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Cloud Security Posture Management usage for a given organization for a given hour. class UsageCloudSecurityPostureManagementHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -91,7 +91,7 @@ def self.openapi_nullable :'azure_host_count', :'compliance_host_count', :'container_count', - :'host_count' + :'host_count', ]) end @@ -199,7 +199,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ae1f0c74ca9..1973bd59c54 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The response containing the Cloud Security Posture Management usage for each hour for a given organization. class UsageCloudSecurityPostureManagementResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2dc903fd124..946540f24e2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The response containing attributes for custom reports. class UsageCustomReportsAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -166,7 +166,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7db53b615ef..8e9ba007c57 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The response containing the date and type for custom reports. class UsageCustomReportsData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e38508b0aa9..143e9105c02 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The object containing document metadata. class UsageCustomReportsMeta - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 75a3149598d..8777c6e0002 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The object containing page total count. class UsageCustomReportsPage - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 af0833e688c..8bb8d46000c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing available custom reports. class UsageCustomReportsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4344ca178a6..cb2f49c5f0a 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Cloud Workload Security usage for a given organization for a given hour. class UsageCWSHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -164,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e9d66a1e06b..07877b1bf91 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_response.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the Cloud Workload Security usage for each hour for a given organization. class UsageCWSResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e700176d0a6..7c2cb1fce0e 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Database Monitoring usage for a given organization for a given hour. class UsageDBMHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -164,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d2d9b401b7c..a1bc4371a67 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_response.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the Database Monitoring usage for each hour for a given organization. class UsageDBMResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5ab5910232e..d0fd6bde86b 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Number of Fargate tasks run and hourly usage. class UsageFargateHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -164,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b91988b03d6..28f47a3e6e8 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_response.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of Fargate tasks run and hourly usage. class UsageFargateResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 a062a080686..2bee1b11a26 100644 --- a/lib/datadog_api_client/v1/models/usage_host_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_host_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Number of hosts/containers recorded for each hour for a given organization. class UsageHostHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -263,7 +263,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7f27be91403..80bae853a5f 100644 --- a/lib/datadog_api_client/v1/models/usage_hosts_response.rb +++ b/lib/datadog_api_client/v1/models/usage_hosts_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Host usage response. class UsageHostsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f8556e54010..29009b649cf 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Incident management usage for a given organization for a given hour. class UsageIncidentManagementHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 a896b97aa1f..1b67a4ea019 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the incident management usage for each hour for a given organization. class UsageIncidentManagementResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 76a2c460779..cf151c2713d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The hours of indexed spans usage. class UsageIndexedSpansHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 6494959c3a3..a3c1ba26c3d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A response containing indexed spans usage. class UsageIndexedSpansResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0bc2f795faf..32b87ebf6c9 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Ingested spans usage for a given organization for a given hour. class UsageIngestedSpansHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 801faace64c..085e258335d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the ingested spans usage for each hour for a given organization. class UsageIngestedSpansResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/usage_io_t_hour.rb b/lib/datadog_api_client/v1/models/usage_io_t_hour.rb index 5c9513ed6fa..8f36bedcbf0 100644 --- a/lib/datadog_api_client/v1/models/usage_io_t_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_io_t_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # IoT usage for a given organization for a given hour. class UsageIoTHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/usage_io_t_response.rb b/lib/datadog_api_client/v1/models/usage_io_t_response.rb index 624e76b37b9..164aaf82a6f 100644 --- a/lib/datadog_api_client/v1/models/usage_io_t_response.rb +++ b/lib/datadog_api_client/v1/models/usage_io_t_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the IoT usage for each hour for a given organization. class UsageIoTResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 8874dd5fe01..45233658d39 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_hour.rb @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # Number of lambda functions and sum of the invocations of all lambda functions # for each hour for a given organization. class UsageLambdaHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -145,7 +145,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1562d363302..5fc91a234ec 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_response.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_response.rb @@ -20,7 +20,7 @@ module DatadogAPIClient::V1 # Response containing the number of lambda functions and sum of the invocations of all lambda functions # for each hour for a given organization. class UsageLambdaResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -127,7 +127,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 237b8f7e956..9c29997ab35 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Number of indexed logs for each hour and index for a given organization. class UsageLogsByIndexHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -164,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 655a0bf0f81..76290519789 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of indexed logs for each hour and index for a given organization. class UsageLogsByIndexResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d31836eed3e..1178fe9ee3b 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The number of indexed logs for each hour for a given organization broken down by retention period. class UsageLogsByRetentionHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 db4b6190ad9..decbb1f62a2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the indexed logs usage broken down by retention period for an organization during a given hour. class UsageLogsByRetentionResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4c7bc10c6fd..5d2a9bd3cbf 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Hour usage for logs. class UsageLogsHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -194,7 +194,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 17d59787ddd..a0dbc3351c6 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_response.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of logs for each hour. class UsageLogsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2cb3f0db0d4..745a0bf33b8 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Number of netflow events indexed for each hour for a given organization. class UsageNetworkFlowsHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e3617f4b123..db5d0134c63 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of netflow events indexed for each hour for a given organization. class UsageNetworkFlowsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 50be9ebed82..7f9dd81c20e 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Number of active NPM hosts for each hour for a given organization. class UsageNetworkHostsHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 c4d82765d74..9b7f9be64d6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of active NPM hosts for each hour for a given organization. class UsageNetworkHostsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 bab697865ac..8f7cc755ae3 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The number of profiled hosts for each hour for a given organization. class UsageProfilingHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -164,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 71110a8aef4..aead4417860 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_response.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of profiled hosts for each hour for a given organization. class UsageProfilingResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5a93caf1603..ce406ea64e9 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Number of RUM Sessions recorded for each hour for a given organization. class UsageRumSessionsHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -184,7 +184,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 05a35578e2a..fda6697071b 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of RUM Sessions for each hour for a given organization. class UsageRumSessionsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7ffdcb89912..ba4910c4256 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Number of RUM Units used for each hour for a given organization (data available as of November 1, 2021). class UsageRumUnitsHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -72,7 +72,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'rum_units' + :'rum_units', ]) end @@ -165,7 +165,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 85ddb2bb85e..6c9f004d6f6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of RUM Units for each hour for a given organization. class UsageRumUnitsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 da9f92021a7..dd3e407eb50 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Sensitive Data Scanner usage for a given organization for a given hour. class UsageSDSHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -164,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0ea5927c674..0f15aa7b0fc 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_response.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the Sensitive Data Scanner usage for each hour for a given organization. class UsageSDSResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3164b0b7ef4..88f016f9a13 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The number of SNMP devices for each hour for a given organization. class UsageSNMPHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 56038664c79..a359801b2a0 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_response.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of SNMP devices for each hour for a given organization. class UsageSNMPResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 59f516246fb..5bd6c7e6061 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The response containing attributes for specified custom reports. class UsageSpecifiedCustomReportsAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -176,7 +176,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7d29df21959..66254857c95 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing date and type for specified custom reports. class UsageSpecifiedCustomReportsData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4b1c4190196..5db22efbbbf 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The object containing document metadata. class UsageSpecifiedCustomReportsMeta - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1a51c0e5bf9..0cc6ab7d4b7 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The object containing page total count for specified ID. class UsageSpecifiedCustomReportsPage - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ff830298742..df3fe519116 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Returns available specified custom reports. class UsageSpecifiedCustomReportsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 6a3679ecad3..6cf4e55e92c 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response with hourly report of all data billed by Datadog all organizations. class UsageSummaryDate - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -686,7 +686,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 fc4b18f6ef4..7e1f570eab9 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Global hourly report of all data billed by Datadog for a given organization. class UsageSummaryDateOrg - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -694,7 +694,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 35470b2e4ba..e55149009ca 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_response.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response summarizing all usage aggregated across the months in the request for all organizations, and broken down by month and by organization. class UsageSummaryResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -776,7 +776,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7c450a175f8..b6108806a27 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Number of Synthetics API tests run for each hour for a given organization. class UsageSyntheticsAPIHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 89072b884f8..622fff7f749 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of Synthetics API tests run for each hour for a given organization. class UsageSyntheticsAPIResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 c58f50495e6..4bd309ec28c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Number of Synthetics Browser tests run for each hour for a given organization. class UsageSyntheticsBrowserHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3f1e4be785c..d0a5aa65269 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of Synthetics Browser tests run for each hour for a given organization. class UsageSyntheticsBrowserResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5884c436902..9f46f9e125c 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The number of synthetics tests run for each hour for a given organization. class UsageSyntheticsHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5b4fe1bef80..09ac67a0f17 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_response.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of Synthetics API tests run for each hour for a given organization. class UsageSyntheticsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b6839b90a99..55d2dd7bfb4 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The hourly usage of timeseries. class UsageTimeseriesHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 223ea136fa3..95702f8c6f3 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_response.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing hourly usage of timeseries. class UsageTimeseriesResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7f04e9a6ade..e728028887f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Number of hourly recorded custom metrics for a given organization. class UsageTopAvgMetricsHour - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 321aa98a59e..dc691b68d69 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The object containing document metadata. class UsageTopAvgMetricsMetadata - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e2a39d63ff7..fe3ef8c137d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Response containing the number of hourly recorded custom metrics for a given organization. class UsageTopAvgMetricsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/user.rb b/lib/datadog_api_client/v1/models/user.rb index 6040aa32a7f..34b68c26b0e 100644 --- a/lib/datadog_api_client/v1/models/user.rb +++ b/lib/datadog_api_client/v1/models/user.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Create, edit, and disable users. class User - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -186,7 +186,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 6c302ac212e..d9e24d4c90f 100644 --- a/lib/datadog_api_client/v1/models/user_disable_response.rb +++ b/lib/datadog_api_client/v1/models/user_disable_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Array of user disabled for a given organization. class UserDisableResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 cc9f87c9e41..b7d7b9b8f57 100644 --- a/lib/datadog_api_client/v1/models/user_list_response.rb +++ b/lib/datadog_api_client/v1/models/user_list_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Array of Datadog users for a given organization. class UserListResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/user_response.rb b/lib/datadog_api_client/v1/models/user_response.rb index 7d01f064027..bb71f83fac9 100644 --- a/lib/datadog_api_client/v1/models/user_response.rb +++ b/lib/datadog_api_client/v1/models/user_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # A Datadog User. class UserResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/webhooks_integration.rb b/lib/datadog_api_client/v1/models/webhooks_integration.rb index 4b06380ca8c..4ce0ddd3863 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Datadog-Webhooks integration. class WebhooksIntegration - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -79,7 +79,7 @@ def self.openapi_types def self.openapi_nullable Set.new([ :'custom_headers', - :'payload' + :'payload', ]) end @@ -182,7 +182,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 26e53784d21..d4f21b220e4 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Custom variable for Webhook integration. class WebhooksIntegrationCustomVariable - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -157,7 +157,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5bfc0857057..b0595706d90 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Custom variable for Webhook integration. class WebhooksIntegrationCustomVariableResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -153,7 +153,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d618d1d0d8e..13bcb6802b2 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 @@ -21,7 +21,7 @@ module DatadogAPIClient::V1 # # *All properties are optional.* class WebhooksIntegrationCustomVariableUpdateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -147,7 +147,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ab673db8316..84e19ae9877 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 @@ -21,7 +21,7 @@ module DatadogAPIClient::V1 # # *All properties are optional.* class WebhooksIntegrationUpdateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -80,7 +80,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'payload' + :'payload', ]) end @@ -175,7 +175,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/widget.rb b/lib/datadog_api_client/v1/models/widget.rb index 97508988de6..6d7d9d8f750 100644 --- a/lib/datadog_api_client/v1/models/widget.rb +++ b/lib/datadog_api_client/v1/models/widget.rb @@ -24,7 +24,7 @@ module DatadogAPIClient::V1 # - If `reflow_type` is `fixed`, `layout` is required. # - If `reflow_type` is `auto`, `layout` should not be set. class Widget - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -153,7 +153,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/widget_axis.rb b/lib/datadog_api_client/v1/models/widget_axis.rb index 19f1651b594..eac7fb1b3f2 100644 --- a/lib/datadog_api_client/v1/models/widget_axis.rb +++ b/lib/datadog_api_client/v1/models/widget_axis.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Axis controls for the widget. class WidgetAxis - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -170,7 +170,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e2aae8c7ce4..154f89fb9dc 100644 --- a/lib/datadog_api_client/v1/models/widget_conditional_format.rb +++ b/lib/datadog_api_client/v1/models/widget_conditional_format.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Define a conditional format for the widget. class WidgetConditionalFormat - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -216,7 +216,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 45856178864..174a3ebc5bf 100644 --- a/lib/datadog_api_client/v1/models/widget_custom_link.rb +++ b/lib/datadog_api_client/v1/models/widget_custom_link.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Custom links help you connect a data value to a URL, like a Datadog page or your AWS console. class WidgetCustomLink - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/widget_event.rb b/lib/datadog_api_client/v1/models/widget_event.rb index 7636f1ec6b2..869ab676c8c 100644 --- a/lib/datadog_api_client/v1/models/widget_event.rb +++ b/lib/datadog_api_client/v1/models/widget_event.rb @@ -22,7 +22,7 @@ module DatadogAPIClient::V1 # See the dedicated [Events JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/widget_json/#events-schema) # to learn how to build the ``. class WidgetEvent - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -141,7 +141,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 50eece17152..97721861f7a 100644 --- a/lib/datadog_api_client/v1/models/widget_field_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_field_sort.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Which column and order to sort by class WidgetFieldSort - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/widget_formula.rb b/lib/datadog_api_client/v1/models/widget_formula.rb index b9ea58d85c2..134a2c5a267 100644 --- a/lib/datadog_api_client/v1/models/widget_formula.rb +++ b/lib/datadog_api_client/v1/models/widget_formula.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Formula to be used in a widget query. class WidgetFormula - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -170,7 +170,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 002b0542ac9..719e9d1a8d0 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_limit.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_limit.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Options for limiting results returned. class WidgetFormulaLimit - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/widget_layout.rb b/lib/datadog_api_client/v1/models/widget_layout.rb index 7b548dac7ef..0a7c45d6771 100644 --- a/lib/datadog_api_client/v1/models/widget_layout.rb +++ b/lib/datadog_api_client/v1/models/widget_layout.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # The layout for a widget on a `free` or **new dashboard layout** dashboard. class WidgetLayout - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -181,7 +181,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/widget_marker.rb b/lib/datadog_api_client/v1/models/widget_marker.rb index 3daf5ee5ce5..5a52c2c5240 100644 --- a/lib/datadog_api_client/v1/models/widget_marker.rb +++ b/lib/datadog_api_client/v1/models/widget_marker.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Markers allow you to add visual conditional formatting for your graphs. class WidgetMarker - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -162,7 +162,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2db3c32c045..70c2355d12b 100644 --- a/lib/datadog_api_client/v1/models/widget_request_style.rb +++ b/lib/datadog_api_client/v1/models/widget_request_style.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Define request widget style. class WidgetRequestStyle - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/widget_style.rb b/lib/datadog_api_client/v1/models/widget_style.rb index e287b0db4b2..5eb8f58f88d 100644 --- a/lib/datadog_api_client/v1/models/widget_style.rb +++ b/lib/datadog_api_client/v1/models/widget_style.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Widget style definition. class WidgetStyle - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v1/models/widget_time.rb b/lib/datadog_api_client/v1/models/widget_time.rb index 21e1f7c7192..750e93f522f 100644 --- a/lib/datadog_api_client/v1/models/widget_time.rb +++ b/lib/datadog_api_client/v1/models/widget_time.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V1 # Time setting for the widget. class WidgetTime - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/api/logs_api.rb b/lib/datadog_api_client/v2/api/logs_api.rb index bbb8463de76..c4a5a5f66a8 100644 --- a/lib/datadog_api_client/v2/api/logs_api.rb +++ b/lib/datadog_api_client/v2/api/logs_api.rb @@ -391,6 +391,7 @@ def submit_log_with_http_info(body, opts = {}) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/logplex-1', 'text/plain']) + header_params['Content-Encoding'] = opts[:'content_encoding'] if !opts[:'content_encoding'].nil? # form parameters form_params = opts[:form_params] || {} 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 9c5f3b8ac8d..2828d0c10b6 100644 --- a/lib/datadog_api_client/v2/models/api_error_response.rb +++ b/lib/datadog_api_client/v2/models/api_error_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # API error response. class APIErrorResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -130,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 a05a65c3be4..89781cb7131 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes used to create an API Key. class APIKeyCreateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 884153bc125..954477dabc2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object used to create an API key. class APIKeyCreateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 711d309377e..e8acd87da8a 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Request used to create an API key. class APIKeyCreateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 febd7b4a892..06e505118dd 100644 --- a/lib/datadog_api_client/v2/models/api_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/api_key_relationships.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Resources related to the API key. class APIKeyRelationships - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 c8e6c3a02f4..a3c6e7e5608 100644 --- a/lib/datadog_api_client/v2/models/api_key_response.rb +++ b/lib/datadog_api_client/v2/models/api_key_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response for retrieving an API key. class APIKeyResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 48985667321..3ea7ceee34f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes used to update an API Key. class APIKeyUpdateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1c12beb48e7..6c28ff909ae 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object used to update an API key. class APIKeyUpdateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -158,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 96287425c68..0b694d53801 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Request used to update an API key. class APIKeyUpdateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 56f764eeb2b..ea2aa28d560 100644 --- a/lib/datadog_api_client/v2/models/api_keys_response.rb +++ b/lib/datadog_api_client/v2/models/api_keys_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response for a list of API keys. class APIKeysResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -138,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 44b691b389b..4a6ec30eab5 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes used to create an application Key. class ApplicationKeyCreateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -57,7 +57,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'scopes' + :'scopes', ]) end @@ -141,7 +141,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7f8b2c32674..98761b07a9d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object used to create an application key. class ApplicationKeyCreateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2472b06b87f..ac05e61e4cf 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Request used to create an application key. class ApplicationKeyCreateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 790c584908c..00558c0fdf1 100644 --- a/lib/datadog_api_client/v2/models/application_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/application_key_relationships.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Resources related to the application key. class ApplicationKeyRelationships - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0d1d18d7eb4..5a30b4733ef 100644 --- a/lib/datadog_api_client/v2/models/application_key_response.rb +++ b/lib/datadog_api_client/v2/models/application_key_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response for retrieving an application key. class ApplicationKeyResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 25d8587bdd3..9642c494d91 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes used to update an application Key. class ApplicationKeyUpdateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -57,7 +57,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'scopes' + :'scopes', ]) end @@ -137,7 +137,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 abfd66a792f..077e8e3dfe1 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object used to update an application key. class ApplicationKeyUpdateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -158,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5ca7af8e6cb..563ebc795fa 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Request used to update an application key. class ApplicationKeyUpdateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4118b891c21..10936350f03 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A Cloud Workload Security Agent rule returned by the API. class CloudWorkloadSecurityAgentRuleAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -224,7 +224,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4d322dde510..63e92d2e8d1 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Create a new Cloud Workload Security Agent rule. class CloudWorkloadSecurityAgentRuleCreateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -162,7 +162,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9060c810c21..7984172cde6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object for a single Agent rule. class CloudWorkloadSecurityAgentRuleCreateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 00b8a671d4b..3d4c79310df 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Request object that includes the Agent rule to create. class CloudWorkloadSecurityAgentRuleCreateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 15398fd2441..a14d24f0002 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The attributes of the user who created the Agent rule. class CloudWorkloadSecurityAgentRuleCreatorAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d83de2e21df..9be772f8270 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object for a single Agent rule. class CloudWorkloadSecurityAgentRuleData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 30563b9384d..a9d79ad500c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response object that includes an Agent rule. class CloudWorkloadSecurityAgentRuleResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ee1db66cef2..813ee60e75b 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Update an existing Cloud Workload Security Agent rule. class CloudWorkloadSecurityAgentRuleUpdateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0938acd6c49..7abe559eae7 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object for a single Agent rule. class CloudWorkloadSecurityAgentRuleUpdateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 fe276491b3a..aae3f354781 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Request object that includes the Agent rule with the attributes to update. class CloudWorkloadSecurityAgentRuleUpdateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 c461fbec045..46040082cda 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The attributes of the user who last updated the Agent rule. class CloudWorkloadSecurityAgentRuleUpdaterAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 db25ada11d3..9cacc5f8b45 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response object that includes a list of Agent rule. class CloudWorkloadSecurityAgentRulesListResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/creator.rb b/lib/datadog_api_client/v2/models/creator.rb index 72758cc6a20..e10cedaaea4 100644 --- a/lib/datadog_api_client/v2/models/creator.rb +++ b/lib/datadog_api_client/v2/models/creator.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Creator of the object. class Creator - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 707513b557e..87430b58559 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Request containing a list of dashboards to add. class DashboardListAddItemsRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3958bc5ee37..e555161ca1b 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response containing a list of added dashboards. class DashboardListAddItemsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b226fbedeac..088f66d7bfc 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Request containing a list of dashboards to delete. class DashboardListDeleteItemsRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b223a3552b7..b269d420399 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response containing a list of deleted dashboards. class DashboardListDeleteItemsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3bd71a4da71..347274c01cd 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A dashboard within a list. class DashboardListItem - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -242,7 +242,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 a364edcc45b..75d531d02b1 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A dashboard within a list. class DashboardListItemRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 68865ca44e4..5d17473b6f4 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A dashboard within a list. class DashboardListItemResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4981ee4086e..dc757d534ac 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_items.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_items.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Dashboards within a list. class DashboardListItems - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -140,7 +140,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7324ce6f56b..3ea52c5f2c3 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Request containing the list of dashboards to update to. class DashboardListUpdateItemsRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 56bff393638..bc7fe9fbe4f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response containing a list of updated dashboards. class DashboardListUpdateItemsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4093e42a345..72437864042 100644 --- a/lib/datadog_api_client/v2/models/full_api_key.rb +++ b/lib/datadog_api_client/v2/models/full_api_key.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Datadog API key. class FullAPIKey - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -156,7 +156,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 41b1c6b7afe..eb4d5227305 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of a full API key. class FullAPIKeyAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -164,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 99d3db096d2..56939d1d8c8 100644 --- a/lib/datadog_api_client/v2/models/full_application_key.rb +++ b/lib/datadog_api_client/v2/models/full_application_key.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Datadog application key. class FullApplicationKey - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -156,7 +156,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b4e4889437e..14c5c153914 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of a full application key. class FullApplicationKeyAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -72,7 +72,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'scopes' + :'scopes', ]) end @@ -167,7 +167,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7b544472043..8ed3dcfc352 100644 --- a/lib/datadog_api_client/v2/models/http_log_error.rb +++ b/lib/datadog_api_client/v2/models/http_log_error.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # List of errors. class HTTPLogError - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 67da4f5a3a9..a1cfa5eb9b7 100644 --- a/lib/datadog_api_client/v2/models/http_log_errors.rb +++ b/lib/datadog_api_client/v2/models/http_log_errors.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Invalid query performed. class HTTPLogErrors - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) 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 83059b87670..021aa412e90 100644 --- a/lib/datadog_api_client/v2/models/http_log_item.rb +++ b/lib/datadog_api_client/v2/models/http_log_item.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Logs that are sent over HTTP. class HTTPLogItem - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -170,7 +170,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ac12221f935..045f96802b3 100644 --- a/lib/datadog_api_client/v2/models/incident_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_create_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident's attributes for a create request. class IncidentCreateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -176,7 +176,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d40e12db150..85a986063bc 100644 --- a/lib/datadog_api_client/v2/models/incident_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_create_data.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Incident data for a create request. class IncidentCreateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1a5243f80d8..4229b4dda69 100644 --- a/lib/datadog_api_client/v2/models/incident_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_create_relationships.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The relationships the incident will have with other resources once created. class IncidentCreateRelationships - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 58ca8704289..e93d13ba098 100644 --- a/lib/datadog_api_client/v2/models/incident_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_create_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Create request for an incident. class IncidentCreateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b51c704270c..1d46574538d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A field with potentially multiple values selected. class IncidentFieldAttributesMultipleValue - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -57,7 +57,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'value' + :'value', ]) end @@ -139,7 +139,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3e8fa165fe6..e0606c8fd7b 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A field with a single value selected. class IncidentFieldAttributesSingleValue - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -57,7 +57,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'value' + :'value', ]) end @@ -137,7 +137,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 dc3343151a8..d3f4c555372 100644 --- a/lib/datadog_api_client/v2/models/incident_notification_handle.rb +++ b/lib/datadog_api_client/v2/models/incident_notification_handle.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A notification handle that will be notified at incident creation. class IncidentNotificationHandle - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/incident_response.rb b/lib/datadog_api_client/v2/models/incident_response.rb index 8246f698017..f215fcf84b6 100644 --- a/lib/datadog_api_client/v2/models/incident_response.rb +++ b/lib/datadog_api_client/v2/models/incident_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response with an incident. class IncidentResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -140,7 +140,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7701b325b4d..1f9f120429e 100644 --- a/lib/datadog_api_client/v2/models/incident_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_response_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident's attributes from a response. class IncidentResponseAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.openapi_nullable :'customer_impact_start', :'detected', :'notification_handles', - :'resolved' + :'resolved', ]) end @@ -308,7 +308,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 792ff8eafd0..c129a95d695 100644 --- a/lib/datadog_api_client/v2/models/incident_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_response_data.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Incident data from a response. class IncidentResponseData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -164,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e958fd951e4..ee8a0308ae8 100644 --- a/lib/datadog_api_client/v2/models/incident_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_response_relationships.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident's relationships from a response. class IncidentResponseRelationships - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -164,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 6e7a5d0d797..eb38b7388c2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident service's attributes for a create request. class IncidentServiceCreateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3ce915da3ea..114c8765912 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Incident Service payload for create requests. class IncidentServiceCreateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -150,7 +150,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 c0a3bc03f38..f3749bba60d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Create request with an incident service payload. class IncidentServiceCreateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 a93b6a6217c..6b2c0da6065 100644 --- a/lib/datadog_api_client/v2/models/incident_service_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_service_relationships.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident service's relationships. class IncidentServiceRelationships - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b65a37043fe..29845d2d4de 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response with an incident service payload. class IncidentServiceResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -140,7 +140,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 6de0c70680d..0890d36b08e 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident service's attributes from a response. class IncidentServiceResponseAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1d5c2632124..e7e5043fab6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Incident Service data from responses. class IncidentServiceResponseData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -164,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1b07040809f..220b4bd57dc 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident service's attributes for an update request. class IncidentServiceUpdateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f973a5e0ca8..7bd4e7784f4 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Incident Service payload for update requests. class IncidentServiceUpdateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -160,7 +160,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ad5aa48c360..fe173500d45 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Update request with an incident service payload. class IncidentServiceUpdateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2fc0e271902..bebbf663b07 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response with a list of incident service payloads. class IncidentServicesResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -152,7 +152,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/incident_services_response_meta.rb b/lib/datadog_api_client/v2/models/incident_services_response_meta.rb index 7007d378ae9..d75a7f895ba 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response_meta.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The metadata object containing pagination metadata. class IncidentServicesResponseMeta - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb index ca16cf257a4..18dd5aa2477 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Pagination properties. class IncidentServicesResponseMetaPagination - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9665a71b808..a07c1dd4aa5 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident team's attributes for a create request. class IncidentTeamCreateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f2b1ccb54db..1da07765811 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Incident Team data for a create request. class IncidentTeamCreateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -150,7 +150,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2dafd631900..9b53b4ce5e3 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Create request with an incident team payload. class IncidentTeamCreateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 a0168ee198d..cd30383f96c 100644 --- a/lib/datadog_api_client/v2/models/incident_team_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_team_relationships.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident team's relationships. class IncidentTeamRelationships - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 16c2c5a1452..3dceb009c24 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response with an incident team payload. class IncidentTeamResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -140,7 +140,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 66e383b1c6d..0da94303dff 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident team's attributes from a response. class IncidentTeamResponseAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 083c7472d2b..427e496965a 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Incident Team data from a response. class IncidentTeamResponseData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -156,7 +156,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f7026c61958..0bae8827ed5 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident team's attributes for an update request. class IncidentTeamUpdateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 49a5e406393..ed6a21eb450 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Incident Team data for an update request. class IncidentTeamUpdateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -160,7 +160,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 cf5b0682068..f01866ba9eb 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Update request with an incident team payload. class IncidentTeamUpdateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7c39f2d9a3f..3559b8a8891 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response with a list of incident team payloads. class IncidentTeamsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -152,7 +152,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb b/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb index a1ab07e7017..be0e330b21c 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The metadata object containing pagination metadata. class IncidentTeamsResponseMeta - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb index b0d6a679e59..cce773b0102 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Pagination properties. class IncidentTeamsResponseMetaPagination - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 934dec3efc5..6ec1c28806c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Timeline cell data for Markdown timeline cells for a create request. class IncidentTimelineCellMarkdownCreateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -156,7 +156,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5b12428b242..995a6052234 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The Markdown timeline cell contents. class IncidentTimelineCellMarkdownCreateAttributesContent - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 187af87df24..cbb617082ad 100644 --- a/lib/datadog_api_client/v2/models/incident_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_update_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident's attributes for an update request. class IncidentUpdateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -95,7 +95,7 @@ def self.openapi_nullable :'customer_impact_end', :'customer_impact_start', :'detected', - :'resolved' + :'resolved', ]) end @@ -210,7 +210,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 13c05ac48c6..c34b3d48642 100644 --- a/lib/datadog_api_client/v2/models/incident_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_update_data.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Incident data for an update request. class IncidentUpdateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -164,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 cf920e909e3..b266e36563a 100644 --- a/lib/datadog_api_client/v2/models/incident_update_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_update_relationships.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The incident's relationships for an update request. class IncidentUpdateRelationships - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -164,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4467ffa307b..4e1d29f2ded 100644 --- a/lib/datadog_api_client/v2/models/incident_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_update_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Update request for an incident. class IncidentUpdateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/incidents_response.rb b/lib/datadog_api_client/v2/models/incidents_response.rb index 8f3115a75b0..d682f5b07b6 100644 --- a/lib/datadog_api_client/v2/models/incidents_response.rb +++ b/lib/datadog_api_client/v2/models/incidents_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response with a list of incidents. class IncidentsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -152,7 +152,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/incidents_response_meta.rb b/lib/datadog_api_client/v2/models/incidents_response_meta.rb index 0c59f074ece..8079d907ed3 100644 --- a/lib/datadog_api_client/v2/models/incidents_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incidents_response_meta.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The metadata object containing pagination metadata. class IncidentsResponseMeta - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb index 0a7e32ef283..0f2bb298566 100644 --- a/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Pagination properties. class IncidentsResponseMetaPagination - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5df874fb86a..969b39aed5e 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response for a list of application keys. class ListApplicationKeysResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -138,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/log.rb b/lib/datadog_api_client/v2/models/log.rb index 4b4485b6adb..fa52afbdbd9 100644 --- a/lib/datadog_api_client/v2/models/log.rb +++ b/lib/datadog_api_client/v2/models/log.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object description of a log after being processed and stored by Datadog. class Log - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/log_attributes.rb b/lib/datadog_api_client/v2/models/log_attributes.rb index 06d0593ea3d..2d9072c702d 100644 --- a/lib/datadog_api_client/v2/models/log_attributes.rb +++ b/lib/datadog_api_client/v2/models/log_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # JSON object containing all log attributes and their associated values. class LogAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -190,7 +190,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 bc7610d5560..00ccd077db3 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A bucket values class LogsAggregateBucket - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7a3d7f4e759..f345ce0774b 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A timeseries point class LogsAggregateBucketValueTimeseriesPoint - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 c29abf03c90..4ae7682a66f 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The object sent with the request to retrieve a list of logs from your organization. class LogsAggregateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -169,7 +169,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 a44cca26e85..626ba529f98 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Paging settings class LogsAggregateRequestPage - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3be28b546ad..8c59890b634 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The response object for the logs aggregate API endpoint class LogsAggregateResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 091ec766ed7..3d1b03aa7c6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The query results class LogsAggregateResponseData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 66e8338d2a6..cdc9da358cf 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A sort rule class LogsAggregateSort - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -156,7 +156,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/logs_archive.rb b/lib/datadog_api_client/v2/models/logs_archive.rb index 248cdcb2bcc..4da1fadc7d4 100644 --- a/lib/datadog_api_client/v2/models/logs_archive.rb +++ b/lib/datadog_api_client/v2/models/logs_archive.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The logs archive. class LogsArchive - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d5bd7f09c90..50c20bfc65f 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The attributes associated with the archive. class LogsArchiveAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -78,7 +78,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'destination' + :'destination', ]) end @@ -192,7 +192,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2eecdf4cffb..3c8fd1b74bf 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The logs archive. class LogsArchiveCreateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f1caf4139b2..518f4a140a2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The attributes associated with the archive. class LogsArchiveCreateRequestAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -181,7 +181,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9189f02e448..9c299fdd2b6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The definition of an archive. class LogsArchiveCreateRequestDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -140,7 +140,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e58a2c52210..5fbdda1b55c 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_definition.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The definition of an archive. class LogsArchiveDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -150,7 +150,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 c07efafaa28..770b652ac3f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The Azure archive destination. class LogsArchiveDestinationAzure - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -192,7 +192,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 a2e974fd46c..c09824c67dc 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The GCS archive destination. class LogsArchiveDestinationGCS - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -168,7 +168,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 979263df261..ef60d7ff3d7 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The S3 archive destination. class LogsArchiveDestinationS3 - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -168,7 +168,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2f942039b96..44aa5f1f94d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The Azure archive's integration destination. class LogsArchiveIntegrationAzure - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 85a337372f4..f8ac4b23e5c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The GCS archive's integration destination. class LogsArchiveIntegrationGCS - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1a8abf0bb28..9a665ae34a3 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The S3 Archive's integration destination. class LogsArchiveIntegrationS3 - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e5d9d03a706..28a55b6c326 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A ordered list of archive IDs. class LogsArchiveOrder - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9c5e1504ab4..e4816d3dfe1 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The attributes associated with the archive order. class LogsArchiveOrderAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -131,7 +131,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 20660d507c9..7bda9fee830 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The definition of an archive order. class LogsArchiveOrderDefinition - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/logs_archives.rb b/lib/datadog_api_client/v2/models/logs_archives.rb index 1f5ebb224e2..69a53708414 100644 --- a/lib/datadog_api_client/v2/models/logs_archives.rb +++ b/lib/datadog_api_client/v2/models/logs_archives.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The available archives. class LogsArchives - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/logs_compute.rb b/lib/datadog_api_client/v2/models/logs_compute.rb index 379ac0625d0..2a0819c5f6c 100644 --- a/lib/datadog_api_client/v2/models/logs_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_compute.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A compute rule to compute metrics or timeseries class LogsCompute - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -161,7 +161,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3e70efb26ba..606ff2d2e5f 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A group by rule class LogsGroupBy - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -183,7 +183,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 8a4b1e9a74b..a03b4d2248e 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 @@ -20,7 +20,7 @@ module DatadogAPIClient::V2 # Used to perform a histogram computation (only for measure facets). # Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval. class LogsGroupByHistogram - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -159,7 +159,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9b9cd3ab165..1b6aa213a71 100644 --- a/lib/datadog_api_client/v2/models/logs_list_request.rb +++ b/lib/datadog_api_client/v2/models/logs_list_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The request for a logs list. class LogsListRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -155,7 +155,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 665a99aa68f..93f161af493 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Paging attributes for listing logs. class LogsListRequestPage - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 aacad489b66..c44681ad1e9 100644 --- a/lib/datadog_api_client/v2/models/logs_list_response.rb +++ b/lib/datadog_api_client/v2/models/logs_list_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response object with all logs matching the request and pagination information. class LogsListResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d8ba9608843..b615365a159 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Links attributes. class LogsListResponseLinks - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -125,7 +125,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ad403e57e0f..88f0f7d2ad9 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_compute.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The compute rule to compute the log-based metric. class LogsMetricCompute - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -138,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2942acdbd96..1f699ed8dae 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The object describing the Datadog log-based metric to create. class LogsMetricCreateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -150,7 +150,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b32df9c8b37..0684d5215c1 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The new log-based metric properties. class LogsMetricCreateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -158,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7595c541a2c..0375842bdb2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The new log-based metric body. class LogsMetricCreateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 94d07cf295f..8b1031a4962 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_filter.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The log-based metric filter. Logs matching this filter will be aggregated in this metric. class LogsMetricFilter - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e50b266f457..c56ce4e55ea 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A group by rule. class LogsMetricGroupBy - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -138,7 +138,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9e55131ad9d..a3760179e32 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The log-based metric object. class LogsMetricResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b4bf04ff6d7..b8a43bfce3b 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The object describing a Datadog log-based metric. class LogsMetricResponseAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f627bd99297..68b26eaf32e 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The compute rule to compute the log-based metric. class LogsMetricResponseCompute - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ccd8163a5f7..9e8cb21d596 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The log-based metric properties. class LogsMetricResponseData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 8ab2c52ae8d..ab88c554b82 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The log-based metric filter. Logs matching this filter will be aggregated in this metric. class LogsMetricResponseFilter - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 83ae41dd8f3..8dbead3d3ad 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A group by rule. class LogsMetricResponseGroupBy - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f8d06b0fe9d..5a44a88fba9 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The log-based metric properties that will be updated. class LogsMetricUpdateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 645f306c841..c6df0588b1f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The new log-based metric properties. class LogsMetricUpdateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ea0ad306f44..45f1261bead 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The new log-based metric body. class LogsMetricUpdateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2bbcad31800..6de32cacf1e 100644 --- a/lib/datadog_api_client/v2/models/logs_metrics_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metrics_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # All the available log-based metric objects. class LogsMetricsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 87e5de9d1f0..1a1bf83d53b 100644 --- a/lib/datadog_api_client/v2/models/logs_query_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_query_filter.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The search and filter query settings class LogsQueryFilter - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -164,7 +164,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3478e749d91..8be8be23cdc 100644 --- a/lib/datadog_api_client/v2/models/logs_query_options.rb +++ b/lib/datadog_api_client/v2/models/logs_query_options.rb @@ -20,7 +20,7 @@ module DatadogAPIClient::V2 # Global query options that are used during the query. # Note: You should only supply timezone or time offset but not both otherwise the query will fail. class LogsQueryOptions - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -137,7 +137,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 a68ccb06682..7eed805c584 100644 --- a/lib/datadog_api_client/v2/models/logs_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/logs_response_metadata.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The metadata associated with a request class LogsResponseMetadata - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -167,7 +167,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 23af83cc6e8..5238d079190 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Paging attributes. class LogsResponseMetadataPage - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -125,7 +125,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/logs_warning.rb b/lib/datadog_api_client/v2/models/logs_warning.rb index 9514f612511..e67ee8c7811 100644 --- a/lib/datadog_api_client/v2/models/logs_warning.rb +++ b/lib/datadog_api_client/v2/models/logs_warning.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A warning message indicating something that went wrong with the query class LogsWarning - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/metric.rb b/lib/datadog_api_client/v2/models/metric.rb index 9776595c915..438aa23c8ca 100644 --- a/lib/datadog_api_client/v2/models/metric.rb +++ b/lib/datadog_api_client/v2/models/metric.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object for a single metric tag configuration. class Metric - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ed45fdb28bf..51f7c135138 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object for a single metric's indexed tags. class MetricAllTags - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 8cb5d3f1dbe..7ad020f34e6 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object containing the definition of a metric's tags. class MetricAllTagsAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b943dc9dfc2..8ced5615191 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response object that includes a single metric's indexed tags. class MetricAllTagsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 afdc72ee9ad..2bdebad72ed 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A time and space aggregation combination for use in query. class MetricCustomAggregation - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 31aa484aeff..2d5e45210ae 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object for a single metric's distinct volume. class MetricDistinctVolume - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 1725fad32e2..cf87d6283ef 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object containing the definition of a metric's distinct volume. class MetricDistinctVolumeAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 91214d16ec7..770f15d83ea 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object for a single metric's ingested and indexed volume. class MetricIngestedIndexedVolume - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0e2abcb631f..8a1379180aa 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object containing the definition of a metric's ingested and indexed volume. class MetricIngestedIndexedVolumeAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 c6d6c54b826..a6d0b5a42a8 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object for a single metric tag configuration. class MetricTagConfiguration - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d5aeb0cff8b..6f70b633efa 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object containing the definition of a metric tag configuration attributes. class MetricTagConfigurationAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -196,7 +196,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 97884e0b06e..5dee7d7a8aa 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object containing the definition of a metric tag configuration to be created. class MetricTagConfigurationCreateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -188,7 +188,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ec3b05654e3..1d055b53296 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object for a single metric to be configure tags on. class MetricTagConfigurationCreateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 045c076a5f7..72201ff35cd 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Request object that includes the metric that you would like to configure tags for. class MetricTagConfigurationCreateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 71b702ba35c..8aa92efa34c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response object which includes a single metric's tag configuration. class MetricTagConfigurationResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 74fe7328cce..b7a2f282c3f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object containing the definition of a metric tag configuration to be updated. class MetricTagConfigurationUpdateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -168,7 +168,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 49c26d54f3c..2aee09fc114 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object for a single tag configuration to be edited. class MetricTagConfigurationUpdateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 6b7f117444b..42a7fd57f17 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Request object that includes the metric that you would like to edit the tag configuration on. class MetricTagConfigurationUpdateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 312a204159d..51a15d03bdc 100644 --- a/lib/datadog_api_client/v2/models/metric_volumes_response.rb +++ b/lib/datadog_api_client/v2/models/metric_volumes_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response object which includes a single metric's volume. class MetricVolumesResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7e2ae6cf618..7a8a53c74c3 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response object that includes metrics and metric tag configurations. class MetricsAndMetricTagConfigurationsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/organization.rb b/lib/datadog_api_client/v2/models/organization.rb index 1bb7fa8c244..2c7e4fa2e80 100644 --- a/lib/datadog_api_client/v2/models/organization.rb +++ b/lib/datadog_api_client/v2/models/organization.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Organization object. class Organization - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -150,7 +150,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/organization_attributes.rb b/lib/datadog_api_client/v2/models/organization_attributes.rb index c50ee6ed80f..67fcbbad7ea 100644 --- a/lib/datadog_api_client/v2/models/organization_attributes.rb +++ b/lib/datadog_api_client/v2/models/organization_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of the organization. class OrganizationAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -194,7 +194,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/pagination.rb b/lib/datadog_api_client/v2/models/pagination.rb index 51eb7d96f88..a489891d370 100644 --- a/lib/datadog_api_client/v2/models/pagination.rb +++ b/lib/datadog_api_client/v2/models/pagination.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Pagination object. class Pagination - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 144c7112a66..d255cb350bd 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Partial Datadog API key. class PartialAPIKey - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -156,7 +156,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ecfc61eb5f5..b6c62dfb774 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of a partial API key. class PartialAPIKeyAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2fca844f2db..dee9f388a92 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Partial Datadog application key. class PartialApplicationKey - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -156,7 +156,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 c1e672fb3b6..04d177ef2a2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of a partial application key. class PartialApplicationKeyAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -67,7 +67,7 @@ def self.openapi_types # @!visibility private def self.openapi_nullable Set.new([ - :'scopes' + :'scopes', ]) end @@ -157,7 +157,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 4c53b005ca8..ba00ca1e49d 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response for retrieving a partial application key. class PartialApplicationKeyResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/permission.rb b/lib/datadog_api_client/v2/models/permission.rb index 5fead0ccc41..90f34a9fc94 100644 --- a/lib/datadog_api_client/v2/models/permission.rb +++ b/lib/datadog_api_client/v2/models/permission.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Permission object. class Permission - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -150,7 +150,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/permission_attributes.rb b/lib/datadog_api_client/v2/models/permission_attributes.rb index 0d48ca8a69b..a13f540717d 100644 --- a/lib/datadog_api_client/v2/models/permission_attributes.rb +++ b/lib/datadog_api_client/v2/models/permission_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of a permission. class PermissionAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -184,7 +184,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/permissions_response.rb b/lib/datadog_api_client/v2/models/permissions_response.rb index 633a4ac0b7d..0dab76996e2 100644 --- a/lib/datadog_api_client/v2/models/permissions_response.rb +++ b/lib/datadog_api_client/v2/models/permissions_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Payload with API-returned permissions. class PermissionsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 fa3bbb37a49..aba78212541 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_meta.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_meta.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response metadata object. class ProcessSummariesMeta - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 adee9dd5635..de2d9394912 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Paging attributes. class ProcessSummariesMetaPage - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -135,7 +135,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 297a0ed84d4..0bc61a6c3d4 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_response.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # List of process summaries. class ProcessSummariesResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/process_summary.rb b/lib/datadog_api_client/v2/models/process_summary.rb index e927cc2c102..15c6a18502b 100644 --- a/lib/datadog_api_client/v2/models/process_summary.rb +++ b/lib/datadog_api_client/v2/models/process_summary.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Process summary object. class ProcessSummary - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3263534a056..c122a31701a 100644 --- a/lib/datadog_api_client/v2/models/process_summary_attributes.rb +++ b/lib/datadog_api_client/v2/models/process_summary_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes for a process summary. class ProcessSummaryAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -196,7 +196,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5e3e1238cff..303df9ff0f2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A relationship reference for an integration metadata object. class RelationshipToIncidentIntegrationMetadataData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 034740493f1..f9bf04f8dd0 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A relationship reference for multiple integration metadata objects. class RelationshipToIncidentIntegrationMetadatas - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -130,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0db62ba9023..11e612431c9 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A relationship reference for postmortems. class RelationshipToIncidentPostmortem - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 2a6a0907c22..a51decf2127 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The postmortem relationship data. class RelationshipToIncidentPostmortemData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 8a6324f6b7b..8329121cf4c 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organization.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organization.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationship to an organization. class RelationshipToOrganization - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 c61524ee486..de2539550bf 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationship to organization object. class RelationshipToOrganizationData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b158bd25f75..84a221c0a6b 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organizations.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organizations.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationship to organizations. class RelationshipToOrganizations - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -130,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b462149d4e3..aeba7167c9c 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permission.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permission.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationship to a permissions object. class RelationshipToPermission - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 90ab4a33b86..36b9336e7c1 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationship to permission object. class RelationshipToPermissionData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 70d72a68ce9..ee41ce56694 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permissions.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permissions.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationship to multiple permissions objects. class RelationshipToPermissions - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e4b5aa0c2b5..62a5a79628f 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_role.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_role.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationship to role. class RelationshipToRole - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 963e676c58c..c51c874eef3 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationship to role object. class RelationshipToRoleData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e67deadf6dc..9e174fb1ebb 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_roles.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_roles.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationship to roles. class RelationshipToRoles - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 bd9e2dbed17..b97d2ab68d5 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationship to user. class RelationshipToUser - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 930dc8e80f1..546d6726f80 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationship to user object. class RelationshipToUserData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ddb777d0b30..2ae12cdbd3b 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_users.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_users.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationship to users. class RelationshipToUsers - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -130,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e0749e80892..cebf678629d 100644 --- a/lib/datadog_api_client/v2/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v2/models/response_meta_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object describing meta attributes of response. class ResponseMetaAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/role.rb b/lib/datadog_api_client/v2/models/role.rb index ec630caad42..eb38f427c11 100644 --- a/lib/datadog_api_client/v2/models/role.rb +++ b/lib/datadog_api_client/v2/models/role.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Role object returned by the API. class Role - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -160,7 +160,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/role_attributes.rb b/lib/datadog_api_client/v2/models/role_attributes.rb index b9d8368655a..7dd64a1cbd4 100644 --- a/lib/datadog_api_client/v2/models/role_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of the role. class RoleAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/role_clone.rb b/lib/datadog_api_client/v2/models/role_clone.rb index 55ac7dfcc19..6931b20606e 100644 --- a/lib/datadog_api_client/v2/models/role_clone.rb +++ b/lib/datadog_api_client/v2/models/role_clone.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Data for the clone role request. class RoleClone - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 994b8178db8..2ae1fee0810 100644 --- a/lib/datadog_api_client/v2/models/role_clone_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_clone_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes required to create a new role by cloning an existing one. class RoleCloneAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 563b2c43741..7ba54fdc79a 100644 --- a/lib/datadog_api_client/v2/models/role_clone_request.rb +++ b/lib/datadog_api_client/v2/models/role_clone_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Request to create a role by cloning an existing role. class RoleCloneRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 07538317fa0..3ea99e83743 100644 --- a/lib/datadog_api_client/v2/models/role_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_create_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of the created role. class RoleCreateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -148,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 a0bbe7fea86..ab4e60ca165 100644 --- a/lib/datadog_api_client/v2/models/role_create_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_data.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Data related to the creation of a role. class RoleCreateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -150,7 +150,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 516a84b0a20..2d0126cad89 100644 --- a/lib/datadog_api_client/v2/models/role_create_request.rb +++ b/lib/datadog_api_client/v2/models/role_create_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Create a role. class RoleCreateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d7d8ae9b63d..1b9aa8e3d9f 100644 --- a/lib/datadog_api_client/v2/models/role_create_response.rb +++ b/lib/datadog_api_client/v2/models/role_create_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response containing information about a created role. class RoleCreateResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 3023f921b8c..e97d207695c 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Role object returned by the API. class RoleCreateResponseData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -160,7 +160,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/role_relationships.rb b/lib/datadog_api_client/v2/models/role_relationships.rb index aed0eb59b0a..39e3cba86ae 100644 --- a/lib/datadog_api_client/v2/models/role_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_relationships.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationships of the role object. class RoleRelationships - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/role_response.rb b/lib/datadog_api_client/v2/models/role_response.rb index 9a81c8fa938..db0a65800ed 100644 --- a/lib/datadog_api_client/v2/models/role_response.rb +++ b/lib/datadog_api_client/v2/models/role_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response containing information about a single role. class RoleResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5310373fd3a..6ca6e0919d5 100644 --- a/lib/datadog_api_client/v2/models/role_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_response_relationships.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationships of the role object returned by the API. class RoleResponseRelationships - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 fcce8a41e26..8519b120a3b 100644 --- a/lib/datadog_api_client/v2/models/role_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_update_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of the role. class RoleUpdateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 99f3feaa992..2472de6e03b 100644 --- a/lib/datadog_api_client/v2/models/role_update_data.rb +++ b/lib/datadog_api_client/v2/models/role_update_data.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Data related to the update of a role. class RoleUpdateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -158,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 6ca7d91250f..be48062f4ee 100644 --- a/lib/datadog_api_client/v2/models/role_update_request.rb +++ b/lib/datadog_api_client/v2/models/role_update_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Update a role. class RoleUpdateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d8c93d67d82..7e0286b8d31 100644 --- a/lib/datadog_api_client/v2/models/role_update_response.rb +++ b/lib/datadog_api_client/v2/models/role_update_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response containing information about an updated role. class RoleUpdateResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 bc356332710..9004147f0d2 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Role object returned by the API. class RoleUpdateResponseData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -160,7 +160,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/roles_response.rb b/lib/datadog_api_client/v2/models/roles_response.rb index 0667557248d..eb7fb53c870 100644 --- a/lib/datadog_api_client/v2/models/roles_response.rb +++ b/lib/datadog_api_client/v2/models/roles_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response containing information about multiple roles. class RolesResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/security_filter.rb b/lib/datadog_api_client/v2/models/security_filter.rb index 7afca05d200..abb1a5fb4c1 100644 --- a/lib/datadog_api_client/v2/models/security_filter.rb +++ b/lib/datadog_api_client/v2/models/security_filter.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The security filter's properties. class SecurityFilter - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 a1a10592965..bad80110a5e 100644 --- a/lib/datadog_api_client/v2/models/security_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The object describing a security filter. class SecurityFilterAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -186,7 +186,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d81cfddb50b..84d413909b5 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object containing the attributes of the security filter to be created. class SecurityFilterCreateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -186,7 +186,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 cfc89b4aaa3..a07a559838f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object for a single security filter. class SecurityFilterCreateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 63327a6c2d9..3b0f93920bf 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Request object that includes the security filter that you would like to create. class SecurityFilterCreateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 efb6c487080..2b1b758a91a 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Exclusion filter for the security filter. class SecurityFilterExclusionFilter - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -142,7 +142,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 fe7eb5ee6f3..3e4cc1a02f5 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # A single exclusion filter. class SecurityFilterExclusionFilterResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ea0a4faa87e..3f06a5461ca 100644 --- a/lib/datadog_api_client/v2/models/security_filter_meta.rb +++ b/lib/datadog_api_client/v2/models/security_filter_meta.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Optional metadata associated to the response. class SecurityFilterMeta - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ebb8c6e17b6..50e19d0b378 100644 --- a/lib/datadog_api_client/v2/models/security_filter_response.rb +++ b/lib/datadog_api_client/v2/models/security_filter_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response object which includes a single security filter. class SecurityFilterResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 583d8d09e60..aecabd4dfa5 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The security filters properties to be updated. class SecurityFilterUpdateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -176,7 +176,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f55d00af961..d5be0b1aeb8 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The new security filter properties. class SecurityFilterUpdateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 af8eeb00b96..227170e526a 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The new security filter body. class SecurityFilterUpdateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9686c6ec8e2..8389aca0ecd 100644 --- a/lib/datadog_api_client/v2/models/security_filters_response.rb +++ b/lib/datadog_api_client/v2/models/security_filters_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # All the available security filters objects. class SecurityFiltersResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 6a797d7d16e..4a5fd2bc41b 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_filter.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_filter.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The rule's suppression filter. class SecurityMonitoringFilter - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -134,7 +134,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 0dc258e2702..33b4c4284c0 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # List of rules. class SecurityMonitoringListRulesResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 9ebf8684ea1..4767b53e2ab 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Case when signal is generated. class SecurityMonitoringRuleCase - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -157,7 +157,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f688a6aa751..f087c6494fc 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Case when signal is generated. class SecurityMonitoringRuleCaseCreate - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -161,7 +161,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb index 82c8f60d829..aa2c17b27c2 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Create a new rule. class SecurityMonitoringRuleCreatePayload - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -246,7 +246,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b1404e18086..3dd036d4479 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Options on new value rules. class SecurityMonitoringRuleNewValueOptions - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -135,7 +135,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 bdf0938428d..065d7ea118f 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Options on rules. class SecurityMonitoringRuleOptions - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -167,7 +167,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb index f62627665e0..43a7d093dfc 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Query for matching rule. class SecurityMonitoringRuleQuery - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -179,7 +179,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb index 8d0cbde38bc..fdc601bbf62 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Query for matching rule. class SecurityMonitoringRuleQueryCreate - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -183,7 +183,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb index 8053415dca0..92ba8801cf0 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Rule. class SecurityMonitoringRuleResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -292,7 +292,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 6a4fb00eaf1..e8dcf4ffc94 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Update an existing rule. class SecurityMonitoringRuleUpdatePayload - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -222,7 +222,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 85b1e6a80af..fb5f1d75e45 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object description of a security signal. class SecurityMonitoringSignal - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -147,7 +147,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 22181328f0b..511bef5e1d1 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 @@ -20,7 +20,7 @@ module DatadogAPIClient::V2 # The object containing all signal attributes and their # associated values. class SecurityMonitoringSignalAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -155,7 +155,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b22d55fe880..b0f1348ac1e 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The request for a security signal list. class SecurityMonitoringSignalListRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 df169f8e2e5..9d8fbcf6f32 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Search filters for listing security signals. class SecurityMonitoringSignalListRequestFilter - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 61a2c7519d1..ebc94241c54 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # The paging attributes for listing security signals. class SecurityMonitoringSignalListRequestPage - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 77aad3c6d27..6294827ed7c 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 @@ -20,7 +20,7 @@ module DatadogAPIClient::V2 # The response object with all security signals matching the request # and pagination information. class SecurityMonitoringSignalsListResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -147,7 +147,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 17b70ee5cb7..c799ad02857 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Links attributes. class SecurityMonitoringSignalsListResponseLinks - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -125,7 +125,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 e90b08ff582..189fe6ccdf5 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Meta attributes. class SecurityMonitoringSignalsListResponseMeta - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 12260168fe7..52589daa127 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Paging attributes. class SecurityMonitoringSignalsListResponseMetaPage - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -125,7 +125,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 59807b27c00..3821527cd44 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of the created user. class ServiceAccountCreateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -162,7 +162,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 fd22fbc6dd1..b6d5744bc90 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object to create a service account User. class ServiceAccountCreateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 d5df61779a1..3e3a399c897 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Create a service account. class ServiceAccountCreateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/user.rb b/lib/datadog_api_client/v2/models/user.rb index 07bf33adcbc..40c293a2575 100644 --- a/lib/datadog_api_client/v2/models/user.rb +++ b/lib/datadog_api_client/v2/models/user.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # User object returned by the API. class User - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -156,7 +156,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/user_attributes.rb b/lib/datadog_api_client/v2/models/user_attributes.rb index b78d9e5a61e..fb3601cfaa4 100644 --- a/lib/datadog_api_client/v2/models/user_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of user object returned by the API. class UserAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -103,7 +103,7 @@ def self.openapi_types def self.openapi_nullable Set.new([ :'name', - :'title' + :'title', ]) end @@ -226,7 +226,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 a5e1096d825..1e1971c3e62 100644 --- a/lib/datadog_api_client/v2/models/user_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_create_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of the created user. class UserCreateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -148,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 b2906504b8f..505dc2e356e 100644 --- a/lib/datadog_api_client/v2/models/user_create_data.rb +++ b/lib/datadog_api_client/v2/models/user_create_data.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object to create a user. class UserCreateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 721d96bcf41..b7b92af0c00 100644 --- a/lib/datadog_api_client/v2/models/user_create_request.rb +++ b/lib/datadog_api_client/v2/models/user_create_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Create a user. class UserCreateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 efb8121ac8b..c564fe5dd40 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_data.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_data.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object to create a user invitation. class UserInvitationData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 cc527b5a14d..c7b6b52a837 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of a user invitation. class UserInvitationDataAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 7ee2a201f99..6e117d6d5e1 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_relationships.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationships data for user invitation. class UserInvitationRelationships - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 f54bae5b0d6..1b90d1e53f5 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # User invitation as returned by the API. class UserInvitationResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 673ed7ed4ea..39191adc8fd 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 @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object of a user invitation returned by the API. class UserInvitationResponseData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -146,7 +146,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5973ace720d..397e1aef935 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_request.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object to invite users to join the organization. class UserInvitationsRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -130,7 +130,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 5353eef877c..b287430314f 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # User invitations as returned by the API. class UserInvitationsResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -126,7 +126,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/user_relationships.rb b/lib/datadog_api_client/v2/models/user_relationships.rb index 3ff32375664..6fe173859c0 100644 --- a/lib/datadog_api_client/v2/models/user_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_relationships.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationships of the user object. class UserRelationships - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -124,7 +124,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/user_response.rb b/lib/datadog_api_client/v2/models/user_response.rb index e35d325c253..44d6463c403 100644 --- a/lib/datadog_api_client/v2/models/user_response.rb +++ b/lib/datadog_api_client/v2/models/user_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response containing information about a single user. class UserResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -136,7 +136,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 045cd331da0..9b71852c8f1 100644 --- a/lib/datadog_api_client/v2/models/user_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_response_relationships.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Relationships of the user object returned by the API. class UserResponseRelationships - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -154,7 +154,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 ee15c0cd463..6ce77afb853 100644 --- a/lib/datadog_api_client/v2/models/user_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_update_attributes.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Attributes of the edited user. class UserUpdateAttributes - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -144,7 +144,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 477a023826a..74fba46bb16 100644 --- a/lib/datadog_api_client/v2/models/user_update_data.rb +++ b/lib/datadog_api_client/v2/models/user_update_data.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Object to update a user. class UserUpdateData - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -158,7 +158,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(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 fa8c5b38c15..406e4508934 100644 --- a/lib/datadog_api_client/v2/models/user_update_request.rb +++ b/lib/datadog_api_client/v2/models/user_update_request.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Update a user. class UserUpdateRequest - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -128,7 +128,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) diff --git a/lib/datadog_api_client/v2/models/users_response.rb b/lib/datadog_api_client/v2/models/users_response.rb index 89c981451ba..d913180351b 100644 --- a/lib/datadog_api_client/v2/models/users_response.rb +++ b/lib/datadog_api_client/v2/models/users_response.rb @@ -19,7 +19,7 @@ module DatadogAPIClient::V2 # Response containing information about multiple users. class UsersResponse - # whether the object has unparsed attributes + # Whether the object has unparsed attributes # @!visibility private attr_accessor :_unparsed @@ -148,7 +148,7 @@ def self.build_from_hash(attributes) end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself # @!visibility private def build_from_hash(attributes) From 9896b123996a357d4ed0648d82543d4fc2594714 Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Fri, 4 Feb 2022 16:36:28 +0100 Subject: [PATCH 04/23] less diff --- .generator/src/generator/cli.py | 1 + .generator/src/generator/openapi.py | 10 +++ .generator/src/generator/templates/api.j2 | 69 ++++++++++--------- lib/datadog_api_client/v1/api/events_api.rb | 7 ++ lib/datadog_api_client/v1/api/logs_api.rb | 4 ++ lib/datadog_api_client/v1/api/metrics_api.rb | 4 ++ lib/datadog_api_client/v1/api/monitors_api.rb | 5 +- .../v1/api/notebooks_api.rb | 20 +++--- .../v1/api/service_level_objectives_api.rb | 6 ++ .../v1/api/usage_metering_api.rb | 53 ++++++++++++++ .../v2/api/incident_services_api.rb | 8 +++ .../v2/api/incident_teams_api.rb | 8 +++ .../v2/api/key_management_api.rb | 12 ++++ lib/datadog_api_client/v2/api/logs_api.rb | 11 +++ lib/datadog_api_client/v2/api/metrics_api.rb | 4 ++ .../v2/api/processes_api.rb | 6 ++ lib/datadog_api_client/v2/api/roles_api.rb | 4 ++ .../v2/api/security_monitoring_api.rb | 7 ++ .../v2/api/service_accounts_api.rb | 4 ++ lib/datadog_api_client/v2/api/users_api.rb | 4 ++ 20 files changed, 205 insertions(+), 42 deletions(-) diff --git a/.generator/src/generator/cli.py b/.generator/src/generator/cli.py index 21558067940..3e65f5ce6c6 100644 --- a/.generator/src/generator/cli.py +++ b/.generator/src/generator/cli.py @@ -44,6 +44,7 @@ def cli(input, output): env.filters["parameters"] = openapi.parameters env.filters["return_type"] = openapi.return_type env.filters["snake_case"] = formatter.snake_case + env.filters["parameter_schema"] = openapi.parameter_schema env.globals["config"] = config env.globals["enumerate"] = enumerate diff --git a/.generator/src/generator/openapi.py b/.generator/src/generator/openapi.py index 911a0b76c0e..37750b7e069 100644 --- a/.generator/src/generator/openapi.py +++ b/.generator/src/generator/openapi.py @@ -225,6 +225,16 @@ def parameters(operation): yield name, operation["requestBody"] +def parameter_schema(parameter): + if "schema" in parameter: + return parameter["schema"] + if "content" in parameter: + for content in parameter.get("content", {}).values(): + if "schema" in content: + return content["schema"] + raise ValueError(f"Unknown schema for parameter {parameter}") + + def return_type(operation): for response in operation.get("responses", {}).values(): for content in response.get("content", {}).values(): diff --git a/.generator/src/generator/templates/api.j2 b/.generator/src/generator/templates/api.j2 index 0d40f882e7e..2fee3a9dbc0 100644 --- a/.generator/src/generator/templates/api.j2 +++ b/.generator/src/generator/templates/api.j2 @@ -62,24 +62,25 @@ module {{ config.moduleName }} end {%- for name, parameter in operation|parameters %} + {%- set schema = parameter|parameter_schema %} {%- if parameter.required %} {%- if not parameter.nullable %} # verify the required parameter '{{ name|attribute_name }}' is set if @api_client.config.client_side_validation && {{ name|attribute_name }}.nil? fail ArgumentError, "Missing the required parameter '{{ name|attribute_name }}' when calling {{classname}}.{{ operation.operationId|snake_case }}" end - {%- if "enum" in parameter and not parameter|collection_format %} + {%- if schema.enum is defined and not schema|collection_format %} # verify enum value - allowable_values = [{% for value in parameter.enum %}{{ value|format_value }}{%- if not loop.last %}, {% endif %}{% endfor %}] + allowable_values = [{% for value in schema.enum %}{{ value|format_value }}{%- if not loop.last %}, {% endif %}{% endfor %}] if @api_client.config.client_side_validation && !allowable_values.include?({{ name|attribute_name }}) fail ArgumentError, "invalid value for \"{{ name|attribute_name }}\", must be one of #{allowable_values}" end {%- endif %} {%- endif %} {%- else %} - {%- if "enum" in parameter %} - allowable_values = [{% for value in parameter.enum %}{{ value|format_value }}{%- if not loop.last %}, {% endif %}{% endfor %}] - {%- if parameter|collection_format %} + {%- if schema.enum is defined %} + allowable_values = [{% for value in schema.enum %}{{ value|format_value }}{%- if not loop.last %}, {% endif %}{% endfor %}] + {%- if schema|collection_format %} if @api_client.config.client_side_validation && opts[:'{{ name|attribute_name }}'] && !opts[:'{{ name|attribute_name }}'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"{{ name|attribute_name }}\", must include one of #{allowable_values}" end @@ -91,46 +92,46 @@ module {{ config.moduleName }} {%- endif %} {%- endif %} - {%- if parameter.maxLength is defined %} - if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %}.to_s.length > {{ parameter.maxLength }} - fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, the character length must be smaller than or equal to {{ parameter.maxLength }}.' + {%- if schema.maxLength is defined %} + if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %}.to_s.length > {{ schema.maxLength }} + fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, the character length must be smaller than or equal to {{ schema.maxLength }}.' end {%- endif %} - {%- if parameter.minLength is defined %} - if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %}.to_s.length < {{ parameter.minLength }} - fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, the character length must be great than or equal to {{ parameter.minLength }}.' + {%- if schema.minLength is defined %} + if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %}.to_s.length < {{ schema.minLength }} + fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, the character length must be great than or equal to {{ schema.minLength }}.' end {%- endif %} - {%- if parameter.maximum is defined %} - if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %} >{% if parameter.exclusiveMaximum %}={% endif %} {{ parameter.maximum }} - fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, must be smaller than {% if not parameter.exclusiveMaximum %}or equal to {% endif %}{{ parameter.maximum }}.' + {%- if schema.maximum is defined %} + if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %} >{% if parameter.exclusiveMaximum %}={% endif %} {{ schema.maximum }} + fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, must be smaller than {% if not parameter.exclusiveMaximum %}or equal to {% endif %}{{ schema.maximum }}.' end {%- endif %} - {%- if parameter.minimum is defined %} - if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %} <{% if parameter.exclusiveMinimum %}={% endif %} {{ parameter.minimum }} - fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, must be greater than {% if not parameter.exclusiveMinimum %}or equal to {% endif %}{{ parameter.minimum }}.' + {%- if schema.minimum is defined %} + if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %} <{% if parameter.exclusiveMinimum %}={% endif %} {{ schema.minimum }} + fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, must be greater than {% if not parameter.exclusiveMinimum %}or equal to {% endif %}{{ schema.minimum }}.' end {%- endif %} - {%- if parameter.pattern is defined %} - pattern = Regexp.new({{ parameter.pattern }}) + {%- if schema.pattern is defined %} + pattern = Regexp.new({{ schema.pattern }}) if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %} !~ pattern fail ArgumentError, "invalid value for '{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:\"{{ name|attribute_name }}\"]{% endif %}' when calling {{classname}}.{{ operation.operationId }}, must conform to the pattern #{pattern}." end {%- endif %} - {%- if parameter.maxItems is defined %} - if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %}.length > {{ parameter.maxItems }} - fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, number of items must be less than or equal to {{ parameter.maxItems }}.' + {%- if schema.maxItems is defined %} + if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %}.length > {{ schema.maxItems }} + fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, number of items must be less than or equal to {{ schema.maxItems }}.' end {%- endif %} - {%- if parameter.minItems is defined %} - if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %}.length < {{ parameter.minItems }} - fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, number of items must be greater than or equal to {{ parameter.minItems }}.' + {%- if schema.minItems is defined %} + if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %}.length < {{ schema.minItems }} + fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, number of items must be greater than or equal to {{ schema.minItems }}.' end {%- endif %} @@ -141,10 +142,12 @@ module {{ config.moduleName }} # query parameters query_params = opts[:query_params] || {} {%- for name, parameter in operation|parameters if parameter.in == "query" and parameter.required %} - query_params[:'{{ name }}'] = {% if parameter|collection_format %}@api_client.build_collection_param({{ name|attribute_name }}, :{{ parameter|collection_format }}){% else %}{{ name|attribute_name }}{% endif %} + {%- set collection = parameter|parameter_schema|collection_format %} + query_params[:'{{ name }}'] = {% if collection %}@api_client.build_collection_param({{ name|attribute_name }}, :{{ collection }}){% else %}{{ name|attribute_name }}{% endif %} {%- endfor %} {%- for name, parameter in operation|parameters if parameter.in == "query" and not parameter.required %} - query_params[:'{{ name }}'] = {% if parameter|collection_format %}@api_client.build_collection_param(opts[:'{{ name|attribute_name }}'], :{{ parameter|collection_format }}){% else %}opts[:'{{ name|attribute_name }}']{% endif %} if !opts[:'{{ name|attribute_name }}'].nil? + {%- set collection = parameter|parameter_schema|collection_format %} + query_params[:'{{ name }}'] = {% if collection %}@api_client.build_collection_param(opts[:'{{ name|attribute_name }}'], :{{ collection }}){% else %}opts[:'{{ name|attribute_name }}']{% endif %} if !opts[:'{{ name|attribute_name }}'].nil? {%- endfor %} # header parameters @@ -160,19 +163,23 @@ module {{ config.moduleName }} {%- endif %} {%- for name, parameter in operation|parameters if parameter.in == "header" and parameter.required %} - header_params['{{ name }}'] = {% if parameter|collection_format %}@api_client.build_collection_param({{ name|attribute_name }}, :{{ parameter|collection_format }}){% else %}{ name|attribute_name }}{% endif %} + {%- set collection = parameter|parameter_schema|collection_format %} + header_params['{{ name }}'] = {% if collection %}@api_client.build_collection_param({{ name|attribute_name }}, :{{ collection }}){% else %}{ name|attribute_name }}{% endif %} {%- endfor %} {%- for name, parameter in operation|parameters if parameter.in == "header" and not parameter.required %} - header_params['{{ name }}'] = {% if parameter|collection_format %}@api_client.build_collection_param(opts[:'{{ name|attribute_name }}'], :{{ parameter|collection_format }}){% else %}opts[:'{{ name|attribute_name }}']{% endif %} if !opts[:'{{ name|attribute_name }}'].nil? + {%- set collection = parameter|parameter_schema|collection_format %} + header_params['{{ name }}'] = {% if collection %}@api_client.build_collection_param(opts[:'{{ name|attribute_name }}'], :{{ collection }}){% else %}opts[:'{{ name|attribute_name }}']{% endif %} if !opts[:'{{ name|attribute_name }}'].nil? {%- endfor %} # form parameters form_params = opts[:form_params] || {} {%- for name, parameter in operation|parameters if parameter.in == "form" and parameter.required %} - form_params['{{baseName}}'] = {% if parameter|collection_format %}@api_client.build_collection_param({{ name|attribute_name }}, :{{ parameter|collection_format }}){% else %}{ name|attribute_name }}{% endif %} + {%- set collection = parameter|parameter_schema|collection_format %} + form_params['{{baseName}}'] = {% if collection %}@api_client.build_collection_param({{ name|attribute_name }}, :{{ collection }}){% else %}{ name|attribute_name }}{% endif %} {%- endfor %} {%- for name, parameter in operation|parameters if parameter.in == "form" and not parameter.required %} - form_params['{{baseName}}'] = {% if parameter|collection_format %}@api_client.build_collection_param(opts[:'{{ name|attribute_name }}'], :{{ parameter|collection_format }}){% else %}opts[:'{{ name|attribute_name }}']{% endif %} if !opts[:'{{ name|attribute_name }}'].nil? + {%- set collection = parameter|parameter_schema|collection_format %} + form_params['{{baseName}}'] = {% if collection %}@api_client.build_collection_param(opts[:'{{ name|attribute_name }}'], :{{ collection }}){% else %}opts[:'{{ name|attribute_name }}']{% endif %} if !opts[:'{{ name|attribute_name }}'].nil? {%- endfor %} # http body (model) diff --git a/lib/datadog_api_client/v1/api/events_api.rb b/lib/datadog_api_client/v1/api/events_api.rb index 4b191b67d31..84c952f68b2 100644 --- a/lib/datadog_api_client/v1/api/events_api.rb +++ b/lib/datadog_api_client/v1/api/events_api.rb @@ -246,6 +246,13 @@ def list_events_with_http_info(start, _end, opts = {}) if @api_client.config.client_side_validation && _end.nil? fail ArgumentError, "Missing the required parameter '_end' when calling EventsAPI.list_events" end + allowable_values = ['normal', 'low'] + if @api_client.config.client_side_validation && opts[:'priority'] && !allowable_values.include?(opts[:'priority']) + fail ArgumentError, "invalid value for \"priority\", must be one of #{allowable_values}" + end + if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] > 2147483647 + fail ArgumentError, 'invalid value for "opts[:"page"]" when calling EventsAPI.ListEvents, must be smaller than or equal to 2147483647.' + end # resource path local_var_path = '/api/v1/events' diff --git a/lib/datadog_api_client/v1/api/logs_api.rb b/lib/datadog_api_client/v1/api/logs_api.rb index 7eb7076efe4..fc1d83c44c3 100644 --- a/lib/datadog_api_client/v1/api/logs_api.rb +++ b/lib/datadog_api_client/v1/api/logs_api.rb @@ -183,6 +183,10 @@ def submit_log_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LogsAPI.submit_log ...' end + allowable_values = ['gzip', 'deflate'] + if @api_client.config.client_side_validation && opts[:'content_encoding'] && !allowable_values.include?(opts[:'content_encoding']) + fail ArgumentError, "invalid value for \"content_encoding\", must be one of #{allowable_values}" + end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling LogsAPI.submit_log" diff --git a/lib/datadog_api_client/v1/api/metrics_api.rb b/lib/datadog_api_client/v1/api/metrics_api.rb index 687f83a7740..78023a1b3b1 100644 --- a/lib/datadog_api_client/v1/api/metrics_api.rb +++ b/lib/datadog_api_client/v1/api/metrics_api.rb @@ -389,6 +389,10 @@ def submit_metrics_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.submit_metrics ...' end + allowable_values = ['deflate'] + if @api_client.config.client_side_validation && opts[:'content_encoding'] && !allowable_values.include?(opts[:'content_encoding']) + fail ArgumentError, "invalid value for \"content_encoding\", must be one of #{allowable_values}" + end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling MetricsAPI.submit_metrics" diff --git a/lib/datadog_api_client/v1/api/monitors_api.rb b/lib/datadog_api_client/v1/api/monitors_api.rb index ce3f113b250..830cdda332d 100644 --- a/lib/datadog_api_client/v1/api/monitors_api.rb +++ b/lib/datadog_api_client/v1/api/monitors_api.rb @@ -61,7 +61,7 @@ def check_can_delete_monitor_with_http_info(monitor_ids, opts = {}) # query parameters query_params = opts[:query_params] || {} - query_params[:'monitor_ids'] = @api_client.build_collection_param(monitor_ids, :csv) + query_params[:'monitor_ids'] = monitor_ids # header parameters header_params = opts[:header_params] || {} @@ -683,6 +683,9 @@ def list_monitors_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MonitorsAPI.list_monitors ...' end + if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000 + fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling MonitorsAPI.ListMonitors, must be smaller than or equal to 1000.' + end # resource path local_var_path = '/api/v1/monitor' diff --git a/lib/datadog_api_client/v1/api/notebooks_api.rb b/lib/datadog_api_client/v1/api/notebooks_api.rb index e30be9891bd..c7514e5b435 100644 --- a/lib/datadog_api_client/v1/api/notebooks_api.rb +++ b/lib/datadog_api_client/v1/api/notebooks_api.rb @@ -298,16 +298,16 @@ def list_notebooks_with_http_info(opts = {}) # query parameters query_params = opts[:query_params] || {} - query_params[:'author_handle'] = @api_client.build_collection_param(opts[:'author_handle'], :multi) if !opts[:'author_handle'].nil? - query_params[:'exclude_author_handle'] = @api_client.build_collection_param(opts[:'exclude_author_handle'], :multi) if !opts[:'exclude_author_handle'].nil? - query_params[:'start'] = @api_client.build_collection_param(opts[:'start'], :multi) if !opts[:'start'].nil? - query_params[:'count'] = @api_client.build_collection_param(opts[:'count'], :multi) if !opts[:'count'].nil? - query_params[:'sort_field'] = @api_client.build_collection_param(opts[:'sort_field'], :multi) if !opts[:'sort_field'].nil? - query_params[:'sort_dir'] = @api_client.build_collection_param(opts[:'sort_dir'], :multi) if !opts[:'sort_dir'].nil? - query_params[:'query'] = @api_client.build_collection_param(opts[:'query'], :multi) if !opts[:'query'].nil? - query_params[:'include_cells'] = @api_client.build_collection_param(opts[:'include_cells'], :multi) if !opts[:'include_cells'].nil? - query_params[:'is_template'] = @api_client.build_collection_param(opts[:'is_template'], :multi) if !opts[:'is_template'].nil? - query_params[:'type'] = @api_client.build_collection_param(opts[:'type'], :multi) if !opts[:'type'].nil? + query_params[:'author_handle'] = opts[:'author_handle'] if !opts[:'author_handle'].nil? + query_params[:'exclude_author_handle'] = opts[:'exclude_author_handle'] if !opts[:'exclude_author_handle'].nil? + query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil? + query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil? + query_params[:'sort_field'] = opts[:'sort_field'] if !opts[:'sort_field'].nil? + query_params[:'sort_dir'] = opts[:'sort_dir'] if !opts[:'sort_dir'].nil? + query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil? + query_params[:'include_cells'] = opts[:'include_cells'] if !opts[:'include_cells'].nil? + query_params[:'is_template'] = opts[:'is_template'] if !opts[:'is_template'].nil? + query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil? # header parameters header_params = opts[:header_params] || {} diff --git a/lib/datadog_api_client/v1/api/service_level_objectives_api.rb b/lib/datadog_api_client/v1/api/service_level_objectives_api.rb index 712f3e3b963..9f3f7c8a842 100644 --- a/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +++ b/lib/datadog_api_client/v1/api/service_level_objectives_api.rb @@ -551,6 +551,12 @@ def get_slo_history_with_http_info(slo_id, from_ts, to_ts, opts = {}) if @api_client.config.client_side_validation && to_ts.nil? fail ArgumentError, "Missing the required parameter 'to_ts' when calling ServiceLevelObjectivesAPI.get_slo_history" end + if @api_client.config.client_side_validation && !opts[:'target'].nil? && opts[:'target'] > 100 + fail ArgumentError, 'invalid value for "opts[:"target"]" when calling ServiceLevelObjectivesAPI.GetSLOHistory, must be smaller than or equal to 100.' + end + if @api_client.config.client_side_validation && !opts[:'target'].nil? && opts[:'target'] < 0 + fail ArgumentError, 'invalid value for "opts[:"target"]" when calling ServiceLevelObjectivesAPI.GetSLOHistory, must be greater than or equal to 0.' + end # resource path local_var_path = '/api/v1/slo/{slo_id}/history'.sub('{slo_id}', CGI.escape(slo_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v1/api/usage_metering_api.rb b/lib/datadog_api_client/v1/api/usage_metering_api.rb index 8f717e00a6c..193343bcbd1 100644 --- a/lib/datadog_api_client/v1/api/usage_metering_api.rb +++ b/lib/datadog_api_client/v1/api/usage_metering_api.rb @@ -58,6 +58,14 @@ def get_daily_custom_reports_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_daily_custom_reports ...' end + allowable_values = ['desc', 'asc'] + if @api_client.config.client_side_validation && opts[:'sort_dir'] && !allowable_values.include?(opts[:'sort_dir']) + fail ArgumentError, "invalid value for \"sort_dir\", must be one of #{allowable_values}" + end + allowable_values = ['computed_on', 'size', 'start_date', 'end_date'] + if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) + fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" + end # resource path local_var_path = '/api/v1/daily_custom_reports' @@ -147,6 +155,11 @@ def get_hourly_usage_attribution_with_http_info(start_hr, usage_type, opts = {}) if @api_client.config.client_side_validation && usage_type.nil? fail ArgumentError, "Missing the required parameter 'usage_type' when calling UsageMeteringAPI.get_hourly_usage_attribution" end + # verify enum value + allowable_values = ['api_usage', 'apm_host_usage', 'browser_usage', 'container_usage', 'custom_timeseries_usage', 'fargate_usage', 'functions_usage', 'indexed_logs_usage', 'infra_host_usage', 'invocations_usage', 'npm_host_usage', 'profiled_container_usage', 'profiled_host_usage', 'snmp_usage'] + if @api_client.config.client_side_validation && !allowable_values.include?(usage_type) + fail ArgumentError, "invalid value for \"usage_type\", must be one of #{allowable_values}" + end # resource path local_var_path = '/api/v1/usage/hourly-attribution' @@ -381,6 +394,14 @@ def get_monthly_custom_reports_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_monthly_custom_reports ...' end + allowable_values = ['desc', 'asc'] + if @api_client.config.client_side_validation && opts[:'sort_dir'] && !allowable_values.include?(opts[:'sort_dir']) + fail ArgumentError, "invalid value for \"sort_dir\", must be one of #{allowable_values}" + end + allowable_values = ['computed_on', 'size', 'start_date', 'end_date'] + if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) + fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" + end # resource path local_var_path = '/api/v1/monthly_custom_reports' @@ -474,6 +495,19 @@ def get_monthly_usage_attribution_with_http_info(start_month, fields, opts = {}) if @api_client.config.client_side_validation && fields.nil? fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_monthly_usage_attribution" end + # verify enum value + allowable_values = ['api_usage', 'api_percentage', 'apm_host_usage', 'apm_host_percentage', 'browser_usage', 'browser_percentage', 'container_usage', 'container_percentage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'indexed_logs_usage', 'indexed_logs_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', '*'] + if @api_client.config.client_side_validation && !allowable_values.include?(fields) + fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}" + end + allowable_values = ['desc', 'asc'] + if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction']) + fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}" + end + allowable_values = ['api_usage', 'api_percentage', 'apm_host_usage', 'apm_host_percentage', 'browser_usage', 'browser_percentage', 'container_usage', 'container_percentage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'indexed_logs_usage', 'indexed_logs_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', '*'] + if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name']) + fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}" + end # resource path local_var_path = '/api/v1/usage/monthly-attribution' @@ -795,6 +829,19 @@ def get_usage_attribution_with_http_info(start_month, fields, opts = {}) if @api_client.config.client_side_validation && fields.nil? fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_usage_attribution" end + # verify enum value + allowable_values = ['custom_timeseries_usage', 'container_usage', 'snmp_percentage', 'apm_host_usage', 'browser_usage', 'npm_host_percentage', 'infra_host_usage', 'custom_timeseries_percentage', 'container_percentage', 'lambda_usage', 'api_usage', 'apm_host_percentage', 'infra_host_percentage', 'snmp_usage', 'browser_percentage', 'api_percentage', 'lambda_percentage', 'npm_host_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'fargate_usage', 'fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'dbm_hosts_usage', 'dbm_hosts_percentage', 'dbm_queries_usage', 'dbm_queries_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', '*'] + if @api_client.config.client_side_validation && !allowable_values.include?(fields) + fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}" + end + allowable_values = ['desc', 'asc'] + if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction']) + fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}" + end + allowable_values = ['api_percentage', 'snmp_usage', 'apm_host_usage', 'api_usage', 'container_usage', 'custom_timeseries_percentage', 'container_percentage', 'apm_host_percentage', 'npm_host_percentage', 'browser_percentage', 'browser_usage', 'infra_host_percentage', 'snmp_percentage', 'npm_host_usage', 'infra_host_usage', 'custom_timeseries_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'lambda_usage', 'lambda_percentage'] + if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name']) + fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}" + end # resource path local_var_path = '/api/v1/usage/attribution' @@ -2807,6 +2854,12 @@ def get_usage_top_avg_metrics_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_top_avg_metrics ...' end + if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 5000 + fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsageMeteringAPI.GetUsageTopAvgMetrics, must be smaller than or equal to 5000.' + end + if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 + fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsageMeteringAPI.GetUsageTopAvgMetrics, must be greater than or equal to 1.' + end # resource path local_var_path = '/api/v1/usage/top_avg_metrics' diff --git a/lib/datadog_api_client/v2/api/incident_services_api.rb b/lib/datadog_api_client/v2/api/incident_services_api.rb index 09d5885cfe1..13c5a18c222 100644 --- a/lib/datadog_api_client/v2/api/incident_services_api.rb +++ b/lib/datadog_api_client/v2/api/incident_services_api.rb @@ -208,6 +208,10 @@ def get_incident_service_with_http_info(service_id, opts = {}) if @api_client.config.client_side_validation && service_id.nil? fail ArgumentError, "Missing the required parameter 'service_id' when calling IncidentServicesAPI.get_incident_service" end + allowable_values = ['users'] + if @api_client.config.client_side_validation && opts[:'include'] && !allowable_values.include?(opts[:'include']) + fail ArgumentError, "invalid value for \"include\", must be one of #{allowable_values}" + end # resource path local_var_path = '/api/v2/services/{service_id}'.sub('{service_id}', CGI.escape(service_id.to_s).gsub('%2F', '/')) @@ -284,6 +288,10 @@ def list_incident_services_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: IncidentServicesAPI.list_incident_services ...' end + allowable_values = ['users'] + if @api_client.config.client_side_validation && opts[:'include'] && !allowable_values.include?(opts[:'include']) + fail ArgumentError, "invalid value for \"include\", must be one of #{allowable_values}" + end # resource path local_var_path = '/api/v2/services' diff --git a/lib/datadog_api_client/v2/api/incident_teams_api.rb b/lib/datadog_api_client/v2/api/incident_teams_api.rb index 329303cd37f..d041392c2ec 100644 --- a/lib/datadog_api_client/v2/api/incident_teams_api.rb +++ b/lib/datadog_api_client/v2/api/incident_teams_api.rb @@ -208,6 +208,10 @@ def get_incident_team_with_http_info(team_id, opts = {}) if @api_client.config.client_side_validation && team_id.nil? fail ArgumentError, "Missing the required parameter 'team_id' when calling IncidentTeamsAPI.get_incident_team" end + allowable_values = ['users'] + if @api_client.config.client_side_validation && opts[:'include'] && !allowable_values.include?(opts[:'include']) + fail ArgumentError, "invalid value for \"include\", must be one of #{allowable_values}" + end # resource path local_var_path = '/api/v2/teams/{team_id}'.sub('{team_id}', CGI.escape(team_id.to_s).gsub('%2F', '/')) @@ -284,6 +288,10 @@ def list_incident_teams_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: IncidentTeamsAPI.list_incident_teams ...' end + allowable_values = ['users'] + if @api_client.config.client_side_validation && opts[:'include'] && !allowable_values.include?(opts[:'include']) + fail ArgumentError, "invalid value for \"include\", must be one of #{allowable_values}" + end # resource path local_var_path = '/api/v2/teams' diff --git a/lib/datadog_api_client/v2/api/key_management_api.rb b/lib/datadog_api_client/v2/api/key_management_api.rb index 7219c039bfc..7d8b4acff1a 100644 --- a/lib/datadog_api_client/v2/api/key_management_api.rb +++ b/lib/datadog_api_client/v2/api/key_management_api.rb @@ -662,6 +662,10 @@ def list_api_keys_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: KeyManagementAPI.list_api_keys ...' end + allowable_values = ['created_at', '-created_at', 'last4', '-last4', 'modified_at', '-modified_at', 'name', '-name'] + if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) + fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" + end # resource path local_var_path = '/api/v2/api_keys' @@ -750,6 +754,10 @@ def list_application_keys_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: KeyManagementAPI.list_application_keys ...' end + allowable_values = ['created_at', '-created_at', 'last4', '-last4', 'name', '-name'] + if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) + fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" + end # resource path local_var_path = '/api/v2/application_keys' @@ -835,6 +843,10 @@ def list_current_user_application_keys_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: KeyManagementAPI.list_current_user_application_keys ...' end + allowable_values = ['created_at', '-created_at', 'last4', '-last4', 'name', '-name'] + if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) + fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" + end # resource path local_var_path = '/api/v2/current_user/application_keys' diff --git a/lib/datadog_api_client/v2/api/logs_api.rb b/lib/datadog_api_client/v2/api/logs_api.rb index c4a5a5f66a8..df28293cbf9 100644 --- a/lib/datadog_api_client/v2/api/logs_api.rb +++ b/lib/datadog_api_client/v2/api/logs_api.rb @@ -250,6 +250,13 @@ def list_logs_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LogsAPI.list_logs_get ...' end + allowable_values = ['timestamp', '-timestamp'] + if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) + fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" + end + if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] > 1000 + fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling LogsAPI.ListLogsGet, must be smaller than or equal to 1000.' + end # resource path local_var_path = '/api/v2/logs/events' @@ -374,6 +381,10 @@ def submit_log_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LogsAPI.submit_log ...' end + allowable_values = ['gzip', 'deflate'] + if @api_client.config.client_side_validation && opts[:'content_encoding'] && !allowable_values.include?(opts[:'content_encoding']) + fail ArgumentError, "invalid value for \"content_encoding\", must be one of #{allowable_values}" + end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling LogsAPI.submit_log" diff --git a/lib/datadog_api_client/v2/api/metrics_api.rb b/lib/datadog_api_client/v2/api/metrics_api.rb index 84a97133047..14bb9c71b00 100644 --- a/lib/datadog_api_client/v2/api/metrics_api.rb +++ b/lib/datadog_api_client/v2/api/metrics_api.rb @@ -299,6 +299,10 @@ def list_tag_configurations_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.list_tag_configurations ...' end + allowable_values = ['gauge', 'count', 'rate', 'distribution'] + if @api_client.config.client_side_validation && opts[:'filter_metric_type'] && !allowable_values.include?(opts[:'filter_metric_type']) + fail ArgumentError, "invalid value for \"filter_metric_type\", must be one of #{allowable_values}" + end # resource path local_var_path = '/api/v2/metrics' diff --git a/lib/datadog_api_client/v2/api/processes_api.rb b/lib/datadog_api_client/v2/api/processes_api.rb index 7546d033875..aa148ce851b 100644 --- a/lib/datadog_api_client/v2/api/processes_api.rb +++ b/lib/datadog_api_client/v2/api/processes_api.rb @@ -62,6 +62,12 @@ def list_processes_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProcessesAPI.list_processes ...' end + if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] > 10000 + fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling ProcessesAPI.ListProcesses, must be smaller than or equal to 10000.' + end + if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] < 1 + fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling ProcessesAPI.ListProcesses, must be greater than or equal to 1.' + end # resource path local_var_path = '/api/v2/processes' diff --git a/lib/datadog_api_client/v2/api/roles_api.rb b/lib/datadog_api_client/v2/api/roles_api.rb index 567ac21e97a..3601e6b03e7 100644 --- a/lib/datadog_api_client/v2/api/roles_api.rb +++ b/lib/datadog_api_client/v2/api/roles_api.rb @@ -662,6 +662,10 @@ def list_roles_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RolesAPI.list_roles ...' end + allowable_values = ['name', '-name', 'modified_at', '-modified_at', 'user_count', '-user_count'] + if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) + fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" + end # resource path local_var_path = '/api/v2/roles' diff --git a/lib/datadog_api_client/v2/api/security_monitoring_api.rb b/lib/datadog_api_client/v2/api/security_monitoring_api.rb index 60a3ecfbdc4..55f846ac2f1 100644 --- a/lib/datadog_api_client/v2/api/security_monitoring_api.rb +++ b/lib/datadog_api_client/v2/api/security_monitoring_api.rb @@ -660,6 +660,13 @@ def list_security_monitoring_signals_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.list_security_monitoring_signals ...' end + allowable_values = ['timestamp', '-timestamp'] + if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) + fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" + end + if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] > 1000 + fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling SecurityMonitoringAPI.ListSecurityMonitoringSignals, must be smaller than or equal to 1000.' + end # resource path local_var_path = '/api/v2/security_monitoring/signals' diff --git a/lib/datadog_api_client/v2/api/service_accounts_api.rb b/lib/datadog_api_client/v2/api/service_accounts_api.rb index f9b2e0dc2c2..089b73ce5d7 100644 --- a/lib/datadog_api_client/v2/api/service_accounts_api.rb +++ b/lib/datadog_api_client/v2/api/service_accounts_api.rb @@ -307,6 +307,10 @@ def list_service_account_application_keys_with_http_info(service_account_id, opt if @api_client.config.client_side_validation && service_account_id.nil? fail ArgumentError, "Missing the required parameter 'service_account_id' when calling ServiceAccountsAPI.list_service_account_application_keys" end + allowable_values = ['created_at', '-created_at', 'last4', '-last4', 'name', '-name'] + if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) + fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" + end # resource path local_var_path = '/api/v2/service_accounts/{service_account_id}/application_keys'.sub('{service_account_id}', CGI.escape(service_account_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v2/api/users_api.rb b/lib/datadog_api_client/v2/api/users_api.rb index 0f7e60ab0d8..513a8d4ba0a 100644 --- a/lib/datadog_api_client/v2/api/users_api.rb +++ b/lib/datadog_api_client/v2/api/users_api.rb @@ -585,6 +585,10 @@ def list_users_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UsersAPI.list_users ...' end + allowable_values = ['asc', 'desc'] + if @api_client.config.client_side_validation && opts[:'sort_dir'] && !allowable_values.include?(opts[:'sort_dir']) + fail ArgumentError, "invalid value for \"sort_dir\", must be one of #{allowable_values}" + end # resource path local_var_path = '/api/v2/users' From f930590e7bb6d3edf5a1a3225ece1a3cfb90513f Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Fri, 4 Feb 2022 17:02:19 +0100 Subject: [PATCH 05/23] form params --- .generator/src/generator/openapi.py | 15 +- .generator/src/generator/templates/api.j2 | 22 +-- .../v1/api/authentication_api.rb | 4 +- .../v1/api/aws_integration_api.rb | 36 ++--- .../v1/api/aws_logs_integration_api.rb | 28 ++-- .../v1/api/azure_integration_api.rb | 20 +-- .../v1/api/dashboard_lists_api.rb | 20 +-- .../v1/api/dashboards_api.rb | 28 ++-- .../v1/api/downtimes_api.rb | 28 ++-- lib/datadog_api_client/v1/api/events_api.rb | 14 +- .../v1/api/gcp_integration_api.rb | 16 +- lib/datadog_api_client/v1/api/hosts_api.rb | 16 +- .../v1/api/ip_ranges_api.rb | 4 +- .../v1/api/key_management_api.rb | 40 ++--- lib/datadog_api_client/v1/api/logs_api.rb | 8 +- .../v1/api/logs_indexes_api.rb | 24 +-- .../v1/api/logs_pipelines_api.rb | 28 ++-- lib/datadog_api_client/v1/api/metrics_api.rb | 24 +-- lib/datadog_api_client/v1/api/monitors_api.rb | 38 ++--- .../v1/api/notebooks_api.rb | 20 +-- .../v1/api/organizations_api.rb | 37 ++--- .../v1/api/pager_duty_integration_api.rb | 16 +- .../v1/api/service_checks_api.rb | 4 +- ...service_level_objective_corrections_api.rb | 20 +-- .../v1/api/service_level_objectives_api.rb | 40 ++--- .../v1/api/slack_integration_api.rb | 20 +-- .../v1/api/snapshots_api.rb | 4 +- .../v1/api/synthetics_api.rb | 108 ++++++------- lib/datadog_api_client/v1/api/tags_api.rb | 20 +-- .../v1/api/usage_metering_api.rb | 148 +++++++++--------- lib/datadog_api_client/v1/api/users_api.rb | 20 +-- .../v1/api/webhooks_integration_api.rb | 32 ++-- .../v2/api/cloud_workload_security_api.rb | 24 +-- .../v2/api/dashboard_lists_api.rb | 16 +- .../v2/api/incident_services_api.rb | 20 +-- .../v2/api/incident_teams_api.rb | 20 +-- .../v2/api/incidents_api.rb | 20 +-- .../v2/api/key_management_api.rb | 56 +++---- lib/datadog_api_client/v2/api/logs_api.rb | 18 +-- .../v2/api/logs_archives_api.rb | 40 ++--- .../v2/api/logs_metrics_api.rb | 20 +-- lib/datadog_api_client/v2/api/metrics_api.rb | 28 ++-- .../v2/api/processes_api.rb | 8 +- lib/datadog_api_client/v2/api/roles_api.rb | 52 +++--- .../v2/api/security_monitoring_api.rb | 50 +++--- .../v2/api/service_accounts_api.rb | 20 +-- lib/datadog_api_client/v2/api/users_api.rb | 40 ++--- 47 files changed, 673 insertions(+), 661 deletions(-) diff --git a/.generator/src/generator/openapi.py b/.generator/src/generator/openapi.py index 37750b7e069..7eced2a326a 100644 --- a/.generator/src/generator/openapi.py +++ b/.generator/src/generator/openapi.py @@ -221,8 +221,19 @@ def parameters(operation): yield content["name"], content if "requestBody" in operation: - name = operation.get("x-codegen-request-body-name", "body") - yield name, operation["requestBody"] + if "multipart/form-data" in operation["requestBody"]["content"]: + parent = operation["requestBody"]["content"]["multipart/form-data"]["schema"] + for name, schema in parent["properties"].items(): + yield name, { + "in": "form", + "schema": schema, + "name": name, + "description": schema.get("description"), + "required": name in parent.get("required", []), + } + else: + name = operation.get("x-codegen-request-body-name", "body") + yield name, operation["requestBody"] def parameter_schema(parameter): diff --git a/.generator/src/generator/templates/api.j2 b/.generator/src/generator/templates/api.j2 index 2fee3a9dbc0..0b86250d546 100644 --- a/.generator/src/generator/templates/api.j2 +++ b/.generator/src/generator/templates/api.j2 @@ -24,7 +24,7 @@ module {{ config.moduleName }} {%- for name, parameter in operation|parameters if parameter.required %} # @param {{ name|attribute_name }} [{{ get_type_for_parameter(parameter) }}] {{ parameter.get("description", "").replace('\n', ' ') }} {%- endfor %} - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters {%- for name, parameter in operation|parameters if not parameter.required %} # @option opts [{{ get_type_for_parameter(parameter) }}] :{{ name|attribute_name }} {{ parameter.get("description", "").replace('\n', ' ') }}{% if "default" in parameter%} (default to {{ parameter.default|format_value }}) {% endif %} {%- endfor %} @@ -41,7 +41,7 @@ module {{ config.moduleName }} {%- for name, parameter in operation|parameters if parameter.required %} # @param {{ name|attribute_name }} [{{ get_type_for_parameter(parameter) }}] {{ parameter.get("description", "").replace('\n', ' ') }} {%- endfor %} - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters {%- for name, parameter in operation|parameters if not parameter.required %} # @option opts [{{ get_type_for_parameter(parameter) }}] :{{ name|attribute_name }} {{ parameter.get("description", "").replace('\n', ' ') }}{% if "default" in parameter%} (default to {{ parameter.default|json }}) {% endif %} {%- endfor %} @@ -94,44 +94,44 @@ module {{ config.moduleName }} {%- endif %} {%- if schema.maxLength is defined %} if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %}.to_s.length > {{ schema.maxLength }} - fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, the character length must be smaller than or equal to {{ schema.maxLength }}.' + fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId|snake_case }}, the character length must be smaller than or equal to {{ schema.maxLength }}.' end {%- endif %} {%- if schema.minLength is defined %} if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %}.to_s.length < {{ schema.minLength }} - fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, the character length must be great than or equal to {{ schema.minLength }}.' + fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId|snake_case }}, the character length must be great than or equal to {{ schema.minLength }}.' end {%- endif %} {%- if schema.maximum is defined %} if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %} >{% if parameter.exclusiveMaximum %}={% endif %} {{ schema.maximum }} - fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, must be smaller than {% if not parameter.exclusiveMaximum %}or equal to {% endif %}{{ schema.maximum }}.' + fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId|snake_case }}, must be smaller than {% if not parameter.exclusiveMaximum %}or equal to {% endif %}{{ schema.maximum }}.' end {%- endif %} {%- if schema.minimum is defined %} if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %} <{% if parameter.exclusiveMinimum %}={% endif %} {{ schema.minimum }} - fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, must be greater than {% if not parameter.exclusiveMinimum %}or equal to {% endif %}{{ schema.minimum }}.' + fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId|snake_case }}, must be greater than {% if not parameter.exclusiveMinimum %}or equal to {% endif %}{{ schema.minimum }}.' end {%- endif %} {%- if schema.pattern is defined %} pattern = Regexp.new({{ schema.pattern }}) if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %} !~ pattern - fail ArgumentError, "invalid value for '{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:\"{{ name|attribute_name }}\"]{% endif %}' when calling {{classname}}.{{ operation.operationId }}, must conform to the pattern #{pattern}." + fail ArgumentError, "invalid value for '{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:\"{{ name|attribute_name }}\"]{% endif %}' when calling {{classname}}.{{ operation.operationId|snake_case }}, must conform to the pattern #{pattern}." end {%- endif %} {%- if schema.maxItems is defined %} if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %}.length > {{ schema.maxItems }} - fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, number of items must be less than or equal to {{ schema.maxItems }}.' + fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId|snake_case }}, number of items must be less than or equal to {{ schema.maxItems }}.' end {%- endif %} {%- if schema.minItems is defined %} if @api_client.config.client_side_validation && {% if not parameter.required %}!opts[:'{{ name|attribute_name }}'].nil? && {% endif %}{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:'{{ name|attribute_name }}']{% endif %}.length < {{ schema.minItems }} - fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId }}, number of items must be greater than or equal to {{ schema.minItems }}.' + fail ArgumentError, 'invalid value for "{% if parameter.required %}{{ name|attribute_name }}{% else %}opts[:"{{ name|attribute_name }}"]{% endif %}" when calling {{classname}}.{{ operation.operationId|snake_case }}, number of items must be greater than or equal to {{ schema.minItems }}.' end {%- endif %} @@ -175,11 +175,11 @@ module {{ config.moduleName }} form_params = opts[:form_params] || {} {%- for name, parameter in operation|parameters if parameter.in == "form" and parameter.required %} {%- set collection = parameter|parameter_schema|collection_format %} - form_params['{{baseName}}'] = {% if collection %}@api_client.build_collection_param({{ name|attribute_name }}, :{{ collection }}){% else %}{ name|attribute_name }}{% endif %} + form_params['{{ name }}'] = {% if collection %}@api_client.build_collection_param({{ name|attribute_name }}, :{{ collection }}){% else %}{{ name|attribute_name }}{% endif %} {%- endfor %} {%- for name, parameter in operation|parameters if parameter.in == "form" and not parameter.required %} {%- set collection = parameter|parameter_schema|collection_format %} - form_params['{{baseName}}'] = {% if collection %}@api_client.build_collection_param(opts[:'{{ name|attribute_name }}'], :{{ collection }}){% else %}opts[:'{{ name|attribute_name }}']{% endif %} if !opts[:'{{ name|attribute_name }}'].nil? + form_params['{{ name }}'] = {% if collection %}@api_client.build_collection_param(opts[:'{{ name|attribute_name }}'], :{{ collection }}){% else %}opts[:'{{ name|attribute_name }}']{% endif %} if !opts[:'{{ name|attribute_name }}'].nil? {%- endfor %} # http body (model) diff --git a/lib/datadog_api_client/v1/api/authentication_api.rb b/lib/datadog_api_client/v1/api/authentication_api.rb index 3a004888a34..52cb1302ac8 100644 --- a/lib/datadog_api_client/v1/api/authentication_api.rb +++ b/lib/datadog_api_client/v1/api/authentication_api.rb @@ -25,7 +25,7 @@ def initialize(api_client = APIClient.default) # Validate API key # Check if the API key (not the APP key) is valid. If invalid, a 403 is returned. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [AuthenticationValidationResponse] def validate(opts = {}) data, _status_code, _headers = validate_with_http_info(opts) @@ -34,7 +34,7 @@ def validate(opts = {}) # Validate API key # Check if the API key (not the APP key) is valid. If invalid, a 403 is returned. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(AuthenticationValidationResponse, Integer, Hash)>] AuthenticationValidationResponse data, response status code and response headers def validate_with_http_info(opts = {}) diff --git a/lib/datadog_api_client/v1/api/aws_integration_api.rb b/lib/datadog_api_client/v1/api/aws_integration_api.rb index e2e175d43c7..765620d6f6a 100644 --- a/lib/datadog_api_client/v1/api/aws_integration_api.rb +++ b/lib/datadog_api_client/v1/api/aws_integration_api.rb @@ -29,7 +29,7 @@ def initialize(api_client = APIClient.default) # by adding your new configuration to the existing one in your Datadog organization. # A unique AWS Account ID for role based authentication. # @param body [AWSAccount] AWS Request Object - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [AWSAccountCreateResponse] def create_aws_account(body, opts = {}) data, _status_code, _headers = create_aws_account_with_http_info(body, opts) @@ -42,7 +42,7 @@ def create_aws_account(body, opts = {}) # by adding your new configuration to the existing one in your Datadog organization. # A unique AWS Account ID for role based authentication. # @param body [AWSAccount] AWS Request Object - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(AWSAccountCreateResponse, Integer, Hash)>] AWSAccountCreateResponse data, response status code and response headers def create_aws_account_with_http_info(body, opts = {}) @@ -107,7 +107,7 @@ def create_aws_account_with_http_info(body, opts = {}) # Set an AWS tag filter # Set an AWS tag filter. # @param body [AWSTagFilterCreateRequest] Set an AWS tag filter using an `aws_account_identifier`, `namespace`, and filtering string. Namespace options are `application_elb`, `elb`, `lambda`, `network_elb`, `rds`, `sqs`, and `custom`. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Object] def create_aws_tag_filter(body, opts = {}) data, _status_code, _headers = create_aws_tag_filter_with_http_info(body, opts) @@ -117,7 +117,7 @@ def create_aws_tag_filter(body, opts = {}) # Set an AWS tag filter # Set an AWS tag filter. # @param body [AWSTagFilterCreateRequest] Set an AWS tag filter using an `aws_account_identifier`, `namespace`, and filtering string. Namespace options are `application_elb`, `elb`, `lambda`, `network_elb`, `rds`, `sqs`, and `custom`. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def create_aws_tag_filter_with_http_info(body, opts = {}) @@ -182,7 +182,7 @@ def create_aws_tag_filter_with_http_info(body, opts = {}) # Generate a new external ID # Generate a new AWS external ID for a given AWS account ID and role name pair. # @param body [AWSAccount] Your Datadog role delegation name. For more information about your AWS account Role name, see the [Datadog AWS integration configuration info](https://docs.datadoghq.com/integrations/amazon_web_services/#setup). - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [AWSAccountCreateResponse] def create_new_aws_external_id(body, opts = {}) data, _status_code, _headers = create_new_aws_external_id_with_http_info(body, opts) @@ -192,7 +192,7 @@ def create_new_aws_external_id(body, opts = {}) # Generate a new external ID # Generate a new AWS external ID for a given AWS account ID and role name pair. # @param body [AWSAccount] Your Datadog role delegation name. For more information about your AWS account Role name, see the [Datadog AWS integration configuration info](https://docs.datadoghq.com/integrations/amazon_web_services/#setup). - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(AWSAccountCreateResponse, Integer, Hash)>] AWSAccountCreateResponse data, response status code and response headers def create_new_aws_external_id_with_http_info(body, opts = {}) @@ -257,7 +257,7 @@ def create_new_aws_external_id_with_http_info(body, opts = {}) # Delete an AWS integration # Delete a Datadog-AWS integration matching the specified `account_id` and `role_name parameters`. # @param body [AWSAccountDeleteRequest] AWS request object - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Object] def delete_aws_account(body, opts = {}) data, _status_code, _headers = delete_aws_account_with_http_info(body, opts) @@ -267,7 +267,7 @@ def delete_aws_account(body, opts = {}) # Delete an AWS integration # Delete a Datadog-AWS integration matching the specified `account_id` and `role_name parameters`. # @param body [AWSAccountDeleteRequest] AWS request object - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def delete_aws_account_with_http_info(body, opts = {}) @@ -332,7 +332,7 @@ def delete_aws_account_with_http_info(body, opts = {}) # Delete a tag filtering entry # Delete a tag filtering entry. # @param body [AWSTagFilterDeleteRequest] Delete a tag filtering entry for a given AWS account and `dd-aws` namespace. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Object] def delete_aws_tag_filter(body, opts = {}) data, _status_code, _headers = delete_aws_tag_filter_with_http_info(body, opts) @@ -342,7 +342,7 @@ def delete_aws_tag_filter(body, opts = {}) # Delete a tag filtering entry # Delete a tag filtering entry. # @param body [AWSTagFilterDeleteRequest] Delete a tag filtering entry for a given AWS account and `dd-aws` namespace. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def delete_aws_tag_filter_with_http_info(body, opts = {}) @@ -406,7 +406,7 @@ def delete_aws_tag_filter_with_http_info(body, opts = {}) # List namespace rules # List all namespace rules for a given Datadog-AWS integration. This endpoint takes no arguments. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array] def list_available_aws_namespaces(opts = {}) data, _status_code, _headers = list_available_aws_namespaces_with_http_info(opts) @@ -415,7 +415,7 @@ def list_available_aws_namespaces(opts = {}) # List namespace rules # List all namespace rules for a given Datadog-AWS integration. This endpoint takes no arguments. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers def list_available_aws_namespaces_with_http_info(opts = {}) @@ -473,7 +473,7 @@ def list_available_aws_namespaces_with_http_info(opts = {}) # List all AWS integrations # List all Datadog-AWS integrations available in your Datadog organization. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :account_id Only return AWS accounts that matches this `account_id`. # @option opts [String] :role_name Only return AWS accounts that matches this role_name. # @option opts [String] :access_key_id Only return AWS accounts that matches this `access_key_id`. @@ -485,7 +485,7 @@ def list_aws_accounts(opts = {}) # List all AWS integrations # List all Datadog-AWS integrations available in your Datadog organization. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :account_id Only return AWS accounts that matches this `account_id`. # @option opts [String] :role_name Only return AWS accounts that matches this role_name. # @option opts [String] :access_key_id Only return AWS accounts that matches this `access_key_id`. @@ -550,7 +550,7 @@ def list_aws_accounts_with_http_info(opts = {}) # Get all AWS tag filters # Get all AWS tag filters. # @param account_id [String] Only return AWS filters that matches this `account_id`. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [AWSTagFilterListResponse] def list_aws_tag_filters(account_id, opts = {}) data, _status_code, _headers = list_aws_tag_filters_with_http_info(account_id, opts) @@ -560,7 +560,7 @@ def list_aws_tag_filters(account_id, opts = {}) # Get all AWS tag filters # Get all AWS tag filters. # @param account_id [String] Only return AWS filters that matches this `account_id`. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(AWSTagFilterListResponse, Integer, Hash)>] AWSTagFilterListResponse data, response status code and response headers def list_aws_tag_filters_with_http_info(account_id, opts = {}) @@ -624,7 +624,7 @@ def list_aws_tag_filters_with_http_info(account_id, opts = {}) # Update an AWS integration # Update a Datadog-Amazon Web Services integration. # @param body [AWSAccount] AWS request object - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :account_id Only return AWS accounts that matches this `account_id`. # @option opts [String] :role_name Only return AWS accounts that match this `role_name`. Required if `account_id` is specified. # @option opts [String] :access_key_id Only return AWS accounts that matches this `access_key_id`. Required if none of the other two options are specified. @@ -637,7 +637,7 @@ def update_aws_account(body, opts = {}) # Update an AWS integration # Update a Datadog-Amazon Web Services integration. # @param body [AWSAccount] AWS request object - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :account_id Only return AWS accounts that matches this `account_id`. # @option opts [String] :role_name Only return AWS accounts that match this `role_name`. Required if `account_id` is specified. # @option opts [String] :access_key_id Only return AWS accounts that matches this `access_key_id`. Required if none of the other two options are specified. diff --git a/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb b/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb index 22f71a19c3a..1fadefdcab4 100644 --- a/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb +++ b/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb @@ -33,7 +33,7 @@ def initialize(api_client = APIClient.default) # - Returns a status of 'checked and ok' if the Lambda exists. # - Returns a status of 'error' if the Lambda does not exist. # @param body [AWSAccountAndLambdaRequest] Check AWS Log Lambda Async request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [AWSLogsAsyncResponse] def check_aws_logs_lambda_async(body, opts = {}) data, _status_code, _headers = check_aws_logs_lambda_async_with_http_info(body, opts) @@ -50,7 +50,7 @@ def check_aws_logs_lambda_async(body, opts = {}) # - Returns a status of 'checked and ok' if the Lambda exists. # - Returns a status of 'error' if the Lambda does not exist. # @param body [AWSAccountAndLambdaRequest] Check AWS Log Lambda Async request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(AWSLogsAsyncResponse, Integer, Hash)>] AWSLogsAsyncResponse data, response status code and response headers def check_aws_logs_lambda_async_with_http_info(body, opts = {}) @@ -124,7 +124,7 @@ def check_aws_logs_lambda_async_with_http_info(body, opts = {}) # - Returns a status of `checked and ok` if the Lambda exists. # - Returns a status of `error` if the Lambda does not exist. # @param body [AWSLogsServicesRequest] Check AWS Logs Async Services request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [AWSLogsAsyncResponse] def check_aws_logs_services_async(body, opts = {}) data, _status_code, _headers = check_aws_logs_services_async_with_http_info(body, opts) @@ -143,7 +143,7 @@ def check_aws_logs_services_async(body, opts = {}) # - Returns a status of `checked and ok` if the Lambda exists. # - Returns a status of `error` if the Lambda does not exist. # @param body [AWSLogsServicesRequest] Check AWS Logs Async Services request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(AWSLogsAsyncResponse, Integer, Hash)>] AWSLogsAsyncResponse data, response status code and response headers def check_aws_logs_services_async_with_http_info(body, opts = {}) @@ -208,7 +208,7 @@ def check_aws_logs_services_async_with_http_info(body, opts = {}) # Add AWS Log Lambda ARN # Attach the Lambda ARN of the Lambda created for the Datadog-AWS log collection to your AWS account ID to enable log collection. # @param body [AWSAccountAndLambdaRequest] AWS Log Lambda Async request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Object] def create_aws_lambda_arn(body, opts = {}) data, _status_code, _headers = create_aws_lambda_arn_with_http_info(body, opts) @@ -218,7 +218,7 @@ def create_aws_lambda_arn(body, opts = {}) # Add AWS Log Lambda ARN # Attach the Lambda ARN of the Lambda created for the Datadog-AWS log collection to your AWS account ID to enable log collection. # @param body [AWSAccountAndLambdaRequest] AWS Log Lambda Async request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def create_aws_lambda_arn_with_http_info(body, opts = {}) @@ -283,7 +283,7 @@ def create_aws_lambda_arn_with_http_info(body, opts = {}) # Delete an AWS Logs integration # Delete a Datadog-AWS logs configuration by removing the specific Lambda ARN associated with a given AWS account. # @param body [AWSAccountAndLambdaRequest] Delete AWS Lambda ARN request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Object] def delete_aws_lambda_arn(body, opts = {}) data, _status_code, _headers = delete_aws_lambda_arn_with_http_info(body, opts) @@ -293,7 +293,7 @@ def delete_aws_lambda_arn(body, opts = {}) # Delete an AWS Logs integration # Delete a Datadog-AWS logs configuration by removing the specific Lambda ARN associated with a given AWS account. # @param body [AWSAccountAndLambdaRequest] Delete AWS Lambda ARN request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def delete_aws_lambda_arn_with_http_info(body, opts = {}) @@ -358,7 +358,7 @@ def delete_aws_lambda_arn_with_http_info(body, opts = {}) # Enable an AWS Logs integration # Enable automatic log collection for a list of services. This should be run after running `CreateAWSLambdaARN` to save the configuration. # @param body [AWSLogsServicesRequest] Enable AWS Log Services request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Object] def enable_aws_log_services(body, opts = {}) data, _status_code, _headers = enable_aws_log_services_with_http_info(body, opts) @@ -368,7 +368,7 @@ def enable_aws_log_services(body, opts = {}) # Enable an AWS Logs integration # Enable automatic log collection for a list of services. This should be run after running `CreateAWSLambdaARN` to save the configuration. # @param body [AWSLogsServicesRequest] Enable AWS Log Services request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def enable_aws_log_services_with_http_info(body, opts = {}) @@ -432,7 +432,7 @@ def enable_aws_log_services_with_http_info(body, opts = {}) # List all AWS Logs integrations # List all Datadog-AWS Logs integrations configured in your Datadog account. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array] def list_aws_logs_integrations(opts = {}) data, _status_code, _headers = list_aws_logs_integrations_with_http_info(opts) @@ -441,7 +441,7 @@ def list_aws_logs_integrations(opts = {}) # List all AWS Logs integrations # List all Datadog-AWS Logs integrations configured in your Datadog account. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers def list_aws_logs_integrations_with_http_info(opts = {}) @@ -499,7 +499,7 @@ def list_aws_logs_integrations_with_http_info(opts = {}) # Get list of AWS log ready services # Get the list of current AWS services that Datadog offers automatic log collection. Use returned service IDs with the services parameter for the Enable an AWS service log collection API endpoint. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array] def list_aws_logs_services(opts = {}) data, _status_code, _headers = list_aws_logs_services_with_http_info(opts) @@ -508,7 +508,7 @@ def list_aws_logs_services(opts = {}) # Get list of AWS log ready services # Get the list of current AWS services that Datadog offers automatic log collection. Use returned service IDs with the services parameter for the Enable an AWS service log collection API endpoint. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers def list_aws_logs_services_with_http_info(opts = {}) diff --git a/lib/datadog_api_client/v1/api/azure_integration_api.rb b/lib/datadog_api_client/v1/api/azure_integration_api.rb index 626f7819ec0..0529e364b04 100644 --- a/lib/datadog_api_client/v1/api/azure_integration_api.rb +++ b/lib/datadog_api_client/v1/api/azure_integration_api.rb @@ -32,7 +32,7 @@ def initialize(api_client = APIClient.default) # Using the `PUT` method updates your integration configuration by replacing your # current configuration with the new one sent to your Datadog organization. # @param body [AzureAccount] Create a Datadog-Azure integration for your Datadog account request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Object] def create_azure_integration(body, opts = {}) data, _status_code, _headers = create_azure_integration_with_http_info(body, opts) @@ -48,7 +48,7 @@ def create_azure_integration(body, opts = {}) # Using the `PUT` method updates your integration configuration by replacing your # current configuration with the new one sent to your Datadog organization. # @param body [AzureAccount] Create a Datadog-Azure integration for your Datadog account request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def create_azure_integration_with_http_info(body, opts = {}) @@ -113,7 +113,7 @@ def create_azure_integration_with_http_info(body, opts = {}) # Delete an Azure integration # Delete a given Datadog-Azure integration from your Datadog account. # @param body [AzureAccount] Delete a given Datadog-Azure integration request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Object] def delete_azure_integration(body, opts = {}) data, _status_code, _headers = delete_azure_integration_with_http_info(body, opts) @@ -123,7 +123,7 @@ def delete_azure_integration(body, opts = {}) # Delete an Azure integration # Delete a given Datadog-Azure integration from your Datadog account. # @param body [AzureAccount] Delete a given Datadog-Azure integration request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def delete_azure_integration_with_http_info(body, opts = {}) @@ -187,7 +187,7 @@ def delete_azure_integration_with_http_info(body, opts = {}) # List all Azure integrations # List all Datadog-Azure integrations configured in your Datadog account. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array] def list_azure_integration(opts = {}) data, _status_code, _headers = list_azure_integration_with_http_info(opts) @@ -196,7 +196,7 @@ def list_azure_integration(opts = {}) # List all Azure integrations # List all Datadog-Azure integrations configured in your Datadog account. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers def list_azure_integration_with_http_info(opts = {}) @@ -255,7 +255,7 @@ def list_azure_integration_with_http_info(opts = {}) # Update Azure integration host filters # Update the defined list of host filters for a given Datadog-Azure integration. # @param body [AzureAccount] Update a Datadog-Azure integration's host filters request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Object] def update_azure_host_filters(body, opts = {}) data, _status_code, _headers = update_azure_host_filters_with_http_info(body, opts) @@ -265,7 +265,7 @@ def update_azure_host_filters(body, opts = {}) # Update Azure integration host filters # Update the defined list of host filters for a given Datadog-Azure integration. # @param body [AzureAccount] Update a Datadog-Azure integration's host filters request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def update_azure_host_filters_with_http_info(body, opts = {}) @@ -332,7 +332,7 @@ def update_azure_host_filters_with_http_info(body, opts = {}) # Any other fields supplied will overwrite existing values. To overwrite `tenant_name` or `client_id`, # use `new_tenant_name` and `new_client_id`. To leave a field unchanged, do not supply that field in the payload. # @param body [AzureAccount] Update a Datadog-Azure integration request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Object] def update_azure_integration(body, opts = {}) data, _status_code, _headers = update_azure_integration_with_http_info(body, opts) @@ -344,7 +344,7 @@ def update_azure_integration(body, opts = {}) # Any other fields supplied will overwrite existing values. To overwrite `tenant_name` or `client_id`, # use `new_tenant_name` and `new_client_id`. To leave a field unchanged, do not supply that field in the payload. # @param body [AzureAccount] Update a Datadog-Azure integration request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def update_azure_integration_with_http_info(body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/dashboard_lists_api.rb b/lib/datadog_api_client/v1/api/dashboard_lists_api.rb index 36be7e55f5f..1993eddf3d5 100644 --- a/lib/datadog_api_client/v1/api/dashboard_lists_api.rb +++ b/lib/datadog_api_client/v1/api/dashboard_lists_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Create a dashboard list # Create an empty dashboard list. # @param body [DashboardList] Create a dashboard list request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [DashboardList] def create_dashboard_list(body, opts = {}) data, _status_code, _headers = create_dashboard_list_with_http_info(body, opts) @@ -36,7 +36,7 @@ def create_dashboard_list(body, opts = {}) # Create a dashboard list # Create an empty dashboard list. # @param body [DashboardList] Create a dashboard list request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(DashboardList, Integer, Hash)>] DashboardList data, response status code and response headers def create_dashboard_list_with_http_info(body, opts = {}) @@ -101,7 +101,7 @@ def create_dashboard_list_with_http_info(body, opts = {}) # Delete a dashboard list # Delete a dashboard list. # @param list_id [Integer] ID of the dashboard list to delete. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [DashboardListDeleteResponse] def delete_dashboard_list(list_id, opts = {}) data, _status_code, _headers = delete_dashboard_list_with_http_info(list_id, opts) @@ -111,7 +111,7 @@ def delete_dashboard_list(list_id, opts = {}) # Delete a dashboard list # Delete a dashboard list. # @param list_id [Integer] ID of the dashboard list to delete. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(DashboardListDeleteResponse, Integer, Hash)>] DashboardListDeleteResponse data, response status code and response headers def delete_dashboard_list_with_http_info(list_id, opts = {}) @@ -174,7 +174,7 @@ def delete_dashboard_list_with_http_info(list_id, opts = {}) # Get a dashboard list # Fetch an existing dashboard list's definition. # @param list_id [Integer] ID of the dashboard list to fetch. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [DashboardList] def get_dashboard_list(list_id, opts = {}) data, _status_code, _headers = get_dashboard_list_with_http_info(list_id, opts) @@ -184,7 +184,7 @@ def get_dashboard_list(list_id, opts = {}) # Get a dashboard list # Fetch an existing dashboard list's definition. # @param list_id [Integer] ID of the dashboard list to fetch. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(DashboardList, Integer, Hash)>] DashboardList data, response status code and response headers def get_dashboard_list_with_http_info(list_id, opts = {}) @@ -246,7 +246,7 @@ def get_dashboard_list_with_http_info(list_id, opts = {}) # Get all dashboard lists # Fetch all of your existing dashboard list definitions. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [DashboardListListResponse] def list_dashboard_lists(opts = {}) data, _status_code, _headers = list_dashboard_lists_with_http_info(opts) @@ -255,7 +255,7 @@ def list_dashboard_lists(opts = {}) # Get all dashboard lists # Fetch all of your existing dashboard list definitions. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(DashboardListListResponse, Integer, Hash)>] DashboardListListResponse data, response status code and response headers def list_dashboard_lists_with_http_info(opts = {}) @@ -315,7 +315,7 @@ def list_dashboard_lists_with_http_info(opts = {}) # Update the name of a dashboard list. # @param list_id [Integer] ID of the dashboard list to update. # @param body [DashboardList] Update a dashboard list request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [DashboardList] def update_dashboard_list(list_id, body, opts = {}) data, _status_code, _headers = update_dashboard_list_with_http_info(list_id, body, opts) @@ -326,7 +326,7 @@ def update_dashboard_list(list_id, body, opts = {}) # Update the name of a dashboard list. # @param list_id [Integer] ID of the dashboard list to update. # @param body [DashboardList] Update a dashboard list request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(DashboardList, Integer, Hash)>] DashboardList data, response status code and response headers def update_dashboard_list_with_http_info(list_id, body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/dashboards_api.rb b/lib/datadog_api_client/v1/api/dashboards_api.rb index 949e0cde2d6..7f9af184137 100644 --- a/lib/datadog_api_client/v1/api/dashboards_api.rb +++ b/lib/datadog_api_client/v1/api/dashboards_api.rb @@ -27,7 +27,7 @@ def initialize(api_client = APIClient.default) # Create a dashboard using the specified options. When defining queries in your widgets, take note of which queries should have the `as_count()` or `as_rate()` modifiers appended. # Refer to the following [documentation](https://docs.datadoghq.com/developers/metrics/type_modifiers/?tab=count#in-application-modifiers) for more information on these modifiers. # @param body [Dashboard] Create a dashboard request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Dashboard] def create_dashboard(body, opts = {}) data, _status_code, _headers = create_dashboard_with_http_info(body, opts) @@ -38,7 +38,7 @@ def create_dashboard(body, opts = {}) # Create a dashboard using the specified options. When defining queries in your widgets, take note of which queries should have the `as_count()` or `as_rate()` modifiers appended. # Refer to the following [documentation](https://docs.datadoghq.com/developers/metrics/type_modifiers/?tab=count#in-application-modifiers) for more information on these modifiers. # @param body [Dashboard] Create a dashboard request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Dashboard, Integer, Hash)>] Dashboard data, response status code and response headers def create_dashboard_with_http_info(body, opts = {}) @@ -103,7 +103,7 @@ def create_dashboard_with_http_info(body, opts = {}) # Delete a dashboard # Delete a dashboard using the specified ID. # @param dashboard_id [String] The ID of the dashboard. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [DashboardDeleteResponse] def delete_dashboard(dashboard_id, opts = {}) data, _status_code, _headers = delete_dashboard_with_http_info(dashboard_id, opts) @@ -113,7 +113,7 @@ def delete_dashboard(dashboard_id, opts = {}) # Delete a dashboard # Delete a dashboard using the specified ID. # @param dashboard_id [String] The ID of the dashboard. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(DashboardDeleteResponse, Integer, Hash)>] DashboardDeleteResponse data, response status code and response headers def delete_dashboard_with_http_info(dashboard_id, opts = {}) @@ -176,7 +176,7 @@ def delete_dashboard_with_http_info(dashboard_id, opts = {}) # Delete dashboards # Delete dashboards using the specified IDs. If there are any failures, no dashboards will be deleted (partial success is not allowed). # @param body [DashboardBulkDeleteRequest] Delete dashboards request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_dashboards(body, opts = {}) delete_dashboards_with_http_info(body, opts) @@ -186,7 +186,7 @@ def delete_dashboards(body, opts = {}) # Delete dashboards # Delete dashboards using the specified IDs. If there are any failures, no dashboards will be deleted (partial success is not allowed). # @param body [DashboardBulkDeleteRequest] Delete dashboards request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_dashboards_with_http_info(body, opts = {}) @@ -251,7 +251,7 @@ def delete_dashboards_with_http_info(body, opts = {}) # Get a dashboard # Get a dashboard using the specified ID. # @param dashboard_id [String] The ID of the dashboard. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Dashboard] def get_dashboard(dashboard_id, opts = {}) data, _status_code, _headers = get_dashboard_with_http_info(dashboard_id, opts) @@ -261,7 +261,7 @@ def get_dashboard(dashboard_id, opts = {}) # Get a dashboard # Get a dashboard using the specified ID. # @param dashboard_id [String] The ID of the dashboard. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Dashboard, Integer, Hash)>] Dashboard data, response status code and response headers def get_dashboard_with_http_info(dashboard_id, opts = {}) @@ -326,7 +326,7 @@ def get_dashboard_with_http_info(dashboard_id, opts = {}) # # **Note**: This query will only return custom created or cloned dashboards. # This query will not return preset dashboards. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Boolean] :filter_shared When `true`, this query only returns shared custom created or cloned dashboards. # @option opts [Boolean] :filter_deleted When `true`, this query returns only deleted custom-created or cloned dashboards. This parameter is incompatible with `filter[shared]`. # @return [DashboardSummary] @@ -340,7 +340,7 @@ def list_dashboards(opts = {}) # # **Note**: This query will only return custom created or cloned dashboards. # This query will not return preset dashboards. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Boolean] :filter_shared When `true`, this query only returns shared custom created or cloned dashboards. # @option opts [Boolean] :filter_deleted When `true`, this query returns only deleted custom-created or cloned dashboards. This parameter is incompatible with `filter[shared]`. # @return [Array<(DashboardSummary, Integer, Hash)>] DashboardSummary data, response status code and response headers @@ -403,7 +403,7 @@ def list_dashboards_with_http_info(opts = {}) # Restore deleted dashboards # Restore dashboards using the specified IDs. If there are any failures, no dashboards will be restored (partial success is not allowed). # @param body [DashboardRestoreRequest] Restore dashboards request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def restore_dashboards(body, opts = {}) restore_dashboards_with_http_info(body, opts) @@ -413,7 +413,7 @@ def restore_dashboards(body, opts = {}) # Restore deleted dashboards # Restore dashboards using the specified IDs. If there are any failures, no dashboards will be restored (partial success is not allowed). # @param body [DashboardRestoreRequest] Restore dashboards request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def restore_dashboards_with_http_info(body, opts = {}) @@ -479,7 +479,7 @@ def restore_dashboards_with_http_info(body, opts = {}) # Update a dashboard using the specified ID. # @param dashboard_id [String] The ID of the dashboard. # @param body [Dashboard] Update Dashboard request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Dashboard] def update_dashboard(dashboard_id, body, opts = {}) data, _status_code, _headers = update_dashboard_with_http_info(dashboard_id, body, opts) @@ -490,7 +490,7 @@ def update_dashboard(dashboard_id, body, opts = {}) # Update a dashboard using the specified ID. # @param dashboard_id [String] The ID of the dashboard. # @param body [Dashboard] Update Dashboard request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Dashboard, Integer, Hash)>] Dashboard data, response status code and response headers def update_dashboard_with_http_info(dashboard_id, body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/downtimes_api.rb b/lib/datadog_api_client/v1/api/downtimes_api.rb index 05a38bf6b70..7745a2de0ee 100644 --- a/lib/datadog_api_client/v1/api/downtimes_api.rb +++ b/lib/datadog_api_client/v1/api/downtimes_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Cancel a downtime # Cancel a downtime. # @param downtime_id [Integer] ID of the downtime to cancel. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def cancel_downtime(downtime_id, opts = {}) cancel_downtime_with_http_info(downtime_id, opts) @@ -36,7 +36,7 @@ def cancel_downtime(downtime_id, opts = {}) # Cancel a downtime # Cancel a downtime. # @param downtime_id [Integer] ID of the downtime to cancel. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def cancel_downtime_with_http_info(downtime_id, opts = {}) @@ -99,7 +99,7 @@ def cancel_downtime_with_http_info(downtime_id, opts = {}) # Cancel downtimes by scope # Delete all downtimes that match the scope of `X`. # @param body [CancelDowntimesByScopeRequest] Scope to cancel downtimes for. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [CanceledDowntimesIds] def cancel_downtimes_by_scope(body, opts = {}) data, _status_code, _headers = cancel_downtimes_by_scope_with_http_info(body, opts) @@ -109,7 +109,7 @@ def cancel_downtimes_by_scope(body, opts = {}) # Cancel downtimes by scope # Delete all downtimes that match the scope of `X`. # @param body [CancelDowntimesByScopeRequest] Scope to cancel downtimes for. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(CanceledDowntimesIds, Integer, Hash)>] CanceledDowntimesIds data, response status code and response headers def cancel_downtimes_by_scope_with_http_info(body, opts = {}) @@ -174,7 +174,7 @@ def cancel_downtimes_by_scope_with_http_info(body, opts = {}) # Schedule a downtime # Schedule a downtime. # @param body [Downtime] Schedule a downtime request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Downtime] def create_downtime(body, opts = {}) data, _status_code, _headers = create_downtime_with_http_info(body, opts) @@ -184,7 +184,7 @@ def create_downtime(body, opts = {}) # Schedule a downtime # Schedule a downtime. # @param body [Downtime] Schedule a downtime request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Downtime, Integer, Hash)>] Downtime data, response status code and response headers def create_downtime_with_http_info(body, opts = {}) @@ -249,7 +249,7 @@ def create_downtime_with_http_info(body, opts = {}) # Get a downtime # Get downtime detail by `downtime_id`. # @param downtime_id [Integer] ID of the downtime to fetch. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Downtime] def get_downtime(downtime_id, opts = {}) data, _status_code, _headers = get_downtime_with_http_info(downtime_id, opts) @@ -259,7 +259,7 @@ def get_downtime(downtime_id, opts = {}) # Get a downtime # Get downtime detail by `downtime_id`. # @param downtime_id [Integer] ID of the downtime to fetch. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Downtime, Integer, Hash)>] Downtime data, response status code and response headers def get_downtime_with_http_info(downtime_id, opts = {}) @@ -321,7 +321,7 @@ def get_downtime_with_http_info(downtime_id, opts = {}) # Get all downtimes # Get all scheduled downtimes. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Boolean] :current_only Only return downtimes that are active when the request is made. # @return [Array] def list_downtimes(opts = {}) @@ -331,7 +331,7 @@ def list_downtimes(opts = {}) # Get all downtimes # Get all scheduled downtimes. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Boolean] :current_only Only return downtimes that are active when the request is made. # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers def list_downtimes_with_http_info(opts = {}) @@ -392,7 +392,7 @@ def list_downtimes_with_http_info(opts = {}) # Get all downtimes for a monitor # Get all active downtimes for the specified monitor. # @param monitor_id [Integer] The id of the monitor - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array] def list_monitor_downtimes(monitor_id, opts = {}) data, _status_code, _headers = list_monitor_downtimes_with_http_info(monitor_id, opts) @@ -402,7 +402,7 @@ def list_monitor_downtimes(monitor_id, opts = {}) # Get all downtimes for a monitor # Get all active downtimes for the specified monitor. # @param monitor_id [Integer] The id of the monitor - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers def list_monitor_downtimes_with_http_info(monitor_id, opts = {}) @@ -466,7 +466,7 @@ def list_monitor_downtimes_with_http_info(monitor_id, opts = {}) # Update a single downtime by `downtime_id`. # @param downtime_id [Integer] ID of the downtime to update. # @param body [Downtime] Update a downtime request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Downtime] def update_downtime(downtime_id, body, opts = {}) data, _status_code, _headers = update_downtime_with_http_info(downtime_id, body, opts) @@ -477,7 +477,7 @@ def update_downtime(downtime_id, body, opts = {}) # Update a single downtime by `downtime_id`. # @param downtime_id [Integer] ID of the downtime to update. # @param body [Downtime] Update a downtime request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Downtime, Integer, Hash)>] Downtime data, response status code and response headers def update_downtime_with_http_info(downtime_id, body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/events_api.rb b/lib/datadog_api_client/v1/api/events_api.rb index 84c952f68b2..8670abf852a 100644 --- a/lib/datadog_api_client/v1/api/events_api.rb +++ b/lib/datadog_api_client/v1/api/events_api.rb @@ -27,7 +27,7 @@ def initialize(api_client = APIClient.default) # This endpoint allows you to post events to the stream. # Tag them, set priority and event aggregate them with other events. # @param body [EventCreateRequest] Event request object - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [EventCreateResponse] def create_event(body, opts = {}) data, _status_code, _headers = create_event_with_http_info(body, opts) @@ -38,7 +38,7 @@ def create_event(body, opts = {}) # This endpoint allows you to post events to the stream. # Tag them, set priority and event aggregate them with other events. # @param body [EventCreateRequest] Event request object - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(EventCreateResponse, Integer, Hash)>] EventCreateResponse data, response status code and response headers def create_event_with_http_info(body, opts = {}) @@ -106,7 +106,7 @@ def create_event_with_http_info(body, opts = {}) # **Note**: If the event you’re querying contains markdown formatting of any kind, # you may see characters such as `%`,`\`,`n` in your output. # @param event_id [Integer] The ID of the event. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [EventResponse] def get_event(event_id, opts = {}) data, _status_code, _headers = get_event_with_http_info(event_id, opts) @@ -119,7 +119,7 @@ def get_event(event_id, opts = {}) # **Note**: If the event you’re querying contains markdown formatting of any kind, # you may see characters such as `%`,`\`,`n` in your output. # @param event_id [Integer] The ID of the event. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(EventResponse, Integer, Hash)>] EventResponse data, response status code and response headers def get_event_with_http_info(event_id, opts = {}) @@ -191,7 +191,7 @@ def get_event_with_http_info(event_id, opts = {}) # paginate the results. You can also use the page parameter to specify which set of `1000` results to return. # @param start [Integer] POSIX timestamp. # @param _end [Integer] POSIX timestamp. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [EventPriority] :priority Priority of your events, either `low` or `normal`. # @option opts [String] :sources A comma separated string of sources. # @option opts [String] :tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope. @@ -216,7 +216,7 @@ def list_events(start, _end, opts = {}) # paginate the results. You can also use the page parameter to specify which set of `1000` results to return. # @param start [Integer] POSIX timestamp. # @param _end [Integer] POSIX timestamp. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [EventPriority] :priority Priority of your events, either `low` or `normal`. # @option opts [String] :sources A comma separated string of sources. # @option opts [String] :tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope. @@ -251,7 +251,7 @@ def list_events_with_http_info(start, _end, opts = {}) fail ArgumentError, "invalid value for \"priority\", must be one of #{allowable_values}" end if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] > 2147483647 - fail ArgumentError, 'invalid value for "opts[:"page"]" when calling EventsAPI.ListEvents, must be smaller than or equal to 2147483647.' + fail ArgumentError, 'invalid value for "opts[:"page"]" when calling EventsAPI.list_events, must be smaller than or equal to 2147483647.' end # resource path local_var_path = '/api/v1/events' diff --git a/lib/datadog_api_client/v1/api/gcp_integration_api.rb b/lib/datadog_api_client/v1/api/gcp_integration_api.rb index 2b6b5347090..8396c872c69 100644 --- a/lib/datadog_api_client/v1/api/gcp_integration_api.rb +++ b/lib/datadog_api_client/v1/api/gcp_integration_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Create a GCP integration # Create a Datadog-GCP integration. # @param body [GCPAccount] Create a Datadog-GCP integration. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Object] def create_gcp_integration(body, opts = {}) data, _status_code, _headers = create_gcp_integration_with_http_info(body, opts) @@ -36,7 +36,7 @@ def create_gcp_integration(body, opts = {}) # Create a GCP integration # Create a Datadog-GCP integration. # @param body [GCPAccount] Create a Datadog-GCP integration. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def create_gcp_integration_with_http_info(body, opts = {}) @@ -101,7 +101,7 @@ def create_gcp_integration_with_http_info(body, opts = {}) # Delete a GCP integration # Delete a given Datadog-GCP integration. # @param body [GCPAccount] Delete a given Datadog-GCP integration. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Object] def delete_gcp_integration(body, opts = {}) data, _status_code, _headers = delete_gcp_integration_with_http_info(body, opts) @@ -111,7 +111,7 @@ def delete_gcp_integration(body, opts = {}) # Delete a GCP integration # Delete a given Datadog-GCP integration. # @param body [GCPAccount] Delete a given Datadog-GCP integration. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def delete_gcp_integration_with_http_info(body, opts = {}) @@ -175,7 +175,7 @@ def delete_gcp_integration_with_http_info(body, opts = {}) # List all GCP integrations # List all Datadog-GCP integrations configured in your Datadog account. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array] def list_gcp_integration(opts = {}) data, _status_code, _headers = list_gcp_integration_with_http_info(opts) @@ -184,7 +184,7 @@ def list_gcp_integration(opts = {}) # List all GCP integrations # List all Datadog-GCP integrations configured in your Datadog account. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers def list_gcp_integration_with_http_info(opts = {}) @@ -246,7 +246,7 @@ def list_gcp_integration_with_http_info(opts = {}) # If you need to update these fields, delete and use the create (`POST`) endpoint. # The unspecified fields will keep their original values. # @param body [GCPAccount] Update a Datadog-GCP integration. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Object] def update_gcp_integration(body, opts = {}) data, _status_code, _headers = update_gcp_integration_with_http_info(body, opts) @@ -259,7 +259,7 @@ def update_gcp_integration(body, opts = {}) # If you need to update these fields, delete and use the create (`POST`) endpoint. # The unspecified fields will keep their original values. # @param body [GCPAccount] Update a Datadog-GCP integration. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def update_gcp_integration_with_http_info(body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/hosts_api.rb b/lib/datadog_api_client/v1/api/hosts_api.rb index 9b015fc32db..1e150e8d4bc 100644 --- a/lib/datadog_api_client/v1/api/hosts_api.rb +++ b/lib/datadog_api_client/v1/api/hosts_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Get the total number of active hosts # This endpoint returns the total number of active and up hosts in your Datadog account. # Active means the host has reported in the past hour, and up means it has reported in the past two hours. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :from Number of seconds from which you want to get total number of active hosts. # @return [HostTotals] def get_host_totals(opts = {}) @@ -37,7 +37,7 @@ def get_host_totals(opts = {}) # Get the total number of active hosts # This endpoint returns the total number of active and up hosts in your Datadog account. # Active means the host has reported in the past hour, and up means it has reported in the past two hours. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :from Number of seconds from which you want to get total number of active hosts. # @return [Array<(HostTotals, Integer, Hash)>] HostTotals data, response status code and response headers def get_host_totals_with_http_info(opts = {}) @@ -100,7 +100,7 @@ def get_host_totals_with_http_info(opts = {}) # Hosts live within the past 3 hours are included by default. # Retention is 7 days. # Results are paginated with a max of 1000 results at a time. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :filter String to filter search results. # @option opts [String] :sort_field Sort hosts by this field. # @option opts [String] :sort_dir Direction of sort. Options include `asc` and `desc`. @@ -120,7 +120,7 @@ def list_hosts(opts = {}) # Hosts live within the past 3 hours are included by default. # Retention is 7 days. # Results are paginated with a max of 1000 results at a time. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :filter String to filter search results. # @option opts [String] :sort_field Sort hosts by this field. # @option opts [String] :sort_dir Direction of sort. Options include `asc` and `desc`. @@ -196,7 +196,7 @@ def list_hosts_with_http_info(opts = {}) # Mute a host. # @param host_name [String] Name of the host to mute. # @param body [HostMuteSettings] Mute a host request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [HostMuteResponse] def mute_host(host_name, body, opts = {}) data, _status_code, _headers = mute_host_with_http_info(host_name, body, opts) @@ -207,7 +207,7 @@ def mute_host(host_name, body, opts = {}) # Mute a host. # @param host_name [String] Name of the host to mute. # @param body [HostMuteSettings] Mute a host request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(HostMuteResponse, Integer, Hash)>] HostMuteResponse data, response status code and response headers def mute_host_with_http_info(host_name, body, opts = {}) @@ -276,7 +276,7 @@ def mute_host_with_http_info(host_name, body, opts = {}) # Unmute a host # Unmutes a host. This endpoint takes no JSON arguments. # @param host_name [String] Name of the host to unmute. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [HostMuteResponse] def unmute_host(host_name, opts = {}) data, _status_code, _headers = unmute_host_with_http_info(host_name, opts) @@ -286,7 +286,7 @@ def unmute_host(host_name, opts = {}) # Unmute a host # Unmutes a host. This endpoint takes no JSON arguments. # @param host_name [String] Name of the host to unmute. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(HostMuteResponse, Integer, Hash)>] HostMuteResponse data, response status code and response headers def unmute_host_with_http_info(host_name, opts = {}) diff --git a/lib/datadog_api_client/v1/api/ip_ranges_api.rb b/lib/datadog_api_client/v1/api/ip_ranges_api.rb index 9b1a135ad06..63dd89e2a76 100644 --- a/lib/datadog_api_client/v1/api/ip_ranges_api.rb +++ b/lib/datadog_api_client/v1/api/ip_ranges_api.rb @@ -25,7 +25,7 @@ def initialize(api_client = APIClient.default) # List IP Ranges # Get information about Datadog IP ranges. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [IPRanges] def get_ip_ranges(opts = {}) data, _status_code, _headers = get_ip_ranges_with_http_info(opts) @@ -34,7 +34,7 @@ def get_ip_ranges(opts = {}) # List IP Ranges # Get information about Datadog IP ranges. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(IPRanges, Integer, Hash)>] IPRanges data, response status code and response headers def get_ip_ranges_with_http_info(opts = {}) diff --git a/lib/datadog_api_client/v1/api/key_management_api.rb b/lib/datadog_api_client/v1/api/key_management_api.rb index 8ccc679117a..b1cc32415d2 100644 --- a/lib/datadog_api_client/v1/api/key_management_api.rb +++ b/lib/datadog_api_client/v1/api/key_management_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Create an API key # Creates an API key with a given name. # @param body [ApiKey] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [ApiKeyResponse] def create_api_key(body, opts = {}) data, _status_code, _headers = create_api_key_with_http_info(body, opts) @@ -36,7 +36,7 @@ def create_api_key(body, opts = {}) # Create an API key # Creates an API key with a given name. # @param body [ApiKey] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(ApiKeyResponse, Integer, Hash)>] ApiKeyResponse data, response status code and response headers def create_api_key_with_http_info(body, opts = {}) @@ -101,7 +101,7 @@ def create_api_key_with_http_info(body, opts = {}) # Create an application key # Create an application key with a given name. # @param body [ApplicationKey] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [ApplicationKeyResponse] def create_application_key(body, opts = {}) data, _status_code, _headers = create_application_key_with_http_info(body, opts) @@ -111,7 +111,7 @@ def create_application_key(body, opts = {}) # Create an application key # Create an application key with a given name. # @param body [ApplicationKey] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(ApplicationKeyResponse, Integer, Hash)>] ApplicationKeyResponse data, response status code and response headers def create_application_key_with_http_info(body, opts = {}) @@ -176,7 +176,7 @@ def create_application_key_with_http_info(body, opts = {}) # Delete an API key # Delete a given API key. # @param key [String] The specific API key you are working with. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [ApiKeyResponse] def delete_api_key(key, opts = {}) data, _status_code, _headers = delete_api_key_with_http_info(key, opts) @@ -186,7 +186,7 @@ def delete_api_key(key, opts = {}) # Delete an API key # Delete a given API key. # @param key [String] The specific API key you are working with. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(ApiKeyResponse, Integer, Hash)>] ApiKeyResponse data, response status code and response headers def delete_api_key_with_http_info(key, opts = {}) @@ -249,7 +249,7 @@ def delete_api_key_with_http_info(key, opts = {}) # Delete an application key # Delete a given application key. # @param key [String] The specific APP key you are working with. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [ApplicationKeyResponse] def delete_application_key(key, opts = {}) data, _status_code, _headers = delete_application_key_with_http_info(key, opts) @@ -259,7 +259,7 @@ def delete_application_key(key, opts = {}) # Delete an application key # Delete a given application key. # @param key [String] The specific APP key you are working with. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(ApplicationKeyResponse, Integer, Hash)>] ApplicationKeyResponse data, response status code and response headers def delete_application_key_with_http_info(key, opts = {}) @@ -322,7 +322,7 @@ def delete_application_key_with_http_info(key, opts = {}) # Get API key # Get a given API key. # @param key [String] The specific API key you are working with. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [ApiKeyResponse] def get_api_key(key, opts = {}) data, _status_code, _headers = get_api_key_with_http_info(key, opts) @@ -332,7 +332,7 @@ def get_api_key(key, opts = {}) # Get API key # Get a given API key. # @param key [String] The specific API key you are working with. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(ApiKeyResponse, Integer, Hash)>] ApiKeyResponse data, response status code and response headers def get_api_key_with_http_info(key, opts = {}) @@ -395,7 +395,7 @@ def get_api_key_with_http_info(key, opts = {}) # Get an application key # Get a given application key. # @param key [String] The specific APP key you are working with. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [ApplicationKeyResponse] def get_application_key(key, opts = {}) data, _status_code, _headers = get_application_key_with_http_info(key, opts) @@ -405,7 +405,7 @@ def get_application_key(key, opts = {}) # Get an application key # Get a given application key. # @param key [String] The specific APP key you are working with. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(ApplicationKeyResponse, Integer, Hash)>] ApplicationKeyResponse data, response status code and response headers def get_application_key_with_http_info(key, opts = {}) @@ -467,7 +467,7 @@ def get_application_key_with_http_info(key, opts = {}) # Get all API keys # Get all API keys available for your account. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [ApiKeyListResponse] def list_api_keys(opts = {}) data, _status_code, _headers = list_api_keys_with_http_info(opts) @@ -476,7 +476,7 @@ def list_api_keys(opts = {}) # Get all API keys # Get all API keys available for your account. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(ApiKeyListResponse, Integer, Hash)>] ApiKeyListResponse data, response status code and response headers def list_api_keys_with_http_info(opts = {}) @@ -534,7 +534,7 @@ def list_api_keys_with_http_info(opts = {}) # Get all application keys # Get all application keys available for your Datadog account. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [ApplicationKeyListResponse] def list_application_keys(opts = {}) data, _status_code, _headers = list_application_keys_with_http_info(opts) @@ -543,7 +543,7 @@ def list_application_keys(opts = {}) # Get all application keys # Get all application keys available for your Datadog account. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(ApplicationKeyListResponse, Integer, Hash)>] ApplicationKeyListResponse data, response status code and response headers def list_application_keys_with_http_info(opts = {}) @@ -603,7 +603,7 @@ def list_application_keys_with_http_info(opts = {}) # Edit an API key name. # @param key [String] The specific API key you are working with. # @param body [ApiKey] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [ApiKeyResponse] def update_api_key(key, body, opts = {}) data, _status_code, _headers = update_api_key_with_http_info(key, body, opts) @@ -614,7 +614,7 @@ def update_api_key(key, body, opts = {}) # Edit an API key name. # @param key [String] The specific API key you are working with. # @param body [ApiKey] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(ApiKeyResponse, Integer, Hash)>] ApiKeyResponse data, response status code and response headers def update_api_key_with_http_info(key, body, opts = {}) @@ -684,7 +684,7 @@ def update_api_key_with_http_info(key, body, opts = {}) # Edit an application key name. # @param key [String] The specific APP key you are working with. # @param body [ApplicationKey] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [ApplicationKeyResponse] def update_application_key(key, body, opts = {}) data, _status_code, _headers = update_application_key_with_http_info(key, body, opts) @@ -695,7 +695,7 @@ def update_application_key(key, body, opts = {}) # Edit an application key name. # @param key [String] The specific APP key you are working with. # @param body [ApplicationKey] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(ApplicationKeyResponse, Integer, Hash)>] ApplicationKeyResponse data, response status code and response headers def update_application_key_with_http_info(key, body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/logs_api.rb b/lib/datadog_api_client/v1/api/logs_api.rb index fc1d83c44c3..ffba91b1c3d 100644 --- a/lib/datadog_api_client/v1/api/logs_api.rb +++ b/lib/datadog_api_client/v1/api/logs_api.rb @@ -34,7 +34,7 @@ def initialize(api_client = APIClient.default) # [1]: /logs/guide/collect-multiple-logs-with-pagination # [2]: https://docs.datadoghq.com/logs/archives # @param body [LogsListRequest] Logs filter - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsListResponse] def list_logs(body, opts = {}) data, _status_code, _headers = list_logs_with_http_info(body, opts) @@ -52,7 +52,7 @@ def list_logs(body, opts = {}) # [1]: /logs/guide/collect-multiple-logs-with-pagination # [2]: https://docs.datadoghq.com/logs/archives # @param body [LogsListRequest] Logs filter - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsListResponse, Integer, Hash)>] LogsListResponse data, response status code and response headers def list_logs_with_http_info(body, opts = {}) @@ -135,7 +135,7 @@ def list_logs_with_http_info(body, opts = {}) # - 413: Payload too large (batch is above 5MB uncompressed) # - 5xx: Internal error, request should be retried after some time # @param body [Array] Log to send (JSON format). - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [ContentEncoding] :content_encoding HTTP header used to compress the media-type. # @option opts [String] :ddtags Log tags can be passed as query parameters with `text/plain` content type. # @return [Object] @@ -165,7 +165,7 @@ def submit_log(body, opts = {}) # - 413: Payload too large (batch is above 5MB uncompressed) # - 5xx: Internal error, request should be retried after some time # @param body [Array] Log to send (JSON format). - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [ContentEncoding] :content_encoding HTTP header used to compress the media-type. # @option opts [String] :ddtags Log tags can be passed as query parameters with `text/plain` content type. # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers diff --git a/lib/datadog_api_client/v1/api/logs_indexes_api.rb b/lib/datadog_api_client/v1/api/logs_indexes_api.rb index 1cebdd14373..5670b3500e3 100644 --- a/lib/datadog_api_client/v1/api/logs_indexes_api.rb +++ b/lib/datadog_api_client/v1/api/logs_indexes_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Create an index # Creates a new index. Returns the Index object passed in the request body when the request is successful. # @param body [LogsIndex] Object containing the new index. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsIndex] def create_logs_index(body, opts = {}) data, _status_code, _headers = create_logs_index_with_http_info(body, opts) @@ -36,7 +36,7 @@ def create_logs_index(body, opts = {}) # Create an index # Creates a new index. Returns the Index object passed in the request body when the request is successful. # @param body [LogsIndex] Object containing the new index. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsIndex, Integer, Hash)>] LogsIndex data, response status code and response headers def create_logs_index_with_http_info(body, opts = {}) @@ -101,7 +101,7 @@ def create_logs_index_with_http_info(body, opts = {}) # Get an index # Get one log index from your organization. This endpoint takes no JSON arguments. # @param name [String] Name of the log index. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsIndex] def get_logs_index(name, opts = {}) data, _status_code, _headers = get_logs_index_with_http_info(name, opts) @@ -111,7 +111,7 @@ def get_logs_index(name, opts = {}) # Get an index # Get one log index from your organization. This endpoint takes no JSON arguments. # @param name [String] Name of the log index. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsIndex, Integer, Hash)>] LogsIndex data, response status code and response headers def get_logs_index_with_http_info(name, opts = {}) @@ -173,7 +173,7 @@ def get_logs_index_with_http_info(name, opts = {}) # Get indexes order # Get the current order of your log indexes. This endpoint takes no JSON arguments. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsIndexesOrder] def get_logs_index_order(opts = {}) data, _status_code, _headers = get_logs_index_order_with_http_info(opts) @@ -182,7 +182,7 @@ def get_logs_index_order(opts = {}) # Get indexes order # Get the current order of your log indexes. This endpoint takes no JSON arguments. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsIndexesOrder, Integer, Hash)>] LogsIndexesOrder data, response status code and response headers def get_logs_index_order_with_http_info(opts = {}) @@ -241,7 +241,7 @@ def get_logs_index_order_with_http_info(opts = {}) # Get all indexes # The Index object describes the configuration of a log index. # This endpoint returns an array of the `LogIndex` objects of your organization. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsIndexListResponse] def list_log_indexes(opts = {}) data, _status_code, _headers = list_log_indexes_with_http_info(opts) @@ -251,7 +251,7 @@ def list_log_indexes(opts = {}) # Get all indexes # The Index object describes the configuration of a log index. # This endpoint returns an array of the `LogIndex` objects of your organization. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsIndexListResponse, Integer, Hash)>] LogsIndexListResponse data, response status code and response headers def list_log_indexes_with_http_info(opts = {}) @@ -315,7 +315,7 @@ def list_log_indexes_with_http_info(opts = {}) # your current configuration with the new one sent to your Datadog organization. # @param name [String] Name of the log index. # @param body [LogsIndexUpdateRequest] Object containing the new `LogsIndexUpdateRequest`. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsIndex] def update_logs_index(name, body, opts = {}) data, _status_code, _headers = update_logs_index_with_http_info(name, body, opts) @@ -330,7 +330,7 @@ def update_logs_index(name, body, opts = {}) # your current configuration with the new one sent to your Datadog organization. # @param name [String] Name of the log index. # @param body [LogsIndexUpdateRequest] Object containing the new `LogsIndexUpdateRequest`. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsIndex, Integer, Hash)>] LogsIndex data, response status code and response headers def update_logs_index_with_http_info(name, body, opts = {}) @@ -400,7 +400,7 @@ def update_logs_index_with_http_info(name, body, opts = {}) # This endpoint updates the index order of your organization. # It returns the index order object passed in the request body when the request is successful. # @param body [LogsIndexesOrder] Object containing the new ordered list of index names - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsIndexesOrder] def update_logs_index_order(body, opts = {}) data, _status_code, _headers = update_logs_index_order_with_http_info(body, opts) @@ -411,7 +411,7 @@ def update_logs_index_order(body, opts = {}) # This endpoint updates the index order of your organization. # It returns the index order object passed in the request body when the request is successful. # @param body [LogsIndexesOrder] Object containing the new ordered list of index names - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsIndexesOrder, Integer, Hash)>] LogsIndexesOrder data, response status code and response headers def update_logs_index_order_with_http_info(body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/logs_pipelines_api.rb b/lib/datadog_api_client/v1/api/logs_pipelines_api.rb index 3fd49a1fd6f..b0b3d56ed5b 100644 --- a/lib/datadog_api_client/v1/api/logs_pipelines_api.rb +++ b/lib/datadog_api_client/v1/api/logs_pipelines_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Create a pipeline # Create a pipeline in your organization. # @param body [LogsPipeline] Definition of the new pipeline. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsPipeline] def create_logs_pipeline(body, opts = {}) data, _status_code, _headers = create_logs_pipeline_with_http_info(body, opts) @@ -36,7 +36,7 @@ def create_logs_pipeline(body, opts = {}) # Create a pipeline # Create a pipeline in your organization. # @param body [LogsPipeline] Definition of the new pipeline. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsPipeline, Integer, Hash)>] LogsPipeline data, response status code and response headers def create_logs_pipeline_with_http_info(body, opts = {}) @@ -102,7 +102,7 @@ def create_logs_pipeline_with_http_info(body, opts = {}) # Delete a given pipeline from your organization. # This endpoint takes no JSON arguments. # @param pipeline_id [String] ID of the pipeline to delete. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_logs_pipeline(pipeline_id, opts = {}) delete_logs_pipeline_with_http_info(pipeline_id, opts) @@ -113,7 +113,7 @@ def delete_logs_pipeline(pipeline_id, opts = {}) # Delete a given pipeline from your organization. # This endpoint takes no JSON arguments. # @param pipeline_id [String] ID of the pipeline to delete. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_logs_pipeline_with_http_info(pipeline_id, opts = {}) @@ -177,7 +177,7 @@ def delete_logs_pipeline_with_http_info(pipeline_id, opts = {}) # Get a specific pipeline from your organization. # This endpoint takes no JSON arguments. # @param pipeline_id [String] ID of the pipeline to get. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsPipeline] def get_logs_pipeline(pipeline_id, opts = {}) data, _status_code, _headers = get_logs_pipeline_with_http_info(pipeline_id, opts) @@ -188,7 +188,7 @@ def get_logs_pipeline(pipeline_id, opts = {}) # Get a specific pipeline from your organization. # This endpoint takes no JSON arguments. # @param pipeline_id [String] ID of the pipeline to get. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsPipeline, Integer, Hash)>] LogsPipeline data, response status code and response headers def get_logs_pipeline_with_http_info(pipeline_id, opts = {}) @@ -251,7 +251,7 @@ def get_logs_pipeline_with_http_info(pipeline_id, opts = {}) # Get pipeline order # Get the current order of your pipelines. # This endpoint takes no JSON arguments. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsPipelinesOrder] def get_logs_pipeline_order(opts = {}) data, _status_code, _headers = get_logs_pipeline_order_with_http_info(opts) @@ -261,7 +261,7 @@ def get_logs_pipeline_order(opts = {}) # Get pipeline order # Get the current order of your pipelines. # This endpoint takes no JSON arguments. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsPipelinesOrder, Integer, Hash)>] LogsPipelinesOrder data, response status code and response headers def get_logs_pipeline_order_with_http_info(opts = {}) @@ -320,7 +320,7 @@ def get_logs_pipeline_order_with_http_info(opts = {}) # Get all pipelines # Get all pipelines from your organization. # This endpoint takes no JSON arguments. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array] def list_logs_pipelines(opts = {}) data, _status_code, _headers = list_logs_pipelines_with_http_info(opts) @@ -330,7 +330,7 @@ def list_logs_pipelines(opts = {}) # Get all pipelines # Get all pipelines from your organization. # This endpoint takes no JSON arguments. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers def list_logs_pipelines_with_http_info(opts = {}) @@ -393,7 +393,7 @@ def list_logs_pipelines_with_http_info(opts = {}) # your current configuration with the new one sent to your Datadog organization. # @param pipeline_id [String] ID of the pipeline to delete. # @param body [LogsPipeline] New definition of the pipeline. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsPipeline] def update_logs_pipeline(pipeline_id, body, opts = {}) data, _status_code, _headers = update_logs_pipeline_with_http_info(pipeline_id, body, opts) @@ -407,7 +407,7 @@ def update_logs_pipeline(pipeline_id, body, opts = {}) # your current configuration with the new one sent to your Datadog organization. # @param pipeline_id [String] ID of the pipeline to delete. # @param body [LogsPipeline] New definition of the pipeline. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsPipeline, Integer, Hash)>] LogsPipeline data, response status code and response headers def update_logs_pipeline_with_http_info(pipeline_id, body, opts = {}) @@ -480,7 +480,7 @@ def update_logs_pipeline_with_http_info(pipeline_id, body, opts = {}) # **Note**: Using the `PUT` method updates your pipeline order by replacing your current order # with the new one sent to your Datadog organization. # @param body [LogsPipelinesOrder] Object containing the new ordered list of pipeline IDs. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsPipelinesOrder] def update_logs_pipeline_order(body, opts = {}) data, _status_code, _headers = update_logs_pipeline_order_with_http_info(body, opts) @@ -494,7 +494,7 @@ def update_logs_pipeline_order(body, opts = {}) # **Note**: Using the `PUT` method updates your pipeline order by replacing your current order # with the new one sent to your Datadog organization. # @param body [LogsPipelinesOrder] Object containing the new ordered list of pipeline IDs. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsPipelinesOrder, Integer, Hash)>] LogsPipelinesOrder data, response status code and response headers def update_logs_pipeline_order_with_http_info(body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/metrics_api.rb b/lib/datadog_api_client/v1/api/metrics_api.rb index 78023a1b3b1..e0d475adb07 100644 --- a/lib/datadog_api_client/v1/api/metrics_api.rb +++ b/lib/datadog_api_client/v1/api/metrics_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Get metric metadata # Get metadata about a specific metric. # @param metric_name [String] Name of the metric for which to get metadata. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [MetricMetadata] def get_metric_metadata(metric_name, opts = {}) data, _status_code, _headers = get_metric_metadata_with_http_info(metric_name, opts) @@ -36,7 +36,7 @@ def get_metric_metadata(metric_name, opts = {}) # Get metric metadata # Get metadata about a specific metric. # @param metric_name [String] Name of the metric for which to get metadata. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(MetricMetadata, Integer, Hash)>] MetricMetadata data, response status code and response headers def get_metric_metadata_with_http_info(metric_name, opts = {}) @@ -99,7 +99,7 @@ def get_metric_metadata_with_http_info(metric_name, opts = {}) # Get active metrics list # Get the list of actively reporting metrics from a given time until now. # @param from [Integer] Seconds since the Unix epoch. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :host Hostname for filtering the list of metrics returned. If set, metrics retrieved are those with the corresponding hostname tag. # @option opts [String] :tag_filter Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Cannot be combined with other filters. # @return [MetricsListResponse] @@ -111,7 +111,7 @@ def list_active_metrics(from, opts = {}) # Get active metrics list # Get the list of actively reporting metrics from a given time until now. # @param from [Integer] Seconds since the Unix epoch. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :host Hostname for filtering the list of metrics returned. If set, metrics retrieved are those with the corresponding hostname tag. # @option opts [String] :tag_filter Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Cannot be combined with other filters. # @return [Array<(MetricsListResponse, Integer, Hash)>] MetricsListResponse data, response status code and response headers @@ -179,7 +179,7 @@ def list_active_metrics_with_http_info(from, opts = {}) # Search metrics # Search for metrics from the last 24 hours in Datadog. # @param q [String] Query string to search metrics upon. Must be prefixed with `metrics:`. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [MetricSearchResponse] def list_metrics(q, opts = {}) data, _status_code, _headers = list_metrics_with_http_info(q, opts) @@ -189,7 +189,7 @@ def list_metrics(q, opts = {}) # Search metrics # Search for metrics from the last 24 hours in Datadog. # @param q [String] Query string to search metrics upon. Must be prefixed with `metrics:`. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(MetricSearchResponse, Integer, Hash)>] MetricSearchResponse data, response status code and response headers def list_metrics_with_http_info(q, opts = {}) @@ -255,7 +255,7 @@ def list_metrics_with_http_info(q, opts = {}) # @param from [Integer] Start of the queried time period, seconds since the Unix epoch. # @param to [Integer] End of the queried time period, seconds since the Unix epoch. # @param query [String] Query string. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [MetricsQueryResponse] def query_metrics(from, to, query, opts = {}) data, _status_code, _headers = query_metrics_with_http_info(from, to, query, opts) @@ -267,7 +267,7 @@ def query_metrics(from, to, query, opts = {}) # @param from [Integer] Start of the queried time period, seconds since the Unix epoch. # @param to [Integer] End of the queried time period, seconds since the Unix epoch. # @param query [String] Query string. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(MetricsQueryResponse, Integer, Hash)>] MetricsQueryResponse data, response status code and response headers def query_metrics_with_http_info(from, to, query, opts = {}) @@ -351,7 +351,7 @@ def query_metrics_with_http_info(from, to, query, opts = {}) # - The full payload is approximately 100 bytes. However, with the DogStatsD API, # compression is applied, which reduces the payload size. # @param body [MetricsPayload] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [MetricContentEncoding] :content_encoding HTTP header used to compress the media-type. # @return [IntakePayloadAccepted] def submit_metrics(body, opts = {}) @@ -372,7 +372,7 @@ def submit_metrics(body, opts = {}) # - The full payload is approximately 100 bytes. However, with the DogStatsD API, # compression is applied, which reduces the payload size. # @param body [MetricsPayload] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [MetricContentEncoding] :content_encoding HTTP header used to compress the media-type. # @return [Array<(IntakePayloadAccepted, Integer, Hash)>] IntakePayloadAccepted data, response status code and response headers def submit_metrics_with_http_info(body, opts = {}) @@ -444,7 +444,7 @@ def submit_metrics_with_http_info(body, opts = {}) # Edit metadata of a specific metric. Find out more about [supported types](https://docs.datadoghq.com/developers/metrics). # @param metric_name [String] Name of the metric for which to edit metadata. # @param body [MetricMetadata] New metadata. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [MetricMetadata] def update_metric_metadata(metric_name, body, opts = {}) data, _status_code, _headers = update_metric_metadata_with_http_info(metric_name, body, opts) @@ -455,7 +455,7 @@ def update_metric_metadata(metric_name, body, opts = {}) # Edit metadata of a specific metric. Find out more about [supported types](https://docs.datadoghq.com/developers/metrics). # @param metric_name [String] Name of the metric for which to edit metadata. # @param body [MetricMetadata] New metadata. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(MetricMetadata, Integer, Hash)>] MetricMetadata data, response status code and response headers def update_metric_metadata_with_http_info(metric_name, body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/monitors_api.rb b/lib/datadog_api_client/v1/api/monitors_api.rb index 830cdda332d..6afe8a35f68 100644 --- a/lib/datadog_api_client/v1/api/monitors_api.rb +++ b/lib/datadog_api_client/v1/api/monitors_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Check if a monitor can be deleted # Check if the given monitors can be deleted. # @param monitor_ids [Array] The IDs of the monitor to check. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [CheckCanDeleteMonitorResponse] def check_can_delete_monitor(monitor_ids, opts = {}) data, _status_code, _headers = check_can_delete_monitor_with_http_info(monitor_ids, opts) @@ -36,7 +36,7 @@ def check_can_delete_monitor(monitor_ids, opts = {}) # Check if a monitor can be deleted # Check if the given monitors can be deleted. # @param monitor_ids [Array] The IDs of the monitor to check. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(CheckCanDeleteMonitorResponse, Integer, Hash)>] CheckCanDeleteMonitorResponse data, response status code and response headers def check_can_delete_monitor_with_http_info(monitor_ids, opts = {}) @@ -258,7 +258,7 @@ def check_can_delete_monitor_with_http_info(monitor_ids, opts = {}) # # **NOTE** Only available in closed beta on US1, EU, US3 and US5. # @param body [Monitor] Create a monitor request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Monitor] def create_monitor(body, opts = {}) data, _status_code, _headers = create_monitor_with_http_info(body, opts) @@ -426,7 +426,7 @@ def create_monitor(body, opts = {}) # # **NOTE** Only available in closed beta on US1, EU, US3 and US5. # @param body [Monitor] Create a monitor request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Monitor, Integer, Hash)>] Monitor data, response status code and response headers def create_monitor_with_http_info(body, opts = {}) @@ -491,7 +491,7 @@ def create_monitor_with_http_info(body, opts = {}) # Delete a monitor # Delete the specified monitor # @param monitor_id [Integer] The ID of the monitor. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :force Delete the monitor even if it's referenced by other resources (for example SLO, composite monitor). # @return [DeletedMonitor] def delete_monitor(monitor_id, opts = {}) @@ -502,7 +502,7 @@ def delete_monitor(monitor_id, opts = {}) # Delete a monitor # Delete the specified monitor # @param monitor_id [Integer] The ID of the monitor. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :force Delete the monitor even if it's referenced by other resources (for example SLO, composite monitor). # @return [Array<(DeletedMonitor, Integer, Hash)>] DeletedMonitor data, response status code and response headers def delete_monitor_with_http_info(monitor_id, opts = {}) @@ -567,7 +567,7 @@ def delete_monitor_with_http_info(monitor_id, opts = {}) # Get a monitor's details # Get details about the specified monitor from your organization. # @param monitor_id [Integer] The ID of the monitor - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :group_states When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`. # @return [Monitor] def get_monitor(monitor_id, opts = {}) @@ -578,7 +578,7 @@ def get_monitor(monitor_id, opts = {}) # Get a monitor's details # Get details about the specified monitor from your organization. # @param monitor_id [Integer] The ID of the monitor - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :group_states When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`. # @return [Array<(Monitor, Integer, Hash)>] Monitor data, response status code and response headers def get_monitor_with_http_info(monitor_id, opts = {}) @@ -642,7 +642,7 @@ def get_monitor_with_http_info(monitor_id, opts = {}) # Get all monitor details # Get details about the specified monitor from your organization. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :group_states When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`. # @option opts [String] :name A string to filter monitors by name. # @option opts [String] :tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope. For example, `host:host0`. @@ -659,7 +659,7 @@ def list_monitors(opts = {}) # Get all monitor details # Get details about the specified monitor from your organization. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :group_states When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`. # @option opts [String] :name A string to filter monitors by name. # @option opts [String] :tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope. For example, `host:host0`. @@ -684,7 +684,7 @@ def list_monitors_with_http_info(opts = {}) @api_client.config.logger.debug 'Calling API: MonitorsAPI.list_monitors ...' end if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000 - fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling MonitorsAPI.ListMonitors, must be smaller than or equal to 1000.' + fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling MonitorsAPI.list_monitors, must be smaller than or equal to 1000.' end # resource path local_var_path = '/api/v1/monitor' @@ -736,7 +736,7 @@ def list_monitors_with_http_info(opts = {}) # Monitors group search # Search and filter your monitor groups details. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query="type:metric status:alert"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors # @option opts [Integer] :page Page to start paginating from. # @option opts [Integer] :per_page Number of monitors to return per page. @@ -749,7 +749,7 @@ def search_monitor_groups(opts = {}) # Monitors group search # Search and filter your monitor groups details. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query="type:metric status:alert"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors # @option opts [Integer] :page Page to start paginating from. # @option opts [Integer] :per_page Number of monitors to return per page. @@ -815,7 +815,7 @@ def search_monitor_groups_with_http_info(opts = {}) # Monitors search # Search and filter your monitors details. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query="type:metric status:alert"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors # @option opts [Integer] :page Page to start paginating from. # @option opts [Integer] :per_page Number of monitors to return per page. @@ -828,7 +828,7 @@ def search_monitors(opts = {}) # Monitors search # Search and filter your monitors details. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query="type:metric status:alert"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors # @option opts [Integer] :page Page to start paginating from. # @option opts [Integer] :per_page Number of monitors to return per page. @@ -896,7 +896,7 @@ def search_monitors_with_http_info(opts = {}) # Edit the specified monitor. # @param monitor_id [Integer] The ID of the monitor. # @param body [MonitorUpdateRequest] Edit a monitor request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Monitor] def update_monitor(monitor_id, body, opts = {}) data, _status_code, _headers = update_monitor_with_http_info(monitor_id, body, opts) @@ -907,7 +907,7 @@ def update_monitor(monitor_id, body, opts = {}) # Edit the specified monitor. # @param monitor_id [Integer] The ID of the monitor. # @param body [MonitorUpdateRequest] Edit a monitor request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Monitor, Integer, Hash)>] Monitor data, response status code and response headers def update_monitor_with_http_info(monitor_id, body, opts = {}) @@ -976,7 +976,7 @@ def update_monitor_with_http_info(monitor_id, body, opts = {}) # Validate a monitor # Validate the monitor provided in the request. # @param body [Monitor] Monitor request object - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Object] def validate_monitor(body, opts = {}) data, _status_code, _headers = validate_monitor_with_http_info(body, opts) @@ -986,7 +986,7 @@ def validate_monitor(body, opts = {}) # Validate a monitor # Validate the monitor provided in the request. # @param body [Monitor] Monitor request object - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def validate_monitor_with_http_info(body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/notebooks_api.rb b/lib/datadog_api_client/v1/api/notebooks_api.rb index c7514e5b435..6b9b26e00a5 100644 --- a/lib/datadog_api_client/v1/api/notebooks_api.rb +++ b/lib/datadog_api_client/v1/api/notebooks_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Create a notebook # Create a notebook using the specified options. # @param body [NotebookCreateRequest] The JSON description of the notebook you want to create. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [NotebookResponse] def create_notebook(body, opts = {}) data, _status_code, _headers = create_notebook_with_http_info(body, opts) @@ -36,7 +36,7 @@ def create_notebook(body, opts = {}) # Create a notebook # Create a notebook using the specified options. # @param body [NotebookCreateRequest] The JSON description of the notebook you want to create. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(NotebookResponse, Integer, Hash)>] NotebookResponse data, response status code and response headers def create_notebook_with_http_info(body, opts = {}) @@ -101,7 +101,7 @@ def create_notebook_with_http_info(body, opts = {}) # Delete a notebook # Delete a notebook using the specified ID. # @param notebook_id [Integer] Unique ID, assigned when you create the notebook. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_notebook(notebook_id, opts = {}) delete_notebook_with_http_info(notebook_id, opts) @@ -111,7 +111,7 @@ def delete_notebook(notebook_id, opts = {}) # Delete a notebook # Delete a notebook using the specified ID. # @param notebook_id [Integer] Unique ID, assigned when you create the notebook. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_notebook_with_http_info(notebook_id, opts = {}) @@ -174,7 +174,7 @@ def delete_notebook_with_http_info(notebook_id, opts = {}) # Get a notebook # Get a notebook using the specified notebook ID. # @param notebook_id [Integer] Unique ID, assigned when you create the notebook. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [NotebookResponse] def get_notebook(notebook_id, opts = {}) data, _status_code, _headers = get_notebook_with_http_info(notebook_id, opts) @@ -184,7 +184,7 @@ def get_notebook(notebook_id, opts = {}) # Get a notebook # Get a notebook using the specified notebook ID. # @param notebook_id [Integer] Unique ID, assigned when you create the notebook. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(NotebookResponse, Integer, Hash)>] NotebookResponse data, response status code and response headers def get_notebook_with_http_info(notebook_id, opts = {}) @@ -247,7 +247,7 @@ def get_notebook_with_http_info(notebook_id, opts = {}) # Get all notebooks # Get all notebooks. This can also be used to search for notebooks with a particular `query` in the notebook # `name` or author `handle`. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :author_handle Return notebooks created by the given `author_handle`. # @option opts [String] :exclude_author_handle Return notebooks not created by the given `author_handle`. # @option opts [Integer] :start The index of the first notebook you want returned. @@ -267,7 +267,7 @@ def list_notebooks(opts = {}) # Get all notebooks # Get all notebooks. This can also be used to search for notebooks with a particular `query` in the notebook # `name` or author `handle`. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :author_handle Return notebooks created by the given `author_handle`. # @option opts [String] :exclude_author_handle Return notebooks not created by the given `author_handle`. # @option opts [Integer] :start The index of the first notebook you want returned. @@ -347,7 +347,7 @@ def list_notebooks_with_http_info(opts = {}) # Update a notebook using the specified ID. # @param notebook_id [Integer] Unique ID, assigned when you create the notebook. # @param body [NotebookUpdateRequest] Update notebook request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [NotebookResponse] def update_notebook(notebook_id, body, opts = {}) data, _status_code, _headers = update_notebook_with_http_info(notebook_id, body, opts) @@ -358,7 +358,7 @@ def update_notebook(notebook_id, body, opts = {}) # Update a notebook using the specified ID. # @param notebook_id [Integer] Unique ID, assigned when you create the notebook. # @param body [NotebookUpdateRequest] Update notebook request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(NotebookResponse, Integer, Hash)>] NotebookResponse data, response status code and response headers def update_notebook_with_http_info(notebook_id, body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/organizations_api.rb b/lib/datadog_api_client/v1/api/organizations_api.rb index 3fea3643755..74c507fdacc 100644 --- a/lib/datadog_api_client/v1/api/organizations_api.rb +++ b/lib/datadog_api_client/v1/api/organizations_api.rb @@ -35,7 +35,7 @@ def initialize(api_client = APIClient.default) # by using the `org.public_id`, `api_key.key`, and # `application_key.hash` provided in the response. # @param body [OrganizationCreateBody] Organization object that needs to be created - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [OrganizationCreateResponse] def create_child_org(body, opts = {}) data, _status_code, _headers = create_child_org_with_http_info(body, opts) @@ -54,7 +54,7 @@ def create_child_org(body, opts = {}) # by using the `org.public_id`, `api_key.key`, and # `application_key.hash` provided in the response. # @param body [OrganizationCreateBody] Organization object that needs to be created - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(OrganizationCreateResponse, Integer, Hash)>] OrganizationCreateResponse data, response status code and response headers def create_child_org_with_http_info(body, opts = {}) @@ -119,7 +119,7 @@ def create_child_org_with_http_info(body, opts = {}) # Get organization information # Get organization information. # @param public_id [String] The `public_id` of the organization you are operating within. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [OrganizationResponse] def get_org(public_id, opts = {}) data, _status_code, _headers = get_org_with_http_info(public_id, opts) @@ -129,7 +129,7 @@ def get_org(public_id, opts = {}) # Get organization information # Get organization information. # @param public_id [String] The `public_id` of the organization you are operating within. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(OrganizationResponse, Integer, Hash)>] OrganizationResponse data, response status code and response headers def get_org_with_http_info(public_id, opts = {}) @@ -191,7 +191,7 @@ def get_org_with_http_info(public_id, opts = {}) # List your managed organizations # List your managed organizations. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [OrganizationListResponse] def list_orgs(opts = {}) data, _status_code, _headers = list_orgs_with_http_info(opts) @@ -200,7 +200,7 @@ def list_orgs(opts = {}) # List your managed organizations # List your managed organizations. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(OrganizationListResponse, Integer, Hash)>] OrganizationListResponse data, response status code and response headers def list_orgs_with_http_info(opts = {}) @@ -260,7 +260,7 @@ def list_orgs_with_http_info(opts = {}) # Update your organization. # @param public_id [String] The `public_id` of the organization you are operating within. # @param body [Organization] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [OrganizationResponse] def update_org(public_id, body, opts = {}) data, _status_code, _headers = update_org_with_http_info(public_id, body, opts) @@ -271,7 +271,7 @@ def update_org(public_id, body, opts = {}) # Update your organization. # @param public_id [String] The `public_id` of the organization you are operating within. # @param body [Organization] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(OrganizationResponse, Integer, Hash)>] OrganizationResponse data, response status code and response headers def update_org_with_http_info(public_id, body, opts = {}) @@ -345,11 +345,11 @@ def update_org_with_http_info(public_id, body, opts = {}) # # * **XML Body:** Post the IdP metadata file as the body of the request. # @param public_id [String] The `public_id` of the organization you are operating with - # @param body [IdpFormData] - # @param [Hash] opts the optional parameters + # @param idp_file [File] The path to the XML metadata file you wish to upload. + # @param opts [Hash] the optional parameters # @return [IdpResponse] - def upload_id_p_for_org(public_id, body, opts = {}) - data, _status_code, _headers = upload_id_p_for_org_with_http_info(public_id, body, opts) + def upload_id_p_for_org(public_id, idp_file, opts = {}) + data, _status_code, _headers = upload_id_p_for_org_with_http_info(public_id, idp_file, opts) data end @@ -361,10 +361,10 @@ def upload_id_p_for_org(public_id, body, opts = {}) # # * **XML Body:** Post the IdP metadata file as the body of the request. # @param public_id [String] The `public_id` of the organization you are operating with - # @param body [IdpFormData] - # @param [Hash] opts the optional parameters + # @param idp_file [File] The path to the XML metadata file you wish to upload. + # @param opts [Hash] the optional parameters # @return [Array<(IdpResponse, Integer, Hash)>] IdpResponse data, response status code and response headers - def upload_id_p_for_org_with_http_info(public_id, body, opts = {}) + def upload_id_p_for_org_with_http_info(public_id, idp_file, opts = {}) if @api_client.config.unstable_operations.has_key?(:upload_id_p_for_org) unstable_enabled = @api_client.config.unstable_operations[:upload_id_p_for_org] @@ -382,9 +382,9 @@ def upload_id_p_for_org_with_http_info(public_id, body, opts = {}) if @api_client.config.client_side_validation && public_id.nil? fail ArgumentError, "Missing the required parameter 'public_id' when calling OrganizationsAPI.upload_id_p_for_org" end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationsAPI.upload_id_p_for_org" + # verify the required parameter 'idp_file' is set + if @api_client.config.client_side_validation && idp_file.nil? + fail ArgumentError, "Missing the required parameter 'idp_file' when calling OrganizationsAPI.upload_id_p_for_org" end # resource path local_var_path = '/api/v1/org/{public_id}/idp_metadata'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) @@ -401,6 +401,7 @@ def upload_id_p_for_org_with_http_info(public_id, body, opts = {}) # form parameters form_params = opts[:form_params] || {} + form_params['idp_file'] = idp_file # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) diff --git a/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb b/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb index a7f81d8b0b6..4a5be7cf7d9 100644 --- a/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb +++ b/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Create a new service object # Create a new service object in the PagerDuty integration. # @param body [PagerDutyService] Create a new service object request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [PagerDutyServiceName] def create_pager_duty_integration_service(body, opts = {}) data, _status_code, _headers = create_pager_duty_integration_service_with_http_info(body, opts) @@ -36,7 +36,7 @@ def create_pager_duty_integration_service(body, opts = {}) # Create a new service object # Create a new service object in the PagerDuty integration. # @param body [PagerDutyService] Create a new service object request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(PagerDutyServiceName, Integer, Hash)>] PagerDutyServiceName data, response status code and response headers def create_pager_duty_integration_service_with_http_info(body, opts = {}) @@ -101,7 +101,7 @@ def create_pager_duty_integration_service_with_http_info(body, opts = {}) # Delete a single service object # Delete a single service object in the Datadog-PagerDuty integration. # @param service_name [String] The service name - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_pager_duty_integration_service(service_name, opts = {}) delete_pager_duty_integration_service_with_http_info(service_name, opts) @@ -111,7 +111,7 @@ def delete_pager_duty_integration_service(service_name, opts = {}) # Delete a single service object # Delete a single service object in the Datadog-PagerDuty integration. # @param service_name [String] The service name - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_pager_duty_integration_service_with_http_info(service_name, opts = {}) @@ -174,7 +174,7 @@ def delete_pager_duty_integration_service_with_http_info(service_name, opts = {} # Get a single service object # Get service name in the Datadog-PagerDuty integration. # @param service_name [String] The service name. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [PagerDutyServiceName] def get_pager_duty_integration_service(service_name, opts = {}) data, _status_code, _headers = get_pager_duty_integration_service_with_http_info(service_name, opts) @@ -184,7 +184,7 @@ def get_pager_duty_integration_service(service_name, opts = {}) # Get a single service object # Get service name in the Datadog-PagerDuty integration. # @param service_name [String] The service name. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(PagerDutyServiceName, Integer, Hash)>] PagerDutyServiceName data, response status code and response headers def get_pager_duty_integration_service_with_http_info(service_name, opts = {}) @@ -248,7 +248,7 @@ def get_pager_duty_integration_service_with_http_info(service_name, opts = {}) # Update a single service object in the Datadog-PagerDuty integration. # @param service_name [String] The service name # @param body [PagerDutyServiceKey] Update an existing service object request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def update_pager_duty_integration_service(service_name, body, opts = {}) update_pager_duty_integration_service_with_http_info(service_name, body, opts) @@ -259,7 +259,7 @@ def update_pager_duty_integration_service(service_name, body, opts = {}) # Update a single service object in the Datadog-PagerDuty integration. # @param service_name [String] The service name # @param body [PagerDutyServiceKey] Update an existing service object request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def update_pager_duty_integration_service_with_http_info(service_name, body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/service_checks_api.rb b/lib/datadog_api_client/v1/api/service_checks_api.rb index 761e26c48ea..fc02a87d4d7 100644 --- a/lib/datadog_api_client/v1/api/service_checks_api.rb +++ b/lib/datadog_api_client/v1/api/service_checks_api.rb @@ -30,7 +30,7 @@ def initialize(api_client = APIClient.default) # - A valid API key is required. # - Service checks can be submitted up to 10 minutes in the past. # @param body [Array] Service Check request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [IntakePayloadAccepted] def submit_service_check(body, opts = {}) data, _status_code, _headers = submit_service_check_with_http_info(body, opts) @@ -44,7 +44,7 @@ def submit_service_check(body, opts = {}) # - A valid API key is required. # - Service checks can be submitted up to 10 minutes in the past. # @param body [Array] Service Check request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(IntakePayloadAccepted, Integer, Hash)>] IntakePayloadAccepted data, response status code and response headers def submit_service_check_with_http_info(body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb b/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb index 4f47203c1b2..cd1580e6995 100644 --- a/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +++ b/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Create an SLO correction # Create an SLO Correction. # @param body [SLOCorrectionCreateRequest] Create an SLO Correction - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SLOCorrectionResponse] def create_slo_correction(body, opts = {}) data, _status_code, _headers = create_slo_correction_with_http_info(body, opts) @@ -36,7 +36,7 @@ def create_slo_correction(body, opts = {}) # Create an SLO correction # Create an SLO Correction. # @param body [SLOCorrectionCreateRequest] Create an SLO Correction - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SLOCorrectionResponse, Integer, Hash)>] SLOCorrectionResponse data, response status code and response headers def create_slo_correction_with_http_info(body, opts = {}) @@ -101,7 +101,7 @@ def create_slo_correction_with_http_info(body, opts = {}) # Delete an SLO correction # Permanently delete the specified SLO correction object. # @param slo_correction_id [String] The ID of the SLO correction object. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_slo_correction(slo_correction_id, opts = {}) delete_slo_correction_with_http_info(slo_correction_id, opts) @@ -111,7 +111,7 @@ def delete_slo_correction(slo_correction_id, opts = {}) # Delete an SLO correction # Permanently delete the specified SLO correction object. # @param slo_correction_id [String] The ID of the SLO correction object. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_slo_correction_with_http_info(slo_correction_id, opts = {}) @@ -174,7 +174,7 @@ def delete_slo_correction_with_http_info(slo_correction_id, opts = {}) # Get an SLO correction for an SLO # Get an SLO correction. # @param slo_correction_id [String] The ID of the SLO correction object. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SLOCorrectionResponse] def get_slo_correction(slo_correction_id, opts = {}) data, _status_code, _headers = get_slo_correction_with_http_info(slo_correction_id, opts) @@ -184,7 +184,7 @@ def get_slo_correction(slo_correction_id, opts = {}) # Get an SLO correction for an SLO # Get an SLO correction. # @param slo_correction_id [String] The ID of the SLO correction object. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SLOCorrectionResponse, Integer, Hash)>] SLOCorrectionResponse data, response status code and response headers def get_slo_correction_with_http_info(slo_correction_id, opts = {}) @@ -246,7 +246,7 @@ def get_slo_correction_with_http_info(slo_correction_id, opts = {}) # Get all SLO corrections # Get all Service Level Objective corrections. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SLOCorrectionListResponse] def list_slo_correction(opts = {}) data, _status_code, _headers = list_slo_correction_with_http_info(opts) @@ -255,7 +255,7 @@ def list_slo_correction(opts = {}) # Get all SLO corrections # Get all Service Level Objective corrections. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SLOCorrectionListResponse, Integer, Hash)>] SLOCorrectionListResponse data, response status code and response headers def list_slo_correction_with_http_info(opts = {}) @@ -315,7 +315,7 @@ def list_slo_correction_with_http_info(opts = {}) # Update the specified SLO correction object object. # @param slo_correction_id [String] The ID of the SLO correction object. # @param body [SLOCorrectionUpdateRequest] The edited SLO correction object. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SLOCorrectionResponse] def update_slo_correction(slo_correction_id, body, opts = {}) data, _status_code, _headers = update_slo_correction_with_http_info(slo_correction_id, body, opts) @@ -326,7 +326,7 @@ def update_slo_correction(slo_correction_id, body, opts = {}) # Update the specified SLO correction object object. # @param slo_correction_id [String] The ID of the SLO correction object. # @param body [SLOCorrectionUpdateRequest] The edited SLO correction object. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SLOCorrectionResponse, Integer, Hash)>] SLOCorrectionResponse data, response status code and response headers def update_slo_correction_with_http_info(slo_correction_id, body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/service_level_objectives_api.rb b/lib/datadog_api_client/v1/api/service_level_objectives_api.rb index 9f3f7c8a842..f335cfd5465 100644 --- a/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +++ b/lib/datadog_api_client/v1/api/service_level_objectives_api.rb @@ -27,7 +27,7 @@ def initialize(api_client = APIClient.default) # Check if an SLO can be safely deleted. For example, # assure an SLO can be deleted without disrupting a dashboard. # @param ids [String] A comma separated list of the IDs of the service level objectives objects. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [CheckCanDeleteSLOResponse] def check_can_delete_slo(ids, opts = {}) data, _status_code, _headers = check_can_delete_slo_with_http_info(ids, opts) @@ -38,7 +38,7 @@ def check_can_delete_slo(ids, opts = {}) # Check if an SLO can be safely deleted. For example, # assure an SLO can be deleted without disrupting a dashboard. # @param ids [String] A comma separated list of the IDs of the service level objectives objects. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(CheckCanDeleteSLOResponse, Integer, Hash)>] CheckCanDeleteSLOResponse data, response status code and response headers def check_can_delete_slo_with_http_info(ids, opts = {}) @@ -102,7 +102,7 @@ def check_can_delete_slo_with_http_info(ids, opts = {}) # Create an SLO object # Create a service level objective object. # @param body [ServiceLevelObjectiveRequest] Service level objective request object. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SLOListResponse] def create_slo(body, opts = {}) data, _status_code, _headers = create_slo_with_http_info(body, opts) @@ -112,7 +112,7 @@ def create_slo(body, opts = {}) # Create an SLO object # Create a service level objective object. # @param body [ServiceLevelObjectiveRequest] Service level objective request object. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SLOListResponse, Integer, Hash)>] SLOListResponse data, response status code and response headers def create_slo_with_http_info(body, opts = {}) @@ -180,7 +180,7 @@ def create_slo_with_http_info(body, opts = {}) # If an SLO is used in a dashboard, the `DELETE /v1/slo/` endpoint returns # a 409 conflict error because the SLO is referenced in a dashboard. # @param slo_id [String] The ID of the service level objective. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :force Delete the monitor even if it's referenced by other resources (for example SLO, composite monitor). # @return [SLODeleteResponse] def delete_slo(slo_id, opts = {}) @@ -194,7 +194,7 @@ def delete_slo(slo_id, opts = {}) # If an SLO is used in a dashboard, the `DELETE /v1/slo/` endpoint returns # a 409 conflict error because the SLO is referenced in a dashboard. # @param slo_id [String] The ID of the service level objective. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :force Delete the monitor even if it's referenced by other resources (for example SLO, composite monitor). # @return [Array<(SLODeleteResponse, Integer, Hash)>] SLODeleteResponse data, response status code and response headers def delete_slo_with_http_info(slo_id, opts = {}) @@ -263,7 +263,7 @@ def delete_slo_with_http_info(slo_id, opts = {}) # service level objective objects. If all thresholds are deleted, the service level # objective object is deleted as well. # @param body [Hash>] Delete multiple service level objective objects request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SLOBulkDeleteResponse] def delete_slo_timeframe_in_bulk(body, opts = {}) data, _status_code, _headers = delete_slo_timeframe_in_bulk_with_http_info(body, opts) @@ -277,7 +277,7 @@ def delete_slo_timeframe_in_bulk(body, opts = {}) # service level objective objects. If all thresholds are deleted, the service level # objective object is deleted as well. # @param body [Hash>] Delete multiple service level objective objects request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SLOBulkDeleteResponse, Integer, Hash)>] SLOBulkDeleteResponse data, response status code and response headers def delete_slo_timeframe_in_bulk_with_http_info(body, opts = {}) @@ -342,7 +342,7 @@ def delete_slo_timeframe_in_bulk_with_http_info(body, opts = {}) # Get an SLO's details # Get a service level objective object. # @param slo_id [String] The ID of the service level objective object. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Boolean] :with_configured_alert_ids Get the IDs of SLO monitors that reference this SLO. # @return [SLOResponse] def get_slo(slo_id, opts = {}) @@ -353,7 +353,7 @@ def get_slo(slo_id, opts = {}) # Get an SLO's details # Get a service level objective object. # @param slo_id [String] The ID of the service level objective object. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Boolean] :with_configured_alert_ids Get the IDs of SLO monitors that reference this SLO. # @return [Array<(SLOResponse, Integer, Hash)>] SLOResponse data, response status code and response headers def get_slo_with_http_info(slo_id, opts = {}) @@ -418,7 +418,7 @@ def get_slo_with_http_info(slo_id, opts = {}) # Get Corrections For an SLO # Get corrections applied to an SLO # @param slo_id [String] The ID of the service level objective object. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SLOCorrectionListResponse] def get_slo_corrections(slo_id, opts = {}) data, _status_code, _headers = get_slo_corrections_with_http_info(slo_id, opts) @@ -428,7 +428,7 @@ def get_slo_corrections(slo_id, opts = {}) # Get Corrections For an SLO # Get corrections applied to an SLO # @param slo_id [String] The ID of the service level objective object. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SLOCorrectionListResponse, Integer, Hash)>] SLOCorrectionListResponse data, response status code and response headers def get_slo_corrections_with_http_info(slo_id, opts = {}) @@ -500,7 +500,7 @@ def get_slo_corrections_with_http_info(slo_id, opts = {}) # @param slo_id [String] The ID of the service level objective object. # @param from_ts [Integer] The `from` timestamp for the query window in epoch seconds. # @param to_ts [Integer] The `to` timestamp for the query window in epoch seconds. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Float] :target The SLO target. If `target` is passed in, the response will include the remaining error budget and a timeframe value of `custom`. # @option opts [Boolean] :apply_correction Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`, then the corrections will not be applied and the SLI values will not be affected. # @return [SLOHistoryResponse] @@ -521,7 +521,7 @@ def get_slo_history(slo_id, from_ts, to_ts, opts = {}) # @param slo_id [String] The ID of the service level objective object. # @param from_ts [Integer] The `from` timestamp for the query window in epoch seconds. # @param to_ts [Integer] The `to` timestamp for the query window in epoch seconds. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Float] :target The SLO target. If `target` is passed in, the response will include the remaining error budget and a timeframe value of `custom`. # @option opts [Boolean] :apply_correction Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`, then the corrections will not be applied and the SLI values will not be affected. # @return [Array<(SLOHistoryResponse, Integer, Hash)>] SLOHistoryResponse data, response status code and response headers @@ -552,10 +552,10 @@ def get_slo_history_with_http_info(slo_id, from_ts, to_ts, opts = {}) fail ArgumentError, "Missing the required parameter 'to_ts' when calling ServiceLevelObjectivesAPI.get_slo_history" end if @api_client.config.client_side_validation && !opts[:'target'].nil? && opts[:'target'] > 100 - fail ArgumentError, 'invalid value for "opts[:"target"]" when calling ServiceLevelObjectivesAPI.GetSLOHistory, must be smaller than or equal to 100.' + fail ArgumentError, 'invalid value for "opts[:"target"]" when calling ServiceLevelObjectivesAPI.get_slo_history, must be smaller than or equal to 100.' end if @api_client.config.client_side_validation && !opts[:'target'].nil? && opts[:'target'] < 0 - fail ArgumentError, 'invalid value for "opts[:"target"]" when calling ServiceLevelObjectivesAPI.GetSLOHistory, must be greater than or equal to 0.' + fail ArgumentError, 'invalid value for "opts[:"target"]" when calling ServiceLevelObjectivesAPI.get_slo_history, must be greater than or equal to 0.' end # resource path local_var_path = '/api/v1/slo/{slo_id}/history'.sub('{slo_id}', CGI.escape(slo_id.to_s).gsub('%2F', '/')) @@ -603,7 +603,7 @@ def get_slo_history_with_http_info(slo_id, from_ts, to_ts, opts = {}) # Get all SLOs # Get a list of service level objective objects for your organization. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :ids A comma separated list of the IDs of the service level objectives objects. # @option opts [String] :query The query string to filter results based on SLO names. # @option opts [String] :tags_query The query string to filter results based on a single SLO tag. @@ -618,7 +618,7 @@ def list_sl_os(opts = {}) # Get all SLOs # Get a list of service level objective objects for your organization. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :ids A comma separated list of the IDs of the service level objectives objects. # @option opts [String] :query The query string to filter results based on SLO names. # @option opts [String] :tags_query The query string to filter results based on a single SLO tag. @@ -690,7 +690,7 @@ def list_sl_os_with_http_info(opts = {}) # Update the specified service level objective object. # @param slo_id [String] The ID of the service level objective object. # @param body [ServiceLevelObjective] The edited service level objective request object. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SLOListResponse] def update_slo(slo_id, body, opts = {}) data, _status_code, _headers = update_slo_with_http_info(slo_id, body, opts) @@ -701,7 +701,7 @@ def update_slo(slo_id, body, opts = {}) # Update the specified service level objective object. # @param slo_id [String] The ID of the service level objective object. # @param body [ServiceLevelObjective] The edited service level objective request object. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SLOListResponse, Integer, Hash)>] SLOListResponse data, response status code and response headers def update_slo_with_http_info(slo_id, body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/slack_integration_api.rb b/lib/datadog_api_client/v1/api/slack_integration_api.rb index abce6ab4e37..3495806427b 100644 --- a/lib/datadog_api_client/v1/api/slack_integration_api.rb +++ b/lib/datadog_api_client/v1/api/slack_integration_api.rb @@ -27,7 +27,7 @@ def initialize(api_client = APIClient.default) # Add a channel to your Datadog-Slack integration. # @param account_name [String] Your Slack account name. # @param body [SlackIntegrationChannel] Payload describing Slack channel to be created - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SlackIntegrationChannel] def create_slack_integration_channel(account_name, body, opts = {}) data, _status_code, _headers = create_slack_integration_channel_with_http_info(account_name, body, opts) @@ -38,7 +38,7 @@ def create_slack_integration_channel(account_name, body, opts = {}) # Add a channel to your Datadog-Slack integration. # @param account_name [String] Your Slack account name. # @param body [SlackIntegrationChannel] Payload describing Slack channel to be created - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SlackIntegrationChannel, Integer, Hash)>] SlackIntegrationChannel data, response status code and response headers def create_slack_integration_channel_with_http_info(account_name, body, opts = {}) @@ -108,7 +108,7 @@ def create_slack_integration_channel_with_http_info(account_name, body, opts = { # Get a channel configured for your Datadog-Slack integration. # @param account_name [String] Your Slack account name. # @param channel_name [String] The name of the Slack channel being operated on. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SlackIntegrationChannel] def get_slack_integration_channel(account_name, channel_name, opts = {}) data, _status_code, _headers = get_slack_integration_channel_with_http_info(account_name, channel_name, opts) @@ -119,7 +119,7 @@ def get_slack_integration_channel(account_name, channel_name, opts = {}) # Get a channel configured for your Datadog-Slack integration. # @param account_name [String] Your Slack account name. # @param channel_name [String] The name of the Slack channel being operated on. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SlackIntegrationChannel, Integer, Hash)>] SlackIntegrationChannel data, response status code and response headers def get_slack_integration_channel_with_http_info(account_name, channel_name, opts = {}) @@ -186,7 +186,7 @@ def get_slack_integration_channel_with_http_info(account_name, channel_name, opt # Get all channels in a Slack integration # Get a list of all channels configured for your Datadog-Slack integration. # @param account_name [String] Your Slack account name. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array] def get_slack_integration_channels(account_name, opts = {}) data, _status_code, _headers = get_slack_integration_channels_with_http_info(account_name, opts) @@ -196,7 +196,7 @@ def get_slack_integration_channels(account_name, opts = {}) # Get all channels in a Slack integration # Get a list of all channels configured for your Datadog-Slack integration. # @param account_name [String] Your Slack account name. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers def get_slack_integration_channels_with_http_info(account_name, opts = {}) @@ -260,7 +260,7 @@ def get_slack_integration_channels_with_http_info(account_name, opts = {}) # Remove a channel from your Datadog-Slack integration. # @param account_name [String] Your Slack account name. # @param channel_name [String] The name of the Slack channel being operated on. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def remove_slack_integration_channel(account_name, channel_name, opts = {}) remove_slack_integration_channel_with_http_info(account_name, channel_name, opts) @@ -271,7 +271,7 @@ def remove_slack_integration_channel(account_name, channel_name, opts = {}) # Remove a channel from your Datadog-Slack integration. # @param account_name [String] Your Slack account name. # @param channel_name [String] The name of the Slack channel being operated on. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def remove_slack_integration_channel_with_http_info(account_name, channel_name, opts = {}) @@ -340,7 +340,7 @@ def remove_slack_integration_channel_with_http_info(account_name, channel_name, # @param account_name [String] Your Slack account name. # @param channel_name [String] The name of the Slack channel being operated on. # @param body [SlackIntegrationChannel] Payload describing fields and values to be updated. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SlackIntegrationChannel] def update_slack_integration_channel(account_name, channel_name, body, opts = {}) data, _status_code, _headers = update_slack_integration_channel_with_http_info(account_name, channel_name, body, opts) @@ -352,7 +352,7 @@ def update_slack_integration_channel(account_name, channel_name, body, opts = {} # @param account_name [String] Your Slack account name. # @param channel_name [String] The name of the Slack channel being operated on. # @param body [SlackIntegrationChannel] Payload describing fields and values to be updated. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SlackIntegrationChannel, Integer, Hash)>] SlackIntegrationChannel data, response status code and response headers def update_slack_integration_channel_with_http_info(account_name, channel_name, body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/snapshots_api.rb b/lib/datadog_api_client/v1/api/snapshots_api.rb index b6368a16add..4718ec38941 100644 --- a/lib/datadog_api_client/v1/api/snapshots_api.rb +++ b/lib/datadog_api_client/v1/api/snapshots_api.rb @@ -28,7 +28,7 @@ def initialize(api_client = APIClient.default) # **Note**: When a snapshot is created, there is some delay before it is available. # @param start [Integer] The POSIX timestamp of the start of the query. # @param _end [Integer] The POSIX timestamp of the end of the query. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :metric_query The metric query. # @option opts [String] :event_query A query that adds event bands to the graph. # @option opts [String] :graph_def A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. The JSON document uses the [grammar defined here](https://docs.datadoghq.com/graphing/graphing_json/#grammar) and should be formatted to a single line then URL encoded. @@ -44,7 +44,7 @@ def get_graph_snapshot(start, _end, opts = {}) # **Note**: When a snapshot is created, there is some delay before it is available. # @param start [Integer] The POSIX timestamp of the start of the query. # @param _end [Integer] The POSIX timestamp of the end of the query. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :metric_query The metric query. # @option opts [String] :event_query A query that adds event bands to the graph. # @option opts [String] :graph_def A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. The JSON document uses the [grammar defined here](https://docs.datadoghq.com/graphing/graphing_json/#grammar) and should be formatted to a single line then URL encoded. diff --git a/lib/datadog_api_client/v1/api/synthetics_api.rb b/lib/datadog_api_client/v1/api/synthetics_api.rb index 70fbbca496d..1f4a98e8b58 100644 --- a/lib/datadog_api_client/v1/api/synthetics_api.rb +++ b/lib/datadog_api_client/v1/api/synthetics_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Create a global variable # Create a Synthetics global variable. # @param body [SyntheticsGlobalVariable] Details of the global variable to create. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsGlobalVariable] def create_global_variable(body, opts = {}) data, _status_code, _headers = create_global_variable_with_http_info(body, opts) @@ -36,7 +36,7 @@ def create_global_variable(body, opts = {}) # Create a global variable # Create a Synthetics global variable. # @param body [SyntheticsGlobalVariable] Details of the global variable to create. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsGlobalVariable, Integer, Hash)>] SyntheticsGlobalVariable data, response status code and response headers def create_global_variable_with_http_info(body, opts = {}) @@ -101,7 +101,7 @@ def create_global_variable_with_http_info(body, opts = {}) # Create a private location # Create a new Synthetics private location. # @param body [SyntheticsPrivateLocation] Details of the private location to create. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsPrivateLocationCreationResponse] def create_private_location(body, opts = {}) data, _status_code, _headers = create_private_location_with_http_info(body, opts) @@ -111,7 +111,7 @@ def create_private_location(body, opts = {}) # Create a private location # Create a new Synthetics private location. # @param body [SyntheticsPrivateLocation] Details of the private location to create. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsPrivateLocationCreationResponse, Integer, Hash)>] SyntheticsPrivateLocationCreationResponse data, response status code and response headers def create_private_location_with_http_info(body, opts = {}) @@ -176,7 +176,7 @@ def create_private_location_with_http_info(body, opts = {}) # Create an API test # Create a Synthetic API test. # @param body [SyntheticsAPITest] Details of the test to create. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsAPITest] def create_synthetics_api_test(body, opts = {}) data, _status_code, _headers = create_synthetics_api_test_with_http_info(body, opts) @@ -186,7 +186,7 @@ def create_synthetics_api_test(body, opts = {}) # Create an API test # Create a Synthetic API test. # @param body [SyntheticsAPITest] Details of the test to create. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsAPITest, Integer, Hash)>] SyntheticsAPITest data, response status code and response headers def create_synthetics_api_test_with_http_info(body, opts = {}) @@ -251,7 +251,7 @@ def create_synthetics_api_test_with_http_info(body, opts = {}) # Create a browser test # Create a Synthetic browser test. # @param body [SyntheticsBrowserTest] Details of the test to create. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsBrowserTest] def create_synthetics_browser_test(body, opts = {}) data, _status_code, _headers = create_synthetics_browser_test_with_http_info(body, opts) @@ -261,7 +261,7 @@ def create_synthetics_browser_test(body, opts = {}) # Create a browser test # Create a Synthetic browser test. # @param body [SyntheticsBrowserTest] Details of the test to create. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsBrowserTest, Integer, Hash)>] SyntheticsBrowserTest data, response status code and response headers def create_synthetics_browser_test_with_http_info(body, opts = {}) @@ -326,7 +326,7 @@ def create_synthetics_browser_test_with_http_info(body, opts = {}) # Delete a global variable # Delete a Synthetics global variable. # @param variable_id [String] The ID of the global variable. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_global_variable(variable_id, opts = {}) delete_global_variable_with_http_info(variable_id, opts) @@ -336,7 +336,7 @@ def delete_global_variable(variable_id, opts = {}) # Delete a global variable # Delete a Synthetics global variable. # @param variable_id [String] The ID of the global variable. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_global_variable_with_http_info(variable_id, opts = {}) @@ -399,7 +399,7 @@ def delete_global_variable_with_http_info(variable_id, opts = {}) # Delete a private location # Delete a Synthetics private location. # @param location_id [String] The ID of the private location. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_private_location(location_id, opts = {}) delete_private_location_with_http_info(location_id, opts) @@ -409,7 +409,7 @@ def delete_private_location(location_id, opts = {}) # Delete a private location # Delete a Synthetics private location. # @param location_id [String] The ID of the private location. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_private_location_with_http_info(location_id, opts = {}) @@ -472,7 +472,7 @@ def delete_private_location_with_http_info(location_id, opts = {}) # Delete tests # Delete multiple Synthetic tests by ID. # @param body [SyntheticsDeleteTestsPayload] Public ID list of the Synthetic tests to be deleted. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsDeleteTestsResponse] def delete_tests(body, opts = {}) data, _status_code, _headers = delete_tests_with_http_info(body, opts) @@ -482,7 +482,7 @@ def delete_tests(body, opts = {}) # Delete tests # Delete multiple Synthetic tests by ID. # @param body [SyntheticsDeleteTestsPayload] Public ID list of the Synthetic tests to be deleted. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsDeleteTestsResponse, Integer, Hash)>] SyntheticsDeleteTestsResponse data, response status code and response headers def delete_tests_with_http_info(body, opts = {}) @@ -548,7 +548,7 @@ def delete_tests_with_http_info(body, opts = {}) # Edit a Synthetics global variable. # @param variable_id [String] The ID of the global variable. # @param body [SyntheticsGlobalVariable] Details of the global variable to update. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsGlobalVariable] def edit_global_variable(variable_id, body, opts = {}) data, _status_code, _headers = edit_global_variable_with_http_info(variable_id, body, opts) @@ -559,7 +559,7 @@ def edit_global_variable(variable_id, body, opts = {}) # Edit a Synthetics global variable. # @param variable_id [String] The ID of the global variable. # @param body [SyntheticsGlobalVariable] Details of the global variable to update. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsGlobalVariable, Integer, Hash)>] SyntheticsGlobalVariable data, response status code and response headers def edit_global_variable_with_http_info(variable_id, body, opts = {}) @@ -629,7 +629,7 @@ def edit_global_variable_with_http_info(variable_id, body, opts = {}) # Get the detailed configuration associated with # a Synthetic API test. # @param public_id [String] The public ID of the test to get details from. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsAPITest] def get_api_test(public_id, opts = {}) data, _status_code, _headers = get_api_test_with_http_info(public_id, opts) @@ -640,7 +640,7 @@ def get_api_test(public_id, opts = {}) # Get the detailed configuration associated with # a Synthetic API test. # @param public_id [String] The public ID of the test to get details from. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsAPITest, Integer, Hash)>] SyntheticsAPITest data, response status code and response headers def get_api_test_with_http_info(public_id, opts = {}) @@ -703,7 +703,7 @@ def get_api_test_with_http_info(public_id, opts = {}) # Get an API test's latest results summaries # Get the last 50 test results summaries for a given Synthetics API test. # @param public_id [String] The public ID of the test for which to search results for. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :from_ts Timestamp in milliseconds from which to start querying results. # @option opts [Integer] :to_ts Timestamp in milliseconds up to which to query results. # @option opts [Array] :probe_dc Locations for which to query results. @@ -716,7 +716,7 @@ def get_api_test_latest_results(public_id, opts = {}) # Get an API test's latest results summaries # Get the last 50 test results summaries for a given Synthetics API test. # @param public_id [String] The public ID of the test for which to search results for. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :from_ts Timestamp in milliseconds from which to start querying results. # @option opts [Integer] :to_ts Timestamp in milliseconds up to which to query results. # @option opts [Array] :probe_dc Locations for which to query results. @@ -786,7 +786,7 @@ def get_api_test_latest_results_with_http_info(public_id, opts = {}) # Get a specific full result from a given (API) Synthetic test. # @param public_id [String] The public ID of the API test to which the target result belongs. # @param result_id [String] The ID of the result to get. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsAPITestResultFull] def get_api_test_result(public_id, result_id, opts = {}) data, _status_code, _headers = get_api_test_result_with_http_info(public_id, result_id, opts) @@ -797,7 +797,7 @@ def get_api_test_result(public_id, result_id, opts = {}) # Get a specific full result from a given (API) Synthetic test. # @param public_id [String] The public ID of the API test to which the target result belongs. # @param result_id [String] The ID of the result to get. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsAPITestResultFull, Integer, Hash)>] SyntheticsAPITestResultFull data, response status code and response headers def get_api_test_result_with_http_info(public_id, result_id, opts = {}) @@ -865,7 +865,7 @@ def get_api_test_result_with_http_info(public_id, result_id, opts = {}) # Get the detailed configuration (including steps) associated with # a Synthetic browser test. # @param public_id [String] The public ID of the test to get details from. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsBrowserTest] def get_browser_test(public_id, opts = {}) data, _status_code, _headers = get_browser_test_with_http_info(public_id, opts) @@ -876,7 +876,7 @@ def get_browser_test(public_id, opts = {}) # Get the detailed configuration (including steps) associated with # a Synthetic browser test. # @param public_id [String] The public ID of the test to get details from. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsBrowserTest, Integer, Hash)>] SyntheticsBrowserTest data, response status code and response headers def get_browser_test_with_http_info(public_id, opts = {}) @@ -939,7 +939,7 @@ def get_browser_test_with_http_info(public_id, opts = {}) # Get a browser test's latest results summaries # Get the last 50 test results summaries for a given Synthetics Browser test. # @param public_id [String] The public ID of the browser test for which to search results for. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :from_ts Timestamp in milliseconds from which to start querying results. # @option opts [Integer] :to_ts Timestamp in milliseconds up to which to query results. # @option opts [Array] :probe_dc Locations for which to query results. @@ -952,7 +952,7 @@ def get_browser_test_latest_results(public_id, opts = {}) # Get a browser test's latest results summaries # Get the last 50 test results summaries for a given Synthetics Browser test. # @param public_id [String] The public ID of the browser test for which to search results for. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :from_ts Timestamp in milliseconds from which to start querying results. # @option opts [Integer] :to_ts Timestamp in milliseconds up to which to query results. # @option opts [Array] :probe_dc Locations for which to query results. @@ -1022,7 +1022,7 @@ def get_browser_test_latest_results_with_http_info(public_id, opts = {}) # Get a specific full result from a given (browser) Synthetic test. # @param public_id [String] The public ID of the browser test to which the target result belongs. # @param result_id [String] The ID of the result to get. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsBrowserTestResultFull] def get_browser_test_result(public_id, result_id, opts = {}) data, _status_code, _headers = get_browser_test_result_with_http_info(public_id, result_id, opts) @@ -1033,7 +1033,7 @@ def get_browser_test_result(public_id, result_id, opts = {}) # Get a specific full result from a given (browser) Synthetic test. # @param public_id [String] The public ID of the browser test to which the target result belongs. # @param result_id [String] The ID of the result to get. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsBrowserTestResultFull, Integer, Hash)>] SyntheticsBrowserTestResultFull data, response status code and response headers def get_browser_test_result_with_http_info(public_id, result_id, opts = {}) @@ -1100,7 +1100,7 @@ def get_browser_test_result_with_http_info(public_id, result_id, opts = {}) # Get a global variable # Get the detailed configuration of a global variable. # @param variable_id [String] The ID of the global variable. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsGlobalVariable] def get_global_variable(variable_id, opts = {}) data, _status_code, _headers = get_global_variable_with_http_info(variable_id, opts) @@ -1110,7 +1110,7 @@ def get_global_variable(variable_id, opts = {}) # Get a global variable # Get the detailed configuration of a global variable. # @param variable_id [String] The ID of the global variable. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsGlobalVariable, Integer, Hash)>] SyntheticsGlobalVariable data, response status code and response headers def get_global_variable_with_http_info(variable_id, opts = {}) @@ -1173,7 +1173,7 @@ def get_global_variable_with_http_info(variable_id, opts = {}) # Get a private location # Get a Synthetics private location. # @param location_id [String] The ID of the private location. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsPrivateLocation] def get_private_location(location_id, opts = {}) data, _status_code, _headers = get_private_location_with_http_info(location_id, opts) @@ -1183,7 +1183,7 @@ def get_private_location(location_id, opts = {}) # Get a private location # Get a Synthetics private location. # @param location_id [String] The ID of the private location. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsPrivateLocation, Integer, Hash)>] SyntheticsPrivateLocation data, response status code and response headers def get_private_location_with_http_info(location_id, opts = {}) @@ -1246,7 +1246,7 @@ def get_private_location_with_http_info(location_id, opts = {}) # Get details of batch # Get a batch's updated details. # @param batch_id [String] The ID of the batch. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsBatchDetails] def get_synthetics_ci_batch(batch_id, opts = {}) data, _status_code, _headers = get_synthetics_ci_batch_with_http_info(batch_id, opts) @@ -1256,7 +1256,7 @@ def get_synthetics_ci_batch(batch_id, opts = {}) # Get details of batch # Get a batch's updated details. # @param batch_id [String] The ID of the batch. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsBatchDetails, Integer, Hash)>] SyntheticsBatchDetails data, response status code and response headers def get_synthetics_ci_batch_with_http_info(batch_id, opts = {}) @@ -1319,7 +1319,7 @@ def get_synthetics_ci_batch_with_http_info(batch_id, opts = {}) # Get a test configuration # Get the detailed configuration associated with a Synthetics test. # @param public_id [String] The public ID of the test to get details from. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsTestDetails] def get_test(public_id, opts = {}) data, _status_code, _headers = get_test_with_http_info(public_id, opts) @@ -1329,7 +1329,7 @@ def get_test(public_id, opts = {}) # Get a test configuration # Get the detailed configuration associated with a Synthetics test. # @param public_id [String] The public ID of the test to get details from. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsTestDetails, Integer, Hash)>] SyntheticsTestDetails data, response status code and response headers def get_test_with_http_info(public_id, opts = {}) @@ -1391,7 +1391,7 @@ def get_test_with_http_info(public_id, opts = {}) # Get all global variables # Get the list of all Synthetics global variables. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsListGlobalVariablesResponse] def list_global_variables(opts = {}) data, _status_code, _headers = list_global_variables_with_http_info(opts) @@ -1400,7 +1400,7 @@ def list_global_variables(opts = {}) # Get all global variables # Get the list of all Synthetics global variables. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsListGlobalVariablesResponse, Integer, Hash)>] SyntheticsListGlobalVariablesResponse data, response status code and response headers def list_global_variables_with_http_info(opts = {}) @@ -1459,7 +1459,7 @@ def list_global_variables_with_http_info(opts = {}) # Get all locations (public and private) # Get the list of public and private locations available for Synthetic # tests. No arguments required. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsLocations] def list_locations(opts = {}) data, _status_code, _headers = list_locations_with_http_info(opts) @@ -1469,7 +1469,7 @@ def list_locations(opts = {}) # Get all locations (public and private) # Get the list of public and private locations available for Synthetic # tests. No arguments required. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsLocations, Integer, Hash)>] SyntheticsLocations data, response status code and response headers def list_locations_with_http_info(opts = {}) @@ -1527,7 +1527,7 @@ def list_locations_with_http_info(opts = {}) # Get the list of all tests # Get the list of all Synthetic tests. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsListTestsResponse] def list_tests(opts = {}) data, _status_code, _headers = list_tests_with_http_info(opts) @@ -1536,7 +1536,7 @@ def list_tests(opts = {}) # Get the list of all tests # Get the list of all Synthetic tests. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsListTestsResponse, Integer, Hash)>] SyntheticsListTestsResponse data, response status code and response headers def list_tests_with_http_info(opts = {}) @@ -1595,7 +1595,7 @@ def list_tests_with_http_info(opts = {}) # Trigger tests from CI/CD pipelines # Trigger a set of Synthetics tests for continuous integration. # @param body [SyntheticsCITestBody] Details of the test to trigger. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsTriggerCITestsResponse] def trigger_ci_tests(body, opts = {}) data, _status_code, _headers = trigger_ci_tests_with_http_info(body, opts) @@ -1605,7 +1605,7 @@ def trigger_ci_tests(body, opts = {}) # Trigger tests from CI/CD pipelines # Trigger a set of Synthetics tests for continuous integration. # @param body [SyntheticsCITestBody] Details of the test to trigger. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsTriggerCITestsResponse, Integer, Hash)>] SyntheticsTriggerCITestsResponse data, response status code and response headers def trigger_ci_tests_with_http_info(body, opts = {}) @@ -1670,7 +1670,7 @@ def trigger_ci_tests_with_http_info(body, opts = {}) # Trigger Synthetics tests # Trigger a set of Synthetics tests. # @param body [SyntheticsTriggerBody] The identifiers of the tests to trigger. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsTriggerCITestsResponse] def trigger_tests(body, opts = {}) data, _status_code, _headers = trigger_tests_with_http_info(body, opts) @@ -1680,7 +1680,7 @@ def trigger_tests(body, opts = {}) # Trigger Synthetics tests # Trigger a set of Synthetics tests. # @param body [SyntheticsTriggerBody] The identifiers of the tests to trigger. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsTriggerCITestsResponse, Integer, Hash)>] SyntheticsTriggerCITestsResponse data, response status code and response headers def trigger_tests_with_http_info(body, opts = {}) @@ -1746,7 +1746,7 @@ def trigger_tests_with_http_info(body, opts = {}) # Edit the configuration of a Synthetic API test. # @param public_id [String] The public ID of the test to get details from. # @param body [SyntheticsAPITest] New test details to be saved. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsAPITest] def update_api_test(public_id, body, opts = {}) data, _status_code, _headers = update_api_test_with_http_info(public_id, body, opts) @@ -1757,7 +1757,7 @@ def update_api_test(public_id, body, opts = {}) # Edit the configuration of a Synthetic API test. # @param public_id [String] The public ID of the test to get details from. # @param body [SyntheticsAPITest] New test details to be saved. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsAPITest, Integer, Hash)>] SyntheticsAPITest data, response status code and response headers def update_api_test_with_http_info(public_id, body, opts = {}) @@ -1827,7 +1827,7 @@ def update_api_test_with_http_info(public_id, body, opts = {}) # Edit the configuration of a Synthetic browser test. # @param public_id [String] The public ID of the test to get details from. # @param body [SyntheticsBrowserTest] New test details to be saved. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsBrowserTest] def update_browser_test(public_id, body, opts = {}) data, _status_code, _headers = update_browser_test_with_http_info(public_id, body, opts) @@ -1838,7 +1838,7 @@ def update_browser_test(public_id, body, opts = {}) # Edit the configuration of a Synthetic browser test. # @param public_id [String] The public ID of the test to get details from. # @param body [SyntheticsBrowserTest] New test details to be saved. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsBrowserTest, Integer, Hash)>] SyntheticsBrowserTest data, response status code and response headers def update_browser_test_with_http_info(public_id, body, opts = {}) @@ -1908,7 +1908,7 @@ def update_browser_test_with_http_info(public_id, body, opts = {}) # Edit a Synthetics private location. # @param location_id [String] The ID of the private location. # @param body [SyntheticsPrivateLocation] Details of the private location to be updated. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SyntheticsPrivateLocation] def update_private_location(location_id, body, opts = {}) data, _status_code, _headers = update_private_location_with_http_info(location_id, body, opts) @@ -1919,7 +1919,7 @@ def update_private_location(location_id, body, opts = {}) # Edit a Synthetics private location. # @param location_id [String] The ID of the private location. # @param body [SyntheticsPrivateLocation] Details of the private location to be updated. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SyntheticsPrivateLocation, Integer, Hash)>] SyntheticsPrivateLocation data, response status code and response headers def update_private_location_with_http_info(location_id, body, opts = {}) @@ -1989,7 +1989,7 @@ def update_private_location_with_http_info(location_id, body, opts = {}) # Pause or start a Synthetics test by changing the status. # @param public_id [String] The public ID of the Synthetic test to update. # @param body [SyntheticsUpdateTestPauseStatusPayload] Status to set the given Synthetic test to. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Boolean] def update_test_pause_status(public_id, body, opts = {}) data, _status_code, _headers = update_test_pause_status_with_http_info(public_id, body, opts) @@ -2000,7 +2000,7 @@ def update_test_pause_status(public_id, body, opts = {}) # Pause or start a Synthetics test by changing the status. # @param public_id [String] The public ID of the Synthetic test to update. # @param body [SyntheticsUpdateTestPauseStatusPayload] Status to set the given Synthetic test to. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(Boolean, Integer, Hash)>] Boolean data, response status code and response headers def update_test_pause_status_with_http_info(public_id, body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/tags_api.rb b/lib/datadog_api_client/v1/api/tags_api.rb index e811d244832..a536cb36101 100644 --- a/lib/datadog_api_client/v1/api/tags_api.rb +++ b/lib/datadog_api_client/v1/api/tags_api.rb @@ -28,7 +28,7 @@ def initialize(api_client = APIClient.default) # optionally specifying where these tags come from. # @param host_name [String] This endpoint allows you to add new tags to a host, optionally specifying where the tags came from. # @param body [HostTags] Update host tags request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :source The source of the tags. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). # @return [HostTags] def create_host_tags(host_name, body, opts = {}) @@ -41,7 +41,7 @@ def create_host_tags(host_name, body, opts = {}) # optionally specifying where these tags come from. # @param host_name [String] This endpoint allows you to add new tags to a host, optionally specifying where the tags came from. # @param body [HostTags] Update host tags request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :source The source of the tags. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). # @return [Array<(HostTags, Integer, Hash)>] HostTags data, response status code and response headers def create_host_tags_with_http_info(host_name, body, opts = {}) @@ -113,7 +113,7 @@ def create_host_tags_with_http_info(host_name, body, opts = {}) # This endpoint allows you to remove all user-assigned tags # for a single host. # @param host_name [String] This endpoint allows you to remove all user-assigned tags for a single host. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :source The source of the tags (for example chef, puppet). [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). # @return [nil] def delete_host_tags(host_name, opts = {}) @@ -125,7 +125,7 @@ def delete_host_tags(host_name, opts = {}) # This endpoint allows you to remove all user-assigned tags # for a single host. # @param host_name [String] This endpoint allows you to remove all user-assigned tags for a single host. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :source The source of the tags (for example chef, puppet). [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_host_tags_with_http_info(host_name, opts = {}) @@ -190,7 +190,7 @@ def delete_host_tags_with_http_info(host_name, opts = {}) # Get host tags # Return the list of tags that apply to a given host. # @param host_name [String] When specified, filters list of tags to those tags with the specified source. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :source Source to filter. # @return [HostTags] def get_host_tags(host_name, opts = {}) @@ -201,7 +201,7 @@ def get_host_tags(host_name, opts = {}) # Get host tags # Return the list of tags that apply to a given host. # @param host_name [String] When specified, filters list of tags to those tags with the specified source. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :source Source to filter. # @return [Array<(HostTags, Integer, Hash)>] HostTags data, response status code and response headers def get_host_tags_with_http_info(host_name, opts = {}) @@ -265,7 +265,7 @@ def get_host_tags_with_http_info(host_name, opts = {}) # Get Tags # Return a mapping of tags to hosts for your whole infrastructure. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :source When specified, filters host list to those tags with the specified source. # @return [TagToHosts] def list_host_tags(opts = {}) @@ -275,7 +275,7 @@ def list_host_tags(opts = {}) # Get Tags # Return a mapping of tags to hosts for your whole infrastructure. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :source When specified, filters host list to those tags with the specified source. # @return [Array<(TagToHosts, Integer, Hash)>] TagToHosts data, response status code and response headers def list_host_tags_with_http_info(opts = {}) @@ -338,7 +338,7 @@ def list_host_tags_with_http_info(opts = {}) # an integration source with those supplied in the request. # @param host_name [String] This endpoint allows you to update/replace all in an integration source with those supplied in the request. # @param body [HostTags] Add tags to host - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :source The source of the tags (for example chef, puppet). [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value) # @return [HostTags] def update_host_tags(host_name, body, opts = {}) @@ -351,7 +351,7 @@ def update_host_tags(host_name, body, opts = {}) # an integration source with those supplied in the request. # @param host_name [String] This endpoint allows you to update/replace all in an integration source with those supplied in the request. # @param body [HostTags] Add tags to host - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :source The source of the tags (for example chef, puppet). [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value) # @return [Array<(HostTags, Integer, Hash)>] HostTags data, response status code and response headers def update_host_tags_with_http_info(host_name, body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/usage_metering_api.rb b/lib/datadog_api_client/v1/api/usage_metering_api.rb index 193343bcbd1..e2c08d7e21b 100644 --- a/lib/datadog_api_client/v1/api/usage_metering_api.rb +++ b/lib/datadog_api_client/v1/api/usage_metering_api.rb @@ -25,7 +25,7 @@ def initialize(api_client = APIClient.default) # Get the list of available daily custom reports # Get daily custom reports. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size The number of files to return in the response. `[default=60]`. # @option opts [Integer] :page_number The identifier of the first page to return. This parameter is used for the pagination feature `[default=0]`. # @option opts [UsageSortDirection] :sort_dir The direction to sort by: `[desc, asc]`. @@ -38,7 +38,7 @@ def get_daily_custom_reports(opts = {}) # Get the list of available daily custom reports # Get daily custom reports. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size The number of files to return in the response. `[default=60]`. # @option opts [Integer] :page_number The identifier of the first page to return. This parameter is used for the pagination feature `[default=0]`. # @option opts [UsageSortDirection] :sort_dir The direction to sort by: `[desc, asc]`. @@ -114,7 +114,7 @@ def get_daily_custom_reports_with_http_info(opts = {}) # Get Hourly Usage Attribution. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param usage_type [HourlyUsageAttributionUsageType] Usage type to retrieve. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @option opts [String] :next_record_id List following results with a next_record_id provided in the previous query. # @option opts [String] :tag_breakdown_keys Comma separated list of tags used to group usage. If no value is provided the usage will not be broken down by tags. @@ -128,7 +128,7 @@ def get_hourly_usage_attribution(start_hr, usage_type, opts = {}) # Get Hourly Usage Attribution. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param usage_type [HourlyUsageAttributionUsageType] Usage type to retrieve. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @option opts [String] :next_record_id List following results with a next_record_id provided in the previous query. # @option opts [String] :tag_breakdown_keys Comma separated list of tags used to group usage. If no value is provided the usage will not be broken down by tags. @@ -208,7 +208,7 @@ def get_hourly_usage_attribution_with_http_info(start_hr, usage_type, opts = {}) # Get hourly usage for incident management # Get hourly usage for incident management. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageIncidentManagementResponse] def get_incident_management(start_hr, opts = {}) @@ -219,7 +219,7 @@ def get_incident_management(start_hr, opts = {}) # Get hourly usage for incident management # Get hourly usage for incident management. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageIncidentManagementResponse, Integer, Hash)>] UsageIncidentManagementResponse data, response status code and response headers def get_incident_management_with_http_info(start_hr, opts = {}) @@ -285,7 +285,7 @@ def get_incident_management_with_http_info(start_hr, opts = {}) # Get hourly usage for ingested spans # Get hourly usage for ingested spans. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageIngestedSpansResponse] def get_ingested_spans(start_hr, opts = {}) @@ -296,7 +296,7 @@ def get_ingested_spans(start_hr, opts = {}) # Get hourly usage for ingested spans # Get hourly usage for ingested spans. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageIngestedSpansResponse, Integer, Hash)>] UsageIngestedSpansResponse data, response status code and response headers def get_ingested_spans_with_http_info(start_hr, opts = {}) @@ -361,7 +361,7 @@ def get_ingested_spans_with_http_info(start_hr, opts = {}) # Get the list of available monthly custom reports # Get monthly custom reports. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size The number of files to return in the response `[default=60].` # @option opts [Integer] :page_number The identifier of the first page to return. This parameter is used for the pagination feature `[default=0]`. # @option opts [UsageSortDirection] :sort_dir The direction to sort by: `[desc, asc]`. @@ -374,7 +374,7 @@ def get_monthly_custom_reports(opts = {}) # Get the list of available monthly custom reports # Get monthly custom reports. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size The number of files to return in the response `[default=60].` # @option opts [Integer] :page_number The identifier of the first page to return. This parameter is used for the pagination feature `[default=0]`. # @option opts [UsageSortDirection] :sort_dir The direction to sort by: `[desc, asc]`. @@ -450,7 +450,7 @@ def get_monthly_custom_reports_with_http_info(opts = {}) # Get Monthly Usage Attribution. # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. # @param fields [MonthlyUsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. # @option opts [UsageSortDirection] :sort_direction The direction to sort by: `[desc, asc]`. # @option opts [MonthlyUsageAttributionSupportedMetrics] :sort_name The field to sort by. @@ -466,7 +466,7 @@ def get_monthly_usage_attribution(start_month, fields, opts = {}) # Get Monthly Usage Attribution. # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. # @param fields [MonthlyUsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. # @option opts [UsageSortDirection] :sort_direction The direction to sort by: `[desc, asc]`. # @option opts [MonthlyUsageAttributionSupportedMetrics] :sort_name The field to sort by. @@ -558,7 +558,7 @@ def get_monthly_usage_attribution_with_http_info(start_month, fields, opts = {}) # Get specified daily custom reports # Get specified daily custom reports. # @param report_id [String] Date of the report in the format `YYYY-MM-DD`. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [UsageSpecifiedCustomReportsResponse] def get_specified_daily_custom_reports(report_id, opts = {}) data, _status_code, _headers = get_specified_daily_custom_reports_with_http_info(report_id, opts) @@ -568,7 +568,7 @@ def get_specified_daily_custom_reports(report_id, opts = {}) # Get specified daily custom reports # Get specified daily custom reports. # @param report_id [String] Date of the report in the format `YYYY-MM-DD`. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(UsageSpecifiedCustomReportsResponse, Integer, Hash)>] UsageSpecifiedCustomReportsResponse data, response status code and response headers def get_specified_daily_custom_reports_with_http_info(report_id, opts = {}) @@ -631,7 +631,7 @@ def get_specified_daily_custom_reports_with_http_info(report_id, opts = {}) # Get specified monthly custom reports # Get specified monthly custom reports. # @param report_id [String] Date of the report in the format `YYYY-MM-DD`. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [UsageSpecifiedCustomReportsResponse] def get_specified_monthly_custom_reports(report_id, opts = {}) data, _status_code, _headers = get_specified_monthly_custom_reports_with_http_info(report_id, opts) @@ -641,7 +641,7 @@ def get_specified_monthly_custom_reports(report_id, opts = {}) # Get specified monthly custom reports # Get specified monthly custom reports. # @param report_id [String] Date of the report in the format `YYYY-MM-DD`. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(UsageSpecifiedCustomReportsResponse, Integer, Hash)>] UsageSpecifiedCustomReportsResponse data, response status code and response headers def get_specified_monthly_custom_reports_with_http_info(report_id, opts = {}) @@ -704,7 +704,7 @@ def get_specified_monthly_custom_reports_with_http_info(report_id, opts = {}) # Get hourly usage for analyzed logs # Get hourly usage for analyzed logs (Security Monitoring). # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageAnalyzedLogsResponse] def get_usage_analyzed_logs(start_hr, opts = {}) @@ -715,7 +715,7 @@ def get_usage_analyzed_logs(start_hr, opts = {}) # Get hourly usage for analyzed logs # Get hourly usage for analyzed logs (Security Monitoring). # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageAnalyzedLogsResponse, Integer, Hash)>] UsageAnalyzedLogsResponse data, response status code and response headers def get_usage_analyzed_logs_with_http_info(start_hr, opts = {}) @@ -782,7 +782,7 @@ def get_usage_analyzed_logs_with_http_info(start_hr, opts = {}) # Get Usage Attribution. # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. # @param fields [UsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. # @option opts [UsageSortDirection] :sort_direction The direction to sort by: `[desc, asc]`. # @option opts [UsageAttributionSort] :sort_name The field to sort by. @@ -799,7 +799,7 @@ def get_usage_attribution(start_month, fields, opts = {}) # Get Usage Attribution. # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. # @param fields [UsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. # @option opts [UsageSortDirection] :sort_direction The direction to sort by: `[desc, asc]`. # @option opts [UsageAttributionSort] :sort_name The field to sort by. @@ -893,7 +893,7 @@ def get_usage_attribution_with_http_info(start_month, fields, opts = {}) # Get hourly usage for audit logs # Get hourly usage for audit logs. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageAuditLogsResponse] def get_usage_audit_logs(start_hr, opts = {}) @@ -904,7 +904,7 @@ def get_usage_audit_logs(start_hr, opts = {}) # Get hourly usage for audit logs # Get hourly usage for audit logs. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageAuditLogsResponse, Integer, Hash)>] UsageAuditLogsResponse data, response status code and response headers def get_usage_audit_logs_with_http_info(start_hr, opts = {}) @@ -969,7 +969,7 @@ def get_usage_audit_logs_with_http_info(start_hr, opts = {}) # Get billable usage across your account # Get billable usage across your account. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage starting this month. # @return [UsageBillableSummaryResponse] def get_usage_billable_summary(opts = {}) @@ -979,7 +979,7 @@ def get_usage_billable_summary(opts = {}) # Get billable usage across your account # Get billable usage across your account. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage starting this month. # @return [Array<(UsageBillableSummaryResponse, Integer, Hash)>] UsageBillableSummaryResponse data, response status code and response headers def get_usage_billable_summary_with_http_info(opts = {}) @@ -1040,7 +1040,7 @@ def get_usage_billable_summary_with_http_info(opts = {}) # Get hourly usage for CSPM # Get hourly usage for Cloud Security Posture Management (CSPM). # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageCloudSecurityPostureManagementResponse] def get_usage_cloud_security_posture_management(start_hr, opts = {}) @@ -1051,7 +1051,7 @@ def get_usage_cloud_security_posture_management(start_hr, opts = {}) # Get hourly usage for CSPM # Get hourly usage for Cloud Security Posture Management (CSPM). # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageCloudSecurityPostureManagementResponse, Integer, Hash)>] UsageCloudSecurityPostureManagementResponse data, response status code and response headers def get_usage_cloud_security_posture_management_with_http_info(start_hr, opts = {}) @@ -1117,7 +1117,7 @@ def get_usage_cloud_security_posture_management_with_http_info(start_hr, opts = # Get hourly usage for Cloud Workload Security # Get hourly usage for Cloud Workload Security. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageCWSResponse] def get_usage_cws(start_hr, opts = {}) @@ -1128,7 +1128,7 @@ def get_usage_cws(start_hr, opts = {}) # Get hourly usage for Cloud Workload Security # Get hourly usage for Cloud Workload Security. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageCWSResponse, Integer, Hash)>] UsageCWSResponse data, response status code and response headers def get_usage_cws_with_http_info(start_hr, opts = {}) @@ -1194,7 +1194,7 @@ def get_usage_cws_with_http_info(start_hr, opts = {}) # Get hourly usage for Database Monitoring # Get hourly usage for Database Monitoring # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageDBMResponse] def get_usage_dbm(start_hr, opts = {}) @@ -1205,7 +1205,7 @@ def get_usage_dbm(start_hr, opts = {}) # Get hourly usage for Database Monitoring # Get hourly usage for Database Monitoring # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageDBMResponse, Integer, Hash)>] UsageDBMResponse data, response status code and response headers def get_usage_dbm_with_http_info(start_hr, opts = {}) @@ -1271,7 +1271,7 @@ def get_usage_dbm_with_http_info(start_hr, opts = {}) # Get hourly usage for Fargate # Get hourly usage for [Fargate](https://docs.datadoghq.com/integrations/ecs_fargate/). # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [UsageFargateResponse] def get_usage_fargate(start_hr, opts = {}) @@ -1282,7 +1282,7 @@ def get_usage_fargate(start_hr, opts = {}) # Get hourly usage for Fargate # Get hourly usage for [Fargate](https://docs.datadoghq.com/integrations/ecs_fargate/). # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [Array<(UsageFargateResponse, Integer, Hash)>] UsageFargateResponse data, response status code and response headers def get_usage_fargate_with_http_info(start_hr, opts = {}) @@ -1348,7 +1348,7 @@ def get_usage_fargate_with_http_info(start_hr, opts = {}) # Get hourly usage for hosts and containers # Get hourly usage for hosts and containers. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [UsageHostsResponse] def get_usage_hosts(start_hr, opts = {}) @@ -1359,7 +1359,7 @@ def get_usage_hosts(start_hr, opts = {}) # Get hourly usage for hosts and containers # Get hourly usage for hosts and containers. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [Array<(UsageHostsResponse, Integer, Hash)>] UsageHostsResponse data, response status code and response headers def get_usage_hosts_with_http_info(start_hr, opts = {}) @@ -1425,7 +1425,7 @@ def get_usage_hosts_with_http_info(start_hr, opts = {}) # Get hourly usage for indexed spans # Get hourly usage for indexed spans. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageIndexedSpansResponse] def get_usage_indexed_spans(start_hr, opts = {}) @@ -1436,7 +1436,7 @@ def get_usage_indexed_spans(start_hr, opts = {}) # Get hourly usage for indexed spans # Get hourly usage for indexed spans. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageIndexedSpansResponse, Integer, Hash)>] UsageIndexedSpansResponse data, response status code and response headers def get_usage_indexed_spans_with_http_info(start_hr, opts = {}) @@ -1502,7 +1502,7 @@ def get_usage_indexed_spans_with_http_info(start_hr, opts = {}) # Get hourly usage for IoT # Get hourly usage for IoT. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageIoTResponse] def get_usage_internet_of_things(start_hr, opts = {}) @@ -1513,7 +1513,7 @@ def get_usage_internet_of_things(start_hr, opts = {}) # Get hourly usage for IoT # Get hourly usage for IoT. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageIoTResponse, Integer, Hash)>] UsageIoTResponse data, response status code and response headers def get_usage_internet_of_things_with_http_info(start_hr, opts = {}) @@ -1579,7 +1579,7 @@ def get_usage_internet_of_things_with_http_info(start_hr, opts = {}) # Get hourly usage for Lambda # Get hourly usage for lambda. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [UsageLambdaResponse] def get_usage_lambda(start_hr, opts = {}) @@ -1590,7 +1590,7 @@ def get_usage_lambda(start_hr, opts = {}) # Get hourly usage for Lambda # Get hourly usage for lambda. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [Array<(UsageLambdaResponse, Integer, Hash)>] UsageLambdaResponse data, response status code and response headers def get_usage_lambda_with_http_info(start_hr, opts = {}) @@ -1656,7 +1656,7 @@ def get_usage_lambda_with_http_info(start_hr, opts = {}) # Get hourly usage for Logs # Get hourly usage for logs. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [UsageLogsResponse] def get_usage_logs(start_hr, opts = {}) @@ -1667,7 +1667,7 @@ def get_usage_logs(start_hr, opts = {}) # Get hourly usage for Logs # Get hourly usage for logs. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [Array<(UsageLogsResponse, Integer, Hash)>] UsageLogsResponse data, response status code and response headers def get_usage_logs_with_http_info(start_hr, opts = {}) @@ -1733,7 +1733,7 @@ def get_usage_logs_with_http_info(start_hr, opts = {}) # Get hourly usage for Logs by Index # Get hourly usage for logs by index. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @option opts [Array] :index_name Comma-separated list of log index names. # @return [UsageLogsByIndexResponse] @@ -1745,7 +1745,7 @@ def get_usage_logs_by_index(start_hr, opts = {}) # Get hourly usage for Logs by Index # Get hourly usage for logs by index. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @option opts [Array] :index_name Comma-separated list of log index names. # @return [Array<(UsageLogsByIndexResponse, Integer, Hash)>] UsageLogsByIndexResponse data, response status code and response headers @@ -1813,7 +1813,7 @@ def get_usage_logs_by_index_with_http_info(start_hr, opts = {}) # Get hourly logs usage by retention # Get hourly usage for indexed logs by retention period. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageLogsByRetentionResponse] def get_usage_logs_by_retention(start_hr, opts = {}) @@ -1824,7 +1824,7 @@ def get_usage_logs_by_retention(start_hr, opts = {}) # Get hourly logs usage by retention # Get hourly usage for indexed logs by retention period. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageLogsByRetentionResponse, Integer, Hash)>] UsageLogsByRetentionResponse data, response status code and response headers def get_usage_logs_by_retention_with_http_info(start_hr, opts = {}) @@ -1890,7 +1890,7 @@ def get_usage_logs_by_retention_with_http_info(start_hr, opts = {}) # Get hourly usage for Network Flows # Get hourly usage for network flows. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageNetworkFlowsResponse] def get_usage_network_flows(start_hr, opts = {}) @@ -1901,7 +1901,7 @@ def get_usage_network_flows(start_hr, opts = {}) # Get hourly usage for Network Flows # Get hourly usage for network flows. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageNetworkFlowsResponse, Integer, Hash)>] UsageNetworkFlowsResponse data, response status code and response headers def get_usage_network_flows_with_http_info(start_hr, opts = {}) @@ -1967,7 +1967,7 @@ def get_usage_network_flows_with_http_info(start_hr, opts = {}) # Get hourly usage for Network Hosts # Get hourly usage for network hosts. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [UsageNetworkHostsResponse] def get_usage_network_hosts(start_hr, opts = {}) @@ -1978,7 +1978,7 @@ def get_usage_network_hosts(start_hr, opts = {}) # Get hourly usage for Network Hosts # Get hourly usage for network hosts. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [Array<(UsageNetworkHostsResponse, Integer, Hash)>] UsageNetworkHostsResponse data, response status code and response headers def get_usage_network_hosts_with_http_info(start_hr, opts = {}) @@ -2044,7 +2044,7 @@ def get_usage_network_hosts_with_http_info(start_hr, opts = {}) # Get hourly usage for profiled hosts # Get hourly usage for profiled hosts. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageProfilingResponse] def get_usage_profiling(start_hr, opts = {}) @@ -2055,7 +2055,7 @@ def get_usage_profiling(start_hr, opts = {}) # Get hourly usage for profiled hosts # Get hourly usage for profiled hosts. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageProfilingResponse, Integer, Hash)>] UsageProfilingResponse data, response status code and response headers def get_usage_profiling_with_http_info(start_hr, opts = {}) @@ -2121,7 +2121,7 @@ def get_usage_profiling_with_http_info(start_hr, opts = {}) # Get hourly usage for RUM Sessions # Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Sessions. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @option opts [String] :type RUM type: `[browser, mobile]`. Defaults to `browser`. # @return [UsageRumSessionsResponse] @@ -2133,7 +2133,7 @@ def get_usage_rum_sessions(start_hr, opts = {}) # Get hourly usage for RUM Sessions # Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Sessions. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @option opts [String] :type RUM type: `[browser, mobile]`. Defaults to `browser`. # @return [Array<(UsageRumSessionsResponse, Integer, Hash)>] UsageRumSessionsResponse data, response status code and response headers @@ -2201,7 +2201,7 @@ def get_usage_rum_sessions_with_http_info(start_hr, opts = {}) # Get hourly usage for RUM Units # Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Units. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [UsageRumUnitsResponse] def get_usage_rum_units(start_hr, opts = {}) @@ -2212,7 +2212,7 @@ def get_usage_rum_units(start_hr, opts = {}) # Get hourly usage for RUM Units # Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Units. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [Array<(UsageRumUnitsResponse, Integer, Hash)>] UsageRumUnitsResponse data, response status code and response headers def get_usage_rum_units_with_http_info(start_hr, opts = {}) @@ -2278,7 +2278,7 @@ def get_usage_rum_units_with_http_info(start_hr, opts = {}) # Get hourly usage for Sensitive Data Scanner # Get hourly usage for Sensitive Data Scanner. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageSDSResponse] def get_usage_sds(start_hr, opts = {}) @@ -2289,7 +2289,7 @@ def get_usage_sds(start_hr, opts = {}) # Get hourly usage for Sensitive Data Scanner # Get hourly usage for Sensitive Data Scanner. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageSDSResponse, Integer, Hash)>] UsageSDSResponse data, response status code and response headers def get_usage_sds_with_http_info(start_hr, opts = {}) @@ -2355,7 +2355,7 @@ def get_usage_sds_with_http_info(start_hr, opts = {}) # Get hourly usage for SNMP devices # Get hourly usage for SNMP devices. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageSNMPResponse] def get_usage_snmp(start_hr, opts = {}) @@ -2366,7 +2366,7 @@ def get_usage_snmp(start_hr, opts = {}) # Get hourly usage for SNMP devices # Get hourly usage for SNMP devices. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageSNMPResponse, Integer, Hash)>] UsageSNMPResponse data, response status code and response headers def get_usage_snmp_with_http_info(start_hr, opts = {}) @@ -2432,7 +2432,7 @@ def get_usage_snmp_with_http_info(start_hr, opts = {}) # Get usage across your multi-org account # Get usage across your multi-org account. You must have the multi-org feature enabled. # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. # @option opts [Boolean] :include_org_details Include usage summaries for each sub-org. # @return [UsageSummaryResponse] @@ -2444,7 +2444,7 @@ def get_usage_summary(start_month, opts = {}) # Get usage across your multi-org account # Get usage across your multi-org account. You must have the multi-org feature enabled. # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. # @option opts [Boolean] :include_org_details Include usage summaries for each sub-org. # @return [Array<(UsageSummaryResponse, Integer, Hash)>] UsageSummaryResponse data, response status code and response headers @@ -2512,7 +2512,7 @@ def get_usage_summary_with_http_info(start_month, opts = {}) # Get hourly usage for Synthetics Checks # Get hourly usage for [Synthetics checks](https://docs.datadoghq.com/synthetics/). # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [UsageSyntheticsResponse] def get_usage_synthetics(start_hr, opts = {}) @@ -2523,7 +2523,7 @@ def get_usage_synthetics(start_hr, opts = {}) # Get hourly usage for Synthetics Checks # Get hourly usage for [Synthetics checks](https://docs.datadoghq.com/synthetics/). # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [Array<(UsageSyntheticsResponse, Integer, Hash)>] UsageSyntheticsResponse data, response status code and response headers def get_usage_synthetics_with_http_info(start_hr, opts = {}) @@ -2589,7 +2589,7 @@ def get_usage_synthetics_with_http_info(start_hr, opts = {}) # Get hourly usage for Synthetics API Checks # Get hourly usage for [synthetics API checks](https://docs.datadoghq.com/synthetics/). # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [UsageSyntheticsAPIResponse] def get_usage_synthetics_api(start_hr, opts = {}) @@ -2600,7 +2600,7 @@ def get_usage_synthetics_api(start_hr, opts = {}) # Get hourly usage for Synthetics API Checks # Get hourly usage for [synthetics API checks](https://docs.datadoghq.com/synthetics/). # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [Array<(UsageSyntheticsAPIResponse, Integer, Hash)>] UsageSyntheticsAPIResponse data, response status code and response headers def get_usage_synthetics_api_with_http_info(start_hr, opts = {}) @@ -2666,7 +2666,7 @@ def get_usage_synthetics_api_with_http_info(start_hr, opts = {}) # Get hourly usage for Synthetics Browser Checks # Get hourly usage for synthetics browser checks. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [UsageSyntheticsBrowserResponse] def get_usage_synthetics_browser(start_hr, opts = {}) @@ -2677,7 +2677,7 @@ def get_usage_synthetics_browser(start_hr, opts = {}) # Get hourly usage for Synthetics Browser Checks # Get hourly usage for synthetics browser checks. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [Array<(UsageSyntheticsBrowserResponse, Integer, Hash)>] UsageSyntheticsBrowserResponse data, response status code and response headers def get_usage_synthetics_browser_with_http_info(start_hr, opts = {}) @@ -2743,7 +2743,7 @@ def get_usage_synthetics_browser_with_http_info(start_hr, opts = {}) # Get hourly usage for custom metrics # Get hourly usage for [custom metrics](https://docs.datadoghq.com/developers/metrics/custom_metrics/). # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [UsageTimeseriesResponse] def get_usage_timeseries(start_hr, opts = {}) @@ -2754,7 +2754,7 @@ def get_usage_timeseries(start_hr, opts = {}) # Get hourly usage for custom metrics # Get hourly usage for [custom metrics](https://docs.datadoghq.com/developers/metrics/custom_metrics/). # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour. # @return [Array<(UsageTimeseriesResponse, Integer, Hash)>] UsageTimeseriesResponse data, response status code and response headers def get_usage_timeseries_with_http_info(start_hr, opts = {}) @@ -2819,7 +2819,7 @@ def get_usage_timeseries_with_http_info(start_hr, opts = {}) # Get all custom metrics by hourly average # Get all [custom metrics](https://docs.datadoghq.com/developers/metrics/custom_metrics/) by hourly average. Use the month parameter to get a month-to-date data resolution or use the day parameter to get a daily resolution. One of the two is required, and only one of the two is allowed. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :month Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM] for usage beginning at this hour. (Either month or day should be specified, but not both) # @option opts [Time] :day Datetime in ISO-8601 format, UTC, precise to day: [YYYY-MM-DD] for usage beginning at this hour. (Either month or day should be specified, but not both) # @option opts [Array] :names Comma-separated list of metric names. @@ -2833,7 +2833,7 @@ def get_usage_top_avg_metrics(opts = {}) # Get all custom metrics by hourly average # Get all [custom metrics](https://docs.datadoghq.com/developers/metrics/custom_metrics/) by hourly average. Use the month parameter to get a month-to-date data resolution or use the day parameter to get a daily resolution. One of the two is required, and only one of the two is allowed. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Time] :month Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM] for usage beginning at this hour. (Either month or day should be specified, but not both) # @option opts [Time] :day Datetime in ISO-8601 format, UTC, precise to day: [YYYY-MM-DD] for usage beginning at this hour. (Either month or day should be specified, but not both) # @option opts [Array] :names Comma-separated list of metric names. @@ -2855,10 +2855,10 @@ def get_usage_top_avg_metrics_with_http_info(opts = {}) @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_top_avg_metrics ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 5000 - fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsageMeteringAPI.GetUsageTopAvgMetrics, must be smaller than or equal to 5000.' + fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsageMeteringAPI.get_usage_top_avg_metrics, must be smaller than or equal to 5000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 - fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsageMeteringAPI.GetUsageTopAvgMetrics, must be greater than or equal to 1.' + fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsageMeteringAPI.get_usage_top_avg_metrics, must be greater than or equal to 1.' end # resource path local_var_path = '/api/v1/usage/top_avg_metrics' diff --git a/lib/datadog_api_client/v1/api/users_api.rb b/lib/datadog_api_client/v1/api/users_api.rb index bd1518bb97f..e5ad2a10986 100644 --- a/lib/datadog_api_client/v1/api/users_api.rb +++ b/lib/datadog_api_client/v1/api/users_api.rb @@ -29,7 +29,7 @@ def initialize(api_client = APIClient.default) # **Note**: Users can only be created with the admin access role # if application keys belong to administrators. # @param body [User] User object that needs to be created. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [UserResponse] def create_user(body, opts = {}) data, _status_code, _headers = create_user_with_http_info(body, opts) @@ -42,7 +42,7 @@ def create_user(body, opts = {}) # **Note**: Users can only be created with the admin access role # if application keys belong to administrators. # @param body [User] User object that needs to be created. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers def create_user_with_http_info(body, opts = {}) @@ -110,7 +110,7 @@ def create_user_with_http_info(body, opts = {}) # **Note**: This endpoint can only be used with application keys belonging to # administrators. # @param user_handle [String] The handle of the user. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [UserDisableResponse] def disable_user(user_handle, opts = {}) data, _status_code, _headers = disable_user_with_http_info(user_handle, opts) @@ -123,7 +123,7 @@ def disable_user(user_handle, opts = {}) # **Note**: This endpoint can only be used with application keys belonging to # administrators. # @param user_handle [String] The handle of the user. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(UserDisableResponse, Integer, Hash)>] UserDisableResponse data, response status code and response headers def disable_user_with_http_info(user_handle, opts = {}) @@ -186,7 +186,7 @@ def disable_user_with_http_info(user_handle, opts = {}) # Get user details # Get a user's details. # @param user_handle [String] The ID of the user. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [UserResponse] def get_user(user_handle, opts = {}) data, _status_code, _headers = get_user_with_http_info(user_handle, opts) @@ -196,7 +196,7 @@ def get_user(user_handle, opts = {}) # Get user details # Get a user's details. # @param user_handle [String] The ID of the user. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers def get_user_with_http_info(user_handle, opts = {}) @@ -258,7 +258,7 @@ def get_user_with_http_info(user_handle, opts = {}) # List all users # List all users for your organization. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [UserListResponse] def list_users(opts = {}) data, _status_code, _headers = list_users_with_http_info(opts) @@ -267,7 +267,7 @@ def list_users(opts = {}) # List all users # List all users for your organization. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(UserListResponse, Integer, Hash)>] UserListResponse data, response status code and response headers def list_users_with_http_info(opts = {}) @@ -329,7 +329,7 @@ def list_users_with_http_info(opts = {}) # **Note**: It can only be used with application keys belonging to administrators. # @param user_handle [String] The ID of the user. # @param body [User] Description of the update. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [UserResponse] def update_user(user_handle, body, opts = {}) data, _status_code, _headers = update_user_with_http_info(user_handle, body, opts) @@ -342,7 +342,7 @@ def update_user(user_handle, body, opts = {}) # **Note**: It can only be used with application keys belonging to administrators. # @param user_handle [String] The ID of the user. # @param body [User] Description of the update. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers def update_user_with_http_info(user_handle, body, opts = {}) diff --git a/lib/datadog_api_client/v1/api/webhooks_integration_api.rb b/lib/datadog_api_client/v1/api/webhooks_integration_api.rb index ff1b5529692..4cdd78b9844 100644 --- a/lib/datadog_api_client/v1/api/webhooks_integration_api.rb +++ b/lib/datadog_api_client/v1/api/webhooks_integration_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Create a webhooks integration # Creates an endpoint with the name ``. # @param body [WebhooksIntegration] Create a webhooks integration request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [WebhooksIntegration] def create_webhooks_integration(body, opts = {}) data, _status_code, _headers = create_webhooks_integration_with_http_info(body, opts) @@ -36,7 +36,7 @@ def create_webhooks_integration(body, opts = {}) # Create a webhooks integration # Creates an endpoint with the name ``. # @param body [WebhooksIntegration] Create a webhooks integration request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(WebhooksIntegration, Integer, Hash)>] WebhooksIntegration data, response status code and response headers def create_webhooks_integration_with_http_info(body, opts = {}) @@ -101,7 +101,7 @@ def create_webhooks_integration_with_http_info(body, opts = {}) # Create a custom variable # Creates an endpoint with the name ``. # @param body [WebhooksIntegrationCustomVariable] Define a custom variable request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [WebhooksIntegrationCustomVariableResponse] def create_webhooks_integration_custom_variable(body, opts = {}) data, _status_code, _headers = create_webhooks_integration_custom_variable_with_http_info(body, opts) @@ -111,7 +111,7 @@ def create_webhooks_integration_custom_variable(body, opts = {}) # Create a custom variable # Creates an endpoint with the name ``. # @param body [WebhooksIntegrationCustomVariable] Define a custom variable request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(WebhooksIntegrationCustomVariableResponse, Integer, Hash)>] WebhooksIntegrationCustomVariableResponse data, response status code and response headers def create_webhooks_integration_custom_variable_with_http_info(body, opts = {}) @@ -176,7 +176,7 @@ def create_webhooks_integration_custom_variable_with_http_info(body, opts = {}) # Delete a webhook # Deletes the endpoint with the name ``. # @param webhook_name [String] The name of the webhook. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_webhooks_integration(webhook_name, opts = {}) delete_webhooks_integration_with_http_info(webhook_name, opts) @@ -186,7 +186,7 @@ def delete_webhooks_integration(webhook_name, opts = {}) # Delete a webhook # Deletes the endpoint with the name ``. # @param webhook_name [String] The name of the webhook. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_webhooks_integration_with_http_info(webhook_name, opts = {}) @@ -249,7 +249,7 @@ def delete_webhooks_integration_with_http_info(webhook_name, opts = {}) # Delete a custom variable # Deletes the endpoint with the name ``. # @param custom_variable_name [String] The name of the custom variable. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_webhooks_integration_custom_variable(custom_variable_name, opts = {}) delete_webhooks_integration_custom_variable_with_http_info(custom_variable_name, opts) @@ -259,7 +259,7 @@ def delete_webhooks_integration_custom_variable(custom_variable_name, opts = {}) # Delete a custom variable # Deletes the endpoint with the name ``. # @param custom_variable_name [String] The name of the custom variable. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_webhooks_integration_custom_variable_with_http_info(custom_variable_name, opts = {}) @@ -322,7 +322,7 @@ def delete_webhooks_integration_custom_variable_with_http_info(custom_variable_n # Get a webhook integration # Gets the content of the webhook with the name ``. # @param webhook_name [String] The name of the webhook. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [WebhooksIntegration] def get_webhooks_integration(webhook_name, opts = {}) data, _status_code, _headers = get_webhooks_integration_with_http_info(webhook_name, opts) @@ -332,7 +332,7 @@ def get_webhooks_integration(webhook_name, opts = {}) # Get a webhook integration # Gets the content of the webhook with the name ``. # @param webhook_name [String] The name of the webhook. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(WebhooksIntegration, Integer, Hash)>] WebhooksIntegration data, response status code and response headers def get_webhooks_integration_with_http_info(webhook_name, opts = {}) @@ -398,7 +398,7 @@ def get_webhooks_integration_with_http_info(webhook_name, opts = {}) # If the custom variable is secret, the value does not return in the # response payload. # @param custom_variable_name [String] The name of the custom variable. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [WebhooksIntegrationCustomVariableResponse] def get_webhooks_integration_custom_variable(custom_variable_name, opts = {}) data, _status_code, _headers = get_webhooks_integration_custom_variable_with_http_info(custom_variable_name, opts) @@ -411,7 +411,7 @@ def get_webhooks_integration_custom_variable(custom_variable_name, opts = {}) # If the custom variable is secret, the value does not return in the # response payload. # @param custom_variable_name [String] The name of the custom variable. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(WebhooksIntegrationCustomVariableResponse, Integer, Hash)>] WebhooksIntegrationCustomVariableResponse data, response status code and response headers def get_webhooks_integration_custom_variable_with_http_info(custom_variable_name, opts = {}) @@ -475,7 +475,7 @@ def get_webhooks_integration_custom_variable_with_http_info(custom_variable_name # Updates the endpoint with the name ``. # @param webhook_name [String] The name of the webhook. # @param body [WebhooksIntegrationUpdateRequest] Update an existing Datadog-Webhooks integration. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [WebhooksIntegration] def update_webhooks_integration(webhook_name, body, opts = {}) data, _status_code, _headers = update_webhooks_integration_with_http_info(webhook_name, body, opts) @@ -486,7 +486,7 @@ def update_webhooks_integration(webhook_name, body, opts = {}) # Updates the endpoint with the name ``. # @param webhook_name [String] The name of the webhook. # @param body [WebhooksIntegrationUpdateRequest] Update an existing Datadog-Webhooks integration. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(WebhooksIntegration, Integer, Hash)>] WebhooksIntegration data, response status code and response headers def update_webhooks_integration_with_http_info(webhook_name, body, opts = {}) @@ -556,7 +556,7 @@ def update_webhooks_integration_with_http_info(webhook_name, body, opts = {}) # Updates the endpoint with the name ``. # @param custom_variable_name [String] The name of the custom variable. # @param body [WebhooksIntegrationCustomVariableUpdateRequest] Update an existing custom variable request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [WebhooksIntegrationCustomVariableResponse] def update_webhooks_integration_custom_variable(custom_variable_name, body, opts = {}) data, _status_code, _headers = update_webhooks_integration_custom_variable_with_http_info(custom_variable_name, body, opts) @@ -567,7 +567,7 @@ def update_webhooks_integration_custom_variable(custom_variable_name, body, opts # Updates the endpoint with the name ``. # @param custom_variable_name [String] The name of the custom variable. # @param body [WebhooksIntegrationCustomVariableUpdateRequest] Update an existing custom variable request body. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(WebhooksIntegrationCustomVariableResponse, Integer, Hash)>] WebhooksIntegrationCustomVariableResponse data, response status code and response headers def update_webhooks_integration_custom_variable_with_http_info(custom_variable_name, body, opts = {}) diff --git a/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb b/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb index 57f21818508..335a2dcd6c4 100644 --- a/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb +++ b/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Create a Cloud Workload Security Agent rule # Create a new Agent rule with the given parameters. # @param body [CloudWorkloadSecurityAgentRuleCreateRequest] The definition of the new Agent rule. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [CloudWorkloadSecurityAgentRuleResponse] def create_cloud_workload_security_agent_rule(body, opts = {}) data, _status_code, _headers = create_cloud_workload_security_agent_rule_with_http_info(body, opts) @@ -36,7 +36,7 @@ def create_cloud_workload_security_agent_rule(body, opts = {}) # Create a Cloud Workload Security Agent rule # Create a new Agent rule with the given parameters. # @param body [CloudWorkloadSecurityAgentRuleCreateRequest] The definition of the new Agent rule. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(CloudWorkloadSecurityAgentRuleResponse, Integer, Hash)>] CloudWorkloadSecurityAgentRuleResponse data, response status code and response headers def create_cloud_workload_security_agent_rule_with_http_info(body, opts = {}) @@ -101,7 +101,7 @@ def create_cloud_workload_security_agent_rule_with_http_info(body, opts = {}) # Delete a Cloud Workload Security Agent rule # Delete a specific Agent rule. # @param agent_rule_id [String] The ID of the Agent rule. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_cloud_workload_security_agent_rule(agent_rule_id, opts = {}) delete_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts) @@ -111,7 +111,7 @@ def delete_cloud_workload_security_agent_rule(agent_rule_id, opts = {}) # Delete a Cloud Workload Security Agent rule # Delete a specific Agent rule. # @param agent_rule_id [String] The ID of the Agent rule. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts = {}) @@ -175,7 +175,7 @@ def delete_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts # The download endpoint generates a Cloud Workload Security policy file from your currently active # Cloud Workload Security rules, and downloads them as a .policy file. This file can then be deployed to # your agents to update the policy running in your environment. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [File] def download_cloud_workload_policy_file(opts = {}) data, _status_code, _headers = download_cloud_workload_policy_file_with_http_info(opts) @@ -186,7 +186,7 @@ def download_cloud_workload_policy_file(opts = {}) # The download endpoint generates a Cloud Workload Security policy file from your currently active # Cloud Workload Security rules, and downloads them as a .policy file. This file can then be deployed to # your agents to update the policy running in your environment. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers def download_cloud_workload_policy_file_with_http_info(opts = {}) @@ -245,7 +245,7 @@ def download_cloud_workload_policy_file_with_http_info(opts = {}) # Get a Cloud Workload Security Agent rule # Get the details of a specific Agent rule. # @param agent_rule_id [String] The ID of the Agent rule. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [CloudWorkloadSecurityAgentRuleResponse] def get_cloud_workload_security_agent_rule(agent_rule_id, opts = {}) data, _status_code, _headers = get_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts) @@ -255,7 +255,7 @@ def get_cloud_workload_security_agent_rule(agent_rule_id, opts = {}) # Get a Cloud Workload Security Agent rule # Get the details of a specific Agent rule. # @param agent_rule_id [String] The ID of the Agent rule. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(CloudWorkloadSecurityAgentRuleResponse, Integer, Hash)>] CloudWorkloadSecurityAgentRuleResponse data, response status code and response headers def get_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts = {}) @@ -317,7 +317,7 @@ def get_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts = # Get all Cloud Workload Security Agent rules # Get the list of Agent rules. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [CloudWorkloadSecurityAgentRulesListResponse] def list_cloud_workload_security_agent_rules(opts = {}) data, _status_code, _headers = list_cloud_workload_security_agent_rules_with_http_info(opts) @@ -326,7 +326,7 @@ def list_cloud_workload_security_agent_rules(opts = {}) # Get all Cloud Workload Security Agent rules # Get the list of Agent rules. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(CloudWorkloadSecurityAgentRulesListResponse, Integer, Hash)>] CloudWorkloadSecurityAgentRulesListResponse data, response status code and response headers def list_cloud_workload_security_agent_rules_with_http_info(opts = {}) @@ -387,7 +387,7 @@ def list_cloud_workload_security_agent_rules_with_http_info(opts = {}) # Returns the Agent rule object when the request is successful. # @param agent_rule_id [String] The ID of the Agent rule. # @param body [CloudWorkloadSecurityAgentRuleUpdateRequest] New definition of the Agent rule. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [CloudWorkloadSecurityAgentRuleResponse] def update_cloud_workload_security_agent_rule(agent_rule_id, body, opts = {}) data, _status_code, _headers = update_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, body, opts) @@ -399,7 +399,7 @@ def update_cloud_workload_security_agent_rule(agent_rule_id, body, opts = {}) # Returns the Agent rule object when the request is successful. # @param agent_rule_id [String] The ID of the Agent rule. # @param body [CloudWorkloadSecurityAgentRuleUpdateRequest] New definition of the Agent rule. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(CloudWorkloadSecurityAgentRuleResponse, Integer, Hash)>] CloudWorkloadSecurityAgentRuleResponse data, response status code and response headers def update_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, body, opts = {}) diff --git a/lib/datadog_api_client/v2/api/dashboard_lists_api.rb b/lib/datadog_api_client/v2/api/dashboard_lists_api.rb index d062065fdb0..f1a85da0838 100644 --- a/lib/datadog_api_client/v2/api/dashboard_lists_api.rb +++ b/lib/datadog_api_client/v2/api/dashboard_lists_api.rb @@ -27,7 +27,7 @@ def initialize(api_client = APIClient.default) # Add dashboards to an existing dashboard list. # @param dashboard_list_id [Integer] ID of the dashboard list to add items to. # @param body [DashboardListAddItemsRequest] Dashboards to add to the dashboard list. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [DashboardListAddItemsResponse] def create_dashboard_list_items(dashboard_list_id, body, opts = {}) data, _status_code, _headers = create_dashboard_list_items_with_http_info(dashboard_list_id, body, opts) @@ -38,7 +38,7 @@ def create_dashboard_list_items(dashboard_list_id, body, opts = {}) # Add dashboards to an existing dashboard list. # @param dashboard_list_id [Integer] ID of the dashboard list to add items to. # @param body [DashboardListAddItemsRequest] Dashboards to add to the dashboard list. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(DashboardListAddItemsResponse, Integer, Hash)>] DashboardListAddItemsResponse data, response status code and response headers def create_dashboard_list_items_with_http_info(dashboard_list_id, body, opts = {}) @@ -108,7 +108,7 @@ def create_dashboard_list_items_with_http_info(dashboard_list_id, body, opts = { # Delete dashboards from an existing dashboard list. # @param dashboard_list_id [Integer] ID of the dashboard list to delete items from. # @param body [DashboardListDeleteItemsRequest] Dashboards to delete from the dashboard list. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [DashboardListDeleteItemsResponse] def delete_dashboard_list_items(dashboard_list_id, body, opts = {}) data, _status_code, _headers = delete_dashboard_list_items_with_http_info(dashboard_list_id, body, opts) @@ -119,7 +119,7 @@ def delete_dashboard_list_items(dashboard_list_id, body, opts = {}) # Delete dashboards from an existing dashboard list. # @param dashboard_list_id [Integer] ID of the dashboard list to delete items from. # @param body [DashboardListDeleteItemsRequest] Dashboards to delete from the dashboard list. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(DashboardListDeleteItemsResponse, Integer, Hash)>] DashboardListDeleteItemsResponse data, response status code and response headers def delete_dashboard_list_items_with_http_info(dashboard_list_id, body, opts = {}) @@ -188,7 +188,7 @@ def delete_dashboard_list_items_with_http_info(dashboard_list_id, body, opts = { # Get items of a Dashboard List # Fetch the dashboard list’s dashboard definitions. # @param dashboard_list_id [Integer] ID of the dashboard list to get items from. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [DashboardListItems] def get_dashboard_list_items(dashboard_list_id, opts = {}) data, _status_code, _headers = get_dashboard_list_items_with_http_info(dashboard_list_id, opts) @@ -198,7 +198,7 @@ def get_dashboard_list_items(dashboard_list_id, opts = {}) # Get items of a Dashboard List # Fetch the dashboard list’s dashboard definitions. # @param dashboard_list_id [Integer] ID of the dashboard list to get items from. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(DashboardListItems, Integer, Hash)>] DashboardListItems data, response status code and response headers def get_dashboard_list_items_with_http_info(dashboard_list_id, opts = {}) @@ -262,7 +262,7 @@ def get_dashboard_list_items_with_http_info(dashboard_list_id, opts = {}) # Update dashboards of an existing dashboard list. # @param dashboard_list_id [Integer] ID of the dashboard list to update items from. # @param body [DashboardListUpdateItemsRequest] New dashboards of the dashboard list. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [DashboardListUpdateItemsResponse] def update_dashboard_list_items(dashboard_list_id, body, opts = {}) data, _status_code, _headers = update_dashboard_list_items_with_http_info(dashboard_list_id, body, opts) @@ -273,7 +273,7 @@ def update_dashboard_list_items(dashboard_list_id, body, opts = {}) # Update dashboards of an existing dashboard list. # @param dashboard_list_id [Integer] ID of the dashboard list to update items from. # @param body [DashboardListUpdateItemsRequest] New dashboards of the dashboard list. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(DashboardListUpdateItemsResponse, Integer, Hash)>] DashboardListUpdateItemsResponse data, response status code and response headers def update_dashboard_list_items_with_http_info(dashboard_list_id, body, opts = {}) diff --git a/lib/datadog_api_client/v2/api/incident_services_api.rb b/lib/datadog_api_client/v2/api/incident_services_api.rb index 13c5a18c222..9efa04d2b11 100644 --- a/lib/datadog_api_client/v2/api/incident_services_api.rb +++ b/lib/datadog_api_client/v2/api/incident_services_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Create a new incident service # Creates a new incident service. # @param body [IncidentServiceCreateRequest] Incident Service Payload. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [IncidentServiceResponse] def create_incident_service(body, opts = {}) data, _status_code, _headers = create_incident_service_with_http_info(body, opts) @@ -36,7 +36,7 @@ def create_incident_service(body, opts = {}) # Create a new incident service # Creates a new incident service. # @param body [IncidentServiceCreateRequest] Incident Service Payload. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(IncidentServiceResponse, Integer, Hash)>] IncidentServiceResponse data, response status code and response headers def create_incident_service_with_http_info(body, opts = {}) @@ -101,7 +101,7 @@ def create_incident_service_with_http_info(body, opts = {}) # Delete an existing incident service # Deletes an existing incident service. # @param service_id [String] The ID of the incident service. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_incident_service(service_id, opts = {}) delete_incident_service_with_http_info(service_id, opts) @@ -111,7 +111,7 @@ def delete_incident_service(service_id, opts = {}) # Delete an existing incident service # Deletes an existing incident service. # @param service_id [String] The ID of the incident service. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_incident_service_with_http_info(service_id, opts = {}) @@ -175,7 +175,7 @@ def delete_incident_service_with_http_info(service_id, opts = {}) # Get details of an incident service. If the `include[users]` query parameter is provided, # the included attribute will contain the users related to these incident services. # @param service_id [String] The ID of the incident service. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [IncidentRelatedObject] :include Specifies which types of related objects should be included in the response. # @return [IncidentServiceResponse] def get_incident_service(service_id, opts = {}) @@ -187,7 +187,7 @@ def get_incident_service(service_id, opts = {}) # Get details of an incident service. If the `include[users]` query parameter is provided, # the included attribute will contain the users related to these incident services. # @param service_id [String] The ID of the incident service. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [IncidentRelatedObject] :include Specifies which types of related objects should be included in the response. # @return [Array<(IncidentServiceResponse, Integer, Hash)>] IncidentServiceResponse data, response status code and response headers def get_incident_service_with_http_info(service_id, opts = {}) @@ -255,7 +255,7 @@ def get_incident_service_with_http_info(service_id, opts = {}) # Get a list of all incident services # Get all incident services uploaded for the requesting user's organization. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident services. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [IncidentRelatedObject] :include Specifies which types of related objects should be included in the response. # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_offset Specific offset to use as the beginning of the returned page. @@ -268,7 +268,7 @@ def list_incident_services(opts = {}) # Get a list of all incident services # Get all incident services uploaded for the requesting user's organization. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident services. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [IncidentRelatedObject] :include Specifies which types of related objects should be included in the response. # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_offset Specific offset to use as the beginning of the returned page. @@ -340,7 +340,7 @@ def list_incident_services_with_http_info(opts = {}) # Updates an existing incident service. Only provide the attributes which should be updated as this request is a partial update. # @param service_id [String] The ID of the incident service. # @param body [IncidentServiceUpdateRequest] Incident Service Payload. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [IncidentServiceResponse] def update_incident_service(service_id, body, opts = {}) data, _status_code, _headers = update_incident_service_with_http_info(service_id, body, opts) @@ -351,7 +351,7 @@ def update_incident_service(service_id, body, opts = {}) # Updates an existing incident service. Only provide the attributes which should be updated as this request is a partial update. # @param service_id [String] The ID of the incident service. # @param body [IncidentServiceUpdateRequest] Incident Service Payload. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(IncidentServiceResponse, Integer, Hash)>] IncidentServiceResponse data, response status code and response headers def update_incident_service_with_http_info(service_id, body, opts = {}) diff --git a/lib/datadog_api_client/v2/api/incident_teams_api.rb b/lib/datadog_api_client/v2/api/incident_teams_api.rb index d041392c2ec..b3aa5937e80 100644 --- a/lib/datadog_api_client/v2/api/incident_teams_api.rb +++ b/lib/datadog_api_client/v2/api/incident_teams_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Create a new incident team # Creates a new incident team. # @param body [IncidentTeamCreateRequest] Incident Team Payload. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [IncidentTeamResponse] def create_incident_team(body, opts = {}) data, _status_code, _headers = create_incident_team_with_http_info(body, opts) @@ -36,7 +36,7 @@ def create_incident_team(body, opts = {}) # Create a new incident team # Creates a new incident team. # @param body [IncidentTeamCreateRequest] Incident Team Payload. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(IncidentTeamResponse, Integer, Hash)>] IncidentTeamResponse data, response status code and response headers def create_incident_team_with_http_info(body, opts = {}) @@ -101,7 +101,7 @@ def create_incident_team_with_http_info(body, opts = {}) # Delete an existing incident team # Deletes an existing incident team. # @param team_id [String] The ID of the incident team. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_incident_team(team_id, opts = {}) delete_incident_team_with_http_info(team_id, opts) @@ -111,7 +111,7 @@ def delete_incident_team(team_id, opts = {}) # Delete an existing incident team # Deletes an existing incident team. # @param team_id [String] The ID of the incident team. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_incident_team_with_http_info(team_id, opts = {}) @@ -175,7 +175,7 @@ def delete_incident_team_with_http_info(team_id, opts = {}) # Get details of an incident team. If the `include[users]` query parameter is provided, # the included attribute will contain the users related to these incident teams. # @param team_id [String] The ID of the incident team. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [IncidentRelatedObject] :include Specifies which types of related objects should be included in the response. # @return [IncidentTeamResponse] def get_incident_team(team_id, opts = {}) @@ -187,7 +187,7 @@ def get_incident_team(team_id, opts = {}) # Get details of an incident team. If the `include[users]` query parameter is provided, # the included attribute will contain the users related to these incident teams. # @param team_id [String] The ID of the incident team. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [IncidentRelatedObject] :include Specifies which types of related objects should be included in the response. # @return [Array<(IncidentTeamResponse, Integer, Hash)>] IncidentTeamResponse data, response status code and response headers def get_incident_team_with_http_info(team_id, opts = {}) @@ -255,7 +255,7 @@ def get_incident_team_with_http_info(team_id, opts = {}) # Get a list of all incident teams # Get all incident teams for the requesting user's organization. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident teams. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [IncidentRelatedObject] :include Specifies which types of related objects should be included in the response. # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_offset Specific offset to use as the beginning of the returned page. @@ -268,7 +268,7 @@ def list_incident_teams(opts = {}) # Get a list of all incident teams # Get all incident teams for the requesting user's organization. If the `include[users]` query parameter is provided, the included attribute will contain the users related to these incident teams. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [IncidentRelatedObject] :include Specifies which types of related objects should be included in the response. # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_offset Specific offset to use as the beginning of the returned page. @@ -340,7 +340,7 @@ def list_incident_teams_with_http_info(opts = {}) # Updates an existing incident team. Only provide the attributes which should be updated as this request is a partial update. # @param team_id [String] The ID of the incident team. # @param body [IncidentTeamUpdateRequest] Incident Team Payload. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [IncidentTeamResponse] def update_incident_team(team_id, body, opts = {}) data, _status_code, _headers = update_incident_team_with_http_info(team_id, body, opts) @@ -351,7 +351,7 @@ def update_incident_team(team_id, body, opts = {}) # Updates an existing incident team. Only provide the attributes which should be updated as this request is a partial update. # @param team_id [String] The ID of the incident team. # @param body [IncidentTeamUpdateRequest] Incident Team Payload. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(IncidentTeamResponse, Integer, Hash)>] IncidentTeamResponse data, response status code and response headers def update_incident_team_with_http_info(team_id, body, opts = {}) diff --git a/lib/datadog_api_client/v2/api/incidents_api.rb b/lib/datadog_api_client/v2/api/incidents_api.rb index 728289c9f6a..a5a73fb245b 100644 --- a/lib/datadog_api_client/v2/api/incidents_api.rb +++ b/lib/datadog_api_client/v2/api/incidents_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Create an incident # Create an incident. # @param body [IncidentCreateRequest] Incident payload. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [IncidentResponse] def create_incident(body, opts = {}) data, _status_code, _headers = create_incident_with_http_info(body, opts) @@ -36,7 +36,7 @@ def create_incident(body, opts = {}) # Create an incident # Create an incident. # @param body [IncidentCreateRequest] Incident payload. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(IncidentResponse, Integer, Hash)>] IncidentResponse data, response status code and response headers def create_incident_with_http_info(body, opts = {}) @@ -101,7 +101,7 @@ def create_incident_with_http_info(body, opts = {}) # Delete an existing incident # Deletes an existing incident from the users organization. # @param incident_id [String] The UUID of the incident. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_incident(incident_id, opts = {}) delete_incident_with_http_info(incident_id, opts) @@ -111,7 +111,7 @@ def delete_incident(incident_id, opts = {}) # Delete an existing incident # Deletes an existing incident from the users organization. # @param incident_id [String] The UUID of the incident. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_incident_with_http_info(incident_id, opts = {}) @@ -174,7 +174,7 @@ def delete_incident_with_http_info(incident_id, opts = {}) # Get the details of an incident # Get the details of an incident by `incident_id`. # @param incident_id [String] The UUID of the incident. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Array] :include Specifies which types of related objects should be included in the response. # @return [IncidentResponse] def get_incident(incident_id, opts = {}) @@ -185,7 +185,7 @@ def get_incident(incident_id, opts = {}) # Get the details of an incident # Get the details of an incident by `incident_id`. # @param incident_id [String] The UUID of the incident. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Array] :include Specifies which types of related objects should be included in the response. # @return [Array<(IncidentResponse, Integer, Hash)>] IncidentResponse data, response status code and response headers def get_incident_with_http_info(incident_id, opts = {}) @@ -249,7 +249,7 @@ def get_incident_with_http_info(incident_id, opts = {}) # Get a list of incidents # Get all incidents for the user's organization. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Array] :include Specifies which types of related objects should be included in the response. # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_offset Specific offset to use as the beginning of the returned page. @@ -261,7 +261,7 @@ def list_incidents(opts = {}) # Get a list of incidents # Get all incidents for the user's organization. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Array] :include Specifies which types of related objects should be included in the response. # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_offset Specific offset to use as the beginning of the returned page. @@ -327,7 +327,7 @@ def list_incidents_with_http_info(opts = {}) # Updates an incident. Provide only the attributes that should be updated as this request is a partial update. # @param incident_id [String] The UUID of the incident. # @param body [IncidentUpdateRequest] Incident Payload. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [IncidentResponse] def update_incident(incident_id, body, opts = {}) data, _status_code, _headers = update_incident_with_http_info(incident_id, body, opts) @@ -338,7 +338,7 @@ def update_incident(incident_id, body, opts = {}) # Updates an incident. Provide only the attributes that should be updated as this request is a partial update. # @param incident_id [String] The UUID of the incident. # @param body [IncidentUpdateRequest] Incident Payload. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(IncidentResponse, Integer, Hash)>] IncidentResponse data, response status code and response headers def update_incident_with_http_info(incident_id, body, opts = {}) diff --git a/lib/datadog_api_client/v2/api/key_management_api.rb b/lib/datadog_api_client/v2/api/key_management_api.rb index 7d8b4acff1a..2c56f0f2bed 100644 --- a/lib/datadog_api_client/v2/api/key_management_api.rb +++ b/lib/datadog_api_client/v2/api/key_management_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Create an API key # Create an API key. # @param body [APIKeyCreateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [APIKeyResponse] def create_api_key(body, opts = {}) data, _status_code, _headers = create_api_key_with_http_info(body, opts) @@ -36,7 +36,7 @@ def create_api_key(body, opts = {}) # Create an API key # Create an API key. # @param body [APIKeyCreateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(APIKeyResponse, Integer, Hash)>] APIKeyResponse data, response status code and response headers def create_api_key_with_http_info(body, opts = {}) @@ -101,7 +101,7 @@ def create_api_key_with_http_info(body, opts = {}) # Create an application key for current user # Create an application key for current user # @param body [ApplicationKeyCreateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [ApplicationKeyResponse] def create_current_user_application_key(body, opts = {}) data, _status_code, _headers = create_current_user_application_key_with_http_info(body, opts) @@ -111,7 +111,7 @@ def create_current_user_application_key(body, opts = {}) # Create an application key for current user # Create an application key for current user # @param body [ApplicationKeyCreateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(ApplicationKeyResponse, Integer, Hash)>] ApplicationKeyResponse data, response status code and response headers def create_current_user_application_key_with_http_info(body, opts = {}) @@ -176,7 +176,7 @@ def create_current_user_application_key_with_http_info(body, opts = {}) # Delete an API key # Delete an API key. # @param api_key_id [String] The ID of the API key. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_api_key(api_key_id, opts = {}) delete_api_key_with_http_info(api_key_id, opts) @@ -186,7 +186,7 @@ def delete_api_key(api_key_id, opts = {}) # Delete an API key # Delete an API key. # @param api_key_id [String] The ID of the API key. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_api_key_with_http_info(api_key_id, opts = {}) @@ -249,7 +249,7 @@ def delete_api_key_with_http_info(api_key_id, opts = {}) # Delete an application key # Delete an application key # @param app_key_id [String] The ID of the application key. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_application_key(app_key_id, opts = {}) delete_application_key_with_http_info(app_key_id, opts) @@ -259,7 +259,7 @@ def delete_application_key(app_key_id, opts = {}) # Delete an application key # Delete an application key # @param app_key_id [String] The ID of the application key. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_application_key_with_http_info(app_key_id, opts = {}) @@ -322,7 +322,7 @@ def delete_application_key_with_http_info(app_key_id, opts = {}) # Delete an application key owned by current user # Delete an application key owned by current user # @param app_key_id [String] The ID of the application key. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_current_user_application_key(app_key_id, opts = {}) delete_current_user_application_key_with_http_info(app_key_id, opts) @@ -332,7 +332,7 @@ def delete_current_user_application_key(app_key_id, opts = {}) # Delete an application key owned by current user # Delete an application key owned by current user # @param app_key_id [String] The ID of the application key. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_current_user_application_key_with_http_info(app_key_id, opts = {}) @@ -395,7 +395,7 @@ def delete_current_user_application_key_with_http_info(app_key_id, opts = {}) # Get API key # Get an API key. # @param api_key_id [String] The ID of the API key. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :include Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`. # @return [APIKeyResponse] def get_api_key(api_key_id, opts = {}) @@ -406,7 +406,7 @@ def get_api_key(api_key_id, opts = {}) # Get API key # Get an API key. # @param api_key_id [String] The ID of the API key. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :include Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`. # @return [Array<(APIKeyResponse, Integer, Hash)>] APIKeyResponse data, response status code and response headers def get_api_key_with_http_info(api_key_id, opts = {}) @@ -471,7 +471,7 @@ def get_api_key_with_http_info(api_key_id, opts = {}) # Get an application key # Get an application key for your org. # @param app_key_id [String] The ID of the application key. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :include Resource path for related resources to include in the response. Only `owned_by` is supported. # @return [ApplicationKeyResponse] def get_application_key(app_key_id, opts = {}) @@ -482,7 +482,7 @@ def get_application_key(app_key_id, opts = {}) # Get an application key # Get an application key for your org. # @param app_key_id [String] The ID of the application key. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :include Resource path for related resources to include in the response. Only `owned_by` is supported. # @return [Array<(ApplicationKeyResponse, Integer, Hash)>] ApplicationKeyResponse data, response status code and response headers def get_application_key_with_http_info(app_key_id, opts = {}) @@ -547,7 +547,7 @@ def get_application_key_with_http_info(app_key_id, opts = {}) # Get one application key owned by current user # Get an application key owned by current user # @param app_key_id [String] The ID of the application key. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [ApplicationKeyResponse] def get_current_user_application_key(app_key_id, opts = {}) data, _status_code, _headers = get_current_user_application_key_with_http_info(app_key_id, opts) @@ -557,7 +557,7 @@ def get_current_user_application_key(app_key_id, opts = {}) # Get one application key owned by current user # Get an application key owned by current user # @param app_key_id [String] The ID of the application key. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(ApplicationKeyResponse, Integer, Hash)>] ApplicationKeyResponse data, response status code and response headers def get_current_user_application_key_with_http_info(app_key_id, opts = {}) @@ -619,7 +619,7 @@ def get_current_user_application_key_with_http_info(app_key_id, opts = {}) # Get all API keys # List all API keys available for your account. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. # @option opts [APIKeysSort] :sort API key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. @@ -637,7 +637,7 @@ def list_api_keys(opts = {}) # Get all API keys # List all API keys available for your account. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. # @option opts [APIKeysSort] :sort API key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. @@ -717,7 +717,7 @@ def list_api_keys_with_http_info(opts = {}) # Get all application keys # List all application keys available for your org - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. @@ -732,7 +732,7 @@ def list_application_keys(opts = {}) # Get all application keys # List all application keys available for your org - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. @@ -806,7 +806,7 @@ def list_application_keys_with_http_info(opts = {}) # Get all application keys owned by current user # List all application keys available for current user - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. @@ -821,7 +821,7 @@ def list_current_user_application_keys(opts = {}) # Get all application keys owned by current user # List all application keys available for current user - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. @@ -897,7 +897,7 @@ def list_current_user_application_keys_with_http_info(opts = {}) # Update an API key. # @param api_key_id [String] The ID of the API key. # @param body [APIKeyUpdateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [APIKeyResponse] def update_api_key(api_key_id, body, opts = {}) data, _status_code, _headers = update_api_key_with_http_info(api_key_id, body, opts) @@ -908,7 +908,7 @@ def update_api_key(api_key_id, body, opts = {}) # Update an API key. # @param api_key_id [String] The ID of the API key. # @param body [APIKeyUpdateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(APIKeyResponse, Integer, Hash)>] APIKeyResponse data, response status code and response headers def update_api_key_with_http_info(api_key_id, body, opts = {}) @@ -978,7 +978,7 @@ def update_api_key_with_http_info(api_key_id, body, opts = {}) # Edit an application key # @param app_key_id [String] The ID of the application key. # @param body [ApplicationKeyUpdateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [ApplicationKeyResponse] def update_application_key(app_key_id, body, opts = {}) data, _status_code, _headers = update_application_key_with_http_info(app_key_id, body, opts) @@ -989,7 +989,7 @@ def update_application_key(app_key_id, body, opts = {}) # Edit an application key # @param app_key_id [String] The ID of the application key. # @param body [ApplicationKeyUpdateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(ApplicationKeyResponse, Integer, Hash)>] ApplicationKeyResponse data, response status code and response headers def update_application_key_with_http_info(app_key_id, body, opts = {}) @@ -1059,7 +1059,7 @@ def update_application_key_with_http_info(app_key_id, body, opts = {}) # Edit an application key owned by current user # @param app_key_id [String] The ID of the application key. # @param body [ApplicationKeyUpdateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [ApplicationKeyResponse] def update_current_user_application_key(app_key_id, body, opts = {}) data, _status_code, _headers = update_current_user_application_key_with_http_info(app_key_id, body, opts) @@ -1070,7 +1070,7 @@ def update_current_user_application_key(app_key_id, body, opts = {}) # Edit an application key owned by current user # @param app_key_id [String] The ID of the application key. # @param body [ApplicationKeyUpdateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(ApplicationKeyResponse, Integer, Hash)>] ApplicationKeyResponse data, response status code and response headers def update_current_user_application_key_with_http_info(app_key_id, body, opts = {}) diff --git a/lib/datadog_api_client/v2/api/logs_api.rb b/lib/datadog_api_client/v2/api/logs_api.rb index df28293cbf9..890b1fea383 100644 --- a/lib/datadog_api_client/v2/api/logs_api.rb +++ b/lib/datadog_api_client/v2/api/logs_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Aggregate events # The API endpoint to aggregate events into buckets and compute metrics and timeseries. # @param body [LogsAggregateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsAggregateResponse] def aggregate_logs(body, opts = {}) data, _status_code, _headers = aggregate_logs_with_http_info(body, opts) @@ -36,7 +36,7 @@ def aggregate_logs(body, opts = {}) # Aggregate events # The API endpoint to aggregate events into buckets and compute metrics and timeseries. # @param body [LogsAggregateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsAggregateResponse, Integer, Hash)>] LogsAggregateResponse data, response status code and response headers def aggregate_logs_with_http_info(body, opts = {}) @@ -110,7 +110,7 @@ def aggregate_logs_with_http_info(body, opts = {}) # # [1]: /logs/guide/collect-multiple-logs-with-pagination # [2]: https://docs.datadoghq.com/logs/archives - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [LogsListRequest] :body # @return [LogsListResponse] def list_logs(opts = {}) @@ -130,7 +130,7 @@ def list_logs(opts = {}) # # [1]: /logs/guide/collect-multiple-logs-with-pagination # [2]: https://docs.datadoghq.com/logs/archives - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [LogsListRequest] :body # @return [Array<(LogsListResponse, Integer, Hash)>] LogsListResponse data, response status code and response headers def list_logs_with_http_info(opts = {}) @@ -201,7 +201,7 @@ def list_logs_with_http_info(opts = {}) # # [1]: /logs/guide/collect-multiple-logs-with-pagination # [2]: https://docs.datadoghq.com/logs/archives - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :filter_query Search query following logs syntax. # @option opts [String] :filter_index For customers with multiple indexes, the indexes to search Defaults to '*' which means all indexes # @option opts [Time] :filter_from Minimum timestamp for requested logs. @@ -227,7 +227,7 @@ def list_logs_get(opts = {}) # # [1]: /logs/guide/collect-multiple-logs-with-pagination # [2]: https://docs.datadoghq.com/logs/archives - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :filter_query Search query following logs syntax. # @option opts [String] :filter_index For customers with multiple indexes, the indexes to search Defaults to '*' which means all indexes # @option opts [Time] :filter_from Minimum timestamp for requested logs. @@ -255,7 +255,7 @@ def list_logs_get_with_http_info(opts = {}) fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" end if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] > 1000 - fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling LogsAPI.ListLogsGet, must be smaller than or equal to 1000.' + fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling LogsAPI.list_logs_get, must be smaller than or equal to 1000.' end # resource path local_var_path = '/api/v2/logs/events' @@ -329,7 +329,7 @@ def list_logs_get_with_http_info(opts = {}) # - 500: Internal Server Error, the server encountered an unexpected condition that prevented it from fulfilling the request, request should be retried after some time # - 503: Service Unavailable, the server is not ready to handle the request probably because it is overloaded, request should be retried after some time # @param body [Array] Log to send (JSON format). - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [ContentEncoding] :content_encoding HTTP header used to compress the media-type. # @option opts [String] :ddtags Log tags can be passed as query parameters with `text/plain` content type. # @return [Object] @@ -363,7 +363,7 @@ def submit_log(body, opts = {}) # - 500: Internal Server Error, the server encountered an unexpected condition that prevented it from fulfilling the request, request should be retried after some time # - 503: Service Unavailable, the server is not ready to handle the request probably because it is overloaded, request should be retried after some time # @param body [Array] Log to send (JSON format). - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [ContentEncoding] :content_encoding HTTP header used to compress the media-type. # @option opts [String] :ddtags Log tags can be passed as query parameters with `text/plain` content type. # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers diff --git a/lib/datadog_api_client/v2/api/logs_archives_api.rb b/lib/datadog_api_client/v2/api/logs_archives_api.rb index de904df5e60..5c7ed15d008 100644 --- a/lib/datadog_api_client/v2/api/logs_archives_api.rb +++ b/lib/datadog_api_client/v2/api/logs_archives_api.rb @@ -27,7 +27,7 @@ def initialize(api_client = APIClient.default) # Adds a read role to an archive. ([Roles API](https://docs.datadoghq.com/api/v2/roles/)) # @param archive_id [String] The ID of the archive. # @param body [RelationshipToRole] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def add_read_role_to_archive(archive_id, body, opts = {}) add_read_role_to_archive_with_http_info(archive_id, body, opts) @@ -38,7 +38,7 @@ def add_read_role_to_archive(archive_id, body, opts = {}) # Adds a read role to an archive. ([Roles API](https://docs.datadoghq.com/api/v2/roles/)) # @param archive_id [String] The ID of the archive. # @param body [RelationshipToRole] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def add_read_role_to_archive_with_http_info(archive_id, body, opts = {}) @@ -107,7 +107,7 @@ def add_read_role_to_archive_with_http_info(archive_id, body, opts = {}) # Create an archive # Create an archive in your organization. # @param body [LogsArchiveCreateRequest] The definition of the new archive. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsArchive] def create_logs_archive(body, opts = {}) data, _status_code, _headers = create_logs_archive_with_http_info(body, opts) @@ -117,7 +117,7 @@ def create_logs_archive(body, opts = {}) # Create an archive # Create an archive in your organization. # @param body [LogsArchiveCreateRequest] The definition of the new archive. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsArchive, Integer, Hash)>] LogsArchive data, response status code and response headers def create_logs_archive_with_http_info(body, opts = {}) @@ -182,7 +182,7 @@ def create_logs_archive_with_http_info(body, opts = {}) # Delete an archive # Delete a given archive from your organization. # @param archive_id [String] The ID of the archive. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_logs_archive(archive_id, opts = {}) delete_logs_archive_with_http_info(archive_id, opts) @@ -192,7 +192,7 @@ def delete_logs_archive(archive_id, opts = {}) # Delete an archive # Delete a given archive from your organization. # @param archive_id [String] The ID of the archive. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_logs_archive_with_http_info(archive_id, opts = {}) @@ -255,7 +255,7 @@ def delete_logs_archive_with_http_info(archive_id, opts = {}) # Get an archive # Get a specific archive from your organization. # @param archive_id [String] The ID of the archive. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsArchive] def get_logs_archive(archive_id, opts = {}) data, _status_code, _headers = get_logs_archive_with_http_info(archive_id, opts) @@ -265,7 +265,7 @@ def get_logs_archive(archive_id, opts = {}) # Get an archive # Get a specific archive from your organization. # @param archive_id [String] The ID of the archive. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsArchive, Integer, Hash)>] LogsArchive data, response status code and response headers def get_logs_archive_with_http_info(archive_id, opts = {}) @@ -328,7 +328,7 @@ def get_logs_archive_with_http_info(archive_id, opts = {}) # Get archive order # Get the current order of your archives. # This endpoint takes no JSON arguments. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsArchiveOrder] def get_logs_archive_order(opts = {}) data, _status_code, _headers = get_logs_archive_order_with_http_info(opts) @@ -338,7 +338,7 @@ def get_logs_archive_order(opts = {}) # Get archive order # Get the current order of your archives. # This endpoint takes no JSON arguments. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsArchiveOrder, Integer, Hash)>] LogsArchiveOrder data, response status code and response headers def get_logs_archive_order_with_http_info(opts = {}) @@ -397,7 +397,7 @@ def get_logs_archive_order_with_http_info(opts = {}) # List read roles for an archive # Returns all read roles a given archive is restricted to. # @param archive_id [String] The ID of the archive. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [RolesResponse] def list_archive_read_roles(archive_id, opts = {}) data, _status_code, _headers = list_archive_read_roles_with_http_info(archive_id, opts) @@ -407,7 +407,7 @@ def list_archive_read_roles(archive_id, opts = {}) # List read roles for an archive # Returns all read roles a given archive is restricted to. # @param archive_id [String] The ID of the archive. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(RolesResponse, Integer, Hash)>] RolesResponse data, response status code and response headers def list_archive_read_roles_with_http_info(archive_id, opts = {}) @@ -469,7 +469,7 @@ def list_archive_read_roles_with_http_info(archive_id, opts = {}) # Get all archives # Get the list of configured logs archives with their definitions. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsArchives] def list_logs_archives(opts = {}) data, _status_code, _headers = list_logs_archives_with_http_info(opts) @@ -478,7 +478,7 @@ def list_logs_archives(opts = {}) # Get all archives # Get the list of configured logs archives with their definitions. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsArchives, Integer, Hash)>] LogsArchives data, response status code and response headers def list_logs_archives_with_http_info(opts = {}) @@ -538,7 +538,7 @@ def list_logs_archives_with_http_info(opts = {}) # Removes a role from an archive. ([Roles API](https://docs.datadoghq.com/api/v2/roles/)) # @param archive_id [String] The ID of the archive. # @param body [RelationshipToRole] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def remove_role_from_archive(archive_id, body, opts = {}) remove_role_from_archive_with_http_info(archive_id, body, opts) @@ -549,7 +549,7 @@ def remove_role_from_archive(archive_id, body, opts = {}) # Removes a role from an archive. ([Roles API](https://docs.datadoghq.com/api/v2/roles/)) # @param archive_id [String] The ID of the archive. # @param body [RelationshipToRole] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def remove_role_from_archive_with_http_info(archive_id, body, opts = {}) @@ -622,7 +622,7 @@ def remove_role_from_archive_with_http_info(archive_id, body, opts = {}) # your current configuration with the new one sent to your Datadog organization. # @param archive_id [String] The ID of the archive. # @param body [LogsArchiveCreateRequest] New definition of the archive. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsArchive] def update_logs_archive(archive_id, body, opts = {}) data, _status_code, _headers = update_logs_archive_with_http_info(archive_id, body, opts) @@ -636,7 +636,7 @@ def update_logs_archive(archive_id, body, opts = {}) # your current configuration with the new one sent to your Datadog organization. # @param archive_id [String] The ID of the archive. # @param body [LogsArchiveCreateRequest] New definition of the archive. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsArchive, Integer, Hash)>] LogsArchive data, response status code and response headers def update_logs_archive_with_http_info(archive_id, body, opts = {}) @@ -709,7 +709,7 @@ def update_logs_archive_with_http_info(archive_id, body, opts = {}) # **Note**: Using the `PUT` method updates your archive's order by replacing the current order # with the new one. # @param body [LogsArchiveOrder] An object containing the new ordered list of archive IDs. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsArchiveOrder] def update_logs_archive_order(body, opts = {}) data, _status_code, _headers = update_logs_archive_order_with_http_info(body, opts) @@ -723,7 +723,7 @@ def update_logs_archive_order(body, opts = {}) # **Note**: Using the `PUT` method updates your archive's order by replacing the current order # with the new one. # @param body [LogsArchiveOrder] An object containing the new ordered list of archive IDs. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsArchiveOrder, Integer, Hash)>] LogsArchiveOrder data, response status code and response headers def update_logs_archive_order_with_http_info(body, opts = {}) diff --git a/lib/datadog_api_client/v2/api/logs_metrics_api.rb b/lib/datadog_api_client/v2/api/logs_metrics_api.rb index 1f0ce39d0e9..568f56e4ae2 100644 --- a/lib/datadog_api_client/v2/api/logs_metrics_api.rb +++ b/lib/datadog_api_client/v2/api/logs_metrics_api.rb @@ -27,7 +27,7 @@ def initialize(api_client = APIClient.default) # Create a metric based on your ingested logs in your organization. # Returns the log-based metric object from the request body when the request is successful. # @param body [LogsMetricCreateRequest] The definition of the new log-based metric. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsMetricResponse] def create_logs_metric(body, opts = {}) data, _status_code, _headers = create_logs_metric_with_http_info(body, opts) @@ -38,7 +38,7 @@ def create_logs_metric(body, opts = {}) # Create a metric based on your ingested logs in your organization. # Returns the log-based metric object from the request body when the request is successful. # @param body [LogsMetricCreateRequest] The definition of the new log-based metric. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsMetricResponse, Integer, Hash)>] LogsMetricResponse data, response status code and response headers def create_logs_metric_with_http_info(body, opts = {}) @@ -103,7 +103,7 @@ def create_logs_metric_with_http_info(body, opts = {}) # Delete a log-based metric # Delete a specific log-based metric from your organization. # @param metric_id [String] The name of the log-based metric. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_logs_metric(metric_id, opts = {}) delete_logs_metric_with_http_info(metric_id, opts) @@ -113,7 +113,7 @@ def delete_logs_metric(metric_id, opts = {}) # Delete a log-based metric # Delete a specific log-based metric from your organization. # @param metric_id [String] The name of the log-based metric. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_logs_metric_with_http_info(metric_id, opts = {}) @@ -176,7 +176,7 @@ def delete_logs_metric_with_http_info(metric_id, opts = {}) # Get a log-based metric # Get a specific log-based metric from your organization. # @param metric_id [String] The name of the log-based metric. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsMetricResponse] def get_logs_metric(metric_id, opts = {}) data, _status_code, _headers = get_logs_metric_with_http_info(metric_id, opts) @@ -186,7 +186,7 @@ def get_logs_metric(metric_id, opts = {}) # Get a log-based metric # Get a specific log-based metric from your organization. # @param metric_id [String] The name of the log-based metric. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsMetricResponse, Integer, Hash)>] LogsMetricResponse data, response status code and response headers def get_logs_metric_with_http_info(metric_id, opts = {}) @@ -248,7 +248,7 @@ def get_logs_metric_with_http_info(metric_id, opts = {}) # Get all log-based metrics # Get the list of configured log-based metrics with their definitions. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsMetricsResponse] def list_logs_metrics(opts = {}) data, _status_code, _headers = list_logs_metrics_with_http_info(opts) @@ -257,7 +257,7 @@ def list_logs_metrics(opts = {}) # Get all log-based metrics # Get the list of configured log-based metrics with their definitions. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsMetricsResponse, Integer, Hash)>] LogsMetricsResponse data, response status code and response headers def list_logs_metrics_with_http_info(opts = {}) @@ -318,7 +318,7 @@ def list_logs_metrics_with_http_info(opts = {}) # Returns the log-based metric object from the request body when the request is successful. # @param metric_id [String] The name of the log-based metric. # @param body [LogsMetricUpdateRequest] New definition of the log-based metric. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [LogsMetricResponse] def update_logs_metric(metric_id, body, opts = {}) data, _status_code, _headers = update_logs_metric_with_http_info(metric_id, body, opts) @@ -330,7 +330,7 @@ def update_logs_metric(metric_id, body, opts = {}) # Returns the log-based metric object from the request body when the request is successful. # @param metric_id [String] The name of the log-based metric. # @param body [LogsMetricUpdateRequest] New definition of the log-based metric. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(LogsMetricResponse, Integer, Hash)>] LogsMetricResponse data, response status code and response headers def update_logs_metric_with_http_info(metric_id, body, opts = {}) diff --git a/lib/datadog_api_client/v2/api/metrics_api.rb b/lib/datadog_api_client/v2/api/metrics_api.rb index 14bb9c71b00..2c4f5c91a77 100644 --- a/lib/datadog_api_client/v2/api/metrics_api.rb +++ b/lib/datadog_api_client/v2/api/metrics_api.rb @@ -30,7 +30,7 @@ def initialize(api_client = APIClient.default) # Can only be used with application keys of users with the `Manage Tags for Metrics` permission. # @param metric_name [String] The name of the metric. # @param body [MetricTagConfigurationCreateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [MetricTagConfigurationResponse] def create_tag_configuration(metric_name, body, opts = {}) data, _status_code, _headers = create_tag_configuration_with_http_info(metric_name, body, opts) @@ -44,7 +44,7 @@ def create_tag_configuration(metric_name, body, opts = {}) # Can only be used with application keys of users with the `Manage Tags for Metrics` permission. # @param metric_name [String] The name of the metric. # @param body [MetricTagConfigurationCreateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(MetricTagConfigurationResponse, Integer, Hash)>] MetricTagConfigurationResponse data, response status code and response headers def create_tag_configuration_with_http_info(metric_name, body, opts = {}) @@ -114,7 +114,7 @@ def create_tag_configuration_with_http_info(metric_name, body, opts = {}) # Deletes a metric's tag configuration. Can only be used with application # keys from users with the `Manage Tags for Metrics` permission. # @param metric_name [String] The name of the metric. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_tag_configuration(metric_name, opts = {}) delete_tag_configuration_with_http_info(metric_name, opts) @@ -125,7 +125,7 @@ def delete_tag_configuration(metric_name, opts = {}) # Deletes a metric's tag configuration. Can only be used with application # keys from users with the `Manage Tags for Metrics` permission. # @param metric_name [String] The name of the metric. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_tag_configuration_with_http_info(metric_name, opts = {}) @@ -188,7 +188,7 @@ def delete_tag_configuration_with_http_info(metric_name, opts = {}) # List tag configuration by name # Returns the tag configuration for the given metric name. # @param metric_name [String] The name of the metric. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [MetricTagConfigurationResponse] def list_tag_configuration_by_name(metric_name, opts = {}) data, _status_code, _headers = list_tag_configuration_by_name_with_http_info(metric_name, opts) @@ -198,7 +198,7 @@ def list_tag_configuration_by_name(metric_name, opts = {}) # List tag configuration by name # Returns the tag configuration for the given metric name. # @param metric_name [String] The name of the metric. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(MetricTagConfigurationResponse, Integer, Hash)>] MetricTagConfigurationResponse data, response status code and response headers def list_tag_configuration_by_name_with_http_info(metric_name, opts = {}) @@ -261,7 +261,7 @@ def list_tag_configuration_by_name_with_http_info(metric_name, opts = {}) # List tag configurations # Returns all configured count/gauge/rate/distribution metric names # (with additional filters if specified). - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Boolean] :filter_configured Filter metrics that have configured tags. # @option opts [String] :filter_tags_configured Filter tag configurations by configured tags. # @option opts [MetricTagConfigurationMetricTypes] :filter_metric_type Filter tag configurations by metric type. @@ -277,7 +277,7 @@ def list_tag_configurations(opts = {}) # List tag configurations # Returns all configured count/gauge/rate/distribution metric names # (with additional filters if specified). - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Boolean] :filter_configured Filter metrics that have configured tags. # @option opts [String] :filter_tags_configured Filter tag configurations by configured tags. # @option opts [MetricTagConfigurationMetricTypes] :filter_metric_type Filter tag configurations by metric type. @@ -352,7 +352,7 @@ def list_tag_configurations_with_http_info(opts = {}) # List tags by metric name # View indexed tag key-value pairs for a given metric name. # @param metric_name [String] The name of the metric. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [MetricAllTagsResponse] def list_tags_by_metric_name(metric_name, opts = {}) data, _status_code, _headers = list_tags_by_metric_name_with_http_info(metric_name, opts) @@ -362,7 +362,7 @@ def list_tags_by_metric_name(metric_name, opts = {}) # List tags by metric name # View indexed tag key-value pairs for a given metric name. # @param metric_name [String] The name of the metric. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(MetricAllTagsResponse, Integer, Hash)>] MetricAllTagsResponse data, response status code and response headers def list_tags_by_metric_name_with_http_info(metric_name, opts = {}) @@ -429,7 +429,7 @@ def list_tags_by_metric_name_with_http_info(metric_name, opts = {}) # For Metrics without Limits™ beta customers, all metrics will return both ingested/indexed volumes. # Custom metrics generated in-app from other products will return `null` for ingested volumes. # @param metric_name [String] The name of the metric. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [MetricVolumesResponse] def list_volumes_by_metric_name(metric_name, opts = {}) data, _status_code, _headers = list_volumes_by_metric_name_with_http_info(metric_name, opts) @@ -443,7 +443,7 @@ def list_volumes_by_metric_name(metric_name, opts = {}) # For Metrics without Limits™ beta customers, all metrics will return both ingested/indexed volumes. # Custom metrics generated in-app from other products will return `null` for ingested volumes. # @param metric_name [String] The name of the metric. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(MetricVolumesResponse, Integer, Hash)>] MetricVolumesResponse data, response status code and response headers def list_volumes_by_metric_name_with_http_info(metric_name, opts = {}) @@ -509,7 +509,7 @@ def list_volumes_by_metric_name_with_http_info(metric_name, opts = {}) # Can only be used with application keys from users with the `Manage Tags for Metrics` permission. # @param metric_name [String] The name of the metric. # @param body [MetricTagConfigurationUpdateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [MetricTagConfigurationResponse] def update_tag_configuration(metric_name, body, opts = {}) data, _status_code, _headers = update_tag_configuration_with_http_info(metric_name, body, opts) @@ -522,7 +522,7 @@ def update_tag_configuration(metric_name, body, opts = {}) # Can only be used with application keys from users with the `Manage Tags for Metrics` permission. # @param metric_name [String] The name of the metric. # @param body [MetricTagConfigurationUpdateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(MetricTagConfigurationResponse, Integer, Hash)>] MetricTagConfigurationResponse data, response status code and response headers def update_tag_configuration_with_http_info(metric_name, body, opts = {}) diff --git a/lib/datadog_api_client/v2/api/processes_api.rb b/lib/datadog_api_client/v2/api/processes_api.rb index aa148ce851b..c02ec1c46d8 100644 --- a/lib/datadog_api_client/v2/api/processes_api.rb +++ b/lib/datadog_api_client/v2/api/processes_api.rb @@ -25,7 +25,7 @@ def initialize(api_client = APIClient.default) # Get all processes # Get all processes for your organization. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :search String to search processes by. # @option opts [String] :tags Comma-separated list of tags to filter processes by. # @option opts [Integer] :from Unix timestamp (number of seconds since epoch) of the start of the query window. If not provided, the start of the query window will be 15 minutes before the `to` timestamp. If neither `from` nor `to` are provided, the query window will be `[now - 15m, now]`. @@ -40,7 +40,7 @@ def list_processes(opts = {}) # Get all processes # Get all processes for your organization. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :search String to search processes by. # @option opts [String] :tags Comma-separated list of tags to filter processes by. # @option opts [Integer] :from Unix timestamp (number of seconds since epoch) of the start of the query window. If not provided, the start of the query window will be 15 minutes before the `to` timestamp. If neither `from` nor `to` are provided, the query window will be `[now - 15m, now]`. @@ -63,10 +63,10 @@ def list_processes_with_http_info(opts = {}) @api_client.config.logger.debug 'Calling API: ProcessesAPI.list_processes ...' end if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] > 10000 - fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling ProcessesAPI.ListProcesses, must be smaller than or equal to 10000.' + fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling ProcessesAPI.list_processes, must be smaller than or equal to 10000.' end if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] < 1 - fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling ProcessesAPI.ListProcesses, must be greater than or equal to 1.' + fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling ProcessesAPI.list_processes, must be greater than or equal to 1.' end # resource path local_var_path = '/api/v2/processes' diff --git a/lib/datadog_api_client/v2/api/roles_api.rb b/lib/datadog_api_client/v2/api/roles_api.rb index 3601e6b03e7..7032e59882c 100644 --- a/lib/datadog_api_client/v2/api/roles_api.rb +++ b/lib/datadog_api_client/v2/api/roles_api.rb @@ -27,7 +27,7 @@ def initialize(api_client = APIClient.default) # Adds a permission to a role. # @param role_id [String] The ID of the role. # @param body [RelationshipToPermission] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [PermissionsResponse] def add_permission_to_role(role_id, body, opts = {}) data, _status_code, _headers = add_permission_to_role_with_http_info(role_id, body, opts) @@ -38,7 +38,7 @@ def add_permission_to_role(role_id, body, opts = {}) # Adds a permission to a role. # @param role_id [String] The ID of the role. # @param body [RelationshipToPermission] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(PermissionsResponse, Integer, Hash)>] PermissionsResponse data, response status code and response headers def add_permission_to_role_with_http_info(role_id, body, opts = {}) @@ -108,7 +108,7 @@ def add_permission_to_role_with_http_info(role_id, body, opts = {}) # Adds a user to a role. # @param role_id [String] The ID of the role. # @param body [RelationshipToUser] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [UsersResponse] def add_user_to_role(role_id, body, opts = {}) data, _status_code, _headers = add_user_to_role_with_http_info(role_id, body, opts) @@ -119,7 +119,7 @@ def add_user_to_role(role_id, body, opts = {}) # Adds a user to a role. # @param role_id [String] The ID of the role. # @param body [RelationshipToUser] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(UsersResponse, Integer, Hash)>] UsersResponse data, response status code and response headers def add_user_to_role_with_http_info(role_id, body, opts = {}) @@ -189,7 +189,7 @@ def add_user_to_role_with_http_info(role_id, body, opts = {}) # Clone an existing role # @param role_id [String] The ID of the role. # @param body [RoleCloneRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [RoleResponse] def clone_role(role_id, body, opts = {}) data, _status_code, _headers = clone_role_with_http_info(role_id, body, opts) @@ -200,7 +200,7 @@ def clone_role(role_id, body, opts = {}) # Clone an existing role # @param role_id [String] The ID of the role. # @param body [RoleCloneRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(RoleResponse, Integer, Hash)>] RoleResponse data, response status code and response headers def clone_role_with_http_info(role_id, body, opts = {}) @@ -269,7 +269,7 @@ def clone_role_with_http_info(role_id, body, opts = {}) # Create role # Create a new role for your organization. # @param body [RoleCreateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [RoleCreateResponse] def create_role(body, opts = {}) data, _status_code, _headers = create_role_with_http_info(body, opts) @@ -279,7 +279,7 @@ def create_role(body, opts = {}) # Create role # Create a new role for your organization. # @param body [RoleCreateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(RoleCreateResponse, Integer, Hash)>] RoleCreateResponse data, response status code and response headers def create_role_with_http_info(body, opts = {}) @@ -344,7 +344,7 @@ def create_role_with_http_info(body, opts = {}) # Delete role # Disables a role. # @param role_id [String] The ID of the role. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_role(role_id, opts = {}) delete_role_with_http_info(role_id, opts) @@ -354,7 +354,7 @@ def delete_role(role_id, opts = {}) # Delete role # Disables a role. # @param role_id [String] The ID of the role. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_role_with_http_info(role_id, opts = {}) @@ -417,7 +417,7 @@ def delete_role_with_http_info(role_id, opts = {}) # Get a role # Get a role in the organization specified by the role’s `role_id`. # @param role_id [String] The ID of the role. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [RoleResponse] def get_role(role_id, opts = {}) data, _status_code, _headers = get_role_with_http_info(role_id, opts) @@ -427,7 +427,7 @@ def get_role(role_id, opts = {}) # Get a role # Get a role in the organization specified by the role’s `role_id`. # @param role_id [String] The ID of the role. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(RoleResponse, Integer, Hash)>] RoleResponse data, response status code and response headers def get_role_with_http_info(role_id, opts = {}) @@ -489,7 +489,7 @@ def get_role_with_http_info(role_id, opts = {}) # List permissions # Returns a list of all permissions, including name, description, and ID. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [PermissionsResponse] def list_permissions(opts = {}) data, _status_code, _headers = list_permissions_with_http_info(opts) @@ -498,7 +498,7 @@ def list_permissions(opts = {}) # List permissions # Returns a list of all permissions, including name, description, and ID. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(PermissionsResponse, Integer, Hash)>] PermissionsResponse data, response status code and response headers def list_permissions_with_http_info(opts = {}) @@ -557,7 +557,7 @@ def list_permissions_with_http_info(opts = {}) # List permissions for a role # Returns a list of all permissions for a single role. # @param role_id [String] The ID of the role. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [PermissionsResponse] def list_role_permissions(role_id, opts = {}) data, _status_code, _headers = list_role_permissions_with_http_info(role_id, opts) @@ -567,7 +567,7 @@ def list_role_permissions(role_id, opts = {}) # List permissions for a role # Returns a list of all permissions for a single role. # @param role_id [String] The ID of the role. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(PermissionsResponse, Integer, Hash)>] PermissionsResponse data, response status code and response headers def list_role_permissions_with_http_info(role_id, opts = {}) @@ -629,7 +629,7 @@ def list_role_permissions_with_http_info(role_id, opts = {}) # List roles # Returns all roles, including their names and IDs. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. # @option opts [RolesSort] :sort Sort roles depending on the given field. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example: `sort=-name`. @@ -642,7 +642,7 @@ def list_roles(opts = {}) # List roles # Returns all roles, including their names and IDs. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. # @option opts [RolesSort] :sort Sort roles depending on the given field. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example: `sort=-name`. @@ -713,7 +713,7 @@ def list_roles_with_http_info(opts = {}) # Get all users of a role # Gets all users of a role. # @param role_id [String] The ID of the role. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. # @option opts [String] :sort User attribute to order results by. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `email`, `status`. @@ -727,7 +727,7 @@ def list_role_users(role_id, opts = {}) # Get all users of a role # Gets all users of a role. # @param role_id [String] The ID of the role. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. # @option opts [String] :sort User attribute to order results by. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `email`, `status`. @@ -799,7 +799,7 @@ def list_role_users_with_http_info(role_id, opts = {}) # Removes a permission from a role. # @param role_id [String] The ID of the role. # @param body [RelationshipToPermission] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [PermissionsResponse] def remove_permission_from_role(role_id, body, opts = {}) data, _status_code, _headers = remove_permission_from_role_with_http_info(role_id, body, opts) @@ -810,7 +810,7 @@ def remove_permission_from_role(role_id, body, opts = {}) # Removes a permission from a role. # @param role_id [String] The ID of the role. # @param body [RelationshipToPermission] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(PermissionsResponse, Integer, Hash)>] PermissionsResponse data, response status code and response headers def remove_permission_from_role_with_http_info(role_id, body, opts = {}) @@ -880,7 +880,7 @@ def remove_permission_from_role_with_http_info(role_id, body, opts = {}) # Removes a user from a role. # @param role_id [String] The ID of the role. # @param body [RelationshipToUser] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [UsersResponse] def remove_user_from_role(role_id, body, opts = {}) data, _status_code, _headers = remove_user_from_role_with_http_info(role_id, body, opts) @@ -891,7 +891,7 @@ def remove_user_from_role(role_id, body, opts = {}) # Removes a user from a role. # @param role_id [String] The ID of the role. # @param body [RelationshipToUser] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(UsersResponse, Integer, Hash)>] UsersResponse data, response status code and response headers def remove_user_from_role_with_http_info(role_id, body, opts = {}) @@ -961,7 +961,7 @@ def remove_user_from_role_with_http_info(role_id, body, opts = {}) # Edit a role. Can only be used with application keys belonging to administrators. # @param role_id [String] The ID of the role. # @param body [RoleUpdateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [RoleUpdateResponse] def update_role(role_id, body, opts = {}) data, _status_code, _headers = update_role_with_http_info(role_id, body, opts) @@ -972,7 +972,7 @@ def update_role(role_id, body, opts = {}) # Edit a role. Can only be used with application keys belonging to administrators. # @param role_id [String] The ID of the role. # @param body [RoleUpdateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(RoleUpdateResponse, Integer, Hash)>] RoleUpdateResponse data, response status code and response headers def update_role_with_http_info(role_id, body, opts = {}) diff --git a/lib/datadog_api_client/v2/api/security_monitoring_api.rb b/lib/datadog_api_client/v2/api/security_monitoring_api.rb index 55f846ac2f1..dde28f41c9f 100644 --- a/lib/datadog_api_client/v2/api/security_monitoring_api.rb +++ b/lib/datadog_api_client/v2/api/security_monitoring_api.rb @@ -29,7 +29,7 @@ def initialize(api_client = APIClient.default) # See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) # for more examples. # @param body [SecurityFilterCreateRequest] The definition of the new security filter. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SecurityFilterResponse] def create_security_filter(body, opts = {}) data, _status_code, _headers = create_security_filter_with_http_info(body, opts) @@ -42,7 +42,7 @@ def create_security_filter(body, opts = {}) # See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) # for more examples. # @param body [SecurityFilterCreateRequest] The definition of the new security filter. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SecurityFilterResponse, Integer, Hash)>] SecurityFilterResponse data, response status code and response headers def create_security_filter_with_http_info(body, opts = {}) @@ -107,7 +107,7 @@ def create_security_filter_with_http_info(body, opts = {}) # Create a detection rule # Create a detection rule. # @param body [SecurityMonitoringRuleCreatePayload] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SecurityMonitoringRuleResponse] def create_security_monitoring_rule(body, opts = {}) data, _status_code, _headers = create_security_monitoring_rule_with_http_info(body, opts) @@ -117,7 +117,7 @@ def create_security_monitoring_rule(body, opts = {}) # Create a detection rule # Create a detection rule. # @param body [SecurityMonitoringRuleCreatePayload] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SecurityMonitoringRuleResponse, Integer, Hash)>] SecurityMonitoringRuleResponse data, response status code and response headers def create_security_monitoring_rule_with_http_info(body, opts = {}) @@ -182,7 +182,7 @@ def create_security_monitoring_rule_with_http_info(body, opts = {}) # Delete a security filter # Delete a specific security filter. # @param security_filter_id [String] The ID of the security filter. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_security_filter(security_filter_id, opts = {}) delete_security_filter_with_http_info(security_filter_id, opts) @@ -192,7 +192,7 @@ def delete_security_filter(security_filter_id, opts = {}) # Delete a security filter # Delete a specific security filter. # @param security_filter_id [String] The ID of the security filter. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_security_filter_with_http_info(security_filter_id, opts = {}) @@ -255,7 +255,7 @@ def delete_security_filter_with_http_info(security_filter_id, opts = {}) # Delete an existing rule # Delete an existing rule. Default rules cannot be deleted. # @param rule_id [String] The ID of the rule. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_security_monitoring_rule(rule_id, opts = {}) delete_security_monitoring_rule_with_http_info(rule_id, opts) @@ -265,7 +265,7 @@ def delete_security_monitoring_rule(rule_id, opts = {}) # Delete an existing rule # Delete an existing rule. Default rules cannot be deleted. # @param rule_id [String] The ID of the rule. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_security_monitoring_rule_with_http_info(rule_id, opts = {}) @@ -331,7 +331,7 @@ def delete_security_monitoring_rule_with_http_info(rule_id, opts = {}) # See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) # for more examples. # @param security_filter_id [String] The ID of the security filter. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SecurityFilterResponse] def get_security_filter(security_filter_id, opts = {}) data, _status_code, _headers = get_security_filter_with_http_info(security_filter_id, opts) @@ -344,7 +344,7 @@ def get_security_filter(security_filter_id, opts = {}) # See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) # for more examples. # @param security_filter_id [String] The ID of the security filter. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SecurityFilterResponse, Integer, Hash)>] SecurityFilterResponse data, response status code and response headers def get_security_filter_with_http_info(security_filter_id, opts = {}) @@ -407,7 +407,7 @@ def get_security_filter_with_http_info(security_filter_id, opts = {}) # Get a rule's details # Get a rule's details. # @param rule_id [String] The ID of the rule. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SecurityMonitoringRuleResponse] def get_security_monitoring_rule(rule_id, opts = {}) data, _status_code, _headers = get_security_monitoring_rule_with_http_info(rule_id, opts) @@ -417,7 +417,7 @@ def get_security_monitoring_rule(rule_id, opts = {}) # Get a rule's details # Get a rule's details. # @param rule_id [String] The ID of the rule. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SecurityMonitoringRuleResponse, Integer, Hash)>] SecurityMonitoringRuleResponse data, response status code and response headers def get_security_monitoring_rule_with_http_info(rule_id, opts = {}) @@ -479,7 +479,7 @@ def get_security_monitoring_rule_with_http_info(rule_id, opts = {}) # Get all security filters # Get the list of configured security filters with their definitions. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SecurityFiltersResponse] def list_security_filters(opts = {}) data, _status_code, _headers = list_security_filters_with_http_info(opts) @@ -488,7 +488,7 @@ def list_security_filters(opts = {}) # Get all security filters # Get the list of configured security filters with their definitions. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SecurityFiltersResponse, Integer, Hash)>] SecurityFiltersResponse data, response status code and response headers def list_security_filters_with_http_info(opts = {}) @@ -546,7 +546,7 @@ def list_security_filters_with_http_info(opts = {}) # List rules # List rules. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. # @return [SecurityMonitoringListRulesResponse] @@ -557,7 +557,7 @@ def list_security_monitoring_rules(opts = {}) # List rules # List rules. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. # @return [Array<(SecurityMonitoringListRulesResponse, Integer, Hash)>] SecurityMonitoringListRulesResponse data, response status code and response headers @@ -621,7 +621,7 @@ def list_security_monitoring_rules_with_http_info(opts = {}) # The list endpoint returns security signals that match a search query. # Both this endpoint and the POST endpoint can be used interchangeably when listing # security signals. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :filter_query The search query for security signals. # @option opts [Time] :filter_from The minimum timestamp for requested security signals. # @option opts [Time] :filter_to The maximum timestamp for requested security signals. @@ -638,7 +638,7 @@ def list_security_monitoring_signals(opts = {}) # The list endpoint returns security signals that match a search query. # Both this endpoint and the POST endpoint can be used interchangeably when listing # security signals. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [String] :filter_query The search query for security signals. # @option opts [Time] :filter_from The minimum timestamp for requested security signals. # @option opts [Time] :filter_to The maximum timestamp for requested security signals. @@ -665,7 +665,7 @@ def list_security_monitoring_signals_with_http_info(opts = {}) fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" end if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] > 1000 - fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling SecurityMonitoringAPI.ListSecurityMonitoringSignals, must be smaller than or equal to 1000.' + fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling SecurityMonitoringAPI.list_security_monitoring_signals, must be smaller than or equal to 1000.' end # resource path local_var_path = '/api/v2/security_monitoring/signals' @@ -717,7 +717,7 @@ def list_security_monitoring_signals_with_http_info(opts = {}) # Returns security signals that match a search query. # Both this endpoint and the GET endpoint can be used interchangeably for listing # security signals. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [SecurityMonitoringSignalListRequest] :body # @return [SecurityMonitoringSignalsListResponse] def search_security_monitoring_signals(opts = {}) @@ -729,7 +729,7 @@ def search_security_monitoring_signals(opts = {}) # Returns security signals that match a search query. # Both this endpoint and the GET endpoint can be used interchangeably for listing # security signals. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [SecurityMonitoringSignalListRequest] :body # @return [Array<(SecurityMonitoringSignalsListResponse, Integer, Hash)>] SecurityMonitoringSignalsListResponse data, response status code and response headers def search_security_monitoring_signals_with_http_info(opts = {}) @@ -793,7 +793,7 @@ def search_security_monitoring_signals_with_http_info(opts = {}) # Returns the security filter object when the request is successful. # @param security_filter_id [String] The ID of the security filter. # @param body [SecurityFilterUpdateRequest] New definition of the security filter. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SecurityFilterResponse] def update_security_filter(security_filter_id, body, opts = {}) data, _status_code, _headers = update_security_filter_with_http_info(security_filter_id, body, opts) @@ -805,7 +805,7 @@ def update_security_filter(security_filter_id, body, opts = {}) # Returns the security filter object when the request is successful. # @param security_filter_id [String] The ID of the security filter. # @param body [SecurityFilterUpdateRequest] New definition of the security filter. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SecurityFilterResponse, Integer, Hash)>] SecurityFilterResponse data, response status code and response headers def update_security_filter_with_http_info(security_filter_id, body, opts = {}) @@ -877,7 +877,7 @@ def update_security_filter_with_http_info(security_filter_id, body, opts = {}) # Default rules can only be updated to be enabled and to change notifications. # @param rule_id [String] The ID of the rule. # @param body [SecurityMonitoringRuleUpdatePayload] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [SecurityMonitoringRuleResponse] def update_security_monitoring_rule(rule_id, body, opts = {}) data, _status_code, _headers = update_security_monitoring_rule_with_http_info(rule_id, body, opts) @@ -890,7 +890,7 @@ def update_security_monitoring_rule(rule_id, body, opts = {}) # Default rules can only be updated to be enabled and to change notifications. # @param rule_id [String] The ID of the rule. # @param body [SecurityMonitoringRuleUpdatePayload] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(SecurityMonitoringRuleResponse, Integer, Hash)>] SecurityMonitoringRuleResponse data, response status code and response headers def update_security_monitoring_rule_with_http_info(rule_id, body, opts = {}) diff --git a/lib/datadog_api_client/v2/api/service_accounts_api.rb b/lib/datadog_api_client/v2/api/service_accounts_api.rb index 089b73ce5d7..033bd766a67 100644 --- a/lib/datadog_api_client/v2/api/service_accounts_api.rb +++ b/lib/datadog_api_client/v2/api/service_accounts_api.rb @@ -27,7 +27,7 @@ def initialize(api_client = APIClient.default) # Create an application key for this service account. # @param service_account_id [String] The ID of the service account. # @param body [ApplicationKeyCreateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [ApplicationKeyResponse] def create_service_account_application_key(service_account_id, body, opts = {}) data, _status_code, _headers = create_service_account_application_key_with_http_info(service_account_id, body, opts) @@ -38,7 +38,7 @@ def create_service_account_application_key(service_account_id, body, opts = {}) # Create an application key for this service account. # @param service_account_id [String] The ID of the service account. # @param body [ApplicationKeyCreateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(ApplicationKeyResponse, Integer, Hash)>] ApplicationKeyResponse data, response status code and response headers def create_service_account_application_key_with_http_info(service_account_id, body, opts = {}) @@ -108,7 +108,7 @@ def create_service_account_application_key_with_http_info(service_account_id, bo # Delete an application key owned by this service account. # @param service_account_id [String] The ID of the service account. # @param app_key_id [String] The ID of the application key. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def delete_service_account_application_key(service_account_id, app_key_id, opts = {}) delete_service_account_application_key_with_http_info(service_account_id, app_key_id, opts) @@ -119,7 +119,7 @@ def delete_service_account_application_key(service_account_id, app_key_id, opts # Delete an application key owned by this service account. # @param service_account_id [String] The ID of the service account. # @param app_key_id [String] The ID of the application key. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_service_account_application_key_with_http_info(service_account_id, app_key_id, opts = {}) @@ -187,7 +187,7 @@ def delete_service_account_application_key_with_http_info(service_account_id, ap # Get an application key owned by this service account. # @param service_account_id [String] The ID of the service account. # @param app_key_id [String] The ID of the application key. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [PartialApplicationKeyResponse] def get_service_account_application_key(service_account_id, app_key_id, opts = {}) data, _status_code, _headers = get_service_account_application_key_with_http_info(service_account_id, app_key_id, opts) @@ -198,7 +198,7 @@ def get_service_account_application_key(service_account_id, app_key_id, opts = { # Get an application key owned by this service account. # @param service_account_id [String] The ID of the service account. # @param app_key_id [String] The ID of the application key. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(PartialApplicationKeyResponse, Integer, Hash)>] PartialApplicationKeyResponse data, response status code and response headers def get_service_account_application_key_with_http_info(service_account_id, app_key_id, opts = {}) @@ -265,7 +265,7 @@ def get_service_account_application_key_with_http_info(service_account_id, app_k # List application keys for this service account # List all application keys available for this service account. # @param service_account_id [String] The ID of the service account. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. @@ -281,7 +281,7 @@ def list_service_account_application_keys(service_account_id, opts = {}) # List application keys for this service account # List all application keys available for this service account. # @param service_account_id [String] The ID of the service account. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. @@ -362,7 +362,7 @@ def list_service_account_application_keys_with_http_info(service_account_id, opt # @param service_account_id [String] The ID of the service account. # @param app_key_id [String] The ID of the application key. # @param body [ApplicationKeyUpdateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [PartialApplicationKeyResponse] def update_service_account_application_key(service_account_id, app_key_id, body, opts = {}) data, _status_code, _headers = update_service_account_application_key_with_http_info(service_account_id, app_key_id, body, opts) @@ -374,7 +374,7 @@ def update_service_account_application_key(service_account_id, app_key_id, body, # @param service_account_id [String] The ID of the service account. # @param app_key_id [String] The ID of the application key. # @param body [ApplicationKeyUpdateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(PartialApplicationKeyResponse, Integer, Hash)>] PartialApplicationKeyResponse data, response status code and response headers def update_service_account_application_key_with_http_info(service_account_id, app_key_id, body, opts = {}) diff --git a/lib/datadog_api_client/v2/api/users_api.rb b/lib/datadog_api_client/v2/api/users_api.rb index 513a8d4ba0a..15b3ec5c760 100644 --- a/lib/datadog_api_client/v2/api/users_api.rb +++ b/lib/datadog_api_client/v2/api/users_api.rb @@ -26,7 +26,7 @@ def initialize(api_client = APIClient.default) # Create a service account # Create a service account for your organization. # @param body [ServiceAccountCreateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [UserResponse] def create_service_account(body, opts = {}) data, _status_code, _headers = create_service_account_with_http_info(body, opts) @@ -36,7 +36,7 @@ def create_service_account(body, opts = {}) # Create a service account # Create a service account for your organization. # @param body [ServiceAccountCreateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers def create_service_account_with_http_info(body, opts = {}) @@ -101,7 +101,7 @@ def create_service_account_with_http_info(body, opts = {}) # Create a user # Create a user for your organization. # @param body [UserCreateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [UserResponse] def create_user(body, opts = {}) data, _status_code, _headers = create_user_with_http_info(body, opts) @@ -111,7 +111,7 @@ def create_user(body, opts = {}) # Create a user # Create a user for your organization. # @param body [UserCreateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers def create_user_with_http_info(body, opts = {}) @@ -177,7 +177,7 @@ def create_user_with_http_info(body, opts = {}) # Disable a user. Can only be used with an application key belonging # to an administrator user. # @param user_id [String] The ID of the user. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [nil] def disable_user(user_id, opts = {}) disable_user_with_http_info(user_id, opts) @@ -188,7 +188,7 @@ def disable_user(user_id, opts = {}) # Disable a user. Can only be used with an application key belonging # to an administrator user. # @param user_id [String] The ID of the user. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def disable_user_with_http_info(user_id, opts = {}) @@ -251,7 +251,7 @@ def disable_user_with_http_info(user_id, opts = {}) # Get a user invitation # Returns a single user invitation by its UUID. # @param user_invitation_uuid [String] The UUID of the user invitation. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [UserInvitationResponse] def get_invitation(user_invitation_uuid, opts = {}) data, _status_code, _headers = get_invitation_with_http_info(user_invitation_uuid, opts) @@ -261,7 +261,7 @@ def get_invitation(user_invitation_uuid, opts = {}) # Get a user invitation # Returns a single user invitation by its UUID. # @param user_invitation_uuid [String] The UUID of the user invitation. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(UserInvitationResponse, Integer, Hash)>] UserInvitationResponse data, response status code and response headers def get_invitation_with_http_info(user_invitation_uuid, opts = {}) @@ -324,7 +324,7 @@ def get_invitation_with_http_info(user_invitation_uuid, opts = {}) # Get user details # Get a user in the organization specified by the user’s `user_id`. # @param user_id [String] The ID of the user. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [UserResponse] def get_user(user_id, opts = {}) data, _status_code, _headers = get_user_with_http_info(user_id, opts) @@ -334,7 +334,7 @@ def get_user(user_id, opts = {}) # Get user details # Get a user in the organization specified by the user’s `user_id`. # @param user_id [String] The ID of the user. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers def get_user_with_http_info(user_id, opts = {}) @@ -398,7 +398,7 @@ def get_user_with_http_info(user_id, opts = {}) # Get a user organization. Returns the user information and all organizations # joined by this user. # @param user_id [String] The ID of the user. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [UserResponse] def list_user_organizations(user_id, opts = {}) data, _status_code, _headers = list_user_organizations_with_http_info(user_id, opts) @@ -409,7 +409,7 @@ def list_user_organizations(user_id, opts = {}) # Get a user organization. Returns the user information and all organizations # joined by this user. # @param user_id [String] The ID of the user. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers def list_user_organizations_with_http_info(user_id, opts = {}) @@ -473,7 +473,7 @@ def list_user_organizations_with_http_info(user_id, opts = {}) # Get a user permission set. Returns a list of the user’s permissions # granted by the associated user's roles. # @param user_id [String] The ID of the user. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [PermissionsResponse] def list_user_permissions(user_id, opts = {}) data, _status_code, _headers = list_user_permissions_with_http_info(user_id, opts) @@ -484,7 +484,7 @@ def list_user_permissions(user_id, opts = {}) # Get a user permission set. Returns a list of the user’s permissions # granted by the associated user's roles. # @param user_id [String] The ID of the user. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(PermissionsResponse, Integer, Hash)>] PermissionsResponse data, response status code and response headers def list_user_permissions_with_http_info(user_id, opts = {}) @@ -547,7 +547,7 @@ def list_user_permissions_with_http_info(user_id, opts = {}) # List all users # Get the list of all users in the organization. This list includes # all users even if they are deactivated or unverified. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. # @option opts [String] :sort User attribute to order results by. Sort order is ascending by default. Sort order is descending if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `modified_at`, `user_count`. @@ -563,7 +563,7 @@ def list_users(opts = {}) # List all users # Get the list of all users in the organization. This list includes # all users even if they are deactivated or unverified. - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. # @option opts [String] :sort User attribute to order results by. Sort order is ascending by default. Sort order is descending if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `modified_at`, `user_count`. @@ -638,7 +638,7 @@ def list_users_with_http_info(opts = {}) # Send invitation emails # Sends emails to one or more users inviting them to join the organization. # @param body [UserInvitationsRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [UserInvitationsResponse] def send_invitations(body, opts = {}) data, _status_code, _headers = send_invitations_with_http_info(body, opts) @@ -648,7 +648,7 @@ def send_invitations(body, opts = {}) # Send invitation emails # Sends emails to one or more users inviting them to join the organization. # @param body [UserInvitationsRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(UserInvitationsResponse, Integer, Hash)>] UserInvitationsResponse data, response status code and response headers def send_invitations_with_http_info(body, opts = {}) @@ -715,7 +715,7 @@ def send_invitations_with_http_info(body, opts = {}) # to an administrator user. # @param user_id [String] The ID of the user. # @param body [UserUpdateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [UserResponse] def update_user(user_id, body, opts = {}) data, _status_code, _headers = update_user_with_http_info(user_id, body, opts) @@ -727,7 +727,7 @@ def update_user(user_id, body, opts = {}) # to an administrator user. # @param user_id [String] The ID of the user. # @param body [UserUpdateRequest] - # @param [Hash] opts the optional parameters + # @param opts [Hash] the optional parameters # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers def update_user_with_http_info(user_id, body, opts = {}) From a6a8de026137646c1a85040196e0af8541c369f1 Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Fri, 4 Feb 2022 17:17:31 +0100 Subject: [PATCH 06/23] consistent new lines at the eof --- .generator/src/generator/templates/model.j2 | 9 +++++---- lib/datadog_api_client/v1/models/access_role.rb | 2 +- .../v1/models/alert_graph_widget_definition.rb | 3 +-- .../v1/models/alert_graph_widget_definition_type.rb | 2 +- .../v1/models/alert_value_widget_definition.rb | 3 +-- .../v1/models/alert_value_widget_definition_type.rb | 2 +- lib/datadog_api_client/v1/models/api_error_response.rb | 3 +-- lib/datadog_api_client/v1/models/api_key.rb | 3 +-- .../v1/models/api_key_list_response.rb | 3 +-- lib/datadog_api_client/v1/models/api_key_response.rb | 3 +-- .../v1/models/apm_stats_query_column_type.rb | 3 +-- .../v1/models/apm_stats_query_definition.rb | 3 +-- .../v1/models/apm_stats_query_row_type.rb | 2 +- lib/datadog_api_client/v1/models/application_key.rb | 3 +-- .../v1/models/application_key_list_response.rb | 3 +-- .../v1/models/application_key_response.rb | 3 +-- .../v1/models/authentication_validation_response.rb | 3 +-- lib/datadog_api_client/v1/models/aws_account.rb | 3 +-- .../v1/models/aws_account_and_lambda_request.rb | 3 +-- .../v1/models/aws_account_create_response.rb | 3 +-- .../v1/models/aws_account_delete_request.rb | 3 +-- .../v1/models/aws_account_list_response.rb | 3 +-- lib/datadog_api_client/v1/models/aws_logs_async_error.rb | 3 +-- .../v1/models/aws_logs_async_response.rb | 3 +-- lib/datadog_api_client/v1/models/aws_logs_lambda.rb | 3 +-- .../v1/models/aws_logs_list_response.rb | 3 +-- .../v1/models/aws_logs_list_services_response.rb | 3 +-- .../v1/models/aws_logs_services_request.rb | 3 +-- lib/datadog_api_client/v1/models/aws_namespace.rb | 2 +- lib/datadog_api_client/v1/models/aws_tag_filter.rb | 3 +-- .../v1/models/aws_tag_filter_create_request.rb | 3 +-- .../v1/models/aws_tag_filter_delete_request.rb | 3 +-- .../v1/models/aws_tag_filter_list_response.rb | 3 +-- lib/datadog_api_client/v1/models/azure_account.rb | 3 +-- .../v1/models/cancel_downtimes_by_scope_request.rb | 3 +-- .../v1/models/canceled_downtimes_ids.rb | 3 +-- .../v1/models/change_widget_definition.rb | 3 +-- .../v1/models/change_widget_definition_type.rb | 2 +- .../v1/models/change_widget_request.rb | 3 +-- .../v1/models/check_can_delete_monitor_response.rb | 3 +-- .../v1/models/check_can_delete_monitor_response_data.rb | 3 +-- .../v1/models/check_can_delete_slo_response.rb | 3 +-- .../v1/models/check_can_delete_slo_response_data.rb | 3 +-- .../v1/models/check_status_widget_definition.rb | 3 +-- .../v1/models/check_status_widget_definition_type.rb | 2 +- lib/datadog_api_client/v1/models/content_encoding.rb | 2 +- lib/datadog_api_client/v1/models/creator.rb | 3 +-- lib/datadog_api_client/v1/models/dashboard.rb | 3 +-- .../v1/models/dashboard_bulk_action_data.rb | 3 +-- .../v1/models/dashboard_bulk_delete_request.rb | 3 +-- .../v1/models/dashboard_delete_response.rb | 3 +-- .../v1/models/dashboard_layout_type.rb | 2 +- lib/datadog_api_client/v1/models/dashboard_list.rb | 3 +-- .../v1/models/dashboard_list_delete_response.rb | 3 +-- .../v1/models/dashboard_list_list_response.rb | 3 +-- .../v1/models/dashboard_reflow_type.rb | 2 +- .../v1/models/dashboard_resource_type.rb | 2 +- .../v1/models/dashboard_restore_request.rb | 3 +-- lib/datadog_api_client/v1/models/dashboard_summary.rb | 3 +-- .../v1/models/dashboard_summary_definition.rb | 3 +-- .../v1/models/dashboard_template_variable.rb | 3 +-- .../v1/models/dashboard_template_variable_preset.rb | 3 +-- .../models/dashboard_template_variable_preset_value.rb | 3 +-- lib/datadog_api_client/v1/models/deleted_monitor.rb | 3 +-- .../v1/models/distribution_widget_definition.rb | 3 +-- .../v1/models/distribution_widget_definition_type.rb | 2 +- .../v1/models/distribution_widget_request.rb | 3 +-- .../v1/models/distribution_widget_x_axis.rb | 3 +-- .../v1/models/distribution_widget_y_axis.rb | 3 +-- lib/datadog_api_client/v1/models/downtime.rb | 3 +-- lib/datadog_api_client/v1/models/downtime_child.rb | 3 +-- lib/datadog_api_client/v1/models/downtime_recurrence.rb | 3 +-- lib/datadog_api_client/v1/models/event.rb | 3 +-- lib/datadog_api_client/v1/models/event_alert_type.rb | 2 +- lib/datadog_api_client/v1/models/event_create_request.rb | 3 +-- .../v1/models/event_create_response.rb | 3 +-- lib/datadog_api_client/v1/models/event_list_response.rb | 3 +-- lib/datadog_api_client/v1/models/event_priority.rb | 2 +- .../v1/models/event_query_definition.rb | 3 +-- lib/datadog_api_client/v1/models/event_response.rb | 3 +-- .../v1/models/event_stream_widget_definition.rb | 3 +-- .../v1/models/event_stream_widget_definition_type.rb | 2 +- .../v1/models/event_timeline_widget_definition.rb | 3 +-- .../v1/models/event_timeline_widget_definition_type.rb | 2 +- .../formula_and_function_apm_dependency_stat_name.rb | 2 +- ...mula_and_function_apm_dependency_stats_data_source.rb | 2 +- ...and_function_apm_dependency_stats_query_definition.rb | 3 +-- .../formula_and_function_apm_resource_stat_name.rb | 2 +- ...ormula_and_function_apm_resource_stats_data_source.rb | 2 +- ...a_and_function_apm_resource_stats_query_definition.rb | 3 +-- .../v1/models/formula_and_function_event_aggregation.rb | 2 +- .../formula_and_function_event_query_definition.rb | 3 +-- ...ormula_and_function_event_query_definition_compute.rb | 3 +-- ...formula_and_function_event_query_definition_search.rb | 3 +-- .../models/formula_and_function_event_query_group_by.rb | 3 +-- .../formula_and_function_event_query_group_by_sort.rb | 3 +-- .../v1/models/formula_and_function_events_data_source.rb | 2 +- .../v1/models/formula_and_function_metric_aggregation.rb | 2 +- .../v1/models/formula_and_function_metric_data_source.rb | 2 +- .../formula_and_function_metric_query_definition.rb | 3 +-- .../formula_and_function_process_query_data_source.rb | 2 +- .../formula_and_function_process_query_definition.rb | 3 +-- .../v1/models/formula_and_function_query_definition.rb | 3 +-- .../v1/models/formula_and_function_response_format.rb | 2 +- .../v1/models/free_text_widget_definition.rb | 3 +-- .../v1/models/free_text_widget_definition_type.rb | 2 +- lib/datadog_api_client/v1/models/funnel_query.rb | 3 +-- .../v1/models/funnel_query_steps_item.rb | 3 +-- lib/datadog_api_client/v1/models/funnel_request_type.rb | 2 +- lib/datadog_api_client/v1/models/funnel_source.rb | 2 +- .../v1/models/funnel_widget_definition.rb | 3 +-- .../v1/models/funnel_widget_definition_type.rb | 2 +- .../v1/models/funnel_widget_request.rb | 3 +-- lib/datadog_api_client/v1/models/gcp_account.rb | 3 +-- .../v1/models/geomap_widget_definition.rb | 3 +-- .../v1/models/geomap_widget_definition_style.rb | 3 +-- .../v1/models/geomap_widget_definition_type.rb | 2 +- .../v1/models/geomap_widget_definition_view.rb | 3 +-- .../v1/models/geomap_widget_request.rb | 3 +-- lib/datadog_api_client/v1/models/graph_snapshot.rb | 3 +-- .../v1/models/group_widget_definition.rb | 3 +-- .../v1/models/group_widget_definition_type.rb | 2 +- .../v1/models/heat_map_widget_definition.rb | 3 +-- .../v1/models/heat_map_widget_definition_type.rb | 2 +- .../v1/models/heat_map_widget_request.rb | 3 +-- lib/datadog_api_client/v1/models/host.rb | 3 +-- lib/datadog_api_client/v1/models/host_list_response.rb | 3 +-- lib/datadog_api_client/v1/models/host_map_request.rb | 3 +-- .../v1/models/host_map_widget_definition.rb | 3 +-- .../v1/models/host_map_widget_definition_requests.rb | 3 +-- .../v1/models/host_map_widget_definition_style.rb | 3 +-- .../v1/models/host_map_widget_definition_type.rb | 2 +- lib/datadog_api_client/v1/models/host_meta.rb | 3 +-- .../v1/models/host_meta_install_method.rb | 3 +-- lib/datadog_api_client/v1/models/host_metrics.rb | 3 +-- lib/datadog_api_client/v1/models/host_mute_response.rb | 3 +-- lib/datadog_api_client/v1/models/host_mute_settings.rb | 3 +-- lib/datadog_api_client/v1/models/host_tags.rb | 3 +-- lib/datadog_api_client/v1/models/host_totals.rb | 3 +-- .../v1/models/hourly_usage_attribution_body.rb | 3 +-- .../v1/models/hourly_usage_attribution_metadata.rb | 3 +-- .../v1/models/hourly_usage_attribution_pagination.rb | 3 +-- .../v1/models/hourly_usage_attribution_response.rb | 3 +-- .../v1/models/hourly_usage_attribution_usage_type.rb | 2 +- lib/datadog_api_client/v1/models/http_log_error.rb | 3 +-- lib/datadog_api_client/v1/models/http_log_item.rb | 3 +-- lib/datadog_api_client/v1/models/http_method.rb | 2 +- .../v1/models/i_frame_widget_definition.rb | 3 +-- .../v1/models/i_frame_widget_definition_type.rb | 2 +- lib/datadog_api_client/v1/models/idp_form_data.rb | 3 +-- lib/datadog_api_client/v1/models/idp_response.rb | 3 +-- .../v1/models/image_widget_definition.rb | 3 +-- .../v1/models/image_widget_definition_type.rb | 2 +- .../v1/models/intake_payload_accepted.rb | 3 +-- lib/datadog_api_client/v1/models/ip_prefixes_agents.rb | 3 +-- lib/datadog_api_client/v1/models/ip_prefixes_api.rb | 3 +-- lib/datadog_api_client/v1/models/ip_prefixes_apm.rb | 3 +-- lib/datadog_api_client/v1/models/ip_prefixes_logs.rb | 3 +-- lib/datadog_api_client/v1/models/ip_prefixes_process.rb | 3 +-- .../v1/models/ip_prefixes_synthetics.rb | 3 +-- lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb | 3 +-- lib/datadog_api_client/v1/models/ip_ranges.rb | 3 +-- lib/datadog_api_client/v1/models/list_stream_column.rb | 3 +-- .../v1/models/list_stream_column_width.rb | 2 +- lib/datadog_api_client/v1/models/list_stream_query.rb | 3 +-- .../v1/models/list_stream_response_format.rb | 2 +- lib/datadog_api_client/v1/models/list_stream_source.rb | 2 +- .../v1/models/list_stream_widget_definition.rb | 3 +-- .../v1/models/list_stream_widget_definition_type.rb | 2 +- .../v1/models/list_stream_widget_request.rb | 3 +-- lib/datadog_api_client/v1/models/log.rb | 3 +-- lib/datadog_api_client/v1/models/log_content.rb | 3 +-- lib/datadog_api_client/v1/models/log_query_definition.rb | 3 +-- .../v1/models/log_query_definition_group_by.rb | 3 +-- .../v1/models/log_query_definition_group_by_sort.rb | 3 +-- .../v1/models/log_query_definition_search.rb | 3 +-- .../v1/models/log_stream_widget_definition.rb | 3 +-- .../v1/models/log_stream_widget_definition_type.rb | 2 +- lib/datadog_api_client/v1/models/logs_api_error.rb | 3 +-- .../v1/models/logs_api_error_response.rb | 3 +-- .../v1/models/logs_arithmetic_processor.rb | 3 +-- .../v1/models/logs_arithmetic_processor_type.rb | 2 +- .../v1/models/logs_attribute_remapper.rb | 3 +-- .../v1/models/logs_attribute_remapper_type.rb | 2 +- lib/datadog_api_client/v1/models/logs_by_retention.rb | 3 +-- .../v1/models/logs_by_retention_monthly_usage.rb | 3 +-- .../v1/models/logs_by_retention_org_usage.rb | 3 +-- .../v1/models/logs_by_retention_orgs.rb | 3 +-- .../v1/models/logs_category_processor.rb | 3 +-- .../v1/models/logs_category_processor_category.rb | 3 +-- .../v1/models/logs_category_processor_type.rb | 2 +- lib/datadog_api_client/v1/models/logs_date_remapper.rb | 3 +-- .../v1/models/logs_date_remapper_type.rb | 2 +- lib/datadog_api_client/v1/models/logs_exclusion.rb | 3 +-- .../v1/models/logs_exclusion_filter.rb | 3 +-- lib/datadog_api_client/v1/models/logs_filter.rb | 3 +-- lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb | 3 +-- .../v1/models/logs_geo_ip_parser_type.rb | 2 +- lib/datadog_api_client/v1/models/logs_grok_parser.rb | 3 +-- .../v1/models/logs_grok_parser_rules.rb | 3 +-- .../v1/models/logs_grok_parser_type.rb | 2 +- lib/datadog_api_client/v1/models/logs_index.rb | 3 +-- .../v1/models/logs_index_list_response.rb | 3 +-- .../v1/models/logs_index_update_request.rb | 3 +-- lib/datadog_api_client/v1/models/logs_indexes_order.rb | 3 +-- lib/datadog_api_client/v1/models/logs_list_request.rb | 3 +-- .../v1/models/logs_list_request_time.rb | 3 +-- lib/datadog_api_client/v1/models/logs_list_response.rb | 3 +-- .../v1/models/logs_lookup_processor.rb | 3 +-- .../v1/models/logs_lookup_processor_type.rb | 2 +- .../v1/models/logs_message_remapper.rb | 3 +-- .../v1/models/logs_message_remapper_type.rb | 2 +- lib/datadog_api_client/v1/models/logs_pipeline.rb | 3 +-- .../v1/models/logs_pipeline_processor.rb | 3 +-- .../v1/models/logs_pipeline_processor_type.rb | 2 +- lib/datadog_api_client/v1/models/logs_pipelines_order.rb | 3 +-- lib/datadog_api_client/v1/models/logs_processor.rb | 3 +-- lib/datadog_api_client/v1/models/logs_query_compute.rb | 3 +-- .../v1/models/logs_retention_agg_sum_usage.rb | 3 +-- .../v1/models/logs_retention_sum_usage.rb | 3 +-- .../v1/models/logs_service_remapper.rb | 3 +-- .../v1/models/logs_service_remapper_type.rb | 2 +- lib/datadog_api_client/v1/models/logs_sort.rb | 2 +- lib/datadog_api_client/v1/models/logs_status_remapper.rb | 3 +-- .../v1/models/logs_status_remapper_type.rb | 2 +- .../v1/models/logs_string_builder_processor.rb | 3 +-- .../v1/models/logs_string_builder_processor_type.rb | 2 +- lib/datadog_api_client/v1/models/logs_trace_remapper.rb | 3 +-- .../v1/models/logs_trace_remapper_type.rb | 2 +- lib/datadog_api_client/v1/models/logs_url_parser.rb | 3 +-- lib/datadog_api_client/v1/models/logs_url_parser_type.rb | 2 +- .../v1/models/logs_user_agent_parser.rb | 3 +-- .../v1/models/logs_user_agent_parser_type.rb | 2 +- .../v1/models/metric_content_encoding.rb | 2 +- lib/datadog_api_client/v1/models/metric_metadata.rb | 3 +-- .../v1/models/metric_search_response.rb | 3 +-- .../v1/models/metric_search_response_results.rb | 3 +-- .../v1/models/metrics_list_response.rb | 3 +-- lib/datadog_api_client/v1/models/metrics_payload.rb | 3 +-- .../v1/models/metrics_query_metadata.rb | 3 +-- .../v1/models/metrics_query_response.rb | 3 +-- lib/datadog_api_client/v1/models/metrics_query_unit.rb | 3 +-- lib/datadog_api_client/v1/models/monitor.rb | 3 +-- lib/datadog_api_client/v1/models/monitor_device_id.rb | 2 +- .../monitor_formula_and_function_event_aggregation.rb | 2 +- ...onitor_formula_and_function_event_query_definition.rb | 3 +-- ...ormula_and_function_event_query_definition_compute.rb | 3 +-- ...formula_and_function_event_query_definition_search.rb | 3 +-- .../monitor_formula_and_function_event_query_group_by.rb | 3 +-- ...tor_formula_and_function_event_query_group_by_sort.rb | 3 +-- .../monitor_formula_and_function_events_data_source.rb | 2 +- .../monitor_formula_and_function_query_definition.rb | 3 +-- .../v1/models/monitor_group_search_response.rb | 3 +-- .../v1/models/monitor_group_search_response_counts.rb | 3 +-- .../monitor_group_search_response_counts_status_item.rb | 3 +-- .../monitor_group_search_response_counts_type_item.rb | 3 +-- .../v1/models/monitor_group_search_result.rb | 3 +-- lib/datadog_api_client/v1/models/monitor_options.rb | 3 +-- .../v1/models/monitor_options_aggregation.rb | 3 +-- .../v1/models/monitor_overall_states.rb | 2 +- .../v1/models/monitor_renotify_status_type.rb | 2 +- .../v1/models/monitor_search_response.rb | 3 +-- .../v1/models/monitor_search_response_counts.rb | 3 +-- .../models/monitor_search_response_counts_muted_item.rb | 3 +-- .../models/monitor_search_response_counts_status_item.rb | 3 +-- .../v1/models/monitor_search_response_counts_tag_item.rb | 3 +-- .../models/monitor_search_response_counts_type_item.rb | 3 +-- .../v1/models/monitor_search_response_metadata.rb | 3 +-- .../v1/models/monitor_search_result.rb | 3 +-- .../v1/models/monitor_search_result_notification.rb | 3 +-- lib/datadog_api_client/v1/models/monitor_state.rb | 3 +-- lib/datadog_api_client/v1/models/monitor_state_group.rb | 3 +-- .../v1/models/monitor_summary_widget_definition.rb | 3 +-- .../v1/models/monitor_summary_widget_definition_type.rb | 2 +- .../v1/models/monitor_threshold_window_options.rb | 3 +-- lib/datadog_api_client/v1/models/monitor_thresholds.rb | 3 +-- lib/datadog_api_client/v1/models/monitor_type.rb | 2 +- .../v1/models/monitor_update_request.rb | 3 +-- .../v1/models/monthly_usage_attribution_body.rb | 3 +-- .../v1/models/monthly_usage_attribution_metadata.rb | 3 +-- .../v1/models/monthly_usage_attribution_pagination.rb | 3 +-- .../v1/models/monthly_usage_attribution_response.rb | 3 +-- .../monthly_usage_attribution_supported_metrics.rb | 2 +- .../v1/models/monthly_usage_attribution_values.rb | 3 +-- .../v1/models/note_widget_definition.rb | 3 +-- .../v1/models/note_widget_definition_type.rb | 2 +- .../v1/models/notebook_absolute_time.rb | 3 +-- lib/datadog_api_client/v1/models/notebook_author.rb | 3 +-- .../v1/models/notebook_cell_create_request.rb | 3 +-- .../v1/models/notebook_cell_create_request_attributes.rb | 3 +-- .../v1/models/notebook_cell_resource_type.rb | 2 +- .../v1/models/notebook_cell_response.rb | 3 +-- .../v1/models/notebook_cell_response_attributes.rb | 3 +-- lib/datadog_api_client/v1/models/notebook_cell_time.rb | 3 +-- .../v1/models/notebook_cell_update_request.rb | 3 +-- .../v1/models/notebook_cell_update_request_attributes.rb | 3 +-- lib/datadog_api_client/v1/models/notebook_create_data.rb | 3 +-- .../v1/models/notebook_create_data_attributes.rb | 3 +-- .../v1/models/notebook_create_request.rb | 3 +-- .../v1/models/notebook_distribution_cell_attributes.rb | 3 +-- lib/datadog_api_client/v1/models/notebook_global_time.rb | 3 +-- lib/datadog_api_client/v1/models/notebook_graph_size.rb | 2 +- .../v1/models/notebook_heat_map_cell_attributes.rb | 3 +-- .../v1/models/notebook_log_stream_cell_attributes.rb | 3 +-- .../v1/models/notebook_markdown_cell_attributes.rb | 3 +-- .../v1/models/notebook_markdown_cell_definition.rb | 3 +-- .../v1/models/notebook_markdown_cell_definition_type.rb | 2 +- lib/datadog_api_client/v1/models/notebook_metadata.rb | 3 +-- .../v1/models/notebook_metadata_type.rb | 2 +- .../v1/models/notebook_relative_time.rb | 3 +-- .../v1/models/notebook_resource_type.rb | 2 +- lib/datadog_api_client/v1/models/notebook_response.rb | 3 +-- .../v1/models/notebook_response_data.rb | 3 +-- .../v1/models/notebook_response_data_attributes.rb | 3 +-- lib/datadog_api_client/v1/models/notebook_split_by.rb | 3 +-- lib/datadog_api_client/v1/models/notebook_status.rb | 2 +- .../v1/models/notebook_timeseries_cell_attributes.rb | 3 +-- .../v1/models/notebook_toplist_cell_attributes.rb | 3 +-- lib/datadog_api_client/v1/models/notebook_update_cell.rb | 3 +-- lib/datadog_api_client/v1/models/notebook_update_data.rb | 3 +-- .../v1/models/notebook_update_data_attributes.rb | 3 +-- .../v1/models/notebook_update_request.rb | 3 +-- lib/datadog_api_client/v1/models/notebooks_response.rb | 3 +-- .../v1/models/notebooks_response_data.rb | 3 +-- .../v1/models/notebooks_response_data_attributes.rb | 3 +-- .../v1/models/notebooks_response_meta.rb | 3 +-- .../v1/models/notebooks_response_page.rb | 3 +-- lib/datadog_api_client/v1/models/organization.rb | 3 +-- lib/datadog_api_client/v1/models/organization_billing.rb | 3 +-- .../v1/models/organization_create_body.rb | 3 +-- .../v1/models/organization_create_response.rb | 3 +-- .../v1/models/organization_list_response.rb | 3 +-- .../v1/models/organization_response.rb | 3 +-- .../v1/models/organization_settings.rb | 3 +-- .../v1/models/organization_settings_saml.rb | 3 +-- ...rganization_settings_saml_autocreate_users_domains.rb | 3 +-- .../organization_settings_saml_idp_initiated_login.rb | 3 +-- .../v1/models/organization_settings_saml_strict_mode.rb | 3 +-- .../v1/models/organization_subscription.rb | 3 +-- lib/datadog_api_client/v1/models/pager_duty_service.rb | 3 +-- .../v1/models/pager_duty_service_key.rb | 3 +-- .../v1/models/pager_duty_service_name.rb | 3 +-- lib/datadog_api_client/v1/models/pagination.rb | 3 +-- .../v1/models/process_query_definition.rb | 3 +-- lib/datadog_api_client/v1/models/query_sort_order.rb | 2 +- .../v1/models/query_value_widget_definition.rb | 3 +-- .../v1/models/query_value_widget_definition_type.rb | 2 +- .../v1/models/query_value_widget_request.rb | 3 +-- .../v1/models/response_meta_attributes.rb | 3 +-- lib/datadog_api_client/v1/models/scatter_plot_request.rb | 3 +-- .../v1/models/scatter_plot_widget_definition.rb | 3 +-- .../v1/models/scatter_plot_widget_definition_requests.rb | 3 +-- .../v1/models/scatter_plot_widget_definition_type.rb | 2 +- .../v1/models/scatterplot_dimension.rb | 2 +- .../v1/models/scatterplot_table_request.rb | 3 +-- .../v1/models/scatterplot_widget_aggregator.rb | 2 +- .../v1/models/scatterplot_widget_formula.rb | 3 +-- lib/datadog_api_client/v1/models/series.rb | 3 +-- lib/datadog_api_client/v1/models/service_check.rb | 3 +-- lib/datadog_api_client/v1/models/service_check_status.rb | 2 +- .../v1/models/service_level_objective.rb | 3 +-- .../v1/models/service_level_objective_query.rb | 3 +-- .../v1/models/service_level_objective_request.rb | 3 +-- .../v1/models/service_map_widget_definition.rb | 3 +-- .../v1/models/service_map_widget_definition_type.rb | 2 +- .../v1/models/service_summary_widget_definition.rb | 3 +-- .../v1/models/service_summary_widget_definition_type.rb | 2 +- .../v1/models/slack_integration_channel.rb | 3 +-- .../v1/models/slack_integration_channel_display.rb | 3 +-- .../v1/models/slo_bulk_delete_error.rb | 3 +-- .../v1/models/slo_bulk_delete_response.rb | 3 +-- .../v1/models/slo_bulk_delete_response_data.rb | 3 +-- lib/datadog_api_client/v1/models/slo_correction.rb | 3 +-- .../v1/models/slo_correction_category.rb | 2 +- .../v1/models/slo_correction_create_data.rb | 3 +-- .../v1/models/slo_correction_create_request.rb | 3 +-- .../models/slo_correction_create_request_attributes.rb | 3 +-- .../v1/models/slo_correction_list_response.rb | 3 +-- .../v1/models/slo_correction_response.rb | 3 +-- .../v1/models/slo_correction_response_attributes.rb | 3 +-- .../slo_correction_response_attributes_modifier.rb | 3 +-- lib/datadog_api_client/v1/models/slo_correction_type.rb | 2 +- .../v1/models/slo_correction_update_data.rb | 3 +-- .../v1/models/slo_correction_update_request.rb | 3 +-- .../models/slo_correction_update_request_attributes.rb | 3 +-- lib/datadog_api_client/v1/models/slo_delete_response.rb | 3 +-- lib/datadog_api_client/v1/models/slo_error_timeframe.rb | 2 +- lib/datadog_api_client/v1/models/slo_history_metrics.rb | 3 +-- .../v1/models/slo_history_metrics_series.rb | 3 +-- .../v1/models/slo_history_metrics_series_metadata.rb | 3 +-- .../models/slo_history_metrics_series_metadata_unit.rb | 3 +-- lib/datadog_api_client/v1/models/slo_history_monitor.rb | 3 +-- lib/datadog_api_client/v1/models/slo_history_response.rb | 3 +-- .../v1/models/slo_history_response_data.rb | 3 +-- .../v1/models/slo_history_response_error.rb | 3 +-- .../v1/models/slo_history_response_error_with_type.rb | 3 +-- lib/datadog_api_client/v1/models/slo_history_sli_data.rb | 3 +-- lib/datadog_api_client/v1/models/slo_list_response.rb | 3 +-- .../v1/models/slo_list_response_metadata.rb | 3 +-- .../v1/models/slo_list_response_metadata_page.rb | 3 +-- lib/datadog_api_client/v1/models/slo_response.rb | 3 +-- lib/datadog_api_client/v1/models/slo_response_data.rb | 3 +-- lib/datadog_api_client/v1/models/slo_threshold.rb | 3 +-- lib/datadog_api_client/v1/models/slo_timeframe.rb | 2 +- lib/datadog_api_client/v1/models/slo_type.rb | 2 +- lib/datadog_api_client/v1/models/slo_type_numeric.rb | 2 +- .../v1/models/slo_widget_definition.rb | 3 +-- .../v1/models/slo_widget_definition_type.rb | 2 +- .../v1/models/sunburst_widget_definition.rb | 3 +-- .../v1/models/sunburst_widget_definition_type.rb | 2 +- .../v1/models/sunburst_widget_legend.rb | 3 +-- .../v1/models/sunburst_widget_legend_inline_automatic.rb | 3 +-- .../sunburst_widget_legend_inline_automatic_type.rb | 2 +- .../v1/models/sunburst_widget_legend_table.rb | 3 +-- .../v1/models/sunburst_widget_legend_table_type.rb | 2 +- .../v1/models/sunburst_widget_request.rb | 3 +-- lib/datadog_api_client/v1/models/synthetics_api_step.rb | 3 +-- .../v1/models/synthetics_api_step_subtype.rb | 2 +- lib/datadog_api_client/v1/models/synthetics_api_test.rb | 3 +-- .../v1/models/synthetics_api_test_config.rb | 3 +-- .../v1/models/synthetics_api_test_failure_code.rb | 2 +- .../v1/models/synthetics_api_test_result_data.rb | 3 +-- .../v1/models/synthetics_api_test_result_failure.rb | 3 +-- .../v1/models/synthetics_api_test_result_full.rb | 3 +-- .../v1/models/synthetics_api_test_result_full_check.rb | 3 +-- .../v1/models/synthetics_api_test_result_short.rb | 3 +-- .../v1/models/synthetics_api_test_result_short_result.rb | 3 +-- .../v1/models/synthetics_api_test_type.rb | 2 +- lib/datadog_api_client/v1/models/synthetics_assertion.rb | 3 +-- .../v1/models/synthetics_assertion_json_path_operator.rb | 2 +- .../v1/models/synthetics_assertion_json_path_target.rb | 3 +-- .../synthetics_assertion_json_path_target_target.rb | 3 +-- .../v1/models/synthetics_assertion_operator.rb | 2 +- .../v1/models/synthetics_assertion_target.rb | 3 +-- .../v1/models/synthetics_assertion_type.rb | 2 +- .../v1/models/synthetics_basic_auth.rb | 3 +-- .../v1/models/synthetics_basic_auth_ntlm.rb | 3 +-- .../v1/models/synthetics_basic_auth_ntlm_type.rb | 2 +- .../v1/models/synthetics_basic_auth_sigv4.rb | 3 +-- .../v1/models/synthetics_basic_auth_sigv4_type.rb | 2 +- .../v1/models/synthetics_basic_auth_web.rb | 3 +-- .../v1/models/synthetics_basic_auth_web_type.rb | 2 +- .../v1/models/synthetics_batch_details.rb | 3 +-- .../v1/models/synthetics_batch_details_data.rb | 3 +-- .../v1/models/synthetics_batch_result.rb | 3 +-- .../v1/models/synthetics_browser_error.rb | 3 +-- .../v1/models/synthetics_browser_error_type.rb | 2 +- .../v1/models/synthetics_browser_test.rb | 3 +-- .../v1/models/synthetics_browser_test_config.rb | 3 +-- .../v1/models/synthetics_browser_test_failure_code.rb | 2 +- .../v1/models/synthetics_browser_test_result_data.rb | 3 +-- .../v1/models/synthetics_browser_test_result_failure.rb | 3 +-- .../v1/models/synthetics_browser_test_result_full.rb | 3 +-- .../models/synthetics_browser_test_result_full_check.rb | 3 +-- .../v1/models/synthetics_browser_test_result_short.rb | 3 +-- .../synthetics_browser_test_result_short_result.rb | 3 +-- .../v1/models/synthetics_browser_test_type.rb | 2 +- .../v1/models/synthetics_browser_variable.rb | 3 +-- .../v1/models/synthetics_browser_variable_type.rb | 2 +- .../v1/models/synthetics_check_type.rb | 2 +- .../v1/models/synthetics_ci_batch_metadata.rb | 3 +-- .../v1/models/synthetics_ci_batch_metadata_ci.rb | 3 +-- .../v1/models/synthetics_ci_batch_metadata_git.rb | 3 +-- .../v1/models/synthetics_ci_batch_metadata_pipeline.rb | 3 +-- .../v1/models/synthetics_ci_batch_metadata_provider.rb | 3 +-- lib/datadog_api_client/v1/models/synthetics_ci_test.rb | 3 +-- .../v1/models/synthetics_ci_test_body.rb | 3 +-- .../v1/models/synthetics_config_variable.rb | 3 +-- .../v1/models/synthetics_config_variable_type.rb | 2 +- .../v1/models/synthetics_core_web_vitals.rb | 3 +-- .../v1/models/synthetics_delete_tests_payload.rb | 3 +-- .../v1/models/synthetics_delete_tests_response.rb | 3 +-- .../v1/models/synthetics_deleted_test.rb | 3 +-- lib/datadog_api_client/v1/models/synthetics_device.rb | 3 +-- lib/datadog_api_client/v1/models/synthetics_device_id.rb | 2 +- .../synthetics_get_api_test_latest_results_response.rb | 3 +-- ...ynthetics_get_browser_test_latest_results_response.rb | 3 +-- .../v1/models/synthetics_global_variable.rb | 3 +-- .../v1/models/synthetics_global_variable_attributes.rb | 3 +-- .../synthetics_global_variable_parse_test_options.rb | 3 +-- ...synthetics_global_variable_parse_test_options_type.rb | 2 +- .../v1/models/synthetics_global_variable_parser_type.rb | 2 +- .../v1/models/synthetics_global_variable_value.rb | 3 +-- .../models/synthetics_list_global_variables_response.rb | 3 +-- .../v1/models/synthetics_list_tests_response.rb | 3 +-- lib/datadog_api_client/v1/models/synthetics_location.rb | 3 +-- lib/datadog_api_client/v1/models/synthetics_locations.rb | 3 +-- .../v1/models/synthetics_parsing_options.rb | 3 +-- .../v1/models/synthetics_playing_tab.rb | 2 +- .../v1/models/synthetics_private_location.rb | 3 +-- .../synthetics_private_location_creation_response.rb | 3 +-- ...ivate_location_creation_response_result_encryption.rb | 3 +-- .../v1/models/synthetics_private_location_secrets.rb | 3 +-- ...synthetics_private_location_secrets_authentication.rb | 3 +-- ...thetics_private_location_secrets_config_decryption.rb | 3 +-- .../v1/models/synthetics_ssl_certificate.rb | 3 +-- .../v1/models/synthetics_ssl_certificate_issuer.rb | 3 +-- .../v1/models/synthetics_ssl_certificate_subject.rb | 3 +-- lib/datadog_api_client/v1/models/synthetics_status.rb | 2 +- lib/datadog_api_client/v1/models/synthetics_step.rb | 3 +-- .../v1/models/synthetics_step_detail.rb | 3 +-- .../v1/models/synthetics_step_detail_warning.rb | 3 +-- lib/datadog_api_client/v1/models/synthetics_step_type.rb | 2 +- .../v1/models/synthetics_test_config.rb | 3 +-- .../v1/models/synthetics_test_details.rb | 3 +-- .../v1/models/synthetics_test_details_sub_type.rb | 2 +- .../v1/models/synthetics_test_details_type.rb | 2 +- .../v1/models/synthetics_test_execution_rule.rb | 2 +- .../v1/models/synthetics_test_monitor_status.rb | 2 +- .../v1/models/synthetics_test_options.rb | 3 +-- .../v1/models/synthetics_test_options_monitor_options.rb | 3 +-- .../v1/models/synthetics_test_options_retry.rb | 3 +-- .../v1/models/synthetics_test_pause_status.rb | 2 +- .../v1/models/synthetics_test_process_status.rb | 2 +- .../v1/models/synthetics_test_request.rb | 3 +-- .../v1/models/synthetics_test_request_certificate.rb | 3 +-- .../models/synthetics_test_request_certificate_item.rb | 3 +-- .../v1/models/synthetics_test_request_proxy.rb | 3 +-- lib/datadog_api_client/v1/models/synthetics_timing.rb | 3 +-- .../v1/models/synthetics_trigger_body.rb | 3 +-- .../v1/models/synthetics_trigger_ci_test_location.rb | 3 +-- .../v1/models/synthetics_trigger_ci_test_run_result.rb | 3 +-- .../v1/models/synthetics_trigger_ci_tests_response.rb | 3 +-- .../v1/models/synthetics_trigger_test.rb | 3 +-- .../synthetics_update_test_pause_status_payload.rb | 3 +-- .../v1/models/synthetics_variable_parser.rb | 3 +-- .../v1/models/synthetics_warning_type.rb | 2 +- .../v1/models/table_widget_cell_display_mode.rb | 2 +- .../v1/models/table_widget_definition.rb | 3 +-- .../v1/models/table_widget_definition_type.rb | 2 +- .../v1/models/table_widget_has_search_bar.rb | 2 +- lib/datadog_api_client/v1/models/table_widget_request.rb | 3 +-- lib/datadog_api_client/v1/models/tag_to_hosts.rb | 3 +-- lib/datadog_api_client/v1/models/target_format_type.rb | 2 +- .../v1/models/timeseries_widget_definition.rb | 3 +-- .../v1/models/timeseries_widget_definition_type.rb | 2 +- .../v1/models/timeseries_widget_expression_alias.rb | 3 +-- .../v1/models/timeseries_widget_legend_column.rb | 2 +- .../v1/models/timeseries_widget_legend_layout.rb | 2 +- .../v1/models/timeseries_widget_request.rb | 3 +-- .../v1/models/toplist_widget_definition.rb | 3 +-- .../v1/models/toplist_widget_definition_type.rb | 2 +- .../v1/models/toplist_widget_request.rb | 3 +-- lib/datadog_api_client/v1/models/tree_map_color_by.rb | 2 +- lib/datadog_api_client/v1/models/tree_map_group_by.rb | 2 +- lib/datadog_api_client/v1/models/tree_map_size_by.rb | 2 +- .../v1/models/tree_map_widget_definition.rb | 3 +-- .../v1/models/tree_map_widget_definition_type.rb | 2 +- .../v1/models/tree_map_widget_request.rb | 3 +-- .../v1/models/usage_analyzed_logs_hour.rb | 3 +-- .../v1/models/usage_analyzed_logs_response.rb | 3 +-- .../v1/models/usage_attribution_aggregates_body.rb | 3 +-- .../v1/models/usage_attribution_body.rb | 3 +-- .../v1/models/usage_attribution_metadata.rb | 3 +-- .../v1/models/usage_attribution_pagination.rb | 3 +-- .../v1/models/usage_attribution_response.rb | 3 +-- .../v1/models/usage_attribution_sort.rb | 2 +- .../v1/models/usage_attribution_supported_metrics.rb | 2 +- .../v1/models/usage_attribution_values.rb | 3 +-- .../v1/models/usage_audit_logs_hour.rb | 3 +-- .../v1/models/usage_audit_logs_response.rb | 3 +-- .../v1/models/usage_billable_summary_body.rb | 3 +-- .../v1/models/usage_billable_summary_hour.rb | 3 +-- .../v1/models/usage_billable_summary_keys.rb | 3 +-- .../v1/models/usage_billable_summary_response.rb | 3 +-- .../usage_cloud_security_posture_management_hour.rb | 3 +-- .../usage_cloud_security_posture_management_response.rb | 3 +-- .../v1/models/usage_custom_reports_attributes.rb | 3 +-- .../v1/models/usage_custom_reports_data.rb | 3 +-- .../v1/models/usage_custom_reports_meta.rb | 3 +-- .../v1/models/usage_custom_reports_page.rb | 3 +-- .../v1/models/usage_custom_reports_response.rb | 3 +-- lib/datadog_api_client/v1/models/usage_cws_hour.rb | 3 +-- lib/datadog_api_client/v1/models/usage_cws_response.rb | 3 +-- lib/datadog_api_client/v1/models/usage_dbm_hour.rb | 3 +-- lib/datadog_api_client/v1/models/usage_dbm_response.rb | 3 +-- lib/datadog_api_client/v1/models/usage_fargate_hour.rb | 3 +-- .../v1/models/usage_fargate_response.rb | 3 +-- lib/datadog_api_client/v1/models/usage_host_hour.rb | 3 +-- lib/datadog_api_client/v1/models/usage_hosts_response.rb | 3 +-- .../v1/models/usage_incident_management_hour.rb | 3 +-- .../v1/models/usage_incident_management_response.rb | 3 +-- .../v1/models/usage_indexed_spans_hour.rb | 3 +-- .../v1/models/usage_indexed_spans_response.rb | 3 +-- .../v1/models/usage_ingested_spans_hour.rb | 3 +-- .../v1/models/usage_ingested_spans_response.rb | 3 +-- lib/datadog_api_client/v1/models/usage_io_t_hour.rb | 3 +-- lib/datadog_api_client/v1/models/usage_io_t_response.rb | 3 +-- lib/datadog_api_client/v1/models/usage_lambda_hour.rb | 3 +-- .../v1/models/usage_lambda_response.rb | 3 +-- .../v1/models/usage_logs_by_index_hour.rb | 3 +-- .../v1/models/usage_logs_by_index_response.rb | 3 +-- .../v1/models/usage_logs_by_retention_hour.rb | 3 +-- .../v1/models/usage_logs_by_retention_response.rb | 3 +-- lib/datadog_api_client/v1/models/usage_logs_hour.rb | 3 +-- lib/datadog_api_client/v1/models/usage_logs_response.rb | 3 +-- .../v1/models/usage_metric_category.rb | 2 +- .../v1/models/usage_network_flows_hour.rb | 3 +-- .../v1/models/usage_network_flows_response.rb | 3 +-- .../v1/models/usage_network_hosts_hour.rb | 3 +-- .../v1/models/usage_network_hosts_response.rb | 3 +-- lib/datadog_api_client/v1/models/usage_profiling_hour.rb | 3 +-- .../v1/models/usage_profiling_response.rb | 3 +-- lib/datadog_api_client/v1/models/usage_reports_type.rb | 2 +- .../v1/models/usage_rum_sessions_hour.rb | 3 +-- .../v1/models/usage_rum_sessions_response.rb | 3 +-- lib/datadog_api_client/v1/models/usage_rum_units_hour.rb | 3 +-- .../v1/models/usage_rum_units_response.rb | 3 +-- lib/datadog_api_client/v1/models/usage_sds_hour.rb | 3 +-- lib/datadog_api_client/v1/models/usage_sds_response.rb | 3 +-- lib/datadog_api_client/v1/models/usage_snmp_hour.rb | 3 +-- lib/datadog_api_client/v1/models/usage_snmp_response.rb | 3 +-- lib/datadog_api_client/v1/models/usage_sort.rb | 2 +- lib/datadog_api_client/v1/models/usage_sort_direction.rb | 2 +- .../models/usage_specified_custom_reports_attributes.rb | 3 +-- .../v1/models/usage_specified_custom_reports_data.rb | 3 +-- .../v1/models/usage_specified_custom_reports_meta.rb | 3 +-- .../v1/models/usage_specified_custom_reports_page.rb | 3 +-- .../v1/models/usage_specified_custom_reports_response.rb | 3 +-- lib/datadog_api_client/v1/models/usage_summary_date.rb | 3 +-- .../v1/models/usage_summary_date_org.rb | 3 +-- .../v1/models/usage_summary_response.rb | 3 +-- .../v1/models/usage_synthetics_api_hour.rb | 3 +-- .../v1/models/usage_synthetics_api_response.rb | 3 +-- .../v1/models/usage_synthetics_browser_hour.rb | 3 +-- .../v1/models/usage_synthetics_browser_response.rb | 3 +-- .../v1/models/usage_synthetics_hour.rb | 3 +-- .../v1/models/usage_synthetics_response.rb | 3 +-- .../v1/models/usage_timeseries_hour.rb | 3 +-- .../v1/models/usage_timeseries_response.rb | 3 +-- .../v1/models/usage_top_avg_metrics_hour.rb | 3 +-- .../v1/models/usage_top_avg_metrics_metadata.rb | 3 +-- .../v1/models/usage_top_avg_metrics_response.rb | 3 +-- lib/datadog_api_client/v1/models/user.rb | 3 +-- .../v1/models/user_disable_response.rb | 3 +-- lib/datadog_api_client/v1/models/user_list_response.rb | 3 +-- lib/datadog_api_client/v1/models/user_response.rb | 3 +-- lib/datadog_api_client/v1/models/webhooks_integration.rb | 3 +-- .../v1/models/webhooks_integration_custom_variable.rb | 3 +-- .../webhooks_integration_custom_variable_response.rb | 3 +-- ...ebhooks_integration_custom_variable_update_request.rb | 3 +-- .../v1/models/webhooks_integration_encoding.rb | 2 +- .../v1/models/webhooks_integration_update_request.rb | 3 +-- lib/datadog_api_client/v1/models/widget.rb | 3 +-- lib/datadog_api_client/v1/models/widget_aggregator.rb | 2 +- lib/datadog_api_client/v1/models/widget_axis.rb | 3 +-- lib/datadog_api_client/v1/models/widget_change_type.rb | 2 +- .../v1/models/widget_color_preference.rb | 2 +- lib/datadog_api_client/v1/models/widget_comparator.rb | 2 +- lib/datadog_api_client/v1/models/widget_compare_to.rb | 2 +- .../v1/models/widget_conditional_format.rb | 3 +-- lib/datadog_api_client/v1/models/widget_custom_link.rb | 3 +-- lib/datadog_api_client/v1/models/widget_definition.rb | 3 +-- lib/datadog_api_client/v1/models/widget_display_type.rb | 2 +- lib/datadog_api_client/v1/models/widget_event.rb | 3 +-- lib/datadog_api_client/v1/models/widget_event_size.rb | 2 +- lib/datadog_api_client/v1/models/widget_field_sort.rb | 3 +-- lib/datadog_api_client/v1/models/widget_formula.rb | 3 +-- lib/datadog_api_client/v1/models/widget_formula_limit.rb | 3 +-- lib/datadog_api_client/v1/models/widget_grouping.rb | 2 +- .../v1/models/widget_horizontal_align.rb | 2 +- lib/datadog_api_client/v1/models/widget_image_sizing.rb | 2 +- lib/datadog_api_client/v1/models/widget_layout.rb | 3 +-- lib/datadog_api_client/v1/models/widget_layout_type.rb | 2 +- lib/datadog_api_client/v1/models/widget_line_type.rb | 2 +- lib/datadog_api_client/v1/models/widget_line_width.rb | 2 +- lib/datadog_api_client/v1/models/widget_live_span.rb | 2 +- lib/datadog_api_client/v1/models/widget_margin.rb | 2 +- lib/datadog_api_client/v1/models/widget_marker.rb | 3 +-- .../v1/models/widget_message_display.rb | 2 +- .../v1/models/widget_monitor_summary_display_format.rb | 2 +- .../v1/models/widget_monitor_summary_sort.rb | 2 +- lib/datadog_api_client/v1/models/widget_node_type.rb | 2 +- lib/datadog_api_client/v1/models/widget_order_by.rb | 2 +- lib/datadog_api_client/v1/models/widget_palette.rb | 2 +- lib/datadog_api_client/v1/models/widget_request_style.rb | 3 +-- .../v1/models/widget_service_summary_display_format.rb | 2 +- lib/datadog_api_client/v1/models/widget_size_format.rb | 2 +- lib/datadog_api_client/v1/models/widget_sort.rb | 2 +- lib/datadog_api_client/v1/models/widget_style.rb | 3 +-- lib/datadog_api_client/v1/models/widget_summary_type.rb | 2 +- lib/datadog_api_client/v1/models/widget_text_align.rb | 2 +- lib/datadog_api_client/v1/models/widget_tick_edge.rb | 2 +- lib/datadog_api_client/v1/models/widget_time.rb | 3 +-- lib/datadog_api_client/v1/models/widget_time_windows.rb | 2 +- .../v1/models/widget_vertical_align.rb | 2 +- lib/datadog_api_client/v1/models/widget_view_mode.rb | 2 +- lib/datadog_api_client/v1/models/widget_viz_type.rb | 2 +- lib/datadog_api_client/v2/models/api_error_response.rb | 3 +-- .../v2/models/api_key_create_attributes.rb | 3 +-- lib/datadog_api_client/v2/models/api_key_create_data.rb | 3 +-- .../v2/models/api_key_create_request.rb | 3 +-- .../v2/models/api_key_relationships.rb | 3 +-- lib/datadog_api_client/v2/models/api_key_response.rb | 3 +-- .../v2/models/api_key_response_included_item.rb | 3 +-- .../v2/models/api_key_update_attributes.rb | 3 +-- lib/datadog_api_client/v2/models/api_key_update_data.rb | 3 +-- .../v2/models/api_key_update_request.rb | 3 +-- lib/datadog_api_client/v2/models/api_keys_response.rb | 3 +-- lib/datadog_api_client/v2/models/api_keys_sort.rb | 2 +- lib/datadog_api_client/v2/models/api_keys_type.rb | 2 +- .../v2/models/application_key_create_attributes.rb | 3 +-- .../v2/models/application_key_create_data.rb | 3 +-- .../v2/models/application_key_create_request.rb | 3 +-- .../v2/models/application_key_relationships.rb | 3 +-- .../v2/models/application_key_response.rb | 3 +-- .../v2/models/application_key_response_included_item.rb | 3 +-- .../v2/models/application_key_update_attributes.rb | 3 +-- .../v2/models/application_key_update_data.rb | 3 +-- .../v2/models/application_key_update_request.rb | 3 +-- .../v2/models/application_keys_sort.rb | 2 +- .../v2/models/application_keys_type.rb | 2 +- .../cloud_workload_security_agent_rule_attributes.rb | 3 +-- ...oud_workload_security_agent_rule_create_attributes.rb | 3 +-- .../cloud_workload_security_agent_rule_create_data.rb | 3 +-- .../cloud_workload_security_agent_rule_create_request.rb | 3 +-- ...ud_workload_security_agent_rule_creator_attributes.rb | 3 +-- .../v2/models/cloud_workload_security_agent_rule_data.rb | 3 +-- .../cloud_workload_security_agent_rule_response.rb | 3 +-- .../v2/models/cloud_workload_security_agent_rule_type.rb | 2 +- ...oud_workload_security_agent_rule_update_attributes.rb | 3 +-- .../cloud_workload_security_agent_rule_update_data.rb | 3 +-- .../cloud_workload_security_agent_rule_update_request.rb | 3 +-- ...ud_workload_security_agent_rule_updater_attributes.rb | 3 +-- .../cloud_workload_security_agent_rules_list_response.rb | 3 +-- lib/datadog_api_client/v2/models/content_encoding.rb | 2 +- lib/datadog_api_client/v2/models/creator.rb | 3 +-- .../v2/models/dashboard_list_add_items_request.rb | 3 +-- .../v2/models/dashboard_list_add_items_response.rb | 3 +-- .../v2/models/dashboard_list_delete_items_request.rb | 3 +-- .../v2/models/dashboard_list_delete_items_response.rb | 3 +-- lib/datadog_api_client/v2/models/dashboard_list_item.rb | 3 +-- .../v2/models/dashboard_list_item_request.rb | 3 +-- .../v2/models/dashboard_list_item_response.rb | 3 +-- lib/datadog_api_client/v2/models/dashboard_list_items.rb | 3 +-- .../v2/models/dashboard_list_update_items_request.rb | 3 +-- .../v2/models/dashboard_list_update_items_response.rb | 3 +-- lib/datadog_api_client/v2/models/dashboard_type.rb | 2 +- lib/datadog_api_client/v2/models/full_api_key.rb | 3 +-- .../v2/models/full_api_key_attributes.rb | 3 +-- lib/datadog_api_client/v2/models/full_application_key.rb | 3 +-- .../v2/models/full_application_key_attributes.rb | 3 +-- lib/datadog_api_client/v2/models/http_log_error.rb | 3 +-- lib/datadog_api_client/v2/models/http_log_errors.rb | 3 +-- lib/datadog_api_client/v2/models/http_log_item.rb | 3 +-- .../v2/models/incident_create_attributes.rb | 3 +-- lib/datadog_api_client/v2/models/incident_create_data.rb | 3 +-- .../v2/models/incident_create_relationships.rb | 3 +-- .../v2/models/incident_create_request.rb | 3 +-- .../v2/models/incident_field_attributes.rb | 3 +-- .../models/incident_field_attributes_multiple_value.rb | 3 +-- .../v2/models/incident_field_attributes_single_value.rb | 3 +-- .../incident_field_attributes_single_value_type.rb | 2 +- .../v2/models/incident_field_attributes_value_type.rb | 2 +- .../v2/models/incident_integration_metadata_type.rb | 2 +- .../v2/models/incident_notification_handle.rb | 3 +-- .../v2/models/incident_postmortem_type.rb | 2 +- .../v2/models/incident_related_object.rb | 2 +- lib/datadog_api_client/v2/models/incident_response.rb | 3 +-- .../v2/models/incident_response_attributes.rb | 3 +-- .../v2/models/incident_response_data.rb | 3 +-- .../v2/models/incident_response_included_item.rb | 3 +-- .../v2/models/incident_response_relationships.rb | 3 +-- .../v2/models/incident_service_create_attributes.rb | 3 +-- .../v2/models/incident_service_create_data.rb | 3 +-- .../v2/models/incident_service_create_request.rb | 3 +-- .../v2/models/incident_service_included_items.rb | 3 +-- .../v2/models/incident_service_relationships.rb | 3 +-- .../v2/models/incident_service_response.rb | 3 +-- .../v2/models/incident_service_response_attributes.rb | 3 +-- .../v2/models/incident_service_response_data.rb | 3 +-- .../v2/models/incident_service_type.rb | 2 +- .../v2/models/incident_service_update_attributes.rb | 3 +-- .../v2/models/incident_service_update_data.rb | 3 +-- .../v2/models/incident_service_update_request.rb | 3 +-- .../v2/models/incident_services_response.rb | 3 +-- .../v2/models/incident_services_response_meta.rb | 3 +-- .../models/incident_services_response_meta_pagination.rb | 3 +-- .../v2/models/incident_team_create_attributes.rb | 3 +-- .../v2/models/incident_team_create_data.rb | 3 +-- .../v2/models/incident_team_create_request.rb | 3 +-- .../v2/models/incident_team_included_items.rb | 3 +-- .../v2/models/incident_team_relationships.rb | 3 +-- .../v2/models/incident_team_response.rb | 3 +-- .../v2/models/incident_team_response_attributes.rb | 3 +-- .../v2/models/incident_team_response_data.rb | 3 +-- lib/datadog_api_client/v2/models/incident_team_type.rb | 2 +- .../v2/models/incident_team_update_attributes.rb | 3 +-- .../v2/models/incident_team_update_data.rb | 3 +-- .../v2/models/incident_team_update_request.rb | 3 +-- .../v2/models/incident_teams_response.rb | 3 +-- .../v2/models/incident_teams_response_meta.rb | 3 +-- .../v2/models/incident_teams_response_meta_pagination.rb | 3 +-- .../models/incident_timeline_cell_create_attributes.rb | 3 +-- .../incident_timeline_cell_markdown_content_type.rb | 2 +- .../incident_timeline_cell_markdown_create_attributes.rb | 3 +-- ...t_timeline_cell_markdown_create_attributes_content.rb | 3 +-- lib/datadog_api_client/v2/models/incident_type.rb | 2 +- .../v2/models/incident_update_attributes.rb | 3 +-- lib/datadog_api_client/v2/models/incident_update_data.rb | 3 +-- .../v2/models/incident_update_relationships.rb | 3 +-- .../v2/models/incident_update_request.rb | 3 +-- lib/datadog_api_client/v2/models/incidents_response.rb | 3 +-- .../v2/models/incidents_response_meta.rb | 3 +-- .../v2/models/incidents_response_meta_pagination.rb | 3 +-- .../v2/models/list_application_keys_response.rb | 3 +-- lib/datadog_api_client/v2/models/log.rb | 3 +-- lib/datadog_api_client/v2/models/log_attributes.rb | 3 +-- lib/datadog_api_client/v2/models/log_type.rb | 2 +- .../v2/models/logs_aggregate_bucket.rb | 3 +-- .../v2/models/logs_aggregate_bucket_value.rb | 3 +-- .../logs_aggregate_bucket_value_timeseries_point.rb | 3 +-- .../v2/models/logs_aggregate_request.rb | 3 +-- .../v2/models/logs_aggregate_request_page.rb | 3 +-- .../v2/models/logs_aggregate_response.rb | 3 +-- .../v2/models/logs_aggregate_response_data.rb | 3 +-- .../v2/models/logs_aggregate_response_status.rb | 2 +- lib/datadog_api_client/v2/models/logs_aggregate_sort.rb | 3 +-- .../v2/models/logs_aggregate_sort_type.rb | 2 +- .../v2/models/logs_aggregation_function.rb | 2 +- lib/datadog_api_client/v2/models/logs_archive.rb | 3 +-- .../v2/models/logs_archive_attributes.rb | 3 +-- .../v2/models/logs_archive_create_request.rb | 3 +-- .../v2/models/logs_archive_create_request_attributes.rb | 3 +-- .../v2/models/logs_archive_create_request_definition.rb | 3 +-- .../v2/models/logs_archive_create_request_destination.rb | 3 +-- .../v2/models/logs_archive_definition.rb | 3 +-- .../v2/models/logs_archive_destination.rb | 3 +-- .../v2/models/logs_archive_destination_azure.rb | 3 +-- .../v2/models/logs_archive_destination_azure_type.rb | 2 +- .../v2/models/logs_archive_destination_gcs.rb | 3 +-- .../v2/models/logs_archive_destination_gcs_type.rb | 2 +- .../v2/models/logs_archive_destination_s3.rb | 3 +-- .../v2/models/logs_archive_destination_s3_type.rb | 2 +- .../v2/models/logs_archive_integration_azure.rb | 3 +-- .../v2/models/logs_archive_integration_gcs.rb | 3 +-- .../v2/models/logs_archive_integration_s3.rb | 3 +-- lib/datadog_api_client/v2/models/logs_archive_order.rb | 3 +-- .../v2/models/logs_archive_order_attributes.rb | 3 +-- .../v2/models/logs_archive_order_definition.rb | 3 +-- .../v2/models/logs_archive_order_definition_type.rb | 2 +- lib/datadog_api_client/v2/models/logs_archive_state.rb | 2 +- lib/datadog_api_client/v2/models/logs_archives.rb | 3 +-- lib/datadog_api_client/v2/models/logs_compute.rb | 3 +-- lib/datadog_api_client/v2/models/logs_compute_type.rb | 2 +- lib/datadog_api_client/v2/models/logs_group_by.rb | 3 +-- .../v2/models/logs_group_by_histogram.rb | 3 +-- .../v2/models/logs_group_by_missing.rb | 3 +-- lib/datadog_api_client/v2/models/logs_group_by_total.rb | 3 +-- lib/datadog_api_client/v2/models/logs_list_request.rb | 3 +-- .../v2/models/logs_list_request_page.rb | 3 +-- lib/datadog_api_client/v2/models/logs_list_response.rb | 3 +-- .../v2/models/logs_list_response_links.rb | 3 +-- lib/datadog_api_client/v2/models/logs_metric_compute.rb | 3 +-- .../v2/models/logs_metric_compute_aggregation_type.rb | 2 +- .../v2/models/logs_metric_create_attributes.rb | 3 +-- .../v2/models/logs_metric_create_data.rb | 3 +-- .../v2/models/logs_metric_create_request.rb | 3 +-- lib/datadog_api_client/v2/models/logs_metric_filter.rb | 3 +-- lib/datadog_api_client/v2/models/logs_metric_group_by.rb | 3 +-- lib/datadog_api_client/v2/models/logs_metric_response.rb | 3 +-- .../v2/models/logs_metric_response_attributes.rb | 3 +-- .../v2/models/logs_metric_response_compute.rb | 3 +-- .../logs_metric_response_compute_aggregation_type.rb | 2 +- .../v2/models/logs_metric_response_data.rb | 3 +-- .../v2/models/logs_metric_response_filter.rb | 3 +-- .../v2/models/logs_metric_response_group_by.rb | 3 +-- lib/datadog_api_client/v2/models/logs_metric_type.rb | 2 +- .../v2/models/logs_metric_update_attributes.rb | 3 +-- .../v2/models/logs_metric_update_data.rb | 3 +-- .../v2/models/logs_metric_update_request.rb | 3 +-- .../v2/models/logs_metrics_response.rb | 3 +-- lib/datadog_api_client/v2/models/logs_query_filter.rb | 3 +-- lib/datadog_api_client/v2/models/logs_query_options.rb | 3 +-- .../v2/models/logs_response_metadata.rb | 3 +-- .../v2/models/logs_response_metadata_page.rb | 3 +-- lib/datadog_api_client/v2/models/logs_sort.rb | 2 +- lib/datadog_api_client/v2/models/logs_sort_order.rb | 2 +- lib/datadog_api_client/v2/models/logs_warning.rb | 3 +-- lib/datadog_api_client/v2/models/metric.rb | 3 +-- lib/datadog_api_client/v2/models/metric_all_tags.rb | 3 +-- .../v2/models/metric_all_tags_attributes.rb | 3 +-- .../v2/models/metric_all_tags_response.rb | 3 +-- .../v2/models/metric_custom_aggregation.rb | 3 +-- .../v2/models/metric_custom_space_aggregation.rb | 2 +- .../v2/models/metric_custom_time_aggregation.rb | 2 +- .../v2/models/metric_distinct_volume.rb | 3 +-- .../v2/models/metric_distinct_volume_attributes.rb | 3 +-- .../v2/models/metric_distinct_volume_type.rb | 2 +- .../v2/models/metric_ingested_indexed_volume.rb | 3 +-- .../models/metric_ingested_indexed_volume_attributes.rb | 3 +-- .../v2/models/metric_ingested_indexed_volume_type.rb | 2 +- .../v2/models/metric_tag_configuration.rb | 3 +-- .../v2/models/metric_tag_configuration_attributes.rb | 3 +-- .../models/metric_tag_configuration_create_attributes.rb | 3 +-- .../v2/models/metric_tag_configuration_create_data.rb | 3 +-- .../v2/models/metric_tag_configuration_create_request.rb | 3 +-- .../v2/models/metric_tag_configuration_metric_types.rb | 2 +- .../v2/models/metric_tag_configuration_response.rb | 3 +-- .../v2/models/metric_tag_configuration_type.rb | 2 +- .../models/metric_tag_configuration_update_attributes.rb | 3 +-- .../v2/models/metric_tag_configuration_update_data.rb | 3 +-- .../v2/models/metric_tag_configuration_update_request.rb | 3 +-- lib/datadog_api_client/v2/models/metric_type.rb | 2 +- lib/datadog_api_client/v2/models/metric_volumes.rb | 3 +-- .../v2/models/metric_volumes_response.rb | 3 +-- .../v2/models/metrics_and_metric_tag_configurations.rb | 3 +-- .../metrics_and_metric_tag_configurations_response.rb | 3 +-- lib/datadog_api_client/v2/models/organization.rb | 3 +-- .../v2/models/organization_attributes.rb | 3 +-- lib/datadog_api_client/v2/models/organizations_type.rb | 2 +- lib/datadog_api_client/v2/models/pagination.rb | 3 +-- lib/datadog_api_client/v2/models/partial_api_key.rb | 3 +-- .../v2/models/partial_api_key_attributes.rb | 3 +-- .../v2/models/partial_application_key.rb | 3 +-- .../v2/models/partial_application_key_attributes.rb | 3 +-- .../v2/models/partial_application_key_response.rb | 3 +-- lib/datadog_api_client/v2/models/permission.rb | 3 +-- .../v2/models/permission_attributes.rb | 3 +-- lib/datadog_api_client/v2/models/permissions_response.rb | 3 +-- lib/datadog_api_client/v2/models/permissions_type.rb | 2 +- .../v2/models/process_summaries_meta.rb | 3 +-- .../v2/models/process_summaries_meta_page.rb | 3 +-- .../v2/models/process_summaries_response.rb | 3 +-- lib/datadog_api_client/v2/models/process_summary.rb | 3 +-- .../v2/models/process_summary_attributes.rb | 3 +-- lib/datadog_api_client/v2/models/process_summary_type.rb | 2 +- lib/datadog_api_client/v2/models/query_sort_order.rb | 2 +- ...relationship_to_incident_integration_metadata_data.rb | 3 +-- .../relationship_to_incident_integration_metadatas.rb | 3 +-- .../v2/models/relationship_to_incident_postmortem.rb | 3 +-- .../models/relationship_to_incident_postmortem_data.rb | 3 +-- .../v2/models/relationship_to_organization.rb | 3 +-- .../v2/models/relationship_to_organization_data.rb | 3 +-- .../v2/models/relationship_to_organizations.rb | 3 +-- .../v2/models/relationship_to_permission.rb | 3 +-- .../v2/models/relationship_to_permission_data.rb | 3 +-- .../v2/models/relationship_to_permissions.rb | 3 +-- lib/datadog_api_client/v2/models/relationship_to_role.rb | 3 +-- .../v2/models/relationship_to_role_data.rb | 3 +-- .../v2/models/relationship_to_roles.rb | 3 +-- lib/datadog_api_client/v2/models/relationship_to_user.rb | 3 +-- .../v2/models/relationship_to_user_data.rb | 3 +-- .../v2/models/relationship_to_users.rb | 3 +-- .../v2/models/response_meta_attributes.rb | 3 +-- lib/datadog_api_client/v2/models/role.rb | 3 +-- lib/datadog_api_client/v2/models/role_attributes.rb | 3 +-- lib/datadog_api_client/v2/models/role_clone.rb | 3 +-- .../v2/models/role_clone_attributes.rb | 3 +-- lib/datadog_api_client/v2/models/role_clone_request.rb | 3 +-- .../v2/models/role_create_attributes.rb | 3 +-- lib/datadog_api_client/v2/models/role_create_data.rb | 3 +-- lib/datadog_api_client/v2/models/role_create_request.rb | 3 +-- lib/datadog_api_client/v2/models/role_create_response.rb | 3 +-- .../v2/models/role_create_response_data.rb | 3 +-- lib/datadog_api_client/v2/models/role_relationships.rb | 3 +-- lib/datadog_api_client/v2/models/role_response.rb | 3 +-- .../v2/models/role_response_relationships.rb | 3 +-- .../v2/models/role_update_attributes.rb | 3 +-- lib/datadog_api_client/v2/models/role_update_data.rb | 3 +-- lib/datadog_api_client/v2/models/role_update_request.rb | 3 +-- lib/datadog_api_client/v2/models/role_update_response.rb | 3 +-- .../v2/models/role_update_response_data.rb | 3 +-- lib/datadog_api_client/v2/models/roles_response.rb | 3 +-- lib/datadog_api_client/v2/models/roles_sort.rb | 2 +- lib/datadog_api_client/v2/models/roles_type.rb | 2 +- lib/datadog_api_client/v2/models/security_filter.rb | 3 +-- .../v2/models/security_filter_attributes.rb | 3 +-- .../v2/models/security_filter_create_attributes.rb | 3 +-- .../v2/models/security_filter_create_data.rb | 3 +-- .../v2/models/security_filter_create_request.rb | 3 +-- .../v2/models/security_filter_exclusion_filter.rb | 3 +-- .../models/security_filter_exclusion_filter_response.rb | 3 +-- .../v2/models/security_filter_filtered_data_type.rb | 2 +- lib/datadog_api_client/v2/models/security_filter_meta.rb | 3 +-- .../v2/models/security_filter_response.rb | 3 +-- lib/datadog_api_client/v2/models/security_filter_type.rb | 2 +- .../v2/models/security_filter_update_attributes.rb | 3 +-- .../v2/models/security_filter_update_data.rb | 3 +-- .../v2/models/security_filter_update_request.rb | 3 +-- .../v2/models/security_filters_response.rb | 3 +-- .../v2/models/security_monitoring_filter.rb | 3 +-- .../v2/models/security_monitoring_filter_action.rb | 2 +- .../v2/models/security_monitoring_list_rules_response.rb | 3 +-- .../v2/models/security_monitoring_rule_case.rb | 3 +-- .../v2/models/security_monitoring_rule_case_create.rb | 3 +-- .../v2/models/security_monitoring_rule_create_payload.rb | 3 +-- .../models/security_monitoring_rule_detection_method.rb | 2 +- .../models/security_monitoring_rule_evaluation_window.rb | 2 +- .../v2/models/security_monitoring_rule_keep_alive.rb | 2 +- .../security_monitoring_rule_max_signal_duration.rb | 2 +- .../models/security_monitoring_rule_new_value_options.rb | 3 +-- ...ity_monitoring_rule_new_value_options_forget_after.rb | 2 +- ...onitoring_rule_new_value_options_learning_duration.rb | 2 +- .../v2/models/security_monitoring_rule_options.rb | 3 +-- .../v2/models/security_monitoring_rule_query.rb | 3 +-- .../models/security_monitoring_rule_query_aggregation.rb | 2 +- .../v2/models/security_monitoring_rule_query_create.rb | 3 +-- .../v2/models/security_monitoring_rule_response.rb | 3 +-- .../v2/models/security_monitoring_rule_severity.rb | 2 +- .../v2/models/security_monitoring_rule_type_create.rb | 2 +- .../v2/models/security_monitoring_rule_type_read.rb | 2 +- .../v2/models/security_monitoring_rule_update_payload.rb | 3 +-- .../v2/models/security_monitoring_signal.rb | 3 +-- .../v2/models/security_monitoring_signal_attributes.rb | 3 +-- .../v2/models/security_monitoring_signal_list_request.rb | 3 +-- .../security_monitoring_signal_list_request_filter.rb | 3 +-- .../security_monitoring_signal_list_request_page.rb | 3 +-- .../v2/models/security_monitoring_signal_type.rb | 2 +- .../models/security_monitoring_signals_list_response.rb | 3 +-- .../security_monitoring_signals_list_response_links.rb | 3 +-- .../security_monitoring_signals_list_response_meta.rb | 3 +-- ...ecurity_monitoring_signals_list_response_meta_page.rb | 3 +-- .../v2/models/security_monitoring_signals_sort.rb | 2 +- .../v2/models/service_account_create_attributes.rb | 3 +-- .../v2/models/service_account_create_data.rb | 3 +-- .../v2/models/service_account_create_request.rb | 3 +-- lib/datadog_api_client/v2/models/user.rb | 3 +-- lib/datadog_api_client/v2/models/user_attributes.rb | 3 +-- .../v2/models/user_create_attributes.rb | 3 +-- lib/datadog_api_client/v2/models/user_create_data.rb | 3 +-- lib/datadog_api_client/v2/models/user_create_request.rb | 3 +-- lib/datadog_api_client/v2/models/user_invitation_data.rb | 3 +-- .../v2/models/user_invitation_data_attributes.rb | 3 +-- .../v2/models/user_invitation_relationships.rb | 3 +-- .../v2/models/user_invitation_response.rb | 3 +-- .../v2/models/user_invitation_response_data.rb | 3 +-- .../v2/models/user_invitations_request.rb | 3 +-- .../v2/models/user_invitations_response.rb | 3 +-- .../v2/models/user_invitations_type.rb | 2 +- lib/datadog_api_client/v2/models/user_relationships.rb | 3 +-- lib/datadog_api_client/v2/models/user_response.rb | 3 +-- .../v2/models/user_response_included_item.rb | 3 +-- .../v2/models/user_response_relationships.rb | 3 +-- .../v2/models/user_update_attributes.rb | 3 +-- lib/datadog_api_client/v2/models/user_update_data.rb | 3 +-- lib/datadog_api_client/v2/models/user_update_request.rb | 3 +-- lib/datadog_api_client/v2/models/users_response.rb | 3 +-- lib/datadog_api_client/v2/models/users_type.rb | 2 +- 1039 files changed, 1043 insertions(+), 1848 deletions(-) diff --git a/.generator/src/generator/templates/model.j2 b/.generator/src/generator/templates/model.j2 index 3080e5c99bb..60d6337be2f 100644 --- a/.generator/src/generator/templates/model.j2 +++ b/.generator/src/generator/templates/model.j2 @@ -8,10 +8,11 @@ require 'time' module {{ config.moduleName }} # {{ model.description.rstrip()|replace('\n', '\n# ')|indent(2) }} {% if "enum" in model -%} -{% include "model_enum.j2" -%} +{% include "model_enum.j2" %} {%- elif "oneOf" in model -%} -{%- include "model_oneof.j2" %} -{% else -%} +{% include "model_oneof.j2" %} +{%- else -%} {% include "model_generic.j2" %} -{% endif %} +{%- endif %} end +{# keep new line #} \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/access_role.rb b/lib/datadog_api_client/v1/models/access_role.rb index 59c3e350712..70116d29905 100644 --- a/lib/datadog_api_client/v1/models/access_role.rb +++ b/lib/datadog_api_client/v1/models/access_role.rb @@ -41,4 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 20fa17b6156..9d91739ec17 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 @@ -321,5 +321,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/alert_graph_widget_definition_type.rb b/lib/datadog_api_client/v1/models/alert_graph_widget_definition_type.rb index d92be09ebc4..dffb026ab3c 100644 --- a/lib/datadog_api_client/v1/models/alert_graph_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/alert_graph_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 c5997d42259..2434c9a773c 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 @@ -327,5 +327,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/alert_value_widget_definition_type.rb b/lib/datadog_api_client/v1/models/alert_value_widget_definition_type.rb index 6b6f19cb83d..16ad3961752 100644 --- a/lib/datadog_api_client/v1/models/alert_value_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/alert_value_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 77364b0a22e..d46a971bb5a 100644 --- a/lib/datadog_api_client/v1/models/api_error_response.rb +++ b/lib/datadog_api_client/v1/models/api_error_response.rb @@ -253,5 +253,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/api_key.rb b/lib/datadog_api_client/v1/models/api_key.rb index 8d3b04862bd..986610d2952 100644 --- a/lib/datadog_api_client/v1/models/api_key.rb +++ b/lib/datadog_api_client/v1/models/api_key.rb @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 11079e4437f..234e9da0cbb 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 1446b6cb3a9..1a4752a780b 100644 --- a/lib/datadog_api_client/v1/models/api_key_response.rb +++ b/lib/datadog_api_client/v1/models/api_key_response.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c9b5878fd16..6770e097b6b 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 @@ -281,5 +281,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 27b870cf673..30b1081134d 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 @@ -329,5 +329,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/apm_stats_query_row_type.rb b/lib/datadog_api_client/v1/models/apm_stats_query_row_type.rb index 1c811dd416d..d29d838f322 100644 --- a/lib/datadog_api_client/v1/models/apm_stats_query_row_type.rb +++ b/lib/datadog_api_client/v1/models/apm_stats_query_row_type.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/application_key.rb b/lib/datadog_api_client/v1/models/application_key.rb index 6146c16f783..fd1c843c7f6 100644 --- a/lib/datadog_api_client/v1/models/application_key.rb +++ b/lib/datadog_api_client/v1/models/application_key.rb @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3a3126dfb2c..b4d7b66e390 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e47a9ee31d8..6834435eee5 100644 --- a/lib/datadog_api_client/v1/models/application_key_response.rb +++ b/lib/datadog_api_client/v1/models/application_key_response.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 13aa5cb90ec..49123e84c94 100644 --- a/lib/datadog_api_client/v1/models/authentication_validation_response.rb +++ b/lib/datadog_api_client/v1/models/authentication_validation_response.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/aws_account.rb b/lib/datadog_api_client/v1/models/aws_account.rb index ee7f8a8d6ce..f8b73e40d2c 100644 --- a/lib/datadog_api_client/v1/models/aws_account.rb +++ b/lib/datadog_api_client/v1/models/aws_account.rb @@ -367,5 +367,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 f50d50dcd80..b657c83c1ca 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 @@ -265,5 +265,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 11cc7b063d2..3d225e817ce 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 1bd63c42bdc..9ae07aa78a7 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 0aff722d873..f976913156d 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 cb9176ad040..fa590826321 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b96c59c4a7f..7aa9b00222f 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e384e52a9df..d01626d95c6 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_lambda.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_lambda.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 6520706cdd2..0cba885b893 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 @@ -271,5 +271,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b9575515dc6..37284091078 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b14f982be32..ca73009ffd0 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/aws_namespace.rb b/lib/datadog_api_client/v1/models/aws_namespace.rb index 3228779916c..c57f8daa83e 100644 --- a/lib/datadog_api_client/v1/models/aws_namespace.rb +++ b/lib/datadog_api_client/v1/models/aws_namespace.rb @@ -44,4 +44,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 63d330d3dd8..b05f1d2160e 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 940fe7a32ca..0660f4d29b8 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a4e0f036409..aeb05810d5c 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 67fbd829ec7..51a86b03b4f 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/azure_account.rb b/lib/datadog_api_client/v1/models/azure_account.rb index e0ca0d608d8..ca867eade1a 100644 --- a/lib/datadog_api_client/v1/models/azure_account.rb +++ b/lib/datadog_api_client/v1/models/azure_account.rb @@ -320,5 +320,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 109687f8098..0c158441e03 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 @@ -253,5 +253,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3c3518c9aa2..efc9aa203ac 100644 --- a/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb +++ b/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 0bb6854f8c5..81f836e9a1f 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition.rb @@ -324,5 +324,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/change_widget_definition_type.rb b/lib/datadog_api_client/v1/models/change_widget_definition_type.rb index 6f8a4211abe..0febfc497cd 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 4efe4610572..f62c5ae32f5 100644 --- a/lib/datadog_api_client/v1/models/change_widget_request.rb +++ b/lib/datadog_api_client/v1/models/change_widget_request.rb @@ -421,5 +421,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c03919a4911..96aac8585d3 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 @@ -261,5 +261,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 479f64c020f..a7efbae6991 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 5b23091a581..7a249d6d2c2 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 d65413afd72..aaa18ca4f37 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 ebc81c17e8c..46c46c981cc 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 @@ -355,5 +355,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/check_status_widget_definition_type.rb b/lib/datadog_api_client/v1/models/check_status_widget_definition_type.rb index 8fd6aab9cde..4b020920179 100644 --- a/lib/datadog_api_client/v1/models/check_status_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/check_status_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/content_encoding.rb b/lib/datadog_api_client/v1/models/content_encoding.rb index c819f41fee4..5fd403ba3ea 100644 --- a/lib/datadog_api_client/v1/models/content_encoding.rb +++ b/lib/datadog_api_client/v1/models/content_encoding.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/creator.rb b/lib/datadog_api_client/v1/models/creator.rb index a89174bd32c..16a20ff4019 100644 --- a/lib/datadog_api_client/v1/models/creator.rb +++ b/lib/datadog_api_client/v1/models/creator.rb @@ -268,5 +268,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/dashboard.rb b/lib/datadog_api_client/v1/models/dashboard.rb index d5b9adf8943..db9395dac16 100644 --- a/lib/datadog_api_client/v1/models/dashboard.rb +++ b/lib/datadog_api_client/v1/models/dashboard.rb @@ -429,5 +429,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 23cac2961c6..aff53bdff6b 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 d3a27107506..8e91398ea53 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 @@ -253,5 +253,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 5f3c775be31..7a55ce39c76 100644 --- a/lib/datadog_api_client/v1/models/dashboard_delete_response.rb +++ b/lib/datadog_api_client/v1/models/dashboard_delete_response.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/dashboard_layout_type.rb b/lib/datadog_api_client/v1/models/dashboard_layout_type.rb index eb0d1d8ca9c..e2463dce98e 100644 --- a/lib/datadog_api_client/v1/models/dashboard_layout_type.rb +++ b/lib/datadog_api_client/v1/models/dashboard_layout_type.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/dashboard_list.rb b/lib/datadog_api_client/v1/models/dashboard_list.rb index 27eeedb5d59..1bea302f5be 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list.rb @@ -321,5 +321,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 7897f6f6d45..ccd4db46d13 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 aa0a17c6ad0..88389481ddc 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/dashboard_reflow_type.rb b/lib/datadog_api_client/v1/models/dashboard_reflow_type.rb index d026cb6e012..f6f721c24d4 100644 --- a/lib/datadog_api_client/v1/models/dashboard_reflow_type.rb +++ b/lib/datadog_api_client/v1/models/dashboard_reflow_type.rb @@ -41,4 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/dashboard_resource_type.rb b/lib/datadog_api_client/v1/models/dashboard_resource_type.rb index 30ef7659bc5..22efe366cd2 100644 --- a/lib/datadog_api_client/v1/models/dashboard_resource_type.rb +++ b/lib/datadog_api_client/v1/models/dashboard_resource_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 962b24c35d3..aedef22f2f9 100644 --- a/lib/datadog_api_client/v1/models/dashboard_restore_request.rb +++ b/lib/datadog_api_client/v1/models/dashboard_restore_request.rb @@ -253,5 +253,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/dashboard_summary.rb b/lib/datadog_api_client/v1/models/dashboard_summary.rb index fdb97910424..b27e3a0829e 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 90f84f26d7b..f8a95662414 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb @@ -328,5 +328,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 2cf7702a12f..c948290d933 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable.rb @@ -286,5 +286,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 d743e294f72..40443ef40ef 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3033f12bdea..9a3631a72b8 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/deleted_monitor.rb b/lib/datadog_api_client/v1/models/deleted_monitor.rb index 8d98e513b5a..4e633fd397a 100644 --- a/lib/datadog_api_client/v1/models/deleted_monitor.rb +++ b/lib/datadog_api_client/v1/models/deleted_monitor.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 229c5eb790a..947de5c1c73 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb @@ -366,5 +366,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/distribution_widget_definition_type.rb b/lib/datadog_api_client/v1/models/distribution_widget_definition_type.rb index b03634e8a28..78df209a6f4 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 af4b612ae23..2fefa55403e 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_request.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_request.rb @@ -347,5 +347,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a488c9528c4..47d5d754f28 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 @@ -283,5 +283,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 74b56e24fd0..a5974a959f0 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 @@ -293,5 +293,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/downtime.rb b/lib/datadog_api_client/v1/models/downtime.rb index a12bc7a0837..0d3db5bec7b 100644 --- a/lib/datadog_api_client/v1/models/downtime.rb +++ b/lib/datadog_api_client/v1/models/downtime.rb @@ -433,5 +433,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/downtime_child.rb b/lib/datadog_api_client/v1/models/downtime_child.rb index 45d0f02db8b..f019f979ca6 100644 --- a/lib/datadog_api_client/v1/models/downtime_child.rb +++ b/lib/datadog_api_client/v1/models/downtime_child.rb @@ -419,5 +419,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/downtime_recurrence.rb b/lib/datadog_api_client/v1/models/downtime_recurrence.rb index b0915e5a7b3..d6ebed19a46 100644 --- a/lib/datadog_api_client/v1/models/downtime_recurrence.rb +++ b/lib/datadog_api_client/v1/models/downtime_recurrence.rb @@ -311,5 +311,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/event.rb b/lib/datadog_api_client/v1/models/event.rb index 29db0adac4a..5c17cde30b5 100644 --- a/lib/datadog_api_client/v1/models/event.rb +++ b/lib/datadog_api_client/v1/models/event.rb @@ -377,5 +377,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/event_alert_type.rb b/lib/datadog_api_client/v1/models/event_alert_type.rb index c3b6eb80fff..e45d471edb3 100644 --- a/lib/datadog_api_client/v1/models/event_alert_type.rb +++ b/lib/datadog_api_client/v1/models/event_alert_type.rb @@ -46,4 +46,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 643c07cb718..0fdb5a8e616 100644 --- a/lib/datadog_api_client/v1/models/event_create_request.rb +++ b/lib/datadog_api_client/v1/models/event_create_request.rb @@ -365,5 +365,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 ffacada4d00..e1fdd30f5f2 100644 --- a/lib/datadog_api_client/v1/models/event_create_response.rb +++ b/lib/datadog_api_client/v1/models/event_create_response.rb @@ -385,5 +385,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3c6f005c315..dd258552ecb 100644 --- a/lib/datadog_api_client/v1/models/event_list_response.rb +++ b/lib/datadog_api_client/v1/models/event_list_response.rb @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/event_priority.rb b/lib/datadog_api_client/v1/models/event_priority.rb index 4407d3fa89a..76f01292a23 100644 --- a/lib/datadog_api_client/v1/models/event_priority.rb +++ b/lib/datadog_api_client/v1/models/event_priority.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 ba0596da095..ec80c2ba410 100644 --- a/lib/datadog_api_client/v1/models/event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/event_query_definition.rb @@ -265,5 +265,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/event_response.rb b/lib/datadog_api_client/v1/models/event_response.rb index c33721927ec..bc7bb86ba59 100644 --- a/lib/datadog_api_client/v1/models/event_response.rb +++ b/lib/datadog_api_client/v1/models/event_response.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 01db9dd5d15..8a26bdc8acc 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 @@ -328,5 +328,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/event_stream_widget_definition_type.rb b/lib/datadog_api_client/v1/models/event_stream_widget_definition_type.rb index 0214c3143d1..72ef7baddc8 100644 --- a/lib/datadog_api_client/v1/models/event_stream_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/event_stream_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 6f2db2b0742..38abb0c9194 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 @@ -317,5 +317,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/event_timeline_widget_definition_type.rb b/lib/datadog_api_client/v1/models/event_timeline_widget_definition_type.rb index 825531ed222..643bbe73403 100644 --- a/lib/datadog_api_client/v1/models/event_timeline_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/event_timeline_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stat_name.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stat_name.rb index 50c2e17939a..c8718a61c52 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stat_name.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stat_name.rb @@ -44,4 +44,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_data_source.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_data_source.rb index e5ddb638461..ca06675ee55 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_data_source.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_data_source.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 69ce08fbf93..b83be42b9c7 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 @@ -365,5 +365,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stat_name.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stat_name.rb index ba074158a4d..9299cdf7957 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stat_name.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stat_name.rb @@ -47,4 +47,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_data_source.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_data_source.rb index 931971fc695..f7e8454736d 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_data_source.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_data_source.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 b1134198a46..549dda54a8f 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 @@ -359,5 +359,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_aggregation.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_aggregation.rb index 7b5feafb467..631e8b67012 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_aggregation.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_aggregation.rb @@ -49,4 +49,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 9944f40a7c2..6b976fb8d32 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 @@ -313,5 +313,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9fe102688ad..4813075a353 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 @@ -271,5 +271,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 60b9de203c1..f1c791f9f24 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 5fe0a622ca4..9d3785df7a6 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 @@ -271,5 +271,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 44375b27aa3..5915c933d29 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 @@ -273,5 +273,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb b/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb index daf27b874c4..349a8d834ae 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb @@ -45,4 +45,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/formula_and_function_metric_aggregation.rb b/lib/datadog_api_client/v1/models/formula_and_function_metric_aggregation.rb index 8d61483e1df..980cbd8aa4d 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_metric_aggregation.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_metric_aggregation.rb @@ -45,4 +45,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/formula_and_function_metric_data_source.rb b/lib/datadog_api_client/v1/models/formula_and_function_metric_data_source.rb index 5f799aee91d..9e1de60bbfa 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_metric_data_source.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_metric_data_source.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 0cdcd1c0933..651432a9204 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 @@ -289,5 +289,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/formula_and_function_process_query_data_source.rb b/lib/datadog_api_client/v1/models/formula_and_function_process_query_data_source.rb index 0e8e3feba63..1226edee71b 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_process_query_data_source.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_process_query_data_source.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 13e99e7bd95..541820900f2 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 @@ -343,5 +343,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb index 79dea6ee355..0d141e5f1fa 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb @@ -115,5 +115,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/formula_and_function_response_format.rb b/lib/datadog_api_client/v1/models/formula_and_function_response_format.rb index b0fe1ad0590..553a5e34168 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_response_format.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_response_format.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 f49eefda0a1..4f5e32df4b3 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 @@ -297,5 +297,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/free_text_widget_definition_type.rb b/lib/datadog_api_client/v1/models/free_text_widget_definition_type.rb index f18a0952204..4b5180f3e83 100644 --- a/lib/datadog_api_client/v1/models/free_text_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/free_text_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/funnel_query.rb b/lib/datadog_api_client/v1/models/funnel_query.rb index 0656c7b9b40..4d290d9d30b 100644 --- a/lib/datadog_api_client/v1/models/funnel_query.rb +++ b/lib/datadog_api_client/v1/models/funnel_query.rb @@ -283,5 +283,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb index d586fa45eca..7dfd675b2c7 100644 --- a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb +++ b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb @@ -265,5 +265,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/funnel_request_type.rb b/lib/datadog_api_client/v1/models/funnel_request_type.rb index f6456bf8137..b88af602657 100644 --- a/lib/datadog_api_client/v1/models/funnel_request_type.rb +++ b/lib/datadog_api_client/v1/models/funnel_request_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/funnel_source.rb b/lib/datadog_api_client/v1/models/funnel_source.rb index 3a8cfd5338c..bd776e5a8b2 100644 --- a/lib/datadog_api_client/v1/models/funnel_source.rb +++ b/lib/datadog_api_client/v1/models/funnel_source.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 d591d0807aa..c2b599d18fe 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb @@ -309,5 +309,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/funnel_widget_definition_type.rb b/lib/datadog_api_client/v1/models/funnel_widget_definition_type.rb index 466668bb4a6..337272c331a 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 12e93de9b6f..751925ed784 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_request.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_request.rb @@ -265,5 +265,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/gcp_account.rb b/lib/datadog_api_client/v1/models/gcp_account.rb index 9429ecaff2c..34f2bcd1c06 100644 --- a/lib/datadog_api_client/v1/models/gcp_account.rb +++ b/lib/datadog_api_client/v1/models/gcp_account.rb @@ -371,5 +371,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 015896f9d1e..0697d6138fd 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb @@ -352,5 +352,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 f6780a393e7..af52e050a5b 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 @@ -265,5 +265,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/geomap_widget_definition_type.rb b/lib/datadog_api_client/v1/models/geomap_widget_definition_type.rb index 4e40312c23c..7de81b37528 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 4e9d9e36482..0afa6c2379b 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 d8165956355..89a28d5c801 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_request.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_request.rb @@ -311,5 +311,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/graph_snapshot.rb b/lib/datadog_api_client/v1/models/graph_snapshot.rb index ff91b93e245..ce89d2e897e 100644 --- a/lib/datadog_api_client/v1/models/graph_snapshot.rb +++ b/lib/datadog_api_client/v1/models/graph_snapshot.rb @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 44907e7eac9..f8eb4d96e7c 100644 --- a/lib/datadog_api_client/v1/models/group_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/group_widget_definition.rb @@ -335,5 +335,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/group_widget_definition_type.rb b/lib/datadog_api_client/v1/models/group_widget_definition_type.rb index 5e877ed3020..55003bb71a1 100644 --- a/lib/datadog_api_client/v1/models/group_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/group_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 27daefe0716..e4bd345be8b 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 @@ -363,5 +363,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/heat_map_widget_definition_type.rb b/lib/datadog_api_client/v1/models/heat_map_widget_definition_type.rb index 27bd358558c..503d14ccf48 100644 --- a/lib/datadog_api_client/v1/models/heat_map_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/heat_map_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 148cc5480a1..f9fbb664883 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 @@ -337,5 +337,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/host.rb b/lib/datadog_api_client/v1/models/host.rb index c9a0e7a7dc2..52f7815c0e9 100644 --- a/lib/datadog_api_client/v1/models/host.rb +++ b/lib/datadog_api_client/v1/models/host.rb @@ -383,5 +383,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9d579fc86ac..f63392e75f1 100644 --- a/lib/datadog_api_client/v1/models/host_list_response.rb +++ b/lib/datadog_api_client/v1/models/host_list_response.rb @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a1d1ab4fad4..773a6bdf7ab 100644 --- a/lib/datadog_api_client/v1/models/host_map_request.rb +++ b/lib/datadog_api_client/v1/models/host_map_request.rb @@ -327,5 +327,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 11fc5c75693..941a04d3c28 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 @@ -383,5 +383,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9d9f51170ee..0827ab7877f 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 25ec931cce6..d91e6cc8949 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 @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/host_map_widget_definition_type.rb b/lib/datadog_api_client/v1/models/host_map_widget_definition_type.rb index 31e8512af3f..ad35011fd09 100644 --- a/lib/datadog_api_client/v1/models/host_map_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/host_map_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/host_meta.rb b/lib/datadog_api_client/v1/models/host_meta.rb index cc383e32ac4..a7b543f9742 100644 --- a/lib/datadog_api_client/v1/models/host_meta.rb +++ b/lib/datadog_api_client/v1/models/host_meta.rb @@ -397,5 +397,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 5dda572f0eb..8117414da32 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/host_metrics.rb b/lib/datadog_api_client/v1/models/host_metrics.rb index f951a8f01d7..638980b21bb 100644 --- a/lib/datadog_api_client/v1/models/host_metrics.rb +++ b/lib/datadog_api_client/v1/models/host_metrics.rb @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8664d5db042..bbcaa969664 100644 --- a/lib/datadog_api_client/v1/models/host_mute_response.rb +++ b/lib/datadog_api_client/v1/models/host_mute_response.rb @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 744025a8d74..ec3c55d4718 100644 --- a/lib/datadog_api_client/v1/models/host_mute_settings.rb +++ b/lib/datadog_api_client/v1/models/host_mute_settings.rb @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/host_tags.rb b/lib/datadog_api_client/v1/models/host_tags.rb index 4854b93340c..53939fdfa06 100644 --- a/lib/datadog_api_client/v1/models/host_tags.rb +++ b/lib/datadog_api_client/v1/models/host_tags.rb @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/host_totals.rb b/lib/datadog_api_client/v1/models/host_totals.rb index c6ce93cab78..178217b417f 100644 --- a/lib/datadog_api_client/v1/models/host_totals.rb +++ b/lib/datadog_api_client/v1/models/host_totals.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 192887b6aab..2c2fc8300f7 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 @@ -317,5 +317,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 23ea5f1294b..61e97b44c5e 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 daef00104b7..ef067f1021e 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 204815a10ad..0d63f6446f8 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb index e3dcda0d213..8023fdf60b6 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb @@ -51,4 +51,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 2f24ce86125..c4fc7d22374 100644 --- a/lib/datadog_api_client/v1/models/http_log_error.rb +++ b/lib/datadog_api_client/v1/models/http_log_error.rb @@ -265,5 +265,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 2fba8576935..1fe560b3e39 100644 --- a/lib/datadog_api_client/v1/models/http_log_item.rb +++ b/lib/datadog_api_client/v1/models/http_log_item.rb @@ -293,5 +293,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/http_method.rb b/lib/datadog_api_client/v1/models/http_method.rb index 7b98a4d4d59..cb6218576b3 100644 --- a/lib/datadog_api_client/v1/models/http_method.rb +++ b/lib/datadog_api_client/v1/models/http_method.rb @@ -44,4 +44,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 ed8e8064155..b3911c2a415 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/i_frame_widget_definition_type.rb b/lib/datadog_api_client/v1/models/i_frame_widget_definition_type.rb index d50e93777a7..6ef6b891364 100644 --- a/lib/datadog_api_client/v1/models/i_frame_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/i_frame_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 c720aa40222..46d75200c38 100644 --- a/lib/datadog_api_client/v1/models/idp_form_data.rb +++ b/lib/datadog_api_client/v1/models/idp_form_data.rb @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/idp_response.rb b/lib/datadog_api_client/v1/models/idp_response.rb index 229ad15c3b1..f089357ad09 100644 --- a/lib/datadog_api_client/v1/models/idp_response.rb +++ b/lib/datadog_api_client/v1/models/idp_response.rb @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 093b8451b0b..e9128b0c5ad 100644 --- a/lib/datadog_api_client/v1/models/image_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/image_widget_definition.rb @@ -343,5 +343,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/image_widget_definition_type.rb b/lib/datadog_api_client/v1/models/image_widget_definition_type.rb index 3e02b318b99..31cc1f2d85a 100644 --- a/lib/datadog_api_client/v1/models/image_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/image_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 42cfe26c73d..d9c57b46b13 100644 --- a/lib/datadog_api_client/v1/models/intake_payload_accepted.rb +++ b/lib/datadog_api_client/v1/models/intake_payload_accepted.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 d13087936c2..a0f704e9636 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb @@ -261,5 +261,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 0b6880e6286..5ccb21a123f 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_api.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_api.rb @@ -261,5 +261,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 06d82bf6542..82c7cb3a8e2 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb @@ -261,5 +261,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 dc05af8daee..372aeee9124 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb @@ -261,5 +261,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 0822684a62e..e75aeefc62c 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_process.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_process.rb @@ -261,5 +261,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 5b0c6bd828d..5746bb961e4 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb @@ -281,5 +281,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8c7bef5f071..7b8aac5a8cf 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb @@ -261,5 +261,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/ip_ranges.rb b/lib/datadog_api_client/v1/models/ip_ranges.rb index 57f0d4f2c86..b15c9f0b5a4 100644 --- a/lib/datadog_api_client/v1/models/ip_ranges.rb +++ b/lib/datadog_api_client/v1/models/ip_ranges.rb @@ -327,5 +327,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 cc3f110b562..be3ad93ba6f 100644 --- a/lib/datadog_api_client/v1/models/list_stream_column.rb +++ b/lib/datadog_api_client/v1/models/list_stream_column.rb @@ -265,5 +265,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/list_stream_column_width.rb b/lib/datadog_api_client/v1/models/list_stream_column_width.rb index 9dce6e837bb..bd351496d46 100644 --- a/lib/datadog_api_client/v1/models/list_stream_column_width.rb +++ b/lib/datadog_api_client/v1/models/list_stream_column_width.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 129b897ba61..f56cdbca949 100644 --- a/lib/datadog_api_client/v1/models/list_stream_query.rb +++ b/lib/datadog_api_client/v1/models/list_stream_query.rb @@ -279,5 +279,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/list_stream_response_format.rb b/lib/datadog_api_client/v1/models/list_stream_response_format.rb index f01f8ebc0cf..dfa322c11c7 100644 --- a/lib/datadog_api_client/v1/models/list_stream_response_format.rb +++ b/lib/datadog_api_client/v1/models/list_stream_response_format.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/list_stream_source.rb b/lib/datadog_api_client/v1/models/list_stream_source.rb index d23d0af6330..a6e53217674 100644 --- a/lib/datadog_api_client/v1/models/list_stream_source.rb +++ b/lib/datadog_api_client/v1/models/list_stream_source.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 d230be834f2..7bc7d97dc71 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 @@ -330,5 +330,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/list_stream_widget_definition_type.rb b/lib/datadog_api_client/v1/models/list_stream_widget_definition_type.rb index 5b27216e90c..2109142066f 100644 --- a/lib/datadog_api_client/v1/models/list_stream_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/list_stream_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 970f79950d5..302575d98b9 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 @@ -281,5 +281,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/log.rb b/lib/datadog_api_client/v1/models/log.rb index e848a6f2536..3b2d5b6d5f4 100644 --- a/lib/datadog_api_client/v1/models/log.rb +++ b/lib/datadog_api_client/v1/models/log.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/log_content.rb b/lib/datadog_api_client/v1/models/log_content.rb index 90050055724..37d27736046 100644 --- a/lib/datadog_api_client/v1/models/log_content.rb +++ b/lib/datadog_api_client/v1/models/log_content.rb @@ -301,5 +301,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9d829811cf4..9376f8a258c 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition.rb @@ -291,5 +291,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 fbbf3360487..15c9bd651d6 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 @@ -271,5 +271,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 34b069279d3..a4e3aafa934 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 @@ -275,5 +275,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e725329839b..bdf3ba0e4bb 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b2baef75c9d..c0140b81025 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 @@ -377,5 +377,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/log_stream_widget_definition_type.rb b/lib/datadog_api_client/v1/models/log_stream_widget_definition_type.rb index 3e34222163b..ff8c1600e69 100644 --- a/lib/datadog_api_client/v1/models/log_stream_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/log_stream_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 c4a7eedc8c7..6483cf15fe2 100644 --- a/lib/datadog_api_client/v1/models/logs_api_error.rb +++ b/lib/datadog_api_client/v1/models/logs_api_error.rb @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 386d884215a..6a39f89f932 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 fe9af196514..a331692eefa 100644 --- a/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb @@ -336,5 +336,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_arithmetic_processor_type.rb b/lib/datadog_api_client/v1/models/logs_arithmetic_processor_type.rb index eeb9408f2ed..5413f84df75 100644 --- a/lib/datadog_api_client/v1/models/logs_arithmetic_processor_type.rb +++ b/lib/datadog_api_client/v1/models/logs_arithmetic_processor_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 14295f1bd76..93062c0a7d0 100644 --- a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb @@ -367,5 +367,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_attribute_remapper_type.rb b/lib/datadog_api_client/v1/models/logs_attribute_remapper_type.rb index a5d00080036..8390c3dc51f 100644 --- a/lib/datadog_api_client/v1/models/logs_attribute_remapper_type.rb +++ b/lib/datadog_api_client/v1/models/logs_attribute_remapper_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 08c8e8621c8..65bd0b7929f 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention.rb @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 92c456ee70d..79ec47834ec 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 82641f12f8f..a91835d39d2 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 2d660e18a3f..05ea0944384 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 33690119df6..6edc8c234e6 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor.rb @@ -318,5 +318,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a50182cec34..051db3871ee 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_category_processor_type.rb b/lib/datadog_api_client/v1/models/logs_category_processor_type.rb index 00941d070e0..0bf4a8f8457 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor_type.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 cf7f244ca6c..dacc0a18785 100644 --- a/lib/datadog_api_client/v1/models/logs_date_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_date_remapper.rb @@ -309,5 +309,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_date_remapper_type.rb b/lib/datadog_api_client/v1/models/logs_date_remapper_type.rb index 2340c9b1b88..fe1a8a129dd 100644 --- a/lib/datadog_api_client/v1/models/logs_date_remapper_type.rb +++ b/lib/datadog_api_client/v1/models/logs_date_remapper_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_exclusion.rb b/lib/datadog_api_client/v1/models/logs_exclusion.rb index 980c37cc973..db637b0e1c9 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion.rb @@ -271,5 +271,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 18cea49a012..fcd1ce19608 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb @@ -263,5 +263,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_filter.rb b/lib/datadog_api_client/v1/models/logs_filter.rb index 2b27d0e6aff..97c2e641376 100644 --- a/lib/datadog_api_client/v1/models/logs_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_filter.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 0a1daff4b3d..2224c826eed 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 @@ -310,5 +310,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_geo_ip_parser_type.rb b/lib/datadog_api_client/v1/models/logs_geo_ip_parser_type.rb index c41a7fdacee..f7a0ae2314a 100644 --- a/lib/datadog_api_client/v1/models/logs_geo_ip_parser_type.rb +++ b/lib/datadog_api_client/v1/models/logs_geo_ip_parser_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 8c5ba9c437d..ddd3670bddd 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser.rb @@ -318,5 +318,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 fabb86841f7..dbaf4081ed5 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 @@ -263,5 +263,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_grok_parser_type.rb b/lib/datadog_api_client/v1/models/logs_grok_parser_type.rb index 832c2c21b18..e0d8f51fec0 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser_type.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_index.rb b/lib/datadog_api_client/v1/models/logs_index.rb index ad0a6e928d3..da8989914d6 100644 --- a/lib/datadog_api_client/v1/models/logs_index.rb +++ b/lib/datadog_api_client/v1/models/logs_index.rb @@ -311,5 +311,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 27c815f866f..c97522bc01e 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 231d7634781..969388c180d 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 @@ -301,5 +301,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 6c2eee3a120..66d757822b1 100644 --- a/lib/datadog_api_client/v1/models/logs_indexes_order.rb +++ b/lib/datadog_api_client/v1/models/logs_indexes_order.rb @@ -255,5 +255,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 41a88897366..6ca91944827 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request.rb @@ -306,5 +306,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 576ada46a81..0d4735fcff3 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 @@ -276,5 +276,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a88ae1c4c1b..dc7b96bcad3 100644 --- a/lib/datadog_api_client/v1/models/logs_list_response.rb +++ b/lib/datadog_api_client/v1/models/logs_list_response.rb @@ -270,5 +270,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b145b295ae5..603ffd0f77c 100644 --- a/lib/datadog_api_client/v1/models/logs_lookup_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_lookup_processor.rb @@ -336,5 +336,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_lookup_processor_type.rb b/lib/datadog_api_client/v1/models/logs_lookup_processor_type.rb index 99503aeb591..185edc5f22a 100644 --- a/lib/datadog_api_client/v1/models/logs_lookup_processor_type.rb +++ b/lib/datadog_api_client/v1/models/logs_lookup_processor_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 c7d324645a8..1b8ca6347cd 100644 --- a/lib/datadog_api_client/v1/models/logs_message_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_message_remapper.rb @@ -298,5 +298,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_message_remapper_type.rb b/lib/datadog_api_client/v1/models/logs_message_remapper_type.rb index 8dc29b912c7..99851f1ae59 100644 --- a/lib/datadog_api_client/v1/models/logs_message_remapper_type.rb +++ b/lib/datadog_api_client/v1/models/logs_message_remapper_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_pipeline.rb b/lib/datadog_api_client/v1/models/logs_pipeline.rb index 8c44ccbc157..56310b75b48 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline.rb @@ -317,5 +317,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 ffe9875efa4..1b178c20164 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb @@ -301,5 +301,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_pipeline_processor_type.rb b/lib/datadog_api_client/v1/models/logs_pipeline_processor_type.rb index 5fd182be425..8c6949048bd 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline_processor_type.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline_processor_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 1cdbe895e23..9f53dad3207 100644 --- a/lib/datadog_api_client/v1/models/logs_pipelines_order.rb +++ b/lib/datadog_api_client/v1/models/logs_pipelines_order.rb @@ -254,5 +254,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_processor.rb b/lib/datadog_api_client/v1/models/logs_processor.rb index 95944487d2a..4f7e4e6231e 100644 --- a/lib/datadog_api_client/v1/models/logs_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_processor.rb @@ -125,5 +125,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 477f0d6b428..f90bcd69ab9 100644 --- a/lib/datadog_api_client/v1/models/logs_query_compute.rb +++ b/lib/datadog_api_client/v1/models/logs_query_compute.rb @@ -271,5 +271,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 201bfaa2b06..13dc0e4b417 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 @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 294d1352261..be04848e8ed 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 @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 05a51bb526f..43b1b5517f1 100644 --- a/lib/datadog_api_client/v1/models/logs_service_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_service_remapper.rb @@ -294,5 +294,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_service_remapper_type.rb b/lib/datadog_api_client/v1/models/logs_service_remapper_type.rb index b82880fd482..640c817ba2f 100644 --- a/lib/datadog_api_client/v1/models/logs_service_remapper_type.rb +++ b/lib/datadog_api_client/v1/models/logs_service_remapper_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_sort.rb b/lib/datadog_api_client/v1/models/logs_sort.rb index bc93ec33b46..8efeac6db54 100644 --- a/lib/datadog_api_client/v1/models/logs_sort.rb +++ b/lib/datadog_api_client/v1/models/logs_sort.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 366adbe9756..eeb06946bf5 100644 --- a/lib/datadog_api_client/v1/models/logs_status_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_status_remapper.rb @@ -308,5 +308,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_status_remapper_type.rb b/lib/datadog_api_client/v1/models/logs_status_remapper_type.rb index 9e880d4dba1..c32830a2f81 100644 --- a/lib/datadog_api_client/v1/models/logs_status_remapper_type.rb +++ b/lib/datadog_api_client/v1/models/logs_status_remapper_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 5c3b0715db1..11d7d3ed857 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 @@ -328,5 +328,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_string_builder_processor_type.rb b/lib/datadog_api_client/v1/models/logs_string_builder_processor_type.rb index f5c2545afdc..ad5ebf683ac 100644 --- a/lib/datadog_api_client/v1/models/logs_string_builder_processor_type.rb +++ b/lib/datadog_api_client/v1/models/logs_string_builder_processor_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 a1860dfde0b..ba2015ac25d 100644 --- a/lib/datadog_api_client/v1/models/logs_trace_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_trace_remapper.rb @@ -294,5 +294,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_trace_remapper_type.rb b/lib/datadog_api_client/v1/models/logs_trace_remapper_type.rb index d5387b75dca..57f84e11ee9 100644 --- a/lib/datadog_api_client/v1/models/logs_trace_remapper_type.rb +++ b/lib/datadog_api_client/v1/models/logs_trace_remapper_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 4873975dbb9..9bfaf79e37b 100644 --- a/lib/datadog_api_client/v1/models/logs_url_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_url_parser.rb @@ -322,5 +322,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_url_parser_type.rb b/lib/datadog_api_client/v1/models/logs_url_parser_type.rb index 20af1ac9ca7..66c65f98b09 100644 --- a/lib/datadog_api_client/v1/models/logs_url_parser_type.rb +++ b/lib/datadog_api_client/v1/models/logs_url_parser_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 02036cf4739..d3e0554137e 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 @@ -322,5 +322,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/logs_user_agent_parser_type.rb b/lib/datadog_api_client/v1/models/logs_user_agent_parser_type.rb index caf17a7eae4..d62e145463a 100644 --- a/lib/datadog_api_client/v1/models/logs_user_agent_parser_type.rb +++ b/lib/datadog_api_client/v1/models/logs_user_agent_parser_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/metric_content_encoding.rb b/lib/datadog_api_client/v1/models/metric_content_encoding.rb index d20b5d77eac..a8be85c260f 100644 --- a/lib/datadog_api_client/v1/models/metric_content_encoding.rb +++ b/lib/datadog_api_client/v1/models/metric_content_encoding.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/metric_metadata.rb b/lib/datadog_api_client/v1/models/metric_metadata.rb index 1fba84e14c9..e4d33dd0f3a 100644 --- a/lib/datadog_api_client/v1/models/metric_metadata.rb +++ b/lib/datadog_api_client/v1/models/metric_metadata.rb @@ -307,5 +307,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 aff5a188606..330d27ab8e1 100644 --- a/lib/datadog_api_client/v1/models/metric_search_response.rb +++ b/lib/datadog_api_client/v1/models/metric_search_response.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e654a166c76..a3f355e1f58 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 7d6827d3da6..1af4312acdb 100644 --- a/lib/datadog_api_client/v1/models/metrics_list_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_list_response.rb @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/metrics_payload.rb b/lib/datadog_api_client/v1/models/metrics_payload.rb index 55ed2d3f799..5f0f52afab3 100644 --- a/lib/datadog_api_client/v1/models/metrics_payload.rb +++ b/lib/datadog_api_client/v1/models/metrics_payload.rb @@ -253,5 +253,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 2ba490e82ca..c2de61f55f2 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_metadata.rb @@ -376,5 +376,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 be65e1faeb7..e3679ba4f2a 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_response.rb @@ -331,5 +331,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 20907e6e4dc..a755bca4625 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_unit.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_unit.rb @@ -287,5 +287,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/monitor.rb b/lib/datadog_api_client/v1/models/monitor.rb index 12baf4c13b5..828678a228b 100644 --- a/lib/datadog_api_client/v1/models/monitor.rb +++ b/lib/datadog_api_client/v1/models/monitor.rb @@ -412,5 +412,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/monitor_device_id.rb b/lib/datadog_api_client/v1/models/monitor_device_id.rb index 2829c27921d..3064546f079 100644 --- a/lib/datadog_api_client/v1/models/monitor_device_id.rb +++ b/lib/datadog_api_client/v1/models/monitor_device_id.rb @@ -46,4 +46,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_aggregation.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_aggregation.rb index 415fec88d54..35ea26200d0 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_aggregation.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_aggregation.rb @@ -49,4 +49,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 786458e255e..e7f7dbab688 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 @@ -313,5 +313,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 1451ccef385..b17182669f8 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 @@ -271,5 +271,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 16d86abbd6f..e8cadc3f05d 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 520f358f19e..bf87299b332 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 @@ -271,5 +271,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 f45521d0b93..e519ed5a381 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 @@ -273,5 +273,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb index 6e4afd3c7a5..58337328114 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb index 1f642f060cd..8a2cbe554e3 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb @@ -111,5 +111,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 054c8a77574..2a4fee4faeb 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 @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 86f4993f1f3..d83d0c35b70 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 @@ -261,5 +261,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb index bc4b4729231..6d6a3b46afb 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb index 89ee34a6ea0..d97a8f0c234 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 f2a50d731a0..8b8ec426988 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 @@ -310,5 +310,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/monitor_options.rb b/lib/datadog_api_client/v1/models/monitor_options.rb index e98c7802acb..16719846378 100644 --- a/lib/datadog_api_client/v1/models/monitor_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_options.rb @@ -546,5 +546,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 5b043c9a7a4..56817e5ed79 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/monitor_overall_states.rb b/lib/datadog_api_client/v1/models/monitor_overall_states.rb index a8cd647bc44..c5aff7e115d 100644 --- a/lib/datadog_api_client/v1/models/monitor_overall_states.rb +++ b/lib/datadog_api_client/v1/models/monitor_overall_states.rb @@ -44,4 +44,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/monitor_renotify_status_type.rb b/lib/datadog_api_client/v1/models/monitor_renotify_status_type.rb index ef6ac3025b2..e05c3baa848 100644 --- a/lib/datadog_api_client/v1/models/monitor_renotify_status_type.rb +++ b/lib/datadog_api_client/v1/models/monitor_renotify_status_type.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 ae58c3da1a8..54470d5cf93 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response.rb @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 931f101f593..a77656eb2a7 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 @@ -285,5 +285,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb index 44c693f6757..beb9c1cf1e5 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb index c93a7e35126..d7a90ab5b29 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb index 39c122e920f..e3890fe54f1 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb index 5b218767601..39fa156d600 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 49560c03ffe..97fa80b3669 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 @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c55229a8325..8ba9178822d 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_result.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_result.rb @@ -379,5 +379,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 6365b8b5086..d25894469fc 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/monitor_state.rb b/lib/datadog_api_client/v1/models/monitor_state.rb index 02345d3ca79..0d4de005cb5 100644 --- a/lib/datadog_api_client/v1/models/monitor_state.rb +++ b/lib/datadog_api_client/v1/models/monitor_state.rb @@ -248,5 +248,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 aa7ce7b9745..02fce949f91 100644 --- a/lib/datadog_api_client/v1/models/monitor_state_group.rb +++ b/lib/datadog_api_client/v1/models/monitor_state_group.rb @@ -297,5 +297,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3319731eeeb..032fda4f13a 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 @@ -377,5 +377,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/monitor_summary_widget_definition_type.rb b/lib/datadog_api_client/v1/models/monitor_summary_widget_definition_type.rb index 2f8ed5ac2ac..9e39e15ee11 100644 --- a/lib/datadog_api_client/v1/models/monitor_summary_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/monitor_summary_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 522f3a540f8..1a886dc01ab 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/monitor_thresholds.rb b/lib/datadog_api_client/v1/models/monitor_thresholds.rb index 75a41165368..316195c009d 100644 --- a/lib/datadog_api_client/v1/models/monitor_thresholds.rb +++ b/lib/datadog_api_client/v1/models/monitor_thresholds.rb @@ -302,5 +302,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/monitor_type.rb b/lib/datadog_api_client/v1/models/monitor_type.rb index 55c02008a32..e0806d014a2 100644 --- a/lib/datadog_api_client/v1/models/monitor_type.rb +++ b/lib/datadog_api_client/v1/models/monitor_type.rb @@ -51,4 +51,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 f787292f29f..2d1c6b18223 100644 --- a/lib/datadog_api_client/v1/models/monitor_update_request.rb +++ b/lib/datadog_api_client/v1/models/monitor_update_request.rb @@ -402,5 +402,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 daa6c5b741e..f8ada5517f1 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 @@ -307,5 +307,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 4b1eb4f6915..a632ae4f566 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 07a1519f4dc..5743e983a8b 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 19e571401d8..24dabbedcbb 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb index a6111a10d3b..f84d88284bb 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb @@ -66,4 +66,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 241495935bd..e6b7045a361 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 @@ -517,5 +517,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 76c76d99af7..8f37696cff5 100644 --- a/lib/datadog_api_client/v1/models/note_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/note_widget_definition.rb @@ -349,5 +349,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/note_widget_definition_type.rb b/lib/datadog_api_client/v1/models/note_widget_definition_type.rb index 0de9a508bc1..2425f0f3928 100644 --- a/lib/datadog_api_client/v1/models/note_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/note_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 e6ca1ecc70c..01ab2d7b412 100644 --- a/lib/datadog_api_client/v1/models/notebook_absolute_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_absolute_time.rb @@ -275,5 +275,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/notebook_author.rb b/lib/datadog_api_client/v1/models/notebook_author.rb index 2d08d012bb5..db2cad57973 100644 --- a/lib/datadog_api_client/v1/models/notebook_author.rb +++ b/lib/datadog_api_client/v1/models/notebook_author.rb @@ -329,5 +329,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c97b58e6a82..7b271537502 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 @@ -268,5 +268,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb b/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb index d9b214e3bd7..1e363c66b73 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb @@ -117,5 +117,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/notebook_cell_resource_type.rb b/lib/datadog_api_client/v1/models/notebook_cell_resource_type.rb index 4d99caed021..ecd534e3fb2 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_resource_type.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_resource_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 d81cf780404..9c73b23ec57 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_response.rb @@ -282,5 +282,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/notebook_cell_response_attributes.rb b/lib/datadog_api_client/v1/models/notebook_cell_response_attributes.rb index 280fdb84058..e59bcc3dd01 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_response_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_response_attributes.rb @@ -117,5 +117,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/notebook_cell_time.rb b/lib/datadog_api_client/v1/models/notebook_cell_time.rb index deaeec39aad..8a5b71063c7 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_time.rb @@ -112,5 +112,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 b50c21b26e2..ece9a390fc8 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 @@ -282,5 +282,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/notebook_cell_update_request_attributes.rb b/lib/datadog_api_client/v1/models/notebook_cell_update_request_attributes.rb index f9c0c56de54..36bb7d4b1ae 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_update_request_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_update_request_attributes.rb @@ -117,5 +117,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 c16a3635b49..aa33bb523bc 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_data.rb @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a1a63cc6d00..5aa35de6a33 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 @@ -303,5 +303,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 7cd5defa33c..bf363b1523d 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_request.rb @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 45a98c7ce88..cbea831b7db 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 @@ -284,5 +284,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/notebook_global_time.rb b/lib/datadog_api_client/v1/models/notebook_global_time.rb index 0d748b360c8..da0755ec81f 100644 --- a/lib/datadog_api_client/v1/models/notebook_global_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_global_time.rb @@ -112,5 +112,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/notebook_graph_size.rb b/lib/datadog_api_client/v1/models/notebook_graph_size.rb index f3e4cd9d24f..a0f2e3453b9 100644 --- a/lib/datadog_api_client/v1/models/notebook_graph_size.rb +++ b/lib/datadog_api_client/v1/models/notebook_graph_size.rb @@ -42,4 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 fc496f3e757..711e06cd19a 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 @@ -282,5 +282,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 ee4c13deb68..5279dd2e005 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 @@ -272,5 +272,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c480a137e5c..cb48529d658 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3e546388935..293ea940bf3 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition_type.rb b/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition_type.rb index 888b886f18c..938bd0df214 100644 --- a/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition_type.rb +++ b/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/notebook_metadata.rb b/lib/datadog_api_client/v1/models/notebook_metadata.rb index f415648a60d..609e86f5c88 100644 --- a/lib/datadog_api_client/v1/models/notebook_metadata.rb +++ b/lib/datadog_api_client/v1/models/notebook_metadata.rb @@ -272,5 +272,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/notebook_metadata_type.rb b/lib/datadog_api_client/v1/models/notebook_metadata_type.rb index 64cbb08edc5..f035dbfde5e 100644 --- a/lib/datadog_api_client/v1/models/notebook_metadata_type.rb +++ b/lib/datadog_api_client/v1/models/notebook_metadata_type.rb @@ -42,4 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 ad9f2992ec4..89f5fee8499 100644 --- a/lib/datadog_api_client/v1/models/notebook_relative_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_relative_time.rb @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/notebook_resource_type.rb b/lib/datadog_api_client/v1/models/notebook_resource_type.rb index 6b6423f939a..7f25c7dffe7 100644 --- a/lib/datadog_api_client/v1/models/notebook_resource_type.rb +++ b/lib/datadog_api_client/v1/models/notebook_resource_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/notebook_response.rb b/lib/datadog_api_client/v1/models/notebook_response.rb index f9fd38d1fd3..1c3a0e7eb9e 100644 --- a/lib/datadog_api_client/v1/models/notebook_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_response.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 af6daaee7ad..0c616d6acfd 100644 --- a/lib/datadog_api_client/v1/models/notebook_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_response_data.rb @@ -281,5 +281,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 29a0fd09d51..19fd8378f05 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 @@ -333,5 +333,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c51f57faaf1..4ad477d189b 100644 --- a/lib/datadog_api_client/v1/models/notebook_split_by.rb +++ b/lib/datadog_api_client/v1/models/notebook_split_by.rb @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/notebook_status.rb b/lib/datadog_api_client/v1/models/notebook_status.rb index 694ff9abd3a..074573e107c 100644 --- a/lib/datadog_api_client/v1/models/notebook_status.rb +++ b/lib/datadog_api_client/v1/models/notebook_status.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 2e422012481..2f749affe60 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 @@ -282,5 +282,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9fc6229dea6..9485df49dd8 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 @@ -282,5 +282,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/notebook_update_cell.rb b/lib/datadog_api_client/v1/models/notebook_update_cell.rb index 8d5fe6037cc..f12f5cee1b9 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_cell.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_cell.rb @@ -113,5 +113,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 b1a86d78a2c..4e623a87767 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_data.rb @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 06f5e58d3a2..bc6c15f0662 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 @@ -303,5 +303,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 6c75dd943c0..d42e585af73 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_request.rb @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/notebooks_response.rb b/lib/datadog_api_client/v1/models/notebooks_response.rb index 963967d0a4a..9f1707a1f2d 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response.rb @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 40efac44ba2..0a42d101bf9 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_data.rb @@ -281,5 +281,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c7f4585961f..907b1a250ed 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 @@ -325,5 +325,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 aabd46b2abb..bb7ca233132 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_meta.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_meta.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 ba1cf1592f9..353dfea046a 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_page.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_page.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/organization.rb b/lib/datadog_api_client/v1/models/organization.rb index 56e2bd9e4f3..c9bf932a9f5 100644 --- a/lib/datadog_api_client/v1/models/organization.rb +++ b/lib/datadog_api_client/v1/models/organization.rb @@ -307,5 +307,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/organization_billing.rb b/lib/datadog_api_client/v1/models/organization_billing.rb index 22b4e132e95..6acb21505c5 100644 --- a/lib/datadog_api_client/v1/models/organization_billing.rb +++ b/lib/datadog_api_client/v1/models/organization_billing.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3816a48fdba..6ce33b5f1f9 100644 --- a/lib/datadog_api_client/v1/models/organization_create_body.rb +++ b/lib/datadog_api_client/v1/models/organization_create_body.rb @@ -271,5 +271,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 4b5cbcb0a48..5b2797663b4 100644 --- a/lib/datadog_api_client/v1/models/organization_create_response.rb +++ b/lib/datadog_api_client/v1/models/organization_create_response.rb @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a7e3d7126ee..b1ffdabb89c 100644 --- a/lib/datadog_api_client/v1/models/organization_list_response.rb +++ b/lib/datadog_api_client/v1/models/organization_list_response.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/organization_response.rb b/lib/datadog_api_client/v1/models/organization_response.rb index 6d80dcfd847..995350a969c 100644 --- a/lib/datadog_api_client/v1/models/organization_response.rb +++ b/lib/datadog_api_client/v1/models/organization_response.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/organization_settings.rb b/lib/datadog_api_client/v1/models/organization_settings.rb index 11d0e344600..e2397dddd4b 100644 --- a/lib/datadog_api_client/v1/models/organization_settings.rb +++ b/lib/datadog_api_client/v1/models/organization_settings.rb @@ -340,5 +340,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 6fa95f2bfe6..a1f38996ced 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml.rb @@ -248,5 +248,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 17a823d0f94..b7184d82829 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c20a01a4d0f..d2595ccc1ca 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 @@ -248,5 +248,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8fb4e93dc47..1c05f2e4beb 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 @@ -248,5 +248,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/organization_subscription.rb b/lib/datadog_api_client/v1/models/organization_subscription.rb index f22ddf01291..bf04ba176eb 100644 --- a/lib/datadog_api_client/v1/models/organization_subscription.rb +++ b/lib/datadog_api_client/v1/models/organization_subscription.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 21936bba1a8..c307ae6618e 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service.rb @@ -265,5 +265,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 6105bb43fa8..b8123adc562 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 1428410881e..acaa0c4d7ec 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/pagination.rb b/lib/datadog_api_client/v1/models/pagination.rb index ff021617cbd..62a93ffb946 100644 --- a/lib/datadog_api_client/v1/models/pagination.rb +++ b/lib/datadog_api_client/v1/models/pagination.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 d95781ac3f7..009f14d9d95 100644 --- a/lib/datadog_api_client/v1/models/process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/process_query_definition.rb @@ -283,5 +283,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/query_sort_order.rb b/lib/datadog_api_client/v1/models/query_sort_order.rb index e8bfbfa1291..81add960963 100644 --- a/lib/datadog_api_client/v1/models/query_sort_order.rb +++ b/lib/datadog_api_client/v1/models/query_sort_order.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 0017ae9e5af..0db755946b1 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 @@ -361,5 +361,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/query_value_widget_definition_type.rb b/lib/datadog_api_client/v1/models/query_value_widget_definition_type.rb index 8b1481bbf5c..384f487c2cf 100644 --- a/lib/datadog_api_client/v1/models/query_value_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/query_value_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 eb39fc8b254..20825ba32c3 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 @@ -393,5 +393,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 603a87c2717..f3ed99f134e 100644 --- a/lib/datadog_api_client/v1/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v1/models/response_meta_attributes.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e735a6c8960..df9df59ac13 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_request.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_request.rb @@ -337,5 +337,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 6dfaf17b90b..a4f8245a553 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 @@ -351,5 +351,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 668babdbc79..4bb309a70d4 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_type.rb b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_type.rb index 08d1c201f03..f107224aa54 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/scatterplot_dimension.rb b/lib/datadog_api_client/v1/models/scatterplot_dimension.rb index d6ff84b7727..cc73b9083cb 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_dimension.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_dimension.rb @@ -41,4 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 6a0b5269d3a..98013273db1 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_table_request.rb @@ -271,5 +271,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/scatterplot_widget_aggregator.rb b/lib/datadog_api_client/v1/models/scatterplot_widget_aggregator.rb index 7da5e83056a..d2324f184a2 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_widget_aggregator.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_widget_aggregator.rb @@ -42,4 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 3658dca1a66..318da1a2383 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb @@ -275,5 +275,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/series.rb b/lib/datadog_api_client/v1/models/series.rb index 6febc9bd8bb..bcc137fe07f 100644 --- a/lib/datadog_api_client/v1/models/series.rb +++ b/lib/datadog_api_client/v1/models/series.rb @@ -313,5 +313,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/service_check.rb b/lib/datadog_api_client/v1/models/service_check.rb index 2a88a452103..e5b7838482c 100644 --- a/lib/datadog_api_client/v1/models/service_check.rb +++ b/lib/datadog_api_client/v1/models/service_check.rb @@ -315,5 +315,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/service_check_status.rb b/lib/datadog_api_client/v1/models/service_check_status.rb index be52025e8a3..cd45aac795e 100644 --- a/lib/datadog_api_client/v1/models/service_check_status.rb +++ b/lib/datadog_api_client/v1/models/service_check_status.rb @@ -41,4 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 17c82340333..02927470fed 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective.rb @@ -415,5 +415,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 d7b80f196a4..606898ad3ae 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 f057307696e..5aad54d0d99 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 @@ -352,5 +352,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3811d6d083c..68f8a006196 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 @@ -325,5 +325,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/service_map_widget_definition_type.rb b/lib/datadog_api_client/v1/models/service_map_widget_definition_type.rb index 1042eea936b..67a0a86349e 100644 --- a/lib/datadog_api_client/v1/models/service_map_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/service_map_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 cb5deb179a9..38f57355977 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 @@ -415,5 +415,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/service_summary_widget_definition_type.rb b/lib/datadog_api_client/v1/models/service_summary_widget_definition_type.rb index 50fb1a0c146..8f8dc0f4c6d 100644 --- a/lib/datadog_api_client/v1/models/service_summary_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/service_summary_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 cd6b0a99203..d70e9c02e6f 100644 --- a/lib/datadog_api_client/v1/models/slack_integration_channel.rb +++ b/lib/datadog_api_client/v1/models/slack_integration_channel.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 782acd8a3df..a1ef85ffd78 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 @@ -285,5 +285,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e915529748c..4f20df59979 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 @@ -281,5 +281,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 781352e883e..5959f7f10ff 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 @@ -264,5 +264,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 f753eb019a7..70a4d4ebeb7 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 @@ -264,5 +264,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/slo_correction.rb b/lib/datadog_api_client/v1/models/slo_correction.rb index 2e4fc038dae..eaa55b950e8 100644 --- a/lib/datadog_api_client/v1/models/slo_correction.rb +++ b/lib/datadog_api_client/v1/models/slo_correction.rb @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/slo_correction_category.rb b/lib/datadog_api_client/v1/models/slo_correction_category.rb index ab4e56e7d85..c8fb8a022b1 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_category.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_category.rb @@ -41,4 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 6a23d854953..5d5e5294d56 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 @@ -263,5 +263,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 be80b560bb5..58ffcfb355b 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 6942afb63ba..a2495726c9c 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 @@ -330,5 +330,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 0733ce11726..fd40c3c8d7f 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b8429b41fc2..bfc10ef6627 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_response.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_response.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 1b7646c1166..c100a765427 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 @@ -361,5 +361,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 527045e6470..fd1c01ee63c 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/slo_correction_type.rb b/lib/datadog_api_client/v1/models/slo_correction_type.rb index 17e1b71b145..7fe05fabb19 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_type.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 8e4dbd17967..4b2ccb4a477 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9763d863d3d..07b523bbe5a 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 7a6e0df6b13..afc8533cb5c 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 @@ -308,5 +308,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 7d4bfbf21c5..1d64563a468 100644 --- a/lib/datadog_api_client/v1/models/slo_delete_response.rb +++ b/lib/datadog_api_client/v1/models/slo_delete_response.rb @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/slo_error_timeframe.rb b/lib/datadog_api_client/v1/models/slo_error_timeframe.rb index 16f326aa7d0..593d1707160 100644 --- a/lib/datadog_api_client/v1/models/slo_error_timeframe.rb +++ b/lib/datadog_api_client/v1/models/slo_error_timeframe.rb @@ -42,4 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 aa9c0dbb610..989da999932 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics.rb @@ -351,5 +351,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 f7741290300..c7798ae4fba 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 @@ -292,5 +292,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e000c413f71..4f7de201595 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 @@ -302,5 +302,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 23f13ae590d..046b8cd318b 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 @@ -299,5 +299,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e3018c43875..0fc10458c3b 100644 --- a/lib/datadog_api_client/v1/models/slo_history_monitor.rb +++ b/lib/datadog_api_client/v1/models/slo_history_monitor.rb @@ -363,5 +363,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e95b7934af4..b053a09db57 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response.rb @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 116ea1e939d..20957ac551e 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 @@ -354,5 +354,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 ea616e1b3e2..1a783cb7711 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 1dc153bf976..888d08a2b04 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 @@ -265,5 +265,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b6827765ad5..a427ea09827 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 @@ -363,5 +363,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 4dce58edd50..b82bd884792 100644 --- a/lib/datadog_api_client/v1/models/slo_list_response.rb +++ b/lib/datadog_api_client/v1/models/slo_list_response.rb @@ -272,5 +272,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8573ebd2bc1..4fef58081a0 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 f6145c36e70..200f104fbff 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/slo_response.rb b/lib/datadog_api_client/v1/models/slo_response.rb index 062ca0eb681..d5f2443a49f 100644 --- a/lib/datadog_api_client/v1/models/slo_response.rb +++ b/lib/datadog_api_client/v1/models/slo_response.rb @@ -261,5 +261,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e451bb10556..f2e9f597346 100644 --- a/lib/datadog_api_client/v1/models/slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_response_data.rb @@ -415,5 +415,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/slo_threshold.rb b/lib/datadog_api_client/v1/models/slo_threshold.rb index 45f7baaac66..e15ac333b3e 100644 --- a/lib/datadog_api_client/v1/models/slo_threshold.rb +++ b/lib/datadog_api_client/v1/models/slo_threshold.rb @@ -304,5 +304,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/slo_timeframe.rb b/lib/datadog_api_client/v1/models/slo_timeframe.rb index 76f876b7377..36556995bae 100644 --- a/lib/datadog_api_client/v1/models/slo_timeframe.rb +++ b/lib/datadog_api_client/v1/models/slo_timeframe.rb @@ -41,4 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/slo_type.rb b/lib/datadog_api_client/v1/models/slo_type.rb index 77f0910b75d..59f4f1b92ae 100644 --- a/lib/datadog_api_client/v1/models/slo_type.rb +++ b/lib/datadog_api_client/v1/models/slo_type.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/slo_type_numeric.rb b/lib/datadog_api_client/v1/models/slo_type_numeric.rb index eaa0b7e64eb..4397d9400e6 100644 --- a/lib/datadog_api_client/v1/models/slo_type_numeric.rb +++ b/lib/datadog_api_client/v1/models/slo_type_numeric.rb @@ -41,4 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 7e8a6b341f2..ac6290842a4 100644 --- a/lib/datadog_api_client/v1/models/slo_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/slo_widget_definition.rb @@ -351,5 +351,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/slo_widget_definition_type.rb b/lib/datadog_api_client/v1/models/slo_widget_definition_type.rb index 81075d4915c..558bb40b90c 100644 --- a/lib/datadog_api_client/v1/models/slo_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/slo_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 a2b58971754..fce691be289 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb @@ -341,5 +341,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_definition_type.rb b/lib/datadog_api_client/v1/models/sunburst_widget_definition_type.rb index a3b607240f1..62eefcfeccd 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_legend.rb b/lib/datadog_api_client/v1/models/sunburst_widget_legend.rb index f2b3a126d84..583096958ba 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_legend.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_legend.rb @@ -112,5 +112,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 439d0ea3ad8..0313c7071f3 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 @@ -271,5 +271,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic_type.rb b/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic_type.rb index 59805437c41..2e72b748a56 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic_type.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic_type.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 fffc5acdfd9..534244914c3 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_legend_table_type.rb b/lib/datadog_api_client/v1/models/sunburst_widget_legend_table_type.rb index d34a57e912d..c0eadd78d5c 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_legend_table_type.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_legend_table_type.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 19a2c3919b2..b51bd4a0eca 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_request.rb @@ -371,5 +371,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_api_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_step.rb index 50fb795cece..aefa48058a8 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_step.rb @@ -340,5 +340,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb b/lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb index f5794fba216..b478b392efe 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 1775ba0343a..faef5e9e620 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test.rb @@ -375,5 +375,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c3f89b5a65a..1f0333eabde 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 @@ -285,5 +285,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_failure_code.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_failure_code.rb index 54969a79110..da9ea7b76a3 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_failure_code.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_failure_code.rb @@ -63,4 +63,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 0a399a9220c..425fc1b5593 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 @@ -328,5 +328,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 f333bb9da5f..a4742f5907d 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 79e2b7d1f16..8517240e784 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 @@ -310,5 +310,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b0094ac9bb6..700a3b84802 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a78c811fab7..255204aabea 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 @@ -290,5 +290,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 4fc8762a226..be4645344a6 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 @@ -258,5 +258,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_type.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_type.rb index eb73c0103f9..1df2a1fe33c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion.rb b/lib/datadog_api_client/v1/models/synthetics_assertion.rb index a99b576aebc..cdab2111d1b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion.rb @@ -113,5 +113,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_operator.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_operator.rb index d43c86c0c25..6dc2771cda6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_operator.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_operator.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 57dffcca880..4a8d19a8f86 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 @@ -285,5 +285,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 0c8c94c1a78..86c38136515 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb index 92721c220f5..5a1622ae504 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb @@ -50,4 +50,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 043cbf4ab53..d6af543eabe 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb @@ -289,5 +289,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_type.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_type.rb index 573f03ccd6e..8dec01d188c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_type.rb @@ -52,4 +52,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb index ccc3d18d84a..2c17e5c0129 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb @@ -113,5 +113,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 f91fcb7d2b7..7a2d6a0dba9 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 @@ -293,5 +293,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm_type.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm_type.rb index f2152d02e9b..b1a52480a3b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 d18fefa205e..bd623b56da7 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 @@ -311,5 +311,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4_type.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4_type.rb index 8e8ff77dbcc..ae20ef9c7ad 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 126df5fbf65..66356cb6b5f 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 @@ -281,5 +281,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_web_type.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_web_type.rb index 6437afae9bc..7b511b215a0 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_web_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_web_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 4e3f22c3748..37f70de94f4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_details.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 5b2f732d51c..09829f86328 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 @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c41cfb8a756..efaa4cb5b46 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb @@ -337,5 +337,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 bd94606cea9..9654b98a45b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_error.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_error.rb @@ -289,5 +289,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_error_type.rb b/lib/datadog_api_client/v1/models/synthetics_browser_error_type.rb index 2d33d827803..8aa64de366c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_error_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_error_type.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 181808793be..03c9bb71b4d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb @@ -376,5 +376,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 5c1ca819852..2546023c669 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 @@ -303,5 +303,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_failure_code.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_failure_code.rb index a62c6ae93a2..4523abd7c44 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_failure_code.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_failure_code.rb @@ -70,4 +70,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 268390736b0..7cb4d8fcf7b 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 @@ -360,5 +360,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c4ffb83b8fb..20647d90daf 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 7c1c9ec9fe9..7ff01b98c2a 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 @@ -310,5 +310,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 4092c110a37..f7b789b7cd3 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 ece5259f44f..9a2344aca16 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 @@ -290,5 +290,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 6ed93b0b73a..6e332135206 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 @@ -287,5 +287,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_type.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_type.rb index 330439da14a..9bac4ef1c94 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 a3278e866ba..b2bf78f1756 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb @@ -296,5 +296,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_variable_type.rb b/lib/datadog_api_client/v1/models/synthetics_browser_variable_type.rb index af7c1cb9f87..0b1f9a234fe 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_variable_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_variable_type.rb @@ -42,4 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_check_type.rb b/lib/datadog_api_client/v1/models/synthetics_check_type.rb index 0f2d9322a66..6df947cb181 100644 --- a/lib/datadog_api_client/v1/models/synthetics_check_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_check_type.rb @@ -51,4 +51,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 32cc98b0029..5d68990413c 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a45fb8c8779..ed62b0a790e 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a2856c10927..ae093b266d9 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e02010eab55..b1937f87392 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 dbf29543db9..6af87780454 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c162c67d692..6ec5ac6091c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_test.rb @@ -385,5 +385,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 965ae90bd8a..0aa57e92c71 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 7fb0a728769..6dadaa1de2f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_config_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_config_variable.rb @@ -295,5 +295,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_config_variable_type.rb b/lib/datadog_api_client/v1/models/synthetics_config_variable_type.rb index ae5bb38933c..d584d003fac 100644 --- a/lib/datadog_api_client/v1/models/synthetics_config_variable_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_config_variable_type.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 f0e40b419cd..21515fd0335 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 5ad899425b1..0833c25fd8a 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 @@ -250,5 +250,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 71a6200a194..76cf57fe26b 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 @@ -250,5 +250,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 f6b5326a16a..cd99fd06edf 100644 --- a/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb @@ -258,5 +258,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_device.rb b/lib/datadog_api_client/v1/models/synthetics_device.rb index 339feb353a9..b1608567b6c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_device.rb +++ b/lib/datadog_api_client/v1/models/synthetics_device.rb @@ -303,5 +303,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_device_id.rb b/lib/datadog_api_client/v1/models/synthetics_device_id.rb index a3cb8dc6d9d..e2ecdc8ed60 100644 --- a/lib/datadog_api_client/v1/models/synthetics_device_id.rb +++ b/lib/datadog_api_client/v1/models/synthetics_device_id.rb @@ -49,4 +49,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 df1ee5933af..a98d5bf2e10 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 ba7538e83f7..8e7e7e33810 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 0a5ded3a89e..fe4947f0cf3 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable.rb @@ -335,5 +335,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 888af5c36a2..27a3ca3d748 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 73937ec1fdb..ea96837fd5c 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 @@ -275,5 +275,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb index b99e15a64db..e2e1348c019 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_parser_type.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_parser_type.rb index 91f43205866..db3bb5672ff 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_parser_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_parser_type.rb @@ -41,4 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 5f59d22f4d3..05eab8b2d4d 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 @@ -258,5 +258,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 cb86fde2467..59cc3225824 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8709a422b56..b132fa465c9 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_location.rb b/lib/datadog_api_client/v1/models/synthetics_location.rb index 6d6ff7c43a5..f5059a7d6ed 100644 --- a/lib/datadog_api_client/v1/models/synthetics_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_location.rb @@ -258,5 +258,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_locations.rb b/lib/datadog_api_client/v1/models/synthetics_locations.rb index 68d24306d2e..3393907c965 100644 --- a/lib/datadog_api_client/v1/models/synthetics_locations.rb +++ b/lib/datadog_api_client/v1/models/synthetics_locations.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 25989b223ea..2f9ad032900 100644 --- a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_playing_tab.rb b/lib/datadog_api_client/v1/models/synthetics_playing_tab.rb index c9ad226103e..0903065080c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_playing_tab.rb +++ b/lib/datadog_api_client/v1/models/synthetics_playing_tab.rb @@ -42,4 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 e34e5b328ad..a44bf38372b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location.rb @@ -301,5 +301,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 99d22a50bcf..ed9e620f1e2 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 879b680dcf6..05a5d6a5858 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9c004dfb820..702ac3c3483 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 88f37dcc1b5..36a0708d762 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9d602692462..99189d94691 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 40b33d5430f..69e76d52a1a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb @@ -359,5 +359,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3173ad731bf..f607a8848c6 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 @@ -297,5 +297,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 36501cce353..51c4bada0ee 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 @@ -307,5 +307,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_status.rb b/lib/datadog_api_client/v1/models/synthetics_status.rb index 364c3d066fe..ca302540684 100644 --- a/lib/datadog_api_client/v1/models/synthetics_status.rb +++ b/lib/datadog_api_client/v1/models/synthetics_status.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_step.rb b/lib/datadog_api_client/v1/models/synthetics_step.rb index de79b79babb..6af6b87003f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step.rb @@ -287,5 +287,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 2d32913ba03..8a309871414 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_detail.rb @@ -416,5 +416,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 da1952c1c1f..549f40681dc 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 @@ -265,5 +265,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_step_type.rb b/lib/datadog_api_client/v1/models/synthetics_step_type.rb index 02d361b8bc7..95d1a73083b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_type.rb @@ -62,4 +62,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 0eaec29f87b..0d9524c359b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_config.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_config.rb @@ -285,5 +285,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 548e9930378..caffbbe6e41 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details.rb @@ -375,5 +375,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb b/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb index b28eed2bb4a..33283f0ce08 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb @@ -46,4 +46,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_test_details_type.rb b/lib/datadog_api_client/v1/models/synthetics_test_details_type.rb index f0678a6ac17..052be14fb8d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details_type.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_test_execution_rule.rb b/lib/datadog_api_client/v1/models/synthetics_test_execution_rule.rb index 43c487f68cd..eaebd998db6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_execution_rule.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_execution_rule.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_test_monitor_status.rb b/lib/datadog_api_client/v1/models/synthetics_test_monitor_status.rb index 8dd28a86dd5..a039fcd9ab7 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_monitor_status.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_monitor_status.rb @@ -43,4 +43,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 c4a749c38f9..94939fa8e41 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options.rb @@ -372,5 +372,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9fb5fb60918..3f5422b91bb 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 efa5284152f..0aed6e09dfa 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_test_pause_status.rb b/lib/datadog_api_client/v1/models/synthetics_test_pause_status.rb index 0cf0ada0eed..e305f4750d4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_pause_status.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_pause_status.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb b/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb index 1f4ec11b9af..b6902af7a11 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb @@ -42,4 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 cadb4c2b8d9..8e437d82d55 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request.rb @@ -439,5 +439,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 811e0368ad9..b2a816e4531 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 86a63ac3e93..3a30b4ea735 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 75595eda550..6fc5917f85f 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 @@ -261,5 +261,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_timing.rb b/lib/datadog_api_client/v1/models/synthetics_timing.rb index 36f4898440c..4951deeff44 100644 --- a/lib/datadog_api_client/v1/models/synthetics_timing.rb +++ b/lib/datadog_api_client/v1/models/synthetics_timing.rb @@ -328,5 +328,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 79de5455df0..73b449aff0d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb @@ -253,5 +253,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 91c51ae2d31..2bb66ed40fd 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8cba6b5ce4c..842955b8ee6 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 @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 4b778f6e6d2..de13c788b61 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 @@ -284,5 +284,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9d46de2cad6..8bdc6c14fba 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb @@ -261,5 +261,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 850ee33650b..03c6ea81b64 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 @@ -248,5 +248,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 1588253a0a5..2c7b4106680 100644 --- a/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb +++ b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb @@ -261,5 +261,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/synthetics_warning_type.rb b/lib/datadog_api_client/v1/models/synthetics_warning_type.rb index e0312c907f2..0d650041581 100644 --- a/lib/datadog_api_client/v1/models/synthetics_warning_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_warning_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/table_widget_cell_display_mode.rb b/lib/datadog_api_client/v1/models/table_widget_cell_display_mode.rb index 3aaf7a24b12..968a06220a3 100644 --- a/lib/datadog_api_client/v1/models/table_widget_cell_display_mode.rb +++ b/lib/datadog_api_client/v1/models/table_widget_cell_display_mode.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 a46658353eb..be1342ddd24 100644 --- a/lib/datadog_api_client/v1/models/table_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/table_widget_definition.rb @@ -331,5 +331,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/table_widget_definition_type.rb b/lib/datadog_api_client/v1/models/table_widget_definition_type.rb index eff1f9a9f6c..0e503dce512 100644 --- a/lib/datadog_api_client/v1/models/table_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/table_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/table_widget_has_search_bar.rb b/lib/datadog_api_client/v1/models/table_widget_has_search_bar.rb index 65f6acf7b57..593da256bc7 100644 --- a/lib/datadog_api_client/v1/models/table_widget_has_search_bar.rb +++ b/lib/datadog_api_client/v1/models/table_widget_has_search_bar.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 e7d9ca38431..cebc829738c 100644 --- a/lib/datadog_api_client/v1/models/table_widget_request.rb +++ b/lib/datadog_api_client/v1/models/table_widget_request.rb @@ -435,5 +435,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 1b583289d89..06cb4caf89c 100644 --- a/lib/datadog_api_client/v1/models/tag_to_hosts.rb +++ b/lib/datadog_api_client/v1/models/tag_to_hosts.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/target_format_type.rb b/lib/datadog_api_client/v1/models/target_format_type.rb index 558ff1c62d5..d5cd792f5df 100644 --- a/lib/datadog_api_client/v1/models/target_format_type.rb +++ b/lib/datadog_api_client/v1/models/target_format_type.rb @@ -43,4 +43,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 cca13cdb0b6..5201b667f5d 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb @@ -407,5 +407,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_definition_type.rb b/lib/datadog_api_client/v1/models/timeseries_widget_definition_type.rb index b81b52038f8..a4db965a6fe 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 bf0b72efedb..e7010ce0898 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 @@ -261,5 +261,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_legend_column.rb b/lib/datadog_api_client/v1/models/timeseries_widget_legend_column.rb index 008a1db0c29..a45824b3a80 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_legend_column.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_legend_column.rb @@ -42,4 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_legend_layout.rb b/lib/datadog_api_client/v1/models/timeseries_widget_legend_layout.rb index 83585b0a6f3..73142d3479f 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_legend_layout.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_legend_layout.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 ced01ed6c2f..774afd1eb7a 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb @@ -413,5 +413,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 70c0c134eb9..69429623d5a 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_definition.rb @@ -321,5 +321,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/toplist_widget_definition_type.rb b/lib/datadog_api_client/v1/models/toplist_widget_definition_type.rb index 8a603136cdc..fe86cf381c6 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 d0b8c80a097..06764fcc46f 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_request.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_request.rb @@ -393,5 +393,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/tree_map_color_by.rb b/lib/datadog_api_client/v1/models/tree_map_color_by.rb index 886d9cba3d0..874080d771e 100644 --- a/lib/datadog_api_client/v1/models/tree_map_color_by.rb +++ b/lib/datadog_api_client/v1/models/tree_map_color_by.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/tree_map_group_by.rb b/lib/datadog_api_client/v1/models/tree_map_group_by.rb index 38e0d825bdd..b6373d1c9de 100644 --- a/lib/datadog_api_client/v1/models/tree_map_group_by.rb +++ b/lib/datadog_api_client/v1/models/tree_map_group_by.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/tree_map_size_by.rb b/lib/datadog_api_client/v1/models/tree_map_size_by.rb index 8c4727d3831..7ba6534645f 100644 --- a/lib/datadog_api_client/v1/models/tree_map_size_by.rb +++ b/lib/datadog_api_client/v1/models/tree_map_size_by.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 727db88982c..a9cf92ebe21 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 @@ -311,5 +311,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/tree_map_widget_definition_type.rb b/lib/datadog_api_client/v1/models/tree_map_widget_definition_type.rb index 63972ecc792..98434778e77 100644 --- a/lib/datadog_api_client/v1/models/tree_map_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/tree_map_widget_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 c4f69b14508..92161106c94 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 @@ -281,5 +281,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 009c2ab08f1..1a70e174206 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 @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 4cec562410d..0694e831cee 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3ca5e08c32f..6cdfb62553d 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_body.rb b/lib/datadog_api_client/v1/models/usage_attribution_body.rb index ae00293db6a..98a0cce1482 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_body.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_body.rb @@ -307,5 +307,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb b/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb index 56503102f12..0e7fca9a351 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb b/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb index dc70a218504..c2dc0a7541a 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb @@ -287,5 +287,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_response.rb b/lib/datadog_api_client/v1/models/usage_attribution_response.rb index 5ed862c1655..97d07005ab5 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_response.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_response.rb @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_sort.rb b/lib/datadog_api_client/v1/models/usage_attribution_sort.rb index 2c6d83fb9ce..f1138842b1d 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_sort.rb @@ -59,4 +59,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb b/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb index b42be18e80c..ebd9d0710f7 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb @@ -72,4 +72,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_values.rb b/lib/datadog_api_client/v1/models/usage_attribution_values.rb index 590f6083dbb..685fc9814f9 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_values.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_values.rb @@ -641,5 +641,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 2758e3144a3..cb6a6d189bf 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 @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 dc67990e3cd..c9d2486660a 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 2a80398f7e9..534e784cc67 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 @@ -307,5 +307,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 cf26e59a6f3..e5f0e42ce7e 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 @@ -317,5 +317,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 ed871b80d23..e4e9ed3f94f 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 @@ -557,5 +557,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 45550e38dba..7311eb46c8f 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 00503d97040..7c332b92579 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 @@ -322,5 +322,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 1973bd59c54..2a589c6469e 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 946540f24e2..9f9b07e662b 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 @@ -289,5 +289,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8e9ba007c57..3d1a5d15e86 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 @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 143e9105c02..c34f185a223 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8777c6e0002..cc000b378ee 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8bb8d46000c..a3e5b37f126 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 cb2f49c5f0a..889300b5262 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_hour.rb @@ -287,5 +287,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 07877b1bf91..5cad8b3f2a6 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_response.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_response.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 7c2cb1fce0e..3d5695db4d2 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_hour.rb @@ -287,5 +287,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a1bc4371a67..88f56f40f99 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_response.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_response.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 d0fd6bde86b..61e11f929cd 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_hour.rb @@ -287,5 +287,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 28f47a3e6e8..8d93f29727a 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_response.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_response.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 2bee1b11a26..421b430b23b 100644 --- a/lib/datadog_api_client/v1/models/usage_host_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_host_hour.rb @@ -386,5 +386,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 80bae853a5f..bacdd138da0 100644 --- a/lib/datadog_api_client/v1/models/usage_hosts_response.rb +++ b/lib/datadog_api_client/v1/models/usage_hosts_response.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 29009b649cf..0748f964f40 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 @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 1b67a4ea019..7458950e1db 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 cf151c2713d..978b72af7c7 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 @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a3c1ba26c3d..11c4dc7d567 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 32b87ebf6c9..d31e0f0ca98 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 @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 085e258335d..cd5fb197a31 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/usage_io_t_hour.rb b/lib/datadog_api_client/v1/models/usage_io_t_hour.rb index 8f36bedcbf0..2dc2e62e15c 100644 --- a/lib/datadog_api_client/v1/models/usage_io_t_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_io_t_hour.rb @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/usage_io_t_response.rb b/lib/datadog_api_client/v1/models/usage_io_t_response.rb index 164aaf82a6f..8634e730b9c 100644 --- a/lib/datadog_api_client/v1/models/usage_io_t_response.rb +++ b/lib/datadog_api_client/v1/models/usage_io_t_response.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 45233658d39..cfe6c58d193 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_hour.rb @@ -268,5 +268,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 5fc91a234ec..59031e75db9 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_response.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_response.rb @@ -250,5 +250,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9c29997ab35..68847692fd2 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 @@ -287,5 +287,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 76290519789..e9d6d9a962a 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 1178fe9ee3b..cdd76ce303b 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 @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 decbb1f62a2..e3825000bb3 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 5d2a9bd3cbf..ed0c42630db 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_hour.rb @@ -317,5 +317,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a0dbc3351c6..1089046dae3 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_response.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_response.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/usage_metric_category.rb b/lib/datadog_api_client/v1/models/usage_metric_category.rb index 6cd34b7955b..38e33618bff 100644 --- a/lib/datadog_api_client/v1/models/usage_metric_category.rb +++ b/lib/datadog_api_client/v1/models/usage_metric_category.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 745a0bf33b8..ac12baf513b 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 db5d0134c63..a6c4c48ad1a 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 7f9dd81c20e..eed896b8300 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9b7f9be64d6..064a525fbf9 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8f7cc755ae3..f62440023c0 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_hour.rb @@ -287,5 +287,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 aead4417860..4b246ef279f 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_response.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_response.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/usage_reports_type.rb b/lib/datadog_api_client/v1/models/usage_reports_type.rb index 01dc0c7924b..1acd23f5f1d 100644 --- a/lib/datadog_api_client/v1/models/usage_reports_type.rb +++ b/lib/datadog_api_client/v1/models/usage_reports_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 ce406ea64e9..405a4863d52 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 @@ -307,5 +307,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 fda6697071b..593908f3f82 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 ba4910c4256..0a2852be71b 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 @@ -288,5 +288,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 6c9f004d6f6..72ce16c7ef3 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 dd3e407eb50..4bdcbd90184 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_hour.rb @@ -287,5 +287,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 0f15aa7b0fc..8696c1bf6a5 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_response.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_response.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 88f016f9a13..eb2b02e0046 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_hour.rb @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a359801b2a0..037981864fb 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_response.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_response.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/usage_sort.rb b/lib/datadog_api_client/v1/models/usage_sort.rb index d05bcc179f1..4d707970828 100644 --- a/lib/datadog_api_client/v1/models/usage_sort.rb +++ b/lib/datadog_api_client/v1/models/usage_sort.rb @@ -41,4 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/usage_sort_direction.rb b/lib/datadog_api_client/v1/models/usage_sort_direction.rb index 4cc4db79d95..9f1121ae12f 100644 --- a/lib/datadog_api_client/v1/models/usage_sort_direction.rb +++ b/lib/datadog_api_client/v1/models/usage_sort_direction.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 5bd6c7e6061..f7f7e559f5c 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 @@ -299,5 +299,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 66254857c95..2825b319b27 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 @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 5db22efbbbf..c7173e9e3bb 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 0cc6ab7d4b7..7fbcff32348 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 df3fe519116..8d6785a3d23 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 6cf4e55e92c..39a2ff2d4cb 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date.rb @@ -809,5 +809,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 7e1f570eab9..9d086be301d 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 @@ -817,5 +817,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e55149009ca..0eb5983f7b7 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_response.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_response.rb @@ -899,5 +899,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b6108806a27..13592fa1f48 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 622fff7f749..e486a4ed5f6 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 4bd309ec28c..fba84b0491d 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 d0a5aa65269..4ad022280b8 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9f46f9e125c..9d077d9b460 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 09ac67a0f17..6a4b10b0981 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_response.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_response.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 55d2dd7bfb4..daf1fa2a8ab 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 95702f8c6f3..4ea8b5c9838 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_response.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_response.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e728028887f..809d3141f77 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 @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 dc691b68d69..4a67fa3f739 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 fe3ef8c137d..48754665492 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/user.rb b/lib/datadog_api_client/v1/models/user.rb index 34b68c26b0e..095afb22517 100644 --- a/lib/datadog_api_client/v1/models/user.rb +++ b/lib/datadog_api_client/v1/models/user.rb @@ -309,5 +309,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 d9e24d4c90f..5b9a355aeaf 100644 --- a/lib/datadog_api_client/v1/models/user_disable_response.rb +++ b/lib/datadog_api_client/v1/models/user_disable_response.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b7d7b9b8f57..8607925a3f8 100644 --- a/lib/datadog_api_client/v1/models/user_list_response.rb +++ b/lib/datadog_api_client/v1/models/user_list_response.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/user_response.rb b/lib/datadog_api_client/v1/models/user_response.rb index bb71f83fac9..e33e133b50e 100644 --- a/lib/datadog_api_client/v1/models/user_response.rb +++ b/lib/datadog_api_client/v1/models/user_response.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/webhooks_integration.rb b/lib/datadog_api_client/v1/models/webhooks_integration.rb index 4ce0ddd3863..911a1eef74d 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration.rb @@ -305,5 +305,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 d4f21b220e4..38d29521cff 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 @@ -280,5 +280,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b0595706d90..0044a9af271 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 @@ -276,5 +276,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 13bcb6802b2..7e311f0d28a 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 @@ -270,5 +270,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/webhooks_integration_encoding.rb b/lib/datadog_api_client/v1/models/webhooks_integration_encoding.rb index d06a0fbd8e0..b2572c76f9d 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration_encoding.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration_encoding.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 84e19ae9877..fc95865f4ec 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 @@ -298,5 +298,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget.rb b/lib/datadog_api_client/v1/models/widget.rb index 6d7d9d8f750..282438a70a6 100644 --- a/lib/datadog_api_client/v1/models/widget.rb +++ b/lib/datadog_api_client/v1/models/widget.rb @@ -276,5 +276,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_aggregator.rb b/lib/datadog_api_client/v1/models/widget_aggregator.rb index 7bc4f4f2b06..b495dca196a 100644 --- a/lib/datadog_api_client/v1/models/widget_aggregator.rb +++ b/lib/datadog_api_client/v1/models/widget_aggregator.rb @@ -43,4 +43,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_axis.rb b/lib/datadog_api_client/v1/models/widget_axis.rb index eac7fb1b3f2..88aaf77b690 100644 --- a/lib/datadog_api_client/v1/models/widget_axis.rb +++ b/lib/datadog_api_client/v1/models/widget_axis.rb @@ -293,5 +293,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_change_type.rb b/lib/datadog_api_client/v1/models/widget_change_type.rb index 2bf07179db0..122ba1bce61 100644 --- a/lib/datadog_api_client/v1/models/widget_change_type.rb +++ b/lib/datadog_api_client/v1/models/widget_change_type.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_color_preference.rb b/lib/datadog_api_client/v1/models/widget_color_preference.rb index c55717eb4e6..c6e6a76c6c8 100644 --- a/lib/datadog_api_client/v1/models/widget_color_preference.rb +++ b/lib/datadog_api_client/v1/models/widget_color_preference.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_comparator.rb b/lib/datadog_api_client/v1/models/widget_comparator.rb index 5fa08f76e38..d7e0243370d 100644 --- a/lib/datadog_api_client/v1/models/widget_comparator.rb +++ b/lib/datadog_api_client/v1/models/widget_comparator.rb @@ -41,4 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_compare_to.rb b/lib/datadog_api_client/v1/models/widget_compare_to.rb index 9e860d3d7d0..8710ccaaed6 100644 --- a/lib/datadog_api_client/v1/models/widget_compare_to.rb +++ b/lib/datadog_api_client/v1/models/widget_compare_to.rb @@ -41,4 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 154f89fb9dc..f3246557a8e 100644 --- a/lib/datadog_api_client/v1/models/widget_conditional_format.rb +++ b/lib/datadog_api_client/v1/models/widget_conditional_format.rb @@ -339,5 +339,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 174a3ebc5bf..578c7c7b2e1 100644 --- a/lib/datadog_api_client/v1/models/widget_custom_link.rb +++ b/lib/datadog_api_client/v1/models/widget_custom_link.rb @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_definition.rb b/lib/datadog_api_client/v1/models/widget_definition.rb index 49fdc3f7072..e0441768c5e 100644 --- a/lib/datadog_api_client/v1/models/widget_definition.rb +++ b/lib/datadog_api_client/v1/models/widget_definition.rb @@ -139,5 +139,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_display_type.rb b/lib/datadog_api_client/v1/models/widget_display_type.rb index 453e51f976c..d3114c626fe 100644 --- a/lib/datadog_api_client/v1/models/widget_display_type.rb +++ b/lib/datadog_api_client/v1/models/widget_display_type.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_event.rb b/lib/datadog_api_client/v1/models/widget_event.rb index 869ab676c8c..1a2e4f3a420 100644 --- a/lib/datadog_api_client/v1/models/widget_event.rb +++ b/lib/datadog_api_client/v1/models/widget_event.rb @@ -264,5 +264,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_event_size.rb b/lib/datadog_api_client/v1/models/widget_event_size.rb index 349df34aa44..c4b15bcba1a 100644 --- a/lib/datadog_api_client/v1/models/widget_event_size.rb +++ b/lib/datadog_api_client/v1/models/widget_event_size.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 97721861f7a..77f5fca07cd 100644 --- a/lib/datadog_api_client/v1/models/widget_field_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_field_sort.rb @@ -265,5 +265,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_formula.rb b/lib/datadog_api_client/v1/models/widget_formula.rb index 134a2c5a267..e837c6e1fca 100644 --- a/lib/datadog_api_client/v1/models/widget_formula.rb +++ b/lib/datadog_api_client/v1/models/widget_formula.rb @@ -293,5 +293,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 719e9d1a8d0..743ad1d10b9 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_limit.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_limit.rb @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_grouping.rb b/lib/datadog_api_client/v1/models/widget_grouping.rb index 5a69221618b..daea4595648 100644 --- a/lib/datadog_api_client/v1/models/widget_grouping.rb +++ b/lib/datadog_api_client/v1/models/widget_grouping.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_horizontal_align.rb b/lib/datadog_api_client/v1/models/widget_horizontal_align.rb index 05dcde0748a..aba14026c87 100644 --- a/lib/datadog_api_client/v1/models/widget_horizontal_align.rb +++ b/lib/datadog_api_client/v1/models/widget_horizontal_align.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_image_sizing.rb b/lib/datadog_api_client/v1/models/widget_image_sizing.rb index 96fcf921a2a..ae76e0107d3 100644 --- a/lib/datadog_api_client/v1/models/widget_image_sizing.rb +++ b/lib/datadog_api_client/v1/models/widget_image_sizing.rb @@ -46,4 +46,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_layout.rb b/lib/datadog_api_client/v1/models/widget_layout.rb index 0a7c45d6771..a52c5a10d98 100644 --- a/lib/datadog_api_client/v1/models/widget_layout.rb +++ b/lib/datadog_api_client/v1/models/widget_layout.rb @@ -304,5 +304,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_layout_type.rb b/lib/datadog_api_client/v1/models/widget_layout_type.rb index eeea67bdb0f..d16744185c4 100644 --- a/lib/datadog_api_client/v1/models/widget_layout_type.rb +++ b/lib/datadog_api_client/v1/models/widget_layout_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_line_type.rb b/lib/datadog_api_client/v1/models/widget_line_type.rb index 88728d35194..9744fd0a65b 100644 --- a/lib/datadog_api_client/v1/models/widget_line_type.rb +++ b/lib/datadog_api_client/v1/models/widget_line_type.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_line_width.rb b/lib/datadog_api_client/v1/models/widget_line_width.rb index ac0e4f6df6b..66fb89feb0a 100644 --- a/lib/datadog_api_client/v1/models/widget_line_width.rb +++ b/lib/datadog_api_client/v1/models/widget_line_width.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_live_span.rb b/lib/datadog_api_client/v1/models/widget_live_span.rb index 3b4c8ae3a20..1b959b978e4 100644 --- a/lib/datadog_api_client/v1/models/widget_live_span.rb +++ b/lib/datadog_api_client/v1/models/widget_live_span.rb @@ -52,4 +52,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_margin.rb b/lib/datadog_api_client/v1/models/widget_margin.rb index 135e90f91a9..9dc7030a33c 100644 --- a/lib/datadog_api_client/v1/models/widget_margin.rb +++ b/lib/datadog_api_client/v1/models/widget_margin.rb @@ -43,4 +43,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_marker.rb b/lib/datadog_api_client/v1/models/widget_marker.rb index 5a52c2c5240..aa5079de718 100644 --- a/lib/datadog_api_client/v1/models/widget_marker.rb +++ b/lib/datadog_api_client/v1/models/widget_marker.rb @@ -285,5 +285,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_message_display.rb b/lib/datadog_api_client/v1/models/widget_message_display.rb index ad91b8bd753..e79df30ee4c 100644 --- a/lib/datadog_api_client/v1/models/widget_message_display.rb +++ b/lib/datadog_api_client/v1/models/widget_message_display.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_monitor_summary_display_format.rb b/lib/datadog_api_client/v1/models/widget_monitor_summary_display_format.rb index fc61ed1d47b..690f5d0b902 100644 --- a/lib/datadog_api_client/v1/models/widget_monitor_summary_display_format.rb +++ b/lib/datadog_api_client/v1/models/widget_monitor_summary_display_format.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb b/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb index a10197dee31..a7cdbf800fe 100644 --- a/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb @@ -52,4 +52,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_node_type.rb b/lib/datadog_api_client/v1/models/widget_node_type.rb index d17737fd489..f261c2734eb 100644 --- a/lib/datadog_api_client/v1/models/widget_node_type.rb +++ b/lib/datadog_api_client/v1/models/widget_node_type.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_order_by.rb b/lib/datadog_api_client/v1/models/widget_order_by.rb index 6a0ca881d42..35933df63de 100644 --- a/lib/datadog_api_client/v1/models/widget_order_by.rb +++ b/lib/datadog_api_client/v1/models/widget_order_by.rb @@ -41,4 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_palette.rb b/lib/datadog_api_client/v1/models/widget_palette.rb index b8433e444eb..880e5fe6382 100644 --- a/lib/datadog_api_client/v1/models/widget_palette.rb +++ b/lib/datadog_api_client/v1/models/widget_palette.rb @@ -56,4 +56,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 70c2355d12b..3e44ab95a85 100644 --- a/lib/datadog_api_client/v1/models/widget_request_style.rb +++ b/lib/datadog_api_client/v1/models/widget_request_style.rb @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_service_summary_display_format.rb b/lib/datadog_api_client/v1/models/widget_service_summary_display_format.rb index 788a4bf7f04..6310bd2b07c 100644 --- a/lib/datadog_api_client/v1/models/widget_service_summary_display_format.rb +++ b/lib/datadog_api_client/v1/models/widget_service_summary_display_format.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_size_format.rb b/lib/datadog_api_client/v1/models/widget_size_format.rb index 605130c05fd..18dcb9cbe5f 100644 --- a/lib/datadog_api_client/v1/models/widget_size_format.rb +++ b/lib/datadog_api_client/v1/models/widget_size_format.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_sort.rb b/lib/datadog_api_client/v1/models/widget_sort.rb index 9bcadd74862..01d5b6bc0d9 100644 --- a/lib/datadog_api_client/v1/models/widget_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_sort.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_style.rb b/lib/datadog_api_client/v1/models/widget_style.rb index 5eb8f58f88d..966c0816a57 100644 --- a/lib/datadog_api_client/v1/models/widget_style.rb +++ b/lib/datadog_api_client/v1/models/widget_style.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_summary_type.rb b/lib/datadog_api_client/v1/models/widget_summary_type.rb index af85b279bcc..9fc360fda12 100644 --- a/lib/datadog_api_client/v1/models/widget_summary_type.rb +++ b/lib/datadog_api_client/v1/models/widget_summary_type.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_text_align.rb b/lib/datadog_api_client/v1/models/widget_text_align.rb index 7f300624e7a..98102291591 100644 --- a/lib/datadog_api_client/v1/models/widget_text_align.rb +++ b/lib/datadog_api_client/v1/models/widget_text_align.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_tick_edge.rb b/lib/datadog_api_client/v1/models/widget_tick_edge.rb index 4395222c79e..59cd59f5086 100644 --- a/lib/datadog_api_client/v1/models/widget_tick_edge.rb +++ b/lib/datadog_api_client/v1/models/widget_tick_edge.rb @@ -41,4 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_time.rb b/lib/datadog_api_client/v1/models/widget_time.rb index 750e93f522f..d00fc33e459 100644 --- a/lib/datadog_api_client/v1/models/widget_time.rb +++ b/lib/datadog_api_client/v1/models/widget_time.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_time_windows.rb b/lib/datadog_api_client/v1/models/widget_time_windows.rb index a74f201d41b..54f1ad8221a 100644 --- a/lib/datadog_api_client/v1/models/widget_time_windows.rb +++ b/lib/datadog_api_client/v1/models/widget_time_windows.rb @@ -45,4 +45,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_vertical_align.rb b/lib/datadog_api_client/v1/models/widget_vertical_align.rb index a8305658570..af9e64dec94 100644 --- a/lib/datadog_api_client/v1/models/widget_vertical_align.rb +++ b/lib/datadog_api_client/v1/models/widget_vertical_align.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_view_mode.rb b/lib/datadog_api_client/v1/models/widget_view_mode.rb index 911e4df1257..9a4671cc567 100644 --- a/lib/datadog_api_client/v1/models/widget_view_mode.rb +++ b/lib/datadog_api_client/v1/models/widget_view_mode.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v1/models/widget_viz_type.rb b/lib/datadog_api_client/v1/models/widget_viz_type.rb index 8b5e660c742..b3baa28534c 100644 --- a/lib/datadog_api_client/v1/models/widget_viz_type.rb +++ b/lib/datadog_api_client/v1/models/widget_viz_type.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 2828d0c10b6..ee59ae91897 100644 --- a/lib/datadog_api_client/v2/models/api_error_response.rb +++ b/lib/datadog_api_client/v2/models/api_error_response.rb @@ -253,5 +253,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 89781cb7131..dfce1c8c899 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 954477dabc2..9756c76ebd1 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e8acd87da8a..6ea8d59f6c4 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 06e505118dd..9bf854411ec 100644 --- a/lib/datadog_api_client/v2/models/api_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/api_key_relationships.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a3c6e7e5608..6163d552eef 100644 --- a/lib/datadog_api_client/v2/models/api_key_response.rb +++ b/lib/datadog_api_client/v2/models/api_key_response.rb @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/api_key_response_included_item.rb b/lib/datadog_api_client/v2/models/api_key_response_included_item.rb index d04c7098734..11373cdf21a 100644 --- a/lib/datadog_api_client/v2/models/api_key_response_included_item.rb +++ b/lib/datadog_api_client/v2/models/api_key_response_included_item.rb @@ -111,5 +111,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 3ea7ceee34f..f87f9b40fd3 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 6c28ff909ae..c9111746b9c 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 @@ -281,5 +281,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 0b694d53801..91cf9b8d710 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 ea2aa28d560..4b8425c300a 100644 --- a/lib/datadog_api_client/v2/models/api_keys_response.rb +++ b/lib/datadog_api_client/v2/models/api_keys_response.rb @@ -261,5 +261,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/api_keys_sort.rb b/lib/datadog_api_client/v2/models/api_keys_sort.rb index c4ca9350f05..77b57230761 100644 --- a/lib/datadog_api_client/v2/models/api_keys_sort.rb +++ b/lib/datadog_api_client/v2/models/api_keys_sort.rb @@ -45,4 +45,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/api_keys_type.rb b/lib/datadog_api_client/v2/models/api_keys_type.rb index f1a9232e497..ab3d04401d5 100644 --- a/lib/datadog_api_client/v2/models/api_keys_type.rb +++ b/lib/datadog_api_client/v2/models/api_keys_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 4a6ec30eab5..2cdcd83d13c 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 @@ -264,5 +264,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 98761b07a9d..29eaf207195 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 ac05e61e4cf..02c5efce8d5 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 00558c0fdf1..7098140072e 100644 --- a/lib/datadog_api_client/v2/models/application_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/application_key_relationships.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 5a30b4733ef..f6fb6d20911 100644 --- a/lib/datadog_api_client/v2/models/application_key_response.rb +++ b/lib/datadog_api_client/v2/models/application_key_response.rb @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/application_key_response_included_item.rb b/lib/datadog_api_client/v2/models/application_key_response_included_item.rb index 6512e1d2dea..f9b3237da41 100644 --- a/lib/datadog_api_client/v2/models/application_key_response_included_item.rb +++ b/lib/datadog_api_client/v2/models/application_key_response_included_item.rb @@ -112,5 +112,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 9642c494d91..b9badb4f33d 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 @@ -260,5 +260,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 077e8e3dfe1..bc7eee4fb6c 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 @@ -281,5 +281,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 563ebc795fa..18917d6aac5 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/application_keys_sort.rb b/lib/datadog_api_client/v2/models/application_keys_sort.rb index c543416eebf..b09df54e942 100644 --- a/lib/datadog_api_client/v2/models/application_keys_sort.rb +++ b/lib/datadog_api_client/v2/models/application_keys_sort.rb @@ -43,4 +43,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/application_keys_type.rb b/lib/datadog_api_client/v2/models/application_keys_type.rb index 4082765e12a..464d74500c7 100644 --- a/lib/datadog_api_client/v2/models/application_keys_type.rb +++ b/lib/datadog_api_client/v2/models/application_keys_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 10936350f03..7c394e8f8b6 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 @@ -347,5 +347,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 63e92d2e8d1..d500789bb01 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 @@ -285,5 +285,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 7984172cde6..1fcf8a2b756 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3d4c79310df..49c41c4d9b5 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a14d24f0002..62a6afa6235 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9be772f8270..04af9edc9e0 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 @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a9d79ad500c..2cc619a8b46 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_type.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_type.rb index 7cf567d0f77..994384df7df 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_type.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 813ee60e75b..75895010918 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 7abe559eae7..298de2214d8 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 aae3f354781..9d46f57caef 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 46040082cda..db17256c9fd 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9cacc5f8b45..9256706fb2d 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/content_encoding.rb b/lib/datadog_api_client/v2/models/content_encoding.rb index 4834337c426..8e826752915 100644 --- a/lib/datadog_api_client/v2/models/content_encoding.rb +++ b/lib/datadog_api_client/v2/models/content_encoding.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/creator.rb b/lib/datadog_api_client/v2/models/creator.rb index e10cedaaea4..c29164f09ef 100644 --- a/lib/datadog_api_client/v2/models/creator.rb +++ b/lib/datadog_api_client/v2/models/creator.rb @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 87430b58559..43cbbd357fc 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e555161ca1b..e97c5777910 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 088f66d7bfc..8497f778a28 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b269d420399..8362e278290 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 347274c01cd..1b4bb04613c 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item.rb @@ -365,5 +365,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 75d531d02b1..38051aafc7d 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 @@ -265,5 +265,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 5d17473b6f4..9d7509f1ac7 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 @@ -265,5 +265,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 dc757d534ac..70d229ebe5e 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_items.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_items.rb @@ -263,5 +263,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3ea52c5f2c3..3e24cab08eb 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 bc7fe9fbe4f..9ab38bca61b 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/dashboard_type.rb b/lib/datadog_api_client/v2/models/dashboard_type.rb index 8da327887a3..fffd8b555f0 100644 --- a/lib/datadog_api_client/v2/models/dashboard_type.rb +++ b/lib/datadog_api_client/v2/models/dashboard_type.rb @@ -42,4 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 72437864042..87add23cf77 100644 --- a/lib/datadog_api_client/v2/models/full_api_key.rb +++ b/lib/datadog_api_client/v2/models/full_api_key.rb @@ -279,5 +279,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 eb4d5227305..a30085086d6 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 @@ -287,5 +287,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 56939d1d8c8..ed603728ee8 100644 --- a/lib/datadog_api_client/v2/models/full_application_key.rb +++ b/lib/datadog_api_client/v2/models/full_application_key.rb @@ -279,5 +279,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 14c5c153914..7f8b336f556 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 @@ -290,5 +290,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8ed3dcfc352..059bf3ed670 100644 --- a/lib/datadog_api_client/v2/models/http_log_error.rb +++ b/lib/datadog_api_client/v2/models/http_log_error.rb @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a1cfa5eb9b7..cf02a051071 100644 --- a/lib/datadog_api_client/v2/models/http_log_errors.rb +++ b/lib/datadog_api_client/v2/models/http_log_errors.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 021aa412e90..582b986c430 100644 --- a/lib/datadog_api_client/v2/models/http_log_item.rb +++ b/lib/datadog_api_client/v2/models/http_log_item.rb @@ -293,5 +293,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 045f96802b3..edc07f961dc 100644 --- a/lib/datadog_api_client/v2/models/incident_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_create_attributes.rb @@ -299,5 +299,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 85a986063bc..1e7a0bfaa08 100644 --- a/lib/datadog_api_client/v2/models/incident_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_create_data.rb @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 4229b4dda69..eddb42668cc 100644 --- a/lib/datadog_api_client/v2/models/incident_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_create_relationships.rb @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e93d13ba098..b2afd3280b1 100644 --- a/lib/datadog_api_client/v2/models/incident_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_create_request.rb @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incident_field_attributes.rb b/lib/datadog_api_client/v2/models/incident_field_attributes.rb index 1b36a9e1c49..804912a587d 100644 --- a/lib/datadog_api_client/v2/models/incident_field_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_field_attributes.rb @@ -112,5 +112,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 1d46574538d..9c253bc475b 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 @@ -262,5 +262,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e0606c8fd7b..9ba86c13d9c 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 @@ -260,5 +260,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incident_field_attributes_single_value_type.rb b/lib/datadog_api_client/v2/models/incident_field_attributes_single_value_type.rb index bb733fa0330..316ef198b47 100644 --- a/lib/datadog_api_client/v2/models/incident_field_attributes_single_value_type.rb +++ b/lib/datadog_api_client/v2/models/incident_field_attributes_single_value_type.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incident_field_attributes_value_type.rb b/lib/datadog_api_client/v2/models/incident_field_attributes_value_type.rb index 35e0161c268..f4f7ee399b9 100644 --- a/lib/datadog_api_client/v2/models/incident_field_attributes_value_type.rb +++ b/lib/datadog_api_client/v2/models/incident_field_attributes_value_type.rb @@ -41,4 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_type.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_type.rb index b7da060ccce..538a58cb0be 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_type.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 d3f4c555372..31910063154 100644 --- a/lib/datadog_api_client/v2/models/incident_notification_handle.rb +++ b/lib/datadog_api_client/v2/models/incident_notification_handle.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incident_postmortem_type.rb b/lib/datadog_api_client/v2/models/incident_postmortem_type.rb index d3f858fd244..619c18f7e06 100644 --- a/lib/datadog_api_client/v2/models/incident_postmortem_type.rb +++ b/lib/datadog_api_client/v2/models/incident_postmortem_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incident_related_object.rb b/lib/datadog_api_client/v2/models/incident_related_object.rb index 20385d98cdb..7a5debec28e 100644 --- a/lib/datadog_api_client/v2/models/incident_related_object.rb +++ b/lib/datadog_api_client/v2/models/incident_related_object.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incident_response.rb b/lib/datadog_api_client/v2/models/incident_response.rb index f215fcf84b6..498c36e95e4 100644 --- a/lib/datadog_api_client/v2/models/incident_response.rb +++ b/lib/datadog_api_client/v2/models/incident_response.rb @@ -263,5 +263,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 1f9f120429e..b08f154fc65 100644 --- a/lib/datadog_api_client/v2/models/incident_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_response_attributes.rb @@ -431,5 +431,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c129a95d695..a1df5a0d464 100644 --- a/lib/datadog_api_client/v2/models/incident_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_response_data.rb @@ -287,5 +287,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incident_response_included_item.rb b/lib/datadog_api_client/v2/models/incident_response_included_item.rb index 7e3c7f1d3b3..7a2bb6a19ef 100644 --- a/lib/datadog_api_client/v2/models/incident_response_included_item.rb +++ b/lib/datadog_api_client/v2/models/incident_response_included_item.rb @@ -111,5 +111,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 ee8a0308ae8..d3585342caf 100644 --- a/lib/datadog_api_client/v2/models/incident_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_response_relationships.rb @@ -287,5 +287,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 eb38b7388c2..3853185ad4a 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 114c8765912..206adf1b69c 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 @@ -273,5 +273,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 f3749bba60d..16caa63ad62 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incident_service_included_items.rb b/lib/datadog_api_client/v2/models/incident_service_included_items.rb index d7f70afc8a5..92801e47d61 100644 --- a/lib/datadog_api_client/v2/models/incident_service_included_items.rb +++ b/lib/datadog_api_client/v2/models/incident_service_included_items.rb @@ -111,5 +111,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 6b2c0da6065..ea3f39b4a67 100644 --- a/lib/datadog_api_client/v2/models/incident_service_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_service_relationships.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 29845d2d4de..7097553e111 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response.rb @@ -263,5 +263,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 0890d36b08e..c926700af9d 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e7e5043fab6..967665eba3e 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 @@ -287,5 +287,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incident_service_type.rb b/lib/datadog_api_client/v2/models/incident_service_type.rb index 2d398570c25..0a9ff5ff7c1 100644 --- a/lib/datadog_api_client/v2/models/incident_service_type.rb +++ b/lib/datadog_api_client/v2/models/incident_service_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 220b4bd57dc..40b6feab1ba 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 7bd4e7784f4..c21e354f56f 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 @@ -283,5 +283,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 fe173500d45..41428cf2187 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 bebbf663b07..707f8e5c5f8 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response.rb @@ -275,5 +275,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incident_services_response_meta.rb b/lib/datadog_api_client/v2/models/incident_services_response_meta.rb index d75a7f895ba..20217694ff6 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response_meta.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb index 18dd5aa2477..a40b4cab4b6 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a07c1dd4aa5..483b74b792c 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 1da07765811..3393aa9cfb6 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 @@ -273,5 +273,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9b53b4ce5e3..9210b73d36e 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incident_team_included_items.rb b/lib/datadog_api_client/v2/models/incident_team_included_items.rb index 817d8cd197f..aa93fac3896 100644 --- a/lib/datadog_api_client/v2/models/incident_team_included_items.rb +++ b/lib/datadog_api_client/v2/models/incident_team_included_items.rb @@ -111,5 +111,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 cd30383f96c..a5f917ed982 100644 --- a/lib/datadog_api_client/v2/models/incident_team_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_team_relationships.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3dceb009c24..dc6273bf9f2 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response.rb @@ -263,5 +263,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 0da94303dff..b5122d6248f 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 427e496965a..8394cc2c0c2 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 @@ -279,5 +279,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incident_team_type.rb b/lib/datadog_api_client/v2/models/incident_team_type.rb index 06b1ed76de9..6ae0c4f2365 100644 --- a/lib/datadog_api_client/v2/models/incident_team_type.rb +++ b/lib/datadog_api_client/v2/models/incident_team_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 0bae8827ed5..977004a4908 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 ed6a21eb450..ef8006e8045 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 @@ -283,5 +283,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 f01866ba9eb..7b09701f331 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3559b8a8891..80ff11ca982 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response.rb @@ -275,5 +275,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb b/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb index be0e330b21c..1d1594f9554 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb index cce773b0102..aee383c54e4 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incident_timeline_cell_create_attributes.rb b/lib/datadog_api_client/v2/models/incident_timeline_cell_create_attributes.rb index 6064bb43ec5..3b49df3807d 100644 --- a/lib/datadog_api_client/v2/models/incident_timeline_cell_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_timeline_cell_create_attributes.rb @@ -111,5 +111,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_content_type.rb b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_content_type.rb index f9cea0a0aca..de5428f58a5 100644 --- a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_content_type.rb +++ b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_content_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 6ec1c28806c..19a7e25bc0a 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 @@ -279,5 +279,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 995a6052234..51662cfb73d 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incident_type.rb b/lib/datadog_api_client/v2/models/incident_type.rb index 49261308219..1fe7f5c9d98 100644 --- a/lib/datadog_api_client/v2/models/incident_type.rb +++ b/lib/datadog_api_client/v2/models/incident_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 cbb617082ad..1f701a6d8fa 100644 --- a/lib/datadog_api_client/v2/models/incident_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_update_attributes.rb @@ -333,5 +333,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c34b3d48642..0763be43c9f 100644 --- a/lib/datadog_api_client/v2/models/incident_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_update_data.rb @@ -287,5 +287,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b266e36563a..f4653ca32ef 100644 --- a/lib/datadog_api_client/v2/models/incident_update_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_update_relationships.rb @@ -287,5 +287,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 4e1d29f2ded..6f20fc00704 100644 --- a/lib/datadog_api_client/v2/models/incident_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_update_request.rb @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incidents_response.rb b/lib/datadog_api_client/v2/models/incidents_response.rb index d682f5b07b6..de0085494b6 100644 --- a/lib/datadog_api_client/v2/models/incidents_response.rb +++ b/lib/datadog_api_client/v2/models/incidents_response.rb @@ -275,5 +275,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incidents_response_meta.rb b/lib/datadog_api_client/v2/models/incidents_response_meta.rb index 8079d907ed3..a106e78d66c 100644 --- a/lib/datadog_api_client/v2/models/incidents_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incidents_response_meta.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb index 0f2bb298566..ee7b8cb1d66 100644 --- a/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 969b39aed5e..a2f8c3d24b3 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 @@ -261,5 +261,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/log.rb b/lib/datadog_api_client/v2/models/log.rb index fa52afbdbd9..ae64b74d557 100644 --- a/lib/datadog_api_client/v2/models/log.rb +++ b/lib/datadog_api_client/v2/models/log.rb @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/log_attributes.rb b/lib/datadog_api_client/v2/models/log_attributes.rb index 2d9072c702d..a274d6c492a 100644 --- a/lib/datadog_api_client/v2/models/log_attributes.rb +++ b/lib/datadog_api_client/v2/models/log_attributes.rb @@ -313,5 +313,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/log_type.rb b/lib/datadog_api_client/v2/models/log_type.rb index c21c6fa9f15..85f7d538960 100644 --- a/lib/datadog_api_client/v2/models/log_type.rb +++ b/lib/datadog_api_client/v2/models/log_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 00ccd077db3..7576678f493 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value.rb b/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value.rb index 9cf51d644a1..bf88cfb3032 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value.rb @@ -113,5 +113,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 f345ce0774b..3b1f71edc51 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 4ae7682a66f..892f4943050 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_request.rb @@ -292,5 +292,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 626ba529f98..fbe43d056ec 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8c59890b634..7011a0dc318 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_response.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3d1b03aa7c6..414eb8c2416 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_response_status.rb b/lib/datadog_api_client/v2/models/logs_aggregate_response_status.rb index ce0a467aac7..15d593f770a 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_response_status.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_response_status.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 cdc9da358cf..23977ab98b2 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb @@ -279,5 +279,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_sort_type.rb b/lib/datadog_api_client/v2/models/logs_aggregate_sort_type.rb index 5797a67ebaa..cdd1376828d 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_sort_type.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_sort_type.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_aggregation_function.rb b/lib/datadog_api_client/v2/models/logs_aggregation_function.rb index 8e63efd75bf..b833225a39c 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregation_function.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregation_function.rb @@ -48,4 +48,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_archive.rb b/lib/datadog_api_client/v2/models/logs_archive.rb index 4da1fadc7d4..16f62ba168a 100644 --- a/lib/datadog_api_client/v2/models/logs_archive.rb +++ b/lib/datadog_api_client/v2/models/logs_archive.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 50c20bfc65f..d3f6cda716f 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb @@ -315,5 +315,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3c8fd1b74bf..6b3aad7458e 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 518f4a140a2..a0d5e782b8f 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 @@ -304,5 +304,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9c299fdd2b6..d8774ae3597 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 @@ -263,5 +263,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_archive_create_request_destination.rb b/lib/datadog_api_client/v2/models/logs_archive_create_request_destination.rb index c4f2e863974..08cfc046b73 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_create_request_destination.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_create_request_destination.rb @@ -113,5 +113,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 5fbdda1b55c..965ed2ddbe9 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_definition.rb @@ -273,5 +273,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination.rb b/lib/datadog_api_client/v2/models/logs_archive_destination.rb index 01b7dd5f126..228cbbc8443 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination.rb @@ -113,5 +113,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 770b652ac3f..85a56388d3a 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 @@ -315,5 +315,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_azure_type.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_azure_type.rb index a98754d27f4..506ced5dd7e 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_azure_type.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_azure_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 c09824c67dc..041df90ee36 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 @@ -291,5 +291,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_gcs_type.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_gcs_type.rb index 5d8a21f3513..31c69845c7e 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_gcs_type.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_gcs_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 ef60d7ff3d7..90f9856a94f 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 @@ -291,5 +291,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_s3_type.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_s3_type.rb index b7c6144c6b5..458e45bb323 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_s3_type.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_s3_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 44aa5f1f94d..4042ed548f8 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 @@ -265,5 +265,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 f8ac4b23e5c..2356e2ac3de 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 @@ -265,5 +265,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9a665ae34a3..01499efae44 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 @@ -265,5 +265,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 28a55b6c326..b70559e2c4d 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e4816d3dfe1..2e818ef1953 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 @@ -254,5 +254,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 7bda9fee830..444331e3469 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_archive_order_definition_type.rb b/lib/datadog_api_client/v2/models/logs_archive_order_definition_type.rb index e98a4d54cb1..f72d3f8182d 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order_definition_type.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order_definition_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_archive_state.rb b/lib/datadog_api_client/v2/models/logs_archive_state.rb index 41943da3242..a7ba4d9d09e 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_state.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_state.rb @@ -41,4 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_archives.rb b/lib/datadog_api_client/v2/models/logs_archives.rb index 69a53708414..ab5fec7605f 100644 --- a/lib/datadog_api_client/v2/models/logs_archives.rb +++ b/lib/datadog_api_client/v2/models/logs_archives.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_compute.rb b/lib/datadog_api_client/v2/models/logs_compute.rb index 2a0819c5f6c..d814c1489f2 100644 --- a/lib/datadog_api_client/v2/models/logs_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_compute.rb @@ -284,5 +284,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_compute_type.rb b/lib/datadog_api_client/v2/models/logs_compute_type.rb index 68a69314e31..1da684dcc71 100644 --- a/lib/datadog_api_client/v2/models/logs_compute_type.rb +++ b/lib/datadog_api_client/v2/models/logs_compute_type.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 606ff2d2e5f..90bf4b387e2 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by.rb @@ -306,5 +306,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a03b4d2248e..d074f30f469 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 @@ -282,5 +282,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_group_by_missing.rb b/lib/datadog_api_client/v2/models/logs_group_by_missing.rb index 3832f6afbb3..803044a4a4b 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by_missing.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by_missing.rb @@ -112,5 +112,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_group_by_total.rb b/lib/datadog_api_client/v2/models/logs_group_by_total.rb index 4c25d36b790..fa305566aa5 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by_total.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by_total.rb @@ -113,5 +113,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 1b6aa213a71..7a725ad3843 100644 --- a/lib/datadog_api_client/v2/models/logs_list_request.rb +++ b/lib/datadog_api_client/v2/models/logs_list_request.rb @@ -278,5 +278,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 93f161af493..b7f125ca613 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c44681ad1e9..80738fc81c3 100644 --- a/lib/datadog_api_client/v2/models/logs_list_response.rb +++ b/lib/datadog_api_client/v2/models/logs_list_response.rb @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b615365a159..8259b579563 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 @@ -248,5 +248,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 88f0f7d2ad9..12c1b280d2f 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_compute.rb @@ -261,5 +261,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_metric_compute_aggregation_type.rb b/lib/datadog_api_client/v2/models/logs_metric_compute_aggregation_type.rb index 8aff903aada..ad042cd9322 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_compute_aggregation_type.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_compute_aggregation_type.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 1f699ed8dae..fdbe4a944af 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 @@ -273,5 +273,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 0684d5215c1..09ca47a83a9 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 @@ -281,5 +281,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 0375842bdb2..9ab64356808 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8b1031a4962..79997887d79 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_filter.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c56ce4e55ea..3cbaa226310 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 @@ -261,5 +261,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a3760179e32..e9b08a3dba2 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b8a43bfce3b..f29c4778108 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 @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 68b26eaf32e..7cbfc067ce7 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_compute_aggregation_type.rb b/lib/datadog_api_client/v2/models/logs_metric_response_compute_aggregation_type.rb index 9697f13a93e..8e7f1b04f85 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_compute_aggregation_type.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_compute_aggregation_type.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 9e8cb21d596..eb5039084c1 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 @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 ab88c554b82..411517557d3 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8dbead3d3ad..47e0c5284c0 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_metric_type.rb b/lib/datadog_api_client/v2/models/logs_metric_type.rb index cf1a11d200a..f503f9d9139 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_type.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 5a44a88fba9..c332900566e 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c6df0588b1f..09adf0fcbcf 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 45f1261bead..4b78f5e4798 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 6de32cacf1e..7428fbe3b83 100644 --- a/lib/datadog_api_client/v2/models/logs_metrics_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metrics_response.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 1a1bf83d53b..0bff027bbca 100644 --- a/lib/datadog_api_client/v2/models/logs_query_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_query_filter.rb @@ -287,5 +287,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8be8be23cdc..f302d374d90 100644 --- a/lib/datadog_api_client/v2/models/logs_query_options.rb +++ b/lib/datadog_api_client/v2/models/logs_query_options.rb @@ -260,5 +260,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 7eed805c584..f06a9828559 100644 --- a/lib/datadog_api_client/v2/models/logs_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/logs_response_metadata.rb @@ -290,5 +290,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 5238d079190..164786f177a 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 @@ -248,5 +248,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_sort.rb b/lib/datadog_api_client/v2/models/logs_sort.rb index f5f97caca69..00dc20e4707 100644 --- a/lib/datadog_api_client/v2/models/logs_sort.rb +++ b/lib/datadog_api_client/v2/models/logs_sort.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_sort_order.rb b/lib/datadog_api_client/v2/models/logs_sort_order.rb index 2fb3c997cd7..3bd5bcdfdcf 100644 --- a/lib/datadog_api_client/v2/models/logs_sort_order.rb +++ b/lib/datadog_api_client/v2/models/logs_sort_order.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/logs_warning.rb b/lib/datadog_api_client/v2/models/logs_warning.rb index e67ee8c7811..66b06cf2c73 100644 --- a/lib/datadog_api_client/v2/models/logs_warning.rb +++ b/lib/datadog_api_client/v2/models/logs_warning.rb @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/metric.rb b/lib/datadog_api_client/v2/models/metric.rb index 438aa23c8ca..9f0560c54a9 100644 --- a/lib/datadog_api_client/v2/models/metric.rb +++ b/lib/datadog_api_client/v2/models/metric.rb @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 51f7c135138..4e439aa70dc 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags.rb @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 7ad020f34e6..2625cd6d9ed 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8ced5615191..fd44cae8b1e 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 2bdebad72ed..73cb44078d7 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb @@ -265,5 +265,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/metric_custom_space_aggregation.rb b/lib/datadog_api_client/v2/models/metric_custom_space_aggregation.rb index 592bd6439b5..a0004fe1b77 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_space_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_space_aggregation.rb @@ -41,4 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/metric_custom_time_aggregation.rb b/lib/datadog_api_client/v2/models/metric_custom_time_aggregation.rb index a42996385bf..fdd9f4c1c91 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_time_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_time_aggregation.rb @@ -42,4 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 2d5e45210ae..cc79133b293 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume.rb @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 cf87d6283ef..2b6989c6979 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/metric_distinct_volume_type.rb b/lib/datadog_api_client/v2/models/metric_distinct_volume_type.rb index 9280d45e473..7dde1781afe 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume_type.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 770f15d83ea..23e6dac1079 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 @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8a1379180aa..0f4e8c07ca7 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_type.rb b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_type.rb index 441e6d0e440..c877aa85a83 100644 --- a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_type.rb +++ b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 a6d0b5a42a8..3d6cf287743 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration.rb @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 6f70b633efa..970609088cd 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 @@ -319,5 +319,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 5dee7d7a8aa..1d164001da6 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 @@ -311,5 +311,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 1d055b53296..1a442b0f4ce 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 @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 72201ff35cd..bc68a4bf9f6 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_metric_types.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_metric_types.rb index fd501a59858..f9286a58244 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_metric_types.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_metric_types.rb @@ -41,4 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 8aa92efa34c..86ae39929a5 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_type.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_type.rb index c268327bcf6..c7f9987b539 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_type.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 b7a2f282c3f..9de373d0707 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 @@ -291,5 +291,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 2aee09fc114..1dea795e0d0 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 @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 42a7fd57f17..f2ff1f201e0 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/metric_type.rb b/lib/datadog_api_client/v2/models/metric_type.rb index 3612dbfc993..12087956a74 100644 --- a/lib/datadog_api_client/v2/models/metric_type.rb +++ b/lib/datadog_api_client/v2/models/metric_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/metric_volumes.rb b/lib/datadog_api_client/v2/models/metric_volumes.rb index 3d44a98c1e6..92ae2034d9e 100644 --- a/lib/datadog_api_client/v2/models/metric_volumes.rb +++ b/lib/datadog_api_client/v2/models/metric_volumes.rb @@ -112,5 +112,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 51a15d03bdc..b847cfce4a7 100644 --- a/lib/datadog_api_client/v2/models/metric_volumes_response.rb +++ b/lib/datadog_api_client/v2/models/metric_volumes_response.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations.rb b/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations.rb index acc04ab794a..8f89e8ecd64 100644 --- a/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations.rb +++ b/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations.rb @@ -112,5 +112,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 7a8a53c74c3..5ccb73ca39c 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 @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/organization.rb b/lib/datadog_api_client/v2/models/organization.rb index 2c7e4fa2e80..56e13197572 100644 --- a/lib/datadog_api_client/v2/models/organization.rb +++ b/lib/datadog_api_client/v2/models/organization.rb @@ -273,5 +273,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/organization_attributes.rb b/lib/datadog_api_client/v2/models/organization_attributes.rb index 67fcbbad7ea..2831fa3be65 100644 --- a/lib/datadog_api_client/v2/models/organization_attributes.rb +++ b/lib/datadog_api_client/v2/models/organization_attributes.rb @@ -317,5 +317,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/organizations_type.rb b/lib/datadog_api_client/v2/models/organizations_type.rb index ce3d761b11c..ff4336c5bd6 100644 --- a/lib/datadog_api_client/v2/models/organizations_type.rb +++ b/lib/datadog_api_client/v2/models/organizations_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/pagination.rb b/lib/datadog_api_client/v2/models/pagination.rb index a489891d370..a42402de7dd 100644 --- a/lib/datadog_api_client/v2/models/pagination.rb +++ b/lib/datadog_api_client/v2/models/pagination.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 d255cb350bd..39de6080202 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key.rb @@ -279,5 +279,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b6c62dfb774..a482560b3f3 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 @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 dee9f388a92..b0009675680 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key.rb @@ -279,5 +279,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 04d177ef2a2..e39f1959fe3 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 @@ -280,5 +280,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 ba00ca1e49d..578339d011d 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/permission.rb b/lib/datadog_api_client/v2/models/permission.rb index 90f34a9fc94..3cc95b74d06 100644 --- a/lib/datadog_api_client/v2/models/permission.rb +++ b/lib/datadog_api_client/v2/models/permission.rb @@ -273,5 +273,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/permission_attributes.rb b/lib/datadog_api_client/v2/models/permission_attributes.rb index a13f540717d..aa9a5267313 100644 --- a/lib/datadog_api_client/v2/models/permission_attributes.rb +++ b/lib/datadog_api_client/v2/models/permission_attributes.rb @@ -307,5 +307,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/permissions_response.rb b/lib/datadog_api_client/v2/models/permissions_response.rb index 0dab76996e2..882cc36d511 100644 --- a/lib/datadog_api_client/v2/models/permissions_response.rb +++ b/lib/datadog_api_client/v2/models/permissions_response.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/permissions_type.rb b/lib/datadog_api_client/v2/models/permissions_type.rb index 9bce1f527e0..f5166717d05 100644 --- a/lib/datadog_api_client/v2/models/permissions_type.rb +++ b/lib/datadog_api_client/v2/models/permissions_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 aba78212541..90c5ca515fb 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_meta.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_meta.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 de2d9394912..6baea5109f2 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 @@ -258,5 +258,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 0bc61a6c3d4..c3abed7d2b6 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_response.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_response.rb @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/process_summary.rb b/lib/datadog_api_client/v2/models/process_summary.rb index 15c6a18502b..4bcb0e48f93 100644 --- a/lib/datadog_api_client/v2/models/process_summary.rb +++ b/lib/datadog_api_client/v2/models/process_summary.rb @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c122a31701a..a2215c2d697 100644 --- a/lib/datadog_api_client/v2/models/process_summary_attributes.rb +++ b/lib/datadog_api_client/v2/models/process_summary_attributes.rb @@ -319,5 +319,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/process_summary_type.rb b/lib/datadog_api_client/v2/models/process_summary_type.rb index e98e3ff7695..9cc0e76abc8 100644 --- a/lib/datadog_api_client/v2/models/process_summary_type.rb +++ b/lib/datadog_api_client/v2/models/process_summary_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/query_sort_order.rb b/lib/datadog_api_client/v2/models/query_sort_order.rb index 503a536aeaa..663837df64a 100644 --- a/lib/datadog_api_client/v2/models/query_sort_order.rb +++ b/lib/datadog_api_client/v2/models/query_sort_order.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 303df9ff0f2..5743da07421 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 f9bf04f8dd0..f43e6c504d3 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 @@ -253,5 +253,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 11e612431c9..afc5890ca2d 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a51decf2127..7e35d70038b 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8329121cf4c..e2848a8df97 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organization.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organization.rb @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 de2539550bf..02318ec9881 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 84a221c0a6b..b166c3ba279 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organizations.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organizations.rb @@ -253,5 +253,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 aeba7167c9c..363491806c2 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permission.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permission.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 36b9336e7c1..25109d5a910 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 ee41ce56694..530a7297c96 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permissions.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permissions.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 62a5a79628f..f8676f7f236 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_role.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_role.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c51c874eef3..70237a38544 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9e174fb1ebb..7e2754e3641 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_roles.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_roles.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b97d2ab68d5..56ce754a91d 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user.rb @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 546d6726f80..cc8cfd61e67 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 2ae12cdbd3b..1f638f453cf 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_users.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_users.rb @@ -253,5 +253,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 cebf678629d..a6997f42f59 100644 --- a/lib/datadog_api_client/v2/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v2/models/response_meta_attributes.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/role.rb b/lib/datadog_api_client/v2/models/role.rb index eb38f427c11..0f7f7d38468 100644 --- a/lib/datadog_api_client/v2/models/role.rb +++ b/lib/datadog_api_client/v2/models/role.rb @@ -283,5 +283,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/role_attributes.rb b/lib/datadog_api_client/v2/models/role_attributes.rb index 7dd64a1cbd4..7ac461f28ab 100644 --- a/lib/datadog_api_client/v2/models/role_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_attributes.rb @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/role_clone.rb b/lib/datadog_api_client/v2/models/role_clone.rb index 6931b20606e..164a0d0eb63 100644 --- a/lib/datadog_api_client/v2/models/role_clone.rb +++ b/lib/datadog_api_client/v2/models/role_clone.rb @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 2ae1fee0810..64c859ffa45 100644 --- a/lib/datadog_api_client/v2/models/role_clone_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_clone_attributes.rb @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 7ba54fdc79a..b862437b057 100644 --- a/lib/datadog_api_client/v2/models/role_clone_request.rb +++ b/lib/datadog_api_client/v2/models/role_clone_request.rb @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3ea99e83743..e39d5122573 100644 --- a/lib/datadog_api_client/v2/models/role_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_create_attributes.rb @@ -271,5 +271,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 ab4e60ca165..4619be31bfe 100644 --- a/lib/datadog_api_client/v2/models/role_create_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_data.rb @@ -273,5 +273,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 2d0126cad89..5c4f38cd1d5 100644 --- a/lib/datadog_api_client/v2/models/role_create_request.rb +++ b/lib/datadog_api_client/v2/models/role_create_request.rb @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 1b9aa8e3d9f..4fae1a11e32 100644 --- a/lib/datadog_api_client/v2/models/role_create_response.rb +++ b/lib/datadog_api_client/v2/models/role_create_response.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 e97d207695c..26cd53613c1 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 @@ -283,5 +283,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/role_relationships.rb b/lib/datadog_api_client/v2/models/role_relationships.rb index 39e3cba86ae..127205e83ab 100644 --- a/lib/datadog_api_client/v2/models/role_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_relationships.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/role_response.rb b/lib/datadog_api_client/v2/models/role_response.rb index db0a65800ed..20fd5637840 100644 --- a/lib/datadog_api_client/v2/models/role_response.rb +++ b/lib/datadog_api_client/v2/models/role_response.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 6ca6e0919d5..5b5962b9131 100644 --- a/lib/datadog_api_client/v2/models/role_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_response_relationships.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8519b120a3b..583550d2784 100644 --- a/lib/datadog_api_client/v2/models/role_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_update_attributes.rb @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 2472de6e03b..f842da68a66 100644 --- a/lib/datadog_api_client/v2/models/role_update_data.rb +++ b/lib/datadog_api_client/v2/models/role_update_data.rb @@ -281,5 +281,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 be48062f4ee..08ad5c638a6 100644 --- a/lib/datadog_api_client/v2/models/role_update_request.rb +++ b/lib/datadog_api_client/v2/models/role_update_request.rb @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 7e0286b8d31..e4cdcb0556a 100644 --- a/lib/datadog_api_client/v2/models/role_update_response.rb +++ b/lib/datadog_api_client/v2/models/role_update_response.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9004147f0d2..785b61e6e39 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 @@ -283,5 +283,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/roles_response.rb b/lib/datadog_api_client/v2/models/roles_response.rb index eb7fb53c870..09e0160c4d8 100644 --- a/lib/datadog_api_client/v2/models/roles_response.rb +++ b/lib/datadog_api_client/v2/models/roles_response.rb @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/roles_sort.rb b/lib/datadog_api_client/v2/models/roles_sort.rb index 59df1da9fd1..8b9720bc97c 100644 --- a/lib/datadog_api_client/v2/models/roles_sort.rb +++ b/lib/datadog_api_client/v2/models/roles_sort.rb @@ -43,4 +43,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/roles_type.rb b/lib/datadog_api_client/v2/models/roles_type.rb index b2257da7c96..1e545f554e5 100644 --- a/lib/datadog_api_client/v2/models/roles_type.rb +++ b/lib/datadog_api_client/v2/models/roles_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_filter.rb b/lib/datadog_api_client/v2/models/security_filter.rb index abb1a5fb4c1..c853bd4bae5 100644 --- a/lib/datadog_api_client/v2/models/security_filter.rb +++ b/lib/datadog_api_client/v2/models/security_filter.rb @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 bad80110a5e..57e5c083ab7 100644 --- a/lib/datadog_api_client/v2/models/security_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_attributes.rb @@ -309,5 +309,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 84d413909b5..6a3b6b1cf86 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 @@ -309,5 +309,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 a07a559838f..676aca6f39f 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3b0f93920bf..4003473a1f8 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 2b1b758a91a..771f4fee497 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 @@ -265,5 +265,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3e4cc1a02f5..4ebe172883a 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 @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_filter_filtered_data_type.rb b/lib/datadog_api_client/v2/models/security_filter_filtered_data_type.rb index 65cd8aad773..4f8838c73ee 100644 --- a/lib/datadog_api_client/v2/models/security_filter_filtered_data_type.rb +++ b/lib/datadog_api_client/v2/models/security_filter_filtered_data_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 3f06a5461ca..8eadfec2dd2 100644 --- a/lib/datadog_api_client/v2/models/security_filter_meta.rb +++ b/lib/datadog_api_client/v2/models/security_filter_meta.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 50e19d0b378..815064524dd 100644 --- a/lib/datadog_api_client/v2/models/security_filter_response.rb +++ b/lib/datadog_api_client/v2/models/security_filter_response.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_filter_type.rb b/lib/datadog_api_client/v2/models/security_filter_type.rb index fddaaeae280..5b0d6aef05e 100644 --- a/lib/datadog_api_client/v2/models/security_filter_type.rb +++ b/lib/datadog_api_client/v2/models/security_filter_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 aecabd4dfa5..9c4f01cd1b8 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 @@ -299,5 +299,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 d5be0b1aeb8..c0dd263bb2a 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 227170e526a..ea6e5fea29b 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 8389aca0ecd..a0886f78141 100644 --- a/lib/datadog_api_client/v2/models/security_filters_response.rb +++ b/lib/datadog_api_client/v2/models/security_filters_response.rb @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 4a5fd2bc41b..ace0adb1168 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_filter.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_filter.rb @@ -257,5 +257,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_filter_action.rb b/lib/datadog_api_client/v2/models/security_monitoring_filter_action.rb index 423b16dc7c8..b1cd05ecd4f 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_filter_action.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_filter_action.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 33b4c4284c0..b3db5d286c3 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 4767b53e2ab..31acf5991e8 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 @@ -280,5 +280,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 f087c6494fc..894e4661e2f 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 @@ -284,5 +284,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb index aa2c17b27c2..84d219565c7 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb @@ -369,5 +369,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb index 30810cada54..034241ebfd0 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb @@ -40,4 +40,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_evaluation_window.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_evaluation_window.rb index ad5544b5fc9..c5b5ebdd0f8 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_evaluation_window.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_evaluation_window.rb @@ -46,4 +46,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb index a668a9b264a..4f05f61a271 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb @@ -48,4 +48,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_max_signal_duration.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_max_signal_duration.rb index 9cdb916f91d..4ba3d16bad3 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_max_signal_duration.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_max_signal_duration.rb @@ -50,4 +50,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 3dd036d4479..d1145d17f04 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 @@ -258,5 +258,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_forget_after.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_forget_after.rb index e6ca05dffe2..dc50b4575fb 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_forget_after.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_forget_after.rb @@ -43,4 +43,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_duration.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_duration.rb index 86e681b15d5..9e919240909 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_duration.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_duration.rb @@ -41,4 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 065d7ea118f..49b2679c49c 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 @@ -290,5 +290,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb index 43a7d093dfc..2382f38b48e 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb @@ -302,5 +302,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_aggregation.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_aggregation.rb index c03e389c4d5..0473ae3f272 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_aggregation.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_aggregation.rb @@ -42,4 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb index fdc601bbf62..90e67c796ce 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb @@ -306,5 +306,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb index 92ba8801cf0..6fb6a51ad55 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb @@ -415,5 +415,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_severity.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_severity.rb index 14a3212c8cc..4deb62168b3 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_severity.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_severity.rb @@ -42,4 +42,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb index 85b898b05a4..1c556262195 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb index 2f332e2bab5..6c2b44ee5dd 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb @@ -41,4 +41,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 e8dcf4ffc94..2af16366ec1 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 @@ -345,5 +345,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 fb5f1d75e45..0c8a715f200 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal.rb @@ -270,5 +270,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 511bef5e1d1..ca56ff87f67 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 @@ -278,5 +278,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b0f1348ac1e..f468702e073 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 9d8fbcf6f32..94960628d9a 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 @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 ebc94241c54..554dfd7a2e2 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 @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_type.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_type.rb index 7b700d3a8f9..d1b4f3d5be8 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_type.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 6294827ed7c..bf7d7e6369e 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 @@ -270,5 +270,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c799ad02857..01db8da5192 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 @@ -248,5 +248,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 189fe6ccdf5..f21d0ef4234 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 @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 52589daa127..40e7b2c1645 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 @@ -248,5 +248,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signals_sort.rb b/lib/datadog_api_client/v2/models/security_monitoring_signals_sort.rb index a39191bab2c..d1a72fdace0 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signals_sort.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signals_sort.rb @@ -39,4 +39,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end 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 3821527cd44..711eec12685 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 @@ -285,5 +285,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b6d5744bc90..2f234ba3e16 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 @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 3e3a399c897..ebb8d9cc113 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 @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/user.rb b/lib/datadog_api_client/v2/models/user.rb index 40c293a2575..7db7fa357b0 100644 --- a/lib/datadog_api_client/v2/models/user.rb +++ b/lib/datadog_api_client/v2/models/user.rb @@ -279,5 +279,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/user_attributes.rb b/lib/datadog_api_client/v2/models/user_attributes.rb index fb3601cfaa4..617233f9271 100644 --- a/lib/datadog_api_client/v2/models/user_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_attributes.rb @@ -349,5 +349,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 1e1971c3e62..a483a3965ff 100644 --- a/lib/datadog_api_client/v2/models/user_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_create_attributes.rb @@ -271,5 +271,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 505dc2e356e..9fa1e12e0d9 100644 --- a/lib/datadog_api_client/v2/models/user_create_data.rb +++ b/lib/datadog_api_client/v2/models/user_create_data.rb @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b7b92af0c00..c2bdce4be3d 100644 --- a/lib/datadog_api_client/v2/models/user_create_request.rb +++ b/lib/datadog_api_client/v2/models/user_create_request.rb @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c564fe5dd40..406476df595 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_data.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_data.rb @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 c7b6b52a837..93b6e5edf5c 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 @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 6e117d6d5e1..ff8ffccd8c3 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_relationships.rb @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 1b90d1e53f5..1977b4b60b1 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_response.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 39191adc8fd..8314e4dbf3f 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 @@ -269,5 +269,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 397e1aef935..783ac2796c8 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_request.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_request.rb @@ -253,5 +253,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 b287430314f..6149b351c39 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_response.rb @@ -249,5 +249,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/user_invitations_type.rb b/lib/datadog_api_client/v2/models/user_invitations_type.rb index 57867fe6960..7f1ec04781b 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_type.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/user_relationships.rb b/lib/datadog_api_client/v2/models/user_relationships.rb index 6fe173859c0..9eb6c38dcd5 100644 --- a/lib/datadog_api_client/v2/models/user_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_relationships.rb @@ -247,5 +247,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/user_response.rb b/lib/datadog_api_client/v2/models/user_response.rb index 44d6463c403..7214f06142a 100644 --- a/lib/datadog_api_client/v2/models/user_response.rb +++ b/lib/datadog_api_client/v2/models/user_response.rb @@ -259,5 +259,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/user_response_included_item.rb b/lib/datadog_api_client/v2/models/user_response_included_item.rb index d83357025cf..8df0cd3042a 100644 --- a/lib/datadog_api_client/v2/models/user_response_included_item.rb +++ b/lib/datadog_api_client/v2/models/user_response_included_item.rb @@ -113,5 +113,4 @@ def find_and_cast_into_type(klass, data) end end end - -end \ No newline at end of file +end 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 9b71852c8f1..848dd3ba9e8 100644 --- a/lib/datadog_api_client/v2/models/user_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_response_relationships.rb @@ -277,5 +277,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 6ce77afb853..0746e6eb9e7 100644 --- a/lib/datadog_api_client/v2/models/user_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_update_attributes.rb @@ -267,5 +267,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 74fba46bb16..a808aa0cd5c 100644 --- a/lib/datadog_api_client/v2/models/user_update_data.rb +++ b/lib/datadog_api_client/v2/models/user_update_data.rb @@ -281,5 +281,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end 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 406e4508934..88b0c7bf3fe 100644 --- a/lib/datadog_api_client/v2/models/user_update_request.rb +++ b/lib/datadog_api_client/v2/models/user_update_request.rb @@ -251,5 +251,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/users_response.rb b/lib/datadog_api_client/v2/models/users_response.rb index d913180351b..b7776342647 100644 --- a/lib/datadog_api_client/v2/models/users_response.rb +++ b/lib/datadog_api_client/v2/models/users_response.rb @@ -271,5 +271,4 @@ def _to_hash(value) end end end - -end \ No newline at end of file +end diff --git a/lib/datadog_api_client/v2/models/users_type.rb b/lib/datadog_api_client/v2/models/users_type.rb index 182fe450767..036c72ed26a 100644 --- a/lib/datadog_api_client/v2/models/users_type.rb +++ b/lib/datadog_api_client/v2/models/users_type.rb @@ -38,4 +38,4 @@ def build_from_hash(value) constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value end end -end \ No newline at end of file +end From 7d587da67b178dab26a8828f210f561df99faf39 Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Fri, 4 Feb 2022 17:28:42 +0100 Subject: [PATCH 07/23] comments --- .generator/src/generator/cli.py | 5 +- .generator/src/generator/formatter.py | 4 + .generator/src/generator/templates/api.j2 | 8 +- .../v1/api/aws_logs_integration_api.rb | 8 +- .../v1/api/azure_integration_api.rb | 8 +- .../v1/api/dashboards_api.rb | 4 +- lib/datadog_api_client/v1/api/events_api.rb | 12 +- lib/datadog_api_client/v1/api/logs_api.rb | 24 +-- .../v1/api/logs_indexes_api.rb | 4 +- .../v1/api/logs_pipelines_api.rb | 8 +- lib/datadog_api_client/v1/api/metrics_api.rb | 8 +- lib/datadog_api_client/v1/api/monitors_api.rb | 164 +++++++++--------- .../v1/api/organizations_api.rb | 16 +- .../v1/api/service_checks_api.rb | 4 +- .../v1/api/service_level_objectives_api.rb | 16 +- lib/datadog_api_client/v1/api/users_api.rb | 12 +- .../v1/api/webhooks_integration_api.rb | 4 +- lib/datadog_api_client/v2/api/logs_api.rb | 40 ++--- .../v2/api/logs_archives_api.rb | 8 +- lib/datadog_api_client/v2/api/metrics_api.rb | 4 +- .../v2/api/security_monitoring_api.rb | 8 +- 21 files changed, 187 insertions(+), 182 deletions(-) diff --git a/.generator/src/generator/cli.py b/.generator/src/generator/cli.py index 3e65f5ce6c6..93e3de7d37b 100644 --- a/.generator/src/generator/cli.py +++ b/.generator/src/generator/cli.py @@ -37,14 +37,15 @@ def cli(input, output): env.filters["accept_headers"] = openapi.accept_headers env.filters["attribute_name"] = formatter.attribute_name + env.filters["block_comment"] = formatter.block_comment env.filters["camel_case"] = formatter.camel_case env.filters["collection_format"] = openapi.collection_format - env.filters["format_value"] = formatter.format_value env.filters["format_server"] = openapi.format_server + env.filters["format_value"] = formatter.format_value + env.filters["parameter_schema"] = openapi.parameter_schema env.filters["parameters"] = openapi.parameters env.filters["return_type"] = openapi.return_type env.filters["snake_case"] = formatter.snake_case - env.filters["parameter_schema"] = openapi.parameter_schema env.globals["config"] = config env.globals["enumerate"] = enumerate diff --git a/.generator/src/generator/formatter.py b/.generator/src/generator/formatter.py index 2f339550f5e..d8560d34d22 100644 --- a/.generator/src/generator/formatter.py +++ b/.generator/src/generator/formatter.py @@ -61,6 +61,10 @@ def snake_case(value): return PATTERN_DOUBLE_UNDERSCORE.sub("_", s1) +def block_comment(comment, prefix="#"): + return "\n".join(f"{prefix} {line}".rstrip() for line in comment.split("\n")) + + def camel_case(value): return "".join(x.title() for x in snake_case(value).split("_")) diff --git a/.generator/src/generator/templates/api.j2 b/.generator/src/generator/templates/api.j2 index 0b86250d546..ba5e917994a 100644 --- a/.generator/src/generator/templates/api.j2 +++ b/.generator/src/generator/templates/api.j2 @@ -17,9 +17,9 @@ module {{ config.moduleName }} {%- set httpMethod = method.upper() %} {%- set returnType = operation|return_type %} - # {{ operation.summary.rstrip()|replace('\n', '\n# ')|indent(4) }} + {{ operation.summary|block_comment|indent(4) }} {%- if operation.description %} - # {{ operation.description.rstrip()|replace('\n', '\n# ')|indent(4) }} + {{ operation.description|block_comment|indent(4) }} {%- endif %} {%- for name, parameter in operation|parameters if parameter.required %} # @param {{ name|attribute_name }} [{{ get_type_for_parameter(parameter) }}] {{ parameter.get("description", "").replace('\n', ' ') }} @@ -34,9 +34,9 @@ module {{ config.moduleName }} {% if returnType %}data{% else %}nil{% endif %} end - # {{ operation.summary.rstrip()|replace('\n', '\n# ')|indent(4) }} + {{ operation.summary|block_comment|indent(4) }} {%- if operation.description %} - # {{ operation.description.rstrip()|replace('\n', '\n# ')|indent(4) }} + {{ operation.description|block_comment|indent(4) }} {%- endif %} {%- for name, parameter in operation|parameters if parameter.required %} # @param {{ name|attribute_name }} [{{ get_type_for_parameter(parameter) }}] {{ parameter.get("description", "").replace('\n', ' ') }} diff --git a/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb b/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb index 1fadefdcab4..63be17f0a75 100644 --- a/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb +++ b/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb @@ -27,7 +27,7 @@ def initialize(api_client = APIClient.default) # Test if permissions are present to add a log-forwarding triggers for the given services and AWS account. The input # is the same as for Enable an AWS service log collection. Subsequent requests will always repeat the above, so this # endpoint can be polled intermittently instead of blocking. - # + # # - Returns a status of 'created' when it's checking if the Lambda exists in the account. # - Returns a status of 'waiting' while checking. # - Returns a status of 'checked and ok' if the Lambda exists. @@ -44,7 +44,7 @@ def check_aws_logs_lambda_async(body, opts = {}) # Test if permissions are present to add a log-forwarding triggers for the given services and AWS account. The input # is the same as for Enable an AWS service log collection. Subsequent requests will always repeat the above, so this # endpoint can be polled intermittently instead of blocking. - # + # # - Returns a status of 'created' when it's checking if the Lambda exists in the account. # - Returns a status of 'waiting' while checking. # - Returns a status of 'checked and ok' if the Lambda exists. @@ -117,7 +117,7 @@ def check_aws_logs_lambda_async_with_http_info(body, opts = {}) # given services and AWS account. Input is the same as for `EnableAWSLogServices`. # Done async, so can be repeatedly polled in a non-blocking fashion until # the async request completes. - # + # # - Returns a status of `created` when it's checking if the permissions exists # in the AWS account. # - Returns a status of `waiting` while checking. @@ -136,7 +136,7 @@ def check_aws_logs_services_async(body, opts = {}) # given services and AWS account. Input is the same as for `EnableAWSLogServices`. # Done async, so can be repeatedly polled in a non-blocking fashion until # the async request completes. - # + # # - Returns a status of `created` when it's checking if the permissions exists # in the AWS account. # - Returns a status of `waiting` while checking. diff --git a/lib/datadog_api_client/v1/api/azure_integration_api.rb b/lib/datadog_api_client/v1/api/azure_integration_api.rb index 0529e364b04..8d3a62775f5 100644 --- a/lib/datadog_api_client/v1/api/azure_integration_api.rb +++ b/lib/datadog_api_client/v1/api/azure_integration_api.rb @@ -25,10 +25,10 @@ def initialize(api_client = APIClient.default) # Create an Azure integration # Create a Datadog-Azure integration. - # + # # Using the `POST` method updates your integration configuration by adding your new # configuration to the existing one in your Datadog organization. - # + # # Using the `PUT` method updates your integration configuration by replacing your # current configuration with the new one sent to your Datadog organization. # @param body [AzureAccount] Create a Datadog-Azure integration for your Datadog account request body. @@ -41,10 +41,10 @@ def create_azure_integration(body, opts = {}) # Create an Azure integration # Create a Datadog-Azure integration. - # + # # Using the `POST` method updates your integration configuration by adding your new # configuration to the existing one in your Datadog organization. - # + # # Using the `PUT` method updates your integration configuration by replacing your # current configuration with the new one sent to your Datadog organization. # @param body [AzureAccount] Create a Datadog-Azure integration for your Datadog account request body. diff --git a/lib/datadog_api_client/v1/api/dashboards_api.rb b/lib/datadog_api_client/v1/api/dashboards_api.rb index 7f9af184137..5bd8ba32286 100644 --- a/lib/datadog_api_client/v1/api/dashboards_api.rb +++ b/lib/datadog_api_client/v1/api/dashboards_api.rb @@ -323,7 +323,7 @@ def get_dashboard_with_http_info(dashboard_id, opts = {}) # Get all dashboards # Get all dashboards. - # + # # **Note**: This query will only return custom created or cloned dashboards. # This query will not return preset dashboards. # @param opts [Hash] the optional parameters @@ -337,7 +337,7 @@ def list_dashboards(opts = {}) # Get all dashboards # Get all dashboards. - # + # # **Note**: This query will only return custom created or cloned dashboards. # This query will not return preset dashboards. # @param opts [Hash] the optional parameters diff --git a/lib/datadog_api_client/v1/api/events_api.rb b/lib/datadog_api_client/v1/api/events_api.rb index 8670abf852a..d67ea6162f7 100644 --- a/lib/datadog_api_client/v1/api/events_api.rb +++ b/lib/datadog_api_client/v1/api/events_api.rb @@ -102,7 +102,7 @@ def create_event_with_http_info(body, opts = {}) # Get an event # This endpoint allows you to query for event details. - # + # # **Note**: If the event you’re querying contains markdown formatting of any kind, # you may see characters such as `%`,`\`,`n` in your output. # @param event_id [Integer] The ID of the event. @@ -115,7 +115,7 @@ def get_event(event_id, opts = {}) # Get an event # This endpoint allows you to query for event details. - # + # # **Note**: If the event you’re querying contains markdown formatting of any kind, # you may see characters such as `%`,`\`,`n` in your output. # @param event_id [Integer] The ID of the event. @@ -181,11 +181,11 @@ def get_event_with_http_info(event_id, opts = {}) # Query the event stream # The event stream can be queried and filtered by time, priority, sources and tags. - # + # # **Notes**: # - If the event you’re querying contains markdown formatting of any kind, # you may see characters such as `%`,`\`,`n` in your output. - # + # # - This endpoint returns a maximum of `1000` most recent results. To return additional results, # identify the last timestamp of the last result and set that as the `end` query time to # paginate the results. You can also use the page parameter to specify which set of `1000` results to return. @@ -206,11 +206,11 @@ def list_events(start, _end, opts = {}) # Query the event stream # The event stream can be queried and filtered by time, priority, sources and tags. - # + # # **Notes**: # - If the event you’re querying contains markdown formatting of any kind, # you may see characters such as `%`,`\`,`n` in your output. - # + # # - This endpoint returns a maximum of `1000` most recent results. To return additional results, # identify the last timestamp of the last result and set that as the `end` query time to # paginate the results. You can also use the page parameter to specify which set of `1000` results to return. diff --git a/lib/datadog_api_client/v1/api/logs_api.rb b/lib/datadog_api_client/v1/api/logs_api.rb index ffba91b1c3d..ed061279d39 100644 --- a/lib/datadog_api_client/v1/api/logs_api.rb +++ b/lib/datadog_api_client/v1/api/logs_api.rb @@ -26,11 +26,11 @@ def initialize(api_client = APIClient.default) # Search logs # List endpoint returns logs that match a log search query. # [Results are paginated][1]. - # + # # **If you are considering archiving logs for your organization, # consider use of the Datadog archive capabilities instead of the log list API. # See [Datadog Logs Archive documentation][2].** - # + # # [1]: /logs/guide/collect-multiple-logs-with-pagination # [2]: https://docs.datadoghq.com/logs/archives # @param body [LogsListRequest] Logs filter @@ -44,11 +44,11 @@ def list_logs(body, opts = {}) # Search logs # List endpoint returns logs that match a log search query. # [Results are paginated][1]. - # + # # **If you are considering archiving logs for your organization, # consider use of the Datadog archive capabilities instead of the log list API. # See [Datadog Logs Archive documentation][2].** - # + # # [1]: /logs/guide/collect-multiple-logs-with-pagination # [2]: https://docs.datadoghq.com/logs/archives # @param body [LogsListRequest] Logs filter @@ -116,18 +116,18 @@ def list_logs_with_http_info(body, opts = {}) # Send logs # Send your logs to your Datadog platform over HTTP. Limits per HTTP request are: - # + # # - Maximum content size per payload (uncompressed): 5MB # - Maximum size for a single log: 1MB # - Maximum array size if sending multiple logs in an array: 1000 entries - # + # # Any log exceeding 1MB is accepted and truncated by Datadog: # - For a single log request, the API truncates the log at 1MB and returns a 2xx. # - For a multi-logs request, the API processes all logs, truncates only logs larger than 1MB, and returns a 2xx. - # + # # Datadog recommends sending your logs compressed. # Add the `Content-Encoding: gzip` header to the request when sending compressed logs. - # + # # The status codes answered by the HTTP API are: # - 200: OK # - 400: Bad request (likely an issue in the payload formatting) @@ -146,18 +146,18 @@ def submit_log(body, opts = {}) # Send logs # Send your logs to your Datadog platform over HTTP. Limits per HTTP request are: - # + # # - Maximum content size per payload (uncompressed): 5MB # - Maximum size for a single log: 1MB # - Maximum array size if sending multiple logs in an array: 1000 entries - # + # # Any log exceeding 1MB is accepted and truncated by Datadog: # - For a single log request, the API truncates the log at 1MB and returns a 2xx. # - For a multi-logs request, the API processes all logs, truncates only logs larger than 1MB, and returns a 2xx. - # + # # Datadog recommends sending your logs compressed. # Add the `Content-Encoding: gzip` header to the request when sending compressed logs. - # + # # The status codes answered by the HTTP API are: # - 200: OK # - 400: Bad request (likely an issue in the payload formatting) diff --git a/lib/datadog_api_client/v1/api/logs_indexes_api.rb b/lib/datadog_api_client/v1/api/logs_indexes_api.rb index 5670b3500e3..84314706453 100644 --- a/lib/datadog_api_client/v1/api/logs_indexes_api.rb +++ b/lib/datadog_api_client/v1/api/logs_indexes_api.rb @@ -310,7 +310,7 @@ def list_log_indexes_with_http_info(opts = {}) # Update an index # Update an index as identified by its name. # Returns the Index object passed in the request body when the request is successful. - # + # # Using the `PUT` method updates your index’s configuration by **replacing** # your current configuration with the new one sent to your Datadog organization. # @param name [String] Name of the log index. @@ -325,7 +325,7 @@ def update_logs_index(name, body, opts = {}) # Update an index # Update an index as identified by its name. # Returns the Index object passed in the request body when the request is successful. - # + # # Using the `PUT` method updates your index’s configuration by **replacing** # your current configuration with the new one sent to your Datadog organization. # @param name [String] Name of the log index. diff --git a/lib/datadog_api_client/v1/api/logs_pipelines_api.rb b/lib/datadog_api_client/v1/api/logs_pipelines_api.rb index b0b3d56ed5b..7d5b4fba157 100644 --- a/lib/datadog_api_client/v1/api/logs_pipelines_api.rb +++ b/lib/datadog_api_client/v1/api/logs_pipelines_api.rb @@ -388,7 +388,7 @@ def list_logs_pipelines_with_http_info(opts = {}) # Update a pipeline # Update a given pipeline configuration to change it’s processors or their order. - # + # # **Note**: Using this method updates your pipeline configuration by **replacing** # your current configuration with the new one sent to your Datadog organization. # @param pipeline_id [String] ID of the pipeline to delete. @@ -402,7 +402,7 @@ def update_logs_pipeline(pipeline_id, body, opts = {}) # Update a pipeline # Update a given pipeline configuration to change it’s processors or their order. - # + # # **Note**: Using this method updates your pipeline configuration by **replacing** # your current configuration with the new one sent to your Datadog organization. # @param pipeline_id [String] ID of the pipeline to delete. @@ -476,7 +476,7 @@ def update_logs_pipeline_with_http_info(pipeline_id, body, opts = {}) # Update pipeline order # Update the order of your pipelines. Since logs are processed sequentially, reordering a pipeline may change # the structure and content of the data processed by other pipelines and their processors. - # + # # **Note**: Using the `PUT` method updates your pipeline order by replacing your current order # with the new one sent to your Datadog organization. # @param body [LogsPipelinesOrder] Object containing the new ordered list of pipeline IDs. @@ -490,7 +490,7 @@ def update_logs_pipeline_order(body, opts = {}) # Update pipeline order # Update the order of your pipelines. Since logs are processed sequentially, reordering a pipeline may change # the structure and content of the data processed by other pipelines and their processors. - # + # # **Note**: Using the `PUT` method updates your pipeline order by replacing your current order # with the new one sent to your Datadog organization. # @param body [LogsPipelinesOrder] Object containing the new ordered list of pipeline IDs. diff --git a/lib/datadog_api_client/v1/api/metrics_api.rb b/lib/datadog_api_client/v1/api/metrics_api.rb index e0d475adb07..e2668cacc2b 100644 --- a/lib/datadog_api_client/v1/api/metrics_api.rb +++ b/lib/datadog_api_client/v1/api/metrics_api.rb @@ -341,9 +341,9 @@ def query_metrics_with_http_info(from, to, query, opts = {}) # Submit metrics # The metrics end-point allows you to post time-series data that can be graphed on Datadog’s dashboards. # The maximum payload size is 3.2 megabytes (3200000 bytes). Compressed payloads must have a decompressed size of less than 62 megabytes (62914560 bytes). - # + # # If you’re submitting metrics directly to the Datadog API without using DogStatsD, expect: - # + # # - 64 bits for the timestamp # - 32 bits for the value # - 20 bytes for the metric names @@ -362,9 +362,9 @@ def submit_metrics(body, opts = {}) # Submit metrics # The metrics end-point allows you to post time-series data that can be graphed on Datadog’s dashboards. # The maximum payload size is 3.2 megabytes (3200000 bytes). Compressed payloads must have a decompressed size of less than 62 megabytes (62914560 bytes). - # + # # If you’re submitting metrics directly to the Datadog API without using DogStatsD, expect: - # + # # - 64 bits for the timestamp # - 32 bits for the value # - 20 bytes for the metric names diff --git a/lib/datadog_api_client/v1/api/monitors_api.rb b/lib/datadog_api_client/v1/api/monitors_api.rb index 6afe8a35f68..454e80e8e89 100644 --- a/lib/datadog_api_client/v1/api/monitors_api.rb +++ b/lib/datadog_api_client/v1/api/monitors_api.rb @@ -99,11 +99,11 @@ def check_can_delete_monitor_with_http_info(monitor_ids, opts = {}) # Create a monitor # Create a monitor using the specified options. - # + # # #### Monitor Types - # + # # The type of monitor chosen from: - # + # # - anomaly: `query alert` # - APM: `query alert` or `trace-analytics alert` # - composite: `composite` @@ -123,13 +123,13 @@ def check_can_delete_monitor_with_http_info(monitor_ids, opts = {}) # - watchdog: `event alert` # - event-v2: `event-v2 alert` # - audit: `audit alert` - # + # # #### Query Types - # + # # **Metric Alert Query** - # + # # Example: `time_aggr(time_window):space_aggr:metric{tags} [by {key}] operator #` - # + # # - `time_aggr`: avg, sum, max, min, change, or pct_change # - `time_window`: `last_#m` (with `#` between 1 and 10080 depending on the monitor type) or `last_#h`(with `#` between 1 and 168 depending on the monitor type) or `last_1d`, or `last_1w` # - `space_aggr`: avg, sum, min, or max @@ -137,33 +137,33 @@ def check_can_delete_monitor_with_http_info(monitor_ids, opts = {}) # - `key`: a 'key' in key:value tag syntax; defines a separate alert for each tag in the group (multi-alert) # - `operator`: <, <=, >, >=, ==, or != # - `#`: an integer or decimal number used to set the threshold - # + # # If you are using the `_change_` or `_pct_change_` time aggregator, instead use `change_aggr(time_aggr(time_window), # timeshift):space_aggr:metric{tags} [by {key}] operator #` with: - # + # # - `change_aggr` change, pct_change # - `time_aggr` avg, sum, max, min [Learn more](https://docs.datadoghq.com/monitors/create/types/#define-the-conditions) # - `time_window` last\_#m (between 1 and 2880 depending on the monitor type), last\_#h (between 1 and 48 depending on the monitor type), or last_#d (1 or 2) # - `timeshift` #m_ago (5, 10, 15, or 30), #h_ago (1, 2, or 4), or 1d_ago - # + # # Use this to create an outlier monitor using the following query: # `avg(last_30m):outliers(avg:system.cpu.user{role:es-events-data} by {host}, 'dbscan', 7) > 0` - # + # # **Service Check Query** - # + # # Example: `"check".over(tags).last(count).by(group).count_by_status()` - # + # # - **`check`** name of the check, for example `datadog.agent.up` # - **`tags`** one or more quoted tags (comma-separated), or "*". for example: `.over("env:prod", "role:db")`; **`over`** cannot be blank. # - **`count`** must be at greater than or equal to your max threshold (defined in the `options`). It is limited to 100. # For example, if you've specified to notify on 1 critical, 3 ok, and 2 warn statuses, `count` should be at least 3. # - **`group`** must be specified for check monitors. Per-check grouping is already explicitly known for some service checks. # For example, Postgres integration monitors are tagged by `db`, `host`, and `port`, and Network monitors by `host`, `instance`, and `url`. See [Service Checks](https://docs.datadoghq.com/api/latest/service-checks/) documentation for more information. - # + # # **Event Alert Query** - # + # # Example: `events('sources:nagios status:error,warning priority:normal tags: "string query"').rollup("count").last("1h")"` - # + # # - **`event`**, the event query string: # - **`string_query`** free text query to match against event title and text. # - **`sources`** event sources (comma-separated). @@ -174,37 +174,37 @@ def check_can_delete_monitor_with_http_info(monitor_ids, opts = {}) # - **`excluded_tags`** excluded event tags (comma-separated). # - **`rollup`** the stats roll-up method. `count` is the only supported method now. # - **`last`** the timeframe to roll up the counts. Examples: 45m, 4h. Supported timeframes: m, h and d. This value should not exceed 48 hours. - # + # # **NOTE** Only available on US1 and EU. - # + # # **Event V2 Alert Query** - # + # # Example: `events(query).rollup(rollup_method[, measure]).last(time_window) operator #` - # + # # - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). # - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. # - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. # - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). # - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. # - **`#`** an integer or decimal number used to set the threshold. - # + # # **NOTE** Only available on US1-FED, US3, US5 and in closed beta on EU and US1. - # + # # **Process Alert Query** - # + # # Example: `processes(search).over(tags).rollup('count').last(timeframe) operator #` - # + # # - **`search`** free text search string for querying processes. # Matching processes match results on the [Live Processes](https://docs.datadoghq.com/infrastructure/process/?tab=linuxwindows) page. # - **`tags`** one or more tags (comma-separated) # - **`timeframe`** the timeframe to roll up the counts. Examples: 10m, 4h. Supported timeframes: s, m, h and d # - **`operator`** <, <=, >, >=, ==, or != # - **`#`** an integer or decimal number used to set the threshold - # + # # **Logs Alert Query** - # + # # Example: `logs(query).index(index_name).rollup(rollup_method[, measure]).last(time_window) operator #` - # + # # - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). # - **`index_name`** For multi-index organizations, the log index in which the request is performed. # - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. @@ -212,50 +212,50 @@ def check_can_delete_monitor_with_http_info(monitor_ids, opts = {}) # - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). # - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. # - **`#`** an integer or decimal number used to set the threshold. - # + # # **Composite Query** - # + # # Example: `12345 && 67890`, where `12345` and `67890` are the IDs of non-composite monitors - # + # # * **`name`** [*required*, *default* = **dynamic, based on query**]: The name of the alert. # * **`message`** [*required*, *default* = **dynamic, based on query**]: A message to include with notifications for this monitor. # Email notifications can be sent to specific users by using the same '@username' notation as events. # * **`tags`** [*optional*, *default* = **empty list**]: A list of tags to associate with your monitor. # When getting all monitor details via the API, use the `monitor_tags` argument to filter results by these tags. # It is only available via the API and isn't visible or editable in the Datadog UI. - # + # # **SLO Alert Query** - # + # # Example: `error_budget("slo_id").over("time_window") operator #` - # + # # - **`slo_id`**: The alphanumeric SLO ID of the SLO you are configuring the alert for. # - **`time_window`**: The time window of the SLO target you wish to alert on. Valid options: `7d`, `30d`, `90d`. # - **`operator`**: `>=` or `>` - # + # # **Audit Alert Query** - # + # # Example: `audits(query).rollup(rollup_method[, measure]).last(time_window) operator #` - # + # # - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). # - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. # - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. # - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). # - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. # - **`#`** an integer or decimal number used to set the threshold. - # + # # **NOTE** Only available on US1-FED and in closed beta on US1, EU, US3, and US5. - # + # # **CI Pipelines Alert Query** - # + # # Example: `ci-pipelines(query).rollup(rollup_method[, measure]).last(time_window) operator #` - # + # # - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). # - **`rollup_method`** The stats roll-up method - supports `count`, `avg`, and `cardinality`. # - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. # - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). # - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. # - **`#`** an integer or decimal number used to set the threshold. - # + # # **NOTE** Only available in closed beta on US1, EU, US3 and US5. # @param body [Monitor] Create a monitor request body. # @param opts [Hash] the optional parameters @@ -267,11 +267,11 @@ def create_monitor(body, opts = {}) # Create a monitor # Create a monitor using the specified options. - # + # # #### Monitor Types - # + # # The type of monitor chosen from: - # + # # - anomaly: `query alert` # - APM: `query alert` or `trace-analytics alert` # - composite: `composite` @@ -291,13 +291,13 @@ def create_monitor(body, opts = {}) # - watchdog: `event alert` # - event-v2: `event-v2 alert` # - audit: `audit alert` - # + # # #### Query Types - # + # # **Metric Alert Query** - # + # # Example: `time_aggr(time_window):space_aggr:metric{tags} [by {key}] operator #` - # + # # - `time_aggr`: avg, sum, max, min, change, or pct_change # - `time_window`: `last_#m` (with `#` between 1 and 10080 depending on the monitor type) or `last_#h`(with `#` between 1 and 168 depending on the monitor type) or `last_1d`, or `last_1w` # - `space_aggr`: avg, sum, min, or max @@ -305,33 +305,33 @@ def create_monitor(body, opts = {}) # - `key`: a 'key' in key:value tag syntax; defines a separate alert for each tag in the group (multi-alert) # - `operator`: <, <=, >, >=, ==, or != # - `#`: an integer or decimal number used to set the threshold - # + # # If you are using the `_change_` or `_pct_change_` time aggregator, instead use `change_aggr(time_aggr(time_window), # timeshift):space_aggr:metric{tags} [by {key}] operator #` with: - # + # # - `change_aggr` change, pct_change # - `time_aggr` avg, sum, max, min [Learn more](https://docs.datadoghq.com/monitors/create/types/#define-the-conditions) # - `time_window` last\_#m (between 1 and 2880 depending on the monitor type), last\_#h (between 1 and 48 depending on the monitor type), or last_#d (1 or 2) # - `timeshift` #m_ago (5, 10, 15, or 30), #h_ago (1, 2, or 4), or 1d_ago - # + # # Use this to create an outlier monitor using the following query: # `avg(last_30m):outliers(avg:system.cpu.user{role:es-events-data} by {host}, 'dbscan', 7) > 0` - # + # # **Service Check Query** - # + # # Example: `"check".over(tags).last(count).by(group).count_by_status()` - # + # # - **`check`** name of the check, for example `datadog.agent.up` # - **`tags`** one or more quoted tags (comma-separated), or "*". for example: `.over("env:prod", "role:db")`; **`over`** cannot be blank. # - **`count`** must be at greater than or equal to your max threshold (defined in the `options`). It is limited to 100. # For example, if you've specified to notify on 1 critical, 3 ok, and 2 warn statuses, `count` should be at least 3. # - **`group`** must be specified for check monitors. Per-check grouping is already explicitly known for some service checks. # For example, Postgres integration monitors are tagged by `db`, `host`, and `port`, and Network monitors by `host`, `instance`, and `url`. See [Service Checks](https://docs.datadoghq.com/api/latest/service-checks/) documentation for more information. - # + # # **Event Alert Query** - # + # # Example: `events('sources:nagios status:error,warning priority:normal tags: "string query"').rollup("count").last("1h")"` - # + # # - **`event`**, the event query string: # - **`string_query`** free text query to match against event title and text. # - **`sources`** event sources (comma-separated). @@ -342,37 +342,37 @@ def create_monitor(body, opts = {}) # - **`excluded_tags`** excluded event tags (comma-separated). # - **`rollup`** the stats roll-up method. `count` is the only supported method now. # - **`last`** the timeframe to roll up the counts. Examples: 45m, 4h. Supported timeframes: m, h and d. This value should not exceed 48 hours. - # + # # **NOTE** Only available on US1 and EU. - # + # # **Event V2 Alert Query** - # + # # Example: `events(query).rollup(rollup_method[, measure]).last(time_window) operator #` - # + # # - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). # - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. # - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. # - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). # - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. # - **`#`** an integer or decimal number used to set the threshold. - # + # # **NOTE** Only available on US1-FED, US3, US5 and in closed beta on EU and US1. - # + # # **Process Alert Query** - # + # # Example: `processes(search).over(tags).rollup('count').last(timeframe) operator #` - # + # # - **`search`** free text search string for querying processes. # Matching processes match results on the [Live Processes](https://docs.datadoghq.com/infrastructure/process/?tab=linuxwindows) page. # - **`tags`** one or more tags (comma-separated) # - **`timeframe`** the timeframe to roll up the counts. Examples: 10m, 4h. Supported timeframes: s, m, h and d # - **`operator`** <, <=, >, >=, ==, or != # - **`#`** an integer or decimal number used to set the threshold - # + # # **Logs Alert Query** - # + # # Example: `logs(query).index(index_name).rollup(rollup_method[, measure]).last(time_window) operator #` - # + # # - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). # - **`index_name`** For multi-index organizations, the log index in which the request is performed. # - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. @@ -380,50 +380,50 @@ def create_monitor(body, opts = {}) # - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). # - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. # - **`#`** an integer or decimal number used to set the threshold. - # + # # **Composite Query** - # + # # Example: `12345 && 67890`, where `12345` and `67890` are the IDs of non-composite monitors - # + # # * **`name`** [*required*, *default* = **dynamic, based on query**]: The name of the alert. # * **`message`** [*required*, *default* = **dynamic, based on query**]: A message to include with notifications for this monitor. # Email notifications can be sent to specific users by using the same '@username' notation as events. # * **`tags`** [*optional*, *default* = **empty list**]: A list of tags to associate with your monitor. # When getting all monitor details via the API, use the `monitor_tags` argument to filter results by these tags. # It is only available via the API and isn't visible or editable in the Datadog UI. - # + # # **SLO Alert Query** - # + # # Example: `error_budget("slo_id").over("time_window") operator #` - # + # # - **`slo_id`**: The alphanumeric SLO ID of the SLO you are configuring the alert for. # - **`time_window`**: The time window of the SLO target you wish to alert on. Valid options: `7d`, `30d`, `90d`. # - **`operator`**: `>=` or `>` - # + # # **Audit Alert Query** - # + # # Example: `audits(query).rollup(rollup_method[, measure]).last(time_window) operator #` - # + # # - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). # - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. # - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. # - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). # - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. # - **`#`** an integer or decimal number used to set the threshold. - # + # # **NOTE** Only available on US1-FED and in closed beta on US1, EU, US3, and US5. - # + # # **CI Pipelines Alert Query** - # + # # Example: `ci-pipelines(query).rollup(rollup_method[, measure]).last(time_window) operator #` - # + # # - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). # - **`rollup_method`** The stats roll-up method - supports `count`, `avg`, and `cardinality`. # - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. # - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). # - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. # - **`#`** an integer or decimal number used to set the threshold. - # + # # **NOTE** Only available in closed beta on US1, EU, US3 and US5. # @param body [Monitor] Create a monitor request body. # @param opts [Hash] the optional parameters diff --git a/lib/datadog_api_client/v1/api/organizations_api.rb b/lib/datadog_api_client/v1/api/organizations_api.rb index 74c507fdacc..6832c5a8b0e 100644 --- a/lib/datadog_api_client/v1/api/organizations_api.rb +++ b/lib/datadog_api_client/v1/api/organizations_api.rb @@ -25,12 +25,12 @@ def initialize(api_client = APIClient.default) # Create a child organization # Create a child organization. - # + # # This endpoint requires the # [multi-organization account](https://docs.datadoghq.com/account_management/multi_organization/) # feature and must be enabled by # [contacting support](https://docs.datadoghq.com/help/). - # + # # Once a new child organization is created, you can interact with it # by using the `org.public_id`, `api_key.key`, and # `application_key.hash` provided in the response. @@ -44,12 +44,12 @@ def create_child_org(body, opts = {}) # Create a child organization # Create a child organization. - # + # # This endpoint requires the # [multi-organization account](https://docs.datadoghq.com/account_management/multi_organization/) # feature and must be enabled by # [contacting support](https://docs.datadoghq.com/help/). - # + # # Once a new child organization is created, you can interact with it # by using the `org.public_id`, `api_key.key`, and # `application_key.hash` provided in the response. @@ -340,9 +340,9 @@ def update_org_with_http_info(public_id, body, opts = {}) # Upload IdP metadata # There are a couple of options for updating the Identity Provider (IdP) # metadata from your SAML IdP. - # + # # * **Multipart Form-Data**: Post the IdP metadata file using a form post. - # + # # * **XML Body:** Post the IdP metadata file as the body of the request. # @param public_id [String] The `public_id` of the organization you are operating with # @param idp_file [File] The path to the XML metadata file you wish to upload. @@ -356,9 +356,9 @@ def upload_id_p_for_org(public_id, idp_file, opts = {}) # Upload IdP metadata # There are a couple of options for updating the Identity Provider (IdP) # metadata from your SAML IdP. - # + # # * **Multipart Form-Data**: Post the IdP metadata file using a form post. - # + # # * **XML Body:** Post the IdP metadata file as the body of the request. # @param public_id [String] The `public_id` of the organization you are operating with # @param idp_file [File] The path to the XML metadata file you wish to upload. diff --git a/lib/datadog_api_client/v1/api/service_checks_api.rb b/lib/datadog_api_client/v1/api/service_checks_api.rb index fc02a87d4d7..30d16d772a3 100644 --- a/lib/datadog_api_client/v1/api/service_checks_api.rb +++ b/lib/datadog_api_client/v1/api/service_checks_api.rb @@ -25,7 +25,7 @@ def initialize(api_client = APIClient.default) # Submit a Service Check # Submit a list of Service Checks. - # + # # **Notes**: # - A valid API key is required. # - Service checks can be submitted up to 10 minutes in the past. @@ -39,7 +39,7 @@ def submit_service_check(body, opts = {}) # Submit a Service Check # Submit a list of Service Checks. - # + # # **Notes**: # - A valid API key is required. # - Service checks can be submitted up to 10 minutes in the past. diff --git a/lib/datadog_api_client/v1/api/service_level_objectives_api.rb b/lib/datadog_api_client/v1/api/service_level_objectives_api.rb index f335cfd5465..26acca1f8bd 100644 --- a/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +++ b/lib/datadog_api_client/v1/api/service_level_objectives_api.rb @@ -176,7 +176,7 @@ def create_slo_with_http_info(body, opts = {}) # Delete an SLO # Permanently delete the specified service level objective object. - # + # # If an SLO is used in a dashboard, the `DELETE /v1/slo/` endpoint returns # a 409 conflict error because the SLO is referenced in a dashboard. # @param slo_id [String] The ID of the service level objective. @@ -190,7 +190,7 @@ def delete_slo(slo_id, opts = {}) # Delete an SLO # Permanently delete the specified service level objective object. - # + # # If an SLO is used in a dashboard, the `DELETE /v1/slo/` endpoint returns # a 409 conflict error because the SLO is referenced in a dashboard. # @param slo_id [String] The ID of the service level objective. @@ -258,7 +258,7 @@ def delete_slo_with_http_info(slo_id, opts = {}) # Bulk Delete SLO Timeframes # Delete (or partially delete) multiple service level objective objects. - # + # # This endpoint facilitates deletion of one or more thresholds for one or more # service level objective objects. If all thresholds are deleted, the service level # objective object is deleted as well. @@ -272,7 +272,7 @@ def delete_slo_timeframe_in_bulk(body, opts = {}) # Bulk Delete SLO Timeframes # Delete (or partially delete) multiple service level objective objects. - # + # # This endpoint facilitates deletion of one or more thresholds for one or more # service level objective objects. If all thresholds are deleted, the service level # objective object is deleted as well. @@ -490,11 +490,11 @@ def get_slo_corrections_with_http_info(slo_id, opts = {}) # Get an SLO's history # Get a specific SLO’s history, regardless of its SLO type. - # + # # The detailed history data is structured according to the source data type. # For example, metric data is included for event SLOs that use # the metric source, and monitor SLO types include the monitor transition history. - # + # # **Note:** There are different response formats for event based and time based SLOs. # Examples of both are shown. # @param slo_id [String] The ID of the service level objective object. @@ -511,11 +511,11 @@ def get_slo_history(slo_id, from_ts, to_ts, opts = {}) # Get an SLO's history # Get a specific SLO’s history, regardless of its SLO type. - # + # # The detailed history data is structured according to the source data type. # For example, metric data is included for event SLOs that use # the metric source, and monitor SLO types include the monitor transition history. - # + # # **Note:** There are different response formats for event based and time based SLOs. # Examples of both are shown. # @param slo_id [String] The ID of the service level objective object. diff --git a/lib/datadog_api_client/v1/api/users_api.rb b/lib/datadog_api_client/v1/api/users_api.rb index e5ad2a10986..41901a06d99 100644 --- a/lib/datadog_api_client/v1/api/users_api.rb +++ b/lib/datadog_api_client/v1/api/users_api.rb @@ -25,7 +25,7 @@ def initialize(api_client = APIClient.default) # Create a user # Create a user for your organization. - # + # # **Note**: Users can only be created with the admin access role # if application keys belong to administrators. # @param body [User] User object that needs to be created. @@ -38,7 +38,7 @@ def create_user(body, opts = {}) # Create a user # Create a user for your organization. - # + # # **Note**: Users can only be created with the admin access role # if application keys belong to administrators. # @param body [User] User object that needs to be created. @@ -106,7 +106,7 @@ def create_user_with_http_info(body, opts = {}) # Disable a user # Delete a user from an organization. - # + # # **Note**: This endpoint can only be used with application keys belonging to # administrators. # @param user_handle [String] The handle of the user. @@ -119,7 +119,7 @@ def disable_user(user_handle, opts = {}) # Disable a user # Delete a user from an organization. - # + # # **Note**: This endpoint can only be used with application keys belonging to # administrators. # @param user_handle [String] The handle of the user. @@ -325,7 +325,7 @@ def list_users_with_http_info(opts = {}) # Update a user # Update a user information. - # + # # **Note**: It can only be used with application keys belonging to administrators. # @param user_handle [String] The ID of the user. # @param body [User] Description of the update. @@ -338,7 +338,7 @@ def update_user(user_handle, body, opts = {}) # Update a user # Update a user information. - # + # # **Note**: It can only be used with application keys belonging to administrators. # @param user_handle [String] The ID of the user. # @param body [User] Description of the update. diff --git a/lib/datadog_api_client/v1/api/webhooks_integration_api.rb b/lib/datadog_api_client/v1/api/webhooks_integration_api.rb index 4cdd78b9844..621651e68ed 100644 --- a/lib/datadog_api_client/v1/api/webhooks_integration_api.rb +++ b/lib/datadog_api_client/v1/api/webhooks_integration_api.rb @@ -394,7 +394,7 @@ def get_webhooks_integration_with_http_info(webhook_name, opts = {}) # Get a custom variable # Shows the content of the custom variable with the name ``. - # + # # If the custom variable is secret, the value does not return in the # response payload. # @param custom_variable_name [String] The name of the custom variable. @@ -407,7 +407,7 @@ def get_webhooks_integration_custom_variable(custom_variable_name, opts = {}) # Get a custom variable # Shows the content of the custom variable with the name ``. - # + # # If the custom variable is secret, the value does not return in the # response payload. # @param custom_variable_name [String] The name of the custom variable. diff --git a/lib/datadog_api_client/v2/api/logs_api.rb b/lib/datadog_api_client/v2/api/logs_api.rb index 890b1fea383..4a527c32646 100644 --- a/lib/datadog_api_client/v2/api/logs_api.rb +++ b/lib/datadog_api_client/v2/api/logs_api.rb @@ -101,13 +101,13 @@ def aggregate_logs_with_http_info(body, opts = {}) # Search logs # List endpoint returns logs that match a log search query. # [Results are paginated][1]. - # + # # Use this endpoint to build complex logs filtering and search. - # + # # **If you are considering archiving logs for your organization, # consider use of the Datadog archive capabilities instead of the log list API. # See [Datadog Logs Archive documentation][2].** - # + # # [1]: /logs/guide/collect-multiple-logs-with-pagination # [2]: https://docs.datadoghq.com/logs/archives # @param opts [Hash] the optional parameters @@ -121,13 +121,13 @@ def list_logs(opts = {}) # Search logs # List endpoint returns logs that match a log search query. # [Results are paginated][1]. - # + # # Use this endpoint to build complex logs filtering and search. - # + # # **If you are considering archiving logs for your organization, # consider use of the Datadog archive capabilities instead of the log list API. # See [Datadog Logs Archive documentation][2].** - # + # # [1]: /logs/guide/collect-multiple-logs-with-pagination # [2]: https://docs.datadoghq.com/logs/archives # @param opts [Hash] the optional parameters @@ -192,13 +192,13 @@ def list_logs_with_http_info(opts = {}) # Get a list of logs # List endpoint returns logs that match a log search query. # [Results are paginated][1]. - # + # # Use this endpoint to see your latest logs. - # + # # **If you are considering archiving logs for your organization, # consider use of the Datadog archive capabilities instead of the log list API. # See [Datadog Logs Archive documentation][2].** - # + # # [1]: /logs/guide/collect-multiple-logs-with-pagination # [2]: https://docs.datadoghq.com/logs/archives # @param opts [Hash] the optional parameters @@ -218,13 +218,13 @@ def list_logs_get(opts = {}) # Get a list of logs # List endpoint returns logs that match a log search query. # [Results are paginated][1]. - # + # # Use this endpoint to see your latest logs. - # + # # **If you are considering archiving logs for your organization, # consider use of the Datadog archive capabilities instead of the log list API. # See [Datadog Logs Archive documentation][2].** - # + # # [1]: /logs/guide/collect-multiple-logs-with-pagination # [2]: https://docs.datadoghq.com/logs/archives # @param opts [Hash] the optional parameters @@ -306,18 +306,18 @@ def list_logs_get_with_http_info(opts = {}) # Send logs # Send your logs to your Datadog platform over HTTP. Limits per HTTP request are: - # + # # - Maximum content size per payload (uncompressed): 5MB # - Maximum size for a single log: 1MB # - Maximum array size if sending multiple logs in an array: 1000 entries - # + # # Any log exceeding 1MB is accepted and truncated by Datadog: # - For a single log request, the API truncates the log at 1MB and returns a 2xx. # - For a multi-logs request, the API processes all logs, truncates only logs larger than 1MB, and returns a 2xx. - # + # # Datadog recommends sending your logs compressed. # Add the `Content-Encoding: gzip` header to the request when sending compressed logs. - # + # # The status codes answered by the HTTP API are: # - 202: Accepted: the request has been accepted for processing # - 400: Bad request (likely an issue in the payload formatting) @@ -340,18 +340,18 @@ def submit_log(body, opts = {}) # Send logs # Send your logs to your Datadog platform over HTTP. Limits per HTTP request are: - # + # # - Maximum content size per payload (uncompressed): 5MB # - Maximum size for a single log: 1MB # - Maximum array size if sending multiple logs in an array: 1000 entries - # + # # Any log exceeding 1MB is accepted and truncated by Datadog: # - For a single log request, the API truncates the log at 1MB and returns a 2xx. # - For a multi-logs request, the API processes all logs, truncates only logs larger than 1MB, and returns a 2xx. - # + # # Datadog recommends sending your logs compressed. # Add the `Content-Encoding: gzip` header to the request when sending compressed logs. - # + # # The status codes answered by the HTTP API are: # - 202: Accepted: the request has been accepted for processing # - 400: Bad request (likely an issue in the payload formatting) diff --git a/lib/datadog_api_client/v2/api/logs_archives_api.rb b/lib/datadog_api_client/v2/api/logs_archives_api.rb index 5c7ed15d008..af5947696ce 100644 --- a/lib/datadog_api_client/v2/api/logs_archives_api.rb +++ b/lib/datadog_api_client/v2/api/logs_archives_api.rb @@ -617,7 +617,7 @@ def remove_role_from_archive_with_http_info(archive_id, body, opts = {}) # Update an archive # Update a given archive configuration. - # + # # **Note**: Using this method updates your archive configuration by **replacing** # your current configuration with the new one sent to your Datadog organization. # @param archive_id [String] The ID of the archive. @@ -631,7 +631,7 @@ def update_logs_archive(archive_id, body, opts = {}) # Update an archive # Update a given archive configuration. - # + # # **Note**: Using this method updates your archive configuration by **replacing** # your current configuration with the new one sent to your Datadog organization. # @param archive_id [String] The ID of the archive. @@ -705,7 +705,7 @@ def update_logs_archive_with_http_info(archive_id, body, opts = {}) # Update archive order # Update the order of your archives. Since logs are processed sequentially, reordering an archive may change # the structure and content of the data processed by other archives. - # + # # **Note**: Using the `PUT` method updates your archive's order by replacing the current order # with the new one. # @param body [LogsArchiveOrder] An object containing the new ordered list of archive IDs. @@ -719,7 +719,7 @@ def update_logs_archive_order(body, opts = {}) # Update archive order # Update the order of your archives. Since logs are processed sequentially, reordering an archive may change # the structure and content of the data processed by other archives. - # + # # **Note**: Using the `PUT` method updates your archive's order by replacing the current order # with the new one. # @param body [LogsArchiveOrder] An object containing the new ordered list of archive IDs. diff --git a/lib/datadog_api_client/v2/api/metrics_api.rb b/lib/datadog_api_client/v2/api/metrics_api.rb index 2c4f5c91a77..620edbc6897 100644 --- a/lib/datadog_api_client/v2/api/metrics_api.rb +++ b/lib/datadog_api_client/v2/api/metrics_api.rb @@ -424,7 +424,7 @@ def list_tags_by_metric_name_with_http_info(metric_name, opts = {}) # List distinct metric volumes by metric name # View distinct metrics volumes for the given metric name. - # + # # Custom distribution metrics will return both ingested and indexed custom metric volumes. # For Metrics without Limits™ beta customers, all metrics will return both ingested/indexed volumes. # Custom metrics generated in-app from other products will return `null` for ingested volumes. @@ -438,7 +438,7 @@ def list_volumes_by_metric_name(metric_name, opts = {}) # List distinct metric volumes by metric name # View distinct metrics volumes for the given metric name. - # + # # Custom distribution metrics will return both ingested and indexed custom metric volumes. # For Metrics without Limits™ beta customers, all metrics will return both ingested/indexed volumes. # Custom metrics generated in-app from other products will return `null` for ingested volumes. diff --git a/lib/datadog_api_client/v2/api/security_monitoring_api.rb b/lib/datadog_api_client/v2/api/security_monitoring_api.rb index dde28f41c9f..4e04ea134b2 100644 --- a/lib/datadog_api_client/v2/api/security_monitoring_api.rb +++ b/lib/datadog_api_client/v2/api/security_monitoring_api.rb @@ -25,7 +25,7 @@ def initialize(api_client = APIClient.default) # Create a security filter # Create a security filter. - # + # # See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) # for more examples. # @param body [SecurityFilterCreateRequest] The definition of the new security filter. @@ -38,7 +38,7 @@ def create_security_filter(body, opts = {}) # Create a security filter # Create a security filter. - # + # # See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) # for more examples. # @param body [SecurityFilterCreateRequest] The definition of the new security filter. @@ -327,7 +327,7 @@ def delete_security_monitoring_rule_with_http_info(rule_id, opts = {}) # Get a security filter # Get the details of a specific security filter. - # + # # See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) # for more examples. # @param security_filter_id [String] The ID of the security filter. @@ -340,7 +340,7 @@ def get_security_filter(security_filter_id, opts = {}) # Get a security filter # Get the details of a specific security filter. - # + # # See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) # for more examples. # @param security_filter_id [String] The ID of the security filter. From 0077840f7ffa1609153ec326b250330c4cf538e8 Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Mon, 7 Feb 2022 09:35:10 +0100 Subject: [PATCH 08/23] collection_format --- .generator/src/generator/openapi.py | 15 ++++++--------- .generator/src/generator/templates/api.j2 | 16 ++++++++-------- lib/datadog_api_client/v1/api/monitors_api.rb | 2 +- lib/datadog_api_client/v1/api/synthetics_api.rb | 4 ++-- .../v1/api/usage_metering_api.rb | 4 ++-- lib/datadog_api_client/v2/api/incidents_api.rb | 4 ++-- 6 files changed, 21 insertions(+), 24 deletions(-) diff --git a/.generator/src/generator/openapi.py b/.generator/src/generator/openapi.py index 7eced2a326a..7a56aee07f7 100644 --- a/.generator/src/generator/openapi.py +++ b/.generator/src/generator/openapi.py @@ -267,26 +267,23 @@ def accept_headers(operation): return seen -def collection_format(schema): +def collection_format(parameter): in_to_style = { "query": "form", "path": "simple", "header": "simple", "cookie": "form", } + schema = parameter_schema(parameter) matrix = { ("form", False): "csv", ("form", True): "multi", # TODO add more cases from https://swagger.io/specification/#parameter-style } - if ( - "style" in schema - or "explode" in schema - and (schema.get("type") == "array" or "items" in schema) - ): - in_ = schema.get("in", "query") - style = schema.get("style", in_to_style[in_]) - explode = schema.get("explode", True if style == "form" else False) + if (schema.get("type") == "array" or "items" in schema): + in_ = parameter.get("in", "query") + style = parameter.get("style", in_to_style[in_]) + explode = parameter.get("explode", True if style == "form" else False) return matrix.get((style, explode), "multi") diff --git a/.generator/src/generator/templates/api.j2 b/.generator/src/generator/templates/api.j2 index ba5e917994a..fe10bbf67ce 100644 --- a/.generator/src/generator/templates/api.j2 +++ b/.generator/src/generator/templates/api.j2 @@ -69,7 +69,7 @@ module {{ config.moduleName }} if @api_client.config.client_side_validation && {{ name|attribute_name }}.nil? fail ArgumentError, "Missing the required parameter '{{ name|attribute_name }}' when calling {{classname}}.{{ operation.operationId|snake_case }}" end - {%- if schema.enum is defined and not schema|collection_format %} + {%- if schema.enum is defined and not parameter|collection_format %} # verify enum value allowable_values = [{% for value in schema.enum %}{{ value|format_value }}{%- if not loop.last %}, {% endif %}{% endfor %}] if @api_client.config.client_side_validation && !allowable_values.include?({{ name|attribute_name }}) @@ -80,7 +80,7 @@ module {{ config.moduleName }} {%- else %} {%- if schema.enum is defined %} allowable_values = [{% for value in schema.enum %}{{ value|format_value }}{%- if not loop.last %}, {% endif %}{% endfor %}] - {%- if schema|collection_format %} + {%- if parameter|collection_format %} if @api_client.config.client_side_validation && opts[:'{{ name|attribute_name }}'] && !opts[:'{{ name|attribute_name }}'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"{{ name|attribute_name }}\", must include one of #{allowable_values}" end @@ -142,11 +142,11 @@ module {{ config.moduleName }} # query parameters query_params = opts[:query_params] || {} {%- for name, parameter in operation|parameters if parameter.in == "query" and parameter.required %} - {%- set collection = parameter|parameter_schema|collection_format %} + {%- set collection = parameter|collection_format %} query_params[:'{{ name }}'] = {% if collection %}@api_client.build_collection_param({{ name|attribute_name }}, :{{ collection }}){% else %}{{ name|attribute_name }}{% endif %} {%- endfor %} {%- for name, parameter in operation|parameters if parameter.in == "query" and not parameter.required %} - {%- set collection = parameter|parameter_schema|collection_format %} + {%- set collection = parameter|collection_format %} query_params[:'{{ name }}'] = {% if collection %}@api_client.build_collection_param(opts[:'{{ name|attribute_name }}'], :{{ collection }}){% else %}opts[:'{{ name|attribute_name }}']{% endif %} if !opts[:'{{ name|attribute_name }}'].nil? {%- endfor %} @@ -163,22 +163,22 @@ module {{ config.moduleName }} {%- endif %} {%- for name, parameter in operation|parameters if parameter.in == "header" and parameter.required %} - {%- set collection = parameter|parameter_schema|collection_format %} + {%- set collection = parameter|collection_format %} header_params['{{ name }}'] = {% if collection %}@api_client.build_collection_param({{ name|attribute_name }}, :{{ collection }}){% else %}{ name|attribute_name }}{% endif %} {%- endfor %} {%- for name, parameter in operation|parameters if parameter.in == "header" and not parameter.required %} - {%- set collection = parameter|parameter_schema|collection_format %} + {%- set collection = parameter|collection_format %} header_params['{{ name }}'] = {% if collection %}@api_client.build_collection_param(opts[:'{{ name|attribute_name }}'], :{{ collection }}){% else %}opts[:'{{ name|attribute_name }}']{% endif %} if !opts[:'{{ name|attribute_name }}'].nil? {%- endfor %} # form parameters form_params = opts[:form_params] || {} {%- for name, parameter in operation|parameters if parameter.in == "form" and parameter.required %} - {%- set collection = parameter|parameter_schema|collection_format %} + {%- set collection = parameter|collection_format %} form_params['{{ name }}'] = {% if collection %}@api_client.build_collection_param({{ name|attribute_name }}, :{{ collection }}){% else %}{{ name|attribute_name }}{% endif %} {%- endfor %} {%- for name, parameter in operation|parameters if parameter.in == "form" and not parameter.required %} - {%- set collection = parameter|parameter_schema|collection_format %} + {%- set collection = parameter|collection_format %} form_params['{{ name }}'] = {% if collection %}@api_client.build_collection_param(opts[:'{{ name|attribute_name }}'], :{{ collection }}){% else %}opts[:'{{ name|attribute_name }}']{% endif %} if !opts[:'{{ name|attribute_name }}'].nil? {%- endfor %} diff --git a/lib/datadog_api_client/v1/api/monitors_api.rb b/lib/datadog_api_client/v1/api/monitors_api.rb index 454e80e8e89..c9e656417d7 100644 --- a/lib/datadog_api_client/v1/api/monitors_api.rb +++ b/lib/datadog_api_client/v1/api/monitors_api.rb @@ -61,7 +61,7 @@ def check_can_delete_monitor_with_http_info(monitor_ids, opts = {}) # query parameters query_params = opts[:query_params] || {} - query_params[:'monitor_ids'] = monitor_ids + query_params[:'monitor_ids'] = @api_client.build_collection_param(monitor_ids, :csv) # header parameters header_params = opts[:header_params] || {} diff --git a/lib/datadog_api_client/v1/api/synthetics_api.rb b/lib/datadog_api_client/v1/api/synthetics_api.rb index 1f4a98e8b58..6f8e759a52b 100644 --- a/lib/datadog_api_client/v1/api/synthetics_api.rb +++ b/lib/datadog_api_client/v1/api/synthetics_api.rb @@ -746,7 +746,7 @@ def get_api_test_latest_results_with_http_info(public_id, opts = {}) query_params = opts[:query_params] || {} query_params[:'from_ts'] = opts[:'from_ts'] if !opts[:'from_ts'].nil? query_params[:'to_ts'] = opts[:'to_ts'] if !opts[:'to_ts'].nil? - query_params[:'probe_dc'] = opts[:'probe_dc'] if !opts[:'probe_dc'].nil? + query_params[:'probe_dc'] = @api_client.build_collection_param(opts[:'probe_dc'], :multi) if !opts[:'probe_dc'].nil? # header parameters header_params = opts[:header_params] || {} @@ -982,7 +982,7 @@ def get_browser_test_latest_results_with_http_info(public_id, opts = {}) query_params = opts[:query_params] || {} query_params[:'from_ts'] = opts[:'from_ts'] if !opts[:'from_ts'].nil? query_params[:'to_ts'] = opts[:'to_ts'] if !opts[:'to_ts'].nil? - query_params[:'probe_dc'] = opts[:'probe_dc'] if !opts[:'probe_dc'].nil? + query_params[:'probe_dc'] = @api_client.build_collection_param(opts[:'probe_dc'], :multi) if !opts[:'probe_dc'].nil? # header parameters header_params = opts[:header_params] || {} diff --git a/lib/datadog_api_client/v1/api/usage_metering_api.rb b/lib/datadog_api_client/v1/api/usage_metering_api.rb index e2c08d7e21b..10ff7e97f0a 100644 --- a/lib/datadog_api_client/v1/api/usage_metering_api.rb +++ b/lib/datadog_api_client/v1/api/usage_metering_api.rb @@ -1774,7 +1774,7 @@ def get_usage_logs_by_index_with_http_info(start_hr, opts = {}) query_params = opts[:query_params] || {} query_params[:'start_hr'] = start_hr query_params[:'end_hr'] = opts[:'end_hr'] if !opts[:'end_hr'].nil? - query_params[:'index_name'] = opts[:'index_name'] if !opts[:'index_name'].nil? + query_params[:'index_name'] = @api_client.build_collection_param(opts[:'index_name'], :multi) if !opts[:'index_name'].nil? # header parameters header_params = opts[:header_params] || {} @@ -2867,7 +2867,7 @@ def get_usage_top_avg_metrics_with_http_info(opts = {}) query_params = opts[:query_params] || {} query_params[:'month'] = opts[:'month'] if !opts[:'month'].nil? query_params[:'day'] = opts[:'day'] if !opts[:'day'].nil? - query_params[:'names'] = opts[:'names'] if !opts[:'names'].nil? + query_params[:'names'] = @api_client.build_collection_param(opts[:'names'], :multi) if !opts[:'names'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'next_record_id'] = opts[:'next_record_id'] if !opts[:'next_record_id'].nil? diff --git a/lib/datadog_api_client/v2/api/incidents_api.rb b/lib/datadog_api_client/v2/api/incidents_api.rb index a5a73fb245b..1605fd76d74 100644 --- a/lib/datadog_api_client/v2/api/incidents_api.rb +++ b/lib/datadog_api_client/v2/api/incidents_api.rb @@ -211,7 +211,7 @@ def get_incident_with_http_info(incident_id, opts = {}) # query parameters query_params = opts[:query_params] || {} - query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil? + query_params[:'include'] = @api_client.build_collection_param(opts[:'include'], :csv) if !opts[:'include'].nil? # header parameters header_params = opts[:header_params] || {} @@ -285,7 +285,7 @@ def list_incidents_with_http_info(opts = {}) # query parameters query_params = opts[:query_params] || {} - query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil? + query_params[:'include'] = @api_client.build_collection_param(opts[:'include'], :csv) if !opts[:'include'].nil? query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil? query_params[:'page[offset]'] = opts[:'page_offset'] if !opts[:'page_offset'].nil? From 81f31224d8ad385f5e224b554040c029e0a3f50a Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Mon, 7 Feb 2022 10:25:08 +0100 Subject: [PATCH 09/23] validation --- .../src/generator/templates/model_generic.j2 | 50 +++++++++++++++++-- .../models/alert_graph_widget_definition.rb | 1 - .../models/alert_value_widget_definition.rb | 1 - .../v1/models/api_error_response.rb | 1 - lib/datadog_api_client/v1/models/api_key.rb | 7 ++- .../v1/models/api_key_list_response.rb | 1 - .../v1/models/api_key_response.rb | 1 - .../v1/models/apm_stats_query_column_type.rb | 1 - .../v1/models/apm_stats_query_definition.rb | 1 - .../v1/models/application_key.rb | 7 ++- .../models/application_key_list_response.rb | 1 - .../v1/models/application_key_response.rb | 1 - .../authentication_validation_response.rb | 1 - .../v1/models/aws_account.rb | 1 - .../models/aws_account_and_lambda_request.rb | 1 - .../v1/models/aws_account_create_response.rb | 1 - .../v1/models/aws_account_delete_request.rb | 1 - .../v1/models/aws_account_list_response.rb | 1 - .../v1/models/aws_logs_async_error.rb | 1 - .../v1/models/aws_logs_async_response.rb | 1 - .../v1/models/aws_logs_lambda.rb | 1 - .../v1/models/aws_logs_list_response.rb | 1 - .../models/aws_logs_list_services_response.rb | 1 - .../v1/models/aws_logs_services_request.rb | 1 - .../v1/models/aws_tag_filter.rb | 1 - .../models/aws_tag_filter_create_request.rb | 1 - .../models/aws_tag_filter_delete_request.rb | 1 - .../v1/models/aws_tag_filter_list_response.rb | 1 - .../v1/models/azure_account.rb | 1 - .../cancel_downtimes_by_scope_request.rb | 1 - .../v1/models/canceled_downtimes_ids.rb | 1 - .../v1/models/change_widget_definition.rb | 7 ++- .../v1/models/change_widget_request.rb | 1 - .../check_can_delete_monitor_response.rb | 1 - .../check_can_delete_monitor_response_data.rb | 1 - .../models/check_can_delete_slo_response.rb | 1 - .../check_can_delete_slo_response_data.rb | 1 - .../models/check_status_widget_definition.rb | 1 - lib/datadog_api_client/v1/models/creator.rb | 1 - lib/datadog_api_client/v1/models/dashboard.rb | 1 - .../v1/models/dashboard_bulk_action_data.rb | 1 - .../models/dashboard_bulk_delete_request.rb | 1 - .../v1/models/dashboard_delete_response.rb | 1 - .../v1/models/dashboard_list.rb | 1 - .../models/dashboard_list_delete_response.rb | 1 - .../v1/models/dashboard_list_list_response.rb | 1 - .../v1/models/dashboard_restore_request.rb | 1 - .../v1/models/dashboard_summary.rb | 1 - .../v1/models/dashboard_summary_definition.rb | 1 - .../v1/models/dashboard_template_variable.rb | 1 - .../dashboard_template_variable_preset.rb | 1 - ...ashboard_template_variable_preset_value.rb | 1 - .../v1/models/deleted_monitor.rb | 1 - .../models/distribution_widget_definition.rb | 7 ++- .../v1/models/distribution_widget_request.rb | 1 - .../v1/models/distribution_widget_x_axis.rb | 1 - .../v1/models/distribution_widget_y_axis.rb | 1 - lib/datadog_api_client/v1/models/downtime.rb | 10 +++- .../v1/models/downtime_child.rb | 10 +++- .../v1/models/downtime_recurrence.rb | 7 ++- lib/datadog_api_client/v1/models/event.rb | 4 +- .../v1/models/event_create_request.rb | 7 ++- .../v1/models/event_create_response.rb | 7 ++- .../v1/models/event_list_response.rb | 1 - .../v1/models/event_query_definition.rb | 1 - .../v1/models/event_response.rb | 1 - .../models/event_stream_widget_definition.rb | 1 - .../event_timeline_widget_definition.rb | 1 - ...n_apm_dependency_stats_query_definition.rb | 1 - ...ion_apm_resource_stats_query_definition.rb | 1 - ...ula_and_function_event_query_definition.rb | 1 - ...function_event_query_definition_compute.rb | 1 - ..._function_event_query_definition_search.rb | 1 - ...rmula_and_function_event_query_group_by.rb | 1 - ..._and_function_event_query_group_by_sort.rb | 1 - ...la_and_function_metric_query_definition.rb | 1 - ...a_and_function_process_query_definition.rb | 1 - .../v1/models/free_text_widget_definition.rb | 1 - .../v1/models/funnel_query.rb | 1 - .../v1/models/funnel_query_steps_item.rb | 1 - .../v1/models/funnel_widget_definition.rb | 7 ++- .../v1/models/funnel_widget_request.rb | 1 - .../v1/models/gcp_account.rb | 1 - .../v1/models/geomap_widget_definition.rb | 7 ++- .../models/geomap_widget_definition_style.rb | 1 - .../models/geomap_widget_definition_view.rb | 1 - .../v1/models/geomap_widget_request.rb | 1 - .../v1/models/graph_snapshot.rb | 1 - .../v1/models/group_widget_definition.rb | 1 - .../v1/models/heat_map_widget_definition.rb | 7 ++- .../v1/models/heat_map_widget_request.rb | 1 - lib/datadog_api_client/v1/models/host.rb | 1 - .../v1/models/host_list_response.rb | 1 - .../v1/models/host_map_request.rb | 1 - .../v1/models/host_map_widget_definition.rb | 1 - .../host_map_widget_definition_requests.rb | 1 - .../host_map_widget_definition_style.rb | 1 - lib/datadog_api_client/v1/models/host_meta.rb | 1 - .../v1/models/host_meta_install_method.rb | 1 - .../v1/models/host_metrics.rb | 1 - .../v1/models/host_mute_response.rb | 1 - .../v1/models/host_mute_settings.rb | 1 - lib/datadog_api_client/v1/models/host_tags.rb | 1 - .../v1/models/host_totals.rb | 1 - .../models/hourly_usage_attribution_body.rb | 1 - .../hourly_usage_attribution_metadata.rb | 1 - .../hourly_usage_attribution_pagination.rb | 1 - .../hourly_usage_attribution_response.rb | 1 - .../v1/models/http_log_error.rb | 4 +- .../v1/models/http_log_item.rb | 1 - .../v1/models/i_frame_widget_definition.rb | 1 - .../v1/models/idp_form_data.rb | 1 - .../v1/models/idp_response.rb | 1 - .../v1/models/image_widget_definition.rb | 1 - .../v1/models/intake_payload_accepted.rb | 1 - .../v1/models/ip_prefixes_agents.rb | 1 - .../v1/models/ip_prefixes_api.rb | 1 - .../v1/models/ip_prefixes_apm.rb | 1 - .../v1/models/ip_prefixes_logs.rb | 1 - .../v1/models/ip_prefixes_process.rb | 1 - .../v1/models/ip_prefixes_synthetics.rb | 1 - .../v1/models/ip_prefixes_webhooks.rb | 1 - lib/datadog_api_client/v1/models/ip_ranges.rb | 1 - .../v1/models/list_stream_column.rb | 1 - .../v1/models/list_stream_query.rb | 1 - .../models/list_stream_widget_definition.rb | 7 ++- .../v1/models/list_stream_widget_request.rb | 1 - lib/datadog_api_client/v1/models/log.rb | 1 - .../v1/models/log_content.rb | 1 - .../v1/models/log_query_definition.rb | 1 - .../models/log_query_definition_group_by.rb | 1 - .../log_query_definition_group_by_sort.rb | 1 - .../v1/models/log_query_definition_search.rb | 1 - .../v1/models/log_stream_widget_definition.rb | 1 - .../v1/models/logs_api_error.rb | 1 - .../v1/models/logs_api_error_response.rb | 1 - .../v1/models/logs_arithmetic_processor.rb | 1 - .../v1/models/logs_attribute_remapper.rb | 1 - .../v1/models/logs_by_retention.rb | 1 - .../models/logs_by_retention_monthly_usage.rb | 1 - .../v1/models/logs_by_retention_org_usage.rb | 1 - .../v1/models/logs_by_retention_orgs.rb | 1 - .../v1/models/logs_category_processor.rb | 1 - .../logs_category_processor_category.rb | 1 - .../v1/models/logs_date_remapper.rb | 1 - .../v1/models/logs_exclusion.rb | 1 - .../v1/models/logs_exclusion_filter.rb | 1 - .../v1/models/logs_filter.rb | 1 - .../v1/models/logs_geo_ip_parser.rb | 1 - .../v1/models/logs_grok_parser.rb | 4 +- .../v1/models/logs_grok_parser_rules.rb | 1 - .../v1/models/logs_index.rb | 1 - .../v1/models/logs_index_list_response.rb | 1 - .../v1/models/logs_index_update_request.rb | 1 - .../v1/models/logs_indexes_order.rb | 1 - .../v1/models/logs_list_request.rb | 4 +- .../v1/models/logs_list_request_time.rb | 1 - .../v1/models/logs_list_response.rb | 1 - .../v1/models/logs_lookup_processor.rb | 1 - .../v1/models/logs_message_remapper.rb | 1 - .../v1/models/logs_pipeline.rb | 1 - .../v1/models/logs_pipeline_processor.rb | 1 - .../v1/models/logs_pipelines_order.rb | 1 - .../v1/models/logs_query_compute.rb | 1 - .../v1/models/logs_retention_agg_sum_usage.rb | 1 - .../v1/models/logs_retention_sum_usage.rb | 1 - .../v1/models/logs_service_remapper.rb | 1 - .../v1/models/logs_status_remapper.rb | 1 - .../models/logs_string_builder_processor.rb | 1 - .../v1/models/logs_trace_remapper.rb | 1 - .../v1/models/logs_url_parser.rb | 1 - .../v1/models/logs_user_agent_parser.rb | 1 - .../v1/models/metric_metadata.rb | 1 - .../v1/models/metric_search_response.rb | 1 - .../models/metric_search_response_results.rb | 1 - .../v1/models/metrics_list_response.rb | 1 - .../v1/models/metrics_payload.rb | 1 - .../v1/models/metrics_query_metadata.rb | 7 ++- .../v1/models/metrics_query_response.rb | 1 - .../v1/models/metrics_query_unit.rb | 1 - lib/datadog_api_client/v1/models/monitor.rb | 7 ++- ...ula_and_function_event_query_definition.rb | 1 - ...function_event_query_definition_compute.rb | 1 - ..._function_event_query_definition_search.rb | 1 - ...rmula_and_function_event_query_group_by.rb | 1 - ..._and_function_event_query_group_by_sort.rb | 1 - .../models/monitor_group_search_response.rb | 1 - .../monitor_group_search_response_counts.rb | 1 - ...roup_search_response_counts_status_item.rb | 1 - ..._group_search_response_counts_type_item.rb | 1 - .../v1/models/monitor_group_search_result.rb | 1 - .../v1/models/monitor_options.rb | 7 ++- .../v1/models/monitor_options_aggregation.rb | 1 - .../v1/models/monitor_search_response.rb | 1 - .../models/monitor_search_response_counts.rb | 1 - ...nitor_search_response_counts_muted_item.rb | 1 - ...itor_search_response_counts_status_item.rb | 1 - ...monitor_search_response_counts_tag_item.rb | 1 - ...onitor_search_response_counts_type_item.rb | 1 - .../monitor_search_response_metadata.rb | 1 - .../v1/models/monitor_search_result.rb | 1 - .../monitor_search_result_notification.rb | 1 - .../v1/models/monitor_state.rb | 1 - .../v1/models/monitor_state_group.rb | 1 - .../monitor_summary_widget_definition.rb | 1 - .../monitor_threshold_window_options.rb | 1 - .../v1/models/monitor_thresholds.rb | 1 - .../v1/models/monitor_update_request.rb | 7 ++- .../models/monthly_usage_attribution_body.rb | 1 - .../monthly_usage_attribution_metadata.rb | 1 - .../monthly_usage_attribution_pagination.rb | 1 - .../monthly_usage_attribution_response.rb | 1 - .../monthly_usage_attribution_values.rb | 1 - .../v1/models/note_widget_definition.rb | 1 - .../v1/models/notebook_absolute_time.rb | 1 - .../v1/models/notebook_author.rb | 1 - .../v1/models/notebook_cell_create_request.rb | 1 - .../v1/models/notebook_cell_response.rb | 1 - .../v1/models/notebook_cell_update_request.rb | 1 - .../v1/models/notebook_create_data.rb | 1 - .../models/notebook_create_data_attributes.rb | 7 ++- .../v1/models/notebook_create_request.rb | 1 - .../notebook_distribution_cell_attributes.rb | 1 - .../notebook_heat_map_cell_attributes.rb | 1 - .../notebook_log_stream_cell_attributes.rb | 1 - .../notebook_markdown_cell_attributes.rb | 1 - .../notebook_markdown_cell_definition.rb | 1 - .../v1/models/notebook_metadata.rb | 1 - .../v1/models/notebook_relative_time.rb | 1 - .../v1/models/notebook_response.rb | 1 - .../v1/models/notebook_response_data.rb | 1 - .../notebook_response_data_attributes.rb | 7 ++- .../v1/models/notebook_split_by.rb | 1 - .../notebook_timeseries_cell_attributes.rb | 1 - .../notebook_toplist_cell_attributes.rb | 1 - .../v1/models/notebook_update_data.rb | 1 - .../models/notebook_update_data_attributes.rb | 7 ++- .../v1/models/notebook_update_request.rb | 1 - .../v1/models/notebooks_response.rb | 1 - .../v1/models/notebooks_response_data.rb | 1 - .../notebooks_response_data_attributes.rb | 7 ++- .../v1/models/notebooks_response_meta.rb | 1 - .../v1/models/notebooks_response_page.rb | 1 - .../v1/models/organization.rb | 4 +- .../v1/models/organization_billing.rb | 1 - .../v1/models/organization_create_body.rb | 4 +- .../v1/models/organization_create_response.rb | 1 - .../v1/models/organization_list_response.rb | 1 - .../v1/models/organization_response.rb | 1 - .../v1/models/organization_settings.rb | 1 - .../v1/models/organization_settings_saml.rb | 1 - ..._settings_saml_autocreate_users_domains.rb | 1 - ...ation_settings_saml_idp_initiated_login.rb | 1 - .../organization_settings_saml_strict_mode.rb | 1 - .../v1/models/organization_subscription.rb | 1 - .../v1/models/pager_duty_service.rb | 1 - .../v1/models/pager_duty_service_key.rb | 1 - .../v1/models/pager_duty_service_name.rb | 1 - .../v1/models/pagination.rb | 1 - .../v1/models/process_query_definition.rb | 4 +- .../models/query_value_widget_definition.rb | 7 ++- .../v1/models/query_value_widget_request.rb | 1 - .../v1/models/response_meta_attributes.rb | 1 - .../v1/models/scatter_plot_request.rb | 1 - .../models/scatter_plot_widget_definition.rb | 1 - ...scatter_plot_widget_definition_requests.rb | 1 - .../v1/models/scatterplot_table_request.rb | 1 - .../v1/models/scatterplot_widget_formula.rb | 1 - lib/datadog_api_client/v1/models/series.rb | 1 - .../v1/models/service_check.rb | 1 - .../v1/models/service_level_objective.rb | 1 - .../models/service_level_objective_query.rb | 1 - .../models/service_level_objective_request.rb | 1 - .../models/service_map_widget_definition.rb | 4 +- .../service_summary_widget_definition.rb | 1 - .../v1/models/slack_integration_channel.rb | 1 - .../slack_integration_channel_display.rb | 1 - .../v1/models/slo_bulk_delete_error.rb | 1 - .../v1/models/slo_bulk_delete_response.rb | 1 - .../models/slo_bulk_delete_response_data.rb | 1 - .../v1/models/slo_correction.rb | 1 - .../v1/models/slo_correction_create_data.rb | 1 - .../models/slo_correction_create_request.rb | 1 - ...lo_correction_create_request_attributes.rb | 1 - .../v1/models/slo_correction_list_response.rb | 1 - .../v1/models/slo_correction_response.rb | 1 - .../slo_correction_response_attributes.rb | 1 - ...correction_response_attributes_modifier.rb | 1 - .../v1/models/slo_correction_update_data.rb | 1 - .../models/slo_correction_update_request.rb | 1 - ...lo_correction_update_request_attributes.rb | 1 - .../v1/models/slo_delete_response.rb | 1 - .../v1/models/slo_history_metrics.rb | 1 - .../v1/models/slo_history_metrics_series.rb | 1 - .../slo_history_metrics_series_metadata.rb | 1 - ...lo_history_metrics_series_metadata_unit.rb | 1 - .../v1/models/slo_history_monitor.rb | 1 - .../v1/models/slo_history_response.rb | 1 - .../v1/models/slo_history_response_data.rb | 1 - .../v1/models/slo_history_response_error.rb | 1 - .../slo_history_response_error_with_type.rb | 1 - .../v1/models/slo_history_sli_data.rb | 1 - .../v1/models/slo_list_response.rb | 1 - .../v1/models/slo_list_response_metadata.rb | 1 - .../models/slo_list_response_metadata_page.rb | 1 - .../v1/models/slo_response.rb | 1 - .../v1/models/slo_response_data.rb | 1 - .../v1/models/slo_threshold.rb | 1 - .../v1/models/slo_widget_definition.rb | 1 - .../v1/models/sunburst_widget_definition.rb | 4 +- ...sunburst_widget_legend_inline_automatic.rb | 1 - .../v1/models/sunburst_widget_legend_table.rb | 1 - .../v1/models/sunburst_widget_request.rb | 1 - .../v1/models/synthetics_api_step.rb | 1 - .../v1/models/synthetics_api_test.rb | 1 - .../v1/models/synthetics_api_test_config.rb | 1 - .../models/synthetics_api_test_result_data.rb | 1 - .../synthetics_api_test_result_failure.rb | 1 - .../models/synthetics_api_test_result_full.rb | 1 - .../synthetics_api_test_result_full_check.rb | 1 - .../synthetics_api_test_result_short.rb | 1 - ...synthetics_api_test_result_short_result.rb | 1 - .../synthetics_assertion_json_path_target.rb | 1 - ...etics_assertion_json_path_target_target.rb | 1 - .../v1/models/synthetics_assertion_target.rb | 1 - .../v1/models/synthetics_basic_auth_ntlm.rb | 1 - .../v1/models/synthetics_basic_auth_sigv4.rb | 1 - .../v1/models/synthetics_basic_auth_web.rb | 1 - .../v1/models/synthetics_batch_details.rb | 1 - .../models/synthetics_batch_details_data.rb | 1 - .../v1/models/synthetics_batch_result.rb | 1 - .../v1/models/synthetics_browser_error.rb | 1 - .../v1/models/synthetics_browser_test.rb | 1 - .../models/synthetics_browser_test_config.rb | 1 - .../synthetics_browser_test_result_data.rb | 1 - .../synthetics_browser_test_result_failure.rb | 1 - .../synthetics_browser_test_result_full.rb | 1 - ...nthetics_browser_test_result_full_check.rb | 1 - .../synthetics_browser_test_result_short.rb | 1 - ...hetics_browser_test_result_short_result.rb | 1 - .../v1/models/synthetics_browser_variable.rb | 1 - .../v1/models/synthetics_ci_batch_metadata.rb | 1 - .../models/synthetics_ci_batch_metadata_ci.rb | 1 - .../synthetics_ci_batch_metadata_git.rb | 1 - .../synthetics_ci_batch_metadata_pipeline.rb | 1 - .../synthetics_ci_batch_metadata_provider.rb | 1 - .../v1/models/synthetics_ci_test.rb | 1 - .../v1/models/synthetics_ci_test_body.rb | 1 - .../v1/models/synthetics_config_variable.rb | 1 - .../v1/models/synthetics_core_web_vitals.rb | 1 - .../models/synthetics_delete_tests_payload.rb | 1 - .../synthetics_delete_tests_response.rb | 1 - .../v1/models/synthetics_deleted_test.rb | 1 - .../v1/models/synthetics_device.rb | 1 - ...cs_get_api_test_latest_results_response.rb | 1 - ...et_browser_test_latest_results_response.rb | 1 - .../v1/models/synthetics_global_variable.rb | 1 - .../synthetics_global_variable_attributes.rb | 1 - ...tics_global_variable_parse_test_options.rb | 1 - .../synthetics_global_variable_value.rb | 1 - ...nthetics_list_global_variables_response.rb | 1 - .../models/synthetics_list_tests_response.rb | 1 - .../v1/models/synthetics_location.rb | 1 - .../v1/models/synthetics_locations.rb | 1 - .../v1/models/synthetics_parsing_options.rb | 1 - .../v1/models/synthetics_private_location.rb | 1 - ...tics_private_location_creation_response.rb | 1 - ...ion_creation_response_result_encryption.rb | 1 - .../synthetics_private_location_secrets.rb | 1 - ...private_location_secrets_authentication.rb | 1 - ...vate_location_secrets_config_decryption.rb | 1 - .../v1/models/synthetics_ssl_certificate.rb | 1 - .../synthetics_ssl_certificate_issuer.rb | 1 - .../synthetics_ssl_certificate_subject.rb | 1 - .../v1/models/synthetics_step.rb | 1 - .../v1/models/synthetics_step_detail.rb | 1 - .../models/synthetics_step_detail_warning.rb | 1 - .../v1/models/synthetics_test_config.rb | 1 - .../v1/models/synthetics_test_details.rb | 1 - .../v1/models/synthetics_test_options.rb | 13 ++++- ...synthetics_test_options_monitor_options.rb | 7 ++- .../models/synthetics_test_options_retry.rb | 1 - .../v1/models/synthetics_test_request.rb | 13 ++++- .../synthetics_test_request_certificate.rb | 1 - ...ynthetics_test_request_certificate_item.rb | 1 - .../models/synthetics_test_request_proxy.rb | 1 - .../v1/models/synthetics_timing.rb | 1 - .../v1/models/synthetics_trigger_body.rb | 1 - .../synthetics_trigger_ci_test_location.rb | 1 - .../synthetics_trigger_ci_test_run_result.rb | 1 - .../synthetics_trigger_ci_tests_response.rb | 1 - .../v1/models/synthetics_trigger_test.rb | 1 - ...hetics_update_test_pause_status_payload.rb | 1 - .../v1/models/synthetics_variable_parser.rb | 1 - .../v1/models/table_widget_definition.rb | 1 - .../v1/models/table_widget_request.rb | 1 - .../v1/models/tag_to_hosts.rb | 1 - .../v1/models/timeseries_widget_definition.rb | 4 +- .../timeseries_widget_expression_alias.rb | 1 - .../v1/models/timeseries_widget_request.rb | 1 - .../v1/models/toplist_widget_definition.rb | 1 - .../v1/models/toplist_widget_request.rb | 4 +- .../v1/models/tree_map_widget_definition.rb | 7 ++- .../v1/models/tree_map_widget_request.rb | 1 - .../v1/models/usage_analyzed_logs_hour.rb | 1 - .../v1/models/usage_analyzed_logs_response.rb | 1 - .../usage_attribution_aggregates_body.rb | 1 - .../v1/models/usage_attribution_body.rb | 1 - .../v1/models/usage_attribution_metadata.rb | 1 - .../v1/models/usage_attribution_pagination.rb | 1 - .../v1/models/usage_attribution_response.rb | 1 - .../v1/models/usage_attribution_values.rb | 1 - .../v1/models/usage_audit_logs_hour.rb | 1 - .../v1/models/usage_audit_logs_response.rb | 1 - .../v1/models/usage_billable_summary_body.rb | 1 - .../v1/models/usage_billable_summary_hour.rb | 1 - .../v1/models/usage_billable_summary_keys.rb | 1 - .../models/usage_billable_summary_response.rb | 1 - ..._cloud_security_posture_management_hour.rb | 1 - ...ud_security_posture_management_response.rb | 1 - .../models/usage_custom_reports_attributes.rb | 1 - .../v1/models/usage_custom_reports_data.rb | 1 - .../v1/models/usage_custom_reports_meta.rb | 1 - .../v1/models/usage_custom_reports_page.rb | 1 - .../models/usage_custom_reports_response.rb | 1 - .../v1/models/usage_cws_hour.rb | 1 - .../v1/models/usage_cws_response.rb | 1 - .../v1/models/usage_dbm_hour.rb | 1 - .../v1/models/usage_dbm_response.rb | 1 - .../v1/models/usage_fargate_hour.rb | 1 - .../v1/models/usage_fargate_response.rb | 1 - .../v1/models/usage_host_hour.rb | 1 - .../v1/models/usage_hosts_response.rb | 1 - .../models/usage_incident_management_hour.rb | 1 - .../usage_incident_management_response.rb | 1 - .../v1/models/usage_indexed_spans_hour.rb | 1 - .../v1/models/usage_indexed_spans_response.rb | 1 - .../v1/models/usage_ingested_spans_hour.rb | 1 - .../models/usage_ingested_spans_response.rb | 1 - .../v1/models/usage_io_t_hour.rb | 1 - .../v1/models/usage_io_t_response.rb | 1 - .../v1/models/usage_lambda_hour.rb | 1 - .../v1/models/usage_lambda_response.rb | 1 - .../v1/models/usage_logs_by_index_hour.rb | 1 - .../v1/models/usage_logs_by_index_response.rb | 1 - .../v1/models/usage_logs_by_retention_hour.rb | 1 - .../usage_logs_by_retention_response.rb | 1 - .../v1/models/usage_logs_hour.rb | 1 - .../v1/models/usage_logs_response.rb | 1 - .../v1/models/usage_network_flows_hour.rb | 1 - .../v1/models/usage_network_flows_response.rb | 1 - .../v1/models/usage_network_hosts_hour.rb | 1 - .../v1/models/usage_network_hosts_response.rb | 1 - .../v1/models/usage_profiling_hour.rb | 1 - .../v1/models/usage_profiling_response.rb | 1 - .../v1/models/usage_rum_sessions_hour.rb | 1 - .../v1/models/usage_rum_sessions_response.rb | 1 - .../v1/models/usage_rum_units_hour.rb | 1 - .../v1/models/usage_rum_units_response.rb | 1 - .../v1/models/usage_sds_hour.rb | 1 - .../v1/models/usage_sds_response.rb | 1 - .../v1/models/usage_snmp_hour.rb | 1 - .../v1/models/usage_snmp_response.rb | 1 - ...age_specified_custom_reports_attributes.rb | 1 - .../usage_specified_custom_reports_data.rb | 1 - .../usage_specified_custom_reports_meta.rb | 1 - .../usage_specified_custom_reports_page.rb | 1 - ...usage_specified_custom_reports_response.rb | 1 - .../v1/models/usage_summary_date.rb | 1 - .../v1/models/usage_summary_date_org.rb | 1 - .../v1/models/usage_summary_response.rb | 1 - .../v1/models/usage_synthetics_api_hour.rb | 1 - .../models/usage_synthetics_api_response.rb | 1 - .../models/usage_synthetics_browser_hour.rb | 1 - .../usage_synthetics_browser_response.rb | 1 - .../v1/models/usage_synthetics_hour.rb | 1 - .../v1/models/usage_synthetics_response.rb | 1 - .../v1/models/usage_timeseries_hour.rb | 1 - .../v1/models/usage_timeseries_response.rb | 1 - .../v1/models/usage_top_avg_metrics_hour.rb | 1 - .../models/usage_top_avg_metrics_metadata.rb | 1 - .../models/usage_top_avg_metrics_response.rb | 1 - lib/datadog_api_client/v1/models/user.rb | 1 - .../v1/models/user_disable_response.rb | 1 - .../v1/models/user_list_response.rb | 1 - .../v1/models/user_response.rb | 1 - .../v1/models/webhooks_integration.rb | 1 - .../webhooks_integration_custom_variable.rb | 1 - ...ks_integration_custom_variable_response.rb | 1 - ...egration_custom_variable_update_request.rb | 1 - .../webhooks_integration_update_request.rb | 1 - lib/datadog_api_client/v1/models/widget.rb | 1 - .../v1/models/widget_axis.rb | 1 - .../v1/models/widget_conditional_format.rb | 1 - .../v1/models/widget_custom_link.rb | 1 - .../v1/models/widget_event.rb | 1 - .../v1/models/widget_field_sort.rb | 1 - .../v1/models/widget_formula.rb | 1 - .../v1/models/widget_formula_limit.rb | 1 - .../v1/models/widget_layout.rb | 13 ++++- .../v1/models/widget_marker.rb | 1 - .../v1/models/widget_request_style.rb | 1 - .../v1/models/widget_style.rb | 1 - .../v1/models/widget_time.rb | 1 - .../v2/models/api_error_response.rb | 1 - .../v2/models/api_key_create_attributes.rb | 1 - .../v2/models/api_key_create_data.rb | 1 - .../v2/models/api_key_create_request.rb | 1 - .../v2/models/api_key_relationships.rb | 1 - .../v2/models/api_key_response.rb | 1 - .../v2/models/api_key_update_attributes.rb | 1 - .../v2/models/api_key_update_data.rb | 1 - .../v2/models/api_key_update_request.rb | 1 - .../v2/models/api_keys_response.rb | 1 - .../application_key_create_attributes.rb | 1 - .../v2/models/application_key_create_data.rb | 1 - .../models/application_key_create_request.rb | 1 - .../models/application_key_relationships.rb | 1 - .../v2/models/application_key_response.rb | 1 - .../application_key_update_attributes.rb | 1 - .../v2/models/application_key_update_data.rb | 1 - .../models/application_key_update_request.rb | 1 - ...workload_security_agent_rule_attributes.rb | 1 - ...d_security_agent_rule_create_attributes.rb | 1 - ...orkload_security_agent_rule_create_data.rb | 1 - ...load_security_agent_rule_create_request.rb | 1 - ..._security_agent_rule_creator_attributes.rb | 1 - ...cloud_workload_security_agent_rule_data.rb | 1 - ...d_workload_security_agent_rule_response.rb | 1 - ...d_security_agent_rule_update_attributes.rb | 1 - ...orkload_security_agent_rule_update_data.rb | 1 - ...load_security_agent_rule_update_request.rb | 1 - ..._security_agent_rule_updater_attributes.rb | 1 - ...load_security_agent_rules_list_response.rb | 1 - lib/datadog_api_client/v2/models/creator.rb | 1 - .../dashboard_list_add_items_request.rb | 1 - .../dashboard_list_add_items_response.rb | 1 - .../dashboard_list_delete_items_request.rb | 1 - .../dashboard_list_delete_items_response.rb | 1 - .../v2/models/dashboard_list_item.rb | 4 +- .../v2/models/dashboard_list_item_request.rb | 1 - .../v2/models/dashboard_list_item_response.rb | 1 - .../v2/models/dashboard_list_items.rb | 1 - .../dashboard_list_update_items_request.rb | 1 - .../dashboard_list_update_items_response.rb | 1 - .../v2/models/full_api_key.rb | 1 - .../v2/models/full_api_key_attributes.rb | 7 ++- .../v2/models/full_application_key.rb | 1 - .../models/full_application_key_attributes.rb | 7 ++- .../v2/models/http_log_error.rb | 1 - .../v2/models/http_log_errors.rb | 1 - .../v2/models/http_log_item.rb | 1 - .../v2/models/incident_create_attributes.rb | 1 - .../v2/models/incident_create_data.rb | 1 - .../models/incident_create_relationships.rb | 1 - .../v2/models/incident_create_request.rb | 1 - ...ncident_field_attributes_multiple_value.rb | 1 - .../incident_field_attributes_single_value.rb | 1 - .../v2/models/incident_notification_handle.rb | 1 - .../v2/models/incident_response.rb | 1 - .../v2/models/incident_response_attributes.rb | 1 - .../v2/models/incident_response_data.rb | 1 - .../models/incident_response_relationships.rb | 1 - .../incident_service_create_attributes.rb | 1 - .../v2/models/incident_service_create_data.rb | 1 - .../models/incident_service_create_request.rb | 1 - .../models/incident_service_relationships.rb | 1 - .../v2/models/incident_service_response.rb | 1 - .../incident_service_response_attributes.rb | 1 - .../models/incident_service_response_data.rb | 1 - .../incident_service_update_attributes.rb | 1 - .../v2/models/incident_service_update_data.rb | 1 - .../models/incident_service_update_request.rb | 1 - .../v2/models/incident_services_response.rb | 1 - .../models/incident_services_response_meta.rb | 1 - ...ident_services_response_meta_pagination.rb | 1 - .../models/incident_team_create_attributes.rb | 1 - .../v2/models/incident_team_create_data.rb | 1 - .../v2/models/incident_team_create_request.rb | 1 - .../v2/models/incident_team_relationships.rb | 1 - .../v2/models/incident_team_response.rb | 1 - .../incident_team_response_attributes.rb | 1 - .../v2/models/incident_team_response_data.rb | 1 - .../models/incident_team_update_attributes.rb | 1 - .../v2/models/incident_team_update_data.rb | 1 - .../v2/models/incident_team_update_request.rb | 1 - .../v2/models/incident_teams_response.rb | 1 - .../v2/models/incident_teams_response_meta.rb | 1 - ...incident_teams_response_meta_pagination.rb | 1 - ...imeline_cell_markdown_create_attributes.rb | 1 - ...cell_markdown_create_attributes_content.rb | 1 - .../v2/models/incident_update_attributes.rb | 1 - .../v2/models/incident_update_data.rb | 1 - .../models/incident_update_relationships.rb | 1 - .../v2/models/incident_update_request.rb | 1 - .../v2/models/incidents_response.rb | 1 - .../v2/models/incidents_response_meta.rb | 1 - .../incidents_response_meta_pagination.rb | 1 - .../models/list_application_keys_response.rb | 1 - lib/datadog_api_client/v2/models/log.rb | 1 - .../v2/models/log_attributes.rb | 1 - .../v2/models/logs_aggregate_bucket.rb | 1 - ...aggregate_bucket_value_timeseries_point.rb | 1 - .../v2/models/logs_aggregate_request.rb | 1 - .../v2/models/logs_aggregate_request_page.rb | 1 - .../v2/models/logs_aggregate_response.rb | 1 - .../v2/models/logs_aggregate_response_data.rb | 1 - .../v2/models/logs_aggregate_sort.rb | 1 - .../v2/models/logs_archive.rb | 1 - .../v2/models/logs_archive_attributes.rb | 4 -- .../v2/models/logs_archive_create_request.rb | 1 - .../logs_archive_create_request_attributes.rb | 1 - .../logs_archive_create_request_definition.rb | 1 - .../v2/models/logs_archive_definition.rb | 1 - .../models/logs_archive_destination_azure.rb | 1 - .../v2/models/logs_archive_destination_gcs.rb | 1 - .../v2/models/logs_archive_destination_s3.rb | 1 - .../models/logs_archive_integration_azure.rb | 1 - .../v2/models/logs_archive_integration_gcs.rb | 1 - .../v2/models/logs_archive_integration_s3.rb | 1 - .../v2/models/logs_archive_order.rb | 1 - .../models/logs_archive_order_attributes.rb | 1 - .../models/logs_archive_order_definition.rb | 1 - .../v2/models/logs_archives.rb | 1 - .../v2/models/logs_compute.rb | 1 - .../v2/models/logs_group_by.rb | 1 - .../v2/models/logs_group_by_histogram.rb | 1 - .../v2/models/logs_list_request.rb | 1 - .../v2/models/logs_list_request_page.rb | 4 +- .../v2/models/logs_list_response.rb | 1 - .../v2/models/logs_list_response_links.rb | 1 - .../v2/models/logs_metric_compute.rb | 1 - .../models/logs_metric_create_attributes.rb | 1 - .../v2/models/logs_metric_create_data.rb | 1 - .../v2/models/logs_metric_create_request.rb | 1 - .../v2/models/logs_metric_filter.rb | 1 - .../v2/models/logs_metric_group_by.rb | 1 - .../v2/models/logs_metric_response.rb | 1 - .../models/logs_metric_response_attributes.rb | 1 - .../v2/models/logs_metric_response_compute.rb | 1 - .../v2/models/logs_metric_response_data.rb | 1 - .../v2/models/logs_metric_response_filter.rb | 1 - .../models/logs_metric_response_group_by.rb | 1 - .../models/logs_metric_update_attributes.rb | 1 - .../v2/models/logs_metric_update_data.rb | 1 - .../v2/models/logs_metric_update_request.rb | 1 - .../v2/models/logs_metrics_response.rb | 1 - .../v2/models/logs_query_filter.rb | 1 - .../v2/models/logs_query_options.rb | 1 - .../v2/models/logs_response_metadata.rb | 1 - .../v2/models/logs_response_metadata_page.rb | 1 - .../v2/models/logs_warning.rb | 1 - lib/datadog_api_client/v2/models/metric.rb | 1 - .../v2/models/metric_all_tags.rb | 1 - .../v2/models/metric_all_tags_attributes.rb | 1 - .../v2/models/metric_all_tags_response.rb | 1 - .../v2/models/metric_custom_aggregation.rb | 1 - .../v2/models/metric_distinct_volume.rb | 1 - .../metric_distinct_volume_attributes.rb | 1 - .../models/metric_ingested_indexed_volume.rb | 1 - ...tric_ingested_indexed_volume_attributes.rb | 1 - .../v2/models/metric_tag_configuration.rb | 1 - .../metric_tag_configuration_attributes.rb | 1 - ...ric_tag_configuration_create_attributes.rb | 1 - .../metric_tag_configuration_create_data.rb | 1 - ...metric_tag_configuration_create_request.rb | 1 - .../metric_tag_configuration_response.rb | 1 - ...ric_tag_configuration_update_attributes.rb | 1 - .../metric_tag_configuration_update_data.rb | 1 - ...metric_tag_configuration_update_request.rb | 1 - .../v2/models/metric_volumes_response.rb | 1 - ..._and_metric_tag_configurations_response.rb | 1 - .../v2/models/organization.rb | 1 - .../v2/models/organization_attributes.rb | 1 - .../v2/models/pagination.rb | 1 - .../v2/models/partial_api_key.rb | 1 - .../v2/models/partial_api_key_attributes.rb | 7 ++- .../v2/models/partial_application_key.rb | 1 - .../partial_application_key_attributes.rb | 7 ++- .../partial_application_key_response.rb | 1 - .../v2/models/permission.rb | 1 - .../v2/models/permission_attributes.rb | 1 - .../v2/models/permissions_response.rb | 1 - .../v2/models/process_summaries_meta.rb | 1 - .../v2/models/process_summaries_meta_page.rb | 7 ++- .../v2/models/process_summaries_response.rb | 1 - .../v2/models/process_summary.rb | 1 - .../v2/models/process_summary_attributes.rb | 1 - ...p_to_incident_integration_metadata_data.rb | 1 - ...nship_to_incident_integration_metadatas.rb | 1 - .../relationship_to_incident_postmortem.rb | 1 - ...elationship_to_incident_postmortem_data.rb | 1 - .../v2/models/relationship_to_organization.rb | 1 - .../relationship_to_organization_data.rb | 1 - .../models/relationship_to_organizations.rb | 1 - .../v2/models/relationship_to_permission.rb | 1 - .../models/relationship_to_permission_data.rb | 1 - .../v2/models/relationship_to_permissions.rb | 1 - .../v2/models/relationship_to_role.rb | 1 - .../v2/models/relationship_to_role_data.rb | 1 - .../v2/models/relationship_to_roles.rb | 1 - .../v2/models/relationship_to_user.rb | 1 - .../v2/models/relationship_to_user_data.rb | 1 - .../v2/models/relationship_to_users.rb | 1 - .../v2/models/response_meta_attributes.rb | 1 - lib/datadog_api_client/v2/models/role.rb | 1 - .../v2/models/role_attributes.rb | 1 - .../v2/models/role_clone.rb | 1 - .../v2/models/role_clone_attributes.rb | 1 - .../v2/models/role_clone_request.rb | 1 - .../v2/models/role_create_attributes.rb | 1 - .../v2/models/role_create_data.rb | 1 - .../v2/models/role_create_request.rb | 1 - .../v2/models/role_create_response.rb | 1 - .../v2/models/role_create_response_data.rb | 1 - .../v2/models/role_relationships.rb | 1 - .../v2/models/role_response.rb | 1 - .../v2/models/role_response_relationships.rb | 1 - .../v2/models/role_update_attributes.rb | 1 - .../v2/models/role_update_data.rb | 1 - .../v2/models/role_update_request.rb | 1 - .../v2/models/role_update_response.rb | 1 - .../v2/models/role_update_response_data.rb | 1 - .../v2/models/roles_response.rb | 1 - .../v2/models/security_filter.rb | 1 - .../v2/models/security_filter_attributes.rb | 4 +- .../security_filter_create_attributes.rb | 1 - .../v2/models/security_filter_create_data.rb | 1 - .../models/security_filter_create_request.rb | 1 - .../security_filter_exclusion_filter.rb | 1 - ...curity_filter_exclusion_filter_response.rb | 1 - .../v2/models/security_filter_meta.rb | 1 - .../v2/models/security_filter_response.rb | 1 - .../security_filter_update_attributes.rb | 4 +- .../v2/models/security_filter_update_data.rb | 1 - .../models/security_filter_update_request.rb | 1 - .../v2/models/security_filters_response.rb | 1 - .../v2/models/security_monitoring_filter.rb | 1 - ...security_monitoring_list_rules_response.rb | 1 - .../models/security_monitoring_rule_case.rb | 1 - .../security_monitoring_rule_case_create.rb | 1 - ...security_monitoring_rule_create_payload.rb | 1 - ...urity_monitoring_rule_new_value_options.rb | 1 - .../security_monitoring_rule_options.rb | 1 - .../models/security_monitoring_rule_query.rb | 1 - .../security_monitoring_rule_query_create.rb | 1 - .../security_monitoring_rule_response.rb | 1 - ...security_monitoring_rule_update_payload.rb | 4 +- .../v2/models/security_monitoring_signal.rb | 1 - .../security_monitoring_signal_attributes.rb | 1 - ...security_monitoring_signal_list_request.rb | 1 - ...y_monitoring_signal_list_request_filter.rb | 1 - ...ity_monitoring_signal_list_request_page.rb | 4 +- ...curity_monitoring_signals_list_response.rb | 1 - ..._monitoring_signals_list_response_links.rb | 1 - ...y_monitoring_signals_list_response_meta.rb | 1 - ...itoring_signals_list_response_meta_page.rb | 1 - .../service_account_create_attributes.rb | 1 - .../v2/models/service_account_create_data.rb | 1 - .../models/service_account_create_request.rb | 1 - lib/datadog_api_client/v2/models/user.rb | 1 - .../v2/models/user_attributes.rb | 1 - .../v2/models/user_create_attributes.rb | 1 - .../v2/models/user_create_data.rb | 1 - .../v2/models/user_create_request.rb | 1 - .../v2/models/user_invitation_data.rb | 1 - .../models/user_invitation_data_attributes.rb | 1 - .../models/user_invitation_relationships.rb | 1 - .../v2/models/user_invitation_response.rb | 1 - .../models/user_invitation_response_data.rb | 1 - .../v2/models/user_invitations_request.rb | 1 - .../v2/models/user_invitations_response.rb | 1 - .../v2/models/user_relationships.rb | 1 - .../v2/models/user_response.rb | 1 - .../v2/models/user_response_relationships.rb | 1 - .../v2/models/user_update_attributes.rb | 1 - .../v2/models/user_update_data.rb | 1 - .../v2/models/user_update_request.rb | 1 - .../v2/models/users_response.rb | 1 - 779 files changed, 314 insertions(+), 784 deletions(-) diff --git a/.generator/src/generator/templates/model_generic.j2 b/.generator/src/generator/templates/model_generic.j2 index de7b98e11e0..53516c75eec 100644 --- a/.generator/src/generator/templates/model_generic.j2 +++ b/.generator/src/generator/templates/model_generic.j2 @@ -83,13 +83,57 @@ def list_invalid_properties invalid_properties = Array.new {%- for attr, definition in model.get("properties", {}).items() %} -{%- if attr in model.get("required", []) %} + {%- set required = attr in model.get("required", []) %} + {%- if not definition.nullable and required %} if @{{ attr|attribute_name }}.nil? invalid_properties.push('invalid value for "{{ attr|attribute_name }}", {{ attr|attribute_name }} cannot be nil.') end -{%- endif %} -{%- endfor %} + {%- endif %} + {%- if definition.maxLength is defined %} + if {% if required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.to_s.length > {{ definition.maxLength }} + invalid_properties.push('invalid value for "{{ attr|attribute_name }}", the character length must be smaller than or equal to {{ definition.maxLength }}.') + end + + {%- endif %} + {%- if definition.minLength is defined %} + if {% if required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.to_s.length < {{ definition.minLength }} + invalid_properties.push('invalid value for "{{ attr|attribute_name }}", the character length must be great than or equal to {{ definition.minLength }}.') + end + + {%- endif %} + {%- if definition.maximum is defined %} + if {% if required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} >{% if definition.exclusiveMaximum %}={% endif %} {{ definition.maximum }} + invalid_properties.push('invalid value for "{{ attr|attribute_name }}", must be smaller than {% if not definition.exclusiveMaximum %}or equal to {% endif %}{{ definition.maximum }}.') + end + + {%- endif %} + {%- if definition.minimum is defined %} + if {% if required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} <{% if definition.exclusiveMinimum %}={% endif %} {{ definition.minimum }} + invalid_properties.push('invalid value for "{{ attr|attribute_name }}", must be greater than {% if not definition.exclusiveMinimum %}or equal to {% endif %}{{ definition.minimum }}.') + end + + {%- endif %} + {%- if definition.pattern is defined %} + pattern = Regexp.new({{ definition.pattern }}) + if {% if required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} !~ pattern + invalid_properties.push("invalid value for \"{{ attr|attribute_name }}\", must conform to the pattern #{pattern}.") + end + + {%- endif %} + {%- if definition.maxItems is defined %} + if {% if required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.length > {{ definition.maxItems }} + invalid_properties.push('invalid value for "{{ attr|attribute_name }}", number of items must be less than or equal to {{ definition.maxItems }}.') + end + + {%- endif %} + {%- if definition.minItems is defined %} + if {% if required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.length < {{ definition.minItems }} + invalid_properties.push('invalid value for "{{ attr|attribute_name }}", number of items must be greater than or equal to {{ definition.minItems }}.') + end + + {%- endif %} +{%- endfor %} invalid_properties end 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 9d91739ec17..ed5b4a09e00 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 @@ -146,7 +146,6 @@ def list_invalid_properties if @viz_type.nil? invalid_properties.push('invalid value for "viz_type", viz_type cannot be nil.') end - invalid_properties end 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 2434c9a773c..1d88550dcc0 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 @@ -152,7 +152,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 d46a971bb5a..0c7938d3fbb 100644 --- a/lib/datadog_api_client/v1/models/api_error_response.rb +++ b/lib/datadog_api_client/v1/models/api_error_response.rb @@ -86,7 +86,6 @@ def list_invalid_properties if @errors.nil? invalid_properties.push('invalid value for "errors", errors cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/api_key.rb b/lib/datadog_api_client/v1/models/api_key.rb index 986610d2952..72ac6324899 100644 --- a/lib/datadog_api_client/v1/models/api_key.rb +++ b/lib/datadog_api_client/v1/models/api_key.rb @@ -108,7 +108,12 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @key.to_s.length > 32 + invalid_properties.push('invalid value for "key", the character length must be smaller than or equal to 32.') + end + if @key.to_s.length < 32 + invalid_properties.push('invalid value for "key", the character length must be great than or equal to 32.') + end invalid_properties end 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 234e9da0cbb..7b50132036f 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 1a4752a780b..d5ae5e9e74a 100644 --- a/lib/datadog_api_client/v1/models/api_key_response.rb +++ b/lib/datadog_api_client/v1/models/api_key_response.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 6770e097b6b..662e711292c 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 @@ -111,7 +111,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 30b1081134d..65f87e9a74f 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 @@ -152,7 +152,6 @@ def list_invalid_properties if @service.nil? invalid_properties.push('invalid value for "service", service cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/application_key.rb b/lib/datadog_api_client/v1/models/application_key.rb index fd1c843c7f6..219bd183b5f 100644 --- a/lib/datadog_api_client/v1/models/application_key.rb +++ b/lib/datadog_api_client/v1/models/application_key.rb @@ -99,7 +99,12 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @hash.to_s.length > 40 + invalid_properties.push('invalid value for "hash", the character length must be smaller than or equal to 40.') + end + if @hash.to_s.length < 40 + invalid_properties.push('invalid value for "hash", the character length must be great than or equal to 40.') + end invalid_properties end 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 b4d7b66e390..03226179736 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 6834435eee5..708ff863d48 100644 --- a/lib/datadog_api_client/v1/models/application_key_response.rb +++ b/lib/datadog_api_client/v1/models/application_key_response.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 49123e84c94..a1687856707 100644 --- a/lib/datadog_api_client/v1/models/authentication_validation_response.rb +++ b/lib/datadog_api_client/v1/models/authentication_validation_response.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/aws_account.rb b/lib/datadog_api_client/v1/models/aws_account.rb index f8b73e40d2c..84dc4134875 100644 --- a/lib/datadog_api_client/v1/models/aws_account.rb +++ b/lib/datadog_api_client/v1/models/aws_account.rb @@ -191,7 +191,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 b657c83c1ca..3c03275c512 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 @@ -96,7 +96,6 @@ def list_invalid_properties if @lambda_arn.nil? invalid_properties.push('invalid value for "lambda_arn", lambda_arn cannot be nil.') end - invalid_properties end 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 3d225e817ce..07c86b70382 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 9ae07aa78a7..da00c6b419c 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 @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f976913156d..4e92e8d7282 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 fa590826321..a3bae2a9039 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 7aa9b00222f..2a2a4680eb1 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 d01626d95c6..bc982a45ea5 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_lambda.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_lambda.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 0cba885b893..898376b828a 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 @@ -103,7 +103,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 37284091078..f3e86ff2c40 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 ca73009ffd0..ebfeef5cbae 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 @@ -98,7 +98,6 @@ def list_invalid_properties if @services.nil? invalid_properties.push('invalid value for "services", services cannot be nil.') end - invalid_properties end 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 b05f1d2160e..3750296d96e 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 0660f4d29b8..8ba7db5a42f 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 @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 aeb05810d5c..5db75d502f8 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 51a86b03b4f..fa65037aa3b 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/azure_account.rb b/lib/datadog_api_client/v1/models/azure_account.rb index ca867eade1a..8ae5573a52c 100644 --- a/lib/datadog_api_client/v1/models/azure_account.rb +++ b/lib/datadog_api_client/v1/models/azure_account.rb @@ -147,7 +147,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 0c158441e03..215596b92ce 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 @@ -86,7 +86,6 @@ def list_invalid_properties if @scope.nil? invalid_properties.push('invalid value for "scope", scope cannot be nil.') end - invalid_properties end 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 efc9aa203ac..513ac7713d1 100644 --- a/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb +++ b/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 81f836e9a1f..61f76f00d32 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition.rb @@ -147,10 +147,15 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end + if !@requests.nil? && @requests.length > 1 + invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') + end + if !@requests.nil? && @requests.length < 1 + invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') + end if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 f62c5ae32f5..538e70a84e2 100644 --- a/lib/datadog_api_client/v1/models/change_widget_request.rb +++ b/lib/datadog_api_client/v1/models/change_widget_request.rb @@ -238,7 +238,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 96aac8585d3..c82c9fc5ea7 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 @@ -93,7 +93,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 a7efbae6991..94cbd6ff070 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 7a249d6d2c2..415d0e0a8ee 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 aaa18ca4f37..9b251ffd271 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 46c46c981cc..e527bdd86cd 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 @@ -177,7 +177,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/creator.rb b/lib/datadog_api_client/v1/models/creator.rb index 16a20ff4019..4cdf54f441d 100644 --- a/lib/datadog_api_client/v1/models/creator.rb +++ b/lib/datadog_api_client/v1/models/creator.rb @@ -100,7 +100,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/dashboard.rb b/lib/datadog_api_client/v1/models/dashboard.rb index db9395dac16..736c3fad876 100644 --- a/lib/datadog_api_client/v1/models/dashboard.rb +++ b/lib/datadog_api_client/v1/models/dashboard.rb @@ -245,7 +245,6 @@ def list_invalid_properties if @widgets.nil? invalid_properties.push('invalid value for "widgets", widgets cannot be nil.') end - invalid_properties end 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 aff53bdff6b..e100d4fd9a3 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 @@ -98,7 +98,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 8e91398ea53..01d0cd757a1 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 @@ -86,7 +86,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 7a55ce39c76..8a1503d310e 100644 --- a/lib/datadog_api_client/v1/models/dashboard_delete_response.rb +++ b/lib/datadog_api_client/v1/models/dashboard_delete_response.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/dashboard_list.rb b/lib/datadog_api_client/v1/models/dashboard_list.rb index 1bea302f5be..cca34082628 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list.rb @@ -147,7 +147,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 ccd4db46d13..b3d427364d6 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 88389481ddc..c957ace30ab 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 aedef22f2f9..27c4da5fcdb 100644 --- a/lib/datadog_api_client/v1/models/dashboard_restore_request.rb +++ b/lib/datadog_api_client/v1/models/dashboard_restore_request.rb @@ -86,7 +86,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/dashboard_summary.rb b/lib/datadog_api_client/v1/models/dashboard_summary.rb index b27e3a0829e..1f77f90d4b9 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f8a95662414..881304801ac 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb @@ -154,7 +154,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 c948290d933..74fe6abd566 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable.rb @@ -116,7 +116,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 40443ef40ef..c6f001fb281 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 9a3631a72b8..d99ba298ec5 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/deleted_monitor.rb b/lib/datadog_api_client/v1/models/deleted_monitor.rb index 4e633fd397a..cccbf18a4db 100644 --- a/lib/datadog_api_client/v1/models/deleted_monitor.rb +++ b/lib/datadog_api_client/v1/models/deleted_monitor.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 947de5c1c73..2700c0b0a65 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb @@ -185,10 +185,15 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end + if !@requests.nil? && @requests.length > 1 + invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') + end + if !@requests.nil? && @requests.length < 1 + invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') + end if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 2fefa55403e..fdde436ec4a 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_request.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_request.rb @@ -171,7 +171,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 47d5d754f28..2a09d56654e 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 @@ -114,7 +114,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a5974a959f0..174380a2945 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 @@ -123,7 +123,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/downtime.rb b/lib/datadog_api_client/v1/models/downtime.rb index 0d3db5bec7b..4a512fea6b6 100644 --- a/lib/datadog_api_client/v1/models/downtime.rb +++ b/lib/datadog_api_client/v1/models/downtime.rb @@ -251,7 +251,15 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @creator_id > 2147483647 + invalid_properties.push('invalid value for "creator_id", must be smaller than or equal to 2147483647.') + end + if @downtime_type > 2147483647 + invalid_properties.push('invalid value for "downtime_type", must be smaller than or equal to 2147483647.') + end + if @updater_id > 2147483647 + invalid_properties.push('invalid value for "updater_id", must be smaller than or equal to 2147483647.') + end invalid_properties end diff --git a/lib/datadog_api_client/v1/models/downtime_child.rb b/lib/datadog_api_client/v1/models/downtime_child.rb index f019f979ca6..4b04b333ec8 100644 --- a/lib/datadog_api_client/v1/models/downtime_child.rb +++ b/lib/datadog_api_client/v1/models/downtime_child.rb @@ -238,7 +238,15 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @creator_id > 2147483647 + invalid_properties.push('invalid value for "creator_id", must be smaller than or equal to 2147483647.') + end + if @downtime_type > 2147483647 + invalid_properties.push('invalid value for "downtime_type", must be smaller than or equal to 2147483647.') + end + if @updater_id > 2147483647 + invalid_properties.push('invalid value for "updater_id", must be smaller than or equal to 2147483647.') + end invalid_properties end diff --git a/lib/datadog_api_client/v1/models/downtime_recurrence.rb b/lib/datadog_api_client/v1/models/downtime_recurrence.rb index d6ebed19a46..f209caea580 100644 --- a/lib/datadog_api_client/v1/models/downtime_recurrence.rb +++ b/lib/datadog_api_client/v1/models/downtime_recurrence.rb @@ -140,7 +140,12 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @period > 2147483647 + invalid_properties.push('invalid value for "period", must be smaller than or equal to 2147483647.') + end + if @until_occurrences > 2147483647 + invalid_properties.push('invalid value for "until_occurrences", must be smaller than or equal to 2147483647.') + end invalid_properties end diff --git a/lib/datadog_api_client/v1/models/event.rb b/lib/datadog_api_client/v1/models/event.rb index 5c17cde30b5..eff9125e09c 100644 --- a/lib/datadog_api_client/v1/models/event.rb +++ b/lib/datadog_api_client/v1/models/event.rb @@ -199,7 +199,9 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @text.to_s.length > 4000 + invalid_properties.push('invalid value for "text", the character length must be smaller than or equal to 4000.') + end invalid_properties end 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 0fdb5a8e616..e93bd84509d 100644 --- a/lib/datadog_api_client/v1/models/event_create_request.rb +++ b/lib/datadog_api_client/v1/models/event_create_request.rb @@ -181,13 +181,18 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new + if @aggregation_key.to_s.length > 100 + invalid_properties.push('invalid value for "aggregation_key", the character length must be smaller than or equal to 100.') + end if @text.nil? invalid_properties.push('invalid value for "text", text cannot be nil.') end + if !@text.nil? && @text.to_s.length > 4000 + invalid_properties.push('invalid value for "text", the character length must be smaller than or equal to 4000.') + end if @title.nil? invalid_properties.push('invalid value for "title", title cannot be nil.') end - invalid_properties end 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 e1fdd30f5f2..7c56570d61f 100644 --- a/lib/datadog_api_client/v1/models/event_create_response.rb +++ b/lib/datadog_api_client/v1/models/event_create_response.rb @@ -206,7 +206,12 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @text.to_s.length > 4000 + invalid_properties.push('invalid value for "text", the character length must be smaller than or equal to 4000.') + end + if @title.to_s.length > 100 + invalid_properties.push('invalid value for "title", the character length must be smaller than or equal to 100.') + end invalid_properties end 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 dd258552ecb..e0b76282e90 100644 --- a/lib/datadog_api_client/v1/models/event_list_response.rb +++ b/lib/datadog_api_client/v1/models/event_list_response.rb @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 ec80c2ba410..68d98d5fc08 100644 --- a/lib/datadog_api_client/v1/models/event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/event_query_definition.rb @@ -96,7 +96,6 @@ def list_invalid_properties if @tags_execution.nil? invalid_properties.push('invalid value for "tags_execution", tags_execution cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/event_response.rb b/lib/datadog_api_client/v1/models/event_response.rb index bc7bb86ba59..66bbd512fd1 100644 --- a/lib/datadog_api_client/v1/models/event_response.rb +++ b/lib/datadog_api_client/v1/models/event_response.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8a26bdc8acc..b40029a8c04 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 @@ -153,7 +153,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 38abb0c9194..f5e076dfa12 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 @@ -143,7 +143,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 b83be42b9c7..1197c870b15 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 @@ -183,7 +183,6 @@ def list_invalid_properties if @stat.nil? invalid_properties.push('invalid value for "stat", stat cannot be nil.') end - invalid_properties end 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 549dda54a8f..68b8d78954b 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 @@ -179,7 +179,6 @@ def list_invalid_properties if @stat.nil? invalid_properties.push('invalid value for "stat", stat cannot be nil.') end - invalid_properties end 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 6b976fb8d32..a154fdda0d8 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 @@ -139,7 +139,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 4813075a353..c34d587fce0 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 @@ -102,7 +102,6 @@ def list_invalid_properties if @aggregation.nil? invalid_properties.push('invalid value for "aggregation", aggregation cannot be nil.') end - invalid_properties end 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 f1c791f9f24..a41a74f2198 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end - invalid_properties end 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 9d3785df7a6..952db82fdf0 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 @@ -102,7 +102,6 @@ def list_invalid_properties if @facet.nil? invalid_properties.push('invalid value for "facet", facet cannot be nil.') end - invalid_properties end 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 5915c933d29..cd94a0f2674 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 @@ -104,7 +104,6 @@ def list_invalid_properties if @aggregation.nil? invalid_properties.push('invalid value for "aggregation", aggregation cannot be nil.') end - invalid_properties end 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 651432a9204..57f307dbae3 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 @@ -117,7 +117,6 @@ def list_invalid_properties if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end - invalid_properties end 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 541820900f2..1d1e949da05 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 @@ -166,7 +166,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 4f5e32df4b3..7a5193c2525 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 @@ -125,7 +125,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/funnel_query.rb b/lib/datadog_api_client/v1/models/funnel_query.rb index 4d290d9d30b..771c7c473d1 100644 --- a/lib/datadog_api_client/v1/models/funnel_query.rb +++ b/lib/datadog_api_client/v1/models/funnel_query.rb @@ -112,7 +112,6 @@ def list_invalid_properties if @steps.nil? invalid_properties.push('invalid value for "steps", steps cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb index 7dfd675b2c7..044400a968b 100644 --- a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb +++ b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb @@ -96,7 +96,6 @@ def list_invalid_properties if @value.nil? invalid_properties.push('invalid value for "value", value cannot be nil.') end - invalid_properties end 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 c2b599d18fe..f378109d8eb 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb @@ -133,10 +133,15 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end + if !@requests.nil? && @requests.length > 1 + invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') + end + if !@requests.nil? && @requests.length < 1 + invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') + end if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 751925ed784..572bf5784e4 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_request.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_request.rb @@ -96,7 +96,6 @@ def list_invalid_properties if @request_type.nil? invalid_properties.push('invalid value for "request_type", request_type cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/gcp_account.rb b/lib/datadog_api_client/v1/models/gcp_account.rb index 34f2bcd1c06..090648e8f77 100644 --- a/lib/datadog_api_client/v1/models/gcp_account.rb +++ b/lib/datadog_api_client/v1/models/gcp_account.rb @@ -193,7 +193,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 0697d6138fd..020f73ba14d 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb @@ -165,6 +165,12 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end + if !@requests.nil? && @requests.length > 1 + invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') + end + if !@requests.nil? && @requests.length < 1 + invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') + end if @style.nil? invalid_properties.push('invalid value for "style", style cannot be nil.') end @@ -174,7 +180,6 @@ def list_invalid_properties if @view.nil? invalid_properties.push('invalid value for "view", view cannot be nil.') end - invalid_properties end 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 af52e050a5b..b42aec0e402 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 @@ -96,7 +96,6 @@ def list_invalid_properties if @palette_flip.nil? invalid_properties.push('invalid value for "palette_flip", palette_flip cannot be nil.') end - invalid_properties end 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 0afa6c2379b..68135df35a6 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @focus.nil? invalid_properties.push('invalid value for "focus", focus cannot be nil.') end - invalid_properties end 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 89a28d5c801..407a09a051c 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_request.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_request.rb @@ -139,7 +139,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/graph_snapshot.rb b/lib/datadog_api_client/v1/models/graph_snapshot.rb index ce89d2e897e..d7870839231 100644 --- a/lib/datadog_api_client/v1/models/graph_snapshot.rb +++ b/lib/datadog_api_client/v1/models/graph_snapshot.rb @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f8eb4d96e7c..816ed5b61ba 100644 --- a/lib/datadog_api_client/v1/models/group_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/group_widget_definition.rb @@ -159,7 +159,6 @@ def list_invalid_properties if @widgets.nil? invalid_properties.push('invalid value for "widgets", widgets cannot be nil.') end - invalid_properties end 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 e4bd345be8b..815d20135e6 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 @@ -182,10 +182,15 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end + if !@requests.nil? && @requests.length > 1 + invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') + end + if !@requests.nil? && @requests.length < 1 + invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') + end if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 f9fbb664883..d0770bab663 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 @@ -162,7 +162,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/host.rb b/lib/datadog_api_client/v1/models/host.rb index 52f7815c0e9..9143f7d3bca 100644 --- a/lib/datadog_api_client/v1/models/host.rb +++ b/lib/datadog_api_client/v1/models/host.rb @@ -204,7 +204,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f63392e75f1..0940dd68158 100644 --- a/lib/datadog_api_client/v1/models/host_list_response.rb +++ b/lib/datadog_api_client/v1/models/host_list_response.rb @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 773a6bdf7ab..c6dd3a8627d 100644 --- a/lib/datadog_api_client/v1/models/host_map_request.rb +++ b/lib/datadog_api_client/v1/models/host_map_request.rb @@ -153,7 +153,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 941a04d3c28..2ab9bc3661a 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 @@ -203,7 +203,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 0827ab7877f..eec945a47b8 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 d91e6cc8949..0a669e5e455 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 @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/host_meta.rb b/lib/datadog_api_client/v1/models/host_meta.rb index a7b543f9742..2cfd306e118 100644 --- a/lib/datadog_api_client/v1/models/host_meta.rb +++ b/lib/datadog_api_client/v1/models/host_meta.rb @@ -217,7 +217,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8117414da32..f5906107a95 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 @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/host_metrics.rb b/lib/datadog_api_client/v1/models/host_metrics.rb index 638980b21bb..bd3215d07c5 100644 --- a/lib/datadog_api_client/v1/models/host_metrics.rb +++ b/lib/datadog_api_client/v1/models/host_metrics.rb @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 bbcaa969664..ab32d7ebc4e 100644 --- a/lib/datadog_api_client/v1/models/host_mute_response.rb +++ b/lib/datadog_api_client/v1/models/host_mute_response.rb @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 ec3c55d4718..c66bf80e51f 100644 --- a/lib/datadog_api_client/v1/models/host_mute_settings.rb +++ b/lib/datadog_api_client/v1/models/host_mute_settings.rb @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/host_tags.rb b/lib/datadog_api_client/v1/models/host_tags.rb index 53939fdfa06..459ab68c423 100644 --- a/lib/datadog_api_client/v1/models/host_tags.rb +++ b/lib/datadog_api_client/v1/models/host_tags.rb @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/host_totals.rb b/lib/datadog_api_client/v1/models/host_totals.rb index 178217b417f..1824bf1391c 100644 --- a/lib/datadog_api_client/v1/models/host_totals.rb +++ b/lib/datadog_api_client/v1/models/host_totals.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 2c2fc8300f7..891b2e249c7 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 @@ -144,7 +144,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 61e97b44c5e..2b1622adb80 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 ef067f1021e..ecb610137bc 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 0d63f6446f8..0bdfa7e22c3 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 c4fc7d22374..a059ef1e739 100644 --- a/lib/datadog_api_client/v1/models/http_log_error.rb +++ b/lib/datadog_api_client/v1/models/http_log_error.rb @@ -93,10 +93,12 @@ def list_invalid_properties if @code.nil? invalid_properties.push('invalid value for "code", code cannot be nil.') end + if !@code.nil? && @code > 2147483647 + invalid_properties.push('invalid value for "code", must be smaller than or equal to 2147483647.') + end if @message.nil? invalid_properties.push('invalid value for "message", message cannot be nil.') end - invalid_properties end 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 1fe560b3e39..a75943df53c 100644 --- a/lib/datadog_api_client/v1/models/http_log_item.rb +++ b/lib/datadog_api_client/v1/models/http_log_item.rb @@ -123,7 +123,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 b3911c2a415..64f3deb2f8b 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 @@ -98,7 +98,6 @@ def list_invalid_properties if @url.nil? invalid_properties.push('invalid value for "url", url cannot be nil.') end - invalid_properties end 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 46d75200c38..80a067a20f3 100644 --- a/lib/datadog_api_client/v1/models/idp_form_data.rb +++ b/lib/datadog_api_client/v1/models/idp_form_data.rb @@ -84,7 +84,6 @@ def list_invalid_properties if @idp_file.nil? invalid_properties.push('invalid value for "idp_file", idp_file cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/idp_response.rb b/lib/datadog_api_client/v1/models/idp_response.rb index f089357ad09..8a924717225 100644 --- a/lib/datadog_api_client/v1/models/idp_response.rb +++ b/lib/datadog_api_client/v1/models/idp_response.rb @@ -84,7 +84,6 @@ def list_invalid_properties if @message.nil? invalid_properties.push('invalid value for "message", message cannot be nil.') end - invalid_properties end 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 e9128b0c5ad..d0858108d96 100644 --- a/lib/datadog_api_client/v1/models/image_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/image_widget_definition.rb @@ -167,7 +167,6 @@ def list_invalid_properties if @url.nil? invalid_properties.push('invalid value for "url", url cannot be nil.') end - invalid_properties end 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 d9c57b46b13..9735de2790c 100644 --- a/lib/datadog_api_client/v1/models/intake_payload_accepted.rb +++ b/lib/datadog_api_client/v1/models/intake_payload_accepted.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a0f704e9636..ea93207d585 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb @@ -94,7 +94,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 5ccb21a123f..8ee4ff183ad 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_api.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_api.rb @@ -94,7 +94,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 82c7cb3a8e2..7887276e513 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb @@ -94,7 +94,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 372aeee9124..ed081f7062b 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb @@ -94,7 +94,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 e75aeefc62c..bcbe70a206a 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_process.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_process.rb @@ -94,7 +94,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 5746bb961e4..cc5d4b54ffa 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb @@ -112,7 +112,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 7b8aac5a8cf..451edfb452a 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb @@ -94,7 +94,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/ip_ranges.rb b/lib/datadog_api_client/v1/models/ip_ranges.rb index b15c9f0b5a4..e1cdc93182b 100644 --- a/lib/datadog_api_client/v1/models/ip_ranges.rb +++ b/lib/datadog_api_client/v1/models/ip_ranges.rb @@ -153,7 +153,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 be3ad93ba6f..532e160ec50 100644 --- a/lib/datadog_api_client/v1/models/list_stream_column.rb +++ b/lib/datadog_api_client/v1/models/list_stream_column.rb @@ -96,7 +96,6 @@ def list_invalid_properties if @width.nil? invalid_properties.push('invalid value for "width", width cannot be nil.') end - invalid_properties end 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 f56cdbca949..b39c938877b 100644 --- a/lib/datadog_api_client/v1/models/list_stream_query.rb +++ b/lib/datadog_api_client/v1/models/list_stream_query.rb @@ -109,7 +109,6 @@ def list_invalid_properties if @query_string.nil? invalid_properties.push('invalid value for "query_string", query_string cannot be nil.') end - invalid_properties end 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 7bc7d97dc71..6e7e3880245 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 @@ -152,10 +152,15 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end + if !@requests.nil? && @requests.length > 1 + invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') + end + if !@requests.nil? && @requests.length < 1 + invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') + end if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 302575d98b9..369f1ac7abf 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 @@ -110,7 +110,6 @@ def list_invalid_properties if @response_format.nil? invalid_properties.push('invalid value for "response_format", response_format cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/log.rb b/lib/datadog_api_client/v1/models/log.rb index 3b2d5b6d5f4..e188a91332b 100644 --- a/lib/datadog_api_client/v1/models/log.rb +++ b/lib/datadog_api_client/v1/models/log.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/log_content.rb b/lib/datadog_api_client/v1/models/log_content.rb index 37d27736046..083f0c2373a 100644 --- a/lib/datadog_api_client/v1/models/log_content.rb +++ b/lib/datadog_api_client/v1/models/log_content.rb @@ -130,7 +130,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 9376f8a258c..376fc6e2bcf 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition.rb @@ -121,7 +121,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 15c9bd651d6..1abc1934717 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 @@ -102,7 +102,6 @@ def list_invalid_properties if @facet.nil? invalid_properties.push('invalid value for "facet", facet cannot be nil.') end - invalid_properties end 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 a4e3aafa934..e0ce8aff5d3 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 @@ -105,7 +105,6 @@ def list_invalid_properties if @order.nil? invalid_properties.push('invalid value for "order", order cannot be nil.') end - invalid_properties end 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 bdf3ba0e4bb..95ae9dc7190 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end - invalid_properties end 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 c0140b81025..37cc2262d49 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 @@ -198,7 +198,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 6483cf15fe2..387809ec5ef 100644 --- a/lib/datadog_api_client/v1/models/logs_api_error.rb +++ b/lib/datadog_api_client/v1/models/logs_api_error.rb @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 6a39f89f932..719e542eb18 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a331692eefa..9c9743c8829 100644 --- a/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb @@ -162,7 +162,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 93062c0a7d0..b520cbc4703 100644 --- a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb @@ -189,7 +189,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 65bd0b7929f..3eccf1db2b6 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention.rb @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 79ec47834ec..06d9afc28e7 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a91835d39d2..5a62c461083 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 05ea0944384..6a1226af917 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 6edc8c234e6..376bcedd6d1 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor.rb @@ -145,7 +145,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 051db3871ee..544743d3942 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 dacc0a18785..666ff00e350 100644 --- a/lib/datadog_api_client/v1/models/logs_date_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_date_remapper.rb @@ -138,7 +138,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/logs_exclusion.rb b/lib/datadog_api_client/v1/models/logs_exclusion.rb index db637b0e1c9..c762bbc3859 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion.rb @@ -102,7 +102,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 fcd1ce19608..8c2a53bd4be 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb @@ -95,7 +95,6 @@ def list_invalid_properties if @sample_rate.nil? invalid_properties.push('invalid value for "sample_rate", sample_rate cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/logs_filter.rb b/lib/datadog_api_client/v1/models/logs_filter.rb index 97c2e641376..013d6f7b1de 100644 --- a/lib/datadog_api_client/v1/models/logs_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_filter.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 2224c826eed..5b4fc9358ca 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 @@ -137,7 +137,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 ddd3670bddd..0d7a1eec5de 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser.rb @@ -138,13 +138,15 @@ def list_invalid_properties if @grok.nil? invalid_properties.push('invalid value for "grok", grok cannot be nil.') end + if @samples.length > 5 + invalid_properties.push('invalid value for "samples", number of items must be less than or equal to 5.') + end if @source.nil? invalid_properties.push('invalid value for "source", source cannot be nil.') end if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 dbaf4081ed5..6b8b8e066d6 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 @@ -95,7 +95,6 @@ def list_invalid_properties if @match_rules.nil? invalid_properties.push('invalid value for "match_rules", match_rules cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/logs_index.rb b/lib/datadog_api_client/v1/models/logs_index.rb index da8989914d6..ac5f4ec2911 100644 --- a/lib/datadog_api_client/v1/models/logs_index.rb +++ b/lib/datadog_api_client/v1/models/logs_index.rb @@ -138,7 +138,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 c97522bc01e..901e5d4000d 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 969388c180d..e7911473408 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 @@ -130,7 +130,6 @@ def list_invalid_properties if @filter.nil? invalid_properties.push('invalid value for "filter", filter cannot be nil.') end - invalid_properties end 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 66d757822b1..b97b9cb2722 100644 --- a/lib/datadog_api_client/v1/models/logs_indexes_order.rb +++ b/lib/datadog_api_client/v1/models/logs_indexes_order.rb @@ -88,7 +88,6 @@ def list_invalid_properties if @index_names.nil? invalid_properties.push('invalid value for "index_names", index_names cannot be nil.') end - invalid_properties end 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 6ca91944827..98649d93cbe 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request.rb @@ -131,10 +131,12 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new + if @limit > 1000 + invalid_properties.push('invalid value for "limit", must be smaller than or equal to 1000.') + end if @time.nil? invalid_properties.push('invalid value for "time", time cannot be nil.') end - invalid_properties end 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 0d4735fcff3..11e7283391e 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 @@ -106,7 +106,6 @@ def list_invalid_properties if @to.nil? invalid_properties.push('invalid value for "to", to cannot be nil.') end - invalid_properties end 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 dc7b96bcad3..fe1caaa06d0 100644 --- a/lib/datadog_api_client/v1/models/logs_list_response.rb +++ b/lib/datadog_api_client/v1/models/logs_list_response.rb @@ -102,7 +102,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 603ffd0f77c..ec686f61a14 100644 --- a/lib/datadog_api_client/v1/models/logs_lookup_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_lookup_processor.rb @@ -160,7 +160,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 1b8ca6347cd..f16dd866013 100644 --- a/lib/datadog_api_client/v1/models/logs_message_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_message_remapper.rb @@ -127,7 +127,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/logs_pipeline.rb b/lib/datadog_api_client/v1/models/logs_pipeline.rb index 56310b75b48..1abae4d702b 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline.rb @@ -144,7 +144,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 1b178c20164..48ada0f73e6 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb @@ -130,7 +130,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 9f53dad3207..b3a43ead481 100644 --- a/lib/datadog_api_client/v1/models/logs_pipelines_order.rb +++ b/lib/datadog_api_client/v1/models/logs_pipelines_order.rb @@ -87,7 +87,6 @@ def list_invalid_properties if @pipeline_ids.nil? invalid_properties.push('invalid value for "pipeline_ids", pipeline_ids cannot be nil.') end - invalid_properties end 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 f90bcd69ab9..0f0fac44f43 100644 --- a/lib/datadog_api_client/v1/models/logs_query_compute.rb +++ b/lib/datadog_api_client/v1/models/logs_query_compute.rb @@ -102,7 +102,6 @@ def list_invalid_properties if @aggregation.nil? invalid_properties.push('invalid value for "aggregation", aggregation cannot be nil.') end - invalid_properties end 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 13dc0e4b417..2f506ee7592 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 @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 be04848e8ed..49c2e6bc46a 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 @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 43b1b5517f1..457b01aa394 100644 --- a/lib/datadog_api_client/v1/models/logs_service_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_service_remapper.rb @@ -123,7 +123,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 eeb06946bf5..b6fc7ca17fc 100644 --- a/lib/datadog_api_client/v1/models/logs_status_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_status_remapper.rb @@ -137,7 +137,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 11d7d3ed857..622e83e8404 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 @@ -154,7 +154,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 ba2015ac25d..950cf2c5c8a 100644 --- a/lib/datadog_api_client/v1/models/logs_trace_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_trace_remapper.rb @@ -124,7 +124,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 9bfaf79e37b..2330b24d89d 100644 --- a/lib/datadog_api_client/v1/models/logs_url_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_url_parser.rb @@ -148,7 +148,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 d3e0554137e..9280a637a14 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 @@ -148,7 +148,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/metric_metadata.rb b/lib/datadog_api_client/v1/models/metric_metadata.rb index e4d33dd0f3a..77f87cfdf1d 100644 --- a/lib/datadog_api_client/v1/models/metric_metadata.rb +++ b/lib/datadog_api_client/v1/models/metric_metadata.rb @@ -135,7 +135,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 330d27ab8e1..c38f571e642 100644 --- a/lib/datadog_api_client/v1/models/metric_search_response.rb +++ b/lib/datadog_api_client/v1/models/metric_search_response.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a3f355e1f58..a885c68fbda 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 1af4312acdb..884e222a539 100644 --- a/lib/datadog_api_client/v1/models/metrics_list_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_list_response.rb @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/metrics_payload.rb b/lib/datadog_api_client/v1/models/metrics_payload.rb index 5f0f52afab3..05ece9e4e28 100644 --- a/lib/datadog_api_client/v1/models/metrics_payload.rb +++ b/lib/datadog_api_client/v1/models/metrics_payload.rb @@ -86,7 +86,6 @@ def list_invalid_properties if @series.nil? invalid_properties.push('invalid value for "series", series cannot be nil.') end - invalid_properties end 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 c2de61f55f2..ce488cbfc5b 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_metadata.rb @@ -198,7 +198,12 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @unit.length > 2 + invalid_properties.push('invalid value for "unit", number of items must be less than or equal to 2.') + end + if @unit.length < 2 + invalid_properties.push('invalid value for "unit", number of items must be greater than or equal to 2.') + end invalid_properties end 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 e3679ba4f2a..fc50371aaec 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_response.rb @@ -157,7 +157,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a755bca4625..e71b6291134 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_unit.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_unit.rb @@ -117,7 +117,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/monitor.rb b/lib/datadog_api_client/v1/models/monitor.rb index 828678a228b..66ab912773a 100644 --- a/lib/datadog_api_client/v1/models/monitor.rb +++ b/lib/datadog_api_client/v1/models/monitor.rb @@ -223,13 +223,18 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new + if @priority > 5 + invalid_properties.push('invalid value for "priority", must be smaller than or equal to 5.') + end + if @priority < 1 + invalid_properties.push('invalid value for "priority", must be greater than or equal to 1.') + end if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 e7f7dbab688..937692455d6 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 @@ -139,7 +139,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 b17182669f8..6eece4ded4e 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 @@ -102,7 +102,6 @@ def list_invalid_properties if @aggregation.nil? invalid_properties.push('invalid value for "aggregation", aggregation cannot be nil.') end - invalid_properties end 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 e8cadc3f05d..58a9adc6ac1 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end - invalid_properties end 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 bf87299b332..c3df1af4f88 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 @@ -102,7 +102,6 @@ def list_invalid_properties if @facet.nil? invalid_properties.push('invalid value for "facet", facet cannot be nil.') end - invalid_properties end 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 e519ed5a381..278dbc51c92 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 @@ -104,7 +104,6 @@ def list_invalid_properties if @aggregation.nil? invalid_properties.push('invalid value for "aggregation", aggregation cannot be nil.') end - invalid_properties end 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 2a4fee4faeb..86ed972eacc 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 @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 d83d0c35b70..5507b32accb 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 @@ -94,7 +94,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb index 6d6a3b46afb..7d6625af15d 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb index d97a8f0c234..cbdad2cc91c 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8b8ec426988..6c87ab487de 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 @@ -138,7 +138,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/monitor_options.rb b/lib/datadog_api_client/v1/models/monitor_options.rb index 16719846378..c9dcd02efdb 100644 --- a/lib/datadog_api_client/v1/models/monitor_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_options.rb @@ -356,7 +356,12 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @min_failure_duration > 7200 + invalid_properties.push('invalid value for "min_failure_duration", must be smaller than or equal to 7200.') + end + if @min_failure_duration < 0 + invalid_properties.push('invalid value for "min_failure_duration", must be greater than or equal to 0.') + end invalid_properties end 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 56817e5ed79..0d270f3980b 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 54470d5cf93..62f5a803874 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response.rb @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a77656eb2a7..e8e86ab6f1b 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 @@ -116,7 +116,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb index beb9c1cf1e5..51a3642aeae 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb index d7a90ab5b29..727ad0210f8 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb index e3890fe54f1..53020f1e819 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb index 39fa156d600..73ea46ff46f 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 97fa80b3669..51d1f3c2f1b 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 @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8ba9178822d..c6a9d6bd22e 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_result.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_result.rb @@ -201,7 +201,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 d25894469fc..07df260257b 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/monitor_state.rb b/lib/datadog_api_client/v1/models/monitor_state.rb index 0d4de005cb5..13856207b05 100644 --- a/lib/datadog_api_client/v1/models/monitor_state.rb +++ b/lib/datadog_api_client/v1/models/monitor_state.rb @@ -82,7 +82,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 02fce949f91..91e1a9fb126 100644 --- a/lib/datadog_api_client/v1/models/monitor_state_group.rb +++ b/lib/datadog_api_client/v1/models/monitor_state_group.rb @@ -126,7 +126,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 032fda4f13a..217b196a4b9 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 @@ -197,7 +197,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 1a886dc01ab..0cf469289f4 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/monitor_thresholds.rb b/lib/datadog_api_client/v1/models/monitor_thresholds.rb index 316195c009d..33ddcce6601 100644 --- a/lib/datadog_api_client/v1/models/monitor_thresholds.rb +++ b/lib/datadog_api_client/v1/models/monitor_thresholds.rb @@ -131,7 +131,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 2d1c6b18223..0c2f6931a9e 100644 --- a/lib/datadog_api_client/v1/models/monitor_update_request.rb +++ b/lib/datadog_api_client/v1/models/monitor_update_request.rb @@ -221,7 +221,12 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @priority > 5 + invalid_properties.push('invalid value for "priority", must be smaller than or equal to 5.') + end + if @priority < 1 + invalid_properties.push('invalid value for "priority", must be greater than or equal to 1.') + end invalid_properties end 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 f8ada5517f1..65d0ccfe701 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 @@ -135,7 +135,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a632ae4f566..77b171fc99f 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 5743e983a8b..6615da36b6c 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 24dabbedcbb..2967d728413 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 e6b7045a361..59ee20a4aca 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 @@ -324,7 +324,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8f37696cff5..a8be9241b18 100644 --- a/lib/datadog_api_client/v1/models/note_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/note_widget_definition.rb @@ -172,7 +172,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 01ab2d7b412..1f3ed93e24f 100644 --- a/lib/datadog_api_client/v1/models/notebook_absolute_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_absolute_time.rb @@ -105,7 +105,6 @@ def list_invalid_properties if @start.nil? invalid_properties.push('invalid value for "start", start cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/notebook_author.rb b/lib/datadog_api_client/v1/models/notebook_author.rb index db2cad57973..b6d0d934c0a 100644 --- a/lib/datadog_api_client/v1/models/notebook_author.rb +++ b/lib/datadog_api_client/v1/models/notebook_author.rb @@ -155,7 +155,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 7b271537502..054133ba364 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,7 +99,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 9c73b23ec57..803a5a48011 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_response.rb @@ -111,7 +111,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 ece9a390fc8..f16f17257da 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 @@ -111,7 +111,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 aa33bb523bc..db1e1d34291 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_data.rb @@ -98,7 +98,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 5aa35de6a33..ee7693c1ba7 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 @@ -127,10 +127,15 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end + if !@name.nil? && @name.to_s.length > 80 + invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 80.') + end + if !@name.nil? && @name.to_s.length < 0 + invalid_properties.push('invalid value for "name", the character length must be great than or equal to 0.') + end if @time.nil? invalid_properties.push('invalid value for "time", time cannot be nil.') end - invalid_properties end 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 bf363b1523d..86fb70dfd16 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_request.rb @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 cbea831b7db..68fd68b92f6 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 @@ -114,7 +114,6 @@ def list_invalid_properties if @definition.nil? invalid_properties.push('invalid value for "definition", definition cannot be nil.') end - invalid_properties end 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 711e06cd19a..ee3d66660db 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 @@ -112,7 +112,6 @@ def list_invalid_properties if @definition.nil? invalid_properties.push('invalid value for "definition", definition cannot be nil.') end - invalid_properties end 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 5279dd2e005..3f9940ceafc 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 @@ -103,7 +103,6 @@ def list_invalid_properties if @definition.nil? invalid_properties.push('invalid value for "definition", definition cannot be nil.') end - invalid_properties end 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 cb48529d658..44b7990b587 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @definition.nil? invalid_properties.push('invalid value for "definition", definition cannot be nil.') end - invalid_properties end 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 293ea940bf3..575aaf2e0c0 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 @@ -98,7 +98,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/notebook_metadata.rb b/lib/datadog_api_client/v1/models/notebook_metadata.rb index 609e86f5c88..8840dc924d7 100644 --- a/lib/datadog_api_client/v1/models/notebook_metadata.rb +++ b/lib/datadog_api_client/v1/models/notebook_metadata.rb @@ -104,7 +104,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 89f5fee8499..9978e676e30 100644 --- a/lib/datadog_api_client/v1/models/notebook_relative_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_relative_time.rb @@ -84,7 +84,6 @@ def list_invalid_properties if @live_span.nil? invalid_properties.push('invalid value for "live_span", live_span cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/notebook_response.rb b/lib/datadog_api_client/v1/models/notebook_response.rb index 1c3a0e7eb9e..e7ed2f8cb2e 100644 --- a/lib/datadog_api_client/v1/models/notebook_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_response.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 0c616d6acfd..76f6e6785cc 100644 --- a/lib/datadog_api_client/v1/models/notebook_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_response_data.rb @@ -110,7 +110,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 19fd8378f05..0d495c49b07 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 @@ -154,10 +154,15 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end + if !@name.nil? && @name.to_s.length > 80 + invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 80.') + end + if !@name.nil? && @name.to_s.length < 0 + invalid_properties.push('invalid value for "name", the character length must be great than or equal to 0.') + end if @time.nil? invalid_properties.push('invalid value for "time", time cannot be nil.') end - invalid_properties end 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 4ad477d189b..f3bac201f96 100644 --- a/lib/datadog_api_client/v1/models/notebook_split_by.rb +++ b/lib/datadog_api_client/v1/models/notebook_split_by.rb @@ -100,7 +100,6 @@ def list_invalid_properties if @tags.nil? invalid_properties.push('invalid value for "tags", tags cannot be nil.') end - invalid_properties end 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 2f749affe60..f36c539f77f 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 @@ -112,7 +112,6 @@ def list_invalid_properties if @definition.nil? invalid_properties.push('invalid value for "definition", definition cannot be nil.') end - invalid_properties end 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 9485df49dd8..2cd467a6f11 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 @@ -112,7 +112,6 @@ def list_invalid_properties if @definition.nil? invalid_properties.push('invalid value for "definition", definition cannot be nil.') end - invalid_properties end 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 4e623a87767..6d1fbe08180 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_data.rb @@ -98,7 +98,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 bc6c15f0662..1820be9b59f 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 @@ -127,10 +127,15 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end + if !@name.nil? && @name.to_s.length > 80 + invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 80.') + end + if !@name.nil? && @name.to_s.length < 0 + invalid_properties.push('invalid value for "name", the character length must be great than or equal to 0.') + end if @time.nil? invalid_properties.push('invalid value for "time", time cannot be nil.') end - invalid_properties end 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 d42e585af73..e67adb2f512 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_request.rb @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/notebooks_response.rb b/lib/datadog_api_client/v1/models/notebooks_response.rb index 9f1707a1f2d..ffd62c86f6b 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response.rb @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 0a42d101bf9..f1916731a8c 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_data.rb @@ -110,7 +110,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 907b1a250ed..05d2346cb6b 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 @@ -151,7 +151,12 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - + if !@name.nil? && @name.to_s.length > 80 + invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 80.') + end + if !@name.nil? && @name.to_s.length < 0 + invalid_properties.push('invalid value for "name", the character length must be great than or equal to 0.') + end invalid_properties end 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 bb7ca233132..32c3f5e4b51 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_meta.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_meta.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 353dfea046a..ef51fa1e509 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_page.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_page.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/organization.rb b/lib/datadog_api_client/v1/models/organization.rb index c9bf932a9f5..683180db194 100644 --- a/lib/datadog_api_client/v1/models/organization.rb +++ b/lib/datadog_api_client/v1/models/organization.rb @@ -135,7 +135,9 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @name > 32 + invalid_properties.push('invalid value for "name", must be smaller than or equal to 32.') + end invalid_properties end diff --git a/lib/datadog_api_client/v1/models/organization_billing.rb b/lib/datadog_api_client/v1/models/organization_billing.rb index 6acb21505c5..0bec5804f4f 100644 --- a/lib/datadog_api_client/v1/models/organization_billing.rb +++ b/lib/datadog_api_client/v1/models/organization_billing.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 6ce33b5f1f9..08b989fb421 100644 --- a/lib/datadog_api_client/v1/models/organization_create_body.rb +++ b/lib/datadog_api_client/v1/models/organization_create_body.rb @@ -102,7 +102,9 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - + if !@name.nil? && @name > 32 + invalid_properties.push('invalid value for "name", must be smaller than or equal to 32.') + end invalid_properties end 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 5b2797663b4..7cb4eb66f04 100644 --- a/lib/datadog_api_client/v1/models/organization_create_response.rb +++ b/lib/datadog_api_client/v1/models/organization_create_response.rb @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 b1ffdabb89c..53f33cffa34 100644 --- a/lib/datadog_api_client/v1/models/organization_list_response.rb +++ b/lib/datadog_api_client/v1/models/organization_list_response.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/organization_response.rb b/lib/datadog_api_client/v1/models/organization_response.rb index 995350a969c..7a14a0a7bdd 100644 --- a/lib/datadog_api_client/v1/models/organization_response.rb +++ b/lib/datadog_api_client/v1/models/organization_response.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/organization_settings.rb b/lib/datadog_api_client/v1/models/organization_settings.rb index e2397dddd4b..3aec6e8ef40 100644 --- a/lib/datadog_api_client/v1/models/organization_settings.rb +++ b/lib/datadog_api_client/v1/models/organization_settings.rb @@ -165,7 +165,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a1f38996ced..fc89a3081cb 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml.rb @@ -82,7 +82,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 b7184d82829..3a2c3eefc2a 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 d2595ccc1ca..73cdca90dfa 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 @@ -82,7 +82,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 1c05f2e4beb..1f4c2649f06 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 @@ -82,7 +82,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/organization_subscription.rb b/lib/datadog_api_client/v1/models/organization_subscription.rb index bf04ba176eb..aba3772f26c 100644 --- a/lib/datadog_api_client/v1/models/organization_subscription.rb +++ b/lib/datadog_api_client/v1/models/organization_subscription.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 c307ae6618e..b507b5741da 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service.rb @@ -96,7 +96,6 @@ def list_invalid_properties if @service_name.nil? invalid_properties.push('invalid value for "service_name", service_name cannot be nil.') end - invalid_properties end 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 b8123adc562..f00a0b2629b 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @service_key.nil? invalid_properties.push('invalid value for "service_key", service_key cannot be nil.') end - invalid_properties end 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 acaa0c4d7ec..c8c10f487d3 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @service_name.nil? invalid_properties.push('invalid value for "service_name", service_name cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/pagination.rb b/lib/datadog_api_client/v1/models/pagination.rb index 62a93ffb946..8ab45c49c91 100644 --- a/lib/datadog_api_client/v1/models/pagination.rb +++ b/lib/datadog_api_client/v1/models/pagination.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 009f14d9d95..b7f73c09aec 100644 --- a/lib/datadog_api_client/v1/models/process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/process_query_definition.rb @@ -110,10 +110,12 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new + if @limit < 0 + invalid_properties.push('invalid value for "limit", must be greater than or equal to 0.') + end if @metric.nil? invalid_properties.push('invalid value for "metric", metric cannot be nil.') end - invalid_properties end 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 0db755946b1..872e2baccae 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 @@ -180,10 +180,15 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end + if !@requests.nil? && @requests.length > 1 + invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') + end + if !@requests.nil? && @requests.length < 1 + invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') + end if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 20825ba32c3..c94d5e04557 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 @@ -213,7 +213,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f3ed99f134e..a781f1e8220 100644 --- a/lib/datadog_api_client/v1/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v1/models/response_meta_attributes.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 df9df59ac13..61d46738fc6 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_request.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_request.rb @@ -162,7 +162,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a4f8245a553..facc0e7025c 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 @@ -174,7 +174,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 4bb309a70d4..7d65bd47a53 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 @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 98013273db1..12f00c43a7d 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_table_request.rb @@ -103,7 +103,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 318da1a2383..4d670e279b4 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb @@ -105,7 +105,6 @@ def list_invalid_properties if @formula.nil? invalid_properties.push('invalid value for "formula", formula cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/series.rb b/lib/datadog_api_client/v1/models/series.rb index bcc137fe07f..b691464321f 100644 --- a/lib/datadog_api_client/v1/models/series.rb +++ b/lib/datadog_api_client/v1/models/series.rb @@ -140,7 +140,6 @@ def list_invalid_properties if @points.nil? invalid_properties.push('invalid value for "points", points cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/service_check.rb b/lib/datadog_api_client/v1/models/service_check.rb index e5b7838482c..2fe8eded1f7 100644 --- a/lib/datadog_api_client/v1/models/service_check.rb +++ b/lib/datadog_api_client/v1/models/service_check.rb @@ -140,7 +140,6 @@ def list_invalid_properties if @tags.nil? invalid_properties.push('invalid value for "tags", tags cannot be nil.') end - invalid_properties end 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 02927470fed..d1b927fd674 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective.rb @@ -234,7 +234,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 606898ad3ae..2cfa12cce95 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 @@ -98,7 +98,6 @@ def list_invalid_properties if @numerator.nil? invalid_properties.push('invalid value for "numerator", numerator cannot be nil.') end - invalid_properties end 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 5aad54d0d99..e9ff1685af8 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 @@ -176,7 +176,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 68f8a006196..f6c6960009f 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 @@ -144,13 +144,15 @@ def list_invalid_properties if @filters.nil? invalid_properties.push('invalid value for "filters", filters cannot be nil.') end + if !@filters.nil? && @filters.length < 1 + invalid_properties.push('invalid value for "filters", number of items must be greater than or equal to 1.') + end if @service.nil? invalid_properties.push('invalid value for "service", service cannot be nil.') end if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 38f57355977..9c9c12c2a54 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 @@ -230,7 +230,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 d70e9c02e6f..cb7781e472c 100644 --- a/lib/datadog_api_client/v1/models/slack_integration_channel.rb +++ b/lib/datadog_api_client/v1/models/slack_integration_channel.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a1ef85ffd78..bf0397db11b 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 @@ -116,7 +116,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 4f20df59979..ec62e65e03d 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 @@ -110,7 +110,6 @@ def list_invalid_properties if @timeframe.nil? invalid_properties.push('invalid value for "timeframe", timeframe cannot be nil.') end - invalid_properties end 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 5959f7f10ff..7934c8abf08 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 @@ -97,7 +97,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 70a4d4ebeb7..a0cfdd97053 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 @@ -97,7 +97,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/slo_correction.rb b/lib/datadog_api_client/v1/models/slo_correction.rb index eaa55b950e8..1ab0cbc7743 100644 --- a/lib/datadog_api_client/v1/models/slo_correction.rb +++ b/lib/datadog_api_client/v1/models/slo_correction.rb @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 5d5e5294d56..ba368a0bc18 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 @@ -95,7 +95,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 58ffcfb355b..9dd5170680b 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a2495726c9c..e04d031a12e 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 @@ -154,7 +154,6 @@ def list_invalid_properties if @start.nil? invalid_properties.push('invalid value for "start", start cannot be nil.') end - invalid_properties end 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 fd40c3c8d7f..dafe8cb5c33 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 bfc10ef6627..1308707f814 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_response.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_response.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 c100a765427..a69fe7587f6 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 @@ -184,7 +184,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 fd1c01ee63c..d34f839bcf5 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 @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 4b2ccb4a477..5db86b0092a 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 07b523bbe5a..1f1f6c07e44 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 afc8533cb5c..67ef75cf7fd 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 @@ -136,7 +136,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 1d64563a468..30a2a9cdd68 100644 --- a/lib/datadog_api_client/v1/models/slo_delete_response.rb +++ b/lib/datadog_api_client/v1/models/slo_delete_response.rb @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 989da999932..c1e42b2ea35 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics.rb @@ -171,7 +171,6 @@ def list_invalid_properties if @times.nil? invalid_properties.push('invalid value for "times", times cannot be nil.') end - invalid_properties end 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 c7798ae4fba..be8461d8a64 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 @@ -120,7 +120,6 @@ def list_invalid_properties if @values.nil? invalid_properties.push('invalid value for "values", values cannot be nil.') end - invalid_properties end 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 4f7de201595..3e4d53fa4ac 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 @@ -131,7 +131,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 046b8cd318b..eb6d8b7b3de 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 @@ -128,7 +128,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 0fc10458c3b..ce7565cae50 100644 --- a/lib/datadog_api_client/v1/models/slo_history_monitor.rb +++ b/lib/datadog_api_client/v1/models/slo_history_monitor.rb @@ -186,7 +186,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 b053a09db57..90a279c9116 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response.rb @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 20957ac551e..32afe81cfc9 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 @@ -179,7 +179,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 1a783cb7711..9111814fd4a 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 888d08a2b04..c7d7724f545 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 @@ -96,7 +96,6 @@ def list_invalid_properties if @error_type.nil? invalid_properties.push('invalid value for "error_type", error_type cannot be nil.') end - invalid_properties end 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 a427ea09827..79b8ede6bf7 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,7 +186,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 b82bd884792..6fc669163ca 100644 --- a/lib/datadog_api_client/v1/models/slo_list_response.rb +++ b/lib/datadog_api_client/v1/models/slo_list_response.rb @@ -104,7 +104,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 4fef58081a0..82e9fc8fbe0 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 200f104fbff..27920000352 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/slo_response.rb b/lib/datadog_api_client/v1/models/slo_response.rb index d5f2443a49f..f1765c4c606 100644 --- a/lib/datadog_api_client/v1/models/slo_response.rb +++ b/lib/datadog_api_client/v1/models/slo_response.rb @@ -94,7 +94,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f2e9f597346..7cb7b6da51d 100644 --- a/lib/datadog_api_client/v1/models/slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_response_data.rb @@ -236,7 +236,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/slo_threshold.rb b/lib/datadog_api_client/v1/models/slo_threshold.rb index e15ac333b3e..514768a6e01 100644 --- a/lib/datadog_api_client/v1/models/slo_threshold.rb +++ b/lib/datadog_api_client/v1/models/slo_threshold.rb @@ -132,7 +132,6 @@ def list_invalid_properties if @timeframe.nil? invalid_properties.push('invalid value for "timeframe", timeframe cannot be nil.') end - invalid_properties end 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 ac6290842a4..170073d0e15 100644 --- a/lib/datadog_api_client/v1/models/slo_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/slo_widget_definition.rb @@ -174,7 +174,6 @@ def list_invalid_properties if @view_type.nil? invalid_properties.push('invalid value for "view_type", view_type cannot be nil.') end - invalid_properties end 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 fce691be289..e6d93da6286 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb @@ -162,10 +162,12 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end + if !@requests.nil? && @requests.length < 1 + invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') + end if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 0313c7071f3..4ba2edc83a4 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 @@ -102,7 +102,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 534244914c3..b1c1f1a72ce 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 b51bd4a0eca..6e713a7196f 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_request.rb @@ -193,7 +193,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/synthetics_api_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_step.rb index aefa48058a8..642b3875244 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_step.rb @@ -163,7 +163,6 @@ def list_invalid_properties if @subtype.nil? invalid_properties.push('invalid value for "subtype", subtype cannot be nil.') end - invalid_properties end 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 faef5e9e620..94a2688f1f7 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test.rb @@ -194,7 +194,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 1f0333eabde..26df33b2c62 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 @@ -116,7 +116,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 425fc1b5593..8f9910a84bc 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 @@ -154,7 +154,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a4742f5907d..8e8bd33ac53 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8517240e784..ea4f0d9fc53 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 @@ -138,7 +138,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 700a3b84802..e19195db893 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @config.nil? invalid_properties.push('invalid value for "config", config cannot be nil.') end - invalid_properties end 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 255204aabea..7a2188ed851 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 @@ -120,7 +120,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 be4645344a6..658f832c40a 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 @@ -91,7 +91,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 4a8d19a8f86..a877b14052f 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 @@ -114,7 +114,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 86c38136515..2bbb5ed4c4d 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 @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 d6af543eabe..d7cf01e792c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb @@ -117,7 +117,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 7a2d6a0dba9..c40a7a1bbdd 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 @@ -122,7 +122,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 bd623b56da7..a8469bb9848 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 @@ -137,7 +137,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 66356cb6b5f..f6f650e3859 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 @@ -110,7 +110,6 @@ def list_invalid_properties if @username.nil? invalid_properties.push('invalid value for "username", username cannot be nil.') end - invalid_properties end 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 37f70de94f4..21077cce653 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_details.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 09829f86328..2bced7264e9 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 @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 efaa4cb5b46..426bd47fd7e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb @@ -162,7 +162,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 9654b98a45b..54400ac67d4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_error.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_error.rb @@ -117,7 +117,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 03c9bb71b4d..993a3c1d633 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb @@ -195,7 +195,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 2546023c669..a7441a57aa1 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 @@ -131,7 +131,6 @@ def list_invalid_properties if @request.nil? invalid_properties.push('invalid value for "request", request cannot be nil.') end - invalid_properties end 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 7cb4d8fcf7b..a2e5b88be59 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 @@ -183,7 +183,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 20647d90daf..a935aa50e64 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 7ff01b98c2a..574469b6440 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 @@ -138,7 +138,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f7b789b7cd3..fdf3bf4da8d 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @config.nil? invalid_properties.push('invalid value for "config", config cannot be nil.') end - invalid_properties end 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 9a2344aca16..70229dc5edc 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 @@ -120,7 +120,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 6e332135206..f5d3cad598d 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 @@ -117,7 +117,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 b2bf78f1756..7ac174bb1d8 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb @@ -124,7 +124,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 5d68990413c..8eac94df959 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 ed62b0a790e..25a4c8bc84f 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 ae093b266d9..b5b5e3b53f9 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 b1937f87392..74da8d83a0f 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 6af87780454..fc221a3b635 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 6ec5ac6091c..cd1e5ff8141 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_test.rb @@ -205,7 +205,6 @@ def list_invalid_properties if @public_id.nil? invalid_properties.push('invalid value for "public_id", public_id cannot be nil.') end - invalid_properties end 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 0aa57e92c71..5ceb2a02ee6 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 6dadaa1de2f..c44e1e199c8 100644 --- a/lib/datadog_api_client/v1/models/synthetics_config_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_config_variable.rb @@ -123,7 +123,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 21515fd0335..b5de9bd7fe2 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 @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 0833c25fd8a..106586618be 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 @@ -84,7 +84,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 76cf57fe26b..818fdfe8565 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 @@ -84,7 +84,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 cd99fd06edf..28af9c55cb9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb @@ -91,7 +91,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/synthetics_device.rb b/lib/datadog_api_client/v1/models/synthetics_device.rb index b1608567b6c..3c1fc23af08 100644 --- a/lib/datadog_api_client/v1/models/synthetics_device.rb +++ b/lib/datadog_api_client/v1/models/synthetics_device.rb @@ -129,7 +129,6 @@ def list_invalid_properties if @width.nil? invalid_properties.push('invalid value for "width", width cannot be nil.') end - invalid_properties end 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 a98d5bf2e10..591092ef4f7 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8e7e7e33810..4ca3d2f436b 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 fe4947f0cf3..6b1673ac321 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable.rb @@ -158,7 +158,6 @@ def list_invalid_properties if @value.nil? invalid_properties.push('invalid value for "value", value cannot be nil.') end - invalid_properties end 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 27a3ca3d748..7d4448a4bb9 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 ea96837fd5c..d318f11c9e4 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 @@ -105,7 +105,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 05eab8b2d4d..dfe6fc5d2d3 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 @@ -91,7 +91,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 59cc3225824..d94cca37748 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 b132fa465c9..ae06a622c24 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/synthetics_location.rb b/lib/datadog_api_client/v1/models/synthetics_location.rb index f5059a7d6ed..315c279c1c4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_location.rb @@ -91,7 +91,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/synthetics_locations.rb b/lib/datadog_api_client/v1/models/synthetics_locations.rb index 3393907c965..5c270459489 100644 --- a/lib/datadog_api_client/v1/models/synthetics_locations.rb +++ b/lib/datadog_api_client/v1/models/synthetics_locations.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 2f9ad032900..c98b76689f3 100644 --- a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a44bf38372b..dbe891d17e5 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location.rb @@ -128,7 +128,6 @@ def list_invalid_properties if @tags.nil? invalid_properties.push('invalid value for "tags", tags cannot be nil.') end - invalid_properties end 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 ed9e620f1e2..4a3acb0907b 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 @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 05a5d6a5858..6ea31c7ee28 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 702ac3c3483..1119552f0e5 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 36a0708d762..64fb0b882a2 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 99189d94691..e8fe6a7a34d 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 69e76d52a1a..80aaeda078a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb @@ -182,7 +182,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f607a8848c6..be922937457 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 @@ -126,7 +126,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 51c4bada0ee..f8081373006 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 @@ -135,7 +135,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/synthetics_step.rb b/lib/datadog_api_client/v1/models/synthetics_step.rb index 6af6b87003f..b529ec74dde 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step.rb @@ -117,7 +117,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8a309871414..30bea905a10 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_detail.rb @@ -234,7 +234,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 549f40681dc..015735b0039 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 @@ -96,7 +96,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 0d9524c359b..fbeeaa9bf1f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_config.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_config.rb @@ -116,7 +116,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 caffbbe6e41..a48c1223b45 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details.rb @@ -197,7 +197,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 94939fa8e41..1acbcdc52fa 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options.rb @@ -194,7 +194,18 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @monitor_priority > 5 + invalid_properties.push('invalid value for "monitor_priority", must be smaller than or equal to 5.') + end + if @monitor_priority < 1 + invalid_properties.push('invalid value for "monitor_priority", must be greater than or equal to 1.') + end + if @tick_every > 604800 + invalid_properties.push('invalid value for "tick_every", must be smaller than or equal to 604800.') + end + if @tick_every < 30 + invalid_properties.push('invalid value for "tick_every", must be greater than or equal to 30.') + end invalid_properties end 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 3f5422b91bb..1f5b4706de8 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 @@ -83,7 +83,12 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @renotify_interval > 1440 + invalid_properties.push('invalid value for "renotify_interval", must be smaller than or equal to 1440.') + end + if @renotify_interval < 0 + invalid_properties.push('invalid value for "renotify_interval", must be greater than or equal to 0.') + end invalid_properties end 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 0aed6e09dfa..98cd8adce0d 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8e437d82d55..40d666823f6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request.rb @@ -254,7 +254,18 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @dns_server_port > 65535 + invalid_properties.push('invalid value for "dns_server_port", must be smaller than or equal to 65535.') + end + if @dns_server_port < 1 + invalid_properties.push('invalid value for "dns_server_port", must be greater than or equal to 1.') + end + if @number_of_packets > 10 + invalid_properties.push('invalid value for "number_of_packets", must be smaller than or equal to 10.') + end + if @number_of_packets < 0 + invalid_properties.push('invalid value for "number_of_packets", must be greater than or equal to 0.') + end invalid_properties end 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 b2a816e4531..990a9acb787 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 3a30b4ea735..a9cece8c566 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 @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 6fc5917f85f..a823a0b77ad 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 @@ -93,7 +93,6 @@ def list_invalid_properties if @url.nil? invalid_properties.push('invalid value for "url", url cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/synthetics_timing.rb b/lib/datadog_api_client/v1/models/synthetics_timing.rb index 4951deeff44..9ec775e4ffe 100644 --- a/lib/datadog_api_client/v1/models/synthetics_timing.rb +++ b/lib/datadog_api_client/v1/models/synthetics_timing.rb @@ -154,7 +154,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 73b449aff0d..1242684d5c7 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb @@ -86,7 +86,6 @@ def list_invalid_properties if @tests.nil? invalid_properties.push('invalid value for "tests", tests cannot be nil.') end - invalid_properties end 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 2bb66ed40fd..528894dff3d 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 842955b8ee6..37dfec9a861 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 @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 de13c788b61..d8cf7e2d624 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 @@ -115,7 +115,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8bdc6c14fba..55d94663156 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb @@ -93,7 +93,6 @@ def list_invalid_properties if @public_id.nil? invalid_properties.push('invalid value for "public_id", public_id cannot be nil.') end - invalid_properties end 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 03c6ea81b64..3b244d72a16 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 @@ -82,7 +82,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 2c7b4106680..c14a2dfaa1c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb +++ b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb @@ -93,7 +93,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 be1342ddd24..e227c407626 100644 --- a/lib/datadog_api_client/v1/models/table_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/table_widget_definition.rb @@ -156,7 +156,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 cebc829738c..fa9f25a4875 100644 --- a/lib/datadog_api_client/v1/models/table_widget_request.rb +++ b/lib/datadog_api_client/v1/models/table_widget_request.rb @@ -251,7 +251,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 06cb4caf89c..44ee2a575fd 100644 --- a/lib/datadog_api_client/v1/models/tag_to_hosts.rb +++ b/lib/datadog_api_client/v1/models/tag_to_hosts.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 5201b667f5d..56a94dd3bc1 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb @@ -222,10 +222,12 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end + if !@requests.nil? && @requests.length < 1 + invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') + end if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 e7010ce0898..c8398ee6190 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 @@ -93,7 +93,6 @@ def list_invalid_properties if @expression.nil? invalid_properties.push('invalid value for "expression", expression cannot be nil.') end - invalid_properties end 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 774afd1eb7a..35ca00ebd4f 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb @@ -231,7 +231,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 69429623d5a..da3e9642906 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_definition.rb @@ -147,7 +147,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 06764fcc46f..a8445a9b736 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_request.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_request.rb @@ -213,7 +213,9 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @conditional_formats.length < 1 + invalid_properties.push('invalid value for "conditional_formats", number of items must be greater than or equal to 1.') + end invalid_properties end 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 a9cf92ebe21..9d766335658 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 @@ -135,10 +135,15 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end + if !@requests.nil? && @requests.length > 1 + invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') + end + if !@requests.nil? && @requests.length < 1 + invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') + end if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 92161106c94..acefcfedc66 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 @@ -112,7 +112,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 1a70e174206..afd64929df3 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 @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 0694e831cee..877aefc4b38 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 6cdfb62553d..f21b0b8ab6b 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 @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_body.rb b/lib/datadog_api_client/v1/models/usage_attribution_body.rb index 98a0cce1482..f14d8b4712b 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_body.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_body.rb @@ -135,7 +135,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb b/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb index 0e7fca9a351..1709789b759 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb b/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb index c2dc0a7541a..b9c7ea5a78f 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb @@ -117,7 +117,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_response.rb b/lib/datadog_api_client/v1/models/usage_attribution_response.rb index 97d07005ab5..dd1b98cd425 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_response.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_response.rb @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/usage_attribution_values.rb b/lib/datadog_api_client/v1/models/usage_attribution_values.rb index 685fc9814f9..01602493577 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_values.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_values.rb @@ -436,7 +436,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 cb6a6d189bf..ab827c169ed 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 @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 c9d2486660a..e94a5fb777d 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 534e784cc67..dd72d60d558 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 @@ -135,7 +135,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 e5f0e42ce7e..f9e4bcf159b 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 @@ -144,7 +144,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 e4e9ed3f94f..3c8e4c7daef 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 @@ -360,7 +360,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 7311eb46c8f..3eb396e31a9 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 7c332b92579..4aacdcb2a92 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 @@ -149,7 +149,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 2a589c6469e..8993ce5734b 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 9f9b07e662b..9ddde5ec22a 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 @@ -119,7 +119,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 3d1a5d15e86..ddc87ae95e1 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 @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 c34f185a223..6a4ea21553e 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 cc000b378ee..194f2a49c85 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a3e5b37f126..35e9005d483 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 889300b5262..e94b9cf3c90 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_hour.rb @@ -117,7 +117,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 5cad8b3f2a6..756c9f38163 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_response.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_response.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 3d5695db4d2..9aa16ca155a 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_hour.rb @@ -117,7 +117,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 88f56f40f99..2d93586b1d3 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_response.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_response.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 61e11f929cd..a23a11ce3da 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_hour.rb @@ -117,7 +117,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8d93f29727a..03c71d58655 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_response.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_response.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 421b430b23b..e7f624974f8 100644 --- a/lib/datadog_api_client/v1/models/usage_host_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_host_hour.rb @@ -207,7 +207,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 bacdd138da0..739a6860484 100644 --- a/lib/datadog_api_client/v1/models/usage_hosts_response.rb +++ b/lib/datadog_api_client/v1/models/usage_hosts_response.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 0748f964f40..78e34952df8 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 @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 7458950e1db..7a9847f2b6a 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 978b72af7c7..b8d5106e7a9 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 @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 11c4dc7d567..6c24f6ed0e0 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 d31e0f0ca98..c368578a6f4 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 @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 cd5fb197a31..8b31a45cbef 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/usage_io_t_hour.rb b/lib/datadog_api_client/v1/models/usage_io_t_hour.rb index 2dc2e62e15c..87831e6523c 100644 --- a/lib/datadog_api_client/v1/models/usage_io_t_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_io_t_hour.rb @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/usage_io_t_response.rb b/lib/datadog_api_client/v1/models/usage_io_t_response.rb index 8634e730b9c..d98e022a5f8 100644 --- a/lib/datadog_api_client/v1/models/usage_io_t_response.rb +++ b/lib/datadog_api_client/v1/models/usage_io_t_response.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 cfe6c58d193..6995cd39127 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_hour.rb @@ -100,7 +100,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 59031e75db9..ffe45870c86 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_response.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_response.rb @@ -84,7 +84,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 68847692fd2..c3a82b6ef98 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 @@ -117,7 +117,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 e9d6d9a962a..63fe10c85ea 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 cdd76ce303b..436e5a53269 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 @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 e3825000bb3..ccb5cce3bfc 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 ed0c42630db..a3c12792839 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_hour.rb @@ -144,7 +144,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 1089046dae3..5e39cf20959 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_response.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_response.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 ac12baf513b..4d526eac6d3 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a6c4c48ad1a..cc8b714b4b9 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 eed896b8300..d96cf855a0a 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 064a525fbf9..35681b4185c 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f62440023c0..2dbadb32478 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_hour.rb @@ -117,7 +117,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 4b246ef279f..6523755c74b 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_response.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_response.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 405a4863d52..e1d1fb886d3 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 @@ -135,7 +135,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 593908f3f82..5be8d0d0d14 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 0a2852be71b..71379a9ea1a 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 @@ -118,7 +118,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 72ce16c7ef3..b84755eebe6 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 4bdcbd90184..0ae692627cc 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_hour.rb @@ -117,7 +117,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8696c1bf6a5..c249625c267 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_response.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_response.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 eb2b02e0046..c4a9678d8d9 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_hour.rb @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 037981864fb..b1f28e84d37 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_response.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_response.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f7f7e559f5c..27509c194fc 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 @@ -128,7 +128,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 2825b319b27..f49cfe5515d 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 @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 c7173e9e3bb..51305b278ac 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 7fbcff32348..ac36f1979da 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8d6785a3d23..44a2dffd1cf 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 39a2ff2d4cb..bbc6bb1a36b 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date.rb @@ -587,7 +587,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 9d086be301d..e838b7acb88 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 @@ -594,7 +594,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 0eb5983f7b7..fe15d9e2adf 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_response.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_response.rb @@ -668,7 +668,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 13592fa1f48..77710b492b8 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 e486a4ed5f6..d9069b2308e 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 fba84b0491d..a019e2bb3d6 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 4ad022280b8..af8b522b993 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 9d077d9b460..ae4e894fa31 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 6a4b10b0981..ad1210e7230 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_response.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_response.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 daf1fa2a8ab..d438eafb06d 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 4ea8b5c9838..c24ba77fd70 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_response.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_response.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 809d3141f77..8e3500ce836 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 @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 4a67fa3f739..f56ddce0447 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 @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 48754665492..6f327601aeb 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/user.rb b/lib/datadog_api_client/v1/models/user.rb index 095afb22517..6f27f0018cf 100644 --- a/lib/datadog_api_client/v1/models/user.rb +++ b/lib/datadog_api_client/v1/models/user.rb @@ -137,7 +137,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 5b9a355aeaf..523e9e191d2 100644 --- a/lib/datadog_api_client/v1/models/user_disable_response.rb +++ b/lib/datadog_api_client/v1/models/user_disable_response.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8607925a3f8..5adef74b0c5 100644 --- a/lib/datadog_api_client/v1/models/user_list_response.rb +++ b/lib/datadog_api_client/v1/models/user_list_response.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/user_response.rb b/lib/datadog_api_client/v1/models/user_response.rb index e33e133b50e..af6e9dd004d 100644 --- a/lib/datadog_api_client/v1/models/user_response.rb +++ b/lib/datadog_api_client/v1/models/user_response.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/webhooks_integration.rb b/lib/datadog_api_client/v1/models/webhooks_integration.rb index 911a1eef74d..bccb6ded6f3 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration.rb @@ -133,7 +133,6 @@ def list_invalid_properties if @url.nil? invalid_properties.push('invalid value for "url", url cannot be nil.') end - invalid_properties end 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 38d29521cff..9f81fc5f67a 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 @@ -109,7 +109,6 @@ def list_invalid_properties if @value.nil? invalid_properties.push('invalid value for "value", value cannot be nil.') end - invalid_properties end 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 0044a9af271..e3ba5f11ddc 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 @@ -106,7 +106,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 7e311f0d28a..b3f3673259f 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 @@ -102,7 +102,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 fc95865f4ec..0018b78b958 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 @@ -128,7 +128,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/widget.rb b/lib/datadog_api_client/v1/models/widget.rb index 282438a70a6..2501eabfc39 100644 --- a/lib/datadog_api_client/v1/models/widget.rb +++ b/lib/datadog_api_client/v1/models/widget.rb @@ -107,7 +107,6 @@ def list_invalid_properties if @definition.nil? invalid_properties.push('invalid value for "definition", definition cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/widget_axis.rb b/lib/datadog_api_client/v1/models/widget_axis.rb index 88aaf77b690..58a42786d16 100644 --- a/lib/datadog_api_client/v1/models/widget_axis.rb +++ b/lib/datadog_api_client/v1/models/widget_axis.rb @@ -123,7 +123,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f3246557a8e..88c6ddbeabb 100644 --- a/lib/datadog_api_client/v1/models/widget_conditional_format.rb +++ b/lib/datadog_api_client/v1/models/widget_conditional_format.rb @@ -162,7 +162,6 @@ def list_invalid_properties if @value.nil? invalid_properties.push('invalid value for "value", value cannot be nil.') end - invalid_properties end 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 578c7c7b2e1..1e8e63302e0 100644 --- a/lib/datadog_api_client/v1/models/widget_custom_link.rb +++ b/lib/datadog_api_client/v1/models/widget_custom_link.rb @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/widget_event.rb b/lib/datadog_api_client/v1/models/widget_event.rb index 1a2e4f3a420..ee22b89a218 100644 --- a/lib/datadog_api_client/v1/models/widget_event.rb +++ b/lib/datadog_api_client/v1/models/widget_event.rb @@ -96,7 +96,6 @@ def list_invalid_properties if @q.nil? invalid_properties.push('invalid value for "q", q cannot be nil.') end - invalid_properties end 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 77f5fca07cd..4d41350cbf3 100644 --- a/lib/datadog_api_client/v1/models/widget_field_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_field_sort.rb @@ -96,7 +96,6 @@ def list_invalid_properties if @order.nil? invalid_properties.push('invalid value for "order", order cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/widget_formula.rb b/lib/datadog_api_client/v1/models/widget_formula.rb index e837c6e1fca..db9208616c4 100644 --- a/lib/datadog_api_client/v1/models/widget_formula.rb +++ b/lib/datadog_api_client/v1/models/widget_formula.rb @@ -122,7 +122,6 @@ def list_invalid_properties if @formula.nil? invalid_properties.push('invalid value for "formula", formula cannot be nil.') end - invalid_properties end 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 743ad1d10b9..dcafc8753f4 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_limit.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_limit.rb @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/widget_layout.rb b/lib/datadog_api_client/v1/models/widget_layout.rb index a52c5a10d98..e41eda034f9 100644 --- a/lib/datadog_api_client/v1/models/widget_layout.rb +++ b/lib/datadog_api_client/v1/models/widget_layout.rb @@ -121,16 +121,27 @@ def list_invalid_properties if @height.nil? invalid_properties.push('invalid value for "height", height cannot be nil.') end + if !@height.nil? && @height < 0 + invalid_properties.push('invalid value for "height", must be greater than or equal to 0.') + end if @width.nil? invalid_properties.push('invalid value for "width", width cannot be nil.') end + if !@width.nil? && @width < 0 + invalid_properties.push('invalid value for "width", must be greater than or equal to 0.') + end if @x.nil? invalid_properties.push('invalid value for "x", x cannot be nil.') end + if !@x.nil? && @x < 0 + invalid_properties.push('invalid value for "x", must be greater than or equal to 0.') + end if @y.nil? invalid_properties.push('invalid value for "y", y cannot be nil.') end - + if !@y.nil? && @y < 0 + invalid_properties.push('invalid value for "y", must be greater than or equal to 0.') + end invalid_properties end diff --git a/lib/datadog_api_client/v1/models/widget_marker.rb b/lib/datadog_api_client/v1/models/widget_marker.rb index aa5079de718..f3f37fb9f1c 100644 --- a/lib/datadog_api_client/v1/models/widget_marker.rb +++ b/lib/datadog_api_client/v1/models/widget_marker.rb @@ -115,7 +115,6 @@ def list_invalid_properties if @value.nil? invalid_properties.push('invalid value for "value", value cannot be nil.') end - invalid_properties end 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 3e44ab95a85..70e50f845a2 100644 --- a/lib/datadog_api_client/v1/models/widget_request_style.rb +++ b/lib/datadog_api_client/v1/models/widget_request_style.rb @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/widget_style.rb b/lib/datadog_api_client/v1/models/widget_style.rb index 966c0816a57..3ec0c0558c6 100644 --- a/lib/datadog_api_client/v1/models/widget_style.rb +++ b/lib/datadog_api_client/v1/models/widget_style.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v1/models/widget_time.rb b/lib/datadog_api_client/v1/models/widget_time.rb index d00fc33e459..fd9b5dc6f3a 100644 --- a/lib/datadog_api_client/v1/models/widget_time.rb +++ b/lib/datadog_api_client/v1/models/widget_time.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 ee59ae91897..d375c99a2c4 100644 --- a/lib/datadog_api_client/v2/models/api_error_response.rb +++ b/lib/datadog_api_client/v2/models/api_error_response.rb @@ -86,7 +86,6 @@ def list_invalid_properties if @errors.nil? invalid_properties.push('invalid value for "errors", errors cannot be nil.') end - invalid_properties end 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 dfce1c8c899..d7deee711f9 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 9756c76ebd1..33783a1a182 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 @@ -98,7 +98,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 6ea8d59f6c4..5fc9e84ba13 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 9bf854411ec..7fc8a570fe7 100644 --- a/lib/datadog_api_client/v2/models/api_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/api_key_relationships.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 6163d552eef..49e801ec614 100644 --- a/lib/datadog_api_client/v2/models/api_key_response.rb +++ b/lib/datadog_api_client/v2/models/api_key_response.rb @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f87f9b40fd3..cab516829bc 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 c9111746b9c..98127a78d56 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 @@ -110,7 +110,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 91cf9b8d710..95f1f563d4f 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 4b8425c300a..d1c3c6aec66 100644 --- a/lib/datadog_api_client/v2/models/api_keys_response.rb +++ b/lib/datadog_api_client/v2/models/api_keys_response.rb @@ -94,7 +94,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 2cdcd83d13c..36b167fd3bb 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 @@ -96,7 +96,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 29eaf207195..f3d33a6bb69 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 @@ -98,7 +98,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 02c5efce8d5..4bab01705dc 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 7098140072e..66c27fc6741 100644 --- a/lib/datadog_api_client/v2/models/application_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/application_key_relationships.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f6fb6d20911..900c23ee2c3 100644 --- a/lib/datadog_api_client/v2/models/application_key_response.rb +++ b/lib/datadog_api_client/v2/models/application_key_response.rb @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 b9badb4f33d..3e23e27191c 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 @@ -93,7 +93,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 bc7eee4fb6c..346d3086083 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 @@ -110,7 +110,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 18917d6aac5..7a3589e2409 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 7c394e8f8b6..a88a6e5915b 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 @@ -171,7 +171,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 d500789bb01..3e4999cacd3 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 @@ -114,7 +114,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 1fcf8a2b756..f9b3ac16233 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 @@ -98,7 +98,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 49c41c4d9b5..9e63c7c70a4 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 62a6afa6235..76215fa175e 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 04af9edc9e0..c952b6134a8 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 @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 2cc619a8b46..16dcfc50242 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 75895010918..c0646999a1d 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 @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 298de2214d8..6c914bb877b 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 @@ -98,7 +98,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 9d46f57caef..37d2b2943f2 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 db17256c9fd..23c6ac1c841 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 9256706fb2d..6623f85fc00 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/creator.rb b/lib/datadog_api_client/v2/models/creator.rb index c29164f09ef..b3fd88a33aa 100644 --- a/lib/datadog_api_client/v2/models/creator.rb +++ b/lib/datadog_api_client/v2/models/creator.rb @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 43cbbd357fc..c28492e226b 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 e97c5777910..5e3f53e2f58 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8497f778a28..fa47528b3a9 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8362e278290..1c6da1d376b 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 1b4bb04613c..9eb79f9035e 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item.rb @@ -183,10 +183,12 @@ def list_invalid_properties if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end + if @popularity > 5 + invalid_properties.push('invalid value for "popularity", must be smaller than or equal to 5.') + end if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 38051aafc7d..51418d3d945 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 @@ -96,7 +96,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 9d7509f1ac7..c1bddd9b1d3 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 @@ -96,7 +96,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 70d229ebe5e..82a276cefa0 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_items.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_items.rb @@ -95,7 +95,6 @@ def list_invalid_properties if @dashboards.nil? invalid_properties.push('invalid value for "dashboards", dashboards cannot be nil.') end - invalid_properties end 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 3e24cab08eb..6148ca617c9 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 9ab38bca61b..59065c27b2e 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 87add23cf77..f48bf9f934e 100644 --- a/lib/datadog_api_client/v2/models/full_api_key.rb +++ b/lib/datadog_api_client/v2/models/full_api_key.rb @@ -110,7 +110,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a30085086d6..d68166fc71a 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 @@ -117,7 +117,12 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @last4.to_s.length > 4 + invalid_properties.push('invalid value for "last4", the character length must be smaller than or equal to 4.') + end + if @last4.to_s.length < 4 + invalid_properties.push('invalid value for "last4", the character length must be great than or equal to 4.') + end invalid_properties end 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 ed603728ee8..26ea6bc8ddc 100644 --- a/lib/datadog_api_client/v2/models/full_application_key.rb +++ b/lib/datadog_api_client/v2/models/full_application_key.rb @@ -110,7 +110,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 7f8b336f556..855a8e72bad 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 @@ -120,7 +120,12 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @last4.to_s.length > 4 + invalid_properties.push('invalid value for "last4", the character length must be smaller than or equal to 4.') + end + if @last4.to_s.length < 4 + invalid_properties.push('invalid value for "last4", the character length must be great than or equal to 4.') + end invalid_properties end 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 059bf3ed670..85ab8cdb99d 100644 --- a/lib/datadog_api_client/v2/models/http_log_error.rb +++ b/lib/datadog_api_client/v2/models/http_log_error.rb @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 cf02a051071..d782a2cc486 100644 --- a/lib/datadog_api_client/v2/models/http_log_errors.rb +++ b/lib/datadog_api_client/v2/models/http_log_errors.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 582b986c430..01df12d83fa 100644 --- a/lib/datadog_api_client/v2/models/http_log_item.rb +++ b/lib/datadog_api_client/v2/models/http_log_item.rb @@ -123,7 +123,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 edc07f961dc..7d26e088692 100644 --- a/lib/datadog_api_client/v2/models/incident_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_create_attributes.rb @@ -127,7 +127,6 @@ def list_invalid_properties if @title.nil? invalid_properties.push('invalid value for "title", title cannot be nil.') end - invalid_properties end 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 1e7a0bfaa08..1311272045a 100644 --- a/lib/datadog_api_client/v2/models/incident_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_create_data.rb @@ -107,7 +107,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 eddb42668cc..bfaee8fd262 100644 --- a/lib/datadog_api_client/v2/models/incident_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_create_relationships.rb @@ -84,7 +84,6 @@ def list_invalid_properties if @commander.nil? invalid_properties.push('invalid value for "commander", commander cannot be nil.') end - invalid_properties end 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 b2afd3280b1..9845d6c9b06 100644 --- a/lib/datadog_api_client/v2/models/incident_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_create_request.rb @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 9c253bc475b..3301c8bf58f 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 @@ -95,7 +95,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 9ba86c13d9c..ec2373dd969 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 @@ -93,7 +93,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 31910063154..480da22863f 100644 --- a/lib/datadog_api_client/v2/models/incident_notification_handle.rb +++ b/lib/datadog_api_client/v2/models/incident_notification_handle.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/incident_response.rb b/lib/datadog_api_client/v2/models/incident_response.rb index 498c36e95e4..f4cddb7e2c5 100644 --- a/lib/datadog_api_client/v2/models/incident_response.rb +++ b/lib/datadog_api_client/v2/models/incident_response.rb @@ -95,7 +95,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 b08f154fc65..8252663af75 100644 --- a/lib/datadog_api_client/v2/models/incident_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_response_attributes.rb @@ -247,7 +247,6 @@ def list_invalid_properties if @title.nil? invalid_properties.push('invalid value for "title", title cannot be nil.') end - invalid_properties end 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 a1df5a0d464..d4ca007e654 100644 --- a/lib/datadog_api_client/v2/models/incident_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_response_data.rb @@ -116,7 +116,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 d3585342caf..7d467a134f4 100644 --- a/lib/datadog_api_client/v2/models/incident_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_response_relationships.rb @@ -117,7 +117,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 3853185ad4a..606f4d746c1 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 206adf1b69c..9f796f4b342 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 @@ -104,7 +104,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 16caa63ad62..72e191af71f 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 ea3f39b4a67..0b9ea5465e4 100644 --- a/lib/datadog_api_client/v2/models/incident_service_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_service_relationships.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 7097553e111..11e218e8f84 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response.rb @@ -95,7 +95,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 c926700af9d..c0bbf5182fe 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 @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 967665eba3e..307d1e4f015 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 @@ -116,7 +116,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 40b6feab1ba..776bf66a7fb 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 c21e354f56f..65ea2461773 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 @@ -113,7 +113,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 41428cf2187..75684811b87 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 707f8e5c5f8..986e54025f6 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response.rb @@ -106,7 +106,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/incident_services_response_meta.rb b/lib/datadog_api_client/v2/models/incident_services_response_meta.rb index 20217694ff6..94af788b146 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response_meta.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb index a40b4cab4b6..de2a32a790a 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 483b74b792c..7ca379ddb4f 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 3393aa9cfb6..58a80550dcc 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 @@ -104,7 +104,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 9210b73d36e..f82439fce67 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 a5f917ed982..e2bb56165a5 100644 --- a/lib/datadog_api_client/v2/models/incident_team_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_team_relationships.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 dc6273bf9f2..aad4f8d3e39 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response.rb @@ -95,7 +95,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 b5122d6248f..c825f20a39c 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 @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8394cc2c0c2..ba7699d0ca1 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 @@ -110,7 +110,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 977004a4908..531e4989725 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 ef8006e8045..293119540a8 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 @@ -113,7 +113,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 7b09701f331..be967e459e4 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 80ff11ca982..86f4b7553c7 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response.rb @@ -106,7 +106,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb b/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb index 1d1594f9554..99f8d14e005 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb index aee383c54e4..bc2705f3dfc 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 19a7e25bc0a..a4350e07ced 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 @@ -109,7 +109,6 @@ def list_invalid_properties if @content.nil? invalid_properties.push('invalid value for "content", content cannot be nil.') end - invalid_properties end 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 51662cfb73d..2bea024fbe9 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 1f701a6d8fa..dd6d6a8563b 100644 --- a/lib/datadog_api_client/v2/models/incident_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_update_attributes.rb @@ -159,7 +159,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 0763be43c9f..70003970ba9 100644 --- a/lib/datadog_api_client/v2/models/incident_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_update_data.rb @@ -116,7 +116,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 f4653ca32ef..330a032d56b 100644 --- a/lib/datadog_api_client/v2/models/incident_update_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_update_relationships.rb @@ -117,7 +117,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 6f20fc00704..9fa7ded8aa7 100644 --- a/lib/datadog_api_client/v2/models/incident_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_update_request.rb @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/incidents_response.rb b/lib/datadog_api_client/v2/models/incidents_response.rb index de0085494b6..f9d2548c552 100644 --- a/lib/datadog_api_client/v2/models/incidents_response.rb +++ b/lib/datadog_api_client/v2/models/incidents_response.rb @@ -106,7 +106,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/incidents_response_meta.rb b/lib/datadog_api_client/v2/models/incidents_response_meta.rb index a106e78d66c..6230e4bbc71 100644 --- a/lib/datadog_api_client/v2/models/incidents_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incidents_response_meta.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb index ee7b8cb1d66..bca22823c57 100644 --- a/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a2f8c3d24b3..0d8bcbec48c 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 @@ -94,7 +94,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/log.rb b/lib/datadog_api_client/v2/models/log.rb index ae64b74d557..c8ad5541d76 100644 --- a/lib/datadog_api_client/v2/models/log.rb +++ b/lib/datadog_api_client/v2/models/log.rb @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/log_attributes.rb b/lib/datadog_api_client/v2/models/log_attributes.rb index a274d6c492a..7569f945352 100644 --- a/lib/datadog_api_client/v2/models/log_attributes.rb +++ b/lib/datadog_api_client/v2/models/log_attributes.rb @@ -141,7 +141,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 7576678f493..34cd1e770c9 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 3b1f71edc51..d762f30c963 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 892f4943050..bb6db1dea10 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_request.rb @@ -122,7 +122,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 fbe43d056ec..c3cc90ecbc0 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 7011a0dc318..2f8d7b3c0a2 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_response.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 414eb8c2416..f34000321dd 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 23977ab98b2..d4811cab9f6 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb @@ -110,7 +110,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/logs_archive.rb b/lib/datadog_api_client/v2/models/logs_archive.rb index 16f62ba168a..a3226b59675 100644 --- a/lib/datadog_api_client/v2/models/logs_archive.rb +++ b/lib/datadog_api_client/v2/models/logs_archive.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 d3f6cda716f..6a0c8402fd5 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb @@ -132,16 +132,12 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @destination.nil? - invalid_properties.push('invalid value for "destination", destination cannot be nil.') - end if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end - invalid_properties end 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 6b3aad7458e..333628679a1 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a0d5e782b8f..39bc02bf533 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 @@ -131,7 +131,6 @@ def list_invalid_properties if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end - invalid_properties end 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 d8774ae3597..eb10649289e 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 @@ -95,7 +95,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 965ed2ddbe9..22ee1ac0ed6 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_definition.rb @@ -104,7 +104,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 85a56388d3a..919cc2cde60 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 @@ -140,7 +140,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 041df90ee36..759edeffbdc 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 @@ -119,7 +119,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 90f9856a94f..992a73bb7aa 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 @@ -119,7 +119,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 4042ed548f8..3bde6da35c3 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 @@ -96,7 +96,6 @@ def list_invalid_properties if @tenant_id.nil? invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.') end - invalid_properties end 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 2356e2ac3de..18fdd38e638 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 @@ -96,7 +96,6 @@ def list_invalid_properties if @project_id.nil? invalid_properties.push('invalid value for "project_id", project_id cannot be nil.') end - invalid_properties end 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 01499efae44..9293561b138 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 @@ -96,7 +96,6 @@ def list_invalid_properties if @role_name.nil? invalid_properties.push('invalid value for "role_name", role_name cannot be nil.') end - invalid_properties end 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 b70559e2c4d..10a0712042f 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 2e818ef1953..9025d8ca73a 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 @@ -87,7 +87,6 @@ def list_invalid_properties if @archive_ids.nil? invalid_properties.push('invalid value for "archive_ids", archive_ids cannot be nil.') end - invalid_properties end 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 444331e3469..9588b8e6391 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 @@ -98,7 +98,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/logs_archives.rb b/lib/datadog_api_client/v2/models/logs_archives.rb index ab5fec7605f..6fe6fbd02f3 100644 --- a/lib/datadog_api_client/v2/models/logs_archives.rb +++ b/lib/datadog_api_client/v2/models/logs_archives.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/logs_compute.rb b/lib/datadog_api_client/v2/models/logs_compute.rb index d814c1489f2..9e1e04443d0 100644 --- a/lib/datadog_api_client/v2/models/logs_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_compute.rb @@ -114,7 +114,6 @@ def list_invalid_properties if @aggregation.nil? invalid_properties.push('invalid value for "aggregation", aggregation cannot be nil.') end - invalid_properties end 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 90bf4b387e2..5d9e6bcfa1b 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by.rb @@ -134,7 +134,6 @@ def list_invalid_properties if @facet.nil? invalid_properties.push('invalid value for "facet", facet cannot be nil.') end - invalid_properties end 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 d074f30f469..1fe9161e6f2 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 @@ -111,7 +111,6 @@ def list_invalid_properties if @min.nil? invalid_properties.push('invalid value for "min", min cannot be nil.') end - invalid_properties end 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 7a725ad3843..300fedb967a 100644 --- a/lib/datadog_api_client/v2/models/logs_list_request.rb +++ b/lib/datadog_api_client/v2/models/logs_list_request.rb @@ -109,7 +109,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 b7f125ca613..597c3e216fd 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,7 +92,9 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @limit > 1000 + invalid_properties.push('invalid value for "limit", must be smaller than or equal to 1000.') + end invalid_properties end 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 80738fc81c3..0fdb32f8788 100644 --- a/lib/datadog_api_client/v2/models/logs_list_response.rb +++ b/lib/datadog_api_client/v2/models/logs_list_response.rb @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8259b579563..2a63407699a 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 @@ -82,7 +82,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 12c1b280d2f..ed97b396590 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_compute.rb @@ -93,7 +93,6 @@ def list_invalid_properties if @aggregation_type.nil? invalid_properties.push('invalid value for "aggregation_type", aggregation_type cannot be nil.') end - invalid_properties end 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 fdbe4a944af..580a120f382 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 @@ -104,7 +104,6 @@ def list_invalid_properties if @compute.nil? invalid_properties.push('invalid value for "compute", compute cannot be nil.') end - invalid_properties end 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 09ca47a83a9..4661122f961 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 @@ -110,7 +110,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 9ab64356808..154cb2d4ea2 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 79997887d79..8f14d8a9e2f 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_filter.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 3cbaa226310..3eb4d09ed12 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 @@ -93,7 +93,6 @@ def list_invalid_properties if @path.nil? invalid_properties.push('invalid value for "path", path cannot be nil.') end - invalid_properties end 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 e9b08a3dba2..bae53a2b845 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f29c4778108..2f59ce7a4cf 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 @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 7cbfc067ce7..d8d694fc047 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 eb5039084c1..45c674229fb 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 @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 411517557d3..96070d53a08 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 47e0c5284c0..d2ea1db3f8c 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 c332900566e..bf498025227 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 09adf0fcbcf..b37ab6053de 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 @@ -98,7 +98,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 4b78f5e4798..97d381794e5 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 7428fbe3b83..08f4cb784be 100644 --- a/lib/datadog_api_client/v2/models/logs_metrics_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metrics_response.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 0bff027bbca..dbae9f5c296 100644 --- a/lib/datadog_api_client/v2/models/logs_query_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_query_filter.rb @@ -118,7 +118,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f302d374d90..bcda4ae16c1 100644 --- a/lib/datadog_api_client/v2/models/logs_query_options.rb +++ b/lib/datadog_api_client/v2/models/logs_query_options.rb @@ -93,7 +93,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f06a9828559..bd8f39a2aa3 100644 --- a/lib/datadog_api_client/v2/models/logs_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/logs_response_metadata.rb @@ -120,7 +120,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 164786f177a..cd32c105036 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 @@ -82,7 +82,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/logs_warning.rb b/lib/datadog_api_client/v2/models/logs_warning.rb index 66b06cf2c73..305546b5a4b 100644 --- a/lib/datadog_api_client/v2/models/logs_warning.rb +++ b/lib/datadog_api_client/v2/models/logs_warning.rb @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/metric.rb b/lib/datadog_api_client/v2/models/metric.rb index 9f0560c54a9..e9b48e24520 100644 --- a/lib/datadog_api_client/v2/models/metric.rb +++ b/lib/datadog_api_client/v2/models/metric.rb @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 4e439aa70dc..410fefd9639 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags.rb @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 2625cd6d9ed..8b99f0445ff 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 fd44cae8b1e..0e39e58dea1 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 73cb44078d7..5d4c8a24175 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb @@ -96,7 +96,6 @@ def list_invalid_properties if @time.nil? invalid_properties.push('invalid value for "time", time cannot be nil.') end - invalid_properties end 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 cc79133b293..69314866af0 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume.rb @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 2b6989c6979..e47ddc66c1f 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 23e6dac1079..f2cba42b410 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 @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 0f4e8c07ca7..b3f1f39b01f 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 3d6cf287743..15a84986e5d 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration.rb @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 970609088cd..11a41a3ef0f 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 @@ -148,7 +148,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 1d164001da6..243212bbd5f 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 @@ -140,7 +140,6 @@ def list_invalid_properties if @tags.nil? invalid_properties.push('invalid value for "tags", tags cannot be nil.') end - invalid_properties end 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 1a442b0f4ce..ecec8a797b1 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 @@ -107,7 +107,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 bc68a4bf9f6..25380d72697 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 86ae39929a5..a8d6bddf3ff 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 9de373d0707..d38f2005fd6 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 @@ -123,7 +123,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 1dea795e0d0..5a094181d77 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 @@ -107,7 +107,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 f2ff1f201e0..f873c477668 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 b847cfce4a7..4dc8533a02d 100644 --- a/lib/datadog_api_client/v2/models/metric_volumes_response.rb +++ b/lib/datadog_api_client/v2/models/metric_volumes_response.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 5ccb73ca39c..dbceead4706 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 @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/organization.rb b/lib/datadog_api_client/v2/models/organization.rb index 56e13197572..a3e283d644c 100644 --- a/lib/datadog_api_client/v2/models/organization.rb +++ b/lib/datadog_api_client/v2/models/organization.rb @@ -104,7 +104,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/organization_attributes.rb b/lib/datadog_api_client/v2/models/organization_attributes.rb index 2831fa3be65..14fbf0febdd 100644 --- a/lib/datadog_api_client/v2/models/organization_attributes.rb +++ b/lib/datadog_api_client/v2/models/organization_attributes.rb @@ -144,7 +144,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/pagination.rb b/lib/datadog_api_client/v2/models/pagination.rb index a42402de7dd..ef2bf2eb040 100644 --- a/lib/datadog_api_client/v2/models/pagination.rb +++ b/lib/datadog_api_client/v2/models/pagination.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 39de6080202..a32ddec48d9 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key.rb @@ -110,7 +110,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a482560b3f3..efc20592443 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 @@ -108,7 +108,12 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @last4.to_s.length > 4 + invalid_properties.push('invalid value for "last4", the character length must be smaller than or equal to 4.') + end + if @last4.to_s.length < 4 + invalid_properties.push('invalid value for "last4", the character length must be great than or equal to 4.') + end invalid_properties end 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 b0009675680..4aa9164c272 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key.rb @@ -110,7 +110,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 e39f1959fe3..641b9d6a1a4 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 @@ -111,7 +111,12 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @last4.to_s.length > 4 + invalid_properties.push('invalid value for "last4", the character length must be smaller than or equal to 4.') + end + if @last4.to_s.length < 4 + invalid_properties.push('invalid value for "last4", the character length must be great than or equal to 4.') + end invalid_properties end 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 578339d011d..26fc1a64d47 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/permission.rb b/lib/datadog_api_client/v2/models/permission.rb index 3cc95b74d06..df8a90049fc 100644 --- a/lib/datadog_api_client/v2/models/permission.rb +++ b/lib/datadog_api_client/v2/models/permission.rb @@ -104,7 +104,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/permission_attributes.rb b/lib/datadog_api_client/v2/models/permission_attributes.rb index aa9a5267313..5b6f4683949 100644 --- a/lib/datadog_api_client/v2/models/permission_attributes.rb +++ b/lib/datadog_api_client/v2/models/permission_attributes.rb @@ -135,7 +135,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/permissions_response.rb b/lib/datadog_api_client/v2/models/permissions_response.rb index 882cc36d511..e81789b678b 100644 --- a/lib/datadog_api_client/v2/models/permissions_response.rb +++ b/lib/datadog_api_client/v2/models/permissions_response.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 90c5ca515fb..aaeb92d975b 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_meta.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_meta.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 6baea5109f2..052f4bfb1c0 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 @@ -91,7 +91,12 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @size > 10000 + invalid_properties.push('invalid value for "size", must be smaller than or equal to 10000.') + end + if @size < 0 + invalid_properties.push('invalid value for "size", must be greater than or equal to 0.') + end invalid_properties end 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 c3abed7d2b6..cecec1b0af1 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_response.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_response.rb @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/process_summary.rb b/lib/datadog_api_client/v2/models/process_summary.rb index 4bcb0e48f93..dc98569a608 100644 --- a/lib/datadog_api_client/v2/models/process_summary.rb +++ b/lib/datadog_api_client/v2/models/process_summary.rb @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a2215c2d697..76927868546 100644 --- a/lib/datadog_api_client/v2/models/process_summary_attributes.rb +++ b/lib/datadog_api_client/v2/models/process_summary_attributes.rb @@ -146,7 +146,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 5743da07421..8c5a0af32b8 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 @@ -98,7 +98,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 f43e6c504d3..d3c02da1934 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 @@ -86,7 +86,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 afc5890ca2d..3dd457e28c7 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 7e35d70038b..11b25a5d311 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 @@ -98,7 +98,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 e2848a8df97..3642d58b445 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organization.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organization.rb @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 02318ec9881..5b813c3d611 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 @@ -98,7 +98,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 b166c3ba279..3014c54db23 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organizations.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organizations.rb @@ -86,7 +86,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 363491806c2..3f3f713f4ed 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permission.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permission.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 25109d5a910..17945c14630 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 530a7297c96..82047bc35d1 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permissions.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permissions.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f8676f7f236..fcc6af3d7e7 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_role.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_role.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 70237a38544..a0bb7dc09b9 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 7e2754e3641..949380dbccf 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_roles.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_roles.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 56ce754a91d..51cb9b27704 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user.rb @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 cc8cfd61e67..343fc46a4f1 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 @@ -98,7 +98,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 1f638f453cf..649a260118a 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_users.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_users.rb @@ -86,7 +86,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 a6997f42f59..636c2dbc5e8 100644 --- a/lib/datadog_api_client/v2/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v2/models/response_meta_attributes.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/role.rb b/lib/datadog_api_client/v2/models/role.rb index 0f7f7d38468..371f0ae1d43 100644 --- a/lib/datadog_api_client/v2/models/role.rb +++ b/lib/datadog_api_client/v2/models/role.rb @@ -113,7 +113,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/role_attributes.rb b/lib/datadog_api_client/v2/models/role_attributes.rb index 7ac461f28ab..360a29bafbd 100644 --- a/lib/datadog_api_client/v2/models/role_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_attributes.rb @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/role_clone.rb b/lib/datadog_api_client/v2/models/role_clone.rb index 164a0d0eb63..89eabd378b3 100644 --- a/lib/datadog_api_client/v2/models/role_clone.rb +++ b/lib/datadog_api_client/v2/models/role_clone.rb @@ -98,7 +98,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 64c859ffa45..139d4b05bc3 100644 --- a/lib/datadog_api_client/v2/models/role_clone_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_clone_attributes.rb @@ -84,7 +84,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 b862437b057..c76519de3d7 100644 --- a/lib/datadog_api_client/v2/models/role_clone_request.rb +++ b/lib/datadog_api_client/v2/models/role_clone_request.rb @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 e39d5122573..94195ed2a39 100644 --- a/lib/datadog_api_client/v2/models/role_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_create_attributes.rb @@ -102,7 +102,6 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - invalid_properties end 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 4619be31bfe..7bc0007ea5f 100644 --- a/lib/datadog_api_client/v2/models/role_create_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_data.rb @@ -104,7 +104,6 @@ def list_invalid_properties if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') end - invalid_properties end 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 5c4f38cd1d5..a64bbca17e2 100644 --- a/lib/datadog_api_client/v2/models/role_create_request.rb +++ b/lib/datadog_api_client/v2/models/role_create_request.rb @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 4fae1a11e32..85c9593825a 100644 --- a/lib/datadog_api_client/v2/models/role_create_response.rb +++ b/lib/datadog_api_client/v2/models/role_create_response.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 26cd53613c1..e9c01d1e9db 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 @@ -113,7 +113,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/role_relationships.rb b/lib/datadog_api_client/v2/models/role_relationships.rb index 127205e83ab..7e7897d6cb4 100644 --- a/lib/datadog_api_client/v2/models/role_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_relationships.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/role_response.rb b/lib/datadog_api_client/v2/models/role_response.rb index 20fd5637840..c2aa27c9f59 100644 --- a/lib/datadog_api_client/v2/models/role_response.rb +++ b/lib/datadog_api_client/v2/models/role_response.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 5b5962b9131..2d5751b322c 100644 --- a/lib/datadog_api_client/v2/models/role_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_response_relationships.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 583550d2784..7076d5bdcb1 100644 --- a/lib/datadog_api_client/v2/models/role_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_update_attributes.rb @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f842da68a66..237e694a5b4 100644 --- a/lib/datadog_api_client/v2/models/role_update_data.rb +++ b/lib/datadog_api_client/v2/models/role_update_data.rb @@ -110,7 +110,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 08ad5c638a6..a615899bc50 100644 --- a/lib/datadog_api_client/v2/models/role_update_request.rb +++ b/lib/datadog_api_client/v2/models/role_update_request.rb @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 e4cdcb0556a..5f6bdeca2f7 100644 --- a/lib/datadog_api_client/v2/models/role_update_response.rb +++ b/lib/datadog_api_client/v2/models/role_update_response.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 785b61e6e39..2a4c240f69b 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 @@ -113,7 +113,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/roles_response.rb b/lib/datadog_api_client/v2/models/roles_response.rb index 09e0160c4d8..fa9657ff2be 100644 --- a/lib/datadog_api_client/v2/models/roles_response.rb +++ b/lib/datadog_api_client/v2/models/roles_response.rb @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/security_filter.rb b/lib/datadog_api_client/v2/models/security_filter.rb index c853bd4bae5..3d8f7e3f2e8 100644 --- a/lib/datadog_api_client/v2/models/security_filter.rb +++ b/lib/datadog_api_client/v2/models/security_filter.rb @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 57e5c083ab7..dd9c9e852d8 100644 --- a/lib/datadog_api_client/v2/models/security_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_attributes.rb @@ -137,7 +137,9 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @version > 2147483647 + invalid_properties.push('invalid value for "version", must be smaller than or equal to 2147483647.') + end invalid_properties end 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 6a3b6b1cf86..58406c3274c 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 @@ -134,7 +134,6 @@ def list_invalid_properties if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end - invalid_properties end 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 676aca6f39f..c1f121defcb 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 @@ -98,7 +98,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 4003473a1f8..6810d469b79 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 771f4fee497..d46c4c84177 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 @@ -96,7 +96,6 @@ def list_invalid_properties if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end - invalid_properties end 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 4ebe172883a..2f07902b8ed 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 @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8eadfec2dd2..c3431356bf7 100644 --- a/lib/datadog_api_client/v2/models/security_filter_meta.rb +++ b/lib/datadog_api_client/v2/models/security_filter_meta.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 815064524dd..702564143a3 100644 --- a/lib/datadog_api_client/v2/models/security_filter_response.rb +++ b/lib/datadog_api_client/v2/models/security_filter_response.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 9c4f01cd1b8..81fdf4315cb 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 @@ -128,7 +128,9 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @version > 2147483647 + invalid_properties.push('invalid value for "version", must be smaller than or equal to 2147483647.') + end invalid_properties end 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 c0dd263bb2a..e634a534059 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 @@ -98,7 +98,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 ea6e5fea29b..df6cb68cc6b 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 a0886f78141..4f94e1c41bf 100644 --- a/lib/datadog_api_client/v2/models/security_filters_response.rb +++ b/lib/datadog_api_client/v2/models/security_filters_response.rb @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 ace0adb1168..f501e9ac611 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_filter.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_filter.rb @@ -90,7 +90,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 b3db5d286c3..3f991c088c1 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 @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 31acf5991e8..4386ea90c5b 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 @@ -111,7 +111,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 894e4661e2f..cda305e2e7d 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 @@ -114,7 +114,6 @@ def list_invalid_properties if @status.nil? invalid_properties.push('invalid value for "status", status cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb index 84d219565c7..b39afc1f3be 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb @@ -188,7 +188,6 @@ def list_invalid_properties if @queries.nil? invalid_properties.push('invalid value for "queries", queries cannot be nil.') end - invalid_properties end 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 d1145d17f04..3d0d3cfe169 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 @@ -91,7 +91,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 49b2679c49c..f1d3f5cddf5 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 @@ -120,7 +120,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb index 2382f38b48e..31ced7e16c8 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb @@ -131,7 +131,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb index 90e67c796ce..142ca6c0313 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb @@ -134,7 +134,6 @@ def list_invalid_properties if @query.nil? invalid_properties.push('invalid value for "query", query cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb index 6fb6a51ad55..42905e79770 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb @@ -233,7 +233,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 2af16366ec1..cf625789cb5 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 @@ -170,7 +170,9 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @version > 2147483647 + invalid_properties.push('invalid value for "version", must be smaller than or equal to 2147483647.') + end invalid_properties end 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 0c8a715f200..97230fa1842 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal.rb @@ -102,7 +102,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 ca56ff87f67..90153f08b3d 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 @@ -109,7 +109,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f468702e073..2d498ec8977 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 @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 94960628d9a..0563b26aacd 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 @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 554dfd7a2e2..8b0ca2a2f51 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,7 +92,9 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - + if @limit > 1000 + invalid_properties.push('invalid value for "limit", must be smaller than or equal to 1000.') + end invalid_properties end 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 bf7d7e6369e..eec72fec523 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 @@ -102,7 +102,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 01db8da5192..bc5d4a1c389 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 @@ -82,7 +82,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 f21d0ef4234..f165a7adfc4 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 @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 40e7b2c1645..73c22a7f915 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 @@ -82,7 +82,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 711eec12685..4e9594a38aa 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 @@ -114,7 +114,6 @@ def list_invalid_properties if @service_account.nil? invalid_properties.push('invalid value for "service_account", service_account cannot be nil.') end - invalid_properties end 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 2f234ba3e16..dc35d32ef2c 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 @@ -107,7 +107,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 ebb8d9cc113..55382a12fab 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 @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/user.rb b/lib/datadog_api_client/v2/models/user.rb index 7db7fa357b0..061e3b73ea9 100644 --- a/lib/datadog_api_client/v2/models/user.rb +++ b/lib/datadog_api_client/v2/models/user.rb @@ -110,7 +110,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/user_attributes.rb b/lib/datadog_api_client/v2/models/user_attributes.rb index 617233f9271..08b695cee8b 100644 --- a/lib/datadog_api_client/v2/models/user_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_attributes.rb @@ -173,7 +173,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a483a3965ff..efe352698a6 100644 --- a/lib/datadog_api_client/v2/models/user_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_create_attributes.rb @@ -102,7 +102,6 @@ def list_invalid_properties if @email.nil? invalid_properties.push('invalid value for "email", email cannot be nil.') end - invalid_properties end 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 9fa1e12e0d9..289cf141593 100644 --- a/lib/datadog_api_client/v2/models/user_create_data.rb +++ b/lib/datadog_api_client/v2/models/user_create_data.rb @@ -107,7 +107,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 c2bdce4be3d..11fc740b20d 100644 --- a/lib/datadog_api_client/v2/models/user_create_request.rb +++ b/lib/datadog_api_client/v2/models/user_create_request.rb @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 406476df595..718b1e5a811 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_data.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_data.rb @@ -98,7 +98,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 93b6e5edf5c..dc07d91b801 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 @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 ff8ffccd8c3..584fdb1415f 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_relationships.rb @@ -84,7 +84,6 @@ def list_invalid_properties if @user.nil? invalid_properties.push('invalid value for "user", user cannot be nil.') end - invalid_properties end 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 1977b4b60b1..aabc2b6f18f 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_response.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 8314e4dbf3f..98f182d81d1 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 @@ -101,7 +101,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 783ac2796c8..fafd7e56f17 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_request.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_request.rb @@ -86,7 +86,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end 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 6149b351c39..84a09b74226 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_response.rb @@ -83,7 +83,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/user_relationships.rb b/lib/datadog_api_client/v2/models/user_relationships.rb index 9eb6c38dcd5..8f82f1e0377 100644 --- a/lib/datadog_api_client/v2/models/user_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_relationships.rb @@ -81,7 +81,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/user_response.rb b/lib/datadog_api_client/v2/models/user_response.rb index 7214f06142a..e9818b3490f 100644 --- a/lib/datadog_api_client/v2/models/user_response.rb +++ b/lib/datadog_api_client/v2/models/user_response.rb @@ -92,7 +92,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 848dd3ba9e8..58f35504a19 100644 --- a/lib/datadog_api_client/v2/models/user_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_response_relationships.rb @@ -108,7 +108,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 0746e6eb9e7..7d8568bd157 100644 --- a/lib/datadog_api_client/v2/models/user_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_update_attributes.rb @@ -99,7 +99,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end 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 a808aa0cd5c..c0891f64f6f 100644 --- a/lib/datadog_api_client/v2/models/user_update_data.rb +++ b/lib/datadog_api_client/v2/models/user_update_data.rb @@ -110,7 +110,6 @@ def list_invalid_properties if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') end - invalid_properties end 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 88b0c7bf3fe..085c6fef5fd 100644 --- a/lib/datadog_api_client/v2/models/user_update_request.rb +++ b/lib/datadog_api_client/v2/models/user_update_request.rb @@ -84,7 +84,6 @@ def list_invalid_properties if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') end - invalid_properties end diff --git a/lib/datadog_api_client/v2/models/users_response.rb b/lib/datadog_api_client/v2/models/users_response.rb index b7776342647..f7f1f59e42f 100644 --- a/lib/datadog_api_client/v2/models/users_response.rb +++ b/lib/datadog_api_client/v2/models/users_response.rb @@ -103,7 +103,6 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - invalid_properties end From 7491b9a9548f2c4a2150c60d5a8c58dd25cbe2d3 Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Mon, 7 Feb 2022 10:29:01 +0100 Subject: [PATCH 10/23] collection_format --- .../src/generator/templates/model_generic.j2 | 14 +++++++------- lib/datadog_api_client/v1/models/api_key.rb | 4 ++-- .../v1/models/application_key.rb | 4 ++-- .../v1/models/change_widget_definition.rb | 4 ++-- .../v1/models/distribution_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/downtime.rb | 6 +++--- lib/datadog_api_client/v1/models/downtime_child.rb | 6 +++--- .../v1/models/downtime_recurrence.rb | 4 ++-- lib/datadog_api_client/v1/models/event.rb | 2 +- .../v1/models/event_create_request.rb | 4 ++-- .../v1/models/event_create_response.rb | 4 ++-- .../v1/models/funnel_widget_definition.rb | 4 ++-- .../v1/models/geomap_widget_definition.rb | 4 ++-- .../v1/models/heat_map_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/http_log_error.rb | 2 +- .../v1/models/list_stream_widget_definition.rb | 4 ++-- .../v1/models/logs_grok_parser.rb | 2 +- .../v1/models/logs_list_request.rb | 2 +- .../v1/models/metrics_query_metadata.rb | 4 ++-- lib/datadog_api_client/v1/models/monitor.rb | 4 ++-- .../v1/models/monitor_options.rb | 4 ++-- .../v1/models/monitor_update_request.rb | 4 ++-- .../v1/models/notebook_create_data_attributes.rb | 4 ++-- .../v1/models/notebook_response_data_attributes.rb | 4 ++-- .../v1/models/notebook_update_data_attributes.rb | 4 ++-- .../models/notebooks_response_data_attributes.rb | 4 ++-- lib/datadog_api_client/v1/models/organization.rb | 2 +- .../v1/models/organization_create_body.rb | 2 +- .../v1/models/process_query_definition.rb | 2 +- .../v1/models/query_value_widget_definition.rb | 4 ++-- .../v1/models/service_map_widget_definition.rb | 2 +- .../v1/models/sunburst_widget_definition.rb | 2 +- .../v1/models/synthetics_test_options.rb | 8 ++++---- .../synthetics_test_options_monitor_options.rb | 4 ++-- .../v1/models/synthetics_test_request.rb | 8 ++++---- .../v1/models/timeseries_widget_definition.rb | 2 +- .../v1/models/toplist_widget_request.rb | 2 +- .../v1/models/tree_map_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/widget_layout.rb | 8 ++++---- .../v2/models/dashboard_list_item.rb | 2 +- .../v2/models/full_api_key_attributes.rb | 4 ++-- .../v2/models/full_application_key_attributes.rb | 4 ++-- .../v2/models/logs_list_request_page.rb | 2 +- .../v2/models/partial_api_key_attributes.rb | 4 ++-- .../models/partial_application_key_attributes.rb | 4 ++-- .../v2/models/process_summaries_meta_page.rb | 4 ++-- .../v2/models/security_filter_attributes.rb | 2 +- .../v2/models/security_filter_update_attributes.rb | 2 +- .../security_monitoring_rule_update_payload.rb | 2 +- ...security_monitoring_signal_list_request_page.rb | 2 +- 50 files changed, 96 insertions(+), 96 deletions(-) diff --git a/.generator/src/generator/templates/model_generic.j2 b/.generator/src/generator/templates/model_generic.j2 index 53516c75eec..a01f30875e1 100644 --- a/.generator/src/generator/templates/model_generic.j2 +++ b/.generator/src/generator/templates/model_generic.j2 @@ -91,44 +91,44 @@ {%- endif %} {%- if definition.maxLength is defined %} - if {% if required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.to_s.length > {{ definition.maxLength }} + if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.to_s.length > {{ definition.maxLength }} invalid_properties.push('invalid value for "{{ attr|attribute_name }}", the character length must be smaller than or equal to {{ definition.maxLength }}.') end {%- endif %} {%- if definition.minLength is defined %} - if {% if required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.to_s.length < {{ definition.minLength }} + if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.to_s.length < {{ definition.minLength }} invalid_properties.push('invalid value for "{{ attr|attribute_name }}", the character length must be great than or equal to {{ definition.minLength }}.') end {%- endif %} {%- if definition.maximum is defined %} - if {% if required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} >{% if definition.exclusiveMaximum %}={% endif %} {{ definition.maximum }} + if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} >{% if definition.exclusiveMaximum %}={% endif %} {{ definition.maximum }} invalid_properties.push('invalid value for "{{ attr|attribute_name }}", must be smaller than {% if not definition.exclusiveMaximum %}or equal to {% endif %}{{ definition.maximum }}.') end {%- endif %} {%- if definition.minimum is defined %} - if {% if required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} <{% if definition.exclusiveMinimum %}={% endif %} {{ definition.minimum }} + if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} <{% if definition.exclusiveMinimum %}={% endif %} {{ definition.minimum }} invalid_properties.push('invalid value for "{{ attr|attribute_name }}", must be greater than {% if not definition.exclusiveMinimum %}or equal to {% endif %}{{ definition.minimum }}.') end {%- endif %} {%- if definition.pattern is defined %} pattern = Regexp.new({{ definition.pattern }}) - if {% if required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} !~ pattern + if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} !~ pattern invalid_properties.push("invalid value for \"{{ attr|attribute_name }}\", must conform to the pattern #{pattern}.") end {%- endif %} {%- if definition.maxItems is defined %} - if {% if required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.length > {{ definition.maxItems }} + if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.length > {{ definition.maxItems }} invalid_properties.push('invalid value for "{{ attr|attribute_name }}", number of items must be less than or equal to {{ definition.maxItems }}.') end {%- endif %} {%- if definition.minItems is defined %} - if {% if required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.length < {{ definition.minItems }} + if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.length < {{ definition.minItems }} invalid_properties.push('invalid value for "{{ attr|attribute_name }}", number of items must be greater than or equal to {{ definition.minItems }}.') end diff --git a/lib/datadog_api_client/v1/models/api_key.rb b/lib/datadog_api_client/v1/models/api_key.rb index 72ac6324899..ce76ae94b44 100644 --- a/lib/datadog_api_client/v1/models/api_key.rb +++ b/lib/datadog_api_client/v1/models/api_key.rb @@ -108,10 +108,10 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @key.to_s.length > 32 + if !@key.nil? && @key.to_s.length > 32 invalid_properties.push('invalid value for "key", the character length must be smaller than or equal to 32.') end - if @key.to_s.length < 32 + if !@key.nil? && @key.to_s.length < 32 invalid_properties.push('invalid value for "key", the character length must be great than or equal to 32.') end invalid_properties diff --git a/lib/datadog_api_client/v1/models/application_key.rb b/lib/datadog_api_client/v1/models/application_key.rb index 219bd183b5f..76004596d70 100644 --- a/lib/datadog_api_client/v1/models/application_key.rb +++ b/lib/datadog_api_client/v1/models/application_key.rb @@ -99,10 +99,10 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @hash.to_s.length > 40 + if !@hash.nil? && @hash.to_s.length > 40 invalid_properties.push('invalid value for "hash", the character length must be smaller than or equal to 40.') end - if @hash.to_s.length < 40 + if !@hash.nil? && @hash.to_s.length < 40 invalid_properties.push('invalid value for "hash", the character length must be great than or equal to 40.') end invalid_properties 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 61f76f00d32..2c500eba136 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition.rb @@ -147,10 +147,10 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - if !@requests.nil? && @requests.length > 1 + if @requests.length > 1 invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') end - if !@requests.nil? && @requests.length < 1 + if @requests.length < 1 invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') end if @type.nil? 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 2700c0b0a65..e27799776bd 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb @@ -185,10 +185,10 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - if !@requests.nil? && @requests.length > 1 + if @requests.length > 1 invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') end - if !@requests.nil? && @requests.length < 1 + if @requests.length < 1 invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') end if @type.nil? diff --git a/lib/datadog_api_client/v1/models/downtime.rb b/lib/datadog_api_client/v1/models/downtime.rb index 4a512fea6b6..2ef08754342 100644 --- a/lib/datadog_api_client/v1/models/downtime.rb +++ b/lib/datadog_api_client/v1/models/downtime.rb @@ -251,13 +251,13 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @creator_id > 2147483647 + if !@creator_id.nil? && @creator_id > 2147483647 invalid_properties.push('invalid value for "creator_id", must be smaller than or equal to 2147483647.') end - if @downtime_type > 2147483647 + if !@downtime_type.nil? && @downtime_type > 2147483647 invalid_properties.push('invalid value for "downtime_type", must be smaller than or equal to 2147483647.') end - if @updater_id > 2147483647 + if !@updater_id.nil? && @updater_id > 2147483647 invalid_properties.push('invalid value for "updater_id", must be smaller than or equal to 2147483647.') end invalid_properties diff --git a/lib/datadog_api_client/v1/models/downtime_child.rb b/lib/datadog_api_client/v1/models/downtime_child.rb index 4b04b333ec8..2a2ec4711fa 100644 --- a/lib/datadog_api_client/v1/models/downtime_child.rb +++ b/lib/datadog_api_client/v1/models/downtime_child.rb @@ -238,13 +238,13 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @creator_id > 2147483647 + if !@creator_id.nil? && @creator_id > 2147483647 invalid_properties.push('invalid value for "creator_id", must be smaller than or equal to 2147483647.') end - if @downtime_type > 2147483647 + if !@downtime_type.nil? && @downtime_type > 2147483647 invalid_properties.push('invalid value for "downtime_type", must be smaller than or equal to 2147483647.') end - if @updater_id > 2147483647 + if !@updater_id.nil? && @updater_id > 2147483647 invalid_properties.push('invalid value for "updater_id", must be smaller than or equal to 2147483647.') end invalid_properties diff --git a/lib/datadog_api_client/v1/models/downtime_recurrence.rb b/lib/datadog_api_client/v1/models/downtime_recurrence.rb index f209caea580..5f04d503ede 100644 --- a/lib/datadog_api_client/v1/models/downtime_recurrence.rb +++ b/lib/datadog_api_client/v1/models/downtime_recurrence.rb @@ -140,10 +140,10 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @period > 2147483647 + if !@period.nil? && @period > 2147483647 invalid_properties.push('invalid value for "period", must be smaller than or equal to 2147483647.') end - if @until_occurrences > 2147483647 + if !@until_occurrences.nil? && @until_occurrences > 2147483647 invalid_properties.push('invalid value for "until_occurrences", must be smaller than or equal to 2147483647.') end invalid_properties diff --git a/lib/datadog_api_client/v1/models/event.rb b/lib/datadog_api_client/v1/models/event.rb index eff9125e09c..d8ccce61724 100644 --- a/lib/datadog_api_client/v1/models/event.rb +++ b/lib/datadog_api_client/v1/models/event.rb @@ -199,7 +199,7 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @text.to_s.length > 4000 + if !@text.nil? && @text.to_s.length > 4000 invalid_properties.push('invalid value for "text", the character length must be smaller than or equal to 4000.') end invalid_properties 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 e93bd84509d..2f33d799ce1 100644 --- a/lib/datadog_api_client/v1/models/event_create_request.rb +++ b/lib/datadog_api_client/v1/models/event_create_request.rb @@ -181,13 +181,13 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @aggregation_key.to_s.length > 100 + if !@aggregation_key.nil? && @aggregation_key.to_s.length > 100 invalid_properties.push('invalid value for "aggregation_key", the character length must be smaller than or equal to 100.') end if @text.nil? invalid_properties.push('invalid value for "text", text cannot be nil.') end - if !@text.nil? && @text.to_s.length > 4000 + if @text.to_s.length > 4000 invalid_properties.push('invalid value for "text", the character length must be smaller than or equal to 4000.') end if @title.nil? 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 7c56570d61f..9a2ba189b72 100644 --- a/lib/datadog_api_client/v1/models/event_create_response.rb +++ b/lib/datadog_api_client/v1/models/event_create_response.rb @@ -206,10 +206,10 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @text.to_s.length > 4000 + if !@text.nil? && @text.to_s.length > 4000 invalid_properties.push('invalid value for "text", the character length must be smaller than or equal to 4000.') end - if @title.to_s.length > 100 + if !@title.nil? && @title.to_s.length > 100 invalid_properties.push('invalid value for "title", the character length must be smaller than or equal to 100.') end invalid_properties 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 f378109d8eb..0f02c81c0ad 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb @@ -133,10 +133,10 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - if !@requests.nil? && @requests.length > 1 + if @requests.length > 1 invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') end - if !@requests.nil? && @requests.length < 1 + if @requests.length < 1 invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') end if @type.nil? 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 020f73ba14d..be079afc95e 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb @@ -165,10 +165,10 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - if !@requests.nil? && @requests.length > 1 + if @requests.length > 1 invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') end - if !@requests.nil? && @requests.length < 1 + if @requests.length < 1 invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') end if @style.nil? 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 815d20135e6..2d0dcb2e031 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 @@ -182,10 +182,10 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - if !@requests.nil? && @requests.length > 1 + if @requests.length > 1 invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') end - if !@requests.nil? && @requests.length < 1 + if @requests.length < 1 invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') end if @type.nil? 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 a059ef1e739..4fc3a5e3c0d 100644 --- a/lib/datadog_api_client/v1/models/http_log_error.rb +++ b/lib/datadog_api_client/v1/models/http_log_error.rb @@ -93,7 +93,7 @@ def list_invalid_properties if @code.nil? invalid_properties.push('invalid value for "code", code cannot be nil.') end - if !@code.nil? && @code > 2147483647 + if @code > 2147483647 invalid_properties.push('invalid value for "code", must be smaller than or equal to 2147483647.') end if @message.nil? 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 6e7e3880245..2329fce353f 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 @@ -152,10 +152,10 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - if !@requests.nil? && @requests.length > 1 + if @requests.length > 1 invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') end - if !@requests.nil? && @requests.length < 1 + if @requests.length < 1 invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') end if @type.nil? 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 0d7a1eec5de..d8ccf1a2a11 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser.rb @@ -138,7 +138,7 @@ def list_invalid_properties if @grok.nil? invalid_properties.push('invalid value for "grok", grok cannot be nil.') end - if @samples.length > 5 + if !@samples.nil? && @samples.length > 5 invalid_properties.push('invalid value for "samples", number of items must be less than or equal to 5.') end if @source.nil? 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 98649d93cbe..795494bdb9f 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request.rb @@ -131,7 +131,7 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @limit > 1000 + if !@limit.nil? && @limit > 1000 invalid_properties.push('invalid value for "limit", must be smaller than or equal to 1000.') end if @time.nil? 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 ce488cbfc5b..ca63ac20ec1 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_metadata.rb @@ -198,10 +198,10 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @unit.length > 2 + if !@unit.nil? && @unit.length > 2 invalid_properties.push('invalid value for "unit", number of items must be less than or equal to 2.') end - if @unit.length < 2 + if !@unit.nil? && @unit.length < 2 invalid_properties.push('invalid value for "unit", number of items must be greater than or equal to 2.') end invalid_properties diff --git a/lib/datadog_api_client/v1/models/monitor.rb b/lib/datadog_api_client/v1/models/monitor.rb index 66ab912773a..a747832588e 100644 --- a/lib/datadog_api_client/v1/models/monitor.rb +++ b/lib/datadog_api_client/v1/models/monitor.rb @@ -223,10 +223,10 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @priority > 5 + if !@priority.nil? && @priority > 5 invalid_properties.push('invalid value for "priority", must be smaller than or equal to 5.') end - if @priority < 1 + if !@priority.nil? && @priority < 1 invalid_properties.push('invalid value for "priority", must be greater than or equal to 1.') end if @query.nil? diff --git a/lib/datadog_api_client/v1/models/monitor_options.rb b/lib/datadog_api_client/v1/models/monitor_options.rb index c9dcd02efdb..074b88f74e4 100644 --- a/lib/datadog_api_client/v1/models/monitor_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_options.rb @@ -356,10 +356,10 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @min_failure_duration > 7200 + if !@min_failure_duration.nil? && @min_failure_duration > 7200 invalid_properties.push('invalid value for "min_failure_duration", must be smaller than or equal to 7200.') end - if @min_failure_duration < 0 + if !@min_failure_duration.nil? && @min_failure_duration < 0 invalid_properties.push('invalid value for "min_failure_duration", must be greater than or equal to 0.') end invalid_properties 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 0c2f6931a9e..dd14ed49496 100644 --- a/lib/datadog_api_client/v1/models/monitor_update_request.rb +++ b/lib/datadog_api_client/v1/models/monitor_update_request.rb @@ -221,10 +221,10 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @priority > 5 + if !@priority.nil? && @priority > 5 invalid_properties.push('invalid value for "priority", must be smaller than or equal to 5.') end - if @priority < 1 + if !@priority.nil? && @priority < 1 invalid_properties.push('invalid value for "priority", must be greater than or equal to 1.') end invalid_properties 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 ee7693c1ba7..6ec91b7ae16 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 @@ -127,10 +127,10 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if !@name.nil? && @name.to_s.length > 80 + if @name.to_s.length > 80 invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 80.') end - if !@name.nil? && @name.to_s.length < 0 + if @name.to_s.length < 0 invalid_properties.push('invalid value for "name", the character length must be great than or equal to 0.') end if @time.nil? 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 0d495c49b07..36b5ed180a3 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 @@ -154,10 +154,10 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if !@name.nil? && @name.to_s.length > 80 + if @name.to_s.length > 80 invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 80.') end - if !@name.nil? && @name.to_s.length < 0 + if @name.to_s.length < 0 invalid_properties.push('invalid value for "name", the character length must be great than or equal to 0.') end if @time.nil? 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 1820be9b59f..f5f75c6554a 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 @@ -127,10 +127,10 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if !@name.nil? && @name.to_s.length > 80 + if @name.to_s.length > 80 invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 80.') end - if !@name.nil? && @name.to_s.length < 0 + if @name.to_s.length < 0 invalid_properties.push('invalid value for "name", the character length must be great than or equal to 0.') end if @time.nil? 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 05d2346cb6b..273fbf7320f 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 @@ -151,10 +151,10 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if !@name.nil? && @name.to_s.length > 80 + if @name.to_s.length > 80 invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 80.') end - if !@name.nil? && @name.to_s.length < 0 + if @name.to_s.length < 0 invalid_properties.push('invalid value for "name", the character length must be great than or equal to 0.') end invalid_properties diff --git a/lib/datadog_api_client/v1/models/organization.rb b/lib/datadog_api_client/v1/models/organization.rb index 683180db194..c615f3b0d27 100644 --- a/lib/datadog_api_client/v1/models/organization.rb +++ b/lib/datadog_api_client/v1/models/organization.rb @@ -135,7 +135,7 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @name > 32 + if !@name.nil? && @name > 32 invalid_properties.push('invalid value for "name", must be smaller than or equal to 32.') end invalid_properties 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 08b989fb421..94c44aee344 100644 --- a/lib/datadog_api_client/v1/models/organization_create_body.rb +++ b/lib/datadog_api_client/v1/models/organization_create_body.rb @@ -102,7 +102,7 @@ def list_invalid_properties if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if !@name.nil? && @name > 32 + if @name > 32 invalid_properties.push('invalid value for "name", must be smaller than or equal to 32.') end invalid_properties 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 b7f73c09aec..a7700c09222 100644 --- a/lib/datadog_api_client/v1/models/process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/process_query_definition.rb @@ -110,7 +110,7 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @limit < 0 + if !@limit.nil? && @limit < 0 invalid_properties.push('invalid value for "limit", must be greater than or equal to 0.') end if @metric.nil? 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 872e2baccae..1bd8cf7f400 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 @@ -180,10 +180,10 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - if !@requests.nil? && @requests.length > 1 + if @requests.length > 1 invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') end - if !@requests.nil? && @requests.length < 1 + if @requests.length < 1 invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') end if @type.nil? 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 f6c6960009f..a358fd77d67 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 @@ -144,7 +144,7 @@ def list_invalid_properties if @filters.nil? invalid_properties.push('invalid value for "filters", filters cannot be nil.') end - if !@filters.nil? && @filters.length < 1 + if @filters.length < 1 invalid_properties.push('invalid value for "filters", number of items must be greater than or equal to 1.') end if @service.nil? 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 e6d93da6286..f2910f5d393 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb @@ -162,7 +162,7 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - if !@requests.nil? && @requests.length < 1 + if @requests.length < 1 invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') end if @type.nil? 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 1acbcdc52fa..aed5427ffd0 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options.rb @@ -194,16 +194,16 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @monitor_priority > 5 + if !@monitor_priority.nil? && @monitor_priority > 5 invalid_properties.push('invalid value for "monitor_priority", must be smaller than or equal to 5.') end - if @monitor_priority < 1 + if !@monitor_priority.nil? && @monitor_priority < 1 invalid_properties.push('invalid value for "monitor_priority", must be greater than or equal to 1.') end - if @tick_every > 604800 + if !@tick_every.nil? && @tick_every > 604800 invalid_properties.push('invalid value for "tick_every", must be smaller than or equal to 604800.') end - if @tick_every < 30 + if !@tick_every.nil? && @tick_every < 30 invalid_properties.push('invalid value for "tick_every", must be greater than or equal to 30.') end invalid_properties 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 1f5b4706de8..1bd464f3839 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 @@ -83,10 +83,10 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @renotify_interval > 1440 + if !@renotify_interval.nil? && @renotify_interval > 1440 invalid_properties.push('invalid value for "renotify_interval", must be smaller than or equal to 1440.') end - if @renotify_interval < 0 + if !@renotify_interval.nil? && @renotify_interval < 0 invalid_properties.push('invalid value for "renotify_interval", must be greater than or equal to 0.') end invalid_properties 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 40d666823f6..2f609ff0047 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request.rb @@ -254,16 +254,16 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @dns_server_port > 65535 + if !@dns_server_port.nil? && @dns_server_port > 65535 invalid_properties.push('invalid value for "dns_server_port", must be smaller than or equal to 65535.') end - if @dns_server_port < 1 + if !@dns_server_port.nil? && @dns_server_port < 1 invalid_properties.push('invalid value for "dns_server_port", must be greater than or equal to 1.') end - if @number_of_packets > 10 + if !@number_of_packets.nil? && @number_of_packets > 10 invalid_properties.push('invalid value for "number_of_packets", must be smaller than or equal to 10.') end - if @number_of_packets < 0 + if !@number_of_packets.nil? && @number_of_packets < 0 invalid_properties.push('invalid value for "number_of_packets", must be greater than or equal to 0.') end invalid_properties 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 56a94dd3bc1..b073d889816 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb @@ -222,7 +222,7 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - if !@requests.nil? && @requests.length < 1 + if @requests.length < 1 invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') end if @type.nil? 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 a8445a9b736..cb84c6c107e 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_request.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_request.rb @@ -213,7 +213,7 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @conditional_formats.length < 1 + if !@conditional_formats.nil? && @conditional_formats.length < 1 invalid_properties.push('invalid value for "conditional_formats", number of items must be greater than or equal to 1.') end invalid_properties 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 9d766335658..84b058c5e12 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 @@ -135,10 +135,10 @@ def list_invalid_properties if @requests.nil? invalid_properties.push('invalid value for "requests", requests cannot be nil.') end - if !@requests.nil? && @requests.length > 1 + if @requests.length > 1 invalid_properties.push('invalid value for "requests", number of items must be less than or equal to 1.') end - if !@requests.nil? && @requests.length < 1 + if @requests.length < 1 invalid_properties.push('invalid value for "requests", number of items must be greater than or equal to 1.') end if @type.nil? diff --git a/lib/datadog_api_client/v1/models/widget_layout.rb b/lib/datadog_api_client/v1/models/widget_layout.rb index e41eda034f9..060a4bf7fec 100644 --- a/lib/datadog_api_client/v1/models/widget_layout.rb +++ b/lib/datadog_api_client/v1/models/widget_layout.rb @@ -121,25 +121,25 @@ def list_invalid_properties if @height.nil? invalid_properties.push('invalid value for "height", height cannot be nil.') end - if !@height.nil? && @height < 0 + if @height < 0 invalid_properties.push('invalid value for "height", must be greater than or equal to 0.') end if @width.nil? invalid_properties.push('invalid value for "width", width cannot be nil.') end - if !@width.nil? && @width < 0 + if @width < 0 invalid_properties.push('invalid value for "width", must be greater than or equal to 0.') end if @x.nil? invalid_properties.push('invalid value for "x", x cannot be nil.') end - if !@x.nil? && @x < 0 + if @x < 0 invalid_properties.push('invalid value for "x", must be greater than or equal to 0.') end if @y.nil? invalid_properties.push('invalid value for "y", y cannot be nil.') end - if !@y.nil? && @y < 0 + if @y < 0 invalid_properties.push('invalid value for "y", must be greater than or equal to 0.') end invalid_properties 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 9eb79f9035e..82ed2c7ca1e 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item.rb @@ -183,7 +183,7 @@ def list_invalid_properties if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end - if @popularity > 5 + if !@popularity.nil? && @popularity > 5 invalid_properties.push('invalid value for "popularity", must be smaller than or equal to 5.') end if @type.nil? 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 d68166fc71a..636b25717e9 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 @@ -117,10 +117,10 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @last4.to_s.length > 4 + if !@last4.nil? && @last4.to_s.length > 4 invalid_properties.push('invalid value for "last4", the character length must be smaller than or equal to 4.') end - if @last4.to_s.length < 4 + if !@last4.nil? && @last4.to_s.length < 4 invalid_properties.push('invalid value for "last4", the character length must be great than or equal to 4.') end invalid_properties 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 855a8e72bad..818e312b101 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 @@ -120,10 +120,10 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @last4.to_s.length > 4 + if !@last4.nil? && @last4.to_s.length > 4 invalid_properties.push('invalid value for "last4", the character length must be smaller than or equal to 4.') end - if @last4.to_s.length < 4 + if !@last4.nil? && @last4.to_s.length < 4 invalid_properties.push('invalid value for "last4", the character length must be great than or equal to 4.') end invalid_properties 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 597c3e216fd..bb633a2cae0 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,7 +92,7 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @limit > 1000 + if !@limit.nil? && @limit > 1000 invalid_properties.push('invalid value for "limit", must be smaller than or equal to 1000.') end invalid_properties 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 efc20592443..94a1509bd30 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 @@ -108,10 +108,10 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @last4.to_s.length > 4 + if !@last4.nil? && @last4.to_s.length > 4 invalid_properties.push('invalid value for "last4", the character length must be smaller than or equal to 4.') end - if @last4.to_s.length < 4 + if !@last4.nil? && @last4.to_s.length < 4 invalid_properties.push('invalid value for "last4", the character length must be great than or equal to 4.') end invalid_properties 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 641b9d6a1a4..aedde8ba754 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 @@ -111,10 +111,10 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @last4.to_s.length > 4 + if !@last4.nil? && @last4.to_s.length > 4 invalid_properties.push('invalid value for "last4", the character length must be smaller than or equal to 4.') end - if @last4.to_s.length < 4 + if !@last4.nil? && @last4.to_s.length < 4 invalid_properties.push('invalid value for "last4", the character length must be great than or equal to 4.') end invalid_properties 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 052f4bfb1c0..c1b408c80f8 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 @@ -91,10 +91,10 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @size > 10000 + if !@size.nil? && @size > 10000 invalid_properties.push('invalid value for "size", must be smaller than or equal to 10000.') end - if @size < 0 + if !@size.nil? && @size < 0 invalid_properties.push('invalid value for "size", must be greater than or equal to 0.') end invalid_properties 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 dd9c9e852d8..52dd2d5697b 100644 --- a/lib/datadog_api_client/v2/models/security_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_attributes.rb @@ -137,7 +137,7 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @version > 2147483647 + if !@version.nil? && @version > 2147483647 invalid_properties.push('invalid value for "version", must be smaller than or equal to 2147483647.') end invalid_properties 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 81fdf4315cb..9e41a5848f9 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 @@ -128,7 +128,7 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @version > 2147483647 + if !@version.nil? && @version > 2147483647 invalid_properties.push('invalid value for "version", must be smaller than or equal to 2147483647.') end invalid_properties 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 cf625789cb5..28cfc9f075b 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 @@ -170,7 +170,7 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @version > 2147483647 + if !@version.nil? && @version > 2147483647 invalid_properties.push('invalid value for "version", must be smaller than or equal to 2147483647.') end invalid_properties 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 8b0ca2a2f51..5f3138b4d79 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,7 +92,7 @@ def initialize(attributes = {}) # @!visibility private def list_invalid_properties invalid_properties = Array.new - if @limit > 1000 + if !@limit.nil? && @limit > 1000 invalid_properties.push('invalid value for "limit", must be smaller than or equal to 1000.') end invalid_properties From e48b1c9a31db7379c489efbffd9a7c2e60709148 Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Mon, 7 Feb 2022 12:04:02 +0100 Subject: [PATCH 11/23] attribute validation --- .../src/generator/templates/model_generic.j2 | 107 ++++++++++++++++-- .../models/alert_graph_widget_definition.rb | 48 ++++++++ .../models/alert_value_widget_definition.rb | 44 +++++++ .../v1/models/api_error_response.rb | 10 ++ lib/datadog_api_client/v1/models/api_key.rb | 14 +++ .../v1/models/apm_stats_query_column_type.rb | 30 +++++ .../v1/models/apm_stats_query_definition.rb | 54 +++++++++ .../v1/models/application_key.rb | 14 +++ .../models/aws_account_and_lambda_request.rb | 20 ++++ .../v1/models/aws_logs_services_request.rb | 20 ++++ .../v1/models/aws_tag_filter.rb | 10 ++ .../models/aws_tag_filter_create_request.rb | 10 ++ .../models/aws_tag_filter_delete_request.rb | 10 ++ .../cancel_downtimes_by_scope_request.rb | 10 ++ .../v1/models/change_widget_definition.rb | 42 +++++++ .../v1/models/change_widget_request.rb | 50 ++++++++ .../check_can_delete_monitor_response.rb | 10 ++ .../models/check_status_widget_definition.rb | 48 ++++++++ lib/datadog_api_client/v1/models/dashboard.rb | 44 +++++++ .../v1/models/dashboard_bulk_action_data.rb | 24 ++++ .../models/dashboard_bulk_delete_request.rb | 10 ++ .../v1/models/dashboard_list.rb | 10 ++ .../v1/models/dashboard_restore_request.rb | 10 ++ .../v1/models/dashboard_summary_definition.rb | 10 ++ .../v1/models/dashboard_template_variable.rb | 10 ++ .../models/distribution_widget_definition.rb | 42 +++++++ lib/datadog_api_client/v1/models/downtime.rb | 30 +++++ .../v1/models/downtime_child.rb | 30 +++++ .../v1/models/downtime_recurrence.rb | 20 ++++ lib/datadog_api_client/v1/models/event.rb | 30 +++++ .../v1/models/event_create_request.rb | 54 +++++++++ .../v1/models/event_create_response.rb | 40 +++++++ .../v1/models/event_query_definition.rb | 20 ++++ .../models/event_stream_widget_definition.rb | 44 +++++++ .../event_timeline_widget_definition.rb | 34 ++++++ ...n_apm_dependency_stats_query_definition.rb | 78 +++++++++++++ ...ion_apm_resource_stats_query_definition.rb | 58 ++++++++++ ...ula_and_function_event_query_definition.rb | 34 ++++++ ...function_event_query_definition_compute.rb | 14 +++ ..._function_event_query_definition_search.rb | 10 ++ ...rmula_and_function_event_query_group_by.rb | 10 ++ ..._and_function_event_query_group_by_sort.rb | 24 ++++ ...la_and_function_metric_query_definition.rb | 44 +++++++ ...a_and_function_process_query_definition.rb | 54 +++++++++ .../v1/models/free_text_widget_definition.rb | 34 ++++++ .../v1/models/funnel_query.rb | 34 ++++++ .../v1/models/funnel_query_steps_item.rb | 20 ++++ .../v1/models/funnel_widget_definition.rb | 42 +++++++ .../v1/models/funnel_widget_request.rb | 24 ++++ .../v1/models/geomap_widget_definition.rb | 62 ++++++++++ .../models/geomap_widget_definition_style.rb | 20 ++++ .../models/geomap_widget_definition_view.rb | 10 ++ .../v1/models/geomap_widget_request.rb | 10 ++ .../v1/models/group_widget_definition.rb | 48 ++++++++ .../v1/models/heat_map_widget_definition.rb | 42 +++++++ .../v1/models/host_map_widget_definition.rb | 44 +++++++ .../models/hourly_usage_attribution_body.rb | 10 ++ .../v1/models/http_log_error.rb | 24 ++++ .../v1/models/i_frame_widget_definition.rb | 24 ++++ .../v1/models/idp_form_data.rb | 10 ++ .../v1/models/idp_response.rb | 10 ++ .../v1/models/image_widget_definition.rb | 64 +++++++++++ .../v1/models/list_stream_column.rb | 24 ++++ .../v1/models/list_stream_query.rb | 24 ++++ .../models/list_stream_widget_definition.rb | 42 +++++++ .../v1/models/list_stream_widget_request.rb | 34 ++++++ .../models/log_query_definition_group_by.rb | 10 ++ .../log_query_definition_group_by_sort.rb | 24 ++++ .../v1/models/log_query_definition_search.rb | 10 ++ .../v1/models/log_stream_widget_definition.rb | 34 ++++++ .../v1/models/logs_arithmetic_processor.rb | 34 ++++++ .../v1/models/logs_attribute_remapper.rb | 44 +++++++ .../v1/models/logs_category_processor.rb | 34 ++++++ .../v1/models/logs_date_remapper.rb | 24 ++++ .../v1/models/logs_exclusion.rb | 10 ++ .../v1/models/logs_exclusion_filter.rb | 10 ++ .../v1/models/logs_geo_ip_parser.rb | 34 ++++++ .../v1/models/logs_grok_parser.rb | 44 +++++++ .../v1/models/logs_grok_parser_rules.rb | 10 ++ .../v1/models/logs_index.rb | 20 ++++ .../v1/models/logs_index_update_request.rb | 10 ++ .../v1/models/logs_indexes_order.rb | 10 ++ .../v1/models/logs_list_request.rb | 30 +++++ .../v1/models/logs_list_request_time.rb | 20 ++++ .../v1/models/logs_lookup_processor.rb | 44 +++++++ .../v1/models/logs_message_remapper.rb | 24 ++++ .../v1/models/logs_pipeline.rb | 10 ++ .../v1/models/logs_pipeline_processor.rb | 14 +++ .../v1/models/logs_pipelines_order.rb | 10 ++ .../v1/models/logs_query_compute.rb | 10 ++ .../v1/models/logs_service_remapper.rb | 24 ++++ .../v1/models/logs_status_remapper.rb | 24 ++++ .../models/logs_string_builder_processor.rb | 34 ++++++ .../v1/models/logs_trace_remapper.rb | 14 +++ .../v1/models/logs_url_parser.rb | 34 ++++++ .../v1/models/logs_user_agent_parser.rb | 34 ++++++ .../v1/models/metrics_payload.rb | 10 ++ .../v1/models/metrics_query_metadata.rb | 14 +++ lib/datadog_api_client/v1/models/monitor.rb | 48 ++++++++ ...ula_and_function_event_query_definition.rb | 34 ++++++ ...function_event_query_definition_compute.rb | 14 +++ ..._function_event_query_definition_search.rb | 10 ++ ...rmula_and_function_event_query_group_by.rb | 10 ++ ..._and_function_event_query_group_by_sort.rb | 24 ++++ .../v1/models/monitor_group_search_result.rb | 10 ++ .../v1/models/monitor_options.rb | 14 +++ .../v1/models/monitor_search_result.rb | 20 ++++ .../v1/models/monitor_state_group.rb | 10 ++ .../monitor_summary_widget_definition.rb | 74 ++++++++++++ .../v1/models/monitor_update_request.rb | 34 ++++++ .../v1/models/note_widget_definition.rb | 54 +++++++++ .../v1/models/notebook_absolute_time.rb | 20 ++++ .../v1/models/notebook_cell_create_request.rb | 24 ++++ .../v1/models/notebook_cell_response.rb | 34 ++++++ .../v1/models/notebook_cell_update_request.rb | 34 ++++++ .../v1/models/notebook_create_data.rb | 24 ++++ .../models/notebook_create_data_attributes.rb | 48 ++++++++ .../v1/models/notebook_create_request.rb | 10 ++ .../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 | 10 ++ .../notebook_markdown_cell_definition.rb | 24 ++++ .../v1/models/notebook_metadata.rb | 10 ++ .../v1/models/notebook_relative_time.rb | 14 +++ .../v1/models/notebook_response_data.rb | 34 ++++++ .../notebook_response_data_attributes.rb | 48 ++++++++ .../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 | 24 ++++ .../models/notebook_update_data_attributes.rb | 48 ++++++++ .../v1/models/notebook_update_request.rb | 10 ++ .../v1/models/notebooks_response_data.rb | 34 ++++++ .../notebooks_response_data_attributes.rb | 28 +++++ .../v1/models/organization.rb | 10 ++ .../v1/models/organization_create_body.rb | 14 +++ .../v1/models/organization_settings.rb | 10 ++ .../v1/models/pager_duty_service.rb | 20 ++++ .../v1/models/pager_duty_service_key.rb | 10 ++ .../v1/models/pager_duty_service_name.rb | 10 ++ .../v1/models/process_query_definition.rb | 20 ++++ .../models/query_value_widget_definition.rb | 52 +++++++++ .../v1/models/query_value_widget_request.rb | 20 ++++ .../v1/models/scatter_plot_request.rb | 10 ++ .../models/scatter_plot_widget_definition.rb | 34 ++++++ .../v1/models/scatterplot_table_request.rb | 10 ++ .../v1/models/scatterplot_widget_formula.rb | 24 ++++ lib/datadog_api_client/v1/models/series.rb | 20 ++++ .../v1/models/service_check.rb | 44 +++++++ .../v1/models/service_level_objective.rb | 34 ++++++ .../models/service_level_objective_query.rb | 20 ++++ .../models/service_level_objective_request.rb | 34 ++++++ .../models/service_map_widget_definition.rb | 48 ++++++++ .../service_summary_widget_definition.rb | 74 ++++++++++++ .../v1/models/slo_bulk_delete_error.rb | 34 ++++++ .../v1/models/slo_correction.rb | 10 ++ .../v1/models/slo_correction_create_data.rb | 14 +++ ...lo_correction_create_request_attributes.rb | 34 ++++++ .../slo_correction_response_attributes.rb | 10 ++ .../v1/models/slo_correction_update_data.rb | 10 ++ ...lo_correction_update_request_attributes.rb | 10 ++ .../v1/models/slo_history_metrics.rb | 70 ++++++++++++ .../v1/models/slo_history_metrics_series.rb | 30 +++++ .../v1/models/slo_history_response_data.rb | 20 ++++ .../slo_history_response_error_with_type.rb | 20 ++++ .../v1/models/slo_response_data.rb | 10 ++ .../v1/models/slo_threshold.rb | 24 ++++ .../v1/models/slo_widget_definition.rb | 44 +++++++ .../v1/models/sunburst_widget_definition.rb | 38 +++++++ ...sunburst_widget_legend_inline_automatic.rb | 14 +++ .../v1/models/sunburst_widget_legend_table.rb | 14 +++ .../v1/models/sunburst_widget_request.rb | 10 ++ .../v1/models/synthetics_api_step.rb | 44 +++++++ .../v1/models/synthetics_api_test.rb | 74 ++++++++++++ .../models/synthetics_api_test_result_data.rb | 10 ++ .../synthetics_api_test_result_failure.rb | 10 ++ .../models/synthetics_api_test_result_full.rb | 10 ++ .../synthetics_api_test_result_full_check.rb | 10 ++ .../synthetics_api_test_result_short.rb | 10 ++ .../synthetics_assertion_json_path_target.rb | 28 +++++ .../v1/models/synthetics_assertion_target.rb | 38 +++++++ .../v1/models/synthetics_basic_auth_ntlm.rb | 14 +++ .../v1/models/synthetics_basic_auth_sigv4.rb | 34 ++++++ .../v1/models/synthetics_basic_auth_web.rb | 34 ++++++ .../models/synthetics_batch_details_data.rb | 10 ++ .../v1/models/synthetics_batch_result.rb | 40 +++++++ .../v1/models/synthetics_browser_error.rb | 34 ++++++ .../v1/models/synthetics_browser_test.rb | 64 +++++++++++ .../models/synthetics_browser_test_config.rb | 20 ++++ .../synthetics_browser_test_result_failure.rb | 10 ++ .../synthetics_browser_test_result_full.rb | 10 ++ ...nthetics_browser_test_result_full_check.rb | 10 ++ .../synthetics_browser_test_result_short.rb | 10 ++ .../v1/models/synthetics_browser_variable.rb | 24 ++++ .../v1/models/synthetics_ci_test.rb | 10 ++ .../v1/models/synthetics_config_variable.rb | 24 ++++ .../v1/models/synthetics_device.rb | 44 +++++++ .../v1/models/synthetics_global_variable.rb | 40 +++++++ ...tics_global_variable_parse_test_options.rb | 24 ++++ .../v1/models/synthetics_parsing_options.rb | 10 ++ .../v1/models/synthetics_private_location.rb | 30 +++++ .../v1/models/synthetics_step.rb | 10 ++ .../v1/models/synthetics_step_detail.rb | 30 +++++ .../models/synthetics_step_detail_warning.rb | 24 ++++ .../v1/models/synthetics_test_details.rb | 30 +++++ .../v1/models/synthetics_test_options.rb | 28 +++++ ...synthetics_test_options_monitor_options.rb | 14 +++ .../v1/models/synthetics_test_request.rb | 38 +++++++ .../models/synthetics_test_request_proxy.rb | 10 ++ .../v1/models/synthetics_trigger_body.rb | 10 ++ .../synthetics_trigger_ci_test_run_result.rb | 10 ++ .../v1/models/synthetics_trigger_test.rb | 10 ++ ...hetics_update_test_pause_status_payload.rb | 10 ++ .../v1/models/synthetics_variable_parser.rb | 14 +++ .../v1/models/table_widget_definition.rb | 44 +++++++ .../v1/models/table_widget_request.rb | 30 +++++ .../v1/models/timeseries_widget_definition.rb | 48 ++++++++ .../timeseries_widget_expression_alias.rb | 10 ++ .../v1/models/timeseries_widget_request.rb | 20 ++++ .../v1/models/toplist_widget_definition.rb | 34 ++++++ .../v1/models/toplist_widget_request.rb | 20 ++++ .../v1/models/tree_map_widget_definition.rb | 62 ++++++++++ .../v1/models/tree_map_widget_request.rb | 10 ++ .../v1/models/usage_custom_reports_data.rb | 10 ++ .../usage_specified_custom_reports_data.rb | 10 ++ .../v1/models/usage_top_avg_metrics_hour.rb | 10 ++ lib/datadog_api_client/v1/models/user.rb | 10 ++ .../v1/models/webhooks_integration.rb | 30 +++++ .../webhooks_integration_custom_variable.rb | 30 +++++ ...ks_integration_custom_variable_response.rb | 20 ++++ .../webhooks_integration_update_request.rb | 10 ++ lib/datadog_api_client/v1/models/widget.rb | 10 ++ .../v1/models/widget_conditional_format.rb | 38 +++++++ .../v1/models/widget_event.rb | 10 ++ .../v1/models/widget_field_sort.rb | 24 ++++ .../v1/models/widget_formula.rb | 20 ++++ .../v1/models/widget_formula_limit.rb | 10 ++ .../v1/models/widget_layout.rb | 56 +++++++++ .../v1/models/widget_marker.rb | 10 ++ .../v1/models/widget_request_style.rb | 20 ++++ .../v1/models/widget_time.rb | 10 ++ .../v2/models/api_error_response.rb | 10 ++ .../v2/models/api_key_create_attributes.rb | 10 ++ .../v2/models/api_key_create_data.rb | 24 ++++ .../v2/models/api_key_create_request.rb | 10 ++ .../v2/models/api_key_update_attributes.rb | 10 ++ .../v2/models/api_key_update_data.rb | 34 ++++++ .../v2/models/api_key_update_request.rb | 10 ++ .../application_key_create_attributes.rb | 10 ++ .../v2/models/application_key_create_data.rb | 24 ++++ .../models/application_key_create_request.rb | 10 ++ .../v2/models/application_key_update_data.rb | 34 ++++++ .../models/application_key_update_request.rb | 10 ++ ...d_security_agent_rule_create_attributes.rb | 20 ++++ ...orkload_security_agent_rule_create_data.rb | 24 ++++ ...load_security_agent_rule_create_request.rb | 10 ++ ...cloud_workload_security_agent_rule_data.rb | 10 ++ ...orkload_security_agent_rule_update_data.rb | 24 ++++ ...load_security_agent_rule_update_request.rb | 10 ++ .../v2/models/dashboard_list_item.rb | 34 ++++++ .../v2/models/dashboard_list_item_request.rb | 24 ++++ .../v2/models/dashboard_list_item_response.rb | 24 ++++ .../v2/models/dashboard_list_items.rb | 10 ++ .../v2/models/full_api_key.rb | 10 ++ .../v2/models/full_api_key_attributes.rb | 14 +++ .../v2/models/full_application_key.rb | 10 ++ .../models/full_application_key_attributes.rb | 14 +++ .../v2/models/incident_create_attributes.rb | 20 ++++ .../v2/models/incident_create_data.rb | 24 ++++ .../models/incident_create_relationships.rb | 10 ++ .../v2/models/incident_create_request.rb | 10 ++ ...ncident_field_attributes_multiple_value.rb | 10 ++ .../incident_field_attributes_single_value.rb | 10 ++ .../v2/models/incident_response.rb | 10 ++ .../v2/models/incident_response_attributes.rb | 10 ++ .../v2/models/incident_response_data.rb | 24 ++++ .../incident_service_create_attributes.rb | 10 ++ .../v2/models/incident_service_create_data.rb | 14 +++ .../models/incident_service_create_request.rb | 10 ++ .../v2/models/incident_service_response.rb | 10 ++ .../models/incident_service_response_data.rb | 24 ++++ .../incident_service_update_attributes.rb | 10 ++ .../v2/models/incident_service_update_data.rb | 14 +++ .../models/incident_service_update_request.rb | 10 ++ .../v2/models/incident_services_response.rb | 10 ++ .../models/incident_team_create_attributes.rb | 10 ++ .../v2/models/incident_team_create_data.rb | 14 +++ .../v2/models/incident_team_create_request.rb | 10 ++ .../v2/models/incident_team_response.rb | 10 ++ .../v2/models/incident_team_response_data.rb | 10 ++ .../models/incident_team_update_attributes.rb | 10 ++ .../v2/models/incident_team_update_data.rb | 14 +++ .../v2/models/incident_team_update_request.rb | 10 ++ .../v2/models/incident_teams_response.rb | 10 ++ ...imeline_cell_markdown_create_attributes.rb | 24 ++++ .../v2/models/incident_update_data.rb | 24 ++++ .../v2/models/incident_update_request.rb | 10 ++ .../v2/models/incidents_response.rb | 10 ++ lib/datadog_api_client/v2/models/log.rb | 10 ++ .../v2/models/logs_aggregate_sort.rb | 30 +++++ .../v2/models/logs_archive_attributes.rb | 30 +++++ .../logs_archive_create_request_attributes.rb | 30 +++++ .../logs_archive_create_request_definition.rb | 10 ++ .../v2/models/logs_archive_definition.rb | 10 ++ .../models/logs_archive_destination_azure.rb | 44 +++++++ .../v2/models/logs_archive_destination_gcs.rb | 34 ++++++ .../v2/models/logs_archive_destination_s3.rb | 34 ++++++ .../models/logs_archive_integration_azure.rb | 20 ++++ .../v2/models/logs_archive_integration_gcs.rb | 20 ++++ .../v2/models/logs_archive_integration_s3.rb | 20 ++++ .../models/logs_archive_order_attributes.rb | 10 ++ .../models/logs_archive_order_definition.rb | 24 ++++ .../v2/models/logs_compute.rb | 24 ++++ .../v2/models/logs_group_by.rb | 10 ++ .../v2/models/logs_group_by_histogram.rb | 30 +++++ .../v2/models/logs_list_request.rb | 10 ++ .../v2/models/logs_list_request_page.rb | 10 ++ .../v2/models/logs_metric_compute.rb | 14 +++ .../models/logs_metric_create_attributes.rb | 10 ++ .../v2/models/logs_metric_create_data.rb | 34 ++++++ .../v2/models/logs_metric_create_request.rb | 10 ++ .../v2/models/logs_metric_group_by.rb | 10 ++ .../v2/models/logs_metric_response_compute.rb | 10 ++ .../v2/models/logs_metric_response_data.rb | 10 ++ .../v2/models/logs_metric_update_data.rb | 24 ++++ .../v2/models/logs_metric_update_request.rb | 10 ++ .../v2/models/logs_response_metadata.rb | 10 ++ lib/datadog_api_client/v2/models/metric.rb | 10 ++ .../v2/models/metric_all_tags.rb | 10 ++ .../v2/models/metric_custom_aggregation.rb | 28 +++++ .../v2/models/metric_distinct_volume.rb | 10 ++ .../models/metric_ingested_indexed_volume.rb | 10 ++ .../v2/models/metric_tag_configuration.rb | 10 ++ .../metric_tag_configuration_attributes.rb | 10 ++ ...ric_tag_configuration_create_attributes.rb | 24 ++++ .../metric_tag_configuration_create_data.rb | 24 ++++ ...metric_tag_configuration_create_request.rb | 10 ++ .../metric_tag_configuration_update_data.rb | 24 ++++ ...metric_tag_configuration_update_request.rb | 10 ++ .../v2/models/organization.rb | 14 +++ .../v2/models/partial_api_key.rb | 10 ++ .../v2/models/partial_api_key_attributes.rb | 14 +++ .../v2/models/partial_application_key.rb | 10 ++ .../partial_application_key_attributes.rb | 14 +++ .../v2/models/permission.rb | 14 +++ .../v2/models/process_summaries_meta_page.rb | 14 +++ .../v2/models/process_summary.rb | 10 ++ ...p_to_incident_integration_metadata_data.rb | 24 ++++ ...nship_to_incident_integration_metadatas.rb | 10 ++ .../relationship_to_incident_postmortem.rb | 10 ++ ...elationship_to_incident_postmortem_data.rb | 24 ++++ .../v2/models/relationship_to_organization.rb | 10 ++ .../relationship_to_organization_data.rb | 24 ++++ .../models/relationship_to_organizations.rb | 10 ++ .../models/relationship_to_permission_data.rb | 10 ++ .../v2/models/relationship_to_role_data.rb | 10 ++ .../v2/models/relationship_to_user.rb | 10 ++ .../v2/models/relationship_to_user_data.rb | 24 ++++ .../v2/models/relationship_to_users.rb | 10 ++ lib/datadog_api_client/v2/models/role.rb | 14 +++ .../v2/models/role_clone.rb | 24 ++++ .../v2/models/role_clone_attributes.rb | 10 ++ .../v2/models/role_clone_request.rb | 10 ++ .../v2/models/role_create_attributes.rb | 10 ++ .../v2/models/role_create_data.rb | 20 ++++ .../v2/models/role_create_request.rb | 10 ++ .../v2/models/role_create_response_data.rb | 14 +++ .../v2/models/role_update_data.rb | 34 ++++++ .../v2/models/role_update_request.rb | 10 ++ .../v2/models/role_update_response_data.rb | 14 +++ .../v2/models/security_filter.rb | 10 ++ .../v2/models/security_filter_attributes.rb | 20 ++++ .../security_filter_create_attributes.rb | 54 +++++++++ .../v2/models/security_filter_create_data.rb | 24 ++++ .../models/security_filter_create_request.rb | 10 ++ .../security_filter_exclusion_filter.rb | 20 ++++ .../security_filter_update_attributes.rb | 20 ++++ .../v2/models/security_filter_update_data.rb | 24 ++++ .../models/security_filter_update_request.rb | 10 ++ .../v2/models/security_monitoring_filter.rb | 10 ++ .../models/security_monitoring_rule_case.rb | 10 ++ .../security_monitoring_rule_case_create.rb | 14 +++ ...security_monitoring_rule_create_payload.rb | 70 ++++++++++++ ...urity_monitoring_rule_new_value_options.rb | 20 ++++ .../security_monitoring_rule_options.rb | 40 +++++++ .../models/security_monitoring_rule_query.rb | 10 ++ .../security_monitoring_rule_query_create.rb | 20 ++++ .../security_monitoring_rule_response.rb | 10 ++ ...security_monitoring_rule_update_payload.rb | 10 ++ .../v2/models/security_monitoring_signal.rb | 10 ++ ...security_monitoring_signal_list_request.rb | 10 ++ ...ity_monitoring_signal_list_request_page.rb | 10 ++ .../service_account_create_attributes.rb | 20 ++++ .../v2/models/service_account_create_data.rb | 24 ++++ .../models/service_account_create_request.rb | 10 ++ lib/datadog_api_client/v2/models/user.rb | 10 ++ .../v2/models/user_create_attributes.rb | 10 ++ .../v2/models/user_create_data.rb | 24 ++++ .../v2/models/user_create_request.rb | 10 ++ .../v2/models/user_invitation_data.rb | 24 ++++ .../models/user_invitation_relationships.rb | 10 ++ .../models/user_invitation_response_data.rb | 10 ++ .../v2/models/user_invitations_request.rb | 10 ++ .../v2/models/user_update_data.rb | 34 ++++++ .../v2/models/user_update_request.rb | 10 ++ 406 files changed, 8831 insertions(+), 8 deletions(-) diff --git a/.generator/src/generator/templates/model_generic.j2 b/.generator/src/generator/templates/model_generic.j2 index a01f30875e1..f46eed0d705 100644 --- a/.generator/src/generator/templates/model_generic.j2 +++ b/.generator/src/generator/templates/model_generic.j2 @@ -88,50 +88,42 @@ if @{{ attr|attribute_name }}.nil? invalid_properties.push('invalid value for "{{ attr|attribute_name }}", {{ attr|attribute_name }} cannot be nil.') end - {%- endif %} {%- if definition.maxLength is defined %} if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.to_s.length > {{ definition.maxLength }} invalid_properties.push('invalid value for "{{ attr|attribute_name }}", the character length must be smaller than or equal to {{ definition.maxLength }}.') end - {%- endif %} {%- if definition.minLength is defined %} if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.to_s.length < {{ definition.minLength }} invalid_properties.push('invalid value for "{{ attr|attribute_name }}", the character length must be great than or equal to {{ definition.minLength }}.') end - {%- endif %} {%- if definition.maximum is defined %} if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} >{% if definition.exclusiveMaximum %}={% endif %} {{ definition.maximum }} invalid_properties.push('invalid value for "{{ attr|attribute_name }}", must be smaller than {% if not definition.exclusiveMaximum %}or equal to {% endif %}{{ definition.maximum }}.') end - {%- endif %} {%- if definition.minimum is defined %} if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} <{% if definition.exclusiveMinimum %}={% endif %} {{ definition.minimum }} invalid_properties.push('invalid value for "{{ attr|attribute_name }}", must be greater than {% if not definition.exclusiveMinimum %}or equal to {% endif %}{{ definition.minimum }}.') end - {%- endif %} {%- if definition.pattern is defined %} pattern = Regexp.new({{ definition.pattern }}) if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} !~ pattern invalid_properties.push("invalid value for \"{{ attr|attribute_name }}\", must conform to the pattern #{pattern}.") end - {%- endif %} {%- if definition.maxItems is defined %} if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.length > {{ definition.maxItems }} invalid_properties.push('invalid value for "{{ attr|attribute_name }}", number of items must be less than or equal to {{ definition.maxItems }}.') end - {%- endif %} {%- if definition.minItems is defined %} if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.length < {{ definition.minItems }} invalid_properties.push('invalid value for "{{ attr|attribute_name }}", number of items must be greater than or equal to {{ definition.minItems }}.') end - {%- endif %} {%- endfor %} invalid_properties @@ -145,10 +137,109 @@ {%- if attr in model.get("required", []) %} return false if @{{ attr|attribute_name }}.nil? {%- endif %} +{%- endfor %} +{%- for attr, definition in model.get("properties", {}).items() %} + {%- set required = attr in model.get("required", []) %} + {%- if not definition.nullable and required %} + return false if @{{ attr|attribute_name }}.nil? + {%- endif %} + {%- if definition.maxLength is defined %} + return false if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.to_s.length > {{ definition.maxLength }} + {%- endif %} + {%- if definition.minLength is defined %} + return false if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.to_s.length < {{ definition.minLength }} + {%- endif %} + {%- if definition.maximum is defined %} + return false if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} >{% if definition.exclusiveMaximum %}={% endif %} {{ definition.maximum }} + {%- endif %} + {%- if definition.minimum is defined %} + return false if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} <{% if definition.exclusiveMinimum %}={% endif %} {{ definition.minimum }} + {%- endif %} + {%- if definition.pattern is defined %} + pattern = Regexp.new({{ definition.pattern }}) + return false if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} !~ pattern + {%- endif %} + {%- if definition.maxItems is defined %} + return false if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.length > {{ definition.maxItems }} + {%- endif %} + {%- if definition.minItems is defined %} + return false if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.length < {{ definition.minItems }} + {%- endif %} {%- endfor %} true end +{%- for attr, definition in model.get("properties", {}).items() %} + {%- set required = attr in model.get("required", []) %} + {%- set collection = definition.get("type") == "array" or "items" in definition %} + {%- set has_validation = ( + (not definition.nullable and required) or + definition.maxLength is defined or + definition.minLength is defined or + definition.maximum is defined or + definition.minimum is defined or + definition.pattern is defined or + definition.maxItems is defined or + definition.minItems is defined or + (not collection and definition.enum is defined) + ) %} + {%- if has_validation %} + + # Custom attribute writer method with validation + # @param {{ attr|attribute_name }} [Object] Object to be assigned + def {{ attr|attribute_name }}=({{ attr|attribute_name }}) + {%- if not collection and definition.enum is defined %} + validator = EnumAttributeValidator.new('{{ get_name(definition) }}', [{% for value in definition.enum %}{{ value|format_value }}{%- if not loop.last %}, {% endif %}{% endfor %}]) + unless validator.valid?({{ attr|attribute_name }}) + fail ArgumentError, "invalid value for \"{{ attr|attribute_name }}\", must be one of #{validator.allowable_values}." + end + {%- endif %} + {%- if not definition.nullable and required %} + if @{{ attr|attribute_name }}.nil? + fail ArgumentError, 'invalid value for "{{ attr|attribute_name }}", {{ attr|attribute_name }} cannot be nil.' + end + {%- endif %} + {%- if definition.maxLength is defined %} + if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.to_s.length > {{ definition.maxLength }} + fail ArgumentError, 'invalid value for "{{ attr|attribute_name }}", the character length must be smaller than or equal to {{ definition.maxLength }}.' + end + {%- endif %} + {%- if definition.minLength is defined %} + if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.to_s.length < {{ definition.minLength }} + fail ArgumentError, 'invalid value for "{{ attr|attribute_name }}", the character length must be great than or equal to {{ definition.minLength }}.' + end + {%- endif %} + {%- if definition.maximum is defined %} + if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} >{% if definition.exclusiveMaximum %}={% endif %} {{ definition.maximum }} + fail ArgumentError, 'invalid value for "{{ attr|attribute_name }}", must be smaller than {% if not definition.exclusiveMaximum %}or equal to {% endif %}{{ definition.maximum }}.' + end + {%- endif %} + {%- if definition.minimum is defined %} + if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} <{% if definition.exclusiveMinimum %}={% endif %} {{ definition.minimum }} + fail ArgumentError, 'invalid value for "{{ attr|attribute_name }}", must be greater than {% if not definition.exclusiveMinimum %}or equal to {% endif %}{{ definition.minimum }}.' + end + {%- endif %} + {%- if definition.pattern is defined %} + pattern = Regexp.new({{ definition.pattern }}) + if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} !~ pattern + fail ArgumentError, "invalid value for \"{{ attr|attribute_name }}\", must conform to the pattern #{pattern}." + end + {%- endif %} + {%- if definition.maxItems is defined %} + if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.length > {{ definition.maxItems }} + fail ArgumentError, 'invalid value for "{{ attr|attribute_name }}", number of items must be less than or equal to {{ definition.maxItems }}.' + end + {%- endif %} + {%- if definition.minItems is defined %} + if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.length < {{ definition.minItems }} + fail ArgumentError, 'invalid value for "{{ attr|attribute_name }}", number of items must be greater than or equal to {{ definition.minItems }}.' + end + {%- endif %} + @{{ attr|attribute_name }} = {{ attr|attribute_name }} + end + {%- endif %} +{%- endfor %} + # 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 ed5b4a09e00..6bc1e50054a 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 @@ -153,12 +153,60 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @alert_id.nil? + return false if @type.nil? + return false if @viz_type.nil? return false if @alert_id.nil? return false if @type.nil? return false if @viz_type.nil? true end + # Custom attribute writer method with validation + # @param alert_id [Object] Object to be assigned + def alert_id=(alert_id) + if @alert_id.nil? + fail ArgumentError, 'invalid value for "alert_id", alert_id cannot be nil.' + end + @alert_id = alert_id + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('AlertGraphWidgetDefinitionType', ['alert_graph']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + + # Custom attribute writer method with validation + # @param viz_type [Object] Object to be assigned + def viz_type=(viz_type) + validator = EnumAttributeValidator.new('WidgetVizType', ['timeseries', 'toplist']) + unless validator.valid?(viz_type) + fail ArgumentError, "invalid value for \"viz_type\", must be one of #{validator.allowable_values}." + end + if @viz_type.nil? + fail ArgumentError, 'invalid value for "viz_type", viz_type cannot be nil.' + end + @viz_type = viz_type + end + # 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 1d88550dcc0..52cb3ad9aca 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 @@ -159,11 +159,55 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @alert_id.nil? + return false if @type.nil? return false if @alert_id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param alert_id [Object] Object to be assigned + def alert_id=(alert_id) + if @alert_id.nil? + fail ArgumentError, 'invalid value for "alert_id", alert_id cannot be nil.' + end + @alert_id = alert_id + end + + # Custom attribute writer method with validation + # @param text_align [Object] Object to be assigned + def text_align=(text_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(text_align) + fail ArgumentError, "invalid value for \"text_align\", must be one of #{validator.allowable_values}." + end + @text_align = text_align + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('AlertValueWidgetDefinitionType', ['alert_value']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 0c7938d3fbb..18da8f2ae2f 100644 --- a/lib/datadog_api_client/v1/models/api_error_response.rb +++ b/lib/datadog_api_client/v1/models/api_error_response.rb @@ -93,10 +93,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @errors.nil? return false if @errors.nil? true end + # Custom attribute writer method with validation + # @param errors [Object] Object to be assigned + def errors=(errors) + if @errors.nil? + fail ArgumentError, 'invalid value for "errors", errors cannot be nil.' + end + @errors = errors + end + # 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 ce76ae94b44..c51d8c07cae 100644 --- a/lib/datadog_api_client/v1/models/api_key.rb +++ b/lib/datadog_api_client/v1/models/api_key.rb @@ -121,9 +121,23 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@key.nil? && @key.to_s.length > 32 + return false if !@key.nil? && @key.to_s.length < 32 true end + # Custom attribute writer method with validation + # @param key [Object] Object to be assigned + def key=(key) + if !@key.nil? && @key.to_s.length > 32 + fail ArgumentError, 'invalid value for "key", the character length must be smaller than or equal to 32.' + end + if !@key.nil? && @key.to_s.length < 32 + fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 32.' + end + @key = key + end + # 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 662e711292c..1b77c5b94fd 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 @@ -118,10 +118,40 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param cell_display_mode [Object] Object to be assigned + def cell_display_mode=(cell_display_mode) + validator = EnumAttributeValidator.new('TableWidgetCellDisplayMode', ['number', 'bar']) + unless validator.valid?(cell_display_mode) + fail ArgumentError, "invalid value for \"cell_display_mode\", must be one of #{validator.allowable_values}." + end + @cell_display_mode = cell_display_mode + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param order [Object] Object to be assigned + def order=(order) + validator = EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) + unless validator.valid?(order) + fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." + end + @order = order + end + # 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 65f87e9a74f..84153b959f3 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 @@ -159,6 +159,11 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @env.nil? + return false if @name.nil? + return false if @primary_tag.nil? + return false if @row_type.nil? + return false if @service.nil? return false if @env.nil? return false if @name.nil? return false if @primary_tag.nil? @@ -167,6 +172,55 @@ def valid? true end + # Custom attribute writer method with validation + # @param env [Object] Object to be assigned + def env=(env) + if @env.nil? + fail ArgumentError, 'invalid value for "env", env cannot be nil.' + end + @env = env + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param primary_tag [Object] Object to be assigned + def primary_tag=(primary_tag) + if @primary_tag.nil? + fail ArgumentError, 'invalid value for "primary_tag", primary_tag cannot be nil.' + end + @primary_tag = primary_tag + end + + # Custom attribute writer method with validation + # @param row_type [Object] Object to be assigned + def row_type=(row_type) + validator = EnumAttributeValidator.new('ApmStatsQueryRowType', ['service', 'resource', 'span']) + unless validator.valid?(row_type) + fail ArgumentError, "invalid value for \"row_type\", must be one of #{validator.allowable_values}." + end + if @row_type.nil? + fail ArgumentError, 'invalid value for "row_type", row_type cannot be nil.' + end + @row_type = row_type + end + + # Custom attribute writer method with validation + # @param service [Object] Object to be assigned + def service=(service) + if @service.nil? + fail ArgumentError, 'invalid value for "service", service cannot be nil.' + end + @service = service + end + # 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 76004596d70..8730c06793e 100644 --- a/lib/datadog_api_client/v1/models/application_key.rb +++ b/lib/datadog_api_client/v1/models/application_key.rb @@ -112,9 +112,23 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@hash.nil? && @hash.to_s.length > 40 + return false if !@hash.nil? && @hash.to_s.length < 40 true end + # Custom attribute writer method with validation + # @param hash [Object] Object to be assigned + def hash=(hash) + if !@hash.nil? && @hash.to_s.length > 40 + fail ArgumentError, 'invalid value for "hash", the character length must be smaller than or equal to 40.' + end + if !@hash.nil? && @hash.to_s.length < 40 + fail ArgumentError, 'invalid value for "hash", the character length must be great than or equal to 40.' + end + @hash = hash + end + # 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 3c03275c512..0c3939b8c55 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,11 +103,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @account_id.nil? + return false if @lambda_arn.nil? return false if @account_id.nil? return false if @lambda_arn.nil? true end + # Custom attribute writer method with validation + # @param account_id [Object] Object to be assigned + def account_id=(account_id) + if @account_id.nil? + fail ArgumentError, 'invalid value for "account_id", account_id cannot be nil.' + end + @account_id = account_id + end + + # Custom attribute writer method with validation + # @param lambda_arn [Object] Object to be assigned + def lambda_arn=(lambda_arn) + if @lambda_arn.nil? + fail ArgumentError, 'invalid value for "lambda_arn", lambda_arn cannot be nil.' + end + @lambda_arn = lambda_arn + end + # 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 ebfeef5cbae..a19255c8487 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,11 +105,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @account_id.nil? + return false if @services.nil? return false if @account_id.nil? return false if @services.nil? true end + # Custom attribute writer method with validation + # @param account_id [Object] Object to be assigned + def account_id=(account_id) + if @account_id.nil? + fail ArgumentError, 'invalid value for "account_id", account_id cannot be nil.' + end + @account_id = account_id + end + + # Custom attribute writer method with validation + # @param services [Object] Object to be assigned + def services=(services) + if @services.nil? + fail ArgumentError, 'invalid value for "services", services cannot be nil.' + end + @services = services + end + # 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 3750296d96e..47057bb35dd 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter.rb @@ -100,6 +100,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param namespace [Object] Object to be assigned + def namespace=(namespace) + validator = EnumAttributeValidator.new('AWSNamespace', ['elb', 'application_elb', 'sqs', 'rds', 'custom', 'network_elb', 'lambda']) + unless validator.valid?(namespace) + fail ArgumentError, "invalid value for \"namespace\", must be one of #{validator.allowable_values}." + end + @namespace = namespace + end + # 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 8ba7db5a42f..9895bf139b1 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 @@ -109,6 +109,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param namespace [Object] Object to be assigned + def namespace=(namespace) + validator = EnumAttributeValidator.new('AWSNamespace', ['elb', 'application_elb', 'sqs', 'rds', 'custom', 'network_elb', 'lambda']) + unless validator.valid?(namespace) + fail ArgumentError, "invalid value for \"namespace\", must be one of #{validator.allowable_values}." + end + @namespace = namespace + end + # 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 5db75d502f8..26a8aecff94 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 @@ -100,6 +100,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param namespace [Object] Object to be assigned + def namespace=(namespace) + validator = EnumAttributeValidator.new('AWSNamespace', ['elb', 'application_elb', 'sqs', 'rds', 'custom', 'network_elb', 'lambda']) + unless validator.valid?(namespace) + fail ArgumentError, "invalid value for \"namespace\", must be one of #{validator.allowable_values}." + end + @namespace = namespace + end + # 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 215596b92ce..317f17fb744 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 @@ -93,10 +93,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @scope.nil? return false if @scope.nil? true end + # Custom attribute writer method with validation + # @param scope [Object] Object to be assigned + def scope=(scope) + if @scope.nil? + fail ArgumentError, 'invalid value for "scope", scope cannot be nil.' + end + @scope = scope + end + # 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 2c500eba136..5ddda553b6a 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition.rb @@ -165,9 +165,51 @@ def list_invalid_properties def valid? return false if @requests.nil? return false if @type.nil? + return false if @requests.nil? + return false if @requests.length > 1 + return false if @requests.length < 1 + return false if @type.nil? true end + # Custom attribute writer method with validation + # @param requests [Object] Object to be assigned + def requests=(requests) + if @requests.nil? + fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' + end + if @requests.length > 1 + fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' + end + if @requests.length < 1 + fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' + end + @requests = requests + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('ChangeWidgetDefinitionType', ['change']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 538e70a84e2..4d18b5c5d3f 100644 --- a/lib/datadog_api_client/v1/models/change_widget_request.rb +++ b/lib/datadog_api_client/v1/models/change_widget_request.rb @@ -248,6 +248,56 @@ def valid? true end + # Custom attribute writer method with validation + # @param change_type [Object] Object to be assigned + def change_type=(change_type) + validator = EnumAttributeValidator.new('WidgetChangeType', ['absolute', 'relative']) + unless validator.valid?(change_type) + fail ArgumentError, "invalid value for \"change_type\", must be one of #{validator.allowable_values}." + end + @change_type = change_type + end + + # Custom attribute writer method with validation + # @param compare_to [Object] Object to be assigned + def compare_to=(compare_to) + validator = EnumAttributeValidator.new('WidgetCompareTo', ['hour_before', 'day_before', 'week_before', 'month_before']) + unless validator.valid?(compare_to) + fail ArgumentError, "invalid value for \"compare_to\", must be one of #{validator.allowable_values}." + end + @compare_to = compare_to + end + + # Custom attribute writer method with validation + # @param order_by [Object] Object to be assigned + def order_by=(order_by) + validator = EnumAttributeValidator.new('WidgetOrderBy', ['change', 'name', 'present', 'past']) + unless validator.valid?(order_by) + fail ArgumentError, "invalid value for \"order_by\", must be one of #{validator.allowable_values}." + end + @order_by = order_by + end + + # Custom attribute writer method with validation + # @param order_dir [Object] Object to be assigned + def order_dir=(order_dir) + validator = EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) + unless validator.valid?(order_dir) + fail ArgumentError, "invalid value for \"order_dir\", must be one of #{validator.allowable_values}." + end + @order_dir = order_dir + end + + # Custom attribute writer method with validation + # @param response_format [Object] Object to be assigned + def response_format=(response_format) + validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) + unless validator.valid?(response_format) + fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." + end + @response_format = response_format + end + # 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 c82c9fc5ea7..35ba1695ce5 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,10 +100,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 e527bdd86cd..c9036cf5f77 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 @@ -184,12 +184,60 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @check.nil? + return false if @grouping.nil? + return false if @type.nil? return false if @check.nil? return false if @grouping.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param check [Object] Object to be assigned + def check=(check) + if @check.nil? + fail ArgumentError, 'invalid value for "check", check cannot be nil.' + end + @check = check + end + + # Custom attribute writer method with validation + # @param grouping [Object] Object to be assigned + def grouping=(grouping) + validator = EnumAttributeValidator.new('WidgetGrouping', ['check', 'cluster']) + unless validator.valid?(grouping) + fail ArgumentError, "invalid value for \"grouping\", must be one of #{validator.allowable_values}." + end + if @grouping.nil? + fail ArgumentError, 'invalid value for "grouping", grouping cannot be nil.' + end + @grouping = grouping + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('CheckStatusWidgetDefinitionType', ['check_status']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 736c3fad876..9de464c41a9 100644 --- a/lib/datadog_api_client/v1/models/dashboard.rb +++ b/lib/datadog_api_client/v1/models/dashboard.rb @@ -252,12 +252,56 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @layout_type.nil? + return false if @title.nil? + return false if @widgets.nil? return false if @layout_type.nil? return false if @title.nil? return false if @widgets.nil? true end + # Custom attribute writer method with validation + # @param layout_type [Object] Object to be assigned + def layout_type=(layout_type) + validator = EnumAttributeValidator.new('DashboardLayoutType', ['ordered', 'free']) + unless validator.valid?(layout_type) + fail ArgumentError, "invalid value for \"layout_type\", must be one of #{validator.allowable_values}." + end + if @layout_type.nil? + fail ArgumentError, 'invalid value for "layout_type", layout_type cannot be nil.' + end + @layout_type = layout_type + end + + # Custom attribute writer method with validation + # @param reflow_type [Object] Object to be assigned + def reflow_type=(reflow_type) + validator = EnumAttributeValidator.new('DashboardReflowType', ['auto', 'fixed']) + unless validator.valid?(reflow_type) + fail ArgumentError, "invalid value for \"reflow_type\", must be one of #{validator.allowable_values}." + end + @reflow_type = reflow_type + end + + # Custom attribute writer method with validation + # @param title [Object] Object to be assigned + def title=(title) + if @title.nil? + fail ArgumentError, 'invalid value for "title", title cannot be nil.' + end + @title = title + end + + # Custom attribute writer method with validation + # @param widgets [Object] Object to be assigned + def widgets=(widgets) + if @widgets.nil? + fail ArgumentError, 'invalid value for "widgets", widgets cannot be nil.' + end + @widgets = widgets + end + # 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 e100d4fd9a3..bc09e4cbcb8 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 @@ -105,11 +105,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @id.nil? + return false if @type.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('DashboardResourceType', ['dashboard']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 01d0cd757a1..cb9d9c205e6 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 @@ -93,10 +93,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 cca34082628..19631334d57 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list.rb @@ -154,10 +154,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + # 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 27c4da5fcdb..95f33224497 100644 --- a/lib/datadog_api_client/v1/models/dashboard_restore_request.rb +++ b/lib/datadog_api_client/v1/models/dashboard_restore_request.rb @@ -93,10 +93,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 881304801ac..99a5f4608db 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb @@ -164,6 +164,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param layout_type [Object] Object to be assigned + def layout_type=(layout_type) + validator = EnumAttributeValidator.new('DashboardLayoutType', ['ordered', 'free']) + unless validator.valid?(layout_type) + fail ArgumentError, "invalid value for \"layout_type\", must be one of #{validator.allowable_values}." + end + @layout_type = layout_type + end + # 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 74fe6abd566..eb868fe7d8c 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable.rb @@ -123,10 +123,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + # 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 e27799776bd..f1a0260c1ca 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb @@ -203,9 +203,51 @@ def list_invalid_properties def valid? return false if @requests.nil? return false if @type.nil? + return false if @requests.nil? + return false if @requests.length > 1 + return false if @requests.length < 1 + return false if @type.nil? true end + # Custom attribute writer method with validation + # @param requests [Object] Object to be assigned + def requests=(requests) + if @requests.nil? + fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' + end + if @requests.length > 1 + fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' + end + if @requests.length < 1 + fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' + end + @requests = requests + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('DistributionWidgetDefinitionType', ['distribution']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 2ef08754342..cae06e6a064 100644 --- a/lib/datadog_api_client/v1/models/downtime.rb +++ b/lib/datadog_api_client/v1/models/downtime.rb @@ -267,9 +267,39 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@creator_id.nil? && @creator_id > 2147483647 + return false if !@downtime_type.nil? && @downtime_type > 2147483647 + return false if !@updater_id.nil? && @updater_id > 2147483647 true end + # Custom attribute writer method with validation + # @param creator_id [Object] Object to be assigned + def creator_id=(creator_id) + if !@creator_id.nil? && @creator_id > 2147483647 + fail ArgumentError, 'invalid value for "creator_id", must be smaller than or equal to 2147483647.' + end + @creator_id = creator_id + end + + # Custom attribute writer method with validation + # @param downtime_type [Object] Object to be assigned + def downtime_type=(downtime_type) + if !@downtime_type.nil? && @downtime_type > 2147483647 + fail ArgumentError, 'invalid value for "downtime_type", must be smaller than or equal to 2147483647.' + end + @downtime_type = downtime_type + end + + # Custom attribute writer method with validation + # @param updater_id [Object] Object to be assigned + def updater_id=(updater_id) + if !@updater_id.nil? && @updater_id > 2147483647 + fail ArgumentError, 'invalid value for "updater_id", must be smaller than or equal to 2147483647.' + end + @updater_id = updater_id + end + # 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 2a2ec4711fa..f42fb60ce1b 100644 --- a/lib/datadog_api_client/v1/models/downtime_child.rb +++ b/lib/datadog_api_client/v1/models/downtime_child.rb @@ -254,9 +254,39 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@creator_id.nil? && @creator_id > 2147483647 + return false if !@downtime_type.nil? && @downtime_type > 2147483647 + return false if !@updater_id.nil? && @updater_id > 2147483647 true end + # Custom attribute writer method with validation + # @param creator_id [Object] Object to be assigned + def creator_id=(creator_id) + if !@creator_id.nil? && @creator_id > 2147483647 + fail ArgumentError, 'invalid value for "creator_id", must be smaller than or equal to 2147483647.' + end + @creator_id = creator_id + end + + # Custom attribute writer method with validation + # @param downtime_type [Object] Object to be assigned + def downtime_type=(downtime_type) + if !@downtime_type.nil? && @downtime_type > 2147483647 + fail ArgumentError, 'invalid value for "downtime_type", must be smaller than or equal to 2147483647.' + end + @downtime_type = downtime_type + end + + # Custom attribute writer method with validation + # @param updater_id [Object] Object to be assigned + def updater_id=(updater_id) + if !@updater_id.nil? && @updater_id > 2147483647 + fail ArgumentError, 'invalid value for "updater_id", must be smaller than or equal to 2147483647.' + end + @updater_id = updater_id + end + # 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 5f04d503ede..f6f5c8b46b0 100644 --- a/lib/datadog_api_client/v1/models/downtime_recurrence.rb +++ b/lib/datadog_api_client/v1/models/downtime_recurrence.rb @@ -153,9 +153,29 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@period.nil? && @period > 2147483647 + return false if !@until_occurrences.nil? && @until_occurrences > 2147483647 true end + # Custom attribute writer method with validation + # @param period [Object] Object to be assigned + def period=(period) + if !@period.nil? && @period > 2147483647 + fail ArgumentError, 'invalid value for "period", must be smaller than or equal to 2147483647.' + end + @period = period + end + + # Custom attribute writer method with validation + # @param until_occurrences [Object] Object to be assigned + def until_occurrences=(until_occurrences) + if !@until_occurrences.nil? && @until_occurrences > 2147483647 + fail ArgumentError, 'invalid value for "until_occurrences", must be smaller than or equal to 2147483647.' + end + @until_occurrences = until_occurrences + end + # 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 d8ccce61724..46f635ebf43 100644 --- a/lib/datadog_api_client/v1/models/event.rb +++ b/lib/datadog_api_client/v1/models/event.rb @@ -209,9 +209,39 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@text.nil? && @text.to_s.length > 4000 true end + # Custom attribute writer method with validation + # @param alert_type [Object] Object to be assigned + def alert_type=(alert_type) + validator = EnumAttributeValidator.new('EventAlertType', ['error', 'warning', 'info', 'success', 'user_update', 'recommendation', 'snapshot']) + unless validator.valid?(alert_type) + fail ArgumentError, "invalid value for \"alert_type\", must be one of #{validator.allowable_values}." + end + @alert_type = alert_type + end + + # Custom attribute writer method with validation + # @param priority [Object] Object to be assigned + def priority=(priority) + validator = EnumAttributeValidator.new('EventPriority', ['normal', 'low']) + unless validator.valid?(priority) + fail ArgumentError, "invalid value for \"priority\", must be one of #{validator.allowable_values}." + end + @priority = priority + end + + # Custom attribute writer method with validation + # @param text [Object] Object to be assigned + def text=(text) + if !@text.nil? && @text.to_s.length > 4000 + fail ArgumentError, 'invalid value for "text", the character length must be smaller than or equal to 4000.' + end + @text = text + end + # 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 2f33d799ce1..9d63c49e248 100644 --- a/lib/datadog_api_client/v1/models/event_create_request.rb +++ b/lib/datadog_api_client/v1/models/event_create_request.rb @@ -202,9 +202,63 @@ def list_invalid_properties def valid? return false if @text.nil? return false if @title.nil? + return false if !@aggregation_key.nil? && @aggregation_key.to_s.length > 100 + return false if @text.nil? + return false if @text.to_s.length > 4000 + return false if @title.nil? true end + # Custom attribute writer method with validation + # @param aggregation_key [Object] Object to be assigned + def aggregation_key=(aggregation_key) + if !@aggregation_key.nil? && @aggregation_key.to_s.length > 100 + fail ArgumentError, 'invalid value for "aggregation_key", the character length must be smaller than or equal to 100.' + end + @aggregation_key = aggregation_key + end + + # Custom attribute writer method with validation + # @param alert_type [Object] Object to be assigned + def alert_type=(alert_type) + validator = EnumAttributeValidator.new('EventAlertType', ['error', 'warning', 'info', 'success', 'user_update', 'recommendation', 'snapshot']) + unless validator.valid?(alert_type) + fail ArgumentError, "invalid value for \"alert_type\", must be one of #{validator.allowable_values}." + end + @alert_type = alert_type + end + + # Custom attribute writer method with validation + # @param priority [Object] Object to be assigned + def priority=(priority) + validator = EnumAttributeValidator.new('EventPriority', ['normal', 'low']) + unless validator.valid?(priority) + fail ArgumentError, "invalid value for \"priority\", must be one of #{validator.allowable_values}." + end + @priority = priority + end + + # Custom attribute writer method with validation + # @param text [Object] Object to be assigned + def text=(text) + if @text.nil? + fail ArgumentError, 'invalid value for "text", text cannot be nil.' + end + if @text.to_s.length > 4000 + fail ArgumentError, 'invalid value for "text", the character length must be smaller than or equal to 4000.' + end + @text = text + end + + # Custom attribute writer method with validation + # @param title [Object] Object to be assigned + def title=(title) + if @title.nil? + fail ArgumentError, 'invalid value for "title", title cannot be nil.' + end + @title = title + end + # 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 9a2ba189b72..627572e9eef 100644 --- a/lib/datadog_api_client/v1/models/event_create_response.rb +++ b/lib/datadog_api_client/v1/models/event_create_response.rb @@ -219,9 +219,49 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@text.nil? && @text.to_s.length > 4000 + return false if !@title.nil? && @title.to_s.length > 100 true end + # Custom attribute writer method with validation + # @param alert_type [Object] Object to be assigned + def alert_type=(alert_type) + validator = EnumAttributeValidator.new('EventAlertType', ['error', 'warning', 'info', 'success', 'user_update', 'recommendation', 'snapshot']) + unless validator.valid?(alert_type) + fail ArgumentError, "invalid value for \"alert_type\", must be one of #{validator.allowable_values}." + end + @alert_type = alert_type + end + + # Custom attribute writer method with validation + # @param priority [Object] Object to be assigned + def priority=(priority) + validator = EnumAttributeValidator.new('EventPriority', ['normal', 'low']) + unless validator.valid?(priority) + fail ArgumentError, "invalid value for \"priority\", must be one of #{validator.allowable_values}." + end + @priority = priority + end + + # Custom attribute writer method with validation + # @param text [Object] Object to be assigned + def text=(text) + if !@text.nil? && @text.to_s.length > 4000 + fail ArgumentError, 'invalid value for "text", the character length must be smaller than or equal to 4000.' + end + @text = text + end + + # Custom attribute writer method with validation + # @param title [Object] Object to be assigned + def title=(title) + if !@title.nil? && @title.to_s.length > 100 + fail ArgumentError, 'invalid value for "title", the character length must be smaller than or equal to 100.' + end + @title = title + end + # 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 68d98d5fc08..a3c9a32dcda 100644 --- a/lib/datadog_api_client/v1/models/event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/event_query_definition.rb @@ -103,11 +103,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @search.nil? + return false if @tags_execution.nil? return false if @search.nil? return false if @tags_execution.nil? true end + # Custom attribute writer method with validation + # @param search [Object] Object to be assigned + def search=(search) + if @search.nil? + fail ArgumentError, 'invalid value for "search", search cannot be nil.' + end + @search = search + end + + # Custom attribute writer method with validation + # @param tags_execution [Object] Object to be assigned + def tags_execution=(tags_execution) + if @tags_execution.nil? + fail ArgumentError, 'invalid value for "tags_execution", tags_execution cannot be nil.' + end + @tags_execution = tags_execution + end + # 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 b40029a8c04..53d6e8f40ea 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 @@ -160,11 +160,55 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @query.nil? + return false if @type.nil? return false if @query.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param event_size [Object] Object to be assigned + def event_size=(event_size) + validator = EnumAttributeValidator.new('WidgetEventSize', ['s', 'l']) + unless validator.valid?(event_size) + fail ArgumentError, "invalid value for \"event_size\", must be one of #{validator.allowable_values}." + end + @event_size = event_size + end + + # Custom attribute writer method with validation + # @param query [Object] Object to be assigned + def query=(query) + if @query.nil? + fail ArgumentError, 'invalid value for "query", query cannot be nil.' + end + @query = query + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('EventStreamWidgetDefinitionType', ['event_stream']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 f5e076dfa12..8042269b13c 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 @@ -150,11 +150,45 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @query.nil? + return false if @type.nil? return false if @query.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param query [Object] Object to be assigned + def query=(query) + if @query.nil? + fail ArgumentError, 'invalid value for "query", query cannot be nil.' + end + @query = query + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('EventTimelineWidgetDefinitionType', ['event_timeline']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 1197c870b15..b9738bc4e42 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 @@ -190,6 +190,13 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data_source.nil? + return false if @env.nil? + return false if @name.nil? + return false if @operation_name.nil? + return false if @resource_name.nil? + return false if @service.nil? + return false if @stat.nil? return false if @data_source.nil? return false if @env.nil? return false if @name.nil? @@ -200,6 +207,77 @@ def valid? true end + # Custom attribute writer method with validation + # @param data_source [Object] Object to be assigned + def data_source=(data_source) + validator = EnumAttributeValidator.new('FormulaAndFunctionApmDependencyStatsDataSource', ['apm_dependency_stats']) + unless validator.valid?(data_source) + fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." + end + if @data_source.nil? + fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.' + end + @data_source = data_source + end + + # Custom attribute writer method with validation + # @param env [Object] Object to be assigned + def env=(env) + if @env.nil? + fail ArgumentError, 'invalid value for "env", env cannot be nil.' + end + @env = env + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param operation_name [Object] Object to be assigned + def operation_name=(operation_name) + if @operation_name.nil? + fail ArgumentError, 'invalid value for "operation_name", operation_name cannot be nil.' + end + @operation_name = operation_name + end + + # Custom attribute writer method with validation + # @param resource_name [Object] Object to be assigned + def resource_name=(resource_name) + if @resource_name.nil? + fail ArgumentError, 'invalid value for "resource_name", resource_name cannot be nil.' + end + @resource_name = resource_name + end + + # Custom attribute writer method with validation + # @param service [Object] Object to be assigned + def service=(service) + if @service.nil? + fail ArgumentError, 'invalid value for "service", service cannot be nil.' + end + @service = service + end + + # Custom attribute writer method with validation + # @param stat [Object] Object to be assigned + def stat=(stat) + validator = EnumAttributeValidator.new('FormulaAndFunctionApmDependencyStatName', ['avg_duration', 'avg_root_duration', 'avg_spans_per_trace', 'error_rate', 'pct_exec_time', 'pct_of_traces', 'total_traces_count']) + unless validator.valid?(stat) + fail ArgumentError, "invalid value for \"stat\", must be one of #{validator.allowable_values}." + end + if @stat.nil? + fail ArgumentError, 'invalid value for "stat", stat cannot be nil.' + end + @stat = stat + end + # 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 68b8d78954b..5e05259d5c4 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 @@ -186,6 +186,11 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data_source.nil? + return false if @env.nil? + return false if @name.nil? + return false if @service.nil? + return false if @stat.nil? return false if @data_source.nil? return false if @env.nil? return false if @name.nil? @@ -194,6 +199,59 @@ def valid? true end + # Custom attribute writer method with validation + # @param data_source [Object] Object to be assigned + def data_source=(data_source) + validator = EnumAttributeValidator.new('FormulaAndFunctionApmResourceStatsDataSource', ['apm_resource_stats']) + unless validator.valid?(data_source) + fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." + end + if @data_source.nil? + fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.' + end + @data_source = data_source + end + + # Custom attribute writer method with validation + # @param env [Object] Object to be assigned + def env=(env) + if @env.nil? + fail ArgumentError, 'invalid value for "env", env cannot be nil.' + end + @env = env + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param service [Object] Object to be assigned + def service=(service) + if @service.nil? + fail ArgumentError, 'invalid value for "service", service cannot be nil.' + end + @service = service + end + + # Custom attribute writer method with validation + # @param stat [Object] Object to be assigned + def stat=(stat) + validator = EnumAttributeValidator.new('FormulaAndFunctionApmResourceStatName', ['errors', 'error_rate', 'hits', 'latency_avg', 'latency_max', 'latency_p50', 'latency_p75', 'latency_p90', 'latency_p95', 'latency_p99']) + unless validator.valid?(stat) + fail ArgumentError, "invalid value for \"stat\", must be one of #{validator.allowable_values}." + end + if @stat.nil? + fail ArgumentError, 'invalid value for "stat", stat cannot be nil.' + end + @stat = stat + end + # 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 a154fdda0d8..8e01d8ef1ef 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 @@ -146,12 +146,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @compute.nil? + return false if @data_source.nil? + return false if @name.nil? return false if @compute.nil? return false if @data_source.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param compute [Object] Object to be assigned + def compute=(compute) + if @compute.nil? + fail ArgumentError, 'invalid value for "compute", compute cannot be nil.' + end + @compute = compute + end + + # Custom attribute writer method with validation + # @param data_source [Object] Object to be assigned + def data_source=(data_source) + validator = EnumAttributeValidator.new('FormulaAndFunctionEventsDataSource', ['logs', 'spans', 'network', 'rum', 'security_signals', 'profiles', 'audit', 'events']) + unless validator.valid?(data_source) + fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." + end + if @data_source.nil? + fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.' + end + @data_source = data_source + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + # 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 c34d587fce0..365c3d628c8 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 @@ -109,10 +109,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @aggregation.nil? return false if @aggregation.nil? true end + # Custom attribute writer method with validation + # @param aggregation [Object] Object to be assigned + def aggregation=(aggregation) + validator = EnumAttributeValidator.new('FormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) + unless validator.valid?(aggregation) + fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." + end + if @aggregation.nil? + fail ArgumentError, 'invalid value for "aggregation", aggregation cannot be nil.' + end + @aggregation = aggregation + end + # 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 a41a74f2198..44c02501157 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @query.nil? return false if @query.nil? true end + # Custom attribute writer method with validation + # @param query [Object] Object to be assigned + def query=(query) + if @query.nil? + fail ArgumentError, 'invalid value for "query", query cannot be nil.' + end + @query = query + end + # 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 952db82fdf0..caa0df606ba 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 @@ -109,10 +109,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @facet.nil? return false if @facet.nil? true end + # Custom attribute writer method with validation + # @param facet [Object] Object to be assigned + def facet=(facet) + if @facet.nil? + fail ArgumentError, 'invalid value for "facet", facet cannot be nil.' + end + @facet = facet + end + # 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 cd94a0f2674..c86ba2943ee 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 @@ -111,10 +111,34 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @aggregation.nil? return false if @aggregation.nil? true end + # Custom attribute writer method with validation + # @param aggregation [Object] Object to be assigned + def aggregation=(aggregation) + validator = EnumAttributeValidator.new('FormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) + unless validator.valid?(aggregation) + fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." + end + if @aggregation.nil? + fail ArgumentError, 'invalid value for "aggregation", aggregation cannot be nil.' + end + @aggregation = aggregation + end + + # Custom attribute writer method with validation + # @param order [Object] Object to be assigned + def order=(order) + validator = EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) + unless validator.valid?(order) + fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." + end + @order = order + end + # 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 57f307dbae3..bc57ebcf782 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 @@ -124,12 +124,56 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data_source.nil? + return false if @name.nil? + return false if @query.nil? return false if @data_source.nil? return false if @name.nil? return false if @query.nil? true end + # Custom attribute writer method with validation + # @param aggregator [Object] Object to be assigned + def aggregator=(aggregator) + validator = EnumAttributeValidator.new('FormulaAndFunctionMetricAggregation', ['avg', 'min', 'max', 'sum', 'last', 'area', 'l2norm', 'percentile']) + unless validator.valid?(aggregator) + fail ArgumentError, "invalid value for \"aggregator\", must be one of #{validator.allowable_values}." + end + @aggregator = aggregator + end + + # Custom attribute writer method with validation + # @param data_source [Object] Object to be assigned + def data_source=(data_source) + validator = EnumAttributeValidator.new('FormulaAndFunctionMetricDataSource', ['metrics']) + unless validator.valid?(data_source) + fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." + end + if @data_source.nil? + fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.' + end + @data_source = data_source + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param query [Object] Object to be assigned + def query=(query) + if @query.nil? + fail ArgumentError, 'invalid value for "query", query cannot be nil.' + end + @query = query + end + # 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 1d1e949da05..4e2a184dc03 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 @@ -173,12 +173,66 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data_source.nil? + return false if @metric.nil? + return false if @name.nil? return false if @data_source.nil? return false if @metric.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param aggregator [Object] Object to be assigned + def aggregator=(aggregator) + validator = EnumAttributeValidator.new('FormulaAndFunctionMetricAggregation', ['avg', 'min', 'max', 'sum', 'last', 'area', 'l2norm', 'percentile']) + unless validator.valid?(aggregator) + fail ArgumentError, "invalid value for \"aggregator\", must be one of #{validator.allowable_values}." + end + @aggregator = aggregator + end + + # Custom attribute writer method with validation + # @param data_source [Object] Object to be assigned + def data_source=(data_source) + validator = EnumAttributeValidator.new('FormulaAndFunctionProcessQueryDataSource', ['process', 'container']) + unless validator.valid?(data_source) + fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." + end + if @data_source.nil? + fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.' + end + @data_source = data_source + end + + # Custom attribute writer method with validation + # @param metric [Object] Object to be assigned + def metric=(metric) + if @metric.nil? + fail ArgumentError, 'invalid value for "metric", metric cannot be nil.' + end + @metric = metric + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param sort [Object] Object to be assigned + def sort=(sort) + validator = EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) + unless validator.valid?(sort) + fail ArgumentError, "invalid value for \"sort\", must be one of #{validator.allowable_values}." + end + @sort = sort + end + # 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 7a5193c2525..ee538b01f76 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 @@ -132,11 +132,45 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @text.nil? + return false if @type.nil? return false if @text.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param text [Object] Object to be assigned + def text=(text) + if @text.nil? + fail ArgumentError, 'invalid value for "text", text cannot be nil.' + end + @text = text + end + + # Custom attribute writer method with validation + # @param text_align [Object] Object to be assigned + def text_align=(text_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(text_align) + fail ArgumentError, "invalid value for \"text_align\", must be one of #{validator.allowable_values}." + end + @text_align = text_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('FreeTextWidgetDefinitionType', ['free_text']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 771c7c473d1..b19124f13ca 100644 --- a/lib/datadog_api_client/v1/models/funnel_query.rb +++ b/lib/datadog_api_client/v1/models/funnel_query.rb @@ -119,12 +119,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data_source.nil? + return false if @query_string.nil? + return false if @steps.nil? return false if @data_source.nil? return false if @query_string.nil? return false if @steps.nil? true end + # Custom attribute writer method with validation + # @param data_source [Object] Object to be assigned + def data_source=(data_source) + validator = EnumAttributeValidator.new('FunnelSource', ['rum']) + unless validator.valid?(data_source) + fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." + end + if @data_source.nil? + fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.' + end + @data_source = data_source + end + + # Custom attribute writer method with validation + # @param query_string [Object] Object to be assigned + def query_string=(query_string) + if @query_string.nil? + fail ArgumentError, 'invalid value for "query_string", query_string cannot be nil.' + end + @query_string = query_string + end + + # Custom attribute writer method with validation + # @param steps [Object] Object to be assigned + def steps=(steps) + if @steps.nil? + fail ArgumentError, 'invalid value for "steps", steps cannot be nil.' + end + @steps = steps + end + # 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_steps_item.rb b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb index 044400a968b..8803554959e 100644 --- a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb +++ b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb @@ -103,11 +103,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @facet.nil? + return false if @value.nil? return false if @facet.nil? return false if @value.nil? true end + # Custom attribute writer method with validation + # @param facet [Object] Object to be assigned + def facet=(facet) + if @facet.nil? + fail ArgumentError, 'invalid value for "facet", facet cannot be nil.' + end + @facet = facet + end + + # Custom attribute writer method with validation + # @param value [Object] Object to be assigned + def value=(value) + if @value.nil? + fail ArgumentError, 'invalid value for "value", value cannot be nil.' + end + @value = value + end + # 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 0f02c81c0ad..2e68291642a 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb @@ -151,9 +151,51 @@ def list_invalid_properties def valid? return false if @requests.nil? return false if @type.nil? + return false if @requests.nil? + return false if @requests.length > 1 + return false if @requests.length < 1 + return false if @type.nil? true end + # Custom attribute writer method with validation + # @param requests [Object] Object to be assigned + def requests=(requests) + if @requests.nil? + fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' + end + if @requests.length > 1 + fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' + end + if @requests.length < 1 + fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' + end + @requests = requests + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('FunnelWidgetDefinitionType', ['funnel']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 572bf5784e4..e72138a4f3f 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_request.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_request.rb @@ -103,11 +103,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @query.nil? + return false if @request_type.nil? return false if @query.nil? return false if @request_type.nil? true end + # Custom attribute writer method with validation + # @param query [Object] Object to be assigned + def query=(query) + if @query.nil? + fail ArgumentError, 'invalid value for "query", query cannot be nil.' + end + @query = query + end + + # Custom attribute writer method with validation + # @param request_type [Object] Object to be assigned + def request_type=(request_type) + validator = EnumAttributeValidator.new('FunnelRequestType', ['funnel']) + unless validator.valid?(request_type) + fail ArgumentError, "invalid value for \"request_type\", must be one of #{validator.allowable_values}." + end + if @request_type.nil? + fail ArgumentError, 'invalid value for "request_type", request_type cannot be nil.' + end + @request_type = request_type + end + # 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 be079afc95e..39e6e186f43 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb @@ -191,9 +191,71 @@ def valid? return false if @style.nil? return false if @type.nil? return false if @view.nil? + return false if @requests.nil? + return false if @requests.length > 1 + return false if @requests.length < 1 + return false if @style.nil? + return false if @type.nil? + return false if @view.nil? true end + # Custom attribute writer method with validation + # @param requests [Object] Object to be assigned + def requests=(requests) + if @requests.nil? + fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' + end + if @requests.length > 1 + fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' + end + if @requests.length < 1 + fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' + end + @requests = requests + end + + # Custom attribute writer method with validation + # @param style [Object] Object to be assigned + def style=(style) + if @style.nil? + fail ArgumentError, 'invalid value for "style", style cannot be nil.' + end + @style = style + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('GeomapWidgetDefinitionType', ['geomap']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + + # Custom attribute writer method with validation + # @param view [Object] Object to be assigned + def view=(view) + if @view.nil? + fail ArgumentError, 'invalid value for "view", view cannot be nil.' + end + @view = view + end + # 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 b42aec0e402..94dd4b7e9f9 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,11 +103,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @palette.nil? + return false if @palette_flip.nil? return false if @palette.nil? return false if @palette_flip.nil? true end + # Custom attribute writer method with validation + # @param palette [Object] Object to be assigned + def palette=(palette) + if @palette.nil? + fail ArgumentError, 'invalid value for "palette", palette cannot be nil.' + end + @palette = palette + end + + # Custom attribute writer method with validation + # @param palette_flip [Object] Object to be assigned + def palette_flip=(palette_flip) + if @palette_flip.nil? + fail ArgumentError, 'invalid value for "palette_flip", palette_flip cannot be nil.' + end + @palette_flip = palette_flip + end + # 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 68135df35a6..47881b1fc10 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @focus.nil? return false if @focus.nil? true end + # Custom attribute writer method with validation + # @param focus [Object] Object to be assigned + def focus=(focus) + if @focus.nil? + fail ArgumentError, 'invalid value for "focus", focus cannot be nil.' + end + @focus = focus + end + # 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 407a09a051c..00420973ed2 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_request.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_request.rb @@ -149,6 +149,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param response_format [Object] Object to be assigned + def response_format=(response_format) + validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) + unless validator.valid?(response_format) + fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." + end + @response_format = response_format + end + # 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 816ed5b61ba..22abccf718c 100644 --- a/lib/datadog_api_client/v1/models/group_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/group_widget_definition.rb @@ -166,12 +166,60 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @layout_type.nil? + return false if @type.nil? + return false if @widgets.nil? return false if @layout_type.nil? return false if @type.nil? return false if @widgets.nil? true end + # Custom attribute writer method with validation + # @param layout_type [Object] Object to be assigned + def layout_type=(layout_type) + validator = EnumAttributeValidator.new('WidgetLayoutType', ['ordered']) + unless validator.valid?(layout_type) + fail ArgumentError, "invalid value for \"layout_type\", must be one of #{validator.allowable_values}." + end + if @layout_type.nil? + fail ArgumentError, 'invalid value for "layout_type", layout_type cannot be nil.' + end + @layout_type = layout_type + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('GroupWidgetDefinitionType', ['group']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + + # Custom attribute writer method with validation + # @param widgets [Object] Object to be assigned + def widgets=(widgets) + if @widgets.nil? + fail ArgumentError, 'invalid value for "widgets", widgets cannot be nil.' + end + @widgets = widgets + end + # 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 2d0dcb2e031..b249e0f0155 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 @@ -200,9 +200,51 @@ def list_invalid_properties def valid? return false if @requests.nil? return false if @type.nil? + return false if @requests.nil? + return false if @requests.length > 1 + return false if @requests.length < 1 + return false if @type.nil? true end + # Custom attribute writer method with validation + # @param requests [Object] Object to be assigned + def requests=(requests) + if @requests.nil? + fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' + end + if @requests.length > 1 + fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' + end + if @requests.length < 1 + fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' + end + @requests = requests + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('HeatMapWidgetDefinitionType', ['heatmap']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 2ab9bc3661a..f0bfa8d4598 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 @@ -210,11 +210,55 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @requests.nil? + return false if @type.nil? return false if @requests.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param node_type [Object] Object to be assigned + def node_type=(node_type) + validator = EnumAttributeValidator.new('WidgetNodeType', ['host', 'container']) + unless validator.valid?(node_type) + fail ArgumentError, "invalid value for \"node_type\", must be one of #{validator.allowable_values}." + end + @node_type = node_type + end + + # Custom attribute writer method with validation + # @param requests [Object] Object to be assigned + def requests=(requests) + if @requests.nil? + fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' + end + @requests = requests + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('HostMapWidgetDefinitionType', ['hostmap']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 891b2e249c7..e81716c1486 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 @@ -154,6 +154,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param usage_type [Object] Object to be assigned + def usage_type=(usage_type) + validator = EnumAttributeValidator.new('HourlyUsageAttributionUsageType', ['api_usage', 'apm_host_usage', 'browser_usage', 'container_usage', 'custom_timeseries_usage', 'fargate_usage', 'functions_usage', 'indexed_logs_usage', 'infra_host_usage', 'invocations_usage', 'npm_host_usage', 'profiled_container_usage', 'profiled_host_usage', 'snmp_usage']) + unless validator.valid?(usage_type) + fail ArgumentError, "invalid value for \"usage_type\", must be one of #{validator.allowable_values}." + end + @usage_type = usage_type + end + # 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 4fc3a5e3c0d..00e1111dafd 100644 --- a/lib/datadog_api_client/v1/models/http_log_error.rb +++ b/lib/datadog_api_client/v1/models/http_log_error.rb @@ -108,9 +108,33 @@ def list_invalid_properties def valid? return false if @code.nil? return false if @message.nil? + return false if @code.nil? + return false if @code > 2147483647 + return false if @message.nil? true end + # Custom attribute writer method with validation + # @param code [Object] Object to be assigned + def code=(code) + if @code.nil? + fail ArgumentError, 'invalid value for "code", code cannot be nil.' + end + if @code > 2147483647 + fail ArgumentError, 'invalid value for "code", must be smaller than or equal to 2147483647.' + end + @code = code + end + + # Custom attribute writer method with validation + # @param message [Object] Object to be assigned + def message=(message) + if @message.nil? + fail ArgumentError, 'invalid value for "message", message cannot be nil.' + end + @message = message + end + # 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 64f3deb2f8b..5078deb2bc3 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 @@ -105,11 +105,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? + return false if @url.nil? return false if @type.nil? return false if @url.nil? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('IFrameWidgetDefinitionType', ['iframe']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + + # Custom attribute writer method with validation + # @param url [Object] Object to be assigned + def url=(url) + if @url.nil? + fail ArgumentError, 'invalid value for "url", url cannot be nil.' + end + @url = url + end + # 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 80a067a20f3..15dc2b8311c 100644 --- a/lib/datadog_api_client/v1/models/idp_form_data.rb +++ b/lib/datadog_api_client/v1/models/idp_form_data.rb @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @idp_file.nil? return false if @idp_file.nil? true end + # Custom attribute writer method with validation + # @param idp_file [Object] Object to be assigned + def idp_file=(idp_file) + if @idp_file.nil? + fail ArgumentError, 'invalid value for "idp_file", idp_file cannot be nil.' + end + @idp_file = idp_file + end + # 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 8a924717225..487075a9bdb 100644 --- a/lib/datadog_api_client/v1/models/idp_response.rb +++ b/lib/datadog_api_client/v1/models/idp_response.rb @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @message.nil? return false if @message.nil? true end + # Custom attribute writer method with validation + # @param message [Object] Object to be assigned + def message=(message) + if @message.nil? + fail ArgumentError, 'invalid value for "message", message cannot be nil.' + end + @message = message + end + # 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 d0858108d96..b3e6c023f44 100644 --- a/lib/datadog_api_client/v1/models/image_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/image_widget_definition.rb @@ -174,11 +174,75 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? + return false if @url.nil? return false if @type.nil? return false if @url.nil? true end + # Custom attribute writer method with validation + # @param horizontal_align [Object] Object to be assigned + def horizontal_align=(horizontal_align) + validator = EnumAttributeValidator.new('WidgetHorizontalAlign', ['center', 'left', 'right']) + unless validator.valid?(horizontal_align) + fail ArgumentError, "invalid value for \"horizontal_align\", must be one of #{validator.allowable_values}." + end + @horizontal_align = horizontal_align + end + + # Custom attribute writer method with validation + # @param margin [Object] Object to be assigned + def margin=(margin) + validator = EnumAttributeValidator.new('WidgetMargin', ['sm', 'md', 'lg', 'small', 'large']) + unless validator.valid?(margin) + fail ArgumentError, "invalid value for \"margin\", must be one of #{validator.allowable_values}." + end + @margin = margin + end + + # Custom attribute writer method with validation + # @param sizing [Object] Object to be assigned + def sizing=(sizing) + validator = EnumAttributeValidator.new('WidgetImageSizing', ['fill', 'contain', 'cover', 'none', 'scale-down', 'zoom', 'fit', 'center']) + unless validator.valid?(sizing) + fail ArgumentError, "invalid value for \"sizing\", must be one of #{validator.allowable_values}." + end + @sizing = sizing + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('ImageWidgetDefinitionType', ['image']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + + # Custom attribute writer method with validation + # @param url [Object] Object to be assigned + def url=(url) + if @url.nil? + fail ArgumentError, 'invalid value for "url", url cannot be nil.' + end + @url = url + end + + # Custom attribute writer method with validation + # @param vertical_align [Object] Object to be assigned + def vertical_align=(vertical_align) + validator = EnumAttributeValidator.new('WidgetVerticalAlign', ['center', 'top', 'bottom']) + unless validator.valid?(vertical_align) + fail ArgumentError, "invalid value for \"vertical_align\", must be one of #{validator.allowable_values}." + end + @vertical_align = vertical_align + end + # 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 532e160ec50..b38fc13a185 100644 --- a/lib/datadog_api_client/v1/models/list_stream_column.rb +++ b/lib/datadog_api_client/v1/models/list_stream_column.rb @@ -103,11 +103,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @field.nil? + return false if @width.nil? return false if @field.nil? return false if @width.nil? true end + # Custom attribute writer method with validation + # @param field [Object] Object to be assigned + def field=(field) + if @field.nil? + fail ArgumentError, 'invalid value for "field", field cannot be nil.' + end + @field = field + end + + # Custom attribute writer method with validation + # @param width [Object] Object to be assigned + def width=(width) + validator = EnumAttributeValidator.new('ListStreamColumnWidth', ['auto', 'compact', 'full']) + unless validator.valid?(width) + fail ArgumentError, "invalid value for \"width\", must be one of #{validator.allowable_values}." + end + if @width.nil? + fail ArgumentError, 'invalid value for "width", width cannot be nil.' + end + @width = width + end + # 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 b39c938877b..a272110880d 100644 --- a/lib/datadog_api_client/v1/models/list_stream_query.rb +++ b/lib/datadog_api_client/v1/models/list_stream_query.rb @@ -116,11 +116,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data_source.nil? + return false if @query_string.nil? return false if @data_source.nil? return false if @query_string.nil? true end + # Custom attribute writer method with validation + # @param data_source [Object] Object to be assigned + def data_source=(data_source) + validator = EnumAttributeValidator.new('ListStreamSource', ['issue_stream', 'logs_stream', 'audit_stream']) + unless validator.valid?(data_source) + fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." + end + if @data_source.nil? + fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.' + end + @data_source = data_source + end + + # Custom attribute writer method with validation + # @param query_string [Object] Object to be assigned + def query_string=(query_string) + if @query_string.nil? + fail ArgumentError, 'invalid value for "query_string", query_string cannot be nil.' + end + @query_string = query_string + end + # 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 2329fce353f..e445e5f2d4b 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 @@ -170,9 +170,51 @@ def list_invalid_properties def valid? return false if @requests.nil? return false if @type.nil? + return false if @requests.nil? + return false if @requests.length > 1 + return false if @requests.length < 1 + return false if @type.nil? true end + # Custom attribute writer method with validation + # @param requests [Object] Object to be assigned + def requests=(requests) + if @requests.nil? + fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' + end + if @requests.length > 1 + fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' + end + if @requests.length < 1 + fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' + end + @requests = requests + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('ListStreamWidgetDefinitionType', ['list_stream']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 369f1ac7abf..317b406fc34 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 @@ -117,12 +117,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @columns.nil? + return false if @query.nil? + return false if @response_format.nil? return false if @columns.nil? return false if @query.nil? return false if @response_format.nil? true end + # Custom attribute writer method with validation + # @param columns [Object] Object to be assigned + def columns=(columns) + if @columns.nil? + fail ArgumentError, 'invalid value for "columns", columns cannot be nil.' + end + @columns = columns + end + + # Custom attribute writer method with validation + # @param query [Object] Object to be assigned + def query=(query) + if @query.nil? + fail ArgumentError, 'invalid value for "query", query cannot be nil.' + end + @query = query + end + + # Custom attribute writer method with validation + # @param response_format [Object] Object to be assigned + def response_format=(response_format) + validator = EnumAttributeValidator.new('ListStreamResponseFormat', ['event_list']) + unless validator.valid?(response_format) + fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." + end + if @response_format.nil? + fail ArgumentError, 'invalid value for "response_format", response_format cannot be nil.' + end + @response_format = response_format + end + # 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 1abc1934717..b2e273280d6 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 @@ -109,10 +109,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @facet.nil? return false if @facet.nil? true end + # Custom attribute writer method with validation + # @param facet [Object] Object to be assigned + def facet=(facet) + if @facet.nil? + fail ArgumentError, 'invalid value for "facet", facet cannot be nil.' + end + @facet = facet + end + # 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 e0ce8aff5d3..35e645e4bd6 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,11 +112,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @aggregation.nil? + return false if @order.nil? return false if @aggregation.nil? return false if @order.nil? true end + # Custom attribute writer method with validation + # @param aggregation [Object] Object to be assigned + def aggregation=(aggregation) + if @aggregation.nil? + fail ArgumentError, 'invalid value for "aggregation", aggregation cannot be nil.' + end + @aggregation = aggregation + end + + # Custom attribute writer method with validation + # @param order [Object] Object to be assigned + def order=(order) + validator = EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) + unless validator.valid?(order) + fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." + end + if @order.nil? + fail ArgumentError, 'invalid value for "order", order cannot be nil.' + end + @order = order + end + # 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 95ae9dc7190..927f963328e 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @query.nil? return false if @query.nil? true end + # Custom attribute writer method with validation + # @param query [Object] Object to be assigned + def query=(query) + if @query.nil? + fail ArgumentError, 'invalid value for "query", query cannot be nil.' + end + @query = query + end + # 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 37cc2262d49..ee9e86d5056 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 @@ -205,10 +205,44 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param message_display [Object] Object to be assigned + def message_display=(message_display) + validator = EnumAttributeValidator.new('WidgetMessageDisplay', ['inline', 'expanded-md', 'expanded-lg']) + unless validator.valid?(message_display) + fail ArgumentError, "invalid value for \"message_display\", must be one of #{validator.allowable_values}." + end + @message_display = message_display + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogStreamWidgetDefinitionType', ['log_stream']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 9c9743c8829..1cde82655dd 100644 --- a/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb @@ -169,12 +169,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @expression.nil? + return false if @target.nil? + return false if @type.nil? return false if @expression.nil? return false if @target.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param expression [Object] Object to be assigned + def expression=(expression) + if @expression.nil? + fail ArgumentError, 'invalid value for "expression", expression cannot be nil.' + end + @expression = expression + end + + # Custom attribute writer method with validation + # @param target [Object] Object to be assigned + def target=(target) + if @target.nil? + fail ArgumentError, 'invalid value for "target", target cannot be nil.' + end + @target = target + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsArithmeticProcessorType', ['arithmetic-processor']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 b520cbc4703..36347ff6120 100644 --- a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb @@ -196,12 +196,56 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @sources.nil? + return false if @target.nil? + return false if @type.nil? return false if @sources.nil? return false if @target.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param sources [Object] Object to be assigned + def sources=(sources) + if @sources.nil? + fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' + end + @sources = sources + end + + # Custom attribute writer method with validation + # @param target [Object] Object to be assigned + def target=(target) + if @target.nil? + fail ArgumentError, 'invalid value for "target", target cannot be nil.' + end + @target = target + end + + # Custom attribute writer method with validation + # @param target_format [Object] Object to be assigned + def target_format=(target_format) + validator = EnumAttributeValidator.new('TargetFormatType', ['auto', 'string', 'integer', 'double']) + unless validator.valid?(target_format) + fail ArgumentError, "invalid value for \"target_format\", must be one of #{validator.allowable_values}." + end + @target_format = target_format + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsAttributeRemapperType', ['attribute-remapper']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 376bcedd6d1..d2c5f6afb9b 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor.rb @@ -152,12 +152,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @categories.nil? + return false if @target.nil? + return false if @type.nil? return false if @categories.nil? return false if @target.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param categories [Object] Object to be assigned + def categories=(categories) + if @categories.nil? + fail ArgumentError, 'invalid value for "categories", categories cannot be nil.' + end + @categories = categories + end + + # Custom attribute writer method with validation + # @param target [Object] Object to be assigned + def target=(target) + if @target.nil? + fail ArgumentError, 'invalid value for "target", target cannot be nil.' + end + @target = target + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsCategoryProcessorType', ['category-processor']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 666ff00e350..e276653a081 100644 --- a/lib/datadog_api_client/v1/models/logs_date_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_date_remapper.rb @@ -145,11 +145,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @sources.nil? + return false if @type.nil? return false if @sources.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param sources [Object] Object to be assigned + def sources=(sources) + if @sources.nil? + fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' + end + @sources = sources + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsDateRemapperType', ['date-remapper']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 c762bbc3859..a62dc6688b5 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion.rb @@ -109,10 +109,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + # 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 8c2a53bd4be..1e27f59bed2 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb @@ -102,10 +102,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @sample_rate.nil? return false if @sample_rate.nil? true end + # Custom attribute writer method with validation + # @param sample_rate [Object] Object to be assigned + def sample_rate=(sample_rate) + if @sample_rate.nil? + fail ArgumentError, 'invalid value for "sample_rate", sample_rate cannot be nil.' + end + @sample_rate = sample_rate + end + # 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 5b4fc9358ca..5cf468bf239 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,12 +144,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @sources.nil? + return false if @target.nil? + return false if @type.nil? return false if @sources.nil? return false if @target.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param sources [Object] Object to be assigned + def sources=(sources) + if @sources.nil? + fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' + end + @sources = sources + end + + # Custom attribute writer method with validation + # @param target [Object] Object to be assigned + def target=(target) + if @target.nil? + fail ArgumentError, 'invalid value for "target", target cannot be nil.' + end + @target = target + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsGeoIPParserType', ['geo-ip-parser']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 d8ccf1a2a11..d20290f2c54 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser.rb @@ -157,9 +157,53 @@ def valid? return false if @grok.nil? return false if @source.nil? return false if @type.nil? + return false if @grok.nil? + return false if !@samples.nil? && @samples.length > 5 + return false if @source.nil? + return false if @type.nil? true end + # Custom attribute writer method with validation + # @param grok [Object] Object to be assigned + def grok=(grok) + if @grok.nil? + fail ArgumentError, 'invalid value for "grok", grok cannot be nil.' + end + @grok = grok + end + + # Custom attribute writer method with validation + # @param samples [Object] Object to be assigned + def samples=(samples) + if !@samples.nil? && @samples.length > 5 + fail ArgumentError, 'invalid value for "samples", number of items must be less than or equal to 5.' + end + @samples = samples + end + + # Custom attribute writer method with validation + # @param source [Object] Object to be assigned + def source=(source) + if @source.nil? + fail ArgumentError, 'invalid value for "source", source cannot be nil.' + end + @source = source + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsGrokParserType', ['grok-parser']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 6b8b8e066d6..6d185a0214d 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 @@ -102,10 +102,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @match_rules.nil? return false if @match_rules.nil? true end + # Custom attribute writer method with validation + # @param match_rules [Object] Object to be assigned + def match_rules=(match_rules) + if @match_rules.nil? + fail ArgumentError, 'invalid value for "match_rules", match_rules cannot be nil.' + end + @match_rules = match_rules + end + # 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 ac5f4ec2911..055e093fb7c 100644 --- a/lib/datadog_api_client/v1/models/logs_index.rb +++ b/lib/datadog_api_client/v1/models/logs_index.rb @@ -145,11 +145,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @filter.nil? + return false if @name.nil? return false if @filter.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param filter [Object] Object to be assigned + def filter=(filter) + if @filter.nil? + fail ArgumentError, 'invalid value for "filter", filter cannot be nil.' + end + @filter = filter + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + # 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 e7911473408..c444b57c7eb 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 @@ -137,10 +137,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @filter.nil? return false if @filter.nil? true end + # Custom attribute writer method with validation + # @param filter [Object] Object to be assigned + def filter=(filter) + if @filter.nil? + fail ArgumentError, 'invalid value for "filter", filter cannot be nil.' + end + @filter = filter + end + # 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 b97b9cb2722..8140e294054 100644 --- a/lib/datadog_api_client/v1/models/logs_indexes_order.rb +++ b/lib/datadog_api_client/v1/models/logs_indexes_order.rb @@ -95,10 +95,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @index_names.nil? return false if @index_names.nil? true end + # Custom attribute writer method with validation + # @param index_names [Object] Object to be assigned + def index_names=(index_names) + if @index_names.nil? + fail ArgumentError, 'invalid value for "index_names", index_names cannot be nil.' + end + @index_names = index_names + end + # 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 795494bdb9f..8d25d87c4f5 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request.rb @@ -144,10 +144,40 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @time.nil? + return false if !@limit.nil? && @limit > 1000 return false if @time.nil? true end + # Custom attribute writer method with validation + # @param limit [Object] Object to be assigned + def limit=(limit) + if !@limit.nil? && @limit > 1000 + fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 1000.' + end + @limit = limit + end + + # Custom attribute writer method with validation + # @param sort [Object] Object to be assigned + def sort=(sort) + validator = EnumAttributeValidator.new('LogsSort', ['asc', 'desc']) + unless validator.valid?(sort) + fail ArgumentError, "invalid value for \"sort\", must be one of #{validator.allowable_values}." + end + @sort = sort + end + + # Custom attribute writer method with validation + # @param time [Object] Object to be assigned + def time=(time) + if @time.nil? + fail ArgumentError, 'invalid value for "time", time cannot be nil.' + end + @time = time + end + # 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 11e7283391e..68d335d6d45 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,11 +113,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @from.nil? + return false if @to.nil? return false if @from.nil? return false if @to.nil? true end + # Custom attribute writer method with validation + # @param from [Object] Object to be assigned + def from=(from) + if @from.nil? + fail ArgumentError, 'invalid value for "from", from cannot be nil.' + end + @from = from + end + + # Custom attribute writer method with validation + # @param to [Object] Object to be assigned + def to=(to) + if @to.nil? + fail ArgumentError, 'invalid value for "to", to cannot be nil.' + end + @to = to + end + # 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 ec686f61a14..e9f91eb5371 100644 --- a/lib/datadog_api_client/v1/models/logs_lookup_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_lookup_processor.rb @@ -167,6 +167,10 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @lookup_table.nil? + return false if @source.nil? + return false if @target.nil? + return false if @type.nil? return false if @lookup_table.nil? return false if @source.nil? return false if @target.nil? @@ -174,6 +178,46 @@ def valid? true end + # Custom attribute writer method with validation + # @param lookup_table [Object] Object to be assigned + def lookup_table=(lookup_table) + if @lookup_table.nil? + fail ArgumentError, 'invalid value for "lookup_table", lookup_table cannot be nil.' + end + @lookup_table = lookup_table + end + + # Custom attribute writer method with validation + # @param source [Object] Object to be assigned + def source=(source) + if @source.nil? + fail ArgumentError, 'invalid value for "source", source cannot be nil.' + end + @source = source + end + + # Custom attribute writer method with validation + # @param target [Object] Object to be assigned + def target=(target) + if @target.nil? + fail ArgumentError, 'invalid value for "target", target cannot be nil.' + end + @target = target + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsLookupProcessorType', ['lookup-processor']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 f16dd866013..e6531d693af 100644 --- a/lib/datadog_api_client/v1/models/logs_message_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_message_remapper.rb @@ -134,11 +134,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @sources.nil? + return false if @type.nil? return false if @sources.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param sources [Object] Object to be assigned + def sources=(sources) + if @sources.nil? + fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' + end + @sources = sources + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsMessageRemapperType', ['message-remapper']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 1abae4d702b..35a77674903 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline.rb @@ -151,10 +151,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + # 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 48ada0f73e6..5f925cd61d7 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb @@ -137,10 +137,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsPipelineProcessorType', ['pipeline']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 b3a43ead481..da65a59a643 100644 --- a/lib/datadog_api_client/v1/models/logs_pipelines_order.rb +++ b/lib/datadog_api_client/v1/models/logs_pipelines_order.rb @@ -94,10 +94,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @pipeline_ids.nil? return false if @pipeline_ids.nil? true end + # Custom attribute writer method with validation + # @param pipeline_ids [Object] Object to be assigned + def pipeline_ids=(pipeline_ids) + if @pipeline_ids.nil? + fail ArgumentError, 'invalid value for "pipeline_ids", pipeline_ids cannot be nil.' + end + @pipeline_ids = pipeline_ids + end + # 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 0f0fac44f43..3ce09c3aabd 100644 --- a/lib/datadog_api_client/v1/models/logs_query_compute.rb +++ b/lib/datadog_api_client/v1/models/logs_query_compute.rb @@ -109,10 +109,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @aggregation.nil? return false if @aggregation.nil? true end + # Custom attribute writer method with validation + # @param aggregation [Object] Object to be assigned + def aggregation=(aggregation) + if @aggregation.nil? + fail ArgumentError, 'invalid value for "aggregation", aggregation cannot be nil.' + end + @aggregation = aggregation + end + # 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 457b01aa394..f1cf864e630 100644 --- a/lib/datadog_api_client/v1/models/logs_service_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_service_remapper.rb @@ -130,11 +130,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @sources.nil? + return false if @type.nil? return false if @sources.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param sources [Object] Object to be assigned + def sources=(sources) + if @sources.nil? + fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' + end + @sources = sources + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsServiceRemapperType', ['service-remapper']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 b6fc7ca17fc..57d22b7e99a 100644 --- a/lib/datadog_api_client/v1/models/logs_status_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_status_remapper.rb @@ -144,11 +144,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @sources.nil? + return false if @type.nil? return false if @sources.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param sources [Object] Object to be assigned + def sources=(sources) + if @sources.nil? + fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' + end + @sources = sources + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsStatusRemapperType', ['status-remapper']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 622e83e8404..9396e1b1e17 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 @@ -161,12 +161,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @target.nil? + return false if @template.nil? + return false if @type.nil? return false if @target.nil? return false if @template.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param target [Object] Object to be assigned + def target=(target) + if @target.nil? + fail ArgumentError, 'invalid value for "target", target cannot be nil.' + end + @target = target + end + + # Custom attribute writer method with validation + # @param template [Object] Object to be assigned + def template=(template) + if @template.nil? + fail ArgumentError, 'invalid value for "template", template cannot be nil.' + end + @template = template + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsStringBuilderProcessorType', ['string-builder-processor']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 950cf2c5c8a..976913eba9d 100644 --- a/lib/datadog_api_client/v1/models/logs_trace_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_trace_remapper.rb @@ -131,10 +131,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsTraceRemapperType', ['trace-id-remapper']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 2330b24d89d..5276bd3fc37 100644 --- a/lib/datadog_api_client/v1/models/logs_url_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_url_parser.rb @@ -155,12 +155,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @sources.nil? + return false if @target.nil? + return false if @type.nil? return false if @sources.nil? return false if @target.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param sources [Object] Object to be assigned + def sources=(sources) + if @sources.nil? + fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' + end + @sources = sources + end + + # Custom attribute writer method with validation + # @param target [Object] Object to be assigned + def target=(target) + if @target.nil? + fail ArgumentError, 'invalid value for "target", target cannot be nil.' + end + @target = target + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsURLParserType', ['url-parser']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 9280a637a14..381f99b63a1 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 @@ -155,12 +155,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @sources.nil? + return false if @target.nil? + return false if @type.nil? return false if @sources.nil? return false if @target.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param sources [Object] Object to be assigned + def sources=(sources) + if @sources.nil? + fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' + end + @sources = sources + end + + # Custom attribute writer method with validation + # @param target [Object] Object to be assigned + def target=(target) + if @target.nil? + fail ArgumentError, 'invalid value for "target", target cannot be nil.' + end + @target = target + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsUserAgentParserType', ['user-agent-parser']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 05ece9e4e28..482258cf000 100644 --- a/lib/datadog_api_client/v1/models/metrics_payload.rb +++ b/lib/datadog_api_client/v1/models/metrics_payload.rb @@ -93,10 +93,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @series.nil? return false if @series.nil? true end + # Custom attribute writer method with validation + # @param series [Object] Object to be assigned + def series=(series) + if @series.nil? + fail ArgumentError, 'invalid value for "series", series cannot be nil.' + end + @series = series + end + # 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 ca63ac20ec1..b85de230832 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_metadata.rb @@ -211,9 +211,23 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@unit.nil? && @unit.length > 2 + return false if !@unit.nil? && @unit.length < 2 true end + # Custom attribute writer method with validation + # @param unit [Object] Object to be assigned + def unit=(unit) + if !@unit.nil? && @unit.length > 2 + fail ArgumentError, 'invalid value for "unit", number of items must be less than or equal to 2.' + end + if !@unit.nil? && @unit.length < 2 + fail ArgumentError, 'invalid value for "unit", number of items must be greater than or equal to 2.' + end + @unit = unit + end + # 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 a747832588e..0062fc8f4dc 100644 --- a/lib/datadog_api_client/v1/models/monitor.rb +++ b/lib/datadog_api_client/v1/models/monitor.rb @@ -242,11 +242,59 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @query.nil? + return false if @type.nil? + return false if !@priority.nil? && @priority > 5 + return false if !@priority.nil? && @priority < 1 return false if @query.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param overall_state [Object] Object to be assigned + def overall_state=(overall_state) + validator = EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) + unless validator.valid?(overall_state) + fail ArgumentError, "invalid value for \"overall_state\", must be one of #{validator.allowable_values}." + end + @overall_state = overall_state + end + + # Custom attribute writer method with validation + # @param priority [Object] Object to be assigned + def priority=(priority) + if !@priority.nil? && @priority > 5 + fail ArgumentError, 'invalid value for "priority", must be smaller than or equal to 5.' + end + if !@priority.nil? && @priority < 1 + fail ArgumentError, 'invalid value for "priority", must be greater than or equal to 1.' + end + @priority = priority + end + + # Custom attribute writer method with validation + # @param query [Object] Object to be assigned + def query=(query) + if @query.nil? + fail ArgumentError, 'invalid value for "query", query cannot be nil.' + end + @query = query + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('MonitorType', ['composite', 'event alert', 'log alert', 'metric alert', 'process alert', 'query alert', 'rum alert', 'service check', 'synthetics alert', 'trace-analytics alert', 'slo alert', 'event-v2 alert', 'audit alert', 'ci-pipelines alert']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 937692455d6..b57451568c9 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 @@ -146,12 +146,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @compute.nil? + return false if @data_source.nil? + return false if @name.nil? return false if @compute.nil? return false if @data_source.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param compute [Object] Object to be assigned + def compute=(compute) + if @compute.nil? + fail ArgumentError, 'invalid value for "compute", compute cannot be nil.' + end + @compute = compute + end + + # Custom attribute writer method with validation + # @param data_source [Object] Object to be assigned + def data_source=(data_source) + validator = EnumAttributeValidator.new('MonitorFormulaAndFunctionEventsDataSource', ['rum']) + unless validator.valid?(data_source) + fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." + end + if @data_source.nil? + fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.' + end + @data_source = data_source + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + # 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 6eece4ded4e..6a722739307 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 @@ -109,10 +109,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @aggregation.nil? return false if @aggregation.nil? true end + # Custom attribute writer method with validation + # @param aggregation [Object] Object to be assigned + def aggregation=(aggregation) + validator = EnumAttributeValidator.new('MonitorFormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) + unless validator.valid?(aggregation) + fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." + end + if @aggregation.nil? + fail ArgumentError, 'invalid value for "aggregation", aggregation cannot be nil.' + end + @aggregation = aggregation + end + # 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 58a9adc6ac1..94ea07d3bfd 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @query.nil? return false if @query.nil? true end + # Custom attribute writer method with validation + # @param query [Object] Object to be assigned + def query=(query) + if @query.nil? + fail ArgumentError, 'invalid value for "query", query cannot be nil.' + end + @query = query + end + # 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 c3df1af4f88..030acf513c4 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 @@ -109,10 +109,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @facet.nil? return false if @facet.nil? true end + # Custom attribute writer method with validation + # @param facet [Object] Object to be assigned + def facet=(facet) + if @facet.nil? + fail ArgumentError, 'invalid value for "facet", facet cannot be nil.' + end + @facet = facet + end + # 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 278dbc51c92..71371513d07 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 @@ -111,10 +111,34 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @aggregation.nil? return false if @aggregation.nil? true end + # Custom attribute writer method with validation + # @param aggregation [Object] Object to be assigned + def aggregation=(aggregation) + validator = EnumAttributeValidator.new('MonitorFormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) + unless validator.valid?(aggregation) + fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." + end + if @aggregation.nil? + fail ArgumentError, 'invalid value for "aggregation", aggregation cannot be nil.' + end + @aggregation = aggregation + end + + # Custom attribute writer method with validation + # @param order [Object] Object to be assigned + def order=(order) + validator = EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) + unless validator.valid?(order) + fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." + end + @order = order + end + # 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 6c87ab487de..c922a4a0e4e 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 @@ -148,6 +148,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + # 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 074b88f74e4..a727208e2f5 100644 --- a/lib/datadog_api_client/v1/models/monitor_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_options.rb @@ -369,9 +369,23 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@min_failure_duration.nil? && @min_failure_duration > 7200 + return false if !@min_failure_duration.nil? && @min_failure_duration < 0 true end + # Custom attribute writer method with validation + # @param min_failure_duration [Object] Object to be assigned + def min_failure_duration=(min_failure_duration) + if !@min_failure_duration.nil? && @min_failure_duration > 7200 + fail ArgumentError, 'invalid value for "min_failure_duration", must be smaller than or equal to 7200.' + end + if !@min_failure_duration.nil? && @min_failure_duration < 0 + fail ArgumentError, 'invalid value for "min_failure_duration", must be greater than or equal to 0.' + end + @min_failure_duration = min_failure_duration + end + # 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 c6a9d6bd22e..73758e42db0 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_result.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_result.rb @@ -211,6 +211,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('MonitorType', ['composite', 'event alert', 'log alert', 'metric alert', 'process alert', 'query alert', 'rum alert', 'service check', 'synthetics alert', 'trace-analytics alert', 'slo alert', 'event-v2 alert', 'audit alert', 'ci-pipelines alert']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 91e1a9fb126..70fde80ca18 100644 --- a/lib/datadog_api_client/v1/models/monitor_state_group.rb +++ b/lib/datadog_api_client/v1/models/monitor_state_group.rb @@ -136,6 +136,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + # 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 217b196a4b9..ae07478d14a 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 @@ -204,11 +204,85 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @query.nil? + return false if @type.nil? return false if @query.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param color_preference [Object] Object to be assigned + def color_preference=(color_preference) + validator = EnumAttributeValidator.new('WidgetColorPreference', ['background', 'text']) + unless validator.valid?(color_preference) + fail ArgumentError, "invalid value for \"color_preference\", must be one of #{validator.allowable_values}." + end + @color_preference = color_preference + end + + # Custom attribute writer method with validation + # @param display_format [Object] Object to be assigned + def display_format=(display_format) + validator = EnumAttributeValidator.new('WidgetMonitorSummaryDisplayFormat', ['counts', 'countsAndList', 'list']) + unless validator.valid?(display_format) + fail ArgumentError, "invalid value for \"display_format\", must be one of #{validator.allowable_values}." + end + @display_format = display_format + end + + # Custom attribute writer method with validation + # @param query [Object] Object to be assigned + def query=(query) + if @query.nil? + fail ArgumentError, 'invalid value for "query", query cannot be nil.' + end + @query = query + end + + # Custom attribute writer method with validation + # @param sort [Object] Object to be assigned + def sort=(sort) + validator = EnumAttributeValidator.new('WidgetMonitorSummarySort', ['name', 'group', 'status', 'tags', 'triggered', 'group,asc', 'group,desc', 'name,asc', 'name,desc', 'status,asc', 'status,desc', 'tags,asc', 'tags,desc', 'triggered,asc', 'triggered,desc']) + unless validator.valid?(sort) + fail ArgumentError, "invalid value for \"sort\", must be one of #{validator.allowable_values}." + end + @sort = sort + end + + # Custom attribute writer method with validation + # @param summary_type [Object] Object to be assigned + def summary_type=(summary_type) + validator = EnumAttributeValidator.new('WidgetSummaryType', ['monitors', 'groups', 'combined']) + unless validator.valid?(summary_type) + fail ArgumentError, "invalid value for \"summary_type\", must be one of #{validator.allowable_values}." + end + @summary_type = summary_type + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('MonitorSummaryWidgetDefinitionType', ['manage_status']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 dd14ed49496..1feb4c8dd32 100644 --- a/lib/datadog_api_client/v1/models/monitor_update_request.rb +++ b/lib/datadog_api_client/v1/models/monitor_update_request.rb @@ -234,9 +234,43 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@priority.nil? && @priority > 5 + return false if !@priority.nil? && @priority < 1 true end + # Custom attribute writer method with validation + # @param overall_state [Object] Object to be assigned + def overall_state=(overall_state) + validator = EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) + unless validator.valid?(overall_state) + fail ArgumentError, "invalid value for \"overall_state\", must be one of #{validator.allowable_values}." + end + @overall_state = overall_state + end + + # Custom attribute writer method with validation + # @param priority [Object] Object to be assigned + def priority=(priority) + if !@priority.nil? && @priority > 5 + fail ArgumentError, 'invalid value for "priority", must be smaller than or equal to 5.' + end + if !@priority.nil? && @priority < 1 + fail ArgumentError, 'invalid value for "priority", must be greater than or equal to 1.' + end + @priority = priority + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('MonitorType', ['composite', 'event alert', 'log alert', 'metric alert', 'process alert', 'query alert', 'rum alert', 'service check', 'synthetics alert', 'trace-analytics alert', 'slo alert', 'event-v2 alert', 'audit alert', 'ci-pipelines alert']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 a8be9241b18..da2b1363ae0 100644 --- a/lib/datadog_api_client/v1/models/note_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/note_widget_definition.rb @@ -179,11 +179,65 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @content.nil? + return false if @type.nil? return false if @content.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param content [Object] Object to be assigned + def content=(content) + if @content.nil? + fail ArgumentError, 'invalid value for "content", content cannot be nil.' + end + @content = content + end + + # Custom attribute writer method with validation + # @param text_align [Object] Object to be assigned + def text_align=(text_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(text_align) + fail ArgumentError, "invalid value for \"text_align\", must be one of #{validator.allowable_values}." + end + @text_align = text_align + end + + # Custom attribute writer method with validation + # @param tick_edge [Object] Object to be assigned + def tick_edge=(tick_edge) + validator = EnumAttributeValidator.new('WidgetTickEdge', ['bottom', 'left', 'right', 'top']) + unless validator.valid?(tick_edge) + fail ArgumentError, "invalid value for \"tick_edge\", must be one of #{validator.allowable_values}." + end + @tick_edge = tick_edge + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('NoteWidgetDefinitionType', ['note']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + + # Custom attribute writer method with validation + # @param vertical_align [Object] Object to be assigned + def vertical_align=(vertical_align) + validator = EnumAttributeValidator.new('WidgetVerticalAlign', ['center', 'top', 'bottom']) + unless validator.valid?(vertical_align) + fail ArgumentError, "invalid value for \"vertical_align\", must be one of #{validator.allowable_values}." + end + @vertical_align = vertical_align + end + # 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 1f3ed93e24f..b0b3614952b 100644 --- a/lib/datadog_api_client/v1/models/notebook_absolute_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_absolute_time.rb @@ -112,11 +112,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @_end.nil? + return false if @start.nil? return false if @_end.nil? return false if @start.nil? true end + # Custom attribute writer method with validation + # @param _end [Object] Object to be assigned + def _end=(_end) + if @_end.nil? + fail ArgumentError, 'invalid value for "_end", _end cannot be nil.' + end + @_end = _end + end + + # Custom attribute writer method with validation + # @param start [Object] Object to be assigned + def start=(start) + if @start.nil? + fail ArgumentError, 'invalid value for "start", start cannot be nil.' + end + @start = start + end + # 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 054133ba364..7c0c470753c 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 @@ -106,11 +106,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('NotebookCellResourceType', ['notebook_cells']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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_response.rb b/lib/datadog_api_client/v1/models/notebook_cell_response.rb index 803a5a48011..840a2349b95 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_response.rb @@ -118,12 +118,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @id.nil? + return false if @type.nil? return false if @attributes.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('NotebookCellResourceType', ['notebook_cells']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 f16f17257da..e9bd7d0802b 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 @@ -118,12 +118,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @id.nil? + return false if @type.nil? return false if @attributes.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('NotebookCellResourceType', ['notebook_cells']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 db1e1d34291..897edac6faa 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_data.rb @@ -105,11 +105,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 6ec91b7ae16..0d270a60895 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 @@ -146,9 +146,57 @@ def valid? return false if @cells.nil? return false if @name.nil? return false if @time.nil? + return false if @cells.nil? + return false if @name.nil? + return false if @name.to_s.length > 80 + return false if @name.to_s.length < 0 + return false if @time.nil? true end + # Custom attribute writer method with validation + # @param cells [Object] Object to be assigned + def cells=(cells) + if @cells.nil? + fail ArgumentError, 'invalid value for "cells", cells cannot be nil.' + end + @cells = cells + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + if @name.to_s.length > 80 + fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 80.' + end + if @name.to_s.length < 0 + fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 0.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('NotebookStatus', ['published']) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + + # Custom attribute writer method with validation + # @param time [Object] Object to be assigned + def time=(time) + if @time.nil? + fail ArgumentError, 'invalid value for "time", time cannot be nil.' + end + @time = time + end + # 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 86fb70dfd16..58abc50aa92 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_request.rb @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 68fd68b92f6..fb9f13b081d 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 @@ -121,10 +121,30 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @definition.nil? return false if @definition.nil? true end + # Custom attribute writer method with validation + # @param definition [Object] Object to be assigned + def definition=(definition) + if @definition.nil? + fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' + end + @definition = definition + end + + # Custom attribute writer method with validation + # @param graph_size [Object] Object to be assigned + def graph_size=(graph_size) + validator = EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) + unless validator.valid?(graph_size) + fail ArgumentError, "invalid value for \"graph_size\", must be one of #{validator.allowable_values}." + end + @graph_size = graph_size + end + # 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 ee3d66660db..817abf140d7 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 @@ -119,10 +119,30 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @definition.nil? return false if @definition.nil? true end + # Custom attribute writer method with validation + # @param definition [Object] Object to be assigned + def definition=(definition) + if @definition.nil? + fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' + end + @definition = definition + end + + # Custom attribute writer method with validation + # @param graph_size [Object] Object to be assigned + def graph_size=(graph_size) + validator = EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) + unless validator.valid?(graph_size) + fail ArgumentError, "invalid value for \"graph_size\", must be one of #{validator.allowable_values}." + end + @graph_size = graph_size + end + # 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 3f9940ceafc..c4544769ecf 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 @@ -110,10 +110,30 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @definition.nil? return false if @definition.nil? true end + # Custom attribute writer method with validation + # @param definition [Object] Object to be assigned + def definition=(definition) + if @definition.nil? + fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' + end + @definition = definition + end + + # Custom attribute writer method with validation + # @param graph_size [Object] Object to be assigned + def graph_size=(graph_size) + validator = EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) + unless validator.valid?(graph_size) + fail ArgumentError, "invalid value for \"graph_size\", must be one of #{validator.allowable_values}." + end + @graph_size = graph_size + end + # 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 44b7990b587..aa0ccffb9c8 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @definition.nil? return false if @definition.nil? true end + # Custom attribute writer method with validation + # @param definition [Object] Object to be assigned + def definition=(definition) + if @definition.nil? + fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' + end + @definition = definition + end + # 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 575aaf2e0c0..0228510def9 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 @@ -105,11 +105,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @text.nil? + return false if @type.nil? return false if @text.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param text [Object] Object to be assigned + def text=(text) + if @text.nil? + fail ArgumentError, 'invalid value for "text", text cannot be nil.' + end + @text = text + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('NotebookMarkdownCellDefinitionType', ['markdown']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 8840dc924d7..fba9df8d987 100644 --- a/lib/datadog_api_client/v1/models/notebook_metadata.rb +++ b/lib/datadog_api_client/v1/models/notebook_metadata.rb @@ -114,6 +114,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('NotebookMetadataType', ['postmortem', 'runbook', 'investigation', 'documentation', 'report']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 9978e676e30..804e931426b 100644 --- a/lib/datadog_api_client/v1/models/notebook_relative_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_relative_time.rb @@ -91,10 +91,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @live_span.nil? return false if @live_span.nil? true end + # Custom attribute writer method with validation + # @param live_span [Object] Object to be assigned + def live_span=(live_span) + validator = EnumAttributeValidator.new('WidgetLiveSpan', ['1m', '5m', '10m', '15m', '30m', '1h', '4h', '1d', '2d', '1w', '1mo', '3mo', '6mo', '1y', 'alert']) + unless validator.valid?(live_span) + fail ArgumentError, "invalid value for \"live_span\", must be one of #{validator.allowable_values}." + end + if @live_span.nil? + fail ArgumentError, 'invalid value for "live_span", live_span cannot be nil.' + end + @live_span = live_span + end + # 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 76f6e6785cc..242be5e2216 100644 --- a/lib/datadog_api_client/v1/models/notebook_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_response_data.rb @@ -117,12 +117,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @id.nil? + return false if @type.nil? return false if @attributes.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 36b5ed180a3..d00dc76a403 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 @@ -173,9 +173,57 @@ def valid? return false if @cells.nil? return false if @name.nil? return false if @time.nil? + return false if @cells.nil? + return false if @name.nil? + return false if @name.to_s.length > 80 + return false if @name.to_s.length < 0 + return false if @time.nil? true end + # Custom attribute writer method with validation + # @param cells [Object] Object to be assigned + def cells=(cells) + if @cells.nil? + fail ArgumentError, 'invalid value for "cells", cells cannot be nil.' + end + @cells = cells + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + if @name.to_s.length > 80 + fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 80.' + end + if @name.to_s.length < 0 + fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 0.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('NotebookStatus', ['published']) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + + # Custom attribute writer method with validation + # @param time [Object] Object to be assigned + def time=(time) + if @time.nil? + fail ArgumentError, 'invalid value for "time", time cannot be nil.' + end + @time = time + end + # 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 f3bac201f96..0f27174bd1f 100644 --- a/lib/datadog_api_client/v1/models/notebook_split_by.rb +++ b/lib/datadog_api_client/v1/models/notebook_split_by.rb @@ -107,11 +107,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @keys.nil? + return false if @tags.nil? return false if @keys.nil? return false if @tags.nil? true end + # Custom attribute writer method with validation + # @param keys [Object] Object to be assigned + def keys=(keys) + if @keys.nil? + fail ArgumentError, 'invalid value for "keys", keys cannot be nil.' + end + @keys = keys + end + + # Custom attribute writer method with validation + # @param tags [Object] Object to be assigned + def tags=(tags) + if @tags.nil? + fail ArgumentError, 'invalid value for "tags", tags cannot be nil.' + end + @tags = tags + end + # 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 f36c539f77f..e521c709272 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 @@ -119,10 +119,30 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @definition.nil? return false if @definition.nil? true end + # Custom attribute writer method with validation + # @param definition [Object] Object to be assigned + def definition=(definition) + if @definition.nil? + fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' + end + @definition = definition + end + + # Custom attribute writer method with validation + # @param graph_size [Object] Object to be assigned + def graph_size=(graph_size) + validator = EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) + unless validator.valid?(graph_size) + fail ArgumentError, "invalid value for \"graph_size\", must be one of #{validator.allowable_values}." + end + @graph_size = graph_size + end + # 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 2cd467a6f11..d519c2ebb3b 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 @@ -119,10 +119,30 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @definition.nil? return false if @definition.nil? true end + # Custom attribute writer method with validation + # @param definition [Object] Object to be assigned + def definition=(definition) + if @definition.nil? + fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' + end + @definition = definition + end + + # Custom attribute writer method with validation + # @param graph_size [Object] Object to be assigned + def graph_size=(graph_size) + validator = EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) + unless validator.valid?(graph_size) + fail ArgumentError, "invalid value for \"graph_size\", must be one of #{validator.allowable_values}." + end + @graph_size = graph_size + end + # 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 6d1fbe08180..ef2fde1c071 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_data.rb @@ -105,11 +105,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 f5f75c6554a..96beb3ec1a5 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 @@ -146,9 +146,57 @@ def valid? return false if @cells.nil? return false if @name.nil? return false if @time.nil? + return false if @cells.nil? + return false if @name.nil? + return false if @name.to_s.length > 80 + return false if @name.to_s.length < 0 + return false if @time.nil? true end + # Custom attribute writer method with validation + # @param cells [Object] Object to be assigned + def cells=(cells) + if @cells.nil? + fail ArgumentError, 'invalid value for "cells", cells cannot be nil.' + end + @cells = cells + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + if @name.to_s.length > 80 + fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 80.' + end + if @name.to_s.length < 0 + fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 0.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('NotebookStatus', ['published']) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + + # Custom attribute writer method with validation + # @param time [Object] Object to be assigned + def time=(time) + if @time.nil? + fail ArgumentError, 'invalid value for "time", time cannot be nil.' + end + @time = time + end + # 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 e67adb2f512..ecde8319118 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_request.rb @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 f1916731a8c..922e6c69048 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_data.rb @@ -117,12 +117,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @id.nil? + return false if @type.nil? return false if @attributes.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 273fbf7320f..a415433dc66 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 @@ -165,9 +165,37 @@ def list_invalid_properties # @!visibility private def valid? return false if @name.nil? + return false if @name.nil? + return false if @name.to_s.length > 80 + return false if @name.to_s.length < 0 true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + if @name.to_s.length > 80 + fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 80.' + end + if @name.to_s.length < 0 + fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 0.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('NotebookStatus', ['published']) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + # 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 c615f3b0d27..ccc48f9ff12 100644 --- a/lib/datadog_api_client/v1/models/organization.rb +++ b/lib/datadog_api_client/v1/models/organization.rb @@ -145,9 +145,19 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@name.nil? && @name > 32 true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if !@name.nil? && @name > 32 + fail ArgumentError, 'invalid value for "name", must be smaller than or equal to 32.' + end + @name = name + end + # 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 94c44aee344..6ab741ff91e 100644 --- a/lib/datadog_api_client/v1/models/organization_create_body.rb +++ b/lib/datadog_api_client/v1/models/organization_create_body.rb @@ -113,9 +113,23 @@ def list_invalid_properties # @!visibility private def valid? return false if @name.nil? + return false if @name.nil? + return false if @name > 32 true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + if @name > 32 + fail ArgumentError, 'invalid value for "name", must be smaller than or equal to 32.' + end + @name = name + end + # 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 3aec6e8ef40..13dffe1ee43 100644 --- a/lib/datadog_api_client/v1/models/organization_settings.rb +++ b/lib/datadog_api_client/v1/models/organization_settings.rb @@ -175,6 +175,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param saml_autocreate_access_role [Object] Object to be assigned + def saml_autocreate_access_role=(saml_autocreate_access_role) + validator = EnumAttributeValidator.new('AccessRole', ['st', 'adm', 'ro', 'ERROR']) + unless validator.valid?(saml_autocreate_access_role) + fail ArgumentError, "invalid value for \"saml_autocreate_access_role\", must be one of #{validator.allowable_values}." + end + @saml_autocreate_access_role = saml_autocreate_access_role + end + # 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 b507b5741da..ca5cc2a237f 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service.rb @@ -103,11 +103,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @service_key.nil? + return false if @service_name.nil? return false if @service_key.nil? return false if @service_name.nil? true end + # Custom attribute writer method with validation + # @param service_key [Object] Object to be assigned + def service_key=(service_key) + if @service_key.nil? + fail ArgumentError, 'invalid value for "service_key", service_key cannot be nil.' + end + @service_key = service_key + end + + # Custom attribute writer method with validation + # @param service_name [Object] Object to be assigned + def service_name=(service_name) + if @service_name.nil? + fail ArgumentError, 'invalid value for "service_name", service_name cannot be nil.' + end + @service_name = service_name + end + # 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 f00a0b2629b..822933a2cbd 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @service_key.nil? return false if @service_key.nil? true end + # Custom attribute writer method with validation + # @param service_key [Object] Object to be assigned + def service_key=(service_key) + if @service_key.nil? + fail ArgumentError, 'invalid value for "service_key", service_key cannot be nil.' + end + @service_key = service_key + end + # 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 c8c10f487d3..47ef75b6c11 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @service_name.nil? return false if @service_name.nil? true end + # Custom attribute writer method with validation + # @param service_name [Object] Object to be assigned + def service_name=(service_name) + if @service_name.nil? + fail ArgumentError, 'invalid value for "service_name", service_name cannot be nil.' + end + @service_name = service_name + end + # 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 a7700c09222..74fb937e26b 100644 --- a/lib/datadog_api_client/v1/models/process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/process_query_definition.rb @@ -123,10 +123,30 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @metric.nil? + return false if !@limit.nil? && @limit < 0 return false if @metric.nil? true end + # Custom attribute writer method with validation + # @param limit [Object] Object to be assigned + def limit=(limit) + if !@limit.nil? && @limit < 0 + fail ArgumentError, 'invalid value for "limit", must be greater than or equal to 0.' + end + @limit = limit + end + + # Custom attribute writer method with validation + # @param metric [Object] Object to be assigned + def metric=(metric) + if @metric.nil? + fail ArgumentError, 'invalid value for "metric", metric cannot be nil.' + end + @metric = metric + end + # 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 1bd8cf7f400..5df43fae8a8 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 @@ -198,9 +198,61 @@ def list_invalid_properties def valid? return false if @requests.nil? return false if @type.nil? + return false if @requests.nil? + return false if @requests.length > 1 + return false if @requests.length < 1 + return false if @type.nil? true end + # Custom attribute writer method with validation + # @param requests [Object] Object to be assigned + def requests=(requests) + if @requests.nil? + fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' + end + if @requests.length > 1 + fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' + end + if @requests.length < 1 + fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' + end + @requests = requests + end + + # Custom attribute writer method with validation + # @param text_align [Object] Object to be assigned + def text_align=(text_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(text_align) + fail ArgumentError, "invalid value for \"text_align\", must be one of #{validator.allowable_values}." + end + @text_align = text_align + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('QueryValueWidgetDefinitionType', ['query_value']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 c94d5e04557..8b326512b41 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 @@ -223,6 +223,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param aggregator [Object] Object to be assigned + def aggregator=(aggregator) + validator = EnumAttributeValidator.new('WidgetAggregator', ['avg', 'last', 'max', 'min', 'sum', 'percentile']) + unless validator.valid?(aggregator) + fail ArgumentError, "invalid value for \"aggregator\", must be one of #{validator.allowable_values}." + end + @aggregator = aggregator + end + + # Custom attribute writer method with validation + # @param response_format [Object] Object to be assigned + def response_format=(response_format) + validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) + unless validator.valid?(response_format) + fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." + end + @response_format = response_format + end + # 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 61d46738fc6..38f95b6132d 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_request.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_request.rb @@ -172,6 +172,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param aggregator [Object] Object to be assigned + def aggregator=(aggregator) + validator = EnumAttributeValidator.new('ScatterplotWidgetAggregator', ['avg', 'last', 'max', 'min', 'sum']) + unless validator.valid?(aggregator) + fail ArgumentError, "invalid value for \"aggregator\", must be one of #{validator.allowable_values}." + end + @aggregator = aggregator + end + # 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 facc0e7025c..afa2cab44b9 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 @@ -181,11 +181,45 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @requests.nil? + return false if @type.nil? return false if @requests.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param requests [Object] Object to be assigned + def requests=(requests) + if @requests.nil? + fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' + end + @requests = requests + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('ScatterPlotWidgetDefinitionType', ['scatterplot']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 12f00c43a7d..bf4e3a7fb80 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_table_request.rb @@ -113,6 +113,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param response_format [Object] Object to be assigned + def response_format=(response_format) + validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) + unless validator.valid?(response_format) + fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." + end + @response_format = response_format + end + # 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 4d670e279b4..1dc88abc0aa 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb @@ -112,11 +112,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @dimension.nil? + return false if @formula.nil? return false if @dimension.nil? return false if @formula.nil? true end + # Custom attribute writer method with validation + # @param dimension [Object] Object to be assigned + def dimension=(dimension) + validator = EnumAttributeValidator.new('ScatterplotDimension', ['x', 'y', 'radius', 'color']) + unless validator.valid?(dimension) + fail ArgumentError, "invalid value for \"dimension\", must be one of #{validator.allowable_values}." + end + if @dimension.nil? + fail ArgumentError, 'invalid value for "dimension", dimension cannot be nil.' + end + @dimension = dimension + end + + # Custom attribute writer method with validation + # @param formula [Object] Object to be assigned + def formula=(formula) + if @formula.nil? + fail ArgumentError, 'invalid value for "formula", formula cannot be nil.' + end + @formula = formula + end + # 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 b691464321f..9bf6da2d0e5 100644 --- a/lib/datadog_api_client/v1/models/series.rb +++ b/lib/datadog_api_client/v1/models/series.rb @@ -147,11 +147,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @metric.nil? + return false if @points.nil? return false if @metric.nil? return false if @points.nil? true end + # Custom attribute writer method with validation + # @param metric [Object] Object to be assigned + def metric=(metric) + if @metric.nil? + fail ArgumentError, 'invalid value for "metric", metric cannot be nil.' + end + @metric = metric + end + + # Custom attribute writer method with validation + # @param points [Object] Object to be assigned + def points=(points) + if @points.nil? + fail ArgumentError, 'invalid value for "points", points cannot be nil.' + end + @points = points + end + # 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 2fe8eded1f7..874b1618c99 100644 --- a/lib/datadog_api_client/v1/models/service_check.rb +++ b/lib/datadog_api_client/v1/models/service_check.rb @@ -147,6 +147,10 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @check.nil? + return false if @host_name.nil? + return false if @status.nil? + return false if @tags.nil? return false if @check.nil? return false if @host_name.nil? return false if @status.nil? @@ -154,6 +158,46 @@ def valid? true end + # Custom attribute writer method with validation + # @param check [Object] Object to be assigned + def check=(check) + if @check.nil? + fail ArgumentError, 'invalid value for "check", check cannot be nil.' + end + @check = check + end + + # Custom attribute writer method with validation + # @param host_name [Object] Object to be assigned + def host_name=(host_name) + if @host_name.nil? + fail ArgumentError, 'invalid value for "host_name", host_name cannot be nil.' + end + @host_name = host_name + end + + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('ServiceCheckStatus', [0, 1, 2, 3]) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + if @status.nil? + fail ArgumentError, 'invalid value for "status", status cannot be nil.' + end + @status = status + end + + # Custom attribute writer method with validation + # @param tags [Object] Object to be assigned + def tags=(tags) + if @tags.nil? + fail ArgumentError, 'invalid value for "tags", tags cannot be nil.' + end + @tags = tags + end + # 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 d1b927fd674..4e6e843f688 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective.rb @@ -241,12 +241,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? + return false if @thresholds.nil? + return false if @type.nil? return false if @name.nil? return false if @thresholds.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param thresholds [Object] Object to be assigned + def thresholds=(thresholds) + if @thresholds.nil? + fail ArgumentError, 'invalid value for "thresholds", thresholds cannot be nil.' + end + @thresholds = thresholds + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 2cfa12cce95..3f376b31406 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,11 +105,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @denominator.nil? + return false if @numerator.nil? return false if @denominator.nil? return false if @numerator.nil? true end + # Custom attribute writer method with validation + # @param denominator [Object] Object to be assigned + def denominator=(denominator) + if @denominator.nil? + fail ArgumentError, 'invalid value for "denominator", denominator cannot be nil.' + end + @denominator = denominator + end + + # Custom attribute writer method with validation + # @param numerator [Object] Object to be assigned + def numerator=(numerator) + if @numerator.nil? + fail ArgumentError, 'invalid value for "numerator", numerator cannot be nil.' + end + @numerator = numerator + end + # 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 e9ff1685af8..aa739de0f8a 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 @@ -183,12 +183,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? + return false if @thresholds.nil? + return false if @type.nil? return false if @name.nil? return false if @thresholds.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param thresholds [Object] Object to be assigned + def thresholds=(thresholds) + if @thresholds.nil? + fail ArgumentError, 'invalid value for "thresholds", thresholds cannot be nil.' + end + @thresholds = thresholds + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 a358fd77d67..ceba8c32285 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 @@ -163,9 +163,57 @@ def valid? return false if @filters.nil? return false if @service.nil? return false if @type.nil? + return false if @filters.nil? + return false if @filters.length < 1 + return false if @service.nil? + return false if @type.nil? true end + # Custom attribute writer method with validation + # @param filters [Object] Object to be assigned + def filters=(filters) + if @filters.nil? + fail ArgumentError, 'invalid value for "filters", filters cannot be nil.' + end + if @filters.length < 1 + fail ArgumentError, 'invalid value for "filters", number of items must be greater than or equal to 1.' + end + @filters = filters + end + + # Custom attribute writer method with validation + # @param service [Object] Object to be assigned + def service=(service) + if @service.nil? + fail ArgumentError, 'invalid value for "service", service cannot be nil.' + end + @service = service + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('ServiceMapWidgetDefinitionType', ['servicemap']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 9c9c12c2a54..3d71e301a54 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 @@ -237,6 +237,10 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @env.nil? + return false if @service.nil? + return false if @span_name.nil? + return false if @type.nil? return false if @env.nil? return false if @service.nil? return false if @span_name.nil? @@ -244,6 +248,76 @@ def valid? true end + # Custom attribute writer method with validation + # @param display_format [Object] Object to be assigned + def display_format=(display_format) + validator = EnumAttributeValidator.new('WidgetServiceSummaryDisplayFormat', ['one_column', 'two_column', 'three_column']) + unless validator.valid?(display_format) + fail ArgumentError, "invalid value for \"display_format\", must be one of #{validator.allowable_values}." + end + @display_format = display_format + end + + # Custom attribute writer method with validation + # @param env [Object] Object to be assigned + def env=(env) + if @env.nil? + fail ArgumentError, 'invalid value for "env", env cannot be nil.' + end + @env = env + end + + # Custom attribute writer method with validation + # @param service [Object] Object to be assigned + def service=(service) + if @service.nil? + fail ArgumentError, 'invalid value for "service", service cannot be nil.' + end + @service = service + end + + # Custom attribute writer method with validation + # @param size_format [Object] Object to be assigned + def size_format=(size_format) + validator = EnumAttributeValidator.new('WidgetSizeFormat', ['small', 'medium', 'large']) + unless validator.valid?(size_format) + fail ArgumentError, "invalid value for \"size_format\", must be one of #{validator.allowable_values}." + end + @size_format = size_format + end + + # Custom attribute writer method with validation + # @param span_name [Object] Object to be assigned + def span_name=(span_name) + if @span_name.nil? + fail ArgumentError, 'invalid value for "span_name", span_name cannot be nil.' + end + @span_name = span_name + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('ServiceSummaryWidgetDefinitionType', ['trace_service']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 ec62e65e03d..fd374e92007 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 @@ -117,12 +117,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @id.nil? + return false if @message.nil? + return false if @timeframe.nil? return false if @id.nil? return false if @message.nil? return false if @timeframe.nil? true end + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param message [Object] Object to be assigned + def message=(message) + if @message.nil? + fail ArgumentError, 'invalid value for "message", message cannot be nil.' + end + @message = message + end + + # Custom attribute writer method with validation + # @param timeframe [Object] Object to be assigned + def timeframe=(timeframe) + validator = EnumAttributeValidator.new('SLOErrorTimeframe', ['7d', '30d', '90d', 'all']) + unless validator.valid?(timeframe) + fail ArgumentError, "invalid value for \"timeframe\", must be one of #{validator.allowable_values}." + end + if @timeframe.nil? + fail ArgumentError, 'invalid value for "timeframe", timeframe cannot be nil.' + end + @timeframe = timeframe + end + # 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 1ab0cbc7743..566b29ecf43 100644 --- a/lib/datadog_api_client/v1/models/slo_correction.rb +++ b/lib/datadog_api_client/v1/models/slo_correction.rb @@ -111,6 +111,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SLOCorrectionType', ['correction']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 ba368a0bc18..0e317f820d9 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 @@ -102,10 +102,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SLOCorrectionType', ['correction']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 e04d031a12e..45a45ac7101 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 @@ -161,12 +161,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @category.nil? + return false if @slo_id.nil? + return false if @start.nil? return false if @category.nil? return false if @slo_id.nil? return false if @start.nil? true end + # Custom attribute writer method with validation + # @param category [Object] Object to be assigned + def category=(category) + validator = EnumAttributeValidator.new('SLOCorrectionCategory', ['Scheduled Maintenance', 'Outside Business Hours', 'Deployment', 'Other']) + unless validator.valid?(category) + fail ArgumentError, "invalid value for \"category\", must be one of #{validator.allowable_values}." + end + if @category.nil? + fail ArgumentError, 'invalid value for "category", category cannot be nil.' + end + @category = category + end + + # Custom attribute writer method with validation + # @param slo_id [Object] Object to be assigned + def slo_id=(slo_id) + if @slo_id.nil? + fail ArgumentError, 'invalid value for "slo_id", slo_id cannot be nil.' + end + @slo_id = slo_id + end + + # Custom attribute writer method with validation + # @param start [Object] Object to be assigned + def start=(start) + if @start.nil? + fail ArgumentError, 'invalid value for "start", start cannot be nil.' + end + @start = start + end + # 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 a69fe7587f6..cfbdb6d572a 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 @@ -194,6 +194,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param category [Object] Object to be assigned + def category=(category) + validator = EnumAttributeValidator.new('SLOCorrectionCategory', ['Scheduled Maintenance', 'Outside Business Hours', 'Deployment', 'Other']) + unless validator.valid?(category) + fail ArgumentError, "invalid value for \"category\", must be one of #{validator.allowable_values}." + end + @category = category + end + # 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 5db86b0092a..44b52e67f7b 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 @@ -102,6 +102,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SLOCorrectionType', ['correction']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 67ef75cf7fd..d3bbe180310 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 @@ -146,6 +146,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param category [Object] Object to be assigned + def category=(category) + validator = EnumAttributeValidator.new('SLOCorrectionCategory', ['Scheduled Maintenance', 'Outside Business Hours', 'Deployment', 'Other']) + unless validator.valid?(category) + fail ArgumentError, "invalid value for \"category\", must be one of #{validator.allowable_values}." + end + @category = category + end + # 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 c1e42b2ea35..248dba6ae9d 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics.rb @@ -178,6 +178,13 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @denominator.nil? + return false if @interval.nil? + return false if @numerator.nil? + return false if @query.nil? + return false if @res_type.nil? + return false if @resp_version.nil? + return false if @times.nil? return false if @denominator.nil? return false if @interval.nil? return false if @numerator.nil? @@ -188,6 +195,69 @@ def valid? true end + # Custom attribute writer method with validation + # @param denominator [Object] Object to be assigned + def denominator=(denominator) + if @denominator.nil? + fail ArgumentError, 'invalid value for "denominator", denominator cannot be nil.' + end + @denominator = denominator + end + + # Custom attribute writer method with validation + # @param interval [Object] Object to be assigned + def interval=(interval) + if @interval.nil? + fail ArgumentError, 'invalid value for "interval", interval cannot be nil.' + end + @interval = interval + end + + # Custom attribute writer method with validation + # @param numerator [Object] Object to be assigned + def numerator=(numerator) + if @numerator.nil? + fail ArgumentError, 'invalid value for "numerator", numerator cannot be nil.' + end + @numerator = numerator + end + + # Custom attribute writer method with validation + # @param query [Object] Object to be assigned + def query=(query) + if @query.nil? + fail ArgumentError, 'invalid value for "query", query cannot be nil.' + end + @query = query + end + + # Custom attribute writer method with validation + # @param res_type [Object] Object to be assigned + def res_type=(res_type) + if @res_type.nil? + fail ArgumentError, 'invalid value for "res_type", res_type cannot be nil.' + end + @res_type = res_type + end + + # Custom attribute writer method with validation + # @param resp_version [Object] Object to be assigned + def resp_version=(resp_version) + if @resp_version.nil? + fail ArgumentError, 'invalid value for "resp_version", resp_version cannot be nil.' + end + @resp_version = resp_version + end + + # Custom attribute writer method with validation + # @param times [Object] Object to be assigned + def times=(times) + if @times.nil? + fail ArgumentError, 'invalid value for "times", times cannot be nil.' + end + @times = times + end + # 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 be8461d8a64..bf418171261 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 @@ -127,12 +127,42 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @count.nil? + return false if @sum.nil? + return false if @values.nil? return false if @count.nil? return false if @sum.nil? return false if @values.nil? true end + # Custom attribute writer method with validation + # @param count [Object] Object to be assigned + def count=(count) + if @count.nil? + fail ArgumentError, 'invalid value for "count", count cannot be nil.' + end + @count = count + end + + # Custom attribute writer method with validation + # @param sum [Object] Object to be assigned + def sum=(sum) + if @sum.nil? + fail ArgumentError, 'invalid value for "sum", sum cannot be nil.' + end + @sum = sum + end + + # Custom attribute writer method with validation + # @param values [Object] Object to be assigned + def values=(values) + if @values.nil? + fail ArgumentError, 'invalid value for "values", values cannot be nil.' + end + @values = values + end + # 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 32afe81cfc9..93ad62bdb79 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 @@ -189,6 +189,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + + # Custom attribute writer method with validation + # @param type_id [Object] Object to be assigned + def type_id=(type_id) + validator = EnumAttributeValidator.new('SLOTypeNumeric', [0, 1]) + unless validator.valid?(type_id) + fail ArgumentError, "invalid value for \"type_id\", must be one of #{validator.allowable_values}." + end + @type_id = type_id + end + # 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 c7d7724f545..6f1d34397ff 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,11 +103,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @error_message.nil? + return false if @error_type.nil? return false if @error_message.nil? return false if @error_type.nil? true end + # Custom attribute writer method with validation + # @param error_message [Object] Object to be assigned + def error_message=(error_message) + if @error_message.nil? + fail ArgumentError, 'invalid value for "error_message", error_message cannot be nil.' + end + @error_message = error_message + end + + # Custom attribute writer method with validation + # @param error_type [Object] Object to be assigned + def error_type=(error_type) + if @error_type.nil? + fail ArgumentError, 'invalid value for "error_type", error_type cannot be nil.' + end + @error_type = error_type + end + # 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 7cb7b6da51d..28d4a014fd0 100644 --- a/lib/datadog_api_client/v1/models/slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_response_data.rb @@ -246,6 +246,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 514768a6e01..e45a2fb0592 100644 --- a/lib/datadog_api_client/v1/models/slo_threshold.rb +++ b/lib/datadog_api_client/v1/models/slo_threshold.rb @@ -139,11 +139,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @target.nil? + return false if @timeframe.nil? return false if @target.nil? return false if @timeframe.nil? true end + # Custom attribute writer method with validation + # @param target [Object] Object to be assigned + def target=(target) + if @target.nil? + fail ArgumentError, 'invalid value for "target", target cannot be nil.' + end + @target = target + end + + # Custom attribute writer method with validation + # @param timeframe [Object] Object to be assigned + def timeframe=(timeframe) + validator = EnumAttributeValidator.new('SLOTimeframe', ['7d', '30d', '90d', 'custom']) + unless validator.valid?(timeframe) + fail ArgumentError, "invalid value for \"timeframe\", must be one of #{validator.allowable_values}." + end + if @timeframe.nil? + fail ArgumentError, 'invalid value for "timeframe", timeframe cannot be nil.' + end + @timeframe = timeframe + end + # 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_widget_definition.rb b/lib/datadog_api_client/v1/models/slo_widget_definition.rb index 170073d0e15..3d0b72116a6 100644 --- a/lib/datadog_api_client/v1/models/slo_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/slo_widget_definition.rb @@ -181,11 +181,55 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? + return false if @view_type.nil? return false if @type.nil? return false if @view_type.nil? true end + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SLOWidgetDefinitionType', ['slo']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + + # Custom attribute writer method with validation + # @param view_mode [Object] Object to be assigned + def view_mode=(view_mode) + validator = EnumAttributeValidator.new('WidgetViewMode', ['overall', 'component', 'both']) + unless validator.valid?(view_mode) + fail ArgumentError, "invalid value for \"view_mode\", must be one of #{validator.allowable_values}." + end + @view_mode = view_mode + end + + # Custom attribute writer method with validation + # @param view_type [Object] Object to be assigned + def view_type=(view_type) + if @view_type.nil? + fail ArgumentError, 'invalid value for "view_type", view_type cannot be nil.' + end + @view_type = view_type + end + # 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 f2910f5d393..0b519deb47c 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb @@ -177,9 +177,47 @@ def list_invalid_properties def valid? return false if @requests.nil? return false if @type.nil? + return false if @requests.nil? + return false if @requests.length < 1 + return false if @type.nil? true end + # Custom attribute writer method with validation + # @param requests [Object] Object to be assigned + def requests=(requests) + if @requests.nil? + fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' + end + if @requests.length < 1 + fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' + end + @requests = requests + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SunburstWidgetDefinitionType', ['sunburst']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 4ba2edc83a4..472036dd4ae 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 @@ -109,10 +109,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SunburstWidgetLegendInlineAutomaticType', ['inline', 'automatic']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 b1c1f1a72ce..b4066af3ae8 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 @@ -91,10 +91,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SunburstWidgetLegendTableType', ['table', 'none']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 6e713a7196f..a1ecac6527d 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_request.rb @@ -203,6 +203,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param response_format [Object] Object to be assigned + def response_format=(response_format) + validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) + unless validator.valid?(response_format) + fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." + end + @response_format = response_format + end + # 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_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_step.rb index 642b3875244..66a4b5d0383 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_step.rb @@ -170,6 +170,10 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @assertions.nil? + return false if @name.nil? + return false if @request.nil? + return false if @subtype.nil? return false if @assertions.nil? return false if @name.nil? return false if @request.nil? @@ -177,6 +181,46 @@ def valid? true end + # Custom attribute writer method with validation + # @param assertions [Object] Object to be assigned + def assertions=(assertions) + if @assertions.nil? + fail ArgumentError, 'invalid value for "assertions", assertions cannot be nil.' + end + @assertions = assertions + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param request [Object] Object to be assigned + def request=(request) + if @request.nil? + fail ArgumentError, 'invalid value for "request", request cannot be nil.' + end + @request = request + end + + # Custom attribute writer method with validation + # @param subtype [Object] Object to be assigned + def subtype=(subtype) + validator = EnumAttributeValidator.new('SyntheticsAPIStepSubtype', ['http']) + unless validator.valid?(subtype) + fail ArgumentError, "invalid value for \"subtype\", must be one of #{validator.allowable_values}." + end + if @subtype.nil? + fail ArgumentError, 'invalid value for "subtype", subtype cannot be nil.' + end + @subtype = subtype + end + # 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 94a2688f1f7..80b95ca0342 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test.rb @@ -201,6 +201,11 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @config.nil? + return false if @locations.nil? + return false if @name.nil? + return false if @options.nil? + return false if @type.nil? return false if @config.nil? return false if @locations.nil? return false if @name.nil? @@ -209,6 +214,75 @@ def valid? true end + # Custom attribute writer method with validation + # @param config [Object] Object to be assigned + def config=(config) + if @config.nil? + fail ArgumentError, 'invalid value for "config", config cannot be nil.' + end + @config = config + end + + # Custom attribute writer method with validation + # @param locations [Object] Object to be assigned + def locations=(locations) + if @locations.nil? + fail ArgumentError, 'invalid value for "locations", locations cannot be nil.' + end + @locations = locations + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param options [Object] Object to be assigned + def options=(options) + if @options.nil? + fail ArgumentError, 'invalid value for "options", options cannot be nil.' + end + @options = options + end + + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + + # Custom attribute writer method with validation + # @param subtype [Object] Object to be assigned + def subtype=(subtype) + validator = EnumAttributeValidator.new('SyntheticsTestDetailsSubType', ['http', 'ssl', 'tcp', 'dns', 'multi', 'icmp', 'udp', 'websocket']) + unless validator.valid?(subtype) + fail ArgumentError, "invalid value for \"subtype\", must be one of #{validator.allowable_values}." + end + @subtype = subtype + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SyntheticsAPITestType', ['api']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 8f9910a84bc..5d5ece4fd16 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 @@ -164,6 +164,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param event_type [Object] Object to be assigned + def event_type=(event_type) + validator = EnumAttributeValidator.new('SyntheticsTestProcessStatus', ['not_scheduled', 'scheduled', 'started', 'finished', 'finished_with_error']) + unless validator.valid?(event_type) + fail ArgumentError, "invalid value for \"event_type\", must be one of #{validator.allowable_values}." + end + @event_type = event_type + end + # 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 8e8bd33ac53..01c3c20b092 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 @@ -100,6 +100,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param code [Object] Object to be assigned + def code=(code) + validator = EnumAttributeValidator.new('SyntheticsApiTestFailureCode', ['BODY_TOO_LARGE', 'DENIED', 'TOO_MANY_REDIRECTS', 'AUTHENTICATION_ERROR', 'DECRYPTION', 'INVALID_CHAR_IN_HEADER', 'HEADER_TOO_LARGE', 'HEADERS_INCOMPATIBLE_CONTENT_LENGTH', 'INVALID_REQUEST', 'REQUIRES_UPDATE', 'UNESCAPED_CHARACTERS_IN_REQUEST_PATH', 'MALFORMED_RESPONSE', 'INCORRECT_ASSERTION', 'CONNREFUSED', 'CONNRESET', 'DNS', 'HOSTUNREACH', 'NETUNREACH', 'TIMEOUT', 'SSL', 'OCSP', 'INVALID_TEST', 'TUNNEL', 'WEBSOCKET', 'UNKNOWN', 'INTERNAL_ERROR']) + unless validator.valid?(code) + fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}." + end + @code = code + end + # 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 ea4f0d9fc53..ac6c731f69f 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 @@ -148,6 +148,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + # 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 e19195db893..1765567a3ce 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @config.nil? return false if @config.nil? true end + # Custom attribute writer method with validation + # @param config [Object] Object to be assigned + def config=(config) + if @config.nil? + fail ArgumentError, 'invalid value for "config", config cannot be nil.' + end + @config = config + end + # 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 7a2188ed851..41c6d5425dc 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 @@ -130,6 +130,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + # 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 a877b14052f..b7a7134546e 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,11 +121,39 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @operator.nil? + return false if @type.nil? return false if @operator.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param operator [Object] Object to be assigned + def operator=(operator) + validator = EnumAttributeValidator.new('SyntheticsAssertionJSONPathOperator', ['validatesJSONPath']) + unless validator.valid?(operator) + fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}." + end + if @operator.nil? + fail ArgumentError, 'invalid value for "operator", operator cannot be nil.' + end + @operator = operator + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SyntheticsAssertionType', ['body', 'header', 'statusCode', 'certificate', 'responseTime', 'property', 'recordEvery', 'recordSome', 'tlsVersion', 'minTlsVersion', 'latency', 'packetLossPercentage', 'packetsReceived', 'networkHop', 'receivedMessage']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 d7cf01e792c..c76e97279d8 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb @@ -124,12 +124,50 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @operator.nil? + return false if @target.nil? + return false if @type.nil? return false if @operator.nil? return false if @target.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param operator [Object] Object to be assigned + def operator=(operator) + validator = EnumAttributeValidator.new('SyntheticsAssertionOperator', ['contains', 'doesNotContain', 'is', 'isNot', 'lessThan', 'lessThanOrEqual', 'moreThan', 'moreThanOrEqual', 'matches', 'doesNotMatch', 'validates', 'isInMoreThan', 'isInLessThan']) + unless validator.valid?(operator) + fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}." + end + if @operator.nil? + fail ArgumentError, 'invalid value for "operator", operator cannot be nil.' + end + @operator = operator + end + + # Custom attribute writer method with validation + # @param target [Object] Object to be assigned + def target=(target) + if @target.nil? + fail ArgumentError, 'invalid value for "target", target cannot be nil.' + end + @target = target + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SyntheticsAssertionType', ['body', 'header', 'statusCode', 'certificate', 'responseTime', 'property', 'recordEvery', 'recordSome', 'tlsVersion', 'minTlsVersion', 'latency', 'packetLossPercentage', 'packetsReceived', 'networkHop', 'receivedMessage']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 c40a7a1bbdd..f3a8342f4ab 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 @@ -129,10 +129,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SyntheticsBasicAuthNTLMType', ['ntlm']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 a8469bb9848..ed87bcbdd9b 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 @@ -144,12 +144,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @access_key.nil? + return false if @secret_key.nil? + return false if @type.nil? return false if @access_key.nil? return false if @secret_key.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param access_key [Object] Object to be assigned + def access_key=(access_key) + if @access_key.nil? + fail ArgumentError, 'invalid value for "access_key", access_key cannot be nil.' + end + @access_key = access_key + end + + # Custom attribute writer method with validation + # @param secret_key [Object] Object to be assigned + def secret_key=(secret_key) + if @secret_key.nil? + fail ArgumentError, 'invalid value for "secret_key", secret_key cannot be nil.' + end + @secret_key = secret_key + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SyntheticsBasicAuthSigv4Type', ['sigv4']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 f6f650e3859..93a7285b367 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 @@ -117,12 +117,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @password.nil? + return false if @type.nil? + return false if @username.nil? return false if @password.nil? return false if @type.nil? return false if @username.nil? true end + # Custom attribute writer method with validation + # @param password [Object] Object to be assigned + def password=(password) + if @password.nil? + fail ArgumentError, 'invalid value for "password", password cannot be nil.' + end + @password = password + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SyntheticsBasicAuthWebType', ['web']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + + # Custom attribute writer method with validation + # @param username [Object] Object to be assigned + def username=(username) + if @username.nil? + fail ArgumentError, 'invalid value for "username", username cannot be nil.' + end + @username = username + end + # 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 2bced7264e9..155de247a78 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 @@ -111,6 +111,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('SyntheticsStatus', ['passed', 'skipped', 'failed']) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + # 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 426bd47fd7e..6ebf8b67798 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb @@ -172,6 +172,46 @@ def valid? true end + # Custom attribute writer method with validation + # @param device [Object] Object to be assigned + def device=(device) + validator = EnumAttributeValidator.new('SyntheticsDeviceID', ['laptop_large', 'tablet', 'mobile_small', 'chrome.laptop_large', 'chrome.tablet', 'chrome.mobile_small', 'firefox.laptop_large', 'firefox.tablet', 'firefox.mobile_small', 'edge.laptop_large', 'edge.tablet', 'edge.mobile_small']) + unless validator.valid?(device) + fail ArgumentError, "invalid value for \"device\", must be one of #{validator.allowable_values}." + end + @device = device + end + + # Custom attribute writer method with validation + # @param execution_rule [Object] Object to be assigned + def execution_rule=(execution_rule) + validator = EnumAttributeValidator.new('SyntheticsTestExecutionRule', ['blocking', 'non_blocking', 'skipped']) + unless validator.valid?(execution_rule) + fail ArgumentError, "invalid value for \"execution_rule\", must be one of #{validator.allowable_values}." + end + @execution_rule = execution_rule + end + + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('SyntheticsStatus', ['passed', 'skipped', 'failed']) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + + # Custom attribute writer method with validation + # @param test_type [Object] Object to be assigned + def test_type=(test_type) + validator = EnumAttributeValidator.new('SyntheticsTestDetailsType', ['api', 'browser']) + unless validator.valid?(test_type) + fail ArgumentError, "invalid value for \"test_type\", must be one of #{validator.allowable_values}." + end + @test_type = test_type + end + # 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 54400ac67d4..750cd1e4627 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_error.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_error.rb @@ -124,12 +124,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @description.nil? + return false if @name.nil? + return false if @type.nil? return false if @description.nil? return false if @name.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param description [Object] Object to be assigned + def description=(description) + if @description.nil? + fail ArgumentError, 'invalid value for "description", description cannot be nil.' + end + @description = description + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SyntheticsBrowserErrorType', ['network', 'js']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 993a3c1d633..776f9232198 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb @@ -202,6 +202,11 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @config.nil? + return false if @locations.nil? + return false if @name.nil? + return false if @options.nil? + return false if @type.nil? return false if @config.nil? return false if @locations.nil? return false if @name.nil? @@ -210,6 +215,65 @@ def valid? true end + # Custom attribute writer method with validation + # @param config [Object] Object to be assigned + def config=(config) + if @config.nil? + fail ArgumentError, 'invalid value for "config", config cannot be nil.' + end + @config = config + end + + # Custom attribute writer method with validation + # @param locations [Object] Object to be assigned + def locations=(locations) + if @locations.nil? + fail ArgumentError, 'invalid value for "locations", locations cannot be nil.' + end + @locations = locations + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param options [Object] Object to be assigned + def options=(options) + if @options.nil? + fail ArgumentError, 'invalid value for "options", options cannot be nil.' + end + @options = options + end + + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SyntheticsBrowserTestType', ['browser']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 a7441a57aa1..26ee7178d5b 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 @@ -138,11 +138,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @assertions.nil? + return false if @request.nil? return false if @assertions.nil? return false if @request.nil? true end + # Custom attribute writer method with validation + # @param assertions [Object] Object to be assigned + def assertions=(assertions) + if @assertions.nil? + fail ArgumentError, 'invalid value for "assertions", assertions cannot be nil.' + end + @assertions = assertions + end + + # Custom attribute writer method with validation + # @param request [Object] Object to be assigned + def request=(request) + if @request.nil? + fail ArgumentError, 'invalid value for "request", request cannot be nil.' + end + @request = request + end + # 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 a935aa50e64..676bf08f318 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 @@ -100,6 +100,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param code [Object] Object to be assigned + def code=(code) + validator = EnumAttributeValidator.new('SyntheticsBrowserTestFailureCode', ['API_REQUEST_FAILURE', 'ASSERTION_FAILURE', 'DOWNLOAD_FILE_TOO_LARGE', 'ELEMENT_NOT_INTERACTABLE', 'EMAIL_VARIABLE_NOT_DEFINED', 'EVALUATE_JAVASCRIPT', 'EVALUATE_JAVASCRIPT_CONTEXT', 'EXTRACT_VARIABLE', 'FORBIDDEN_URL', 'FRAME_DETACHED', 'INCONSISTENCIES', 'INTERNAL_ERROR', 'INVALID_TYPE_TEXT_DELAY', 'INVALID_URL', 'INVALID_VARIABLE_PATTERN', 'INVISIBLE_ELEMENT', 'LOCATE_ELEMENT', 'NAVIGATE_TO_LINK', 'OPEN_URL', 'PRESS_KEY', 'SERVER_CERTIFICATE', 'SELECT_OPTION', 'STEP_TIMEOUT', 'SUB_TEST_NOT_PASSED', 'TEST_TIMEOUT', 'TOO_MANY_HTTP_REQUESTS', 'UNAVAILABLE_BROWSER', 'UNKNOWN', 'UNSUPPORTED_AUTH_SCHEMA', 'UPLOAD_FILES_ELEMENT_TYPE', 'UPLOAD_FILES_DIALOG', 'UPLOAD_FILES_DYNAMIC_ELEMENT', 'UPLOAD_FILES_NAME']) + unless validator.valid?(code) + fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}." + end + @code = code + end + # 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 574469b6440..2d7be43327d 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 @@ -148,6 +148,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + # 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 fdf3bf4da8d..6be4cb58e25 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @config.nil? return false if @config.nil? true end + # Custom attribute writer method with validation + # @param config [Object] Object to be assigned + def config=(config) + if @config.nil? + fail ArgumentError, 'invalid value for "config", config cannot be nil.' + end + @config = config + end + # 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 70229dc5edc..f62a2bd7b29 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 @@ -130,6 +130,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + # 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 7ac174bb1d8..435f13c364d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb @@ -131,11 +131,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? + return false if @type.nil? return false if @name.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SyntheticsBrowserVariableType', ['element', 'email', 'global', 'javascript', 'text']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 cd1e5ff8141..4218b17c40f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_test.rb @@ -212,10 +212,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @public_id.nil? return false if @public_id.nil? true end + # Custom attribute writer method with validation + # @param public_id [Object] Object to be assigned + def public_id=(public_id) + if @public_id.nil? + fail ArgumentError, 'invalid value for "public_id", public_id cannot be nil.' + end + @public_id = public_id + end + # 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 c44e1e199c8..0df9101f491 100644 --- a/lib/datadog_api_client/v1/models/synthetics_config_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_config_variable.rb @@ -130,11 +130,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? + return false if @type.nil? return false if @name.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SyntheticsConfigVariableType', ['global', 'text']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 3c1fc23af08..800b7db61bb 100644 --- a/lib/datadog_api_client/v1/models/synthetics_device.rb +++ b/lib/datadog_api_client/v1/models/synthetics_device.rb @@ -136,6 +136,10 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @height.nil? + return false if @id.nil? + return false if @name.nil? + return false if @width.nil? return false if @height.nil? return false if @id.nil? return false if @name.nil? @@ -143,6 +147,46 @@ def valid? true end + # Custom attribute writer method with validation + # @param height [Object] Object to be assigned + def height=(height) + if @height.nil? + fail ArgumentError, 'invalid value for "height", height cannot be nil.' + end + @height = height + end + + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + validator = EnumAttributeValidator.new('SyntheticsDeviceID', ['laptop_large', 'tablet', 'mobile_small', 'chrome.laptop_large', 'chrome.tablet', 'chrome.mobile_small', 'firefox.laptop_large', 'firefox.tablet', 'firefox.mobile_small', 'edge.laptop_large', 'edge.tablet', 'edge.mobile_small']) + unless validator.valid?(id) + fail ArgumentError, "invalid value for \"id\", must be one of #{validator.allowable_values}." + end + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param width [Object] Object to be assigned + def width=(width) + if @width.nil? + fail ArgumentError, 'invalid value for "width", width cannot be nil.' + end + @width = width + end + # 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 6b1673ac321..133f4c54900 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable.rb @@ -165,6 +165,10 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @description.nil? + return false if @name.nil? + return false if @tags.nil? + return false if @value.nil? return false if @description.nil? return false if @name.nil? return false if @tags.nil? @@ -172,6 +176,42 @@ def valid? true end + # Custom attribute writer method with validation + # @param description [Object] Object to be assigned + def description=(description) + if @description.nil? + fail ArgumentError, 'invalid value for "description", description cannot be nil.' + end + @description = description + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param tags [Object] Object to be assigned + def tags=(tags) + if @tags.nil? + fail ArgumentError, 'invalid value for "tags", tags cannot be nil.' + end + @tags = tags + end + + # Custom attribute writer method with validation + # @param value [Object] Object to be assigned + def value=(value) + if @value.nil? + fail ArgumentError, 'invalid value for "value", value cannot be nil.' + end + @value = value + end + # 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 d318f11c9e4..1d2f2ef19c9 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 @@ -112,11 +112,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @parser.nil? + return false if @type.nil? return false if @parser.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param parser [Object] Object to be assigned + def parser=(parser) + if @parser.nil? + fail ArgumentError, 'invalid value for "parser", parser cannot be nil.' + end + @parser = parser + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SyntheticsGlobalVariableParseTestOptionsType', ['http_body', 'http_header']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 c98b76689f3..adbb47fe305 100644 --- a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb @@ -118,6 +118,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SyntheticsGlobalVariableParseTestOptionsType', ['http_body', 'http_header']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 dbe891d17e5..3c42c7e721f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location.rb @@ -135,12 +135,42 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @description.nil? + return false if @name.nil? + return false if @tags.nil? return false if @description.nil? return false if @name.nil? return false if @tags.nil? true end + # Custom attribute writer method with validation + # @param description [Object] Object to be assigned + def description=(description) + if @description.nil? + fail ArgumentError, 'invalid value for "description", description cannot be nil.' + end + @description = description + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param tags [Object] Object to be assigned + def tags=(tags) + if @tags.nil? + fail ArgumentError, 'invalid value for "tags", tags cannot be nil.' + end + @tags = tags + end + # 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 b529ec74dde..4967f8138c0 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step.rb @@ -127,6 +127,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SyntheticsStepType', ['assertCurrentUrl', 'assertElementAttribute', 'assertElementContent', 'assertElementPresent', 'assertEmail', 'assertFileDownload', 'assertFromJavascript', 'assertPageContains', 'assertPageLacks', 'click', 'extractFromJavascript', 'extractVariable', 'goToEmailLink', 'goToUrl', 'goToUrlAndMeasureTti', 'hover', 'playSubTest', 'pressKey', 'refresh', 'runApiTest', 'scroll', 'selectOption', 'typeText', 'uploadFiles', 'wait']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 30bea905a10..a030068a5c7 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_detail.rb @@ -244,6 +244,36 @@ def valid? true end + # Custom attribute writer method with validation + # @param check_type [Object] Object to be assigned + def check_type=(check_type) + validator = EnumAttributeValidator.new('SyntheticsCheckType', ['equals', 'notEquals', 'contains', 'notContains', 'startsWith', 'notStartsWith', 'greater', 'lower', 'greaterEquals', 'lowerEquals', 'matchRegex', 'between', 'isEmpty', 'notIsEmpty']) + unless validator.valid?(check_type) + fail ArgumentError, "invalid value for \"check_type\", must be one of #{validator.allowable_values}." + end + @check_type = check_type + end + + # Custom attribute writer method with validation + # @param playing_tab [Object] Object to be assigned + def playing_tab=(playing_tab) + validator = EnumAttributeValidator.new('SyntheticsPlayingTab', [-1, 0, 1, 2, 3]) + unless validator.valid?(playing_tab) + fail ArgumentError, "invalid value for \"playing_tab\", must be one of #{validator.allowable_values}." + end + @playing_tab = playing_tab + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SyntheticsStepType', ['assertCurrentUrl', 'assertElementAttribute', 'assertElementContent', 'assertElementPresent', 'assertEmail', 'assertFileDownload', 'assertFromJavascript', 'assertPageContains', 'assertPageLacks', 'click', 'extractFromJavascript', 'extractVariable', 'goToEmailLink', 'goToUrl', 'goToUrlAndMeasureTti', 'hover', 'playSubTest', 'pressKey', 'refresh', 'runApiTest', 'scroll', 'selectOption', 'typeText', 'uploadFiles', 'wait']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 015735b0039..84a1a516b4e 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,11 +103,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @message.nil? + return false if @type.nil? return false if @message.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param message [Object] Object to be assigned + def message=(message) + if @message.nil? + fail ArgumentError, 'invalid value for "message", message cannot be nil.' + end + @message = message + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SyntheticsWarningType', ['user_locator']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 a48c1223b45..3f79d0a2e2c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details.rb @@ -207,6 +207,36 @@ def valid? true end + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + + # Custom attribute writer method with validation + # @param subtype [Object] Object to be assigned + def subtype=(subtype) + validator = EnumAttributeValidator.new('SyntheticsTestDetailsSubType', ['http', 'ssl', 'tcp', 'dns', 'multi', 'icmp', 'udp', 'websocket']) + unless validator.valid?(subtype) + fail ArgumentError, "invalid value for \"subtype\", must be one of #{validator.allowable_values}." + end + @subtype = subtype + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SyntheticsTestDetailsType', ['api', 'browser']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 aed5427ffd0..674152cb395 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options.rb @@ -213,9 +213,37 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@monitor_priority.nil? && @monitor_priority > 5 + return false if !@monitor_priority.nil? && @monitor_priority < 1 + return false if !@tick_every.nil? && @tick_every > 604800 + return false if !@tick_every.nil? && @tick_every < 30 true end + # Custom attribute writer method with validation + # @param monitor_priority [Object] Object to be assigned + def monitor_priority=(monitor_priority) + if !@monitor_priority.nil? && @monitor_priority > 5 + fail ArgumentError, 'invalid value for "monitor_priority", must be smaller than or equal to 5.' + end + if !@monitor_priority.nil? && @monitor_priority < 1 + fail ArgumentError, 'invalid value for "monitor_priority", must be greater than or equal to 1.' + end + @monitor_priority = monitor_priority + end + + # Custom attribute writer method with validation + # @param tick_every [Object] Object to be assigned + def tick_every=(tick_every) + if !@tick_every.nil? && @tick_every > 604800 + fail ArgumentError, 'invalid value for "tick_every", must be smaller than or equal to 604800.' + end + if !@tick_every.nil? && @tick_every < 30 + fail ArgumentError, 'invalid value for "tick_every", must be greater than or equal to 30.' + end + @tick_every = tick_every + end + # 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 1bd464f3839..16d34d9a6a7 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 @@ -96,9 +96,23 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@renotify_interval.nil? && @renotify_interval > 1440 + return false if !@renotify_interval.nil? && @renotify_interval < 0 true end + # Custom attribute writer method with validation + # @param renotify_interval [Object] Object to be assigned + def renotify_interval=(renotify_interval) + if !@renotify_interval.nil? && @renotify_interval > 1440 + fail ArgumentError, 'invalid value for "renotify_interval", must be smaller than or equal to 1440.' + end + if !@renotify_interval.nil? && @renotify_interval < 0 + fail ArgumentError, 'invalid value for "renotify_interval", must be greater than or equal to 0.' + end + @renotify_interval = renotify_interval + end + # 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 2f609ff0047..b11dd1f5430 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request.rb @@ -273,9 +273,47 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@dns_server_port.nil? && @dns_server_port > 65535 + return false if !@dns_server_port.nil? && @dns_server_port < 1 + return false if !@number_of_packets.nil? && @number_of_packets > 10 + return false if !@number_of_packets.nil? && @number_of_packets < 0 true end + # Custom attribute writer method with validation + # @param dns_server_port [Object] Object to be assigned + def dns_server_port=(dns_server_port) + if !@dns_server_port.nil? && @dns_server_port > 65535 + fail ArgumentError, 'invalid value for "dns_server_port", must be smaller than or equal to 65535.' + end + if !@dns_server_port.nil? && @dns_server_port < 1 + fail ArgumentError, 'invalid value for "dns_server_port", must be greater than or equal to 1.' + end + @dns_server_port = dns_server_port + end + + # Custom attribute writer method with validation + # @param method [Object] Object to be assigned + def method=(method) + validator = EnumAttributeValidator.new('HTTPMethod', ['GET', 'POST', 'PATCH', 'PUT', 'DELETE', 'HEAD', 'OPTIONS']) + unless validator.valid?(method) + fail ArgumentError, "invalid value for \"method\", must be one of #{validator.allowable_values}." + end + @method = method + end + + # Custom attribute writer method with validation + # @param number_of_packets [Object] Object to be assigned + def number_of_packets=(number_of_packets) + if !@number_of_packets.nil? && @number_of_packets > 10 + fail ArgumentError, 'invalid value for "number_of_packets", must be smaller than or equal to 10.' + end + if !@number_of_packets.nil? && @number_of_packets < 0 + fail ArgumentError, 'invalid value for "number_of_packets", must be greater than or equal to 0.' + end + @number_of_packets = number_of_packets + end + # 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 a823a0b77ad..317dc91c6f8 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 @@ -100,10 +100,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @url.nil? return false if @url.nil? true end + # Custom attribute writer method with validation + # @param url [Object] Object to be assigned + def url=(url) + if @url.nil? + fail ArgumentError, 'invalid value for "url", url cannot be nil.' + end + @url = url + end + # 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 1242684d5c7..b96de01db96 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb @@ -93,10 +93,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @tests.nil? return false if @tests.nil? true end + # Custom attribute writer method with validation + # @param tests [Object] Object to be assigned + def tests=(tests) + if @tests.nil? + fail ArgumentError, 'invalid value for "tests", tests cannot be nil.' + end + @tests = tests + end + # 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 37dfec9a861..41bdf5d1384 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 @@ -118,6 +118,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param device [Object] Object to be assigned + def device=(device) + validator = EnumAttributeValidator.new('SyntheticsDeviceID', ['laptop_large', 'tablet', 'mobile_small', 'chrome.laptop_large', 'chrome.tablet', 'chrome.mobile_small', 'firefox.laptop_large', 'firefox.tablet', 'firefox.mobile_small', 'edge.laptop_large', 'edge.tablet', 'edge.mobile_small']) + unless validator.valid?(device) + fail ArgumentError, "invalid value for \"device\", must be one of #{validator.allowable_values}." + end + @device = device + end + # 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 55d94663156..791674a4653 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb @@ -100,10 +100,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @public_id.nil? return false if @public_id.nil? true end + # Custom attribute writer method with validation + # @param public_id [Object] Object to be assigned + def public_id=(public_id) + if @public_id.nil? + fail ArgumentError, 'invalid value for "public_id", public_id cannot be nil.' + end + @public_id = public_id + end + # 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 3b244d72a16..7e7bde69d4d 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 @@ -92,6 +92,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param new_status [Object] Object to be assigned + def new_status=(new_status) + validator = EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) + unless validator.valid?(new_status) + fail ArgumentError, "invalid value for \"new_status\", must be one of #{validator.allowable_values}." + end + @new_status = new_status + end + # 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 c14a2dfaa1c..5cb8692d14a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb +++ b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb @@ -100,10 +100,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SyntheticsGlobalVariableParserType', ['raw', 'json_path', 'regex', 'x_path']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 e227c407626..32762feb439 100644 --- a/lib/datadog_api_client/v1/models/table_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/table_widget_definition.rb @@ -163,11 +163,55 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @requests.nil? + return false if @type.nil? return false if @requests.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param has_search_bar [Object] Object to be assigned + def has_search_bar=(has_search_bar) + validator = EnumAttributeValidator.new('TableWidgetHasSearchBar', ['always', 'never', 'auto']) + unless validator.valid?(has_search_bar) + fail ArgumentError, "invalid value for \"has_search_bar\", must be one of #{validator.allowable_values}." + end + @has_search_bar = has_search_bar + end + + # Custom attribute writer method with validation + # @param requests [Object] Object to be assigned + def requests=(requests) + if @requests.nil? + fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' + end + @requests = requests + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('TableWidgetDefinitionType', ['query_table']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 fa9f25a4875..814ccb537fd 100644 --- a/lib/datadog_api_client/v1/models/table_widget_request.rb +++ b/lib/datadog_api_client/v1/models/table_widget_request.rb @@ -261,6 +261,36 @@ def valid? true end + # Custom attribute writer method with validation + # @param aggregator [Object] Object to be assigned + def aggregator=(aggregator) + validator = EnumAttributeValidator.new('WidgetAggregator', ['avg', 'last', 'max', 'min', 'sum', 'percentile']) + unless validator.valid?(aggregator) + fail ArgumentError, "invalid value for \"aggregator\", must be one of #{validator.allowable_values}." + end + @aggregator = aggregator + end + + # Custom attribute writer method with validation + # @param order [Object] Object to be assigned + def order=(order) + validator = EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) + unless validator.valid?(order) + fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." + end + @order = order + end + + # Custom attribute writer method with validation + # @param response_format [Object] Object to be assigned + def response_format=(response_format) + validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) + unless validator.valid?(response_format) + fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." + end + @response_format = response_format + end + # 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 b073d889816..e7960cccbea 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb @@ -237,9 +237,57 @@ def list_invalid_properties def valid? return false if @requests.nil? return false if @type.nil? + return false if @requests.nil? + return false if @requests.length < 1 + return false if @type.nil? true end + # Custom attribute writer method with validation + # @param legend_layout [Object] Object to be assigned + def legend_layout=(legend_layout) + validator = EnumAttributeValidator.new('TimeseriesWidgetLegendLayout', ['auto', 'horizontal', 'vertical']) + unless validator.valid?(legend_layout) + fail ArgumentError, "invalid value for \"legend_layout\", must be one of #{validator.allowable_values}." + end + @legend_layout = legend_layout + end + + # Custom attribute writer method with validation + # @param requests [Object] Object to be assigned + def requests=(requests) + if @requests.nil? + fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' + end + if @requests.length < 1 + fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' + end + @requests = requests + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('TimeseriesWidgetDefinitionType', ['timeseries']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 c8398ee6190..45ad22074e5 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 @@ -100,10 +100,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @expression.nil? return false if @expression.nil? true end + # Custom attribute writer method with validation + # @param expression [Object] Object to be assigned + def expression=(expression) + if @expression.nil? + fail ArgumentError, 'invalid value for "expression", expression cannot be nil.' + end + @expression = expression + end + # 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 35ca00ebd4f..7864f98a527 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb @@ -241,6 +241,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param display_type [Object] Object to be assigned + def display_type=(display_type) + validator = EnumAttributeValidator.new('WidgetDisplayType', ['area', 'bars', 'line']) + unless validator.valid?(display_type) + fail ArgumentError, "invalid value for \"display_type\", must be one of #{validator.allowable_values}." + end + @display_type = display_type + end + + # Custom attribute writer method with validation + # @param response_format [Object] Object to be assigned + def response_format=(response_format) + validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) + unless validator.valid?(response_format) + fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." + end + @response_format = response_format + end + # 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 da3e9642906..9eea1cf9c5c 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_definition.rb @@ -154,11 +154,45 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @requests.nil? + return false if @type.nil? return false if @requests.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param requests [Object] Object to be assigned + def requests=(requests) + if @requests.nil? + fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' + end + @requests = requests + end + + # Custom attribute writer method with validation + # @param title_align [Object] Object to be assigned + def title_align=(title_align) + validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + unless validator.valid?(title_align) + fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." + end + @title_align = title_align + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('ToplistWidgetDefinitionType', ['toplist']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 cb84c6c107e..71187eee03b 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_request.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_request.rb @@ -223,9 +223,29 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@conditional_formats.nil? && @conditional_formats.length < 1 true end + # Custom attribute writer method with validation + # @param conditional_formats [Object] Object to be assigned + def conditional_formats=(conditional_formats) + if !@conditional_formats.nil? && @conditional_formats.length < 1 + fail ArgumentError, 'invalid value for "conditional_formats", number of items must be greater than or equal to 1.' + end + @conditional_formats = conditional_formats + end + + # Custom attribute writer method with validation + # @param response_format [Object] Object to be assigned + def response_format=(response_format) + validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) + unless validator.valid?(response_format) + fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." + end + @response_format = response_format + end + # 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 84b058c5e12..769ca8f7abe 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 @@ -153,9 +153,71 @@ def list_invalid_properties def valid? return false if @requests.nil? return false if @type.nil? + return false if @requests.nil? + return false if @requests.length > 1 + return false if @requests.length < 1 + return false if @type.nil? true end + # Custom attribute writer method with validation + # @param color_by [Object] Object to be assigned + def color_by=(color_by) + validator = EnumAttributeValidator.new('TreeMapColorBy', ['user']) + unless validator.valid?(color_by) + fail ArgumentError, "invalid value for \"color_by\", must be one of #{validator.allowable_values}." + end + @color_by = color_by + end + + # Custom attribute writer method with validation + # @param group_by [Object] Object to be assigned + def group_by=(group_by) + validator = EnumAttributeValidator.new('TreeMapGroupBy', ['user', 'family', 'process']) + unless validator.valid?(group_by) + fail ArgumentError, "invalid value for \"group_by\", must be one of #{validator.allowable_values}." + end + @group_by = group_by + end + + # Custom attribute writer method with validation + # @param requests [Object] Object to be assigned + def requests=(requests) + if @requests.nil? + fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' + end + if @requests.length > 1 + fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' + end + if @requests.length < 1 + fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' + end + @requests = requests + end + + # Custom attribute writer method with validation + # @param size_by [Object] Object to be assigned + def size_by=(size_by) + validator = EnumAttributeValidator.new('TreeMapSizeBy', ['pct_cpu', 'pct_mem']) + unless validator.valid?(size_by) + fail ArgumentError, "invalid value for \"size_by\", must be one of #{validator.allowable_values}." + end + @size_by = size_by + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('TreeMapWidgetDefinitionType', ['treemap']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 acefcfedc66..9c9c28f3db0 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 @@ -122,6 +122,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param response_format [Object] Object to be assigned + def response_format=(response_format) + validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) + unless validator.valid?(response_format) + fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." + end + @response_format = response_format + end + # 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 ddc87ae95e1..55cb14045f7 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 @@ -111,6 +111,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('UsageReportsType', ['reports']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 f49cfe5515d..37e321ac9d7 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 @@ -111,6 +111,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('UsageReportsType', ['reports']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 8e3500ce836..d084a83e5a9 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 @@ -118,6 +118,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param metric_category [Object] Object to be assigned + def metric_category=(metric_category) + validator = EnumAttributeValidator.new('UsageMetricCategory', ['standard', 'custom']) + unless validator.valid?(metric_category) + fail ArgumentError, "invalid value for \"metric_category\", must be one of #{validator.allowable_values}." + end + @metric_category = metric_category + end + # 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 6f27f0018cf..f360d6d07dc 100644 --- a/lib/datadog_api_client/v1/models/user.rb +++ b/lib/datadog_api_client/v1/models/user.rb @@ -147,6 +147,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param access_role [Object] Object to be assigned + def access_role=(access_role) + validator = EnumAttributeValidator.new('AccessRole', ['st', 'adm', 'ro', 'ERROR']) + unless validator.valid?(access_role) + fail ArgumentError, "invalid value for \"access_role\", must be one of #{validator.allowable_values}." + end + @access_role = access_role + end + # 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 bccb6ded6f3..2b6761169d3 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration.rb @@ -140,11 +140,41 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? + return false if @url.nil? return false if @name.nil? return false if @url.nil? true end + # Custom attribute writer method with validation + # @param encode_as [Object] Object to be assigned + def encode_as=(encode_as) + validator = EnumAttributeValidator.new('WebhooksIntegrationEncoding', ['json', 'form']) + unless validator.valid?(encode_as) + fail ArgumentError, "invalid value for \"encode_as\", must be one of #{validator.allowable_values}." + end + @encode_as = encode_as + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param url [Object] Object to be assigned + def url=(url) + if @url.nil? + fail ArgumentError, 'invalid value for "url", url cannot be nil.' + end + @url = url + end + # 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 9f81fc5f67a..41257dfbc53 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 @@ -116,12 +116,42 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @is_secret.nil? + return false if @name.nil? + return false if @value.nil? return false if @is_secret.nil? return false if @name.nil? return false if @value.nil? true end + # Custom attribute writer method with validation + # @param is_secret [Object] Object to be assigned + def is_secret=(is_secret) + if @is_secret.nil? + fail ArgumentError, 'invalid value for "is_secret", is_secret cannot be nil.' + end + @is_secret = is_secret + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param value [Object] Object to be assigned + def value=(value) + if @value.nil? + fail ArgumentError, 'invalid value for "value", value cannot be nil.' + end + @value = value + end + # 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 e3ba5f11ddc..b1d1af15e0b 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,11 +113,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @is_secret.nil? + return false if @name.nil? return false if @is_secret.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param is_secret [Object] Object to be assigned + def is_secret=(is_secret) + if @is_secret.nil? + fail ArgumentError, 'invalid value for "is_secret", is_secret cannot be nil.' + end + @is_secret = is_secret + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + # 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 0018b78b958..827edfaf87c 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 @@ -138,6 +138,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param encode_as [Object] Object to be assigned + def encode_as=(encode_as) + validator = EnumAttributeValidator.new('WebhooksIntegrationEncoding', ['json', 'form']) + unless validator.valid?(encode_as) + fail ArgumentError, "invalid value for \"encode_as\", must be one of #{validator.allowable_values}." + end + @encode_as = encode_as + end + # 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 2501eabfc39..f3d9a45d77b 100644 --- a/lib/datadog_api_client/v1/models/widget.rb +++ b/lib/datadog_api_client/v1/models/widget.rb @@ -114,10 +114,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @definition.nil? return false if @definition.nil? true end + # Custom attribute writer method with validation + # @param definition [Object] Object to be assigned + def definition=(definition) + if @definition.nil? + fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' + end + @definition = definition + end + # 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 88c6ddbeabb..1ba07433d7d 100644 --- a/lib/datadog_api_client/v1/models/widget_conditional_format.rb +++ b/lib/datadog_api_client/v1/models/widget_conditional_format.rb @@ -169,12 +169,50 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @comparator.nil? + return false if @palette.nil? + return false if @value.nil? return false if @comparator.nil? return false if @palette.nil? return false if @value.nil? true end + # Custom attribute writer method with validation + # @param comparator [Object] Object to be assigned + def comparator=(comparator) + validator = EnumAttributeValidator.new('WidgetComparator', ['>', '>=', '<', '<=']) + unless validator.valid?(comparator) + fail ArgumentError, "invalid value for \"comparator\", must be one of #{validator.allowable_values}." + end + if @comparator.nil? + fail ArgumentError, 'invalid value for "comparator", comparator cannot be nil.' + end + @comparator = comparator + end + + # Custom attribute writer method with validation + # @param palette [Object] Object to be assigned + def palette=(palette) + validator = EnumAttributeValidator.new('WidgetPalette', ['blue', 'custom_bg', 'custom_image', 'custom_text', 'gray_on_white', 'grey', 'green', 'orange', 'red', 'red_on_white', 'white_on_gray', 'white_on_green', 'green_on_white', 'white_on_red', 'white_on_yellow', 'yellow_on_white', 'black_on_light_yellow', 'black_on_light_green', 'black_on_light_red']) + unless validator.valid?(palette) + fail ArgumentError, "invalid value for \"palette\", must be one of #{validator.allowable_values}." + end + if @palette.nil? + fail ArgumentError, 'invalid value for "palette", palette cannot be nil.' + end + @palette = palette + end + + # Custom attribute writer method with validation + # @param value [Object] Object to be assigned + def value=(value) + if @value.nil? + fail ArgumentError, 'invalid value for "value", value cannot be nil.' + end + @value = value + end + # 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 ee22b89a218..025ae5501c1 100644 --- a/lib/datadog_api_client/v1/models/widget_event.rb +++ b/lib/datadog_api_client/v1/models/widget_event.rb @@ -103,10 +103,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @q.nil? return false if @q.nil? true end + # Custom attribute writer method with validation + # @param q [Object] Object to be assigned + def q=(q) + if @q.nil? + fail ArgumentError, 'invalid value for "q", q cannot be nil.' + end + @q = q + end + # 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 4d41350cbf3..06511ebe83e 100644 --- a/lib/datadog_api_client/v1/models/widget_field_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_field_sort.rb @@ -103,11 +103,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @column.nil? + return false if @order.nil? return false if @column.nil? return false if @order.nil? true end + # Custom attribute writer method with validation + # @param column [Object] Object to be assigned + def column=(column) + if @column.nil? + fail ArgumentError, 'invalid value for "column", column cannot be nil.' + end + @column = column + end + + # Custom attribute writer method with validation + # @param order [Object] Object to be assigned + def order=(order) + validator = EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) + unless validator.valid?(order) + fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." + end + if @order.nil? + fail ArgumentError, 'invalid value for "order", order cannot be nil.' + end + @order = order + end + # 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 db9208616c4..5b767b27123 100644 --- a/lib/datadog_api_client/v1/models/widget_formula.rb +++ b/lib/datadog_api_client/v1/models/widget_formula.rb @@ -129,10 +129,30 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @formula.nil? return false if @formula.nil? true end + # Custom attribute writer method with validation + # @param cell_display_mode [Object] Object to be assigned + def cell_display_mode=(cell_display_mode) + validator = EnumAttributeValidator.new('TableWidgetCellDisplayMode', ['number', 'bar']) + unless validator.valid?(cell_display_mode) + fail ArgumentError, "invalid value for \"cell_display_mode\", must be one of #{validator.allowable_values}." + end + @cell_display_mode = cell_display_mode + end + + # Custom attribute writer method with validation + # @param formula [Object] Object to be assigned + def formula=(formula) + if @formula.nil? + fail ArgumentError, 'invalid value for "formula", formula cannot be nil.' + end + @formula = formula + end + # 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 dcafc8753f4..38140d60a86 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_limit.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_limit.rb @@ -102,6 +102,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param order [Object] Object to be assigned + def order=(order) + validator = EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) + unless validator.valid?(order) + fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." + end + @order = order + end + # 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 060a4bf7fec..2d0ad661399 100644 --- a/lib/datadog_api_client/v1/models/widget_layout.rb +++ b/lib/datadog_api_client/v1/models/widget_layout.rb @@ -153,9 +153,65 @@ def valid? return false if @width.nil? return false if @x.nil? return false if @y.nil? + return false if @height.nil? + return false if @height < 0 + return false if @width.nil? + return false if @width < 0 + return false if @x.nil? + return false if @x < 0 + return false if @y.nil? + return false if @y < 0 true end + # Custom attribute writer method with validation + # @param height [Object] Object to be assigned + def height=(height) + if @height.nil? + fail ArgumentError, 'invalid value for "height", height cannot be nil.' + end + if @height < 0 + fail ArgumentError, 'invalid value for "height", must be greater than or equal to 0.' + end + @height = height + end + + # Custom attribute writer method with validation + # @param width [Object] Object to be assigned + def width=(width) + if @width.nil? + fail ArgumentError, 'invalid value for "width", width cannot be nil.' + end + if @width < 0 + fail ArgumentError, 'invalid value for "width", must be greater than or equal to 0.' + end + @width = width + end + + # Custom attribute writer method with validation + # @param x [Object] Object to be assigned + def x=(x) + if @x.nil? + fail ArgumentError, 'invalid value for "x", x cannot be nil.' + end + if @x < 0 + fail ArgumentError, 'invalid value for "x", must be greater than or equal to 0.' + end + @x = x + end + + # Custom attribute writer method with validation + # @param y [Object] Object to be assigned + def y=(y) + if @y.nil? + fail ArgumentError, 'invalid value for "y", y cannot be nil.' + end + if @y < 0 + fail ArgumentError, 'invalid value for "y", must be greater than or equal to 0.' + end + @y = y + end + # 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 f3f37fb9f1c..d970ceed4e1 100644 --- a/lib/datadog_api_client/v1/models/widget_marker.rb +++ b/lib/datadog_api_client/v1/models/widget_marker.rb @@ -122,10 +122,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @value.nil? return false if @value.nil? true end + # Custom attribute writer method with validation + # @param value [Object] Object to be assigned + def value=(value) + if @value.nil? + fail ArgumentError, 'invalid value for "value", value cannot be nil.' + end + @value = value + end + # 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 70e50f845a2..08e3fdb72a1 100644 --- a/lib/datadog_api_client/v1/models/widget_request_style.rb +++ b/lib/datadog_api_client/v1/models/widget_request_style.rb @@ -109,6 +109,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param line_type [Object] Object to be assigned + def line_type=(line_type) + validator = EnumAttributeValidator.new('WidgetLineType', ['dashed', 'dotted', 'solid']) + unless validator.valid?(line_type) + fail ArgumentError, "invalid value for \"line_type\", must be one of #{validator.allowable_values}." + end + @line_type = line_type + end + + # Custom attribute writer method with validation + # @param line_width [Object] Object to be assigned + def line_width=(line_width) + validator = EnumAttributeValidator.new('WidgetLineWidth', ['normal', 'thick', 'thin']) + unless validator.valid?(line_width) + fail ArgumentError, "invalid value for \"line_width\", must be one of #{validator.allowable_values}." + end + @line_width = line_width + end + # 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 fd9b5dc6f3a..87065849fea 100644 --- a/lib/datadog_api_client/v1/models/widget_time.rb +++ b/lib/datadog_api_client/v1/models/widget_time.rb @@ -91,6 +91,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param live_span [Object] Object to be assigned + def live_span=(live_span) + validator = EnumAttributeValidator.new('WidgetLiveSpan', ['1m', '5m', '10m', '15m', '30m', '1h', '4h', '1d', '2d', '1w', '1mo', '3mo', '6mo', '1y', 'alert']) + unless validator.valid?(live_span) + fail ArgumentError, "invalid value for \"live_span\", must be one of #{validator.allowable_values}." + end + @live_span = live_span + end + # 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 d375c99a2c4..03ae374550e 100644 --- a/lib/datadog_api_client/v2/models/api_error_response.rb +++ b/lib/datadog_api_client/v2/models/api_error_response.rb @@ -93,10 +93,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @errors.nil? return false if @errors.nil? true end + # Custom attribute writer method with validation + # @param errors [Object] Object to be assigned + def errors=(errors) + if @errors.nil? + fail ArgumentError, 'invalid value for "errors", errors cannot be nil.' + end + @errors = errors + end + # 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 d7deee711f9..67575df1e94 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + # 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 33783a1a182..4533483b742 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 @@ -105,11 +105,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('APIKeysType', ['api_keys']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 5fc9e84ba13..64f1d05a08e 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 cab516829bc..9dbfb18c60e 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + # 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 98127a78d56..035315fe542 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 @@ -117,12 +117,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @id.nil? + return false if @type.nil? return false if @attributes.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('APIKeysType', ['api_keys']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 95f1f563d4f..44981bf3220 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 36b167fd3bb..f6d4629ad50 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 @@ -103,10 +103,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + # 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 f3d33a6bb69..ed480750132 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 @@ -105,11 +105,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 4bab01705dc..388932b97e6 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 346d3086083..e8319713bb5 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 @@ -117,12 +117,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @id.nil? + return false if @type.nil? return false if @attributes.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 7a3589e2409..3e359a0d58f 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 3e4999cacd3..3fe5ee8cd3e 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 @@ -121,11 +121,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @expression.nil? + return false if @name.nil? return false if @expression.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param expression [Object] Object to be assigned + def expression=(expression) + if @expression.nil? + fail ArgumentError, 'invalid value for "expression", expression cannot be nil.' + end + @expression = expression + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + # 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 f9b3ac16233..9bcdace17a7 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 @@ -105,11 +105,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('CloudWorkloadSecurityAgentRuleType', ['agent_rule']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 9e63c7c70a4..55105a1aa86 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 c952b6134a8..61094dc3f17 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 @@ -111,6 +111,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('CloudWorkloadSecurityAgentRuleType', ['agent_rule']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 6c914bb877b..d1bd804d559 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 @@ -105,11 +105,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('CloudWorkloadSecurityAgentRuleType', ['agent_rule']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 37d2b2943f2..bd99bd8d759 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 82ed2c7ca1e..1f8ace74728 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item.rb @@ -198,9 +198,43 @@ def list_invalid_properties def valid? return false if @id.nil? return false if @type.nil? + return false if @id.nil? + return false if !@popularity.nil? && @popularity > 5 + return false if @type.nil? true end + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param popularity [Object] Object to be assigned + def popularity=(popularity) + if !@popularity.nil? && @popularity > 5 + fail ArgumentError, 'invalid value for "popularity", must be smaller than or equal to 5.' + end + @popularity = popularity + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('DashboardType', ['custom_timeboard', 'custom_screenboard', 'integration_screenboard', 'integration_timeboard', 'host_timeboard']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 51418d3d945..501b09d1d33 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,11 +103,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @id.nil? + return false if @type.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('DashboardType', ['custom_timeboard', 'custom_screenboard', 'integration_screenboard', 'integration_timeboard', 'host_timeboard']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 c1bddd9b1d3..1af0208a681 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,11 +103,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @id.nil? + return false if @type.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('DashboardType', ['custom_timeboard', 'custom_screenboard', 'integration_screenboard', 'integration_timeboard', 'host_timeboard']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 82a276cefa0..ab926e6adde 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_items.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_items.rb @@ -102,10 +102,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @dashboards.nil? return false if @dashboards.nil? true end + # Custom attribute writer method with validation + # @param dashboards [Object] Object to be assigned + def dashboards=(dashboards) + if @dashboards.nil? + fail ArgumentError, 'invalid value for "dashboards", dashboards cannot be nil.' + end + @dashboards = dashboards + end + # 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 f48bf9f934e..9c4c25941bb 100644 --- a/lib/datadog_api_client/v2/models/full_api_key.rb +++ b/lib/datadog_api_client/v2/models/full_api_key.rb @@ -120,6 +120,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('APIKeysType', ['api_keys']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 636b25717e9..a0f09a9999e 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 @@ -130,9 +130,23 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@last4.nil? && @last4.to_s.length > 4 + return false if !@last4.nil? && @last4.to_s.length < 4 true end + # Custom attribute writer method with validation + # @param last4 [Object] Object to be assigned + def last4=(last4) + if !@last4.nil? && @last4.to_s.length > 4 + fail ArgumentError, 'invalid value for "last4", the character length must be smaller than or equal to 4.' + end + if !@last4.nil? && @last4.to_s.length < 4 + fail ArgumentError, 'invalid value for "last4", the character length must be great than or equal to 4.' + end + @last4 = last4 + end + # 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 26ea6bc8ddc..caa51dc55b7 100644 --- a/lib/datadog_api_client/v2/models/full_application_key.rb +++ b/lib/datadog_api_client/v2/models/full_application_key.rb @@ -120,6 +120,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 818e312b101..2dbdcc2f2d9 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,9 +133,23 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@last4.nil? && @last4.to_s.length > 4 + return false if !@last4.nil? && @last4.to_s.length < 4 true end + # Custom attribute writer method with validation + # @param last4 [Object] Object to be assigned + def last4=(last4) + if !@last4.nil? && @last4.to_s.length > 4 + fail ArgumentError, 'invalid value for "last4", the character length must be smaller than or equal to 4.' + end + if !@last4.nil? && @last4.to_s.length < 4 + fail ArgumentError, 'invalid value for "last4", the character length must be great than or equal to 4.' + end + @last4 = last4 + end + # 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 7d26e088692..2d87ba04f65 100644 --- a/lib/datadog_api_client/v2/models/incident_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_create_attributes.rb @@ -134,11 +134,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @customer_impacted.nil? + return false if @title.nil? return false if @customer_impacted.nil? return false if @title.nil? true end + # Custom attribute writer method with validation + # @param customer_impacted [Object] Object to be assigned + def customer_impacted=(customer_impacted) + if @customer_impacted.nil? + fail ArgumentError, 'invalid value for "customer_impacted", customer_impacted cannot be nil.' + end + @customer_impacted = customer_impacted + end + + # Custom attribute writer method with validation + # @param title [Object] Object to be assigned + def title=(title) + if @title.nil? + fail ArgumentError, 'invalid value for "title", title cannot be nil.' + end + @title = title + end + # 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 1311272045a..1abd6a21813 100644 --- a/lib/datadog_api_client/v2/models/incident_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_create_data.rb @@ -114,11 +114,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('IncidentType', ['incidents']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 bfaee8fd262..c8a3241d44f 100644 --- a/lib/datadog_api_client/v2/models/incident_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_create_relationships.rb @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @commander.nil? return false if @commander.nil? true end + # Custom attribute writer method with validation + # @param commander [Object] Object to be assigned + def commander=(commander) + if @commander.nil? + fail ArgumentError, 'invalid value for "commander", commander cannot be nil.' + end + @commander = commander + end + # 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 9845d6c9b06..07229813776 100644 --- a/lib/datadog_api_client/v2/models/incident_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_create_request.rb @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 3301c8bf58f..c5581fa6341 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 @@ -105,6 +105,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('IncidentFieldAttributesValueType', ['multiselect', 'textarray', 'metrictag', 'autocomplete']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 ec2373dd969..280f981fb90 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 @@ -103,6 +103,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('IncidentFieldAttributesSingleValueType', ['dropdown', 'textbox']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 f4cddb7e2c5..e11a5f0e2fb 100644 --- a/lib/datadog_api_client/v2/models/incident_response.rb +++ b/lib/datadog_api_client/v2/models/incident_response.rb @@ -102,10 +102,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 8252663af75..3e2bcb43e11 100644 --- a/lib/datadog_api_client/v2/models/incident_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_response_attributes.rb @@ -254,10 +254,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @title.nil? return false if @title.nil? true end + # Custom attribute writer method with validation + # @param title [Object] Object to be assigned + def title=(title) + if @title.nil? + fail ArgumentError, 'invalid value for "title", title cannot be nil.' + end + @title = title + end + # 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 d4ca007e654..7f152b63304 100644 --- a/lib/datadog_api_client/v2/models/incident_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_response_data.rb @@ -123,11 +123,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @id.nil? + return false if @type.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('IncidentType', ['incidents']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 606f4d746c1..4658fbef178 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + # 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 9f796f4b342..db6337eeb4d 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 @@ -111,10 +111,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('IncidentServiceType', ['services']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 72e191af71f..79118a7ffe6 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 11e218e8f84..17e39bbc9c0 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response.rb @@ -102,10 +102,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 307d1e4f015..813521f317b 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 @@ -123,11 +123,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @id.nil? + return false if @type.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('IncidentServiceType', ['services']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 776bf66a7fb..4e94814cb23 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + # 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 65ea2461773..92616016224 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 @@ -120,10 +120,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('IncidentServiceType', ['services']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 75684811b87..c73feb7b358 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 986e54025f6..8bc871c3d4e 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response.rb @@ -113,10 +113,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 7ca379ddb4f..276f7e8d829 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + # 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 58a80550dcc..409ecf70b7c 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 @@ -111,10 +111,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('IncidentTeamType', ['teams']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 f82439fce67..fb8d314b501 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 aad4f8d3e39..e0a4c97d68c 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response.rb @@ -102,10 +102,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 ba7699d0ca1..d484b8fe0e9 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 @@ -120,6 +120,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('IncidentTeamType', ['teams']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 531e4989725..4f2a936ef56 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + # 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 293119540a8..a9c2408bfb6 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 @@ -120,10 +120,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('IncidentTeamType', ['teams']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 be967e459e4..c6bf2430e72 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 86f4b7553c7..a09be538ad5 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response.rb @@ -113,10 +113,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 a4350e07ced..7c324425a1b 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 @@ -116,11 +116,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @cell_type.nil? + return false if @content.nil? return false if @cell_type.nil? return false if @content.nil? true end + # Custom attribute writer method with validation + # @param cell_type [Object] Object to be assigned + def cell_type=(cell_type) + validator = EnumAttributeValidator.new('IncidentTimelineCellMarkdownContentType', ['markdown']) + unless validator.valid?(cell_type) + fail ArgumentError, "invalid value for \"cell_type\", must be one of #{validator.allowable_values}." + end + if @cell_type.nil? + fail ArgumentError, 'invalid value for "cell_type", cell_type cannot be nil.' + end + @cell_type = cell_type + end + + # Custom attribute writer method with validation + # @param content [Object] Object to be assigned + def content=(content) + if @content.nil? + fail ArgumentError, 'invalid value for "content", content cannot be nil.' + end + @content = content + end + # 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 70003970ba9..008fd5340a3 100644 --- a/lib/datadog_api_client/v2/models/incident_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_update_data.rb @@ -123,11 +123,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @id.nil? + return false if @type.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('IncidentType', ['incidents']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 9fa7ded8aa7..c181d789f3c 100644 --- a/lib/datadog_api_client/v2/models/incident_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_update_request.rb @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 f9d2548c552..6ba8cb87751 100644 --- a/lib/datadog_api_client/v2/models/incidents_response.rb +++ b/lib/datadog_api_client/v2/models/incidents_response.rb @@ -113,10 +113,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 c8ad5541d76..0db27f69170 100644 --- a/lib/datadog_api_client/v2/models/log.rb +++ b/lib/datadog_api_client/v2/models/log.rb @@ -111,6 +111,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogType', ['log']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 d4811cab9f6..8df418797e5 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb @@ -120,6 +120,36 @@ def valid? true end + # Custom attribute writer method with validation + # @param aggregation [Object] Object to be assigned + def aggregation=(aggregation) + validator = EnumAttributeValidator.new('LogsAggregationFunction', ['count', 'cardinality', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) + unless validator.valid?(aggregation) + fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." + end + @aggregation = aggregation + end + + # Custom attribute writer method with validation + # @param order [Object] Object to be assigned + def order=(order) + validator = EnumAttributeValidator.new('LogsSortOrder', ['asc', 'desc']) + unless validator.valid?(order) + fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." + end + @order = order + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsAggregateSortType', ['alphabetical', 'measure']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 6a0c8402fd5..424f193dc06 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb @@ -148,9 +148,39 @@ def valid? return false if @destination.nil? return false if @name.nil? return false if @query.nil? + return false if @name.nil? + return false if @query.nil? true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param query [Object] Object to be assigned + def query=(query) + if @query.nil? + fail ArgumentError, 'invalid value for "query", query cannot be nil.' + end + @query = query + end + + # Custom attribute writer method with validation + # @param state [Object] Object to be assigned + def state=(state) + validator = EnumAttributeValidator.new('LogsArchiveState', ['UNKNOWN', 'WORKING', 'FAILING', 'WORKING_AUTH_LEGACY']) + unless validator.valid?(state) + fail ArgumentError, "invalid value for \"state\", must be one of #{validator.allowable_values}." + end + @state = state + end + # 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 39bc02bf533..bc8eba7486e 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 @@ -138,12 +138,42 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @destination.nil? + return false if @name.nil? + return false if @query.nil? return false if @destination.nil? return false if @name.nil? return false if @query.nil? true end + # Custom attribute writer method with validation + # @param destination [Object] Object to be assigned + def destination=(destination) + if @destination.nil? + fail ArgumentError, 'invalid value for "destination", destination cannot be nil.' + end + @destination = destination + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param query [Object] Object to be assigned + def query=(query) + if @query.nil? + fail ArgumentError, 'invalid value for "query", query cannot be nil.' + end + @query = query + end + # 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 eb10649289e..4e3f818b004 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 @@ -102,10 +102,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 22ee1ac0ed6..a572a79cbf0 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_definition.rb @@ -111,10 +111,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 919cc2cde60..f17853787f1 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 @@ -147,6 +147,10 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @container.nil? + return false if @integration.nil? + return false if @storage_account.nil? + return false if @type.nil? return false if @container.nil? return false if @integration.nil? return false if @storage_account.nil? @@ -154,6 +158,46 @@ def valid? true end + # Custom attribute writer method with validation + # @param container [Object] Object to be assigned + def container=(container) + if @container.nil? + fail ArgumentError, 'invalid value for "container", container cannot be nil.' + end + @container = container + end + + # Custom attribute writer method with validation + # @param integration [Object] Object to be assigned + def integration=(integration) + if @integration.nil? + fail ArgumentError, 'invalid value for "integration", integration cannot be nil.' + end + @integration = integration + end + + # Custom attribute writer method with validation + # @param storage_account [Object] Object to be assigned + def storage_account=(storage_account) + if @storage_account.nil? + fail ArgumentError, 'invalid value for "storage_account", storage_account cannot be nil.' + end + @storage_account = storage_account + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsArchiveDestinationAzureType', ['azure']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 759edeffbdc..43a79c28fdb 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 @@ -126,12 +126,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @bucket.nil? + return false if @integration.nil? + return false if @type.nil? return false if @bucket.nil? return false if @integration.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param bucket [Object] Object to be assigned + def bucket=(bucket) + if @bucket.nil? + fail ArgumentError, 'invalid value for "bucket", bucket cannot be nil.' + end + @bucket = bucket + end + + # Custom attribute writer method with validation + # @param integration [Object] Object to be assigned + def integration=(integration) + if @integration.nil? + fail ArgumentError, 'invalid value for "integration", integration cannot be nil.' + end + @integration = integration + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsArchiveDestinationGCSType', ['gcs']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 992a73bb7aa..a03877e6629 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 @@ -126,12 +126,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @bucket.nil? + return false if @integration.nil? + return false if @type.nil? return false if @bucket.nil? return false if @integration.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param bucket [Object] Object to be assigned + def bucket=(bucket) + if @bucket.nil? + fail ArgumentError, 'invalid value for "bucket", bucket cannot be nil.' + end + @bucket = bucket + end + + # Custom attribute writer method with validation + # @param integration [Object] Object to be assigned + def integration=(integration) + if @integration.nil? + fail ArgumentError, 'invalid value for "integration", integration cannot be nil.' + end + @integration = integration + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsArchiveDestinationS3Type', ['s3']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 3bde6da35c3..09dcf4359c0 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,11 +103,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @client_id.nil? + return false if @tenant_id.nil? return false if @client_id.nil? return false if @tenant_id.nil? true end + # Custom attribute writer method with validation + # @param client_id [Object] Object to be assigned + def client_id=(client_id) + if @client_id.nil? + fail ArgumentError, 'invalid value for "client_id", client_id cannot be nil.' + end + @client_id = client_id + end + + # Custom attribute writer method with validation + # @param tenant_id [Object] Object to be assigned + def tenant_id=(tenant_id) + if @tenant_id.nil? + fail ArgumentError, 'invalid value for "tenant_id", tenant_id cannot be nil.' + end + @tenant_id = tenant_id + end + # 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 18fdd38e638..01a49429cc3 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 @@ -103,11 +103,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @client_email.nil? + return false if @project_id.nil? return false if @client_email.nil? return false if @project_id.nil? true end + # Custom attribute writer method with validation + # @param client_email [Object] Object to be assigned + def client_email=(client_email) + if @client_email.nil? + fail ArgumentError, 'invalid value for "client_email", client_email cannot be nil.' + end + @client_email = client_email + end + + # Custom attribute writer method with validation + # @param project_id [Object] Object to be assigned + def project_id=(project_id) + if @project_id.nil? + fail ArgumentError, 'invalid value for "project_id", project_id cannot be nil.' + end + @project_id = project_id + end + # 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 9293561b138..5f677caf302 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,11 +103,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @account_id.nil? + return false if @role_name.nil? return false if @account_id.nil? return false if @role_name.nil? true end + # Custom attribute writer method with validation + # @param account_id [Object] Object to be assigned + def account_id=(account_id) + if @account_id.nil? + fail ArgumentError, 'invalid value for "account_id", account_id cannot be nil.' + end + @account_id = account_id + end + + # Custom attribute writer method with validation + # @param role_name [Object] Object to be assigned + def role_name=(role_name) + if @role_name.nil? + fail ArgumentError, 'invalid value for "role_name", role_name cannot be nil.' + end + @role_name = role_name + end + # 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 9025d8ca73a..a3275428389 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 @@ -94,10 +94,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @archive_ids.nil? return false if @archive_ids.nil? true end + # Custom attribute writer method with validation + # @param archive_ids [Object] Object to be assigned + def archive_ids=(archive_ids) + if @archive_ids.nil? + fail ArgumentError, 'invalid value for "archive_ids", archive_ids cannot be nil.' + end + @archive_ids = archive_ids + end + # 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 9588b8e6391..aa4234cf8f5 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 @@ -105,11 +105,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsArchiveOrderDefinitionType', ['archive_order']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 9e1e04443d0..775088a1133 100644 --- a/lib/datadog_api_client/v2/models/logs_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_compute.rb @@ -121,10 +121,34 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @aggregation.nil? return false if @aggregation.nil? true end + # Custom attribute writer method with validation + # @param aggregation [Object] Object to be assigned + def aggregation=(aggregation) + validator = EnumAttributeValidator.new('LogsAggregationFunction', ['count', 'cardinality', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) + unless validator.valid?(aggregation) + fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." + end + if @aggregation.nil? + fail ArgumentError, 'invalid value for "aggregation", aggregation cannot be nil.' + end + @aggregation = aggregation + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsComputeType', ['timeseries', 'total']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 5d9e6bcfa1b..82e370e1ff3 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by.rb @@ -141,10 +141,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @facet.nil? return false if @facet.nil? true end + # Custom attribute writer method with validation + # @param facet [Object] Object to be assigned + def facet=(facet) + if @facet.nil? + fail ArgumentError, 'invalid value for "facet", facet cannot be nil.' + end + @facet = facet + end + # 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 1fe9161e6f2..4f3ebdc4c07 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 @@ -118,12 +118,42 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @interval.nil? + return false if @max.nil? + return false if @min.nil? return false if @interval.nil? return false if @max.nil? return false if @min.nil? true end + # Custom attribute writer method with validation + # @param interval [Object] Object to be assigned + def interval=(interval) + if @interval.nil? + fail ArgumentError, 'invalid value for "interval", interval cannot be nil.' + end + @interval = interval + end + + # Custom attribute writer method with validation + # @param max [Object] Object to be assigned + def max=(max) + if @max.nil? + fail ArgumentError, 'invalid value for "max", max cannot be nil.' + end + @max = max + end + + # Custom attribute writer method with validation + # @param min [Object] Object to be assigned + def min=(min) + if @min.nil? + fail ArgumentError, 'invalid value for "min", min cannot be nil.' + end + @min = min + end + # 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 300fedb967a..6fdc85fb860 100644 --- a/lib/datadog_api_client/v2/models/logs_list_request.rb +++ b/lib/datadog_api_client/v2/models/logs_list_request.rb @@ -119,6 +119,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param sort [Object] Object to be assigned + def sort=(sort) + validator = EnumAttributeValidator.new('LogsSort', ['timestamp', '-timestamp']) + unless validator.valid?(sort) + fail ArgumentError, "invalid value for \"sort\", must be one of #{validator.allowable_values}." + end + @sort = sort + end + # 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 bb633a2cae0..4a467d94bca 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 @@ -102,9 +102,19 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@limit.nil? && @limit > 1000 true end + # Custom attribute writer method with validation + # @param limit [Object] Object to be assigned + def limit=(limit) + if !@limit.nil? && @limit > 1000 + fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 1000.' + end + @limit = limit + end + # 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 ed97b396590..db8b3b22dbc 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_compute.rb @@ -100,10 +100,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @aggregation_type.nil? return false if @aggregation_type.nil? true end + # Custom attribute writer method with validation + # @param aggregation_type [Object] Object to be assigned + def aggregation_type=(aggregation_type) + validator = EnumAttributeValidator.new('LogsMetricComputeAggregationType', ['count', 'distribution']) + unless validator.valid?(aggregation_type) + fail ArgumentError, "invalid value for \"aggregation_type\", must be one of #{validator.allowable_values}." + end + if @aggregation_type.nil? + fail ArgumentError, 'invalid value for "aggregation_type", aggregation_type cannot be nil.' + end + @aggregation_type = aggregation_type + end + # 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 580a120f382..f0ce4c09218 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 @@ -111,10 +111,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @compute.nil? return false if @compute.nil? true end + # Custom attribute writer method with validation + # @param compute [Object] Object to be assigned + def compute=(compute) + if @compute.nil? + fail ArgumentError, 'invalid value for "compute", compute cannot be nil.' + end + @compute = compute + end + # 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 4661122f961..b8cbcdfd4ad 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 @@ -117,12 +117,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @id.nil? + return false if @type.nil? return false if @attributes.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsMetricType', ['logs_metrics']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 154cb2d4ea2..df710025339 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 3eb4d09ed12..ab40f0e732b 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 @@ -100,10 +100,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @path.nil? return false if @path.nil? true end + # Custom attribute writer method with validation + # @param path [Object] Object to be assigned + def path=(path) + if @path.nil? + fail ArgumentError, 'invalid value for "path", path cannot be nil.' + end + @path = path + end + # 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 d8d694fc047..7fbaa967c90 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 @@ -100,6 +100,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param aggregation_type [Object] Object to be assigned + def aggregation_type=(aggregation_type) + validator = EnumAttributeValidator.new('LogsMetricResponseComputeAggregationType', ['count', 'distribution']) + unless validator.valid?(aggregation_type) + fail ArgumentError, "invalid value for \"aggregation_type\", must be one of #{validator.allowable_values}." + end + @aggregation_type = aggregation_type + end + # 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 45c674229fb..a45370df66e 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 @@ -111,6 +111,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsMetricType', ['logs_metrics']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 b37ab6053de..249eed308c4 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 @@ -105,11 +105,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('LogsMetricType', ['logs_metrics']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 97d381794e5..1d3f4423303 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 bd8f39a2aa3..e8e0cfe0340 100644 --- a/lib/datadog_api_client/v2/models/logs_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/logs_response_metadata.rb @@ -130,6 +130,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('LogsAggregateResponseStatus', ['done', 'timeout']) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + # 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 e9b48e24520..f358b941b6b 100644 --- a/lib/datadog_api_client/v2/models/metric.rb +++ b/lib/datadog_api_client/v2/models/metric.rb @@ -102,6 +102,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('MetricType', ['metrics']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 410fefd9639..43d8c518e9b 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags.rb @@ -111,6 +111,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('MetricType', ['metrics']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 5d4c8a24175..fe38f2a6a38 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb @@ -103,11 +103,39 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @space.nil? + return false if @time.nil? return false if @space.nil? return false if @time.nil? true end + # Custom attribute writer method with validation + # @param space [Object] Object to be assigned + def space=(space) + validator = EnumAttributeValidator.new('MetricCustomSpaceAggregation', ['avg', 'max', 'min', 'sum']) + unless validator.valid?(space) + fail ArgumentError, "invalid value for \"space\", must be one of #{validator.allowable_values}." + end + if @space.nil? + fail ArgumentError, 'invalid value for "space", space cannot be nil.' + end + @space = space + end + + # Custom attribute writer method with validation + # @param time [Object] Object to be assigned + def time=(time) + validator = EnumAttributeValidator.new('MetricCustomTimeAggregation', ['avg', 'count', 'max', 'min', 'sum']) + unless validator.valid?(time) + fail ArgumentError, "invalid value for \"time\", must be one of #{validator.allowable_values}." + end + if @time.nil? + fail ArgumentError, 'invalid value for "time", time cannot be nil.' + end + @time = time + end + # 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 69314866af0..ee1a1e9b59e 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume.rb @@ -111,6 +111,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('MetricDistinctVolumeType', ['distinct_metric_volumes']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 f2cba42b410..32993129649 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 @@ -111,6 +111,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('MetricIngestedIndexedVolumeType', ['metric_volumes']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 15a84986e5d..42d913b485b 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration.rb @@ -111,6 +111,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('MetricTagConfigurationType', ['manage_tags']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 11a41a3ef0f..5f0a8c2ec07 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 @@ -158,6 +158,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param metric_type [Object] Object to be assigned + def metric_type=(metric_type) + validator = EnumAttributeValidator.new('MetricTagConfigurationMetricTypes', ['gauge', 'count', 'rate', 'distribution']) + unless validator.valid?(metric_type) + fail ArgumentError, "invalid value for \"metric_type\", must be one of #{validator.allowable_values}." + end + @metric_type = metric_type + end + # 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 243212bbd5f..2f583d7bb11 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 @@ -147,11 +147,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @metric_type.nil? + return false if @tags.nil? return false if @metric_type.nil? return false if @tags.nil? true end + # Custom attribute writer method with validation + # @param metric_type [Object] Object to be assigned + def metric_type=(metric_type) + validator = EnumAttributeValidator.new('MetricTagConfigurationMetricTypes', ['gauge', 'count', 'rate', 'distribution']) + unless validator.valid?(metric_type) + fail ArgumentError, "invalid value for \"metric_type\", must be one of #{validator.allowable_values}." + end + if @metric_type.nil? + fail ArgumentError, 'invalid value for "metric_type", metric_type cannot be nil.' + end + @metric_type = metric_type + end + + # Custom attribute writer method with validation + # @param tags [Object] Object to be assigned + def tags=(tags) + if @tags.nil? + fail ArgumentError, 'invalid value for "tags", tags cannot be nil.' + end + @tags = tags + end + # 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 ecec8a797b1..b700061fd64 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 @@ -114,11 +114,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @id.nil? + return false if @type.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('MetricTagConfigurationType', ['manage_tags']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 25380d72697..f0357d46058 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 5a094181d77..95005561af5 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 @@ -114,11 +114,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @id.nil? + return false if @type.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('MetricTagConfigurationType', ['manage_tags']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 f873c477668..c5d3ba094ef 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 a3e283d644c..b56d5be1a49 100644 --- a/lib/datadog_api_client/v2/models/organization.rb +++ b/lib/datadog_api_client/v2/models/organization.rb @@ -111,10 +111,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('OrganizationsType', ['orgs']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 a32ddec48d9..235f2bdd062 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key.rb @@ -120,6 +120,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('APIKeysType', ['api_keys']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 94a1509bd30..94873679057 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 @@ -121,9 +121,23 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@last4.nil? && @last4.to_s.length > 4 + return false if !@last4.nil? && @last4.to_s.length < 4 true end + # Custom attribute writer method with validation + # @param last4 [Object] Object to be assigned + def last4=(last4) + if !@last4.nil? && @last4.to_s.length > 4 + fail ArgumentError, 'invalid value for "last4", the character length must be smaller than or equal to 4.' + end + if !@last4.nil? && @last4.to_s.length < 4 + fail ArgumentError, 'invalid value for "last4", the character length must be great than or equal to 4.' + end + @last4 = last4 + end + # 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 4aa9164c272..d8f82f751bb 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key.rb @@ -120,6 +120,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 aedde8ba754..032c285fa3a 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,9 +124,23 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@last4.nil? && @last4.to_s.length > 4 + return false if !@last4.nil? && @last4.to_s.length < 4 true end + # Custom attribute writer method with validation + # @param last4 [Object] Object to be assigned + def last4=(last4) + if !@last4.nil? && @last4.to_s.length > 4 + fail ArgumentError, 'invalid value for "last4", the character length must be smaller than or equal to 4.' + end + if !@last4.nil? && @last4.to_s.length < 4 + fail ArgumentError, 'invalid value for "last4", the character length must be great than or equal to 4.' + end + @last4 = last4 + end + # 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 df8a90049fc..bf91a58d9f4 100644 --- a/lib/datadog_api_client/v2/models/permission.rb +++ b/lib/datadog_api_client/v2/models/permission.rb @@ -111,10 +111,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('PermissionsType', ['permissions']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 c1b408c80f8..9e2b9a5c561 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 @@ -104,9 +104,23 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@size.nil? && @size > 10000 + return false if !@size.nil? && @size < 0 true end + # Custom attribute writer method with validation + # @param size [Object] Object to be assigned + def size=(size) + if !@size.nil? && @size > 10000 + fail ArgumentError, 'invalid value for "size", must be smaller than or equal to 10000.' + end + if !@size.nil? && @size < 0 + fail ArgumentError, 'invalid value for "size", must be greater than or equal to 0.' + end + @size = size + end + # 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 dc98569a608..b2423082f1a 100644 --- a/lib/datadog_api_client/v2/models/process_summary.rb +++ b/lib/datadog_api_client/v2/models/process_summary.rb @@ -111,6 +111,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('ProcessSummaryType', ['process']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 8c5a0af32b8..1aa3ca29632 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 @@ -105,11 +105,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @id.nil? + return false if @type.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('IncidentIntegrationMetadataType', ['incident_integrations']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 d3c02da1934..bd7dd81c5aa 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 @@ -93,10 +93,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 3dd457e28c7..eef20d9bdff 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 11b25a5d311..7d51d464475 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 @@ -105,11 +105,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @id.nil? + return false if @type.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('IncidentPostmortemType', ['incident_postmortems']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 3642d58b445..135a050decb 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organization.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organization.rb @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 5b813c3d611..b4fc5376873 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 @@ -105,11 +105,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @id.nil? + return false if @type.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('OrganizationsType', ['orgs']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 3014c54db23..8cc445d88b9 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organizations.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organizations.rb @@ -93,10 +93,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 17945c14630..5fd1969194c 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 @@ -102,6 +102,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('PermissionsType', ['permissions']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 a0bb7dc09b9..e3b60f0f3c3 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 @@ -102,6 +102,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('RolesType', ['roles']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 51cb9b27704..105a25c4fed 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user.rb @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 343fc46a4f1..004e60fb984 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 @@ -105,11 +105,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @id.nil? + return false if @type.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('UsersType', ['users']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 649a260118a..406a7cb0471 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_users.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_users.rb @@ -93,10 +93,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 371f0ae1d43..2bf6672b430 100644 --- a/lib/datadog_api_client/v2/models/role.rb +++ b/lib/datadog_api_client/v2/models/role.rb @@ -120,10 +120,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('RolesType', ['roles']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 89eabd378b3..054f4d908e1 100644 --- a/lib/datadog_api_client/v2/models/role_clone.rb +++ b/lib/datadog_api_client/v2/models/role_clone.rb @@ -105,11 +105,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('RolesType', ['roles']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 139d4b05bc3..7757d4d2849 100644 --- a/lib/datadog_api_client/v2/models/role_clone_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_clone_attributes.rb @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + # 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 c76519de3d7..7d25eea7010 100644 --- a/lib/datadog_api_client/v2/models/role_clone_request.rb +++ b/lib/datadog_api_client/v2/models/role_clone_request.rb @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 94195ed2a39..2e0b8b69caf 100644 --- a/lib/datadog_api_client/v2/models/role_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_create_attributes.rb @@ -109,10 +109,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? return false if @name.nil? true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + # 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 7bc0007ea5f..ebf8729856f 100644 --- a/lib/datadog_api_client/v2/models/role_create_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_data.rb @@ -111,10 +111,30 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? return false if @attributes.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('RolesType', ['roles']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 a64bbca17e2..bb674efbda6 100644 --- a/lib/datadog_api_client/v2/models/role_create_request.rb +++ b/lib/datadog_api_client/v2/models/role_create_request.rb @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 e9c01d1e9db..cc8277dbfd0 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 @@ -120,10 +120,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('RolesType', ['roles']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 237e694a5b4..fd781d4a248 100644 --- a/lib/datadog_api_client/v2/models/role_update_data.rb +++ b/lib/datadog_api_client/v2/models/role_update_data.rb @@ -117,12 +117,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @id.nil? + return false if @type.nil? return false if @attributes.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('RolesType', ['roles']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 a615899bc50..c822027b475 100644 --- a/lib/datadog_api_client/v2/models/role_update_request.rb +++ b/lib/datadog_api_client/v2/models/role_update_request.rb @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 2a4c240f69b..8631623b8df 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 @@ -120,10 +120,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @type.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('RolesType', ['roles']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 3d8f7e3f2e8..7e9ca5ba2c8 100644 --- a/lib/datadog_api_client/v2/models/security_filter.rb +++ b/lib/datadog_api_client/v2/models/security_filter.rb @@ -111,6 +111,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SecurityFilterType', ['security_filters']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 52dd2d5697b..a3e6277ea88 100644 --- a/lib/datadog_api_client/v2/models/security_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_attributes.rb @@ -147,9 +147,29 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@version.nil? && @version > 2147483647 true end + # Custom attribute writer method with validation + # @param filtered_data_type [Object] Object to be assigned + def filtered_data_type=(filtered_data_type) + validator = EnumAttributeValidator.new('SecurityFilterFilteredDataType', ['logs']) + unless validator.valid?(filtered_data_type) + fail ArgumentError, "invalid value for \"filtered_data_type\", must be one of #{validator.allowable_values}." + end + @filtered_data_type = filtered_data_type + end + + # Custom attribute writer method with validation + # @param version [Object] Object to be assigned + def version=(version) + if !@version.nil? && @version > 2147483647 + fail ArgumentError, 'invalid value for "version", must be smaller than or equal to 2147483647.' + end + @version = version + end + # 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 58406c3274c..d4b6796977d 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 @@ -141,6 +141,11 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @exclusion_filters.nil? + return false if @filtered_data_type.nil? + return false if @is_enabled.nil? + return false if @name.nil? + return false if @query.nil? return false if @exclusion_filters.nil? return false if @filtered_data_type.nil? return false if @is_enabled.nil? @@ -149,6 +154,55 @@ def valid? true end + # Custom attribute writer method with validation + # @param exclusion_filters [Object] Object to be assigned + def exclusion_filters=(exclusion_filters) + if @exclusion_filters.nil? + fail ArgumentError, 'invalid value for "exclusion_filters", exclusion_filters cannot be nil.' + end + @exclusion_filters = exclusion_filters + end + + # Custom attribute writer method with validation + # @param filtered_data_type [Object] Object to be assigned + def filtered_data_type=(filtered_data_type) + validator = EnumAttributeValidator.new('SecurityFilterFilteredDataType', ['logs']) + unless validator.valid?(filtered_data_type) + fail ArgumentError, "invalid value for \"filtered_data_type\", must be one of #{validator.allowable_values}." + end + if @filtered_data_type.nil? + fail ArgumentError, 'invalid value for "filtered_data_type", filtered_data_type cannot be nil.' + end + @filtered_data_type = filtered_data_type + end + + # Custom attribute writer method with validation + # @param is_enabled [Object] Object to be assigned + def is_enabled=(is_enabled) + if @is_enabled.nil? + fail ArgumentError, 'invalid value for "is_enabled", is_enabled cannot be nil.' + end + @is_enabled = is_enabled + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param query [Object] Object to be assigned + def query=(query) + if @query.nil? + fail ArgumentError, 'invalid value for "query", query cannot be nil.' + end + @query = query + end + # 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 c1f121defcb..54cfd308283 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 @@ -105,11 +105,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SecurityFilterType', ['security_filters']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 6810d469b79..93436ff88fa 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 d46c4c84177..6ce2955ed0d 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,11 +103,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @name.nil? + return false if @query.nil? return false if @name.nil? return false if @query.nil? true end + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param query [Object] Object to be assigned + def query=(query) + if @query.nil? + fail ArgumentError, 'invalid value for "query", query cannot be nil.' + end + @query = query + end + # 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 9e41a5848f9..ecd3612df60 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 @@ -138,9 +138,29 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@version.nil? && @version > 2147483647 true end + # Custom attribute writer method with validation + # @param filtered_data_type [Object] Object to be assigned + def filtered_data_type=(filtered_data_type) + validator = EnumAttributeValidator.new('SecurityFilterFilteredDataType', ['logs']) + unless validator.valid?(filtered_data_type) + fail ArgumentError, "invalid value for \"filtered_data_type\", must be one of #{validator.allowable_values}." + end + @filtered_data_type = filtered_data_type + end + + # Custom attribute writer method with validation + # @param version [Object] Object to be assigned + def version=(version) + if !@version.nil? && @version > 2147483647 + fail ArgumentError, 'invalid value for "version", must be smaller than or equal to 2147483647.' + end + @version = version + end + # 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 e634a534059..e85ff4ee62a 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 @@ -105,11 +105,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SecurityFilterType', ['security_filters']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 df6cb68cc6b..e5d7f9f2150 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 f501e9ac611..86ea7f9232d 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_filter.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_filter.rb @@ -100,6 +100,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param action [Object] Object to be assigned + def action=(action) + validator = EnumAttributeValidator.new('SecurityMonitoringFilterAction', ['require', 'suppress']) + unless validator.valid?(action) + fail ArgumentError, "invalid value for \"action\", must be one of #{validator.allowable_values}." + end + @action = action + end + # 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 4386ea90c5b..ae4fe689ab0 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 @@ -121,6 +121,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('SecurityMonitoringRuleSeverity', ['info', 'low', 'medium', 'high', 'critical']) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + # 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 cda305e2e7d..538f0536096 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 @@ -121,10 +121,24 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @status.nil? return false if @status.nil? true end + # Custom attribute writer method with validation + # @param status [Object] Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('SecurityMonitoringRuleSeverity', ['info', 'low', 'medium', 'high', 'critical']) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + if @status.nil? + fail ArgumentError, 'invalid value for "status", status cannot be nil.' + end + @status = status + end + # 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_create_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb index b39afc1f3be..f5420ede378 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb @@ -195,6 +195,12 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @cases.nil? + return false if @is_enabled.nil? + return false if @message.nil? + return false if @name.nil? + return false if @options.nil? + return false if @queries.nil? return false if @cases.nil? return false if @is_enabled.nil? return false if @message.nil? @@ -204,6 +210,70 @@ def valid? true end + # Custom attribute writer method with validation + # @param cases [Object] Object to be assigned + def cases=(cases) + if @cases.nil? + fail ArgumentError, 'invalid value for "cases", cases cannot be nil.' + end + @cases = cases + end + + # Custom attribute writer method with validation + # @param is_enabled [Object] Object to be assigned + def is_enabled=(is_enabled) + if @is_enabled.nil? + fail ArgumentError, 'invalid value for "is_enabled", is_enabled cannot be nil.' + end + @is_enabled = is_enabled + end + + # Custom attribute writer method with validation + # @param message [Object] Object to be assigned + def message=(message) + if @message.nil? + fail ArgumentError, 'invalid value for "message", message cannot be nil.' + end + @message = message + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + def name=(name) + if @name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param options [Object] Object to be assigned + def options=(options) + if @options.nil? + fail ArgumentError, 'invalid value for "options", options cannot be nil.' + end + @options = options + end + + # Custom attribute writer method with validation + # @param queries [Object] Object to be assigned + def queries=(queries) + if @queries.nil? + fail ArgumentError, 'invalid value for "queries", queries cannot be nil.' + end + @queries = queries + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SecurityMonitoringRuleTypeCreate', ['log_detection', 'workload_security']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 3d0d3cfe169..3d95583f0a6 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 @@ -101,6 +101,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param forget_after [Object] Object to be assigned + def forget_after=(forget_after) + validator = EnumAttributeValidator.new('SecurityMonitoringRuleNewValueOptionsForgetAfter', [1, 2, 7, 14, 21, 28]) + unless validator.valid?(forget_after) + fail ArgumentError, "invalid value for \"forget_after\", must be one of #{validator.allowable_values}." + end + @forget_after = forget_after + end + + # Custom attribute writer method with validation + # @param learning_duration [Object] Object to be assigned + def learning_duration=(learning_duration) + validator = EnumAttributeValidator.new('SecurityMonitoringRuleNewValueOptionsLearningDuration', [0, 1, 7]) + unless validator.valid?(learning_duration) + fail ArgumentError, "invalid value for \"learning_duration\", must be one of #{validator.allowable_values}." + end + @learning_duration = learning_duration + end + # 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 f1d3f5cddf5..8cd5b6085f9 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 @@ -130,6 +130,46 @@ def valid? true end + # Custom attribute writer method with validation + # @param detection_method [Object] Object to be assigned + def detection_method=(detection_method) + validator = EnumAttributeValidator.new('SecurityMonitoringRuleDetectionMethod', ['threshold', 'new_value', 'anomaly_detection']) + unless validator.valid?(detection_method) + fail ArgumentError, "invalid value for \"detection_method\", must be one of #{validator.allowable_values}." + end + @detection_method = detection_method + end + + # Custom attribute writer method with validation + # @param evaluation_window [Object] Object to be assigned + def evaluation_window=(evaluation_window) + validator = EnumAttributeValidator.new('SecurityMonitoringRuleEvaluationWindow', [0, 60, 300, 600, 900, 1800, 3600, 7200]) + unless validator.valid?(evaluation_window) + fail ArgumentError, "invalid value for \"evaluation_window\", must be one of #{validator.allowable_values}." + end + @evaluation_window = evaluation_window + end + + # Custom attribute writer method with validation + # @param keep_alive [Object] Object to be assigned + def keep_alive=(keep_alive) + validator = EnumAttributeValidator.new('SecurityMonitoringRuleKeepAlive', [0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600]) + unless validator.valid?(keep_alive) + fail ArgumentError, "invalid value for \"keep_alive\", must be one of #{validator.allowable_values}." + end + @keep_alive = keep_alive + end + + # Custom attribute writer method with validation + # @param max_signal_duration [Object] Object to be assigned + def max_signal_duration=(max_signal_duration) + validator = EnumAttributeValidator.new('SecurityMonitoringRuleMaxSignalDuration', [0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400]) + unless validator.valid?(max_signal_duration) + fail ArgumentError, "invalid value for \"max_signal_duration\", must be one of #{validator.allowable_values}." + end + @max_signal_duration = max_signal_duration + end + # 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.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb index 31ced7e16c8..2070beedc67 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb @@ -141,6 +141,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param aggregation [Object] Object to be assigned + def aggregation=(aggregation) + validator = EnumAttributeValidator.new('SecurityMonitoringRuleQueryAggregation', ['count', 'cardinality', 'sum', 'max', 'new_value']) + unless validator.valid?(aggregation) + fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." + end + @aggregation = aggregation + end + # 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_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb index 142ca6c0313..776a08d2072 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb @@ -141,10 +141,30 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @query.nil? return false if @query.nil? true end + # Custom attribute writer method with validation + # @param aggregation [Object] Object to be assigned + def aggregation=(aggregation) + validator = EnumAttributeValidator.new('SecurityMonitoringRuleQueryAggregation', ['count', 'cardinality', 'sum', 'max', 'new_value']) + unless validator.valid?(aggregation) + fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." + end + @aggregation = aggregation + end + + # Custom attribute writer method with validation + # @param query [Object] Object to be assigned + def query=(query) + if @query.nil? + fail ArgumentError, 'invalid value for "query", query cannot be nil.' + end + @query = query + end + # 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_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb index 42905e79770..913159379e9 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb @@ -243,6 +243,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SecurityMonitoringRuleTypeRead', ['log_detection', 'infrastructure_configuration', 'workload_security', 'cloud_configuration']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 28cfc9f075b..257a1c49b1f 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 @@ -180,9 +180,19 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@version.nil? && @version > 2147483647 true end + # Custom attribute writer method with validation + # @param version [Object] Object to be assigned + def version=(version) + if !@version.nil? && @version > 2147483647 + fail ArgumentError, 'invalid value for "version", must be smaller than or equal to 2147483647.' + end + @version = version + end + # 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 97230fa1842..e53d4ffa4e3 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal.rb @@ -112,6 +112,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('SecurityMonitoringSignalType', ['signal']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 2d498ec8977..232c1403a72 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 @@ -109,6 +109,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param sort [Object] Object to be assigned + def sort=(sort) + validator = EnumAttributeValidator.new('SecurityMonitoringSignalsSort', ['timestamp', '-timestamp']) + unless validator.valid?(sort) + fail ArgumentError, "invalid value for \"sort\", must be one of #{validator.allowable_values}." + end + @sort = sort + end + # 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 5f3138b4d79..86914710a37 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 @@ -102,9 +102,19 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if !@limit.nil? && @limit > 1000 true end + # Custom attribute writer method with validation + # @param limit [Object] Object to be assigned + def limit=(limit) + if !@limit.nil? && @limit > 1000 + fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 1000.' + end + @limit = limit + end + # 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 4e9594a38aa..d220c981207 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,11 +121,31 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @email.nil? + return false if @service_account.nil? return false if @email.nil? return false if @service_account.nil? true end + # Custom attribute writer method with validation + # @param email [Object] Object to be assigned + def email=(email) + if @email.nil? + fail ArgumentError, 'invalid value for "email", email cannot be nil.' + end + @email = email + end + + # Custom attribute writer method with validation + # @param service_account [Object] Object to be assigned + def service_account=(service_account) + if @service_account.nil? + fail ArgumentError, 'invalid value for "service_account", service_account cannot be nil.' + end + @service_account = service_account + end + # 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 dc35d32ef2c..1935d14a04e 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 @@ -114,11 +114,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('UsersType', ['users']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 55382a12fab..9a15fbd17b5 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 @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 061e3b73ea9..94ff611a753 100644 --- a/lib/datadog_api_client/v2/models/user.rb +++ b/lib/datadog_api_client/v2/models/user.rb @@ -120,6 +120,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('UsersType', ['users']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 efe352698a6..66a5167190c 100644 --- a/lib/datadog_api_client/v2/models/user_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_create_attributes.rb @@ -109,10 +109,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @email.nil? return false if @email.nil? true end + # Custom attribute writer method with validation + # @param email [Object] Object to be assigned + def email=(email) + if @email.nil? + fail ArgumentError, 'invalid value for "email", email cannot be nil.' + end + @email = email + end + # 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 289cf141593..963ce89b982 100644 --- a/lib/datadog_api_client/v2/models/user_create_data.rb +++ b/lib/datadog_api_client/v2/models/user_create_data.rb @@ -114,11 +114,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('UsersType', ['users']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 11fc740b20d..beacf44e652 100644 --- a/lib/datadog_api_client/v2/models/user_create_request.rb +++ b/lib/datadog_api_client/v2/models/user_create_request.rb @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 718b1e5a811..7b04fac8aa5 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_data.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_data.rb @@ -105,11 +105,35 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @relationships.nil? + return false if @type.nil? return false if @relationships.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param relationships [Object] Object to be assigned + def relationships=(relationships) + if @relationships.nil? + fail ArgumentError, 'invalid value for "relationships", relationships cannot be nil.' + end + @relationships = relationships + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('UserInvitationsType', ['user_invitations']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 584fdb1415f..9ddcd40c145 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_relationships.rb @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @user.nil? return false if @user.nil? true end + # Custom attribute writer method with validation + # @param user [Object] Object to be assigned + def user=(user) + if @user.nil? + fail ArgumentError, 'invalid value for "user", user cannot be nil.' + end + @user = user + end + # 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 98f182d81d1..ee4ee80a320 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 @@ -111,6 +111,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('UserInvitationsType', ['user_invitations']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # 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 fafd7e56f17..f712d3cf0d2 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_request.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_request.rb @@ -93,10 +93,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # 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 c0891f64f6f..3eb9a3bb721 100644 --- a/lib/datadog_api_client/v2/models/user_update_data.rb +++ b/lib/datadog_api_client/v2/models/user_update_data.rb @@ -117,12 +117,46 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @attributes.nil? + return false if @id.nil? + return false if @type.nil? return false if @attributes.nil? return false if @id.nil? return false if @type.nil? true end + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + def attributes=(attributes) + if @attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + def id=(id) + if @id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('UsersType', ['users']) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + if @type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # 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 085c6fef5fd..a90df500874 100644 --- a/lib/datadog_api_client/v2/models/user_update_request.rb +++ b/lib/datadog_api_client/v2/models/user_update_request.rb @@ -91,10 +91,20 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? + return false if @data.nil? return false if @data.nil? true end + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + def data=(data) + if @data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private From 5f22e56d18a6bd839bd7152d01f05684965fdce8 Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Mon, 7 Feb 2022 12:06:57 +0100 Subject: [PATCH 12/23] remove at --- .../src/generator/templates/model_generic.j2 | 14 +++++++------- lib/datadog_api_client/v1/models/api_key.rb | 4 ++-- .../v1/models/application_key.rb | 4 ++-- .../v1/models/change_widget_definition.rb | 4 ++-- .../v1/models/distribution_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/downtime.rb | 6 +++--- lib/datadog_api_client/v1/models/downtime_child.rb | 6 +++--- .../v1/models/downtime_recurrence.rb | 4 ++-- lib/datadog_api_client/v1/models/event.rb | 2 +- .../v1/models/event_create_request.rb | 4 ++-- .../v1/models/event_create_response.rb | 4 ++-- .../v1/models/funnel_widget_definition.rb | 4 ++-- .../v1/models/geomap_widget_definition.rb | 4 ++-- .../v1/models/heat_map_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/http_log_error.rb | 2 +- .../v1/models/list_stream_widget_definition.rb | 4 ++-- .../v1/models/logs_grok_parser.rb | 2 +- .../v1/models/logs_list_request.rb | 2 +- .../v1/models/metrics_query_metadata.rb | 4 ++-- lib/datadog_api_client/v1/models/monitor.rb | 4 ++-- .../v1/models/monitor_options.rb | 4 ++-- .../v1/models/monitor_update_request.rb | 4 ++-- .../v1/models/notebook_create_data_attributes.rb | 4 ++-- .../v1/models/notebook_response_data_attributes.rb | 4 ++-- .../v1/models/notebook_update_data_attributes.rb | 4 ++-- .../models/notebooks_response_data_attributes.rb | 4 ++-- lib/datadog_api_client/v1/models/organization.rb | 2 +- .../v1/models/organization_create_body.rb | 2 +- .../v1/models/process_query_definition.rb | 2 +- .../v1/models/query_value_widget_definition.rb | 4 ++-- .../v1/models/service_map_widget_definition.rb | 2 +- .../v1/models/sunburst_widget_definition.rb | 2 +- .../v1/models/synthetics_test_options.rb | 8 ++++---- .../synthetics_test_options_monitor_options.rb | 4 ++-- .../v1/models/synthetics_test_request.rb | 8 ++++---- .../v1/models/timeseries_widget_definition.rb | 2 +- .../v1/models/toplist_widget_request.rb | 2 +- .../v1/models/tree_map_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/widget_layout.rb | 8 ++++---- .../v2/models/dashboard_list_item.rb | 2 +- .../v2/models/full_api_key_attributes.rb | 4 ++-- .../v2/models/full_application_key_attributes.rb | 4 ++-- .../v2/models/logs_list_request_page.rb | 2 +- .../v2/models/partial_api_key_attributes.rb | 4 ++-- .../models/partial_application_key_attributes.rb | 4 ++-- .../v2/models/process_summaries_meta_page.rb | 4 ++-- .../v2/models/security_filter_attributes.rb | 2 +- .../v2/models/security_filter_update_attributes.rb | 2 +- .../security_monitoring_rule_update_payload.rb | 2 +- ...security_monitoring_signal_list_request_page.rb | 2 +- 50 files changed, 96 insertions(+), 96 deletions(-) diff --git a/.generator/src/generator/templates/model_generic.j2 b/.generator/src/generator/templates/model_generic.j2 index f46eed0d705..c4bdda55e28 100644 --- a/.generator/src/generator/templates/model_generic.j2 +++ b/.generator/src/generator/templates/model_generic.j2 @@ -200,38 +200,38 @@ end {%- endif %} {%- if definition.maxLength is defined %} - if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.to_s.length > {{ definition.maxLength }} + if {% if not required %}!{{ attr|attribute_name }}.nil? && {% endif %}{{ attr|attribute_name }}.to_s.length > {{ definition.maxLength }} fail ArgumentError, 'invalid value for "{{ attr|attribute_name }}", the character length must be smaller than or equal to {{ definition.maxLength }}.' end {%- endif %} {%- if definition.minLength is defined %} - if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.to_s.length < {{ definition.minLength }} + if {% if not required %}!{{ attr|attribute_name }}.nil? && {% endif %}{{ attr|attribute_name }}.to_s.length < {{ definition.minLength }} fail ArgumentError, 'invalid value for "{{ attr|attribute_name }}", the character length must be great than or equal to {{ definition.minLength }}.' end {%- endif %} {%- if definition.maximum is defined %} - if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} >{% if definition.exclusiveMaximum %}={% endif %} {{ definition.maximum }} + if {% if not required %}!{{ attr|attribute_name }}.nil? && {% endif %}{{ attr|attribute_name }} >{% if definition.exclusiveMaximum %}={% endif %} {{ definition.maximum }} fail ArgumentError, 'invalid value for "{{ attr|attribute_name }}", must be smaller than {% if not definition.exclusiveMaximum %}or equal to {% endif %}{{ definition.maximum }}.' end {%- endif %} {%- if definition.minimum is defined %} - if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} <{% if definition.exclusiveMinimum %}={% endif %} {{ definition.minimum }} + if {% if not required %}!{{ attr|attribute_name }}.nil? && {% endif %}{{ attr|attribute_name }} <{% if definition.exclusiveMinimum %}={% endif %} {{ definition.minimum }} fail ArgumentError, 'invalid value for "{{ attr|attribute_name }}", must be greater than {% if not definition.exclusiveMinimum %}or equal to {% endif %}{{ definition.minimum }}.' end {%- endif %} {%- if definition.pattern is defined %} pattern = Regexp.new({{ definition.pattern }}) - if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }} !~ pattern + if {% if not required %}!{{ attr|attribute_name }}.nil? && {% endif %}{{ attr|attribute_name }} !~ pattern fail ArgumentError, "invalid value for \"{{ attr|attribute_name }}\", must conform to the pattern #{pattern}." end {%- endif %} {%- if definition.maxItems is defined %} - if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.length > {{ definition.maxItems }} + if {% if not required %}!{{ attr|attribute_name }}.nil? && {% endif %}{{ attr|attribute_name }}.length > {{ definition.maxItems }} fail ArgumentError, 'invalid value for "{{ attr|attribute_name }}", number of items must be less than or equal to {{ definition.maxItems }}.' end {%- endif %} {%- if definition.minItems is defined %} - if {% if not required %}!@{{ attr|attribute_name }}.nil? && {% endif %}@{{ attr|attribute_name }}.length < {{ definition.minItems }} + if {% if not required %}!{{ attr|attribute_name }}.nil? && {% endif %}{{ attr|attribute_name }}.length < {{ definition.minItems }} fail ArgumentError, 'invalid value for "{{ attr|attribute_name }}", number of items must be greater than or equal to {{ definition.minItems }}.' end {%- endif %} diff --git a/lib/datadog_api_client/v1/models/api_key.rb b/lib/datadog_api_client/v1/models/api_key.rb index c51d8c07cae..9790b6d3947 100644 --- a/lib/datadog_api_client/v1/models/api_key.rb +++ b/lib/datadog_api_client/v1/models/api_key.rb @@ -129,10 +129,10 @@ def valid? # Custom attribute writer method with validation # @param key [Object] Object to be assigned def key=(key) - if !@key.nil? && @key.to_s.length > 32 + if !key.nil? && key.to_s.length > 32 fail ArgumentError, 'invalid value for "key", the character length must be smaller than or equal to 32.' end - if !@key.nil? && @key.to_s.length < 32 + if !key.nil? && key.to_s.length < 32 fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 32.' end @key = key diff --git a/lib/datadog_api_client/v1/models/application_key.rb b/lib/datadog_api_client/v1/models/application_key.rb index 8730c06793e..c8f57996185 100644 --- a/lib/datadog_api_client/v1/models/application_key.rb +++ b/lib/datadog_api_client/v1/models/application_key.rb @@ -120,10 +120,10 @@ def valid? # Custom attribute writer method with validation # @param hash [Object] Object to be assigned def hash=(hash) - if !@hash.nil? && @hash.to_s.length > 40 + if !hash.nil? && hash.to_s.length > 40 fail ArgumentError, 'invalid value for "hash", the character length must be smaller than or equal to 40.' end - if !@hash.nil? && @hash.to_s.length < 40 + if !hash.nil? && hash.to_s.length < 40 fail ArgumentError, 'invalid value for "hash", the character length must be great than or equal to 40.' end @hash = hash 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 5ddda553b6a..908881b1eaf 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition.rb @@ -178,10 +178,10 @@ def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end - if @requests.length > 1 + if requests.length > 1 fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' end - if @requests.length < 1 + if requests.length < 1 fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' end @requests = requests 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 f1a0260c1ca..83bf696deba 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb @@ -216,10 +216,10 @@ def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end - if @requests.length > 1 + if requests.length > 1 fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' end - if @requests.length < 1 + if requests.length < 1 fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' end @requests = requests diff --git a/lib/datadog_api_client/v1/models/downtime.rb b/lib/datadog_api_client/v1/models/downtime.rb index cae06e6a064..e218d363c6c 100644 --- a/lib/datadog_api_client/v1/models/downtime.rb +++ b/lib/datadog_api_client/v1/models/downtime.rb @@ -276,7 +276,7 @@ def valid? # Custom attribute writer method with validation # @param creator_id [Object] Object to be assigned def creator_id=(creator_id) - if !@creator_id.nil? && @creator_id > 2147483647 + if !creator_id.nil? && creator_id > 2147483647 fail ArgumentError, 'invalid value for "creator_id", must be smaller than or equal to 2147483647.' end @creator_id = creator_id @@ -285,7 +285,7 @@ def creator_id=(creator_id) # Custom attribute writer method with validation # @param downtime_type [Object] Object to be assigned def downtime_type=(downtime_type) - if !@downtime_type.nil? && @downtime_type > 2147483647 + if !downtime_type.nil? && downtime_type > 2147483647 fail ArgumentError, 'invalid value for "downtime_type", must be smaller than or equal to 2147483647.' end @downtime_type = downtime_type @@ -294,7 +294,7 @@ def downtime_type=(downtime_type) # Custom attribute writer method with validation # @param updater_id [Object] Object to be assigned def updater_id=(updater_id) - if !@updater_id.nil? && @updater_id > 2147483647 + if !updater_id.nil? && updater_id > 2147483647 fail ArgumentError, 'invalid value for "updater_id", must be smaller than or equal to 2147483647.' end @updater_id = updater_id diff --git a/lib/datadog_api_client/v1/models/downtime_child.rb b/lib/datadog_api_client/v1/models/downtime_child.rb index f42fb60ce1b..68f76855d20 100644 --- a/lib/datadog_api_client/v1/models/downtime_child.rb +++ b/lib/datadog_api_client/v1/models/downtime_child.rb @@ -263,7 +263,7 @@ def valid? # Custom attribute writer method with validation # @param creator_id [Object] Object to be assigned def creator_id=(creator_id) - if !@creator_id.nil? && @creator_id > 2147483647 + if !creator_id.nil? && creator_id > 2147483647 fail ArgumentError, 'invalid value for "creator_id", must be smaller than or equal to 2147483647.' end @creator_id = creator_id @@ -272,7 +272,7 @@ def creator_id=(creator_id) # Custom attribute writer method with validation # @param downtime_type [Object] Object to be assigned def downtime_type=(downtime_type) - if !@downtime_type.nil? && @downtime_type > 2147483647 + if !downtime_type.nil? && downtime_type > 2147483647 fail ArgumentError, 'invalid value for "downtime_type", must be smaller than or equal to 2147483647.' end @downtime_type = downtime_type @@ -281,7 +281,7 @@ def downtime_type=(downtime_type) # Custom attribute writer method with validation # @param updater_id [Object] Object to be assigned def updater_id=(updater_id) - if !@updater_id.nil? && @updater_id > 2147483647 + if !updater_id.nil? && updater_id > 2147483647 fail ArgumentError, 'invalid value for "updater_id", must be smaller than or equal to 2147483647.' end @updater_id = updater_id diff --git a/lib/datadog_api_client/v1/models/downtime_recurrence.rb b/lib/datadog_api_client/v1/models/downtime_recurrence.rb index f6f5c8b46b0..c664a738bf8 100644 --- a/lib/datadog_api_client/v1/models/downtime_recurrence.rb +++ b/lib/datadog_api_client/v1/models/downtime_recurrence.rb @@ -161,7 +161,7 @@ def valid? # Custom attribute writer method with validation # @param period [Object] Object to be assigned def period=(period) - if !@period.nil? && @period > 2147483647 + if !period.nil? && period > 2147483647 fail ArgumentError, 'invalid value for "period", must be smaller than or equal to 2147483647.' end @period = period @@ -170,7 +170,7 @@ def period=(period) # Custom attribute writer method with validation # @param until_occurrences [Object] Object to be assigned def until_occurrences=(until_occurrences) - if !@until_occurrences.nil? && @until_occurrences > 2147483647 + if !until_occurrences.nil? && until_occurrences > 2147483647 fail ArgumentError, 'invalid value for "until_occurrences", must be smaller than or equal to 2147483647.' end @until_occurrences = until_occurrences diff --git a/lib/datadog_api_client/v1/models/event.rb b/lib/datadog_api_client/v1/models/event.rb index 46f635ebf43..818611fa5d2 100644 --- a/lib/datadog_api_client/v1/models/event.rb +++ b/lib/datadog_api_client/v1/models/event.rb @@ -236,7 +236,7 @@ def priority=(priority) # Custom attribute writer method with validation # @param text [Object] Object to be assigned def text=(text) - if !@text.nil? && @text.to_s.length > 4000 + if !text.nil? && text.to_s.length > 4000 fail ArgumentError, 'invalid value for "text", the character length must be smaller than or equal to 4000.' end @text = text 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 9d63c49e248..2eaf8afbec4 100644 --- a/lib/datadog_api_client/v1/models/event_create_request.rb +++ b/lib/datadog_api_client/v1/models/event_create_request.rb @@ -212,7 +212,7 @@ def valid? # Custom attribute writer method with validation # @param aggregation_key [Object] Object to be assigned def aggregation_key=(aggregation_key) - if !@aggregation_key.nil? && @aggregation_key.to_s.length > 100 + if !aggregation_key.nil? && aggregation_key.to_s.length > 100 fail ArgumentError, 'invalid value for "aggregation_key", the character length must be smaller than or equal to 100.' end @aggregation_key = aggregation_key @@ -244,7 +244,7 @@ def text=(text) if @text.nil? fail ArgumentError, 'invalid value for "text", text cannot be nil.' end - if @text.to_s.length > 4000 + if text.to_s.length > 4000 fail ArgumentError, 'invalid value for "text", the character length must be smaller than or equal to 4000.' end @text = text 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 627572e9eef..8628f3708ae 100644 --- a/lib/datadog_api_client/v1/models/event_create_response.rb +++ b/lib/datadog_api_client/v1/models/event_create_response.rb @@ -247,7 +247,7 @@ def priority=(priority) # Custom attribute writer method with validation # @param text [Object] Object to be assigned def text=(text) - if !@text.nil? && @text.to_s.length > 4000 + if !text.nil? && text.to_s.length > 4000 fail ArgumentError, 'invalid value for "text", the character length must be smaller than or equal to 4000.' end @text = text @@ -256,7 +256,7 @@ def text=(text) # Custom attribute writer method with validation # @param title [Object] Object to be assigned def title=(title) - if !@title.nil? && @title.to_s.length > 100 + if !title.nil? && title.to_s.length > 100 fail ArgumentError, 'invalid value for "title", the character length must be smaller than or equal to 100.' end @title = title 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 2e68291642a..d3469c87ed8 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb @@ -164,10 +164,10 @@ def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end - if @requests.length > 1 + if requests.length > 1 fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' end - if @requests.length < 1 + if requests.length < 1 fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' end @requests = requests 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 39e6e186f43..9ef6063e1bd 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb @@ -206,10 +206,10 @@ def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end - if @requests.length > 1 + if requests.length > 1 fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' end - if @requests.length < 1 + if requests.length < 1 fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' end @requests = requests 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 b249e0f0155..f0d085a91c9 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 @@ -213,10 +213,10 @@ def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end - if @requests.length > 1 + if requests.length > 1 fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' end - if @requests.length < 1 + if requests.length < 1 fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' end @requests = requests 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 00e1111dafd..1e61f9f252e 100644 --- a/lib/datadog_api_client/v1/models/http_log_error.rb +++ b/lib/datadog_api_client/v1/models/http_log_error.rb @@ -120,7 +120,7 @@ def code=(code) if @code.nil? fail ArgumentError, 'invalid value for "code", code cannot be nil.' end - if @code > 2147483647 + if code > 2147483647 fail ArgumentError, 'invalid value for "code", must be smaller than or equal to 2147483647.' end @code = code 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 e445e5f2d4b..444fee2b103 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 @@ -183,10 +183,10 @@ def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end - if @requests.length > 1 + if requests.length > 1 fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' end - if @requests.length < 1 + if requests.length < 1 fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' end @requests = requests 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 d20290f2c54..7206016dfea 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser.rb @@ -176,7 +176,7 @@ def grok=(grok) # Custom attribute writer method with validation # @param samples [Object] Object to be assigned def samples=(samples) - if !@samples.nil? && @samples.length > 5 + if !samples.nil? && samples.length > 5 fail ArgumentError, 'invalid value for "samples", number of items must be less than or equal to 5.' end @samples = samples 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 8d25d87c4f5..0f9aa4df648 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request.rb @@ -153,7 +153,7 @@ def valid? # Custom attribute writer method with validation # @param limit [Object] Object to be assigned def limit=(limit) - if !@limit.nil? && @limit > 1000 + if !limit.nil? && limit > 1000 fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 1000.' end @limit = limit 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 b85de230832..519efd37d10 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_metadata.rb @@ -219,10 +219,10 @@ def valid? # Custom attribute writer method with validation # @param unit [Object] Object to be assigned def unit=(unit) - if !@unit.nil? && @unit.length > 2 + if !unit.nil? && unit.length > 2 fail ArgumentError, 'invalid value for "unit", number of items must be less than or equal to 2.' end - if !@unit.nil? && @unit.length < 2 + if !unit.nil? && unit.length < 2 fail ArgumentError, 'invalid value for "unit", number of items must be greater than or equal to 2.' end @unit = unit diff --git a/lib/datadog_api_client/v1/models/monitor.rb b/lib/datadog_api_client/v1/models/monitor.rb index 0062fc8f4dc..a3a8534ba5b 100644 --- a/lib/datadog_api_client/v1/models/monitor.rb +++ b/lib/datadog_api_client/v1/models/monitor.rb @@ -264,10 +264,10 @@ def overall_state=(overall_state) # Custom attribute writer method with validation # @param priority [Object] Object to be assigned def priority=(priority) - if !@priority.nil? && @priority > 5 + if !priority.nil? && priority > 5 fail ArgumentError, 'invalid value for "priority", must be smaller than or equal to 5.' end - if !@priority.nil? && @priority < 1 + if !priority.nil? && priority < 1 fail ArgumentError, 'invalid value for "priority", must be greater than or equal to 1.' end @priority = priority diff --git a/lib/datadog_api_client/v1/models/monitor_options.rb b/lib/datadog_api_client/v1/models/monitor_options.rb index a727208e2f5..53840c2d01d 100644 --- a/lib/datadog_api_client/v1/models/monitor_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_options.rb @@ -377,10 +377,10 @@ def valid? # Custom attribute writer method with validation # @param min_failure_duration [Object] Object to be assigned def min_failure_duration=(min_failure_duration) - if !@min_failure_duration.nil? && @min_failure_duration > 7200 + if !min_failure_duration.nil? && min_failure_duration > 7200 fail ArgumentError, 'invalid value for "min_failure_duration", must be smaller than or equal to 7200.' end - if !@min_failure_duration.nil? && @min_failure_duration < 0 + if !min_failure_duration.nil? && min_failure_duration < 0 fail ArgumentError, 'invalid value for "min_failure_duration", must be greater than or equal to 0.' end @min_failure_duration = min_failure_duration 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 1feb4c8dd32..0f503c164e8 100644 --- a/lib/datadog_api_client/v1/models/monitor_update_request.rb +++ b/lib/datadog_api_client/v1/models/monitor_update_request.rb @@ -252,10 +252,10 @@ def overall_state=(overall_state) # Custom attribute writer method with validation # @param priority [Object] Object to be assigned def priority=(priority) - if !@priority.nil? && @priority > 5 + if !priority.nil? && priority > 5 fail ArgumentError, 'invalid value for "priority", must be smaller than or equal to 5.' end - if !@priority.nil? && @priority < 1 + if !priority.nil? && priority < 1 fail ArgumentError, 'invalid value for "priority", must be greater than or equal to 1.' end @priority = priority 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 0d270a60895..b184d5d3504 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 @@ -169,10 +169,10 @@ def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end - if @name.to_s.length > 80 + if name.to_s.length > 80 fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 80.' end - if @name.to_s.length < 0 + if name.to_s.length < 0 fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 0.' end @name = name 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 d00dc76a403..1d1873568d0 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 @@ -196,10 +196,10 @@ def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end - if @name.to_s.length > 80 + if name.to_s.length > 80 fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 80.' end - if @name.to_s.length < 0 + if name.to_s.length < 0 fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 0.' end @name = name 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 96beb3ec1a5..d53902d6b5a 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 @@ -169,10 +169,10 @@ def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end - if @name.to_s.length > 80 + if name.to_s.length > 80 fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 80.' end - if @name.to_s.length < 0 + if name.to_s.length < 0 fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 0.' end @name = name 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 a415433dc66..5d4b815c4fd 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 @@ -177,10 +177,10 @@ def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end - if @name.to_s.length > 80 + if name.to_s.length > 80 fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 80.' end - if @name.to_s.length < 0 + if name.to_s.length < 0 fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 0.' end @name = name diff --git a/lib/datadog_api_client/v1/models/organization.rb b/lib/datadog_api_client/v1/models/organization.rb index ccc48f9ff12..41b42bb69a4 100644 --- a/lib/datadog_api_client/v1/models/organization.rb +++ b/lib/datadog_api_client/v1/models/organization.rb @@ -152,7 +152,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned def name=(name) - if !@name.nil? && @name > 32 + if !name.nil? && name > 32 fail ArgumentError, 'invalid value for "name", must be smaller than or equal to 32.' end @name = name 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 6ab741ff91e..a863ea41e14 100644 --- a/lib/datadog_api_client/v1/models/organization_create_body.rb +++ b/lib/datadog_api_client/v1/models/organization_create_body.rb @@ -124,7 +124,7 @@ def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end - if @name > 32 + if name > 32 fail ArgumentError, 'invalid value for "name", must be smaller than or equal to 32.' end @name = name 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 74fb937e26b..b6419d76901 100644 --- a/lib/datadog_api_client/v1/models/process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/process_query_definition.rb @@ -132,7 +132,7 @@ def valid? # Custom attribute writer method with validation # @param limit [Object] Object to be assigned def limit=(limit) - if !@limit.nil? && @limit < 0 + if !limit.nil? && limit < 0 fail ArgumentError, 'invalid value for "limit", must be greater than or equal to 0.' end @limit = limit 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 5df43fae8a8..666bf840873 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 @@ -211,10 +211,10 @@ def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end - if @requests.length > 1 + if requests.length > 1 fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' end - if @requests.length < 1 + if requests.length < 1 fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' end @requests = requests 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 ceba8c32285..506f8897b7a 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 @@ -176,7 +176,7 @@ def filters=(filters) if @filters.nil? fail ArgumentError, 'invalid value for "filters", filters cannot be nil.' end - if @filters.length < 1 + if filters.length < 1 fail ArgumentError, 'invalid value for "filters", number of items must be greater than or equal to 1.' end @filters = filters 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 0b519deb47c..470e4d79655 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb @@ -189,7 +189,7 @@ def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end - if @requests.length < 1 + if requests.length < 1 fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' end @requests = requests 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 674152cb395..88bd9fb2f31 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options.rb @@ -223,10 +223,10 @@ def valid? # Custom attribute writer method with validation # @param monitor_priority [Object] Object to be assigned def monitor_priority=(monitor_priority) - if !@monitor_priority.nil? && @monitor_priority > 5 + if !monitor_priority.nil? && monitor_priority > 5 fail ArgumentError, 'invalid value for "monitor_priority", must be smaller than or equal to 5.' end - if !@monitor_priority.nil? && @monitor_priority < 1 + if !monitor_priority.nil? && monitor_priority < 1 fail ArgumentError, 'invalid value for "monitor_priority", must be greater than or equal to 1.' end @monitor_priority = monitor_priority @@ -235,10 +235,10 @@ def monitor_priority=(monitor_priority) # Custom attribute writer method with validation # @param tick_every [Object] Object to be assigned def tick_every=(tick_every) - if !@tick_every.nil? && @tick_every > 604800 + if !tick_every.nil? && tick_every > 604800 fail ArgumentError, 'invalid value for "tick_every", must be smaller than or equal to 604800.' end - if !@tick_every.nil? && @tick_every < 30 + if !tick_every.nil? && tick_every < 30 fail ArgumentError, 'invalid value for "tick_every", must be greater than or equal to 30.' end @tick_every = tick_every 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 16d34d9a6a7..0d4e2c7aa70 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 @@ -104,10 +104,10 @@ def valid? # Custom attribute writer method with validation # @param renotify_interval [Object] Object to be assigned def renotify_interval=(renotify_interval) - if !@renotify_interval.nil? && @renotify_interval > 1440 + if !renotify_interval.nil? && renotify_interval > 1440 fail ArgumentError, 'invalid value for "renotify_interval", must be smaller than or equal to 1440.' end - if !@renotify_interval.nil? && @renotify_interval < 0 + if !renotify_interval.nil? && renotify_interval < 0 fail ArgumentError, 'invalid value for "renotify_interval", must be greater than or equal to 0.' end @renotify_interval = renotify_interval 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 b11dd1f5430..b385c57c08b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request.rb @@ -283,10 +283,10 @@ def valid? # Custom attribute writer method with validation # @param dns_server_port [Object] Object to be assigned def dns_server_port=(dns_server_port) - if !@dns_server_port.nil? && @dns_server_port > 65535 + if !dns_server_port.nil? && dns_server_port > 65535 fail ArgumentError, 'invalid value for "dns_server_port", must be smaller than or equal to 65535.' end - if !@dns_server_port.nil? && @dns_server_port < 1 + if !dns_server_port.nil? && dns_server_port < 1 fail ArgumentError, 'invalid value for "dns_server_port", must be greater than or equal to 1.' end @dns_server_port = dns_server_port @@ -305,10 +305,10 @@ def method=(method) # Custom attribute writer method with validation # @param number_of_packets [Object] Object to be assigned def number_of_packets=(number_of_packets) - if !@number_of_packets.nil? && @number_of_packets > 10 + if !number_of_packets.nil? && number_of_packets > 10 fail ArgumentError, 'invalid value for "number_of_packets", must be smaller than or equal to 10.' end - if !@number_of_packets.nil? && @number_of_packets < 0 + if !number_of_packets.nil? && number_of_packets < 0 fail ArgumentError, 'invalid value for "number_of_packets", must be greater than or equal to 0.' end @number_of_packets = number_of_packets 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 e7960cccbea..c024001c59b 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb @@ -259,7 +259,7 @@ def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end - if @requests.length < 1 + if requests.length < 1 fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' end @requests = requests 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 71187eee03b..3a6c2d4cb5d 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_request.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_request.rb @@ -230,7 +230,7 @@ def valid? # Custom attribute writer method with validation # @param conditional_formats [Object] Object to be assigned def conditional_formats=(conditional_formats) - if !@conditional_formats.nil? && @conditional_formats.length < 1 + if !conditional_formats.nil? && conditional_formats.length < 1 fail ArgumentError, 'invalid value for "conditional_formats", number of items must be greater than or equal to 1.' end @conditional_formats = conditional_formats 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 769ca8f7abe..9a483e815b9 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 @@ -186,10 +186,10 @@ def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end - if @requests.length > 1 + if requests.length > 1 fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 1.' end - if @requests.length < 1 + if requests.length < 1 fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.' end @requests = requests diff --git a/lib/datadog_api_client/v1/models/widget_layout.rb b/lib/datadog_api_client/v1/models/widget_layout.rb index 2d0ad661399..531322cb2ef 100644 --- a/lib/datadog_api_client/v1/models/widget_layout.rb +++ b/lib/datadog_api_client/v1/models/widget_layout.rb @@ -170,7 +170,7 @@ def height=(height) if @height.nil? fail ArgumentError, 'invalid value for "height", height cannot be nil.' end - if @height < 0 + if height < 0 fail ArgumentError, 'invalid value for "height", must be greater than or equal to 0.' end @height = height @@ -182,7 +182,7 @@ def width=(width) if @width.nil? fail ArgumentError, 'invalid value for "width", width cannot be nil.' end - if @width < 0 + if width < 0 fail ArgumentError, 'invalid value for "width", must be greater than or equal to 0.' end @width = width @@ -194,7 +194,7 @@ def x=(x) if @x.nil? fail ArgumentError, 'invalid value for "x", x cannot be nil.' end - if @x < 0 + if x < 0 fail ArgumentError, 'invalid value for "x", must be greater than or equal to 0.' end @x = x @@ -206,7 +206,7 @@ def y=(y) if @y.nil? fail ArgumentError, 'invalid value for "y", y cannot be nil.' end - if @y < 0 + if y < 0 fail ArgumentError, 'invalid value for "y", must be greater than or equal to 0.' end @y = y 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 1f8ace74728..95495f17167 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item.rb @@ -216,7 +216,7 @@ def id=(id) # Custom attribute writer method with validation # @param popularity [Object] Object to be assigned def popularity=(popularity) - if !@popularity.nil? && @popularity > 5 + if !popularity.nil? && popularity > 5 fail ArgumentError, 'invalid value for "popularity", must be smaller than or equal to 5.' end @popularity = popularity 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 a0f09a9999e..bffac009a4e 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 @@ -138,10 +138,10 @@ def valid? # Custom attribute writer method with validation # @param last4 [Object] Object to be assigned def last4=(last4) - if !@last4.nil? && @last4.to_s.length > 4 + if !last4.nil? && last4.to_s.length > 4 fail ArgumentError, 'invalid value for "last4", the character length must be smaller than or equal to 4.' end - if !@last4.nil? && @last4.to_s.length < 4 + if !last4.nil? && last4.to_s.length < 4 fail ArgumentError, 'invalid value for "last4", the character length must be great than or equal to 4.' end @last4 = last4 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 2dbdcc2f2d9..b1aab798565 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 @@ -141,10 +141,10 @@ def valid? # Custom attribute writer method with validation # @param last4 [Object] Object to be assigned def last4=(last4) - if !@last4.nil? && @last4.to_s.length > 4 + if !last4.nil? && last4.to_s.length > 4 fail ArgumentError, 'invalid value for "last4", the character length must be smaller than or equal to 4.' end - if !@last4.nil? && @last4.to_s.length < 4 + if !last4.nil? && last4.to_s.length < 4 fail ArgumentError, 'invalid value for "last4", the character length must be great than or equal to 4.' end @last4 = last4 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 4a467d94bca..4c945e91f29 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 @@ -109,7 +109,7 @@ def valid? # Custom attribute writer method with validation # @param limit [Object] Object to be assigned def limit=(limit) - if !@limit.nil? && @limit > 1000 + if !limit.nil? && limit > 1000 fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 1000.' end @limit = limit 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 94873679057..7d04031dd02 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 @@ -129,10 +129,10 @@ def valid? # Custom attribute writer method with validation # @param last4 [Object] Object to be assigned def last4=(last4) - if !@last4.nil? && @last4.to_s.length > 4 + if !last4.nil? && last4.to_s.length > 4 fail ArgumentError, 'invalid value for "last4", the character length must be smaller than or equal to 4.' end - if !@last4.nil? && @last4.to_s.length < 4 + if !last4.nil? && last4.to_s.length < 4 fail ArgumentError, 'invalid value for "last4", the character length must be great than or equal to 4.' end @last4 = last4 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 032c285fa3a..3fdd96d6a39 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 @@ -132,10 +132,10 @@ def valid? # Custom attribute writer method with validation # @param last4 [Object] Object to be assigned def last4=(last4) - if !@last4.nil? && @last4.to_s.length > 4 + if !last4.nil? && last4.to_s.length > 4 fail ArgumentError, 'invalid value for "last4", the character length must be smaller than or equal to 4.' end - if !@last4.nil? && @last4.to_s.length < 4 + if !last4.nil? && last4.to_s.length < 4 fail ArgumentError, 'invalid value for "last4", the character length must be great than or equal to 4.' end @last4 = last4 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 9e2b9a5c561..e34fd87d255 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 @@ -112,10 +112,10 @@ def valid? # Custom attribute writer method with validation # @param size [Object] Object to be assigned def size=(size) - if !@size.nil? && @size > 10000 + if !size.nil? && size > 10000 fail ArgumentError, 'invalid value for "size", must be smaller than or equal to 10000.' end - if !@size.nil? && @size < 0 + if !size.nil? && size < 0 fail ArgumentError, 'invalid value for "size", must be greater than or equal to 0.' end @size = size 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 a3e6277ea88..3a43d9c378f 100644 --- a/lib/datadog_api_client/v2/models/security_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_attributes.rb @@ -164,7 +164,7 @@ def filtered_data_type=(filtered_data_type) # Custom attribute writer method with validation # @param version [Object] Object to be assigned def version=(version) - if !@version.nil? && @version > 2147483647 + if !version.nil? && version > 2147483647 fail ArgumentError, 'invalid value for "version", must be smaller than or equal to 2147483647.' end @version = version 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 ecd3612df60..a4412dcf438 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 @@ -155,7 +155,7 @@ def filtered_data_type=(filtered_data_type) # Custom attribute writer method with validation # @param version [Object] Object to be assigned def version=(version) - if !@version.nil? && @version > 2147483647 + if !version.nil? && version > 2147483647 fail ArgumentError, 'invalid value for "version", must be smaller than or equal to 2147483647.' end @version = version 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 257a1c49b1f..7ab9cd59aeb 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 @@ -187,7 +187,7 @@ def valid? # Custom attribute writer method with validation # @param version [Object] Object to be assigned def version=(version) - if !@version.nil? && @version > 2147483647 + if !version.nil? && version > 2147483647 fail ArgumentError, 'invalid value for "version", must be smaller than or equal to 2147483647.' end @version = version 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 86914710a37..bfeb14e182b 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 @@ -109,7 +109,7 @@ def valid? # Custom attribute writer method with validation # @param limit [Object] Object to be assigned def limit=(limit) - if !@limit.nil? && @limit > 1000 + if !limit.nil? && limit > 1000 fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 1000.' end @limit = limit From 9d06e04603ee70c5cb1462c19a0801bec0c73cae Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Mon, 7 Feb 2022 12:11:56 +0100 Subject: [PATCH 13/23] remove duplicate --- .generator/src/generator/templates/model_generic.j2 | 5 ----- .../v1/models/alert_graph_widget_definition.rb | 3 --- .../v1/models/alert_value_widget_definition.rb | 2 -- lib/datadog_api_client/v1/models/api_error_response.rb | 1 - .../v1/models/apm_stats_query_column_type.rb | 1 - .../v1/models/apm_stats_query_definition.rb | 5 ----- .../v1/models/aws_account_and_lambda_request.rb | 2 -- .../v1/models/aws_logs_services_request.rb | 2 -- .../v1/models/cancel_downtimes_by_scope_request.rb | 1 - .../v1/models/change_widget_definition.rb | 2 -- .../v1/models/check_can_delete_monitor_response.rb | 1 - .../v1/models/check_status_widget_definition.rb | 3 --- lib/datadog_api_client/v1/models/dashboard.rb | 3 --- .../v1/models/dashboard_bulk_action_data.rb | 2 -- .../v1/models/dashboard_bulk_delete_request.rb | 1 - lib/datadog_api_client/v1/models/dashboard_list.rb | 1 - .../v1/models/dashboard_restore_request.rb | 1 - .../v1/models/dashboard_template_variable.rb | 1 - .../v1/models/distribution_widget_definition.rb | 2 -- lib/datadog_api_client/v1/models/event_create_request.rb | 2 -- lib/datadog_api_client/v1/models/event_query_definition.rb | 2 -- .../v1/models/event_stream_widget_definition.rb | 2 -- .../v1/models/event_timeline_widget_definition.rb | 2 -- ...a_and_function_apm_dependency_stats_query_definition.rb | 7 ------- ...ula_and_function_apm_resource_stats_query_definition.rb | 5 ----- .../models/formula_and_function_event_query_definition.rb | 3 --- .../formula_and_function_event_query_definition_compute.rb | 1 - .../formula_and_function_event_query_definition_search.rb | 1 - .../v1/models/formula_and_function_event_query_group_by.rb | 1 - .../formula_and_function_event_query_group_by_sort.rb | 1 - .../models/formula_and_function_metric_query_definition.rb | 3 --- .../formula_and_function_process_query_definition.rb | 3 --- .../v1/models/free_text_widget_definition.rb | 2 -- lib/datadog_api_client/v1/models/funnel_query.rb | 3 --- .../v1/models/funnel_query_steps_item.rb | 2 -- .../v1/models/funnel_widget_definition.rb | 2 -- lib/datadog_api_client/v1/models/funnel_widget_request.rb | 2 -- .../v1/models/geomap_widget_definition.rb | 4 ---- .../v1/models/geomap_widget_definition_style.rb | 2 -- .../v1/models/geomap_widget_definition_view.rb | 1 - .../v1/models/group_widget_definition.rb | 3 --- .../v1/models/heat_map_widget_definition.rb | 2 -- .../v1/models/host_map_widget_definition.rb | 2 -- lib/datadog_api_client/v1/models/http_log_error.rb | 2 -- .../v1/models/i_frame_widget_definition.rb | 2 -- lib/datadog_api_client/v1/models/idp_form_data.rb | 1 - lib/datadog_api_client/v1/models/idp_response.rb | 1 - .../v1/models/image_widget_definition.rb | 2 -- lib/datadog_api_client/v1/models/list_stream_column.rb | 2 -- lib/datadog_api_client/v1/models/list_stream_query.rb | 2 -- .../v1/models/list_stream_widget_definition.rb | 2 -- .../v1/models/list_stream_widget_request.rb | 3 --- .../v1/models/log_query_definition_group_by.rb | 1 - .../v1/models/log_query_definition_group_by_sort.rb | 2 -- .../v1/models/log_query_definition_search.rb | 1 - .../v1/models/log_stream_widget_definition.rb | 1 - .../v1/models/logs_arithmetic_processor.rb | 3 --- .../v1/models/logs_attribute_remapper.rb | 3 --- .../v1/models/logs_category_processor.rb | 3 --- lib/datadog_api_client/v1/models/logs_date_remapper.rb | 2 -- lib/datadog_api_client/v1/models/logs_exclusion.rb | 1 - lib/datadog_api_client/v1/models/logs_exclusion_filter.rb | 1 - lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb | 3 --- lib/datadog_api_client/v1/models/logs_grok_parser.rb | 3 --- lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb | 1 - lib/datadog_api_client/v1/models/logs_index.rb | 2 -- .../v1/models/logs_index_update_request.rb | 1 - lib/datadog_api_client/v1/models/logs_indexes_order.rb | 1 - lib/datadog_api_client/v1/models/logs_list_request.rb | 1 - lib/datadog_api_client/v1/models/logs_list_request_time.rb | 2 -- lib/datadog_api_client/v1/models/logs_lookup_processor.rb | 4 ---- lib/datadog_api_client/v1/models/logs_message_remapper.rb | 2 -- lib/datadog_api_client/v1/models/logs_pipeline.rb | 1 - .../v1/models/logs_pipeline_processor.rb | 1 - lib/datadog_api_client/v1/models/logs_pipelines_order.rb | 1 - lib/datadog_api_client/v1/models/logs_query_compute.rb | 1 - lib/datadog_api_client/v1/models/logs_service_remapper.rb | 2 -- lib/datadog_api_client/v1/models/logs_status_remapper.rb | 2 -- .../v1/models/logs_string_builder_processor.rb | 3 --- lib/datadog_api_client/v1/models/logs_trace_remapper.rb | 1 - lib/datadog_api_client/v1/models/logs_url_parser.rb | 3 --- lib/datadog_api_client/v1/models/logs_user_agent_parser.rb | 3 --- lib/datadog_api_client/v1/models/metrics_payload.rb | 1 - lib/datadog_api_client/v1/models/monitor.rb | 2 -- .../monitor_formula_and_function_event_query_definition.rb | 3 --- ..._formula_and_function_event_query_definition_compute.rb | 1 - ...r_formula_and_function_event_query_definition_search.rb | 1 - .../monitor_formula_and_function_event_query_group_by.rb | 1 - ...nitor_formula_and_function_event_query_group_by_sort.rb | 1 - .../v1/models/monitor_summary_widget_definition.rb | 2 -- lib/datadog_api_client/v1/models/note_widget_definition.rb | 2 -- lib/datadog_api_client/v1/models/notebook_absolute_time.rb | 2 -- .../v1/models/notebook_cell_create_request.rb | 2 -- lib/datadog_api_client/v1/models/notebook_cell_response.rb | 3 --- .../v1/models/notebook_cell_update_request.rb | 3 --- lib/datadog_api_client/v1/models/notebook_create_data.rb | 2 -- .../v1/models/notebook_create_data_attributes.rb | 3 --- .../v1/models/notebook_create_request.rb | 1 - .../v1/models/notebook_distribution_cell_attributes.rb | 1 - .../v1/models/notebook_heat_map_cell_attributes.rb | 1 - .../v1/models/notebook_log_stream_cell_attributes.rb | 1 - .../v1/models/notebook_markdown_cell_attributes.rb | 1 - .../v1/models/notebook_markdown_cell_definition.rb | 2 -- lib/datadog_api_client/v1/models/notebook_relative_time.rb | 1 - lib/datadog_api_client/v1/models/notebook_response_data.rb | 3 --- .../v1/models/notebook_response_data_attributes.rb | 3 --- lib/datadog_api_client/v1/models/notebook_split_by.rb | 2 -- .../v1/models/notebook_timeseries_cell_attributes.rb | 1 - .../v1/models/notebook_toplist_cell_attributes.rb | 1 - lib/datadog_api_client/v1/models/notebook_update_data.rb | 2 -- .../v1/models/notebook_update_data_attributes.rb | 3 --- .../v1/models/notebook_update_request.rb | 1 - .../v1/models/notebooks_response_data.rb | 3 --- .../v1/models/notebooks_response_data_attributes.rb | 1 - .../v1/models/organization_create_body.rb | 1 - lib/datadog_api_client/v1/models/pager_duty_service.rb | 2 -- lib/datadog_api_client/v1/models/pager_duty_service_key.rb | 1 - .../v1/models/pager_duty_service_name.rb | 1 - .../v1/models/process_query_definition.rb | 1 - .../v1/models/query_value_widget_definition.rb | 2 -- .../v1/models/scatter_plot_widget_definition.rb | 2 -- .../v1/models/scatterplot_widget_formula.rb | 2 -- lib/datadog_api_client/v1/models/series.rb | 2 -- lib/datadog_api_client/v1/models/service_check.rb | 4 ---- .../v1/models/service_level_objective.rb | 3 --- .../v1/models/service_level_objective_query.rb | 2 -- .../v1/models/service_level_objective_request.rb | 3 --- .../v1/models/service_map_widget_definition.rb | 3 --- .../v1/models/service_summary_widget_definition.rb | 4 ---- lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb | 3 --- .../v1/models/slo_correction_create_data.rb | 1 - .../v1/models/slo_correction_create_request_attributes.rb | 3 --- lib/datadog_api_client/v1/models/slo_history_metrics.rb | 7 ------- .../v1/models/slo_history_metrics_series.rb | 3 --- .../v1/models/slo_history_response_error_with_type.rb | 2 -- lib/datadog_api_client/v1/models/slo_threshold.rb | 2 -- lib/datadog_api_client/v1/models/slo_widget_definition.rb | 2 -- .../v1/models/sunburst_widget_definition.rb | 2 -- .../v1/models/sunburst_widget_legend_inline_automatic.rb | 1 - .../v1/models/sunburst_widget_legend_table.rb | 1 - lib/datadog_api_client/v1/models/synthetics_api_step.rb | 4 ---- lib/datadog_api_client/v1/models/synthetics_api_test.rb | 5 ----- .../v1/models/synthetics_api_test_result_full_check.rb | 1 - .../v1/models/synthetics_assertion_json_path_target.rb | 2 -- .../v1/models/synthetics_assertion_target.rb | 3 --- .../v1/models/synthetics_basic_auth_ntlm.rb | 1 - .../v1/models/synthetics_basic_auth_sigv4.rb | 3 --- .../v1/models/synthetics_basic_auth_web.rb | 3 --- .../v1/models/synthetics_browser_error.rb | 3 --- .../v1/models/synthetics_browser_test.rb | 5 ----- .../v1/models/synthetics_browser_test_config.rb | 2 -- .../v1/models/synthetics_browser_test_result_full_check.rb | 1 - .../v1/models/synthetics_browser_variable.rb | 2 -- lib/datadog_api_client/v1/models/synthetics_ci_test.rb | 1 - .../v1/models/synthetics_config_variable.rb | 2 -- lib/datadog_api_client/v1/models/synthetics_device.rb | 4 ---- .../v1/models/synthetics_global_variable.rb | 4 ---- .../synthetics_global_variable_parse_test_options.rb | 2 -- .../v1/models/synthetics_private_location.rb | 3 --- .../v1/models/synthetics_step_detail_warning.rb | 2 -- .../v1/models/synthetics_test_request_proxy.rb | 1 - .../v1/models/synthetics_trigger_body.rb | 1 - .../v1/models/synthetics_trigger_test.rb | 1 - .../v1/models/synthetics_variable_parser.rb | 1 - .../v1/models/table_widget_definition.rb | 2 -- .../v1/models/timeseries_widget_definition.rb | 2 -- .../v1/models/timeseries_widget_expression_alias.rb | 1 - .../v1/models/toplist_widget_definition.rb | 2 -- .../v1/models/tree_map_widget_definition.rb | 2 -- lib/datadog_api_client/v1/models/webhooks_integration.rb | 2 -- .../v1/models/webhooks_integration_custom_variable.rb | 3 --- .../webhooks_integration_custom_variable_response.rb | 2 -- lib/datadog_api_client/v1/models/widget.rb | 1 - .../v1/models/widget_conditional_format.rb | 3 --- lib/datadog_api_client/v1/models/widget_event.rb | 1 - lib/datadog_api_client/v1/models/widget_field_sort.rb | 2 -- lib/datadog_api_client/v1/models/widget_formula.rb | 1 - lib/datadog_api_client/v1/models/widget_layout.rb | 4 ---- lib/datadog_api_client/v1/models/widget_marker.rb | 1 - lib/datadog_api_client/v2/models/api_error_response.rb | 1 - .../v2/models/api_key_create_attributes.rb | 1 - lib/datadog_api_client/v2/models/api_key_create_data.rb | 2 -- lib/datadog_api_client/v2/models/api_key_create_request.rb | 1 - .../v2/models/api_key_update_attributes.rb | 1 - lib/datadog_api_client/v2/models/api_key_update_data.rb | 3 --- lib/datadog_api_client/v2/models/api_key_update_request.rb | 1 - .../v2/models/application_key_create_attributes.rb | 1 - .../v2/models/application_key_create_data.rb | 2 -- .../v2/models/application_key_create_request.rb | 1 - .../v2/models/application_key_update_data.rb | 3 --- .../v2/models/application_key_update_request.rb | 1 - ...cloud_workload_security_agent_rule_create_attributes.rb | 2 -- .../cloud_workload_security_agent_rule_create_data.rb | 2 -- .../cloud_workload_security_agent_rule_create_request.rb | 1 - .../cloud_workload_security_agent_rule_update_data.rb | 2 -- .../cloud_workload_security_agent_rule_update_request.rb | 1 - lib/datadog_api_client/v2/models/dashboard_list_item.rb | 2 -- .../v2/models/dashboard_list_item_request.rb | 2 -- .../v2/models/dashboard_list_item_response.rb | 2 -- lib/datadog_api_client/v2/models/dashboard_list_items.rb | 1 - .../v2/models/incident_create_attributes.rb | 2 -- lib/datadog_api_client/v2/models/incident_create_data.rb | 2 -- .../v2/models/incident_create_relationships.rb | 1 - .../v2/models/incident_create_request.rb | 1 - lib/datadog_api_client/v2/models/incident_response.rb | 1 - .../v2/models/incident_response_attributes.rb | 1 - lib/datadog_api_client/v2/models/incident_response_data.rb | 2 -- .../v2/models/incident_service_create_attributes.rb | 1 - .../v2/models/incident_service_create_data.rb | 1 - .../v2/models/incident_service_create_request.rb | 1 - .../v2/models/incident_service_response.rb | 1 - .../v2/models/incident_service_response_data.rb | 2 -- .../v2/models/incident_service_update_attributes.rb | 1 - .../v2/models/incident_service_update_data.rb | 1 - .../v2/models/incident_service_update_request.rb | 1 - .../v2/models/incident_services_response.rb | 1 - .../v2/models/incident_team_create_attributes.rb | 1 - .../v2/models/incident_team_create_data.rb | 1 - .../v2/models/incident_team_create_request.rb | 1 - lib/datadog_api_client/v2/models/incident_team_response.rb | 1 - .../v2/models/incident_team_update_attributes.rb | 1 - .../v2/models/incident_team_update_data.rb | 1 - .../v2/models/incident_team_update_request.rb | 1 - .../v2/models/incident_teams_response.rb | 1 - .../incident_timeline_cell_markdown_create_attributes.rb | 2 -- lib/datadog_api_client/v2/models/incident_update_data.rb | 2 -- .../v2/models/incident_update_request.rb | 1 - lib/datadog_api_client/v2/models/incidents_response.rb | 1 - .../v2/models/logs_archive_attributes.rb | 3 --- .../v2/models/logs_archive_create_request_attributes.rb | 3 --- .../v2/models/logs_archive_create_request_definition.rb | 1 - .../v2/models/logs_archive_definition.rb | 1 - .../v2/models/logs_archive_destination_azure.rb | 4 ---- .../v2/models/logs_archive_destination_gcs.rb | 3 --- .../v2/models/logs_archive_destination_s3.rb | 3 --- .../v2/models/logs_archive_integration_azure.rb | 2 -- .../v2/models/logs_archive_integration_gcs.rb | 2 -- .../v2/models/logs_archive_integration_s3.rb | 2 -- .../v2/models/logs_archive_order_attributes.rb | 1 - .../v2/models/logs_archive_order_definition.rb | 2 -- lib/datadog_api_client/v2/models/logs_compute.rb | 1 - lib/datadog_api_client/v2/models/logs_group_by.rb | 1 - .../v2/models/logs_group_by_histogram.rb | 3 --- lib/datadog_api_client/v2/models/logs_metric_compute.rb | 1 - .../v2/models/logs_metric_create_attributes.rb | 1 - .../v2/models/logs_metric_create_data.rb | 3 --- .../v2/models/logs_metric_create_request.rb | 1 - lib/datadog_api_client/v2/models/logs_metric_group_by.rb | 1 - .../v2/models/logs_metric_update_data.rb | 2 -- .../v2/models/logs_metric_update_request.rb | 1 - .../v2/models/metric_custom_aggregation.rb | 2 -- .../models/metric_tag_configuration_create_attributes.rb | 2 -- .../v2/models/metric_tag_configuration_create_data.rb | 2 -- .../v2/models/metric_tag_configuration_create_request.rb | 1 - .../v2/models/metric_tag_configuration_update_data.rb | 2 -- .../v2/models/metric_tag_configuration_update_request.rb | 1 - lib/datadog_api_client/v2/models/organization.rb | 1 - lib/datadog_api_client/v2/models/permission.rb | 1 - .../relationship_to_incident_integration_metadata_data.rb | 2 -- .../relationship_to_incident_integration_metadatas.rb | 1 - .../v2/models/relationship_to_incident_postmortem.rb | 1 - .../v2/models/relationship_to_incident_postmortem_data.rb | 2 -- .../v2/models/relationship_to_organization.rb | 1 - .../v2/models/relationship_to_organization_data.rb | 2 -- .../v2/models/relationship_to_organizations.rb | 1 - lib/datadog_api_client/v2/models/relationship_to_user.rb | 1 - .../v2/models/relationship_to_user_data.rb | 2 -- lib/datadog_api_client/v2/models/relationship_to_users.rb | 1 - lib/datadog_api_client/v2/models/role.rb | 1 - lib/datadog_api_client/v2/models/role_clone.rb | 2 -- lib/datadog_api_client/v2/models/role_clone_attributes.rb | 1 - lib/datadog_api_client/v2/models/role_clone_request.rb | 1 - lib/datadog_api_client/v2/models/role_create_attributes.rb | 1 - lib/datadog_api_client/v2/models/role_create_data.rb | 1 - lib/datadog_api_client/v2/models/role_create_request.rb | 1 - .../v2/models/role_create_response_data.rb | 1 - lib/datadog_api_client/v2/models/role_update_data.rb | 3 --- lib/datadog_api_client/v2/models/role_update_request.rb | 1 - .../v2/models/role_update_response_data.rb | 1 - .../v2/models/security_filter_create_attributes.rb | 5 ----- .../v2/models/security_filter_create_data.rb | 2 -- .../v2/models/security_filter_create_request.rb | 1 - .../v2/models/security_filter_exclusion_filter.rb | 2 -- .../v2/models/security_filter_update_data.rb | 2 -- .../v2/models/security_filter_update_request.rb | 1 - .../v2/models/security_monitoring_rule_case_create.rb | 1 - .../v2/models/security_monitoring_rule_create_payload.rb | 6 ------ .../v2/models/security_monitoring_rule_query_create.rb | 1 - .../v2/models/service_account_create_attributes.rb | 2 -- .../v2/models/service_account_create_data.rb | 2 -- .../v2/models/service_account_create_request.rb | 1 - lib/datadog_api_client/v2/models/user_create_attributes.rb | 1 - lib/datadog_api_client/v2/models/user_create_data.rb | 2 -- lib/datadog_api_client/v2/models/user_create_request.rb | 1 - lib/datadog_api_client/v2/models/user_invitation_data.rb | 2 -- .../v2/models/user_invitation_relationships.rb | 1 - .../v2/models/user_invitations_request.rb | 1 - lib/datadog_api_client/v2/models/user_update_data.rb | 3 --- lib/datadog_api_client/v2/models/user_update_request.rb | 1 - 299 files changed, 560 deletions(-) diff --git a/.generator/src/generator/templates/model_generic.j2 b/.generator/src/generator/templates/model_generic.j2 index c4bdda55e28..9fd28ba9c32 100644 --- a/.generator/src/generator/templates/model_generic.j2 +++ b/.generator/src/generator/templates/model_generic.j2 @@ -133,11 +133,6 @@ # @return true if the model is valid # @!visibility private def valid? -{%- for attr, definition in model.get("properties", {}).items() %} -{%- if attr in model.get("required", []) %} - return false if @{{ attr|attribute_name }}.nil? -{%- endif %} -{%- endfor %} {%- for attr, definition in model.get("properties", {}).items() %} {%- set required = attr in model.get("required", []) %} {%- if not definition.nullable and required %} 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 6bc1e50054a..6ebb8b2fe62 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 @@ -153,9 +153,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @alert_id.nil? - return false if @type.nil? - return false if @viz_type.nil? return false if @alert_id.nil? return false if @type.nil? return false if @viz_type.nil? 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 52cb3ad9aca..cf83a861117 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 @@ -159,8 +159,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @alert_id.nil? - return false if @type.nil? return false if @alert_id.nil? return false if @type.nil? true 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 18da8f2ae2f..2990fbca872 100644 --- a/lib/datadog_api_client/v1/models/api_error_response.rb +++ b/lib/datadog_api_client/v1/models/api_error_response.rb @@ -93,7 +93,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @errors.nil? return false if @errors.nil? true end 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 1b77c5b94fd..55ea4fdf48e 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 @@ -118,7 +118,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? return false if @name.nil? true end 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 84153b959f3..f7afdf6575e 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 @@ -159,11 +159,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @env.nil? - return false if @name.nil? - return false if @primary_tag.nil? - return false if @row_type.nil? - return false if @service.nil? return false if @env.nil? return false if @name.nil? return false if @primary_tag.nil? 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 0c3939b8c55..16133ba853d 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,8 +103,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @account_id.nil? - return false if @lambda_arn.nil? return false if @account_id.nil? return false if @lambda_arn.nil? true 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 a19255c8487..5211f6c2689 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,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @account_id.nil? - return false if @services.nil? return false if @account_id.nil? return false if @services.nil? true 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 317f17fb744..c177bf575de 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 @@ -93,7 +93,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @scope.nil? return false if @scope.nil? true end 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 908881b1eaf..3889b6ad594 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition.rb @@ -163,8 +163,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @requests.nil? - return false if @type.nil? return false if @requests.nil? return false if @requests.length > 1 return false if @requests.length < 1 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 35ba1695ce5..7e6656b323c 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,7 +100,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 c9036cf5f77..d31c310af1e 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 @@ -184,9 +184,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @check.nil? - return false if @grouping.nil? - return false if @type.nil? return false if @check.nil? return false if @grouping.nil? return false if @type.nil? diff --git a/lib/datadog_api_client/v1/models/dashboard.rb b/lib/datadog_api_client/v1/models/dashboard.rb index 9de464c41a9..01937743049 100644 --- a/lib/datadog_api_client/v1/models/dashboard.rb +++ b/lib/datadog_api_client/v1/models/dashboard.rb @@ -252,9 +252,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @layout_type.nil? - return false if @title.nil? - return false if @widgets.nil? return false if @layout_type.nil? return false if @title.nil? return false if @widgets.nil? 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 bc09e4cbcb8..0fc1f541ce6 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 @@ -105,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @id.nil? - return false if @type.nil? return false if @id.nil? return false if @type.nil? true 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 cb9d9c205e6..12ffc31f59a 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 @@ -93,7 +93,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end diff --git a/lib/datadog_api_client/v1/models/dashboard_list.rb b/lib/datadog_api_client/v1/models/dashboard_list.rb index 19631334d57..bb9771712d0 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list.rb @@ -154,7 +154,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? return false if @name.nil? true end 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 95f33224497..6346fd4d68b 100644 --- a/lib/datadog_api_client/v1/models/dashboard_restore_request.rb +++ b/lib/datadog_api_client/v1/models/dashboard_restore_request.rb @@ -93,7 +93,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 eb868fe7d8c..7f2e101be26 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable.rb @@ -123,7 +123,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? return false if @name.nil? true end 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 83bf696deba..af183bfff83 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb @@ -201,8 +201,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @requests.nil? - return false if @type.nil? return false if @requests.nil? return false if @requests.length > 1 return false if @requests.length < 1 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 2eaf8afbec4..b82244d8496 100644 --- a/lib/datadog_api_client/v1/models/event_create_request.rb +++ b/lib/datadog_api_client/v1/models/event_create_request.rb @@ -200,8 +200,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @text.nil? - return false if @title.nil? return false if !@aggregation_key.nil? && @aggregation_key.to_s.length > 100 return false if @text.nil? return false if @text.to_s.length > 4000 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 a3c9a32dcda..4e9e9debaf6 100644 --- a/lib/datadog_api_client/v1/models/event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/event_query_definition.rb @@ -103,8 +103,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @search.nil? - return false if @tags_execution.nil? return false if @search.nil? return false if @tags_execution.nil? true 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 53d6e8f40ea..7ca149990dd 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 @@ -160,8 +160,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @query.nil? - return false if @type.nil? return false if @query.nil? return false if @type.nil? true 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 8042269b13c..4463230b079 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 @@ -150,8 +150,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @query.nil? - return false if @type.nil? return false if @query.nil? return false if @type.nil? true 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 b9738bc4e42..278dbe660cb 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 @@ -190,13 +190,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data_source.nil? - return false if @env.nil? - return false if @name.nil? - return false if @operation_name.nil? - return false if @resource_name.nil? - return false if @service.nil? - return false if @stat.nil? return false if @data_source.nil? return false if @env.nil? return false if @name.nil? 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 5e05259d5c4..b36d7a7bd29 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 @@ -186,11 +186,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data_source.nil? - return false if @env.nil? - return false if @name.nil? - return false if @service.nil? - return false if @stat.nil? return false if @data_source.nil? return false if @env.nil? return false if @name.nil? 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 8e01d8ef1ef..60d4dcc67d5 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 @@ -146,9 +146,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @compute.nil? - return false if @data_source.nil? - return false if @name.nil? return false if @compute.nil? return false if @data_source.nil? return false if @name.nil? 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 365c3d628c8..90845ad8bae 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 @@ -109,7 +109,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @aggregation.nil? return false if @aggregation.nil? true end 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 44c02501157..d42016c5102 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @query.nil? return false if @query.nil? true end 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 caa0df606ba..865863a0b75 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 @@ -109,7 +109,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @facet.nil? return false if @facet.nil? true end 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 c86ba2943ee..2da8f8cd859 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 @@ -111,7 +111,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @aggregation.nil? return false if @aggregation.nil? true end 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 bc57ebcf782..2bae0643120 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 @@ -124,9 +124,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data_source.nil? - return false if @name.nil? - return false if @query.nil? return false if @data_source.nil? return false if @name.nil? return false if @query.nil? 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 4e2a184dc03..6ea796ac97c 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 @@ -173,9 +173,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data_source.nil? - return false if @metric.nil? - return false if @name.nil? return false if @data_source.nil? return false if @metric.nil? return false if @name.nil? 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 ee538b01f76..f06fcd49d65 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 @@ -132,8 +132,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @text.nil? - return false if @type.nil? return false if @text.nil? return false if @type.nil? true diff --git a/lib/datadog_api_client/v1/models/funnel_query.rb b/lib/datadog_api_client/v1/models/funnel_query.rb index b19124f13ca..79370660150 100644 --- a/lib/datadog_api_client/v1/models/funnel_query.rb +++ b/lib/datadog_api_client/v1/models/funnel_query.rb @@ -119,9 +119,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data_source.nil? - return false if @query_string.nil? - return false if @steps.nil? return false if @data_source.nil? return false if @query_string.nil? return false if @steps.nil? diff --git a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb index 8803554959e..d3ea8983012 100644 --- a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb +++ b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb @@ -103,8 +103,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @facet.nil? - return false if @value.nil? return false if @facet.nil? return false if @value.nil? true 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 d3469c87ed8..0d229cd40ed 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb @@ -149,8 +149,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @requests.nil? - return false if @type.nil? return false if @requests.nil? return false if @requests.length > 1 return false if @requests.length < 1 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 e72138a4f3f..2e9e1157050 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_request.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_request.rb @@ -103,8 +103,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @query.nil? - return false if @request_type.nil? return false if @query.nil? return false if @request_type.nil? true 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 9ef6063e1bd..a961b931cf6 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb @@ -187,10 +187,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @requests.nil? - return false if @style.nil? - return false if @type.nil? - return false if @view.nil? return false if @requests.nil? return false if @requests.length > 1 return false if @requests.length < 1 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 94dd4b7e9f9..8b8862100df 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,8 +103,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @palette.nil? - return false if @palette_flip.nil? return false if @palette.nil? return false if @palette_flip.nil? true 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 47881b1fc10..8b1daaf55ca 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @focus.nil? return false if @focus.nil? true end 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 22abccf718c..6f9ed058898 100644 --- a/lib/datadog_api_client/v1/models/group_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/group_widget_definition.rb @@ -166,9 +166,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @layout_type.nil? - return false if @type.nil? - return false if @widgets.nil? return false if @layout_type.nil? return false if @type.nil? return false if @widgets.nil? 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 f0d085a91c9..3a610229e04 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,8 +198,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @requests.nil? - return false if @type.nil? return false if @requests.nil? return false if @requests.length > 1 return false if @requests.length < 1 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 f0bfa8d4598..e9d0d800c24 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 @@ -210,8 +210,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @requests.nil? - return false if @type.nil? return false if @requests.nil? return false if @type.nil? true 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 1e61f9f252e..cb352ff801d 100644 --- a/lib/datadog_api_client/v1/models/http_log_error.rb +++ b/lib/datadog_api_client/v1/models/http_log_error.rb @@ -106,8 +106,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @code.nil? - return false if @message.nil? return false if @code.nil? return false if @code > 2147483647 return false if @message.nil? 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 5078deb2bc3..16acd77015b 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 @@ -105,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? - return false if @url.nil? return false if @type.nil? return false if @url.nil? true 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 15dc2b8311c..ade10b7bc96 100644 --- a/lib/datadog_api_client/v1/models/idp_form_data.rb +++ b/lib/datadog_api_client/v1/models/idp_form_data.rb @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @idp_file.nil? return false if @idp_file.nil? true end diff --git a/lib/datadog_api_client/v1/models/idp_response.rb b/lib/datadog_api_client/v1/models/idp_response.rb index 487075a9bdb..c8e319d465a 100644 --- a/lib/datadog_api_client/v1/models/idp_response.rb +++ b/lib/datadog_api_client/v1/models/idp_response.rb @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @message.nil? return false if @message.nil? true end 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 b3e6c023f44..46edfdc3299 100644 --- a/lib/datadog_api_client/v1/models/image_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/image_widget_definition.rb @@ -174,8 +174,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? - return false if @url.nil? return false if @type.nil? return false if @url.nil? true 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 b38fc13a185..5c50f06c379 100644 --- a/lib/datadog_api_client/v1/models/list_stream_column.rb +++ b/lib/datadog_api_client/v1/models/list_stream_column.rb @@ -103,8 +103,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @field.nil? - return false if @width.nil? return false if @field.nil? return false if @width.nil? true 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 a272110880d..64f2ab8e69f 100644 --- a/lib/datadog_api_client/v1/models/list_stream_query.rb +++ b/lib/datadog_api_client/v1/models/list_stream_query.rb @@ -116,8 +116,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data_source.nil? - return false if @query_string.nil? return false if @data_source.nil? return false if @query_string.nil? true 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 444fee2b103..cd6f4bc6bf9 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,8 +168,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @requests.nil? - return false if @type.nil? return false if @requests.nil? return false if @requests.length > 1 return false if @requests.length < 1 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 317b406fc34..89323f30aed 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 @@ -117,9 +117,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @columns.nil? - return false if @query.nil? - return false if @response_format.nil? return false if @columns.nil? return false if @query.nil? return false if @response_format.nil? 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 b2e273280d6..d1f4a496e3f 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 @@ -109,7 +109,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @facet.nil? return false if @facet.nil? true end 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 35e645e4bd6..69c831037a5 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,8 +112,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @aggregation.nil? - return false if @order.nil? return false if @aggregation.nil? return false if @order.nil? true 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 927f963328e..20caa7cb445 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @query.nil? return false if @query.nil? true end 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 ee9e86d5056..fe4c879ecb6 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 @@ -205,7 +205,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? return false if @type.nil? true end 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 1cde82655dd..29a33e8ece9 100644 --- a/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb @@ -169,9 +169,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @expression.nil? - return false if @target.nil? - return false if @type.nil? return false if @expression.nil? return false if @target.nil? return false if @type.nil? 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 36347ff6120..cebe32651f1 100644 --- a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb @@ -196,9 +196,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @sources.nil? - return false if @target.nil? - return false if @type.nil? return false if @sources.nil? return false if @target.nil? return false if @type.nil? 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 d2c5f6afb9b..529087da17c 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor.rb @@ -152,9 +152,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @categories.nil? - return false if @target.nil? - return false if @type.nil? return false if @categories.nil? return false if @target.nil? return false if @type.nil? 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 e276653a081..6092bedabdc 100644 --- a/lib/datadog_api_client/v1/models/logs_date_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_date_remapper.rb @@ -145,8 +145,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @sources.nil? - return false if @type.nil? return false if @sources.nil? return false if @type.nil? true diff --git a/lib/datadog_api_client/v1/models/logs_exclusion.rb b/lib/datadog_api_client/v1/models/logs_exclusion.rb index a62dc6688b5..1dafbba9584 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion.rb @@ -109,7 +109,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? return false if @name.nil? true end 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 1e27f59bed2..177ac8d78b8 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb @@ -102,7 +102,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @sample_rate.nil? return false if @sample_rate.nil? true end 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 5cf468bf239..f54be14db16 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,9 +144,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @sources.nil? - return false if @target.nil? - return false if @type.nil? return false if @sources.nil? return false if @target.nil? return false if @type.nil? 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 7206016dfea..bddd044bd5d 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser.rb @@ -154,9 +154,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @grok.nil? - return false if @source.nil? - return false if @type.nil? return false if @grok.nil? return false if !@samples.nil? && @samples.length > 5 return false if @source.nil? 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 6d185a0214d..27125d32973 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 @@ -102,7 +102,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @match_rules.nil? return false if @match_rules.nil? true end diff --git a/lib/datadog_api_client/v1/models/logs_index.rb b/lib/datadog_api_client/v1/models/logs_index.rb index 055e093fb7c..81e39b89561 100644 --- a/lib/datadog_api_client/v1/models/logs_index.rb +++ b/lib/datadog_api_client/v1/models/logs_index.rb @@ -145,8 +145,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @filter.nil? - return false if @name.nil? return false if @filter.nil? return false if @name.nil? true 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 c444b57c7eb..4bc7bf85e70 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 @@ -137,7 +137,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @filter.nil? return false if @filter.nil? true end 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 8140e294054..239c2c4d5c6 100644 --- a/lib/datadog_api_client/v1/models/logs_indexes_order.rb +++ b/lib/datadog_api_client/v1/models/logs_indexes_order.rb @@ -95,7 +95,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @index_names.nil? return false if @index_names.nil? true end 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 0f9aa4df648..cfd7a95d779 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request.rb @@ -144,7 +144,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @time.nil? return false if !@limit.nil? && @limit > 1000 return false if @time.nil? true 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 68d335d6d45..e22be2af29b 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,8 +113,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @from.nil? - return false if @to.nil? return false if @from.nil? return false if @to.nil? true 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 e9f91eb5371..539e44b5388 100644 --- a/lib/datadog_api_client/v1/models/logs_lookup_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_lookup_processor.rb @@ -167,10 +167,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @lookup_table.nil? - return false if @source.nil? - return false if @target.nil? - return false if @type.nil? return false if @lookup_table.nil? return false if @source.nil? return false if @target.nil? 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 e6531d693af..ce4b1186340 100644 --- a/lib/datadog_api_client/v1/models/logs_message_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_message_remapper.rb @@ -134,8 +134,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @sources.nil? - return false if @type.nil? return false if @sources.nil? return false if @type.nil? true diff --git a/lib/datadog_api_client/v1/models/logs_pipeline.rb b/lib/datadog_api_client/v1/models/logs_pipeline.rb index 35a77674903..f0de6ab5c6e 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline.rb @@ -151,7 +151,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? return false if @name.nil? true end 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 5f925cd61d7..fbce659f0d6 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb @@ -137,7 +137,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? return false if @type.nil? true end 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 da65a59a643..f669795e0d6 100644 --- a/lib/datadog_api_client/v1/models/logs_pipelines_order.rb +++ b/lib/datadog_api_client/v1/models/logs_pipelines_order.rb @@ -94,7 +94,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @pipeline_ids.nil? return false if @pipeline_ids.nil? true end 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 3ce09c3aabd..3c0a76935c7 100644 --- a/lib/datadog_api_client/v1/models/logs_query_compute.rb +++ b/lib/datadog_api_client/v1/models/logs_query_compute.rb @@ -109,7 +109,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @aggregation.nil? return false if @aggregation.nil? true end 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 f1cf864e630..2b071bacf0e 100644 --- a/lib/datadog_api_client/v1/models/logs_service_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_service_remapper.rb @@ -130,8 +130,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @sources.nil? - return false if @type.nil? return false if @sources.nil? return false if @type.nil? true 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 57d22b7e99a..d18420d0a93 100644 --- a/lib/datadog_api_client/v1/models/logs_status_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_status_remapper.rb @@ -144,8 +144,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @sources.nil? - return false if @type.nil? return false if @sources.nil? return false if @type.nil? true 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 9396e1b1e17..1e8f1accf8a 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 @@ -161,9 +161,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @target.nil? - return false if @template.nil? - return false if @type.nil? return false if @target.nil? return false if @template.nil? return false if @type.nil? 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 976913eba9d..3ae1fbbc3b9 100644 --- a/lib/datadog_api_client/v1/models/logs_trace_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_trace_remapper.rb @@ -131,7 +131,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? return false if @type.nil? true end 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 5276bd3fc37..d1f7241c7a5 100644 --- a/lib/datadog_api_client/v1/models/logs_url_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_url_parser.rb @@ -155,9 +155,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @sources.nil? - return false if @target.nil? - return false if @type.nil? return false if @sources.nil? return false if @target.nil? return false if @type.nil? 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 381f99b63a1..94d9dd24beb 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 @@ -155,9 +155,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @sources.nil? - return false if @target.nil? - return false if @type.nil? return false if @sources.nil? return false if @target.nil? return false if @type.nil? diff --git a/lib/datadog_api_client/v1/models/metrics_payload.rb b/lib/datadog_api_client/v1/models/metrics_payload.rb index 482258cf000..988dbcc427c 100644 --- a/lib/datadog_api_client/v1/models/metrics_payload.rb +++ b/lib/datadog_api_client/v1/models/metrics_payload.rb @@ -93,7 +93,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @series.nil? return false if @series.nil? true end diff --git a/lib/datadog_api_client/v1/models/monitor.rb b/lib/datadog_api_client/v1/models/monitor.rb index a3a8534ba5b..c2577e683c5 100644 --- a/lib/datadog_api_client/v1/models/monitor.rb +++ b/lib/datadog_api_client/v1/models/monitor.rb @@ -242,8 +242,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @query.nil? - return false if @type.nil? return false if !@priority.nil? && @priority > 5 return false if !@priority.nil? && @priority < 1 return false if @query.nil? 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 b57451568c9..eef1588768c 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 @@ -146,9 +146,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @compute.nil? - return false if @data_source.nil? - return false if @name.nil? return false if @compute.nil? return false if @data_source.nil? return false if @name.nil? 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 6a722739307..1f17bebd1dd 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 @@ -109,7 +109,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @aggregation.nil? return false if @aggregation.nil? true end 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 94ea07d3bfd..a815a86f8e7 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @query.nil? return false if @query.nil? true end 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 030acf513c4..aa553fde769 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 @@ -109,7 +109,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @facet.nil? return false if @facet.nil? true end 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 71371513d07..361d23f0b03 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 @@ -111,7 +111,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @aggregation.nil? return false if @aggregation.nil? true end 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 ae07478d14a..31f3d8084d3 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 @@ -204,8 +204,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @query.nil? - return false if @type.nil? return false if @query.nil? return false if @type.nil? true 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 da2b1363ae0..f70d8e9577f 100644 --- a/lib/datadog_api_client/v1/models/note_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/note_widget_definition.rb @@ -179,8 +179,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @content.nil? - return false if @type.nil? return false if @content.nil? return false if @type.nil? true 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 b0b3614952b..7cc860400d7 100644 --- a/lib/datadog_api_client/v1/models/notebook_absolute_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_absolute_time.rb @@ -112,8 +112,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @_end.nil? - return false if @start.nil? return false if @_end.nil? return false if @start.nil? true 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 7c0c470753c..9db736d78e1 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 @@ -106,8 +106,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true 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 840a2349b95..480f74a3743 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_response.rb @@ -118,9 +118,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @id.nil? - return false if @type.nil? return false if @attributes.nil? return false if @id.nil? return false if @type.nil? 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 e9bd7d0802b..ba2e18ea1dc 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 @@ -118,9 +118,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @id.nil? - return false if @type.nil? return false if @attributes.nil? return false if @id.nil? return false if @type.nil? 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 897edac6faa..2ed4b4fd0ee 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_data.rb @@ -105,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true 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 b184d5d3504..0266887dbc9 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 @@ -143,9 +143,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @cells.nil? - return false if @name.nil? - return false if @time.nil? return false if @cells.nil? return false if @name.nil? return false if @name.to_s.length > 80 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 58abc50aa92..5014f8f7d6e 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_request.rb @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 fb9f13b081d..2c48aab24a4 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 @@ -121,7 +121,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @definition.nil? return false if @definition.nil? true end 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 817abf140d7..7eda77b5e50 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 @@ -119,7 +119,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @definition.nil? return false if @definition.nil? true end 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 c4544769ecf..49b2f7b0794 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 @@ -110,7 +110,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @definition.nil? return false if @definition.nil? true end 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 aa0ccffb9c8..965802e4d5c 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @definition.nil? return false if @definition.nil? true end 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 0228510def9..dbc4af9a6b7 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 @@ -105,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @text.nil? - return false if @type.nil? return false if @text.nil? return false if @type.nil? true 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 804e931426b..579a211a771 100644 --- a/lib/datadog_api_client/v1/models/notebook_relative_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_relative_time.rb @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @live_span.nil? return false if @live_span.nil? true end 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 242be5e2216..3f23acbd219 100644 --- a/lib/datadog_api_client/v1/models/notebook_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_response_data.rb @@ -117,9 +117,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @id.nil? - return false if @type.nil? return false if @attributes.nil? return false if @id.nil? return false if @type.nil? 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 1d1873568d0..65c9797beda 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 @@ -170,9 +170,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @cells.nil? - return false if @name.nil? - return false if @time.nil? return false if @cells.nil? return false if @name.nil? return false if @name.to_s.length > 80 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 0f27174bd1f..dbbff5b3933 100644 --- a/lib/datadog_api_client/v1/models/notebook_split_by.rb +++ b/lib/datadog_api_client/v1/models/notebook_split_by.rb @@ -107,8 +107,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @keys.nil? - return false if @tags.nil? return false if @keys.nil? return false if @tags.nil? true 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 e521c709272..3f5af12c54e 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 @@ -119,7 +119,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @definition.nil? return false if @definition.nil? true end 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 d519c2ebb3b..1ecdb79b8ba 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 @@ -119,7 +119,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @definition.nil? return false if @definition.nil? true end 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 ef2fde1c071..949571647d3 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_data.rb @@ -105,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true 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 d53902d6b5a..d47ed404815 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 @@ -143,9 +143,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @cells.nil? - return false if @name.nil? - return false if @time.nil? return false if @cells.nil? return false if @name.nil? return false if @name.to_s.length > 80 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 ecde8319118..44beee14fd2 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_request.rb @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 922e6c69048..f5fdc53a118 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_data.rb @@ -117,9 +117,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @id.nil? - return false if @type.nil? return false if @attributes.nil? return false if @id.nil? return false if @type.nil? 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 5d4b815c4fd..919973a2a71 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 @@ -164,7 +164,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? return false if @name.nil? return false if @name.to_s.length > 80 return false if @name.to_s.length < 0 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 a863ea41e14..ad7ea6d2be6 100644 --- a/lib/datadog_api_client/v1/models/organization_create_body.rb +++ b/lib/datadog_api_client/v1/models/organization_create_body.rb @@ -112,7 +112,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? return false if @name.nil? return false if @name > 32 true 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 ca5cc2a237f..6a9f4d0c8c7 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service.rb @@ -103,8 +103,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @service_key.nil? - return false if @service_name.nil? return false if @service_key.nil? return false if @service_name.nil? true 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 822933a2cbd..e68b6f60275 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @service_key.nil? return false if @service_key.nil? true end 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 47ef75b6c11..357d6b4b4ab 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @service_name.nil? return false if @service_name.nil? true end 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 b6419d76901..30c3cfaf3e3 100644 --- a/lib/datadog_api_client/v1/models/process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/process_query_definition.rb @@ -123,7 +123,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @metric.nil? return false if !@limit.nil? && @limit < 0 return false if @metric.nil? true 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 666bf840873..7673cf0116d 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 @@ -196,8 +196,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @requests.nil? - return false if @type.nil? return false if @requests.nil? return false if @requests.length > 1 return false if @requests.length < 1 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 afa2cab44b9..70190da754e 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 @@ -181,8 +181,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @requests.nil? - return false if @type.nil? return false if @requests.nil? return false if @type.nil? true 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 1dc88abc0aa..bff0510f242 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb @@ -112,8 +112,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @dimension.nil? - return false if @formula.nil? return false if @dimension.nil? return false if @formula.nil? true diff --git a/lib/datadog_api_client/v1/models/series.rb b/lib/datadog_api_client/v1/models/series.rb index 9bf6da2d0e5..c7141085aab 100644 --- a/lib/datadog_api_client/v1/models/series.rb +++ b/lib/datadog_api_client/v1/models/series.rb @@ -147,8 +147,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @metric.nil? - return false if @points.nil? return false if @metric.nil? return false if @points.nil? true diff --git a/lib/datadog_api_client/v1/models/service_check.rb b/lib/datadog_api_client/v1/models/service_check.rb index 874b1618c99..63084f3c48a 100644 --- a/lib/datadog_api_client/v1/models/service_check.rb +++ b/lib/datadog_api_client/v1/models/service_check.rb @@ -147,10 +147,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @check.nil? - return false if @host_name.nil? - return false if @status.nil? - return false if @tags.nil? return false if @check.nil? return false if @host_name.nil? return false if @status.nil? 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 4e6e843f688..9463ec4e453 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective.rb @@ -241,9 +241,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? - return false if @thresholds.nil? - return false if @type.nil? return false if @name.nil? return false if @thresholds.nil? return false if @type.nil? 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 3f376b31406..a46d4951267 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,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @denominator.nil? - return false if @numerator.nil? return false if @denominator.nil? return false if @numerator.nil? true 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 aa739de0f8a..b0a2e68d1d1 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 @@ -183,9 +183,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? - return false if @thresholds.nil? - return false if @type.nil? return false if @name.nil? return false if @thresholds.nil? return false if @type.nil? 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 506f8897b7a..bf4d646e0e2 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 @@ -160,9 +160,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @filters.nil? - return false if @service.nil? - return false if @type.nil? return false if @filters.nil? return false if @filters.length < 1 return false if @service.nil? 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 3d71e301a54..b6a8251a662 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 @@ -237,10 +237,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @env.nil? - return false if @service.nil? - return false if @span_name.nil? - return false if @type.nil? return false if @env.nil? return false if @service.nil? return false if @span_name.nil? 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 fd374e92007..68a9cac35d6 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 @@ -117,9 +117,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @id.nil? - return false if @message.nil? - return false if @timeframe.nil? return false if @id.nil? return false if @message.nil? return false if @timeframe.nil? 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 0e317f820d9..7f4a669278d 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 @@ -102,7 +102,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? return false if @type.nil? true end 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 45a45ac7101..ec9e47f88b1 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 @@ -161,9 +161,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @category.nil? - return false if @slo_id.nil? - return false if @start.nil? return false if @category.nil? return false if @slo_id.nil? return false if @start.nil? 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 248dba6ae9d..1ff9f94c7b9 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics.rb @@ -178,13 +178,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @denominator.nil? - return false if @interval.nil? - return false if @numerator.nil? - return false if @query.nil? - return false if @res_type.nil? - return false if @resp_version.nil? - return false if @times.nil? return false if @denominator.nil? return false if @interval.nil? return false if @numerator.nil? 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 bf418171261..47de94dc74e 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 @@ -127,9 +127,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @count.nil? - return false if @sum.nil? - return false if @values.nil? return false if @count.nil? return false if @sum.nil? return false if @values.nil? 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 6f1d34397ff..0d73f2dd958 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,8 +103,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @error_message.nil? - return false if @error_type.nil? return false if @error_message.nil? return false if @error_type.nil? true diff --git a/lib/datadog_api_client/v1/models/slo_threshold.rb b/lib/datadog_api_client/v1/models/slo_threshold.rb index e45a2fb0592..4136005a40d 100644 --- a/lib/datadog_api_client/v1/models/slo_threshold.rb +++ b/lib/datadog_api_client/v1/models/slo_threshold.rb @@ -139,8 +139,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @target.nil? - return false if @timeframe.nil? return false if @target.nil? return false if @timeframe.nil? true 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 3d0b72116a6..ae9b06d3cca 100644 --- a/lib/datadog_api_client/v1/models/slo_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/slo_widget_definition.rb @@ -181,8 +181,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? - return false if @view_type.nil? return false if @type.nil? return false if @view_type.nil? true 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 470e4d79655..96baa09462a 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb @@ -175,8 +175,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @requests.nil? - return false if @type.nil? return false if @requests.nil? return false if @requests.length < 1 return false if @type.nil? 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 472036dd4ae..578ebc342ac 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 @@ -109,7 +109,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? return false if @type.nil? true end 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 b4066af3ae8..08f7b3d60cd 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? return false if @type.nil? true end diff --git a/lib/datadog_api_client/v1/models/synthetics_api_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_step.rb index 66a4b5d0383..68ebde8095f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_step.rb @@ -170,10 +170,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @assertions.nil? - return false if @name.nil? - return false if @request.nil? - return false if @subtype.nil? return false if @assertions.nil? return false if @name.nil? return false if @request.nil? 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 80b95ca0342..7d6f410d212 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test.rb @@ -201,11 +201,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @config.nil? - return false if @locations.nil? - return false if @name.nil? - return false if @options.nil? - return false if @type.nil? return false if @config.nil? return false if @locations.nil? return false if @name.nil? 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 1765567a3ce..adf839dcf89 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @config.nil? return false if @config.nil? true end 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 b7a7134546e..628baf94f63 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,8 +121,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @operator.nil? - return false if @type.nil? return false if @operator.nil? return false if @type.nil? true 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 c76e97279d8..df16395e72d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb @@ -124,9 +124,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @operator.nil? - return false if @target.nil? - return false if @type.nil? return false if @operator.nil? return false if @target.nil? return false if @type.nil? 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 f3a8342f4ab..675357de521 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 @@ -129,7 +129,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? return false if @type.nil? true end 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 ed87bcbdd9b..97cb8bd66c2 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 @@ -144,9 +144,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @access_key.nil? - return false if @secret_key.nil? - return false if @type.nil? return false if @access_key.nil? return false if @secret_key.nil? return false if @type.nil? 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 93a7285b367..c8a59e38483 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 @@ -117,9 +117,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @password.nil? - return false if @type.nil? - return false if @username.nil? return false if @password.nil? return false if @type.nil? return false if @username.nil? 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 750cd1e4627..5465c7f4d3a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_error.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_error.rb @@ -124,9 +124,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @description.nil? - return false if @name.nil? - return false if @type.nil? return false if @description.nil? return false if @name.nil? return false if @type.nil? 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 776f9232198..071ef51d7ea 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb @@ -202,11 +202,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @config.nil? - return false if @locations.nil? - return false if @name.nil? - return false if @options.nil? - return false if @type.nil? return false if @config.nil? return false if @locations.nil? return false if @name.nil? 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 26ee7178d5b..620f854c734 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 @@ -138,8 +138,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @assertions.nil? - return false if @request.nil? return false if @assertions.nil? return false if @request.nil? true 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 6be4cb58e25..a305a27378f 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @config.nil? return false if @config.nil? true end 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 435f13c364d..360db25b7aa 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb @@ -131,8 +131,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? - return false if @type.nil? return false if @name.nil? return false if @type.nil? true 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 4218b17c40f..fc1b30cb6b8 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_test.rb @@ -212,7 +212,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @public_id.nil? return false if @public_id.nil? true end 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 0df9101f491..2a96af9f3e6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_config_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_config_variable.rb @@ -130,8 +130,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? - return false if @type.nil? return false if @name.nil? return false if @type.nil? true diff --git a/lib/datadog_api_client/v1/models/synthetics_device.rb b/lib/datadog_api_client/v1/models/synthetics_device.rb index 800b7db61bb..30d1737e68a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_device.rb +++ b/lib/datadog_api_client/v1/models/synthetics_device.rb @@ -136,10 +136,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @height.nil? - return false if @id.nil? - return false if @name.nil? - return false if @width.nil? return false if @height.nil? return false if @id.nil? return false if @name.nil? 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 133f4c54900..5ef56e42833 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable.rb @@ -165,10 +165,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @description.nil? - return false if @name.nil? - return false if @tags.nil? - return false if @value.nil? return false if @description.nil? return false if @name.nil? return false if @tags.nil? 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 1d2f2ef19c9..4009198c976 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 @@ -112,8 +112,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @parser.nil? - return false if @type.nil? return false if @parser.nil? return false if @type.nil? true 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 3c42c7e721f..e1c7eb33ff0 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location.rb @@ -135,9 +135,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @description.nil? - return false if @name.nil? - return false if @tags.nil? return false if @description.nil? return false if @name.nil? return false if @tags.nil? 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 84a1a516b4e..abe331038a3 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,8 +103,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @message.nil? - return false if @type.nil? return false if @message.nil? return false if @type.nil? true 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 317dc91c6f8..ffe650a2241 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 @@ -100,7 +100,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @url.nil? return false if @url.nil? true end 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 b96de01db96..cb2508366c4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb @@ -93,7 +93,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @tests.nil? return false if @tests.nil? true end 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 791674a4653..c4abf3070a4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb @@ -100,7 +100,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @public_id.nil? return false if @public_id.nil? true end 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 5cb8692d14a..9388700146f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb +++ b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb @@ -100,7 +100,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? return false if @type.nil? true end 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 32762feb439..aa20fed364d 100644 --- a/lib/datadog_api_client/v1/models/table_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/table_widget_definition.rb @@ -163,8 +163,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @requests.nil? - return false if @type.nil? return false if @requests.nil? return false if @type.nil? true 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 c024001c59b..c543c3bf6a2 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb @@ -235,8 +235,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @requests.nil? - return false if @type.nil? return false if @requests.nil? return false if @requests.length < 1 return false if @type.nil? 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 45ad22074e5..0e4f3f8a0ac 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 @@ -100,7 +100,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @expression.nil? return false if @expression.nil? true end 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 9eea1cf9c5c..4088a58b8b8 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_definition.rb @@ -154,8 +154,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @requests.nil? - return false if @type.nil? return false if @requests.nil? return false if @type.nil? true 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 9a483e815b9..056121c22ec 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 @@ -151,8 +151,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @requests.nil? - return false if @type.nil? return false if @requests.nil? return false if @requests.length > 1 return false if @requests.length < 1 diff --git a/lib/datadog_api_client/v1/models/webhooks_integration.rb b/lib/datadog_api_client/v1/models/webhooks_integration.rb index 2b6761169d3..43b73554881 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration.rb @@ -140,8 +140,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? - return false if @url.nil? return false if @name.nil? return false if @url.nil? true 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 41257dfbc53..808b2bbcdd2 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 @@ -116,9 +116,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @is_secret.nil? - return false if @name.nil? - return false if @value.nil? return false if @is_secret.nil? return false if @name.nil? return false if @value.nil? 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 b1d1af15e0b..63b406f5967 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,8 +113,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @is_secret.nil? - return false if @name.nil? return false if @is_secret.nil? return false if @name.nil? true diff --git a/lib/datadog_api_client/v1/models/widget.rb b/lib/datadog_api_client/v1/models/widget.rb index f3d9a45d77b..3abcb355514 100644 --- a/lib/datadog_api_client/v1/models/widget.rb +++ b/lib/datadog_api_client/v1/models/widget.rb @@ -114,7 +114,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @definition.nil? return false if @definition.nil? true end 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 1ba07433d7d..4649e1b537e 100644 --- a/lib/datadog_api_client/v1/models/widget_conditional_format.rb +++ b/lib/datadog_api_client/v1/models/widget_conditional_format.rb @@ -169,9 +169,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @comparator.nil? - return false if @palette.nil? - return false if @value.nil? return false if @comparator.nil? return false if @palette.nil? return false if @value.nil? diff --git a/lib/datadog_api_client/v1/models/widget_event.rb b/lib/datadog_api_client/v1/models/widget_event.rb index 025ae5501c1..c0481be0fe2 100644 --- a/lib/datadog_api_client/v1/models/widget_event.rb +++ b/lib/datadog_api_client/v1/models/widget_event.rb @@ -103,7 +103,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @q.nil? return false if @q.nil? true end 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 06511ebe83e..1ed90d4e785 100644 --- a/lib/datadog_api_client/v1/models/widget_field_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_field_sort.rb @@ -103,8 +103,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @column.nil? - return false if @order.nil? return false if @column.nil? return false if @order.nil? true diff --git a/lib/datadog_api_client/v1/models/widget_formula.rb b/lib/datadog_api_client/v1/models/widget_formula.rb index 5b767b27123..3ac0749e9db 100644 --- a/lib/datadog_api_client/v1/models/widget_formula.rb +++ b/lib/datadog_api_client/v1/models/widget_formula.rb @@ -129,7 +129,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @formula.nil? return false if @formula.nil? true end diff --git a/lib/datadog_api_client/v1/models/widget_layout.rb b/lib/datadog_api_client/v1/models/widget_layout.rb index 531322cb2ef..a89cbf57597 100644 --- a/lib/datadog_api_client/v1/models/widget_layout.rb +++ b/lib/datadog_api_client/v1/models/widget_layout.rb @@ -149,10 +149,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @height.nil? - return false if @width.nil? - return false if @x.nil? - return false if @y.nil? return false if @height.nil? return false if @height < 0 return false if @width.nil? diff --git a/lib/datadog_api_client/v1/models/widget_marker.rb b/lib/datadog_api_client/v1/models/widget_marker.rb index d970ceed4e1..c15d8bf87d3 100644 --- a/lib/datadog_api_client/v1/models/widget_marker.rb +++ b/lib/datadog_api_client/v1/models/widget_marker.rb @@ -122,7 +122,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @value.nil? return false if @value.nil? true end 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 03ae374550e..1b6a282a5c0 100644 --- a/lib/datadog_api_client/v2/models/api_error_response.rb +++ b/lib/datadog_api_client/v2/models/api_error_response.rb @@ -93,7 +93,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @errors.nil? return false if @errors.nil? true end 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 67575df1e94..683b7bff60f 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? return false if @name.nil? true end 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 4533483b742..86f33a63b57 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 @@ -105,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true 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 64f1d05a08e..17337734a9f 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 9dbfb18c60e..3127626aeb7 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? return false if @name.nil? true end 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 035315fe542..f22752a2cae 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 @@ -117,9 +117,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @id.nil? - return false if @type.nil? return false if @attributes.nil? return false if @id.nil? return false if @type.nil? 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 44981bf3220..23cc5bfdccf 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 f6d4629ad50..f3231ced41b 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 @@ -103,7 +103,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? return false if @name.nil? true end 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 ed480750132..8e911ee7d20 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 @@ -105,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true 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 388932b97e6..e09512951d6 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 e8319713bb5..9a8389baf0f 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 @@ -117,9 +117,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @id.nil? - return false if @type.nil? return false if @attributes.nil? return false if @id.nil? return false if @type.nil? 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 3e359a0d58f..c8254c7268d 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 3fe5ee8cd3e..f8df343666a 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 @@ -121,8 +121,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @expression.nil? - return false if @name.nil? return false if @expression.nil? return false if @name.nil? true 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 9bcdace17a7..7cc7bc7da1a 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 @@ -105,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true 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 55105a1aa86..b98b704c782 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 d1bd804d559..871869f7877 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 @@ -105,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true 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 bd99bd8d759..ce3a0c9e95f 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 95495f17167..bd7734c8573 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item.rb @@ -196,8 +196,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @id.nil? - return false if @type.nil? return false if @id.nil? return false if !@popularity.nil? && @popularity > 5 return false if @type.nil? 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 501b09d1d33..a86884e6212 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,8 +103,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @id.nil? - return false if @type.nil? return false if @id.nil? return false if @type.nil? true 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 1af0208a681..9b6698b5265 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,8 +103,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @id.nil? - return false if @type.nil? return false if @id.nil? return false if @type.nil? true 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 ab926e6adde..56bc07953e0 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_items.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_items.rb @@ -102,7 +102,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @dashboards.nil? return false if @dashboards.nil? true end 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 2d87ba04f65..a7e695c7f1f 100644 --- a/lib/datadog_api_client/v2/models/incident_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_create_attributes.rb @@ -134,8 +134,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @customer_impacted.nil? - return false if @title.nil? return false if @customer_impacted.nil? return false if @title.nil? true 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 1abd6a21813..20ef53f9e54 100644 --- a/lib/datadog_api_client/v2/models/incident_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_create_data.rb @@ -114,8 +114,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true 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 c8a3241d44f..8bb1bf800ad 100644 --- a/lib/datadog_api_client/v2/models/incident_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_create_relationships.rb @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @commander.nil? return false if @commander.nil? true end 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 07229813776..fecf57b0419 100644 --- a/lib/datadog_api_client/v2/models/incident_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_create_request.rb @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end diff --git a/lib/datadog_api_client/v2/models/incident_response.rb b/lib/datadog_api_client/v2/models/incident_response.rb index e11a5f0e2fb..e5c1091bd0a 100644 --- a/lib/datadog_api_client/v2/models/incident_response.rb +++ b/lib/datadog_api_client/v2/models/incident_response.rb @@ -102,7 +102,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 3e2bcb43e11..78b05a5d6f9 100644 --- a/lib/datadog_api_client/v2/models/incident_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_response_attributes.rb @@ -254,7 +254,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @title.nil? return false if @title.nil? true end 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 7f152b63304..71a16f75d4d 100644 --- a/lib/datadog_api_client/v2/models/incident_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_response_data.rb @@ -123,8 +123,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @id.nil? - return false if @type.nil? return false if @id.nil? return false if @type.nil? true 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 4658fbef178..db2730f16ce 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? return false if @name.nil? true end 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 db6337eeb4d..01f1dae7d9f 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 @@ -111,7 +111,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? return false if @type.nil? true end 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 79118a7ffe6..b6289418b41 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 17e39bbc9c0..7889bb667fe 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response.rb @@ -102,7 +102,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 813521f317b..4b9077d415b 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 @@ -123,8 +123,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @id.nil? - return false if @type.nil? return false if @id.nil? return false if @type.nil? true 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 4e94814cb23..e111f8436bf 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? return false if @name.nil? true end 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 92616016224..8d6815462a0 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 @@ -120,7 +120,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? return false if @type.nil? true end 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 c73feb7b358..d70ec1b3d6a 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 8bc871c3d4e..e73834d50e3 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response.rb @@ -113,7 +113,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 276f7e8d829..6e919c0fec0 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? return false if @name.nil? true end 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 409ecf70b7c..13e7e1dcbef 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 @@ -111,7 +111,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? return false if @type.nil? true end 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 fb8d314b501..d9eed24696b 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 e0a4c97d68c..dcb1be09214 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response.rb @@ -102,7 +102,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 4f2a936ef56..9f3d6196540 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? return false if @name.nil? true end 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 a9c2408bfb6..c12dcc88cc4 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 @@ -120,7 +120,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? return false if @type.nil? true end 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 c6bf2430e72..3b1e3fab946 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 a09be538ad5..9e95523a098 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response.rb @@ -113,7 +113,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 7c324425a1b..58c765d1072 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 @@ -116,8 +116,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @cell_type.nil? - return false if @content.nil? return false if @cell_type.nil? return false if @content.nil? true 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 008fd5340a3..de8937c91d4 100644 --- a/lib/datadog_api_client/v2/models/incident_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_update_data.rb @@ -123,8 +123,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @id.nil? - return false if @type.nil? return false if @id.nil? return false if @type.nil? true 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 c181d789f3c..27956022d9d 100644 --- a/lib/datadog_api_client/v2/models/incident_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_update_request.rb @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end diff --git a/lib/datadog_api_client/v2/models/incidents_response.rb b/lib/datadog_api_client/v2/models/incidents_response.rb index 6ba8cb87751..168bb224318 100644 --- a/lib/datadog_api_client/v2/models/incidents_response.rb +++ b/lib/datadog_api_client/v2/models/incidents_response.rb @@ -113,7 +113,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 424f193dc06..bb0171033a6 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb @@ -145,9 +145,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @destination.nil? - return false if @name.nil? - return false if @query.nil? return false if @name.nil? return false if @query.nil? true 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 bc8eba7486e..7654cd9fe84 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 @@ -138,9 +138,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @destination.nil? - return false if @name.nil? - return false if @query.nil? return false if @destination.nil? return false if @name.nil? return false if @query.nil? 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 4e3f818b004..a9008d2248d 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 @@ -102,7 +102,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? return false if @type.nil? true end 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 a572a79cbf0..82e9ef9652a 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_definition.rb @@ -111,7 +111,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? return false if @type.nil? true end 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 f17853787f1..69ec319b3be 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 @@ -147,10 +147,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @container.nil? - return false if @integration.nil? - return false if @storage_account.nil? - return false if @type.nil? return false if @container.nil? return false if @integration.nil? return false if @storage_account.nil? 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 43a79c28fdb..babd3eccb72 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 @@ -126,9 +126,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @bucket.nil? - return false if @integration.nil? - return false if @type.nil? return false if @bucket.nil? return false if @integration.nil? return false if @type.nil? 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 a03877e6629..a2b463fde86 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 @@ -126,9 +126,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @bucket.nil? - return false if @integration.nil? - return false if @type.nil? return false if @bucket.nil? return false if @integration.nil? return false if @type.nil? 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 09dcf4359c0..db9138bdf2a 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,8 +103,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @client_id.nil? - return false if @tenant_id.nil? return false if @client_id.nil? return false if @tenant_id.nil? true 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 01a49429cc3..f88ba39621b 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 @@ -103,8 +103,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @client_email.nil? - return false if @project_id.nil? return false if @client_email.nil? return false if @project_id.nil? true 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 5f677caf302..b2e11a5100c 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,8 +103,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @account_id.nil? - return false if @role_name.nil? return false if @account_id.nil? return false if @role_name.nil? true 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 a3275428389..aa486a046d1 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 @@ -94,7 +94,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @archive_ids.nil? return false if @archive_ids.nil? true end 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 aa4234cf8f5..17349ae12be 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 @@ -105,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true diff --git a/lib/datadog_api_client/v2/models/logs_compute.rb b/lib/datadog_api_client/v2/models/logs_compute.rb index 775088a1133..30014521ecb 100644 --- a/lib/datadog_api_client/v2/models/logs_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_compute.rb @@ -121,7 +121,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @aggregation.nil? return false if @aggregation.nil? true end 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 82e370e1ff3..16a3d99b4d3 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by.rb @@ -141,7 +141,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @facet.nil? return false if @facet.nil? true end 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 4f3ebdc4c07..d94ef8ccc63 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 @@ -118,9 +118,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @interval.nil? - return false if @max.nil? - return false if @min.nil? return false if @interval.nil? return false if @max.nil? return false if @min.nil? 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 db8b3b22dbc..c0538a16385 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_compute.rb @@ -100,7 +100,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @aggregation_type.nil? return false if @aggregation_type.nil? true end 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 f0ce4c09218..f4ad6968ec4 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 @@ -111,7 +111,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @compute.nil? return false if @compute.nil? true end 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 b8cbcdfd4ad..71cf2ea4e74 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 @@ -117,9 +117,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @id.nil? - return false if @type.nil? return false if @attributes.nil? return false if @id.nil? return false if @type.nil? 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 df710025339..afa3b6c6d6f 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 ab40f0e732b..dff050f7d35 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 @@ -100,7 +100,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @path.nil? return false if @path.nil? true end 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 249eed308c4..93421fe9dd1 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 @@ -105,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true 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 1d3f4423303..ac7db316ede 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 fe38f2a6a38..3e0e2fdb5cb 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb @@ -103,8 +103,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @space.nil? - return false if @time.nil? return false if @space.nil? return false if @time.nil? true 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 2f583d7bb11..7612286dbad 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 @@ -147,8 +147,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @metric_type.nil? - return false if @tags.nil? return false if @metric_type.nil? return false if @tags.nil? true 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 b700061fd64..5421c55e26e 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 @@ -114,8 +114,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @id.nil? - return false if @type.nil? return false if @id.nil? return false if @type.nil? true 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 f0357d46058..9f85a4c85e5 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 95005561af5..cf23b0eee8d 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 @@ -114,8 +114,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @id.nil? - return false if @type.nil? return false if @id.nil? return false if @type.nil? true 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 c5d3ba094ef..f4bd78b0f96 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end diff --git a/lib/datadog_api_client/v2/models/organization.rb b/lib/datadog_api_client/v2/models/organization.rb index b56d5be1a49..355442b83bc 100644 --- a/lib/datadog_api_client/v2/models/organization.rb +++ b/lib/datadog_api_client/v2/models/organization.rb @@ -111,7 +111,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? return false if @type.nil? true end diff --git a/lib/datadog_api_client/v2/models/permission.rb b/lib/datadog_api_client/v2/models/permission.rb index bf91a58d9f4..48744e6d6a1 100644 --- a/lib/datadog_api_client/v2/models/permission.rb +++ b/lib/datadog_api_client/v2/models/permission.rb @@ -111,7 +111,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? return false if @type.nil? true end 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 1aa3ca29632..5fabf0e8c3e 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 @@ -105,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @id.nil? - return false if @type.nil? return false if @id.nil? return false if @type.nil? true 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 bd7dd81c5aa..f04f5cf1d9b 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 @@ -93,7 +93,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 eef20d9bdff..e8d967b1ce2 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 7d51d464475..f1f301b94f6 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 @@ -105,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @id.nil? - return false if @type.nil? return false if @id.nil? return false if @type.nil? true 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 135a050decb..4d39be388ba 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organization.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organization.rb @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 b4fc5376873..c24ec566c04 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 @@ -105,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @id.nil? - return false if @type.nil? return false if @id.nil? return false if @type.nil? true 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 8cc445d88b9..90e1a005814 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organizations.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organizations.rb @@ -93,7 +93,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 105a25c4fed..cb1c1fdcfc0 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user.rb @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 004e60fb984..3ab1d97abee 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 @@ -105,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @id.nil? - return false if @type.nil? return false if @id.nil? return false if @type.nil? true 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 406a7cb0471..6586eea40cd 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_users.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_users.rb @@ -93,7 +93,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end diff --git a/lib/datadog_api_client/v2/models/role.rb b/lib/datadog_api_client/v2/models/role.rb index 2bf6672b430..1aec72b1d3c 100644 --- a/lib/datadog_api_client/v2/models/role.rb +++ b/lib/datadog_api_client/v2/models/role.rb @@ -120,7 +120,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? return false if @type.nil? true end diff --git a/lib/datadog_api_client/v2/models/role_clone.rb b/lib/datadog_api_client/v2/models/role_clone.rb index 054f4d908e1..a090dd2f50a 100644 --- a/lib/datadog_api_client/v2/models/role_clone.rb +++ b/lib/datadog_api_client/v2/models/role_clone.rb @@ -105,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true 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 7757d4d2849..14339345e80 100644 --- a/lib/datadog_api_client/v2/models/role_clone_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_clone_attributes.rb @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? return false if @name.nil? true end 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 7d25eea7010..3c9eddae514 100644 --- a/lib/datadog_api_client/v2/models/role_clone_request.rb +++ b/lib/datadog_api_client/v2/models/role_clone_request.rb @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 2e0b8b69caf..74188ef91a9 100644 --- a/lib/datadog_api_client/v2/models/role_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_create_attributes.rb @@ -109,7 +109,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? return false if @name.nil? true end 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 ebf8729856f..47ff5f291bf 100644 --- a/lib/datadog_api_client/v2/models/role_create_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_data.rb @@ -111,7 +111,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? return false if @attributes.nil? true end 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 bb674efbda6..79fb68a3687 100644 --- a/lib/datadog_api_client/v2/models/role_create_request.rb +++ b/lib/datadog_api_client/v2/models/role_create_request.rb @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 cc8277dbfd0..652c14c4d25 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 @@ -120,7 +120,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? return false if @type.nil? true end 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 fd781d4a248..e087aab6a6e 100644 --- a/lib/datadog_api_client/v2/models/role_update_data.rb +++ b/lib/datadog_api_client/v2/models/role_update_data.rb @@ -117,9 +117,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @id.nil? - return false if @type.nil? return false if @attributes.nil? return false if @id.nil? return false if @type.nil? 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 c822027b475..8a1fc4b2f76 100644 --- a/lib/datadog_api_client/v2/models/role_update_request.rb +++ b/lib/datadog_api_client/v2/models/role_update_request.rb @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 8631623b8df..d797e2fd81a 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 @@ -120,7 +120,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @type.nil? return false if @type.nil? true end 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 d4b6796977d..22d3c73f774 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 @@ -141,11 +141,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @exclusion_filters.nil? - return false if @filtered_data_type.nil? - return false if @is_enabled.nil? - return false if @name.nil? - return false if @query.nil? return false if @exclusion_filters.nil? return false if @filtered_data_type.nil? return false if @is_enabled.nil? 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 54cfd308283..855cd03f203 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 @@ -105,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true 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 93436ff88fa..9c7a7025a86 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 6ce2955ed0d..efd7c3f2d26 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,8 +103,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @name.nil? - return false if @query.nil? return false if @name.nil? return false if @query.nil? true 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 e85ff4ee62a..31064de1467 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 @@ -105,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true 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 e5d7f9f2150..0cfb67ffd96 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 538f0536096..6311143f2c4 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 @@ -121,7 +121,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @status.nil? return false if @status.nil? true end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb index f5420ede378..213a3033990 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb @@ -195,12 +195,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @cases.nil? - return false if @is_enabled.nil? - return false if @message.nil? - return false if @name.nil? - return false if @options.nil? - return false if @queries.nil? return false if @cases.nil? return false if @is_enabled.nil? return false if @message.nil? diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb index 776a08d2072..bf82e2493b6 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb @@ -141,7 +141,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @query.nil? return false if @query.nil? true end 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 d220c981207..bf16972b9bd 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,8 +121,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @email.nil? - return false if @service_account.nil? return false if @email.nil? return false if @service_account.nil? true 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 1935d14a04e..d7b27c583b2 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 @@ -114,8 +114,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true 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 9a15fbd17b5..da94101f50d 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 @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 66a5167190c..273bb7319cf 100644 --- a/lib/datadog_api_client/v2/models/user_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_create_attributes.rb @@ -109,7 +109,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @email.nil? return false if @email.nil? true end 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 963ce89b982..5b38f1c3258 100644 --- a/lib/datadog_api_client/v2/models/user_create_data.rb +++ b/lib/datadog_api_client/v2/models/user_create_data.rb @@ -114,8 +114,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @type.nil? return false if @attributes.nil? return false if @type.nil? true 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 beacf44e652..38c5417e934 100644 --- a/lib/datadog_api_client/v2/models/user_create_request.rb +++ b/lib/datadog_api_client/v2/models/user_create_request.rb @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 7b04fac8aa5..253bfd6e3d0 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_data.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_data.rb @@ -105,8 +105,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @relationships.nil? - return false if @type.nil? return false if @relationships.nil? return false if @type.nil? true 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 9ddcd40c145..2853584f0f2 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_relationships.rb @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @user.nil? return false if @user.nil? true end 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 f712d3cf0d2..603d4d82815 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_request.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_request.rb @@ -93,7 +93,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end 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 3eb9a3bb721..15302478290 100644 --- a/lib/datadog_api_client/v2/models/user_update_data.rb +++ b/lib/datadog_api_client/v2/models/user_update_data.rb @@ -117,9 +117,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @attributes.nil? - return false if @id.nil? - return false if @type.nil? return false if @attributes.nil? return false if @id.nil? return false if @type.nil? 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 a90df500874..5bd73becfb9 100644 --- a/lib/datadog_api_client/v2/models/user_update_request.rb +++ b/lib/datadog_api_client/v2/models/user_update_request.rb @@ -91,7 +91,6 @@ def list_invalid_properties # @return true if the model is valid # @!visibility private def valid? - return false if @data.nil? return false if @data.nil? true end From 35cabb6f9e42a479459814c26dd3003c3784f181 Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Mon, 7 Feb 2022 12:21:29 +0100 Subject: [PATCH 14/23] better comments --- .../src/generator/templates/model_generic.j2 | 2 +- .../models/alert_graph_widget_definition.rb | 14 +- .../models/alert_value_widget_definition.rb | 16 +-- .../v1/models/api_error_response.rb | 2 +- lib/datadog_api_client/v1/models/api_key.rb | 8 +- .../v1/models/api_key_list_response.rb | 2 +- .../v1/models/api_key_response.rb | 2 +- .../v1/models/apm_stats_query_column_type.rb | 8 +- .../v1/models/apm_stats_query_definition.rb | 14 +- .../v1/models/application_key.rb | 6 +- .../models/application_key_list_response.rb | 2 +- .../v1/models/application_key_response.rb | 2 +- .../authentication_validation_response.rb | 2 +- .../v1/models/aws_account.rb | 22 +-- .../models/aws_account_and_lambda_request.rb | 4 +- .../v1/models/aws_account_create_response.rb | 2 +- .../v1/models/aws_account_delete_request.rb | 6 +- .../v1/models/aws_account_list_response.rb | 2 +- .../v1/models/aws_logs_async_error.rb | 4 +- .../v1/models/aws_logs_async_response.rb | 4 +- .../v1/models/aws_logs_lambda.rb | 2 +- .../v1/models/aws_logs_list_response.rb | 6 +- .../models/aws_logs_list_services_response.rb | 4 +- .../v1/models/aws_logs_services_request.rb | 4 +- .../v1/models/aws_tag_filter.rb | 4 +- .../models/aws_tag_filter_create_request.rb | 6 +- .../models/aws_tag_filter_delete_request.rb | 4 +- .../v1/models/aws_tag_filter_list_response.rb | 2 +- .../v1/models/azure_account.rb | 16 +-- .../cancel_downtimes_by_scope_request.rb | 2 +- .../v1/models/canceled_downtimes_ids.rb | 2 +- .../v1/models/change_widget_definition.rb | 16 +-- .../v1/models/change_widget_request.rb | 36 ++--- .../check_can_delete_monitor_response.rb | 4 +- .../check_can_delete_monitor_response_data.rb | 2 +- .../models/check_can_delete_slo_response.rb | 4 +- .../check_can_delete_slo_response_data.rb | 2 +- .../models/check_status_widget_definition.rb | 20 +-- lib/datadog_api_client/v1/models/creator.rb | 6 +- lib/datadog_api_client/v1/models/dashboard.rb | 32 ++--- .../v1/models/dashboard_bulk_action_data.rb | 4 +- .../models/dashboard_bulk_delete_request.rb | 2 +- .../v1/models/dashboard_delete_response.rb | 2 +- .../v1/models/dashboard_list.rb | 16 +-- .../models/dashboard_list_delete_response.rb | 2 +- .../v1/models/dashboard_list_list_response.rb | 2 +- .../v1/models/dashboard_restore_request.rb | 2 +- .../v1/models/dashboard_summary.rb | 2 +- .../v1/models/dashboard_summary_definition.rb | 18 +-- .../v1/models/dashboard_template_variable.rb | 8 +- .../dashboard_template_variable_preset.rb | 4 +- ...ashboard_template_variable_preset_value.rb | 4 +- .../v1/models/deleted_monitor.rb | 2 +- .../models/distribution_widget_definition.rb | 24 ++-- .../v1/models/distribution_widget_request.rb | 22 +-- .../v1/models/distribution_widget_x_axis.rb | 8 +- .../v1/models/distribution_widget_y_axis.rb | 10 +- lib/datadog_api_client/v1/models/downtime.rb | 34 ++--- .../v1/models/downtime_child.rb | 32 ++--- .../v1/models/downtime_recurrence.rb | 14 +- lib/datadog_api_client/v1/models/event.rb | 26 ++-- .../v1/models/event_create_request.rb | 22 +-- .../v1/models/event_create_response.rb | 28 ++-- .../v1/models/event_list_response.rb | 4 +- .../v1/models/event_query_definition.rb | 4 +- .../v1/models/event_response.rb | 4 +- .../models/event_stream_widget_definition.rb | 16 +-- .../event_timeline_widget_definition.rb | 14 +- ...n_apm_dependency_stats_query_definition.rb | 20 +-- ...ion_apm_resource_stats_query_definition.rb | 20 +-- ...ula_and_function_event_query_definition.rb | 12 +- ...function_event_query_definition_compute.rb | 6 +- ..._function_event_query_definition_search.rb | 2 +- ...rmula_and_function_event_query_group_by.rb | 6 +- ..._and_function_event_query_group_by_sort.rb | 6 +- ...la_and_function_metric_query_definition.rb | 8 +- ...a_and_function_process_query_definition.rb | 18 +-- .../v1/models/free_text_widget_definition.rb | 10 +- .../v1/models/funnel_query.rb | 6 +- .../v1/models/funnel_query_steps_item.rb | 4 +- .../v1/models/funnel_widget_definition.rb | 12 +- .../v1/models/funnel_widget_request.rb | 4 +- .../v1/models/gcp_account.rb | 26 ++-- .../v1/models/geomap_widget_definition.rb | 20 +-- .../models/geomap_widget_definition_style.rb | 4 +- .../models/geomap_widget_definition_view.rb | 2 +- .../v1/models/geomap_widget_request.rb | 14 +- .../v1/models/graph_snapshot.rb | 6 +- .../v1/models/group_widget_definition.rb | 16 +-- .../v1/models/heat_map_widget_definition.rb | 22 +-- .../v1/models/heat_map_widget_request.rb | 20 +-- lib/datadog_api_client/v1/models/host.rb | 28 ++-- .../v1/models/host_list_response.rb | 6 +- .../v1/models/host_map_request.rb | 18 +-- .../v1/models/host_map_widget_definition.rb | 26 ++-- .../host_map_widget_definition_requests.rb | 4 +- .../host_map_widget_definition_style.rb | 8 +- lib/datadog_api_client/v1/models/host_meta.rb | 30 ++-- .../v1/models/host_meta_install_method.rb | 6 +- .../v1/models/host_metrics.rb | 6 +- .../v1/models/host_mute_response.rb | 8 +- .../v1/models/host_mute_settings.rb | 6 +- lib/datadog_api_client/v1/models/host_tags.rb | 4 +- .../v1/models/host_totals.rb | 4 +- .../models/hourly_usage_attribution_body.rb | 16 +-- .../hourly_usage_attribution_metadata.rb | 2 +- .../hourly_usage_attribution_pagination.rb | 2 +- .../hourly_usage_attribution_response.rb | 4 +- .../v1/models/http_log_error.rb | 4 +- .../v1/models/http_log_item.rb | 10 +- .../v1/models/i_frame_widget_definition.rb | 4 +- .../v1/models/idp_form_data.rb | 2 +- .../v1/models/idp_response.rb | 2 +- .../v1/models/image_widget_definition.rb | 18 +-- .../v1/models/intake_payload_accepted.rb | 2 +- .../v1/models/ip_prefixes_agents.rb | 4 +- .../v1/models/ip_prefixes_api.rb | 4 +- .../v1/models/ip_prefixes_apm.rb | 4 +- .../v1/models/ip_prefixes_logs.rb | 4 +- .../v1/models/ip_prefixes_process.rb | 4 +- .../v1/models/ip_prefixes_synthetics.rb | 8 +- .../v1/models/ip_prefixes_webhooks.rb | 4 +- lib/datadog_api_client/v1/models/ip_ranges.rb | 18 +-- .../v1/models/list_stream_column.rb | 4 +- .../v1/models/list_stream_query.rb | 6 +- .../models/list_stream_widget_definition.rb | 16 +-- .../v1/models/list_stream_widget_request.rb | 6 +- lib/datadog_api_client/v1/models/log.rb | 4 +- .../v1/models/log_content.rb | 12 +- .../v1/models/log_query_definition.rb | 10 +- .../models/log_query_definition_group_by.rb | 6 +- .../log_query_definition_group_by_sort.rb | 6 +- .../v1/models/log_query_definition_search.rb | 2 +- .../v1/models/log_stream_widget_definition.rb | 26 ++-- .../v1/models/logs_api_error.rb | 6 +- .../v1/models/logs_api_error_response.rb | 2 +- .../v1/models/logs_arithmetic_processor.rb | 12 +- .../v1/models/logs_attribute_remapper.rb | 20 +-- .../v1/models/logs_by_retention.rb | 6 +- .../models/logs_by_retention_monthly_usage.rb | 4 +- .../v1/models/logs_by_retention_org_usage.rb | 2 +- .../v1/models/logs_by_retention_orgs.rb | 2 +- .../v1/models/logs_category_processor.rb | 10 +- .../logs_category_processor_category.rb | 4 +- .../v1/models/logs_date_remapper.rb | 8 +- .../v1/models/logs_exclusion.rb | 6 +- .../v1/models/logs_exclusion_filter.rb | 4 +- .../v1/models/logs_filter.rb | 2 +- .../v1/models/logs_geo_ip_parser.rb | 10 +- .../v1/models/logs_grok_parser.rb | 12 +- .../v1/models/logs_grok_parser_rules.rb | 4 +- .../v1/models/logs_index.rb | 12 +- .../v1/models/logs_index_list_response.rb | 2 +- .../v1/models/logs_index_update_request.rb | 12 +- .../v1/models/logs_indexes_order.rb | 2 +- .../v1/models/logs_list_request.rb | 14 +- .../v1/models/logs_list_request_time.rb | 6 +- .../v1/models/logs_list_response.rb | 6 +- .../v1/models/logs_lookup_processor.rb | 14 +- .../v1/models/logs_message_remapper.rb | 8 +- .../v1/models/logs_pipeline.rb | 14 +- .../v1/models/logs_pipeline_processor.rb | 10 +- .../v1/models/logs_pipelines_order.rb | 2 +- .../v1/models/logs_query_compute.rb | 6 +- .../v1/models/logs_retention_agg_sum_usage.rb | 8 +- .../v1/models/logs_retention_sum_usage.rb | 8 +- .../v1/models/logs_service_remapper.rb | 8 +- .../v1/models/logs_status_remapper.rb | 8 +- .../models/logs_string_builder_processor.rb | 12 +- .../v1/models/logs_trace_remapper.rb | 8 +- .../v1/models/logs_url_parser.rb | 12 +- .../v1/models/logs_user_agent_parser.rb | 12 +- .../v1/models/metric_metadata.rb | 14 +- .../v1/models/metric_search_response.rb | 2 +- .../models/metric_search_response_results.rb | 2 +- .../v1/models/metrics_list_response.rb | 4 +- .../v1/models/metrics_payload.rb | 2 +- .../v1/models/metrics_query_metadata.rb | 26 ++-- .../v1/models/metrics_query_response.rb | 18 +-- .../v1/models/metrics_query_unit.rb | 10 +- lib/datadog_api_client/v1/models/monitor.rb | 32 ++--- ...ula_and_function_event_query_definition.rb | 12 +- ...function_event_query_definition_compute.rb | 6 +- ..._function_event_query_definition_search.rb | 2 +- ...rmula_and_function_event_query_group_by.rb | 6 +- ..._and_function_event_query_group_by_sort.rb | 6 +- .../models/monitor_group_search_response.rb | 6 +- .../monitor_group_search_response_counts.rb | 4 +- ...roup_search_response_counts_status_item.rb | 4 +- ..._group_search_response_counts_type_item.rb | 4 +- .../v1/models/monitor_group_search_result.rb | 14 +- .../v1/models/monitor_options.rb | 58 ++++---- .../v1/models/monitor_options_aggregation.rb | 6 +- .../v1/models/monitor_search_response.rb | 6 +- .../models/monitor_search_response_counts.rb | 8 +- ...nitor_search_response_counts_muted_item.rb | 4 +- ...itor_search_response_counts_status_item.rb | 4 +- ...monitor_search_response_counts_tag_item.rb | 4 +- ...onitor_search_response_counts_type_item.rb | 4 +- .../monitor_search_response_metadata.rb | 8 +- .../v1/models/monitor_search_result.rb | 26 ++-- .../monitor_search_result_notification.rb | 4 +- .../v1/models/monitor_state.rb | 2 +- .../v1/models/monitor_state_group.rb | 12 +- .../monitor_summary_widget_definition.rb | 26 ++-- .../monitor_threshold_window_options.rb | 4 +- .../v1/models/monitor_thresholds.rb | 12 +- .../v1/models/monitor_update_request.rb | 32 ++--- .../models/monthly_usage_attribution_body.rb | 14 +- .../monthly_usage_attribution_metadata.rb | 4 +- .../monthly_usage_attribution_pagination.rb | 2 +- .../monthly_usage_attribution_response.rb | 4 +- .../monthly_usage_attribution_values.rb | 56 ++++---- .../v1/models/note_widget_definition.rb | 20 +-- .../v1/models/notebook_absolute_time.rb | 6 +- .../v1/models/notebook_author.rb | 18 +-- .../v1/models/notebook_cell_create_request.rb | 4 +- .../v1/models/notebook_cell_response.rb | 6 +- .../v1/models/notebook_cell_update_request.rb | 6 +- .../v1/models/notebook_create_data.rb | 4 +- .../models/notebook_create_data_attributes.rb | 10 +- .../v1/models/notebook_create_request.rb | 2 +- .../notebook_distribution_cell_attributes.rb | 8 +- .../notebook_heat_map_cell_attributes.rb | 8 +- .../notebook_log_stream_cell_attributes.rb | 6 +- .../notebook_markdown_cell_attributes.rb | 2 +- .../notebook_markdown_cell_definition.rb | 4 +- .../v1/models/notebook_metadata.rb | 6 +- .../v1/models/notebook_relative_time.rb | 2 +- .../v1/models/notebook_response.rb | 2 +- .../v1/models/notebook_response_data.rb | 6 +- .../notebook_response_data_attributes.rb | 16 +-- .../v1/models/notebook_split_by.rb | 4 +- .../notebook_timeseries_cell_attributes.rb | 8 +- .../notebook_toplist_cell_attributes.rb | 8 +- .../v1/models/notebook_update_data.rb | 4 +- .../models/notebook_update_data_attributes.rb | 10 +- .../v1/models/notebook_update_request.rb | 2 +- .../v1/models/notebooks_response.rb | 4 +- .../v1/models/notebooks_response_data.rb | 6 +- .../notebooks_response_data_attributes.rb | 16 +-- .../v1/models/notebooks_response_meta.rb | 2 +- .../v1/models/notebooks_response_page.rb | 4 +- .../v1/models/organization.rb | 14 +- .../v1/models/organization_billing.rb | 2 +- .../v1/models/organization_create_body.rb | 6 +- .../v1/models/organization_create_response.rb | 8 +- .../v1/models/organization_list_response.rb | 2 +- .../v1/models/organization_response.rb | 2 +- .../v1/models/organization_settings.rb | 20 +-- .../v1/models/organization_settings_saml.rb | 2 +- ..._settings_saml_autocreate_users_domains.rb | 4 +- ...ation_settings_saml_idp_initiated_login.rb | 2 +- .../organization_settings_saml_strict_mode.rb | 2 +- .../v1/models/organization_subscription.rb | 2 +- .../v1/models/pager_duty_service.rb | 4 +- .../v1/models/pager_duty_service_key.rb | 2 +- .../v1/models/pager_duty_service_name.rb | 2 +- .../v1/models/pagination.rb | 4 +- .../v1/models/process_query_definition.rb | 8 +- .../models/query_value_widget_definition.rb | 22 +-- .../v1/models/query_value_widget_request.rb | 30 ++-- .../v1/models/response_meta_attributes.rb | 2 +- .../v1/models/scatter_plot_request.rb | 20 +-- .../models/scatter_plot_widget_definition.rb | 20 +-- ...scatter_plot_widget_definition_requests.rb | 6 +- .../v1/models/scatterplot_table_request.rb | 6 +- .../v1/models/scatterplot_widget_formula.rb | 6 +- lib/datadog_api_client/v1/models/series.rb | 12 +- .../v1/models/service_check.rb | 12 +- .../v1/models/service_level_objective.rb | 36 ++--- .../models/service_level_objective_query.rb | 4 +- .../models/service_level_objective_request.rb | 20 +-- .../models/service_map_widget_definition.rb | 14 +- .../service_summary_widget_definition.rb | 32 ++--- .../v1/models/slack_integration_channel.rb | 4 +- .../slack_integration_channel_display.rb | 8 +- .../v1/models/slo_bulk_delete_error.rb | 6 +- .../v1/models/slo_bulk_delete_response.rb | 4 +- .../models/slo_bulk_delete_response_data.rb | 4 +- .../v1/models/slo_correction.rb | 6 +- .../v1/models/slo_correction_create_data.rb | 4 +- .../models/slo_correction_create_request.rb | 2 +- ...lo_correction_create_request_attributes.rb | 16 +-- .../v1/models/slo_correction_list_response.rb | 4 +- .../v1/models/slo_correction_response.rb | 2 +- .../slo_correction_response_attributes.rb | 24 ++-- ...correction_response_attributes_modifier.rb | 6 +- .../v1/models/slo_correction_update_data.rb | 4 +- .../models/slo_correction_update_request.rb | 2 +- ...lo_correction_update_request_attributes.rb | 14 +- .../v1/models/slo_delete_response.rb | 4 +- .../v1/models/slo_history_metrics.rb | 16 +-- .../v1/models/slo_history_metrics_series.rb | 8 +- .../slo_history_metrics_series_metadata.rb | 12 +- ...lo_history_metrics_series_metadata_unit.rb | 12 +- .../v1/models/slo_history_monitor.rb | 24 ++-- .../v1/models/slo_history_response.rb | 4 +- .../v1/models/slo_history_response_data.rb | 28 ++-- .../v1/models/slo_history_response_error.rb | 2 +- .../slo_history_response_error_with_type.rb | 4 +- .../v1/models/slo_history_sli_data.rb | 24 ++-- .../v1/models/slo_list_response.rb | 6 +- .../v1/models/slo_list_response_metadata.rb | 2 +- .../models/slo_list_response_metadata_page.rb | 4 +- .../v1/models/slo_response.rb | 4 +- .../v1/models/slo_response_data.rb | 38 ++--- .../v1/models/slo_threshold.rb | 14 +- .../v1/models/slo_widget_definition.rb | 20 +-- .../v1/models/sunburst_widget_definition.rb | 18 +-- ...sunburst_widget_legend_inline_automatic.rb | 6 +- .../v1/models/sunburst_widget_legend_table.rb | 2 +- .../v1/models/sunburst_widget_request.rb | 26 ++-- .../v1/models/synthetics_api_step.rb | 16 +-- .../v1/models/synthetics_api_test.rb | 22 +-- .../v1/models/synthetics_api_test_config.rb | 8 +- .../models/synthetics_api_test_result_data.rb | 18 +-- .../synthetics_api_test_result_failure.rb | 4 +- .../models/synthetics_api_test_result_full.rb | 14 +- .../synthetics_api_test_result_full_check.rb | 2 +- .../synthetics_api_test_result_short.rb | 10 +- ...synthetics_api_test_result_short_result.rb | 4 +- .../synthetics_assertion_json_path_target.rb | 8 +- ...etics_assertion_json_path_target_target.rb | 6 +- .../v1/models/synthetics_assertion_target.rb | 8 +- .../v1/models/synthetics_basic_auth_ntlm.rb | 10 +- .../v1/models/synthetics_basic_auth_sigv4.rb | 12 +- .../v1/models/synthetics_basic_auth_web.rb | 6 +- .../v1/models/synthetics_batch_details.rb | 2 +- .../models/synthetics_batch_details_data.rb | 6 +- .../v1/models/synthetics_batch_result.rb | 20 +-- .../v1/models/synthetics_browser_error.rb | 8 +- .../v1/models/synthetics_browser_test.rb | 22 +-- .../models/synthetics_browser_test_config.rb | 10 +- .../synthetics_browser_test_result_data.rb | 24 ++-- .../synthetics_browser_test_result_failure.rb | 4 +- .../synthetics_browser_test_result_full.rb | 14 +- ...nthetics_browser_test_result_full_check.rb | 2 +- .../synthetics_browser_test_result_short.rb | 10 +- ...hetics_browser_test_result_short_result.rb | 10 +- .../v1/models/synthetics_browser_variable.rb | 10 +- .../v1/models/synthetics_ci_batch_metadata.rb | 4 +- .../models/synthetics_ci_batch_metadata_ci.rb | 4 +- .../synthetics_ci_batch_metadata_git.rb | 4 +- .../synthetics_ci_batch_metadata_pipeline.rb | 2 +- .../synthetics_ci_batch_metadata_provider.rb | 2 +- .../v1/models/synthetics_ci_test.rb | 28 ++-- .../v1/models/synthetics_ci_test_body.rb | 2 +- .../v1/models/synthetics_config_variable.rb | 10 +- .../v1/models/synthetics_core_web_vitals.rb | 6 +- .../models/synthetics_delete_tests_payload.rb | 2 +- .../synthetics_delete_tests_response.rb | 2 +- .../v1/models/synthetics_deleted_test.rb | 4 +- .../v1/models/synthetics_device.rb | 10 +- ...cs_get_api_test_latest_results_response.rb | 4 +- ...et_browser_test_latest_results_response.rb | 4 +- .../v1/models/synthetics_global_variable.rb | 16 +-- .../synthetics_global_variable_attributes.rb | 2 +- ...tics_global_variable_parse_test_options.rb | 6 +- .../synthetics_global_variable_value.rb | 4 +- ...nthetics_list_global_variables_response.rb | 2 +- .../models/synthetics_list_tests_response.rb | 2 +- .../v1/models/synthetics_location.rb | 4 +- .../v1/models/synthetics_locations.rb | 2 +- .../v1/models/synthetics_parsing_options.rb | 8 +- .../v1/models/synthetics_private_location.rb | 10 +- ...tics_private_location_creation_response.rb | 6 +- ...ion_creation_response_result_encryption.rb | 4 +- .../synthetics_private_location_secrets.rb | 4 +- ...private_location_secrets_authentication.rb | 4 +- ...vate_location_secrets_config_decryption.rb | 2 +- .../v1/models/synthetics_ssl_certificate.rb | 24 ++-- .../synthetics_ssl_certificate_issuer.rb | 12 +- .../synthetics_ssl_certificate_subject.rb | 14 +- .../v1/models/synthetics_step.rb | 10 +- .../v1/models/synthetics_step_detail.rb | 34 ++--- .../models/synthetics_step_detail_warning.rb | 4 +- .../v1/models/synthetics_test_config.rb | 8 +- .../v1/models/synthetics_test_details.rb | 26 ++-- .../v1/models/synthetics_test_options.rb | 26 ++-- ...synthetics_test_options_monitor_options.rb | 2 +- .../models/synthetics_test_options_retry.rb | 4 +- .../v1/models/synthetics_test_request.rb | 40 +++--- .../synthetics_test_request_certificate.rb | 4 +- ...ynthetics_test_request_certificate_item.rb | 6 +- .../models/synthetics_test_request_proxy.rb | 4 +- .../v1/models/synthetics_timing.rb | 18 +-- .../v1/models/synthetics_trigger_body.rb | 2 +- .../synthetics_trigger_ci_test_location.rb | 4 +- .../synthetics_trigger_ci_test_run_result.rb | 8 +- .../synthetics_trigger_ci_tests_response.rb | 8 +- .../v1/models/synthetics_trigger_test.rb | 4 +- ...hetics_update_test_pause_status_payload.rb | 2 +- .../v1/models/synthetics_variable_parser.rb | 4 +- .../v1/models/table_widget_definition.rb | 16 +-- .../v1/models/table_widget_request.rb | 38 ++--- .../v1/models/tag_to_hosts.rb | 2 +- .../v1/models/timeseries_widget_definition.rb | 30 ++-- .../timeseries_widget_expression_alias.rb | 4 +- .../v1/models/timeseries_widget_request.rb | 34 ++--- .../v1/models/toplist_widget_definition.rb | 14 +- .../v1/models/toplist_widget_request.rb | 30 ++-- .../v1/models/tree_map_widget_definition.rb | 12 +- .../v1/models/tree_map_widget_request.rb | 8 +- .../v1/models/usage_analyzed_logs_hour.rb | 8 +- .../v1/models/usage_analyzed_logs_response.rb | 2 +- .../usage_attribution_aggregates_body.rb | 6 +- .../v1/models/usage_attribution_body.rb | 14 +- .../v1/models/usage_attribution_metadata.rb | 4 +- .../v1/models/usage_attribution_pagination.rb | 10 +- .../v1/models/usage_attribution_response.rb | 4 +- .../v1/models/usage_attribution_values.rb | 84 +++++------ .../v1/models/usage_audit_logs_hour.rb | 8 +- .../v1/models/usage_audit_logs_response.rb | 2 +- .../v1/models/usage_billable_summary_body.rb | 14 +- .../v1/models/usage_billable_summary_hour.rb | 16 +-- .../v1/models/usage_billable_summary_keys.rb | 64 ++++----- .../models/usage_billable_summary_response.rb | 2 +- ..._cloud_security_posture_management_hour.rb | 16 +-- ...ud_security_posture_management_response.rb | 2 +- .../models/usage_custom_reports_attributes.rb | 10 +- .../v1/models/usage_custom_reports_data.rb | 6 +- .../v1/models/usage_custom_reports_meta.rb | 2 +- .../v1/models/usage_custom_reports_page.rb | 2 +- .../models/usage_custom_reports_response.rb | 4 +- .../v1/models/usage_cws_hour.rb | 10 +- .../v1/models/usage_cws_response.rb | 2 +- .../v1/models/usage_dbm_hour.rb | 10 +- .../v1/models/usage_dbm_response.rb | 2 +- .../v1/models/usage_fargate_hour.rb | 10 +- .../v1/models/usage_fargate_response.rb | 2 +- .../v1/models/usage_host_hour.rb | 28 ++-- .../v1/models/usage_hosts_response.rb | 2 +- .../models/usage_incident_management_hour.rb | 8 +- .../usage_incident_management_response.rb | 2 +- .../v1/models/usage_indexed_spans_hour.rb | 8 +- .../v1/models/usage_indexed_spans_response.rb | 2 +- .../v1/models/usage_ingested_spans_hour.rb | 8 +- .../models/usage_ingested_spans_response.rb | 2 +- .../v1/models/usage_io_t_hour.rb | 8 +- .../v1/models/usage_io_t_response.rb | 2 +- .../v1/models/usage_lambda_hour.rb | 6 +- .../v1/models/usage_lambda_response.rb | 2 +- .../v1/models/usage_logs_by_index_hour.rb | 10 +- .../v1/models/usage_logs_by_index_response.rb | 2 +- .../v1/models/usage_logs_by_retention_hour.rb | 8 +- .../usage_logs_by_retention_response.rb | 2 +- .../v1/models/usage_logs_hour.rb | 16 +-- .../v1/models/usage_logs_response.rb | 2 +- .../v1/models/usage_network_flows_hour.rb | 4 +- .../v1/models/usage_network_flows_response.rb | 2 +- .../v1/models/usage_network_hosts_hour.rb | 4 +- .../v1/models/usage_network_hosts_response.rb | 2 +- .../v1/models/usage_profiling_hour.rb | 10 +- .../v1/models/usage_profiling_response.rb | 2 +- .../v1/models/usage_rum_sessions_hour.rb | 14 +- .../v1/models/usage_rum_sessions_response.rb | 2 +- .../v1/models/usage_rum_units_hour.rb | 10 +- .../v1/models/usage_rum_units_response.rb | 2 +- .../v1/models/usage_sds_hour.rb | 10 +- .../v1/models/usage_sds_response.rb | 2 +- .../v1/models/usage_snmp_hour.rb | 8 +- .../v1/models/usage_snmp_response.rb | 2 +- ...age_specified_custom_reports_attributes.rb | 12 +- .../usage_specified_custom_reports_data.rb | 6 +- .../usage_specified_custom_reports_meta.rb | 2 +- .../usage_specified_custom_reports_page.rb | 2 +- ...usage_specified_custom_reports_response.rb | 4 +- .../v1/models/usage_summary_date.rb | 114 +++++++-------- .../v1/models/usage_summary_date_org.rb | 116 +++++++-------- .../v1/models/usage_summary_response.rb | 132 +++++++++--------- .../v1/models/usage_synthetics_api_hour.rb | 4 +- .../models/usage_synthetics_api_response.rb | 2 +- .../models/usage_synthetics_browser_hour.rb | 4 +- .../usage_synthetics_browser_response.rb | 2 +- .../v1/models/usage_synthetics_hour.rb | 4 +- .../v1/models/usage_synthetics_response.rb | 2 +- .../v1/models/usage_timeseries_hour.rb | 8 +- .../v1/models/usage_timeseries_response.rb | 2 +- .../v1/models/usage_top_avg_metrics_hour.rb | 8 +- .../models/usage_top_avg_metrics_metadata.rb | 6 +- .../models/usage_top_avg_metrics_response.rb | 4 +- lib/datadog_api_client/v1/models/user.rb | 14 +- .../v1/models/user_disable_response.rb | 2 +- .../v1/models/user_list_response.rb | 2 +- .../v1/models/user_response.rb | 2 +- .../v1/models/webhooks_integration.rb | 10 +- .../webhooks_integration_custom_variable.rb | 6 +- ...ks_integration_custom_variable_response.rb | 6 +- ...egration_custom_variable_update_request.rb | 6 +- .../webhooks_integration_update_request.rb | 10 +- lib/datadog_api_client/v1/models/widget.rb | 6 +- .../v1/models/widget_axis.rb | 10 +- .../v1/models/widget_conditional_format.rb | 18 +-- .../v1/models/widget_custom_link.rb | 8 +- .../v1/models/widget_event.rb | 4 +- .../v1/models/widget_field_sort.rb | 4 +- .../v1/models/widget_formula.rb | 10 +- .../v1/models/widget_formula_limit.rb | 4 +- .../v1/models/widget_layout.rb | 10 +- .../v1/models/widget_marker.rb | 10 +- .../v1/models/widget_request_style.rb | 6 +- .../v1/models/widget_style.rb | 2 +- .../v1/models/widget_time.rb | 2 +- .../v2/models/api_error_response.rb | 2 +- .../v2/models/api_key_create_attributes.rb | 2 +- .../v2/models/api_key_create_data.rb | 4 +- .../v2/models/api_key_create_request.rb | 2 +- .../v2/models/api_key_relationships.rb | 4 +- .../v2/models/api_key_response.rb | 4 +- .../v2/models/api_key_update_attributes.rb | 2 +- .../v2/models/api_key_update_data.rb | 6 +- .../v2/models/api_key_update_request.rb | 2 +- .../v2/models/api_keys_response.rb | 4 +- .../application_key_create_attributes.rb | 4 +- .../v2/models/application_key_create_data.rb | 4 +- .../models/application_key_create_request.rb | 2 +- .../models/application_key_relationships.rb | 2 +- .../v2/models/application_key_response.rb | 4 +- .../application_key_update_attributes.rb | 4 +- .../v2/models/application_key_update_data.rb | 6 +- .../models/application_key_update_request.rb | 2 +- ...workload_security_agent_rule_attributes.rb | 22 +-- ...d_security_agent_rule_create_attributes.rb | 8 +- ...orkload_security_agent_rule_create_data.rb | 4 +- ...load_security_agent_rule_create_request.rb | 2 +- ..._security_agent_rule_creator_attributes.rb | 4 +- ...cloud_workload_security_agent_rule_data.rb | 6 +- ...d_workload_security_agent_rule_response.rb | 2 +- ...d_security_agent_rule_update_attributes.rb | 6 +- ...orkload_security_agent_rule_update_data.rb | 4 +- ...load_security_agent_rule_update_request.rb | 2 +- ..._security_agent_rule_updater_attributes.rb | 4 +- ...load_security_agent_rules_list_response.rb | 2 +- lib/datadog_api_client/v2/models/creator.rb | 6 +- .../dashboard_list_add_items_request.rb | 2 +- .../dashboard_list_add_items_response.rb | 2 +- .../dashboard_list_delete_items_request.rb | 2 +- .../dashboard_list_delete_items_response.rb | 2 +- .../v2/models/dashboard_list_item.rb | 24 ++-- .../v2/models/dashboard_list_item_request.rb | 4 +- .../v2/models/dashboard_list_item_response.rb | 4 +- .../v2/models/dashboard_list_items.rb | 4 +- .../dashboard_list_update_items_request.rb | 2 +- .../dashboard_list_update_items_response.rb | 2 +- .../v2/models/full_api_key.rb | 8 +- .../v2/models/full_api_key_attributes.rb | 10 +- .../v2/models/full_application_key.rb | 8 +- .../models/full_application_key_attributes.rb | 10 +- .../v2/models/http_log_error.rb | 6 +- .../v2/models/http_log_errors.rb | 2 +- .../v2/models/http_log_item.rb | 10 +- .../v2/models/incident_create_attributes.rb | 10 +- .../v2/models/incident_create_data.rb | 6 +- .../models/incident_create_relationships.rb | 2 +- .../v2/models/incident_create_request.rb | 2 +- ...ncident_field_attributes_multiple_value.rb | 4 +- .../incident_field_attributes_single_value.rb | 4 +- .../v2/models/incident_notification_handle.rb | 4 +- .../v2/models/incident_response.rb | 4 +- .../v2/models/incident_response_attributes.rb | 36 ++--- .../v2/models/incident_response_data.rb | 8 +- .../models/incident_response_relationships.rb | 10 +- .../incident_service_create_attributes.rb | 2 +- .../v2/models/incident_service_create_data.rb | 6 +- .../models/incident_service_create_request.rb | 2 +- .../models/incident_service_relationships.rb | 4 +- .../v2/models/incident_service_response.rb | 4 +- .../incident_service_response_attributes.rb | 6 +- .../models/incident_service_response_data.rb | 8 +- .../incident_service_update_attributes.rb | 2 +- .../v2/models/incident_service_update_data.rb | 8 +- .../models/incident_service_update_request.rb | 2 +- .../v2/models/incident_services_response.rb | 6 +- .../models/incident_services_response_meta.rb | 2 +- ...ident_services_response_meta_pagination.rb | 6 +- .../models/incident_team_create_attributes.rb | 2 +- .../v2/models/incident_team_create_data.rb | 6 +- .../v2/models/incident_team_create_request.rb | 2 +- .../v2/models/incident_team_relationships.rb | 4 +- .../v2/models/incident_team_response.rb | 4 +- .../incident_team_response_attributes.rb | 6 +- .../v2/models/incident_team_response_data.rb | 8 +- .../models/incident_team_update_attributes.rb | 2 +- .../v2/models/incident_team_update_data.rb | 8 +- .../v2/models/incident_team_update_request.rb | 2 +- .../v2/models/incident_teams_response.rb | 6 +- .../v2/models/incident_teams_response_meta.rb | 2 +- ...incident_teams_response_meta_pagination.rb | 6 +- ...imeline_cell_markdown_create_attributes.rb | 6 +- ...cell_markdown_create_attributes_content.rb | 2 +- .../v2/models/incident_update_attributes.rb | 18 +-- .../v2/models/incident_update_data.rb | 8 +- .../models/incident_update_relationships.rb | 10 +- .../v2/models/incident_update_request.rb | 2 +- .../v2/models/incidents_response.rb | 6 +- .../v2/models/incidents_response_meta.rb | 2 +- .../incidents_response_meta_pagination.rb | 6 +- .../models/list_application_keys_response.rb | 4 +- lib/datadog_api_client/v2/models/log.rb | 6 +- .../v2/models/log_attributes.rb | 14 +- .../v2/models/logs_aggregate_bucket.rb | 4 +- ...aggregate_bucket_value_timeseries_point.rb | 4 +- .../v2/models/logs_aggregate_request.rb | 10 +- .../v2/models/logs_aggregate_request_page.rb | 2 +- .../v2/models/logs_aggregate_response.rb | 4 +- .../v2/models/logs_aggregate_response_data.rb | 2 +- .../v2/models/logs_aggregate_sort.rb | 8 +- .../v2/models/logs_archive.rb | 2 +- .../v2/models/logs_archive_attributes.rb | 12 +- .../v2/models/logs_archive_create_request.rb | 2 +- .../logs_archive_create_request_attributes.rb | 10 +- .../logs_archive_create_request_definition.rb | 4 +- .../v2/models/logs_archive_definition.rb | 6 +- .../models/logs_archive_destination_azure.rb | 12 +- .../v2/models/logs_archive_destination_gcs.rb | 8 +- .../v2/models/logs_archive_destination_s3.rb | 8 +- .../models/logs_archive_integration_azure.rb | 4 +- .../v2/models/logs_archive_integration_gcs.rb | 4 +- .../v2/models/logs_archive_integration_s3.rb | 4 +- .../v2/models/logs_archive_order.rb | 2 +- .../models/logs_archive_order_attributes.rb | 2 +- .../models/logs_archive_order_definition.rb | 4 +- .../v2/models/logs_archives.rb | 2 +- .../v2/models/logs_compute.rb | 8 +- .../v2/models/logs_group_by.rb | 12 +- .../v2/models/logs_group_by_histogram.rb | 6 +- .../v2/models/logs_list_request.rb | 8 +- .../v2/models/logs_list_request_page.rb | 4 +- .../v2/models/logs_list_response.rb | 6 +- .../v2/models/logs_list_response_links.rb | 2 +- .../v2/models/logs_metric_compute.rb | 4 +- .../models/logs_metric_create_attributes.rb | 6 +- .../v2/models/logs_metric_create_data.rb | 6 +- .../v2/models/logs_metric_create_request.rb | 2 +- .../v2/models/logs_metric_filter.rb | 2 +- .../v2/models/logs_metric_group_by.rb | 4 +- .../v2/models/logs_metric_response.rb | 2 +- .../models/logs_metric_response_attributes.rb | 6 +- .../v2/models/logs_metric_response_compute.rb | 4 +- .../v2/models/logs_metric_response_data.rb | 6 +- .../v2/models/logs_metric_response_filter.rb | 2 +- .../models/logs_metric_response_group_by.rb | 4 +- .../models/logs_metric_update_attributes.rb | 4 +- .../v2/models/logs_metric_update_data.rb | 4 +- .../v2/models/logs_metric_update_request.rb | 2 +- .../v2/models/logs_metrics_response.rb | 2 +- .../v2/models/logs_query_filter.rb | 8 +- .../v2/models/logs_query_options.rb | 4 +- .../v2/models/logs_response_metadata.rb | 10 +- .../v2/models/logs_response_metadata_page.rb | 2 +- .../v2/models/logs_warning.rb | 6 +- lib/datadog_api_client/v2/models/metric.rb | 4 +- .../v2/models/metric_all_tags.rb | 6 +- .../v2/models/metric_all_tags_attributes.rb | 2 +- .../v2/models/metric_all_tags_response.rb | 2 +- .../v2/models/metric_custom_aggregation.rb | 4 +- .../v2/models/metric_distinct_volume.rb | 6 +- .../metric_distinct_volume_attributes.rb | 2 +- .../models/metric_ingested_indexed_volume.rb | 6 +- ...tric_ingested_indexed_volume_attributes.rb | 4 +- .../v2/models/metric_tag_configuration.rb | 6 +- .../metric_tag_configuration_attributes.rb | 16 +-- ...ric_tag_configuration_create_attributes.rb | 12 +- .../metric_tag_configuration_create_data.rb | 6 +- ...metric_tag_configuration_create_request.rb | 2 +- .../metric_tag_configuration_response.rb | 2 +- ...ric_tag_configuration_update_attributes.rb | 10 +- .../metric_tag_configuration_update_data.rb | 6 +- ...metric_tag_configuration_update_request.rb | 2 +- .../v2/models/metric_volumes_response.rb | 2 +- ..._and_metric_tag_configurations_response.rb | 2 +- .../v2/models/organization.rb | 6 +- .../v2/models/organization_attributes.rb | 16 +-- .../v2/models/pagination.rb | 4 +- .../v2/models/partial_api_key.rb | 8 +- .../v2/models/partial_api_key_attributes.rb | 8 +- .../v2/models/partial_application_key.rb | 8 +- .../partial_application_key_attributes.rb | 8 +- .../partial_application_key_response.rb | 4 +- .../v2/models/permission.rb | 6 +- .../v2/models/permission_attributes.rb | 14 +- .../v2/models/permissions_response.rb | 2 +- .../v2/models/process_summaries_meta.rb | 2 +- .../v2/models/process_summaries_meta_page.rb | 4 +- .../v2/models/process_summaries_response.rb | 4 +- .../v2/models/process_summary.rb | 6 +- .../v2/models/process_summary_attributes.rb | 16 +-- ...p_to_incident_integration_metadata_data.rb | 4 +- ...nship_to_incident_integration_metadatas.rb | 2 +- .../relationship_to_incident_postmortem.rb | 2 +- ...elationship_to_incident_postmortem_data.rb | 4 +- .../v2/models/relationship_to_organization.rb | 2 +- .../relationship_to_organization_data.rb | 4 +- .../models/relationship_to_organizations.rb | 2 +- .../v2/models/relationship_to_permission.rb | 2 +- .../models/relationship_to_permission_data.rb | 4 +- .../v2/models/relationship_to_permissions.rb | 2 +- .../v2/models/relationship_to_role.rb | 2 +- .../v2/models/relationship_to_role_data.rb | 4 +- .../v2/models/relationship_to_roles.rb | 2 +- .../v2/models/relationship_to_user.rb | 2 +- .../v2/models/relationship_to_user_data.rb | 4 +- .../v2/models/relationship_to_users.rb | 2 +- .../v2/models/response_meta_attributes.rb | 2 +- lib/datadog_api_client/v2/models/role.rb | 8 +- .../v2/models/role_attributes.rb | 8 +- .../v2/models/role_clone.rb | 4 +- .../v2/models/role_clone_attributes.rb | 2 +- .../v2/models/role_clone_request.rb | 2 +- .../v2/models/role_create_attributes.rb | 6 +- .../v2/models/role_create_data.rb | 6 +- .../v2/models/role_create_request.rb | 2 +- .../v2/models/role_create_response.rb | 2 +- .../v2/models/role_create_response_data.rb | 8 +- .../v2/models/role_relationships.rb | 4 +- .../v2/models/role_response.rb | 2 +- .../v2/models/role_response_relationships.rb | 2 +- .../v2/models/role_update_attributes.rb | 6 +- .../v2/models/role_update_data.rb | 6 +- .../v2/models/role_update_request.rb | 2 +- .../v2/models/role_update_response.rb | 2 +- .../v2/models/role_update_response_data.rb | 8 +- .../v2/models/roles_response.rb | 4 +- .../v2/models/security_filter.rb | 6 +- .../v2/models/security_filter_attributes.rb | 14 +- .../security_filter_create_attributes.rb | 10 +- .../v2/models/security_filter_create_data.rb | 4 +- .../models/security_filter_create_request.rb | 2 +- .../security_filter_exclusion_filter.rb | 4 +- ...curity_filter_exclusion_filter_response.rb | 4 +- .../v2/models/security_filter_meta.rb | 2 +- .../v2/models/security_filter_response.rb | 4 +- .../security_filter_update_attributes.rb | 12 +- .../v2/models/security_filter_update_data.rb | 4 +- .../models/security_filter_update_request.rb | 2 +- .../v2/models/security_filters_response.rb | 4 +- .../v2/models/security_monitoring_filter.rb | 4 +- ...security_monitoring_list_rules_response.rb | 4 +- .../models/security_monitoring_rule_case.rb | 8 +- .../security_monitoring_rule_case_create.rb | 8 +- ...security_monitoring_rule_create_payload.rb | 20 +-- ...urity_monitoring_rule_new_value_options.rb | 4 +- .../security_monitoring_rule_options.rb | 10 +- .../models/security_monitoring_rule_query.rb | 12 +- .../security_monitoring_rule_query_create.rb | 12 +- .../security_monitoring_rule_response.rb | 34 ++--- ...security_monitoring_rule_update_payload.rb | 20 +-- .../v2/models/security_monitoring_signal.rb | 6 +- .../security_monitoring_signal_attributes.rb | 8 +- ...security_monitoring_signal_list_request.rb | 6 +- ...y_monitoring_signal_list_request_filter.rb | 6 +- ...ity_monitoring_signal_list_request_page.rb | 4 +- ...curity_monitoring_signals_list_response.rb | 6 +- ..._monitoring_signals_list_response_links.rb | 2 +- ...y_monitoring_signals_list_response_meta.rb | 2 +- ...itoring_signals_list_response_meta_page.rb | 2 +- .../service_account_create_attributes.rb | 8 +- .../v2/models/service_account_create_data.rb | 6 +- .../models/service_account_create_request.rb | 2 +- lib/datadog_api_client/v2/models/user.rb | 8 +- .../v2/models/user_attributes.rb | 22 +-- .../v2/models/user_create_attributes.rb | 6 +- .../v2/models/user_create_data.rb | 6 +- .../v2/models/user_create_request.rb | 2 +- .../v2/models/user_invitation_data.rb | 4 +- .../models/user_invitation_data_attributes.rb | 8 +- .../models/user_invitation_relationships.rb | 2 +- .../v2/models/user_invitation_response.rb | 2 +- .../models/user_invitation_response_data.rb | 6 +- .../v2/models/user_invitations_request.rb | 2 +- .../v2/models/user_invitations_response.rb | 2 +- .../v2/models/user_relationships.rb | 2 +- .../v2/models/user_response.rb | 4 +- .../v2/models/user_response_relationships.rb | 8 +- .../v2/models/user_update_attributes.rb | 6 +- .../v2/models/user_update_data.rb | 6 +- .../v2/models/user_update_request.rb | 2 +- .../v2/models/users_response.rb | 6 +- 779 files changed, 3227 insertions(+), 3227 deletions(-) diff --git a/.generator/src/generator/templates/model_generic.j2 b/.generator/src/generator/templates/model_generic.j2 index 9fd28ba9c32..ddf2a6c4c43 100644 --- a/.generator/src/generator/templates/model_generic.j2 +++ b/.generator/src/generator/templates/model_generic.j2 @@ -4,7 +4,7 @@ attr_accessor :_unparsed {%- for attr, definition in model.get("properties", {}).items() %} - # {{ definition.description|replace('\n', '\n# ')|indent(4) }} + # {{ definition.description|block_comment|indent(4) }} attr_accessor :{{ attr|attribute_name }} {%- endfor %} 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 6ebb8b2fe62..45b96d7e90d 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 @@ -23,25 +23,25 @@ class AlertGraphWidgetDefinition # @!visibility private attr_accessor :_unparsed - # ID of the alert to use in the widget. + # # ID of the alert to use in the widget. attr_accessor :alert_id - # Time setting for the widget. + # # Time setting for the widget. attr_accessor :time - # The title of the widget. + # # The title of the widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the alert graph widget. + # # Type of the alert graph widget. attr_accessor :type - # Whether to display the Alert Graph as a timeseries or a top list. + # # Whether to display the Alert Graph as a timeseries or a top list. attr_accessor :viz_type # Attribute mapping from ruby-style variable name to JSON key. 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 cf83a861117..9e47ef59cc7 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 @@ -23,28 +23,28 @@ class AlertValueWidgetDefinition # @!visibility private attr_accessor :_unparsed - # ID of the alert to use in the widget. + # # ID of the alert to use in the widget. attr_accessor :alert_id - # Number of decimal to show. If not defined, will use the raw value. + # # Number of decimal to show. If not defined, will use the raw value. attr_accessor :precision - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :text_align - # Title of the widget. + # # Title of the widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of value in the widget. + # # Size of value in the widget. attr_accessor :title_size - # Type of the alert value widget. + # # Type of the alert value widget. attr_accessor :type - # Unit to display with the value. + # # Unit to display with the value. attr_accessor :unit # Attribute mapping from ruby-style variable name to JSON key. 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 2990fbca872..fa07d742f2e 100644 --- a/lib/datadog_api_client/v1/models/api_error_response.rb +++ b/lib/datadog_api_client/v1/models/api_error_response.rb @@ -23,7 +23,7 @@ class APIErrorResponse # @!visibility private attr_accessor :_unparsed - # Array of errors returned by the API. + # # Array of errors returned by the API. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/api_key.rb b/lib/datadog_api_client/v1/models/api_key.rb index 9790b6d3947..1745c3aa5db 100644 --- a/lib/datadog_api_client/v1/models/api_key.rb +++ b/lib/datadog_api_client/v1/models/api_key.rb @@ -23,16 +23,16 @@ class ApiKey # @!visibility private attr_accessor :_unparsed - # Date of creation of the API key. + # # Date of creation of the API key. attr_accessor :created - # Datadog user handle that created the API key. + # # Datadog user handle that created the API key. attr_accessor :created_by - # API key. + # # API key. attr_accessor :key - # Name of your API key. + # # Name of your API key. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 7b50132036f..1009647d7ba 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 @@ -23,7 +23,7 @@ class ApiKeyListResponse # @!visibility private attr_accessor :_unparsed - # Array of API keys. + # # Array of API keys. attr_accessor :api_keys # Attribute mapping from ruby-style variable name to JSON key. 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 d5ae5e9e74a..009e6630d3a 100644 --- a/lib/datadog_api_client/v1/models/api_key_response.rb +++ b/lib/datadog_api_client/v1/models/api_key_response.rb @@ -23,7 +23,7 @@ class ApiKeyResponse # @!visibility private attr_accessor :_unparsed - # Datadog API key. + # # Datadog API key. attr_accessor :api_key # Attribute mapping from ruby-style variable name to JSON key. 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 55ea4fdf48e..29af779665d 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 @@ -23,16 +23,16 @@ class ApmStatsQueryColumnType # @!visibility private attr_accessor :_unparsed - # A user-assigned alias for the column. + # # A user-assigned alias for the column. attr_accessor :_alias - # Define a display mode for the table cell. + # # Define a display mode for the table cell. attr_accessor :cell_display_mode - # Column name. + # # Column name. attr_accessor :name - # Widget sorting methods. + # # Widget sorting methods. attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. 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 f7afdf6575e..5941f233f27 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 @@ -23,25 +23,25 @@ class ApmStatsQueryDefinition # @!visibility private attr_accessor :_unparsed - # Column properties used by the front end for display. + # # Column properties used by the front end for display. attr_accessor :columns - # Environment name. + # # Environment name. attr_accessor :env - # Operation name associated with service. + # # Operation name associated with service. attr_accessor :name - # The organization's host group name and value. + # # The organization's host group name and value. attr_accessor :primary_tag - # Resource name. + # # Resource name. attr_accessor :resource - # The level of detail for the request. + # # The level of detail for the request. attr_accessor :row_type - # Service name. + # # Service name. attr_accessor :service # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/application_key.rb b/lib/datadog_api_client/v1/models/application_key.rb index c8f57996185..2990ed32dc4 100644 --- a/lib/datadog_api_client/v1/models/application_key.rb +++ b/lib/datadog_api_client/v1/models/application_key.rb @@ -23,13 +23,13 @@ class ApplicationKey # @!visibility private attr_accessor :_unparsed - # Hash of an application key. + # # Hash of an application key. attr_accessor :hash - # Name of an application key. + # # Name of an application key. attr_accessor :name - # Owner of an application key. + # # Owner of an application key. attr_accessor :owner # Attribute mapping from ruby-style variable name to JSON key. 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 03226179736..aafbbe1a566 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 @@ -23,7 +23,7 @@ class ApplicationKeyListResponse # @!visibility private attr_accessor :_unparsed - # Array of application keys. + # # Array of application keys. attr_accessor :application_keys # Attribute mapping from ruby-style variable name to JSON key. 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 708ff863d48..1d6ea52a791 100644 --- a/lib/datadog_api_client/v1/models/application_key_response.rb +++ b/lib/datadog_api_client/v1/models/application_key_response.rb @@ -23,7 +23,7 @@ class ApplicationKeyResponse # @!visibility private attr_accessor :_unparsed - # An application key with its associated metadata. + # # An application key with its associated metadata. attr_accessor :application_key # Attribute mapping from ruby-style variable name to JSON key. 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 a1687856707..a280b458e5d 100644 --- a/lib/datadog_api_client/v1/models/authentication_validation_response.rb +++ b/lib/datadog_api_client/v1/models/authentication_validation_response.rb @@ -23,7 +23,7 @@ class AuthenticationValidationResponse # @!visibility private attr_accessor :_unparsed - # Return `true` if the authentication response is valid. + # # Return `true` if the authentication response is valid. attr_accessor :valid # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/aws_account.rb b/lib/datadog_api_client/v1/models/aws_account.rb index 84dc4134875..19fb3cf1632 100644 --- a/lib/datadog_api_client/v1/models/aws_account.rb +++ b/lib/datadog_api_client/v1/models/aws_account.rb @@ -23,24 +23,24 @@ class AWSAccount # @!visibility private attr_accessor :_unparsed - # Your AWS access key ID. Only required if your AWS account is a GovCloud or China account. + # # Your AWS access key ID. Only required if your AWS account is a GovCloud or China account. attr_accessor :access_key_id - # Your AWS Account ID without dashes. + # # Your AWS Account ID without dashes. attr_accessor :account_id - # An object, (in the form `{"namespace1":true/false, "namespace2":true/false}`), + # # An object, (in the form `{"namespace1":true/false, "namespace2":true/false}`), # that enables or disables metric collection for specific AWS namespaces for this # AWS account only. attr_accessor :account_specific_namespace_rules - # Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general `resource_collection`. + # # Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general `resource_collection`. attr_accessor :cspm_resource_collection_enabled - # An array of AWS regions to exclude from metrics collection. + # # An array of AWS regions to exclude from metrics collection. attr_accessor :excluded_regions - # The array of EC2 tags (in the form `key:value`) defines a filter that Datadog uses when collecting metrics from EC2. + # # The array of EC2 tags (in the form `key:value`) defines a filter that Datadog uses when collecting metrics from EC2. # Wildcards, such as `?` (for single characters) and `*` (for multiple characters) can also be used. # Only hosts that match one of the defined tags # will be imported into Datadog. The rest will be ignored. @@ -48,20 +48,20 @@ class AWSAccount # For example, `env:production,instance-type:c1.*,!region:us-east-1` attr_accessor :filter_tags - # Array of tags (in the form `key:value`) to add to all hosts + # # Array of tags (in the form `key:value`) to add to all hosts # and metrics reporting through this integration. attr_accessor :host_tags - # Whether Datadog collects metrics for this AWS account. + # # Whether Datadog collects metrics for this AWS account. attr_accessor :metrics_collection_enabled - # Whether Datadog collects a standard set of resources from your AWS account. + # # Whether Datadog collects a standard set of resources from your AWS account. attr_accessor :resource_collection_enabled - # Your Datadog role delegation name. + # # Your Datadog role delegation name. attr_accessor :role_name - # Your AWS secret access key. Only required if your AWS account is a GovCloud or China account. + # # Your AWS secret access key. Only required if your AWS account is a GovCloud or China account. attr_accessor :secret_access_key # Attribute mapping from ruby-style variable name to JSON key. 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 16133ba853d..c720bd8691c 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 @@ -23,10 +23,10 @@ class AWSAccountAndLambdaRequest # @!visibility private attr_accessor :_unparsed - # Your AWS Account ID without dashes. + # # Your AWS Account ID without dashes. attr_accessor :account_id - # ARN of the Datadog Lambda created during the Datadog-Amazon Web services Log collection setup. + # # ARN of the Datadog Lambda created during the Datadog-Amazon Web services Log collection setup. attr_accessor :lambda_arn # Attribute mapping from ruby-style variable name to JSON key. 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 07c86b70382..0eb77b4fb69 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 @@ -23,7 +23,7 @@ class AWSAccountCreateResponse # @!visibility private attr_accessor :_unparsed - # AWS external_id. + # # AWS external_id. attr_accessor :external_id # Attribute mapping from ruby-style variable name to JSON key. 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 da00c6b419c..e72afa9e6a0 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 @@ -23,13 +23,13 @@ class AWSAccountDeleteRequest # @!visibility private attr_accessor :_unparsed - # Your AWS access key ID. Only required if your AWS account is a GovCloud or China account. + # # Your AWS access key ID. Only required if your AWS account is a GovCloud or China account. attr_accessor :access_key_id - # Your AWS Account ID without dashes. + # # Your AWS Account ID without dashes. attr_accessor :account_id - # Your Datadog role delegation name. + # # Your Datadog role delegation name. attr_accessor :role_name # Attribute mapping from ruby-style variable name to JSON key. 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 4e92e8d7282..009ad80f6bc 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 @@ -23,7 +23,7 @@ class AWSAccountListResponse # @!visibility private attr_accessor :_unparsed - # List of enabled AWS accounts. + # # List of enabled AWS accounts. attr_accessor :accounts # Attribute mapping from ruby-style variable name to JSON key. 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 a3bae2a9039..238407a7d27 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 @@ -23,10 +23,10 @@ class AWSLogsAsyncError # @!visibility private attr_accessor :_unparsed - # Code properties + # # Code properties attr_accessor :code - # Message content. + # # Message content. attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. 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 2a2a4680eb1..d325bc3c307 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 @@ -23,10 +23,10 @@ class AWSLogsAsyncResponse # @!visibility private attr_accessor :_unparsed - # List of errors. + # # List of errors. attr_accessor :errors - # Status of the properties. + # # Status of the properties. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. 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 bc982a45ea5..2e5ce6b9062 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_lambda.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_lambda.rb @@ -23,7 +23,7 @@ class AWSLogsLambda # @!visibility private attr_accessor :_unparsed - # Available ARN IDs. + # # Available ARN IDs. attr_accessor :arn # Attribute mapping from ruby-style variable name to JSON key. 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 898376b828a..fdf4b7e845c 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 @@ -23,13 +23,13 @@ class AWSLogsListResponse # @!visibility private attr_accessor :_unparsed - # Your AWS Account ID without dashes. + # # Your AWS Account ID without dashes. attr_accessor :account_id - # List of ARNs configured in your Datadog account. + # # List of ARNs configured in your Datadog account. attr_accessor :lambdas - # Array of services IDs. + # # Array of services IDs. attr_accessor :services # Attribute mapping from ruby-style variable name to JSON key. 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 f3e86ff2c40..c1391f53fdc 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 @@ -23,10 +23,10 @@ class AWSLogsListServicesResponse # @!visibility private attr_accessor :_unparsed - # Key value in returned object. + # # Key value in returned object. attr_accessor :id - # Name of service available for configuration with Datadog logs. + # # Name of service available for configuration with Datadog logs. attr_accessor :label # Attribute mapping from ruby-style variable name to JSON key. 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 5211f6c2689..ccd637f4ea8 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 @@ -23,10 +23,10 @@ class AWSLogsServicesRequest # @!visibility private attr_accessor :_unparsed - # Your AWS Account ID without dashes. + # # Your AWS Account ID without dashes. attr_accessor :account_id - # 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. + # # 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_accessor :services # Attribute mapping from ruby-style variable name to JSON key. 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 47057bb35dd..6ccb74f6866 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter.rb @@ -23,10 +23,10 @@ class AWSTagFilter # @!visibility private attr_accessor :_unparsed - # The namespace associated with the tag filter entry. + # # The namespace associated with the tag filter entry. attr_accessor :namespace - # The tag filter string. + # # The tag filter string. attr_accessor :tag_filter_str # Attribute mapping from ruby-style variable name to JSON key. 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 9895bf139b1..272b92366e0 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 @@ -23,13 +23,13 @@ class AWSTagFilterCreateRequest # @!visibility private attr_accessor :_unparsed - # Your AWS Account ID without dashes. + # # Your AWS Account ID without dashes. attr_accessor :account_id - # The namespace associated with the tag filter entry. + # # The namespace associated with the tag filter entry. attr_accessor :namespace - # The tag filter string. + # # The tag filter string. attr_accessor :tag_filter_str # Attribute mapping from ruby-style variable name to JSON key. 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 26a8aecff94..929412da532 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 @@ -23,10 +23,10 @@ class AWSTagFilterDeleteRequest # @!visibility private attr_accessor :_unparsed - # The unique identifier of your AWS account. + # # The unique identifier of your AWS account. attr_accessor :account_id - # The namespace associated with the tag filter entry. + # # The namespace associated with the tag filter entry. attr_accessor :namespace # Attribute mapping from ruby-style variable name to JSON key. 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 fa65037aa3b..27a9098985f 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 @@ -23,7 +23,7 @@ class AWSTagFilterListResponse # @!visibility private attr_accessor :_unparsed - # An array of tag filters. + # # An array of tag filters. attr_accessor :filters # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/azure_account.rb b/lib/datadog_api_client/v1/models/azure_account.rb index 8ae5573a52c..ceb00fa53e8 100644 --- a/lib/datadog_api_client/v1/models/azure_account.rb +++ b/lib/datadog_api_client/v1/models/azure_account.rb @@ -23,29 +23,29 @@ class AzureAccount # @!visibility private attr_accessor :_unparsed - # Silence monitors for expected Azure VM shutdowns. + # # Silence monitors for expected Azure VM shutdowns. attr_accessor :automute - # Your Azure web application ID. + # # Your Azure web application ID. attr_accessor :client_id - # Your Azure web application secret key. + # # Your Azure web application secret key. attr_accessor :client_secret - # Errors in your configuration. + # # Errors in your configuration. attr_accessor :errors - # Limit the Azure instances that are pulled into Datadog by using tags. + # # Limit the Azure instances that are pulled into Datadog by using tags. # Only hosts that match one of the defined tags are imported into Datadog. attr_accessor :host_filters - # Your New Azure web application ID. + # # Your New Azure web application ID. attr_accessor :new_client_id - # Your New Azure Active Directory ID. + # # Your New Azure Active Directory ID. attr_accessor :new_tenant_name - # Your Azure Active Directory ID. + # # Your Azure Active Directory ID. attr_accessor :tenant_name # Attribute mapping from ruby-style variable name to JSON key. 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 c177bf575de..7506ead398f 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 @@ -23,7 +23,7 @@ class CancelDowntimesByScopeRequest # @!visibility private attr_accessor :_unparsed - # The scope(s) to which the downtime applies. For example, `host:app2`. + # # The scope(s) to which the downtime applies. For example, `host:app2`. # Provide multiple scopes as a comma-separated list like `env:dev,env:prod`. # The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`). attr_accessor :scope 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 513ac7713d1..b746078f696 100644 --- a/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb +++ b/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb @@ -23,7 +23,7 @@ class CanceledDowntimesIds # @!visibility private attr_accessor :_unparsed - # ID of downtimes that were canceled. + # # ID of downtimes that were canceled. attr_accessor :cancelled_ids # Attribute mapping from ruby-style variable name to JSON key. 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 3889b6ad594..e80d8950de2 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition.rb @@ -23,28 +23,28 @@ class ChangeWidgetDefinition # @!visibility private attr_accessor :_unparsed - # List of custom links. + # # List of custom links. attr_accessor :custom_links - # Array of one request object to display in the widget. - # + # # Array of one request object to display in the widget. + # # See the dedicated [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) # to learn how to build the `REQUEST_SCHEMA`. attr_accessor :requests - # Time setting for the widget. + # # Time setting for the widget. attr_accessor :time - # Title of the widget. + # # Title of the widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the change widget. + # # Type of the change widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 4d18b5c5d3f..cdf5f8396f6 100644 --- a/lib/datadog_api_client/v1/models/change_widget_request.rb +++ b/lib/datadog_api_client/v1/models/change_widget_request.rb @@ -23,58 +23,58 @@ class ChangeWidgetRequest # @!visibility private attr_accessor :_unparsed - # The log query. + # # The log query. attr_accessor :apm_query - # Show the absolute or the relative change. + # # Show the absolute or the relative change. attr_accessor :change_type - # Timeframe used for the change comparison. + # # Timeframe used for the change comparison. attr_accessor :compare_to - # The log query. + # # The log query. attr_accessor :event_query - # List of formulas that operate on queries. **This feature is currently in beta.** + # # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas - # Whether to show increase as good. + # # Whether to show increase as good. attr_accessor :increase_good - # The log query. + # # The log query. attr_accessor :log_query - # The log query. + # # The log query. attr_accessor :network_query - # What to order by. + # # What to order by. attr_accessor :order_by - # Widget sorting methods. + # # Widget sorting methods. attr_accessor :order_dir - # The process query to use in the widget. + # # The process query to use in the widget. attr_accessor :process_query - # The log query. + # # The log query. attr_accessor :profile_metrics_query - # Query definition. + # # Query definition. attr_accessor :q - # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** + # # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries - # Timeseries or Scalar response. **This feature is currently in beta.** + # # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format - # The log query. + # # The log query. attr_accessor :rum_query - # The log query. + # # The log query. attr_accessor :security_query - # Whether to show the present value. + # # Whether to show the present value. attr_accessor :show_present # Attribute mapping from ruby-style variable name to JSON key. 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 7e6656b323c..de08037a00a 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 @@ -23,10 +23,10 @@ class CheckCanDeleteMonitorResponse # @!visibility private attr_accessor :_unparsed - # Wrapper object with the list of monitor IDs. + # # Wrapper object with the list of monitor IDs. attr_accessor :data - # A mapping of Monitor ID to strings denoting where it's used. + # # A mapping of Monitor ID to strings denoting where it's used. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. 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 94cbd6ff070..7ebe296d9c4 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 @@ -23,7 +23,7 @@ class CheckCanDeleteMonitorResponseData # @!visibility private attr_accessor :_unparsed - # An array of of Monitor IDs that can be safely deleted. + # # An array of of Monitor IDs that can be safely deleted. attr_accessor :ok # Attribute mapping from ruby-style variable name to JSON key. 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 415d0e0a8ee..4aec80d9f8d 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 @@ -23,10 +23,10 @@ class CheckCanDeleteSLOResponse # @!visibility private attr_accessor :_unparsed - # An array of service level objective objects. + # # An array of service level objective objects. attr_accessor :data - # A mapping of SLO id to it's current usages. + # # A mapping of SLO id to it's current usages. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. 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 9b251ffd271..ff3c6d926e8 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 @@ -23,7 +23,7 @@ class CheckCanDeleteSLOResponseData # @!visibility private attr_accessor :_unparsed - # An array of of SLO IDs that can be safely deleted. + # # An array of of SLO IDs that can be safely deleted. attr_accessor :ok # Attribute mapping from ruby-style variable name to JSON key. 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 d31c310af1e..87a897a721b 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 @@ -23,34 +23,34 @@ class CheckStatusWidgetDefinition # @!visibility private attr_accessor :_unparsed - # Name of the check to use in the widget. + # # Name of the check to use in the widget. attr_accessor :check - # Group reporting a single check. + # # Group reporting a single check. attr_accessor :group - # List of tag prefixes to group by in the case of a cluster check. + # # List of tag prefixes to group by in the case of a cluster check. attr_accessor :group_by - # The kind of grouping to use. + # # The kind of grouping to use. attr_accessor :grouping - # List of tags used to filter the groups reporting a cluster check. + # # List of tags used to filter the groups reporting a cluster check. attr_accessor :tags - # Time setting for the widget. + # # Time setting for the widget. attr_accessor :time - # Title of the widget. + # # Title of the widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the check status widget. + # # Type of the check status widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/creator.rb b/lib/datadog_api_client/v1/models/creator.rb index 4cdf54f441d..2fad271e069 100644 --- a/lib/datadog_api_client/v1/models/creator.rb +++ b/lib/datadog_api_client/v1/models/creator.rb @@ -23,13 +23,13 @@ class Creator # @!visibility private attr_accessor :_unparsed - # Email of the creator. + # # Email of the creator. attr_accessor :email - # Handle of the creator. + # # Handle of the creator. attr_accessor :handle - # Name of the creator. + # # Name of the creator. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/dashboard.rb b/lib/datadog_api_client/v1/models/dashboard.rb index 01937743049..daef4fd7fb4 100644 --- a/lib/datadog_api_client/v1/models/dashboard.rb +++ b/lib/datadog_api_client/v1/models/dashboard.rb @@ -24,54 +24,54 @@ class Dashboard # @!visibility private attr_accessor :_unparsed - # Identifier of the dashboard author. + # # Identifier of the dashboard author. attr_accessor :author_handle - # Name of the dashboard author. + # # Name of the dashboard author. attr_accessor :author_name - # Creation date of the dashboard. + # # Creation date of the dashboard. attr_accessor :created_at - # Description of the dashboard. + # # Description of the dashboard. attr_accessor :description - # ID of the dashboard. + # # ID of the dashboard. attr_accessor :id - # Whether this dashboard is read-only. If True, only the author and admins can make changes to it. Prefer using `restricted_roles` to manage write authorization. + # # Whether this dashboard is read-only. If True, only the author and admins can make changes to it. Prefer using `restricted_roles` to manage write authorization. attr_accessor :is_read_only - # Layout type of the dashboard. + # # Layout type of the dashboard. attr_accessor :layout_type - # Modification date of the dashboard. + # # Modification date of the dashboard. attr_accessor :modified_at - # List of handles of users to notify when changes are made to this dashboard. + # # List of handles of users to notify when changes are made to this dashboard. attr_accessor :notify_list - # Reflow type for a **new dashboard layout** dashboard. Set this only when layout type is 'ordered'. + # # Reflow type for a **new dashboard layout** dashboard. Set this only when layout type is 'ordered'. # If set to 'fixed', the dashboard expects all widgets to have a layout, and if it's set to 'auto', # widgets should not have layouts. attr_accessor :reflow_type - # A list of role identifiers. Only the author and users associated with at least one of these roles can edit this dashboard. + # # A list of role identifiers. Only the author and users associated with at least one of these roles can edit this dashboard. attr_accessor :restricted_roles - # Array of template variables saved views. + # # Array of template variables saved views. attr_accessor :template_variable_presets - # List of template variables for this dashboard. + # # List of template variables for this dashboard. attr_accessor :template_variables - # Title of the dashboard. + # # Title of the dashboard. attr_accessor :title - # The URL of the dashboard. + # # The URL of the dashboard. attr_accessor :url - # List of widgets to display on the dashboard. + # # List of widgets to display on the dashboard. attr_accessor :widgets # Attribute mapping from ruby-style variable name to JSON key. 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 0fc1f541ce6..3c91210e72f 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 @@ -23,10 +23,10 @@ class DashboardBulkActionData # @!visibility private attr_accessor :_unparsed - # Dashboard resource ID. + # # Dashboard resource ID. attr_accessor :id - # Dashboard resource type. + # # Dashboard resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 12ffc31f59a..3c0db8d384f 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 @@ -23,7 +23,7 @@ class DashboardBulkDeleteRequest # @!visibility private attr_accessor :_unparsed - # List of dashboard bulk action request data objects. + # # List of dashboard bulk action request data objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 8a1503d310e..4133bb0f482 100644 --- a/lib/datadog_api_client/v1/models/dashboard_delete_response.rb +++ b/lib/datadog_api_client/v1/models/dashboard_delete_response.rb @@ -23,7 +23,7 @@ class DashboardDeleteResponse # @!visibility private attr_accessor :_unparsed - # ID of the deleted dashboard. + # # ID of the deleted dashboard. attr_accessor :deleted_dashboard_id # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/dashboard_list.rb b/lib/datadog_api_client/v1/models/dashboard_list.rb index bb9771712d0..6e66d9037fa 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list.rb @@ -23,28 +23,28 @@ class DashboardList # @!visibility private attr_accessor :_unparsed - # Object describing the creator of the shared element. + # # Object describing the creator of the shared element. attr_accessor :author - # Date of creation of the dashboard list. + # # Date of creation of the dashboard list. attr_accessor :created - # The number of dashboards in the list. + # # The number of dashboards in the list. attr_accessor :dashboard_count - # The ID of the dashboard list. + # # The ID of the dashboard list. attr_accessor :id - # Whether or not the list is in the favorites. + # # Whether or not the list is in the favorites. attr_accessor :is_favorite - # Date of last edition of the dashboard list. + # # Date of last edition of the dashboard list. attr_accessor :modified - # The name of the dashboard list. + # # The name of the dashboard list. attr_accessor :name - # The type of dashboard list. + # # The type of dashboard list. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 b3d427364d6..d9f7f3cae57 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 @@ -23,7 +23,7 @@ class DashboardListDeleteResponse # @!visibility private attr_accessor :_unparsed - # ID of the deleted dashboard list. + # # ID of the deleted dashboard list. attr_accessor :deleted_dashboard_list_id # Attribute mapping from ruby-style variable name to JSON key. 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 c957ace30ab..bc88b6c6d90 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 @@ -23,7 +23,7 @@ class DashboardListListResponse # @!visibility private attr_accessor :_unparsed - # List of all your dashboard lists. + # # List of all your dashboard lists. attr_accessor :dashboard_lists # Attribute mapping from ruby-style variable name to JSON key. 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 6346fd4d68b..0dacb6e10ee 100644 --- a/lib/datadog_api_client/v1/models/dashboard_restore_request.rb +++ b/lib/datadog_api_client/v1/models/dashboard_restore_request.rb @@ -23,7 +23,7 @@ class DashboardRestoreRequest # @!visibility private attr_accessor :_unparsed - # List of dashboard bulk action request data objects. + # # List of dashboard bulk action request data objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/dashboard_summary.rb b/lib/datadog_api_client/v1/models/dashboard_summary.rb index 1f77f90d4b9..3a5c8777584 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary.rb @@ -23,7 +23,7 @@ class DashboardSummary # @!visibility private attr_accessor :_unparsed - # List of dashboard definitions. + # # List of dashboard definitions. attr_accessor :dashboards # Attribute mapping from ruby-style variable name to JSON key. 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 99a5f4608db..7dba1cc796f 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb @@ -23,31 +23,31 @@ class DashboardSummaryDefinition # @!visibility private attr_accessor :_unparsed - # Identifier of the dashboard author. + # # Identifier of the dashboard author. attr_accessor :author_handle - # Creation date of the dashboard. + # # Creation date of the dashboard. attr_accessor :created_at - # Description of the dashboard. + # # Description of the dashboard. attr_accessor :description - # Dashboard identifier. + # # Dashboard identifier. attr_accessor :id - # Whether this dashboard is read-only. If True, only the author and admins can make changes to it. + # # Whether this dashboard is read-only. If True, only the author and admins can make changes to it. attr_accessor :is_read_only - # Layout type of the dashboard. + # # Layout type of the dashboard. attr_accessor :layout_type - # Modification date of the dashboard. + # # Modification date of the dashboard. attr_accessor :modified_at - # Title of the dashboard. + # # Title of the dashboard. attr_accessor :title - # URL of the dashboard. + # # URL of the dashboard. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. 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 7f2e101be26..f561afe688a 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable.rb @@ -23,16 +23,16 @@ class DashboardTemplateVariable # @!visibility private attr_accessor :_unparsed - # The list of values that the template variable drop-down is limited to. + # # The list of values that the template variable drop-down is limited to. attr_accessor :available_values - # The default value for the template variable on dashboard load. + # # The default value for the template variable on dashboard load. attr_accessor :default - # The name of the variable. + # # The name of the variable. attr_accessor :name - # The tag prefix associated with the variable. Only tags with this prefix appear in the variable drop-down. + # # The tag prefix associated with the variable. Only tags with this prefix appear in the variable drop-down. attr_accessor :prefix # Attribute mapping from ruby-style variable name to JSON key. 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 c6f001fb281..63c54a6d6d0 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 @@ -23,10 +23,10 @@ class DashboardTemplateVariablePreset # @!visibility private attr_accessor :_unparsed - # The name of the variable. + # # The name of the variable. attr_accessor :name - # List of variables. + # # List of variables. attr_accessor :template_variables # Attribute mapping from ruby-style variable name to JSON key. 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 d99ba298ec5..8fbd2a3b402 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 @@ -23,10 +23,10 @@ class DashboardTemplateVariablePresetValue # @!visibility private attr_accessor :_unparsed - # The name of the variable. + # # The name of the variable. attr_accessor :name - # The value of the template variable within the saved view. + # # The value of the template variable within the saved view. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/deleted_monitor.rb b/lib/datadog_api_client/v1/models/deleted_monitor.rb index cccbf18a4db..eae1dcbd531 100644 --- a/lib/datadog_api_client/v1/models/deleted_monitor.rb +++ b/lib/datadog_api_client/v1/models/deleted_monitor.rb @@ -23,7 +23,7 @@ class DeletedMonitor # @!visibility private attr_accessor :_unparsed - # ID of the deleted monitor. + # # ID of the deleted monitor. attr_accessor :deleted_monitor_id # Attribute mapping from ruby-style variable name to JSON key. 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 af183bfff83..b56909773d6 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb @@ -25,40 +25,40 @@ class DistributionWidgetDefinition # @!visibility private attr_accessor :_unparsed - # (Deprecated) The widget legend was replaced by a tooltip and sidebar. + # # (Deprecated) The widget legend was replaced by a tooltip and sidebar. attr_accessor :legend_size - # List of markers. + # # List of markers. attr_accessor :markers - # Array of one request object to display in the widget. - # + # # Array of one request object to display in the widget. + # # See the dedicated [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) # to learn how to build the `REQUEST_SCHEMA`. attr_accessor :requests - # (Deprecated) The widget legend was replaced by a tooltip and sidebar. + # # (Deprecated) The widget legend was replaced by a tooltip and sidebar. attr_accessor :show_legend - # Time setting for the widget. + # # Time setting for the widget. attr_accessor :time - # Title of the widget. + # # Title of the widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the distribution widget. + # # Type of the distribution widget. attr_accessor :type - # X Axis controls for the distribution widget. + # # X Axis controls for the distribution widget. attr_accessor :xaxis - # Y Axis controls for the distribution widget. + # # Y Axis controls for the distribution widget. attr_accessor :yaxis # Attribute mapping from ruby-style variable name to JSON key. 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 fdde436ec4a..f576cff7eb3 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_request.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_request.rb @@ -23,37 +23,37 @@ class DistributionWidgetRequest # @!visibility private attr_accessor :_unparsed - # The log query. + # # The log query. attr_accessor :apm_query - # The APM stats query for table and distributions widgets. + # # The APM stats query for table and distributions widgets. attr_accessor :apm_stats_query - # The log query. + # # The log query. attr_accessor :event_query - # The log query. + # # The log query. attr_accessor :log_query - # The log query. + # # The log query. attr_accessor :network_query - # The process query to use in the widget. + # # The process query to use in the widget. attr_accessor :process_query - # The log query. + # # The log query. attr_accessor :profile_metrics_query - # Widget query. + # # Widget query. attr_accessor :q - # The log query. + # # The log query. attr_accessor :rum_query - # The log query. + # # The log query. attr_accessor :security_query - # Widget style definition. + # # Widget style definition. attr_accessor :style # Attribute mapping from ruby-style variable name to JSON key. 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 2a09d56654e..9a1b8e0fba9 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 @@ -23,16 +23,16 @@ class DistributionWidgetXAxis # @!visibility private attr_accessor :_unparsed - # True includes zero. + # # True includes zero. attr_accessor :include_zero - # Specifies maximum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior. + # # Specifies maximum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior. attr_accessor :max - # Specifies minimum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior. + # # Specifies minimum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior. attr_accessor :min - # Specifies the scale type. Possible values are `linear`. + # # Specifies the scale type. Possible values are `linear`. attr_accessor :scale # Attribute mapping from ruby-style variable name to JSON key. 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 174380a2945..f763970b982 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 @@ -23,19 +23,19 @@ class DistributionWidgetYAxis # @!visibility private attr_accessor :_unparsed - # True includes zero. + # # True includes zero. attr_accessor :include_zero - # The label of the axis to display on the graph. + # # The label of the axis to display on the graph. attr_accessor :label - # Specifies the maximum value to show on the y-axis. It takes a number, or auto for default behavior. + # # Specifies the maximum value to show on the y-axis. It takes a number, or auto for default behavior. attr_accessor :max - # Specifies minimum value to show on the y-axis. It takes a number, or auto for default behavior. + # # Specifies minimum value to show on the y-axis. It takes a number, or auto for default behavior. attr_accessor :min - # Specifies the scale type. Possible values are `linear` or `log`. + # # Specifies the scale type. Possible values are `linear` or `log`. attr_accessor :scale # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/downtime.rb b/lib/datadog_api_client/v1/models/downtime.rb index e218d363c6c..28dbbb1f3f9 100644 --- a/lib/datadog_api_client/v1/models/downtime.rb +++ b/lib/datadog_api_client/v1/models/downtime.rb @@ -26,67 +26,67 @@ class Downtime # @!visibility private attr_accessor :_unparsed - # If a scheduled downtime currently exists. + # # If a scheduled downtime currently exists. attr_accessor :active - # The downtime object definition of the active child for the original parent recurring downtime. This + # # The downtime object definition of the active child for the original parent recurring downtime. This # field will only exist on recurring downtimes. attr_accessor :active_child - # If a scheduled downtime is canceled. + # # If a scheduled downtime is canceled. attr_accessor :canceled - # User ID of the downtime creator. + # # User ID of the downtime creator. attr_accessor :creator_id - # If a downtime has been disabled. + # # If a downtime has been disabled. attr_accessor :disabled - # `0` for a downtime applied on `*` or all, + # # `0` for a downtime applied on `*` or all, # `1` when the downtime is only scoped to hosts, # or `2` when the downtime is scoped to anything but hosts. attr_accessor :downtime_type - # POSIX timestamp to end the downtime. If not provided, + # # POSIX timestamp to end the downtime. If not provided, # the downtime is in effect indefinitely until you cancel it. attr_accessor :_end - # The downtime ID. + # # The downtime ID. attr_accessor :id - # A message to include with notifications for this downtime. + # # A message to include with notifications for this downtime. # Email notifications can be sent to specific users by using the same `@username` notation as events. attr_accessor :message - # A single monitor to which the downtime applies. + # # A single monitor to which the downtime applies. # If not provided, the downtime applies to all monitors. attr_accessor :monitor_id - # A comma-separated list of monitor tags. For example, tags that are applied directly to monitors, + # # A comma-separated list of monitor tags. For example, tags that are applied directly to monitors, # not tags that are used in monitor queries (which are filtered by the scope parameter), to which the downtime applies. # The resulting downtime applies to monitors that match ALL provided monitor tags. # For example, `service:postgres` **AND** `team:frontend`. attr_accessor :monitor_tags - # ID of the parent Downtime. + # # ID of the parent Downtime. attr_accessor :parent_id - # An object defining the recurrence of the downtime. + # # An object defining the recurrence of the downtime. attr_accessor :recurrence - # The scope(s) to which the downtime applies. For example, `host:app2`. + # # The scope(s) to which the downtime applies. For example, `host:app2`. # Provide multiple scopes as a comma-separated list like `env:dev,env:prod`. # The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`). attr_accessor :scope - # POSIX timestamp to start the downtime. + # # POSIX timestamp to start the downtime. # If not provided, the downtime starts the moment it is created. attr_accessor :start - # The timezone in which to display the downtime's start and end times in Datadog applications. + # # The timezone in which to display the downtime's start and end times in Datadog applications. attr_accessor :timezone - # ID of the last user that updated the downtime. + # # ID of the last user that updated the downtime. attr_accessor :updater_id # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/downtime_child.rb b/lib/datadog_api_client/v1/models/downtime_child.rb index 68f76855d20..1146cb4cefd 100644 --- a/lib/datadog_api_client/v1/models/downtime_child.rb +++ b/lib/datadog_api_client/v1/models/downtime_child.rb @@ -24,63 +24,63 @@ class DowntimeChild # @!visibility private attr_accessor :_unparsed - # If a scheduled downtime currently exists. + # # If a scheduled downtime currently exists. attr_accessor :active - # If a scheduled downtime is canceled. + # # If a scheduled downtime is canceled. attr_accessor :canceled - # User ID of the downtime creator. + # # User ID of the downtime creator. attr_accessor :creator_id - # If a downtime has been disabled. + # # If a downtime has been disabled. attr_accessor :disabled - # `0` for a downtime applied on `*` or all, + # # `0` for a downtime applied on `*` or all, # `1` when the downtime is only scoped to hosts, # or `2` when the downtime is scoped to anything but hosts. attr_accessor :downtime_type - # POSIX timestamp to end the downtime. If not provided, + # # POSIX timestamp to end the downtime. If not provided, # the downtime is in effect indefinitely until you cancel it. attr_accessor :_end - # The downtime ID. + # # The downtime ID. attr_accessor :id - # A message to include with notifications for this downtime. + # # A message to include with notifications for this downtime. # Email notifications can be sent to specific users by using the same `@username` notation as events. attr_accessor :message - # A single monitor to which the downtime applies. + # # A single monitor to which the downtime applies. # If not provided, the downtime applies to all monitors. attr_accessor :monitor_id - # A comma-separated list of monitor tags. For example, tags that are applied directly to monitors, + # # A comma-separated list of monitor tags. For example, tags that are applied directly to monitors, # not tags that are used in monitor queries (which are filtered by the scope parameter), to which the downtime applies. # The resulting downtime applies to monitors that match ALL provided monitor tags. # For example, `service:postgres` **AND** `team:frontend`. attr_accessor :monitor_tags - # ID of the parent Downtime. + # # ID of the parent Downtime. attr_accessor :parent_id - # An object defining the recurrence of the downtime. + # # An object defining the recurrence of the downtime. attr_accessor :recurrence - # The scope(s) to which the downtime applies. For example, `host:app2`. + # # The scope(s) to which the downtime applies. For example, `host:app2`. # Provide multiple scopes as a comma-separated list like `env:dev,env:prod`. # The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`). attr_accessor :scope - # POSIX timestamp to start the downtime. + # # POSIX timestamp to start the downtime. # If not provided, the downtime starts the moment it is created. attr_accessor :start - # The timezone in which to display the downtime's start and end times in Datadog applications. + # # The timezone in which to display the downtime's start and end times in Datadog applications. attr_accessor :timezone - # ID of the last user that updated the downtime. + # # ID of the last user that updated the downtime. attr_accessor :updater_id # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/downtime_recurrence.rb b/lib/datadog_api_client/v1/models/downtime_recurrence.rb index c664a738bf8..fbbd3e4618c 100644 --- a/lib/datadog_api_client/v1/models/downtime_recurrence.rb +++ b/lib/datadog_api_client/v1/models/downtime_recurrence.rb @@ -23,30 +23,30 @@ class DowntimeRecurrence # @!visibility private attr_accessor :_unparsed - # How often to repeat as an integer. + # # How often to repeat as an integer. # For example, to repeat every 3 days, select a type of `days` and a period of `3`. attr_accessor :period - # The `RRULE` standard for defining recurring events (**requires to set "type" to rrule**) + # # The `RRULE` standard for defining recurring events (**requires to set "type" to rrule**) # For example, to have a recurring event on the first day of each month, set the type to `rrule` and set the `FREQ` to `MONTHLY` and `BYMONTHDAY` to `1`. # Most common `rrule` options from the [iCalendar Spec](https://tools.ietf.org/html/rfc5545) are supported. - # + # # **Note**: Attributes specifying the duration in `RRULE` are not supported (for example, `DTSTART`, `DTEND`, `DURATION`). # More examples available in this [downtime guide](https://docs.datadoghq.com/monitors/guide/suppress-alert-with-downtimes/?tab=api) attr_accessor :rrule - # The type of recurrence. Choose from `days`, `weeks`, `months`, `years`, `rrule`. + # # The type of recurrence. Choose from `days`, `weeks`, `months`, `years`, `rrule`. attr_accessor :type - # The date at which the recurrence should end as a POSIX timestamp. + # # The date at which the recurrence should end as a POSIX timestamp. # `until_occurences` and `until_date` are mutually exclusive. attr_accessor :until_date - # How many times the downtime is rescheduled. + # # How many times the downtime is rescheduled. # `until_occurences` and `until_date` are mutually exclusive. attr_accessor :until_occurrences - # A list of week days to repeat on. Choose from `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat` or `Sun`. + # # A list of week days to repeat on. Choose from `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat` or `Sun`. # Only applicable when type is weeks. First letter must be capitalized. attr_accessor :week_days diff --git a/lib/datadog_api_client/v1/models/event.rb b/lib/datadog_api_client/v1/models/event.rb index 818611fa5d2..df441c1fcc2 100644 --- a/lib/datadog_api_client/v1/models/event.rb +++ b/lib/datadog_api_client/v1/models/event.rb @@ -23,51 +23,51 @@ class Event # @!visibility private attr_accessor :_unparsed - # If an alert event is enabled, set its type. + # # If an alert event is enabled, set its type. # For example, `error`, `warning`, `info`, `success`, `user_update`, # `recommendation`, and `snapshot`. attr_accessor :alert_type - # POSIX timestamp of the event. Must be sent as an integer (that is no quotes). + # # POSIX timestamp of the event. Must be sent as an integer (that is no quotes). # Limited to events no older than 7 days. attr_accessor :date_happened - # A device name. + # # A device name. attr_accessor :device_name - # Host name to associate with the event. + # # Host name to associate with the event. # Any tags associated with the host are also applied to this event. attr_accessor :host - # Integer ID of the event. + # # Integer ID of the event. attr_accessor :id - # Handling IDs as large 64-bit numbers can cause loss of accuracy issues with some programming languages. + # # Handling IDs as large 64-bit numbers can cause loss of accuracy issues with some programming languages. # Instead, use the string representation of the Event ID to avoid losing accuracy. attr_accessor :id_str - # Payload of the event. + # # Payload of the event. attr_accessor :payload - # The priority of the event. For example, `normal` or `low`. + # # The priority of the event. For example, `normal` or `low`. attr_accessor :priority - # The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. + # # The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. # A complete list of source attribute values [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). attr_accessor :source_type_name - # A list of tags to apply to the event. + # # A list of tags to apply to the event. attr_accessor :tags - # The body of the event. Limited to 4000 characters. The text supports markdown. + # # The body of the event. Limited to 4000 characters. The text supports markdown. # To use markdown in the event text, start the text block with `%%% \n` and end the text block with `\n %%%`. # Use `msg_text` with the Datadog Ruby library. attr_accessor :text - # The event title. + # # The event title. attr_accessor :title - # URL of the event. + # # URL of the event. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. 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 b82244d8496..b9f50827a13 100644 --- a/lib/datadog_api_client/v1/models/event_create_request.rb +++ b/lib/datadog_api_client/v1/models/event_create_request.rb @@ -23,45 +23,45 @@ class EventCreateRequest # @!visibility private attr_accessor :_unparsed - # An arbitrary string to use for aggregation. Limited to 100 characters. + # # An arbitrary string to use for aggregation. Limited to 100 characters. # If you specify a key, all events using that key are grouped together in the Event Stream. attr_accessor :aggregation_key - # If an alert event is enabled, set its type. + # # If an alert event is enabled, set its type. # For example, `error`, `warning`, `info`, `success`, `user_update`, # `recommendation`, and `snapshot`. attr_accessor :alert_type - # POSIX timestamp of the event. Must be sent as an integer (that is no quotes). + # # POSIX timestamp of the event. Must be sent as an integer (that is no quotes). # Limited to events no older than 7 days. attr_accessor :date_happened - # A device name. + # # A device name. attr_accessor :device_name - # Host name to associate with the event. + # # Host name to associate with the event. # Any tags associated with the host are also applied to this event. attr_accessor :host - # The priority of the event. For example, `normal` or `low`. + # # The priority of the event. For example, `normal` or `low`. attr_accessor :priority - # ID of the parent event. Must be sent as an integer (that is no quotes). + # # ID of the parent event. Must be sent as an integer (that is no quotes). attr_accessor :related_event_id - # The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. + # # The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. # A complete list of source attribute values [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). attr_accessor :source_type_name - # A list of tags to apply to the event. + # # A list of tags to apply to the event. attr_accessor :tags - # The body of the event. Limited to 4000 characters. The text supports markdown. + # # The body of the event. Limited to 4000 characters. The text supports markdown. # To use markdown in the event text, start the text block with `%%% \n` and end the text block with `\n %%%`. # Use `msg_text` with the Datadog Ruby library. attr_accessor :text - # The event title. + # # The event title. attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. 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 8628f3708ae..c07e9691c43 100644 --- a/lib/datadog_api_client/v1/models/event_create_response.rb +++ b/lib/datadog_api_client/v1/models/event_create_response.rb @@ -23,52 +23,52 @@ class EventCreateResponse # @!visibility private attr_accessor :_unparsed - # If an alert event is enabled, set its type. + # # If an alert event is enabled, set its type. # For example, `error`, `warning`, `info`, `success`, `user_update`, # `recommendation`, and `snapshot`. attr_accessor :alert_type - # POSIX timestamp of the event. Must be sent as an integer (that is no quotes). + # # POSIX timestamp of the event. Must be sent as an integer (that is no quotes). # Limited to events no older than 7 days. attr_accessor :date_happened - # A device name. + # # A device name. attr_accessor :device_name - # Host name to associate with the event. + # # Host name to associate with the event. # Any tags associated with the host are also applied to this event. attr_accessor :host - # Integer ID of the event. + # # Integer ID of the event. attr_accessor :id - # Payload of the event. + # # Payload of the event. attr_accessor :payload - # The priority of the event. For example, `normal` or `low`. + # # The priority of the event. For example, `normal` or `low`. attr_accessor :priority - # ID of the parent event. Must be sent as an integer (that is no quotes). + # # ID of the parent event. Must be sent as an integer (that is no quotes). attr_accessor :related_event_id - # The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. + # # The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. # A complete list of source attribute values [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). attr_accessor :source_type_name - # A status. + # # A status. attr_accessor :status - # A list of tags to apply to the event. + # # A list of tags to apply to the event. attr_accessor :tags - # The body of the event. Limited to 4000 characters. The text supports markdown. + # # The body of the event. Limited to 4000 characters. The text supports markdown. # Use `msg_text` with the Datadog Ruby library. attr_accessor :text - # The event title. Limited to 100 characters. Use `msg_title` with the Datadog Ruby library. + # # The event title. Limited to 100 characters. Use `msg_title` with the Datadog Ruby library. attr_accessor :title - # URL of the event. + # # URL of the event. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. 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 e0b76282e90..47d694d9e36 100644 --- a/lib/datadog_api_client/v1/models/event_list_response.rb +++ b/lib/datadog_api_client/v1/models/event_list_response.rb @@ -23,10 +23,10 @@ class EventListResponse # @!visibility private attr_accessor :_unparsed - # An array of events. + # # An array of events. attr_accessor :events - # A status. + # # A status. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. 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 4e9e9debaf6..4e47803cfd9 100644 --- a/lib/datadog_api_client/v1/models/event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/event_query_definition.rb @@ -23,10 +23,10 @@ class EventQueryDefinition # @!visibility private attr_accessor :_unparsed - # The query being made on the event. + # # The query being made on the event. attr_accessor :search - # The execution method for multi-value filters. Can be either and or or. + # # The execution method for multi-value filters. Can be either and or or. attr_accessor :tags_execution # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/event_response.rb b/lib/datadog_api_client/v1/models/event_response.rb index 66bbd512fd1..f0661f4ab3e 100644 --- a/lib/datadog_api_client/v1/models/event_response.rb +++ b/lib/datadog_api_client/v1/models/event_response.rb @@ -23,10 +23,10 @@ class EventResponse # @!visibility private attr_accessor :_unparsed - # Object representing an event. + # # Object representing an event. attr_accessor :event - # A status. + # # A status. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. 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 7ca149990dd..3a97bcc9815 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 @@ -24,28 +24,28 @@ class EventStreamWidgetDefinition # @!visibility private attr_accessor :_unparsed - # Size to use to display an event. + # # Size to use to display an event. attr_accessor :event_size - # Query to filter the event stream with. + # # Query to filter the event stream with. attr_accessor :query - # The execution method for multi-value filters. Can be either and or or. + # # The execution method for multi-value filters. Can be either and or or. attr_accessor :tags_execution - # Time setting for the widget. + # # Time setting for the widget. attr_accessor :time - # Title of the widget. + # # Title of the widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the event stream widget. + # # Type of the event stream widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 4463230b079..cf3faa7cbc2 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 @@ -23,25 +23,25 @@ class EventTimelineWidgetDefinition # @!visibility private attr_accessor :_unparsed - # Query to filter the event timeline with. + # # Query to filter the event timeline with. attr_accessor :query - # The execution method for multi-value filters. Can be either and or or. + # # The execution method for multi-value filters. Can be either and or or. attr_accessor :tags_execution - # Time setting for the widget. + # # Time setting for the widget. attr_accessor :time - # Title of the widget. + # # Title of the widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the event timeline widget. + # # Type of the event timeline widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 278dbe660cb..3038504546e 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 @@ -23,34 +23,34 @@ class FormulaAndFunctionApmDependencyStatsQueryDefinition # @!visibility private attr_accessor :_unparsed - # Data source for APM dependency stats queries. + # # Data source for APM dependency stats queries. attr_accessor :data_source - # APM environment. + # # APM environment. attr_accessor :env - # Determines whether stats for upstream or downstream dependencies should be queried. + # # Determines whether stats for upstream or downstream dependencies should be queried. attr_accessor :is_upstream - # Name of query to use in formulas. + # # Name of query to use in formulas. attr_accessor :name - # Name of operation on service. + # # Name of operation on service. attr_accessor :operation_name - # The name of the second primary tag used within APM; required when `primary_tag_value` is specified. See https://docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog. + # # The name of the second primary tag used within APM; required when `primary_tag_value` is specified. See https://docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog. attr_accessor :primary_tag_name - # Filter APM data by the second primary tag. `primary_tag_name` must also be specified. + # # Filter APM data by the second primary tag. `primary_tag_name` must also be specified. attr_accessor :primary_tag_value - # APM resource. + # # APM resource. attr_accessor :resource_name - # APM service. + # # APM service. attr_accessor :service - # APM statistic. + # # APM statistic. attr_accessor :stat # Attribute mapping from ruby-style variable name to JSON key. 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 b36d7a7bd29..62187200de5 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 @@ -23,34 +23,34 @@ class FormulaAndFunctionApmResourceStatsQueryDefinition # @!visibility private attr_accessor :_unparsed - # Data source for APM resource stats queries. + # # Data source for APM resource stats queries. attr_accessor :data_source - # APM environment. + # # APM environment. attr_accessor :env - # Array of fields to group results by. + # # Array of fields to group results by. attr_accessor :group_by - # Name of this query to use in formulas. + # # Name of this query to use in formulas. attr_accessor :name - # Name of operation on service. + # # Name of operation on service. attr_accessor :operation_name - # Name of the second primary tag used within APM. Required when `primary_tag_value` is specified. See https://docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog + # # Name of the second primary tag used within APM. Required when `primary_tag_value` is specified. See https://docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog attr_accessor :primary_tag_name - # Value of the second primary tag by which to filter APM data. `primary_tag_name` must also be specified. + # # Value of the second primary tag by which to filter APM data. `primary_tag_name` must also be specified. attr_accessor :primary_tag_value - # APM resource name. + # # APM resource name. attr_accessor :resource_name - # APM service name. + # # APM service name. attr_accessor :service - # APM resource stat name. + # # APM resource stat name. attr_accessor :stat # Attribute mapping from ruby-style variable name to JSON key. 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 60d4dcc67d5..62f137f6f46 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 @@ -23,22 +23,22 @@ class FormulaAndFunctionEventQueryDefinition # @!visibility private attr_accessor :_unparsed - # Compute options. + # # Compute options. attr_accessor :compute - # Data source for event platform-based queries. + # # Data source for event platform-based queries. attr_accessor :data_source - # Group by options. + # # Group by options. attr_accessor :group_by - # An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. + # # An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. attr_accessor :indexes - # Name of the query for use in formulas. + # # Name of the query for use in formulas. attr_accessor :name - # Search options. + # # Search options. attr_accessor :search # Attribute mapping from ruby-style variable name to JSON key. 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 90845ad8bae..da38658e86c 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 @@ -23,13 +23,13 @@ class FormulaAndFunctionEventQueryDefinitionCompute # @!visibility private attr_accessor :_unparsed - # Aggregation methods for event platform queries. + # # Aggregation methods for event platform queries. attr_accessor :aggregation - # A time interval in milliseconds. + # # A time interval in milliseconds. attr_accessor :interval - # Measurable attribute to compute. + # # Measurable attribute to compute. attr_accessor :metric # Attribute mapping from ruby-style variable name to JSON key. 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 d42016c5102..a138e4536b5 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 @@ -23,7 +23,7 @@ class FormulaAndFunctionEventQueryDefinitionSearch # @!visibility private attr_accessor :_unparsed - # Events search string. + # # Events search string. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 865863a0b75..4ef8a570d5a 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 @@ -23,13 +23,13 @@ class FormulaAndFunctionEventQueryGroupBy # @!visibility private attr_accessor :_unparsed - # Event facet. + # # Event facet. attr_accessor :facet - # Number of groups to return. + # # Number of groups to return. attr_accessor :limit - # Options for sorting group by results. + # # Options for sorting group by results. attr_accessor :sort # Attribute mapping from ruby-style variable name to JSON key. 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 2da8f8cd859..756278679b8 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 @@ -23,13 +23,13 @@ class FormulaAndFunctionEventQueryGroupBySort # @!visibility private attr_accessor :_unparsed - # Aggregation methods for event platform queries. + # # Aggregation methods for event platform queries. attr_accessor :aggregation - # Metric used for sorting group by results. + # # Metric used for sorting group by results. attr_accessor :metric - # Direction of sort. + # # Direction of sort. attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. 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 2bae0643120..527b951a8e0 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 @@ -23,16 +23,16 @@ class FormulaAndFunctionMetricQueryDefinition # @!visibility private attr_accessor :_unparsed - # The aggregation methods available for metrics queries. + # # The aggregation methods available for metrics queries. attr_accessor :aggregator - # Data source for metrics queries. + # # Data source for metrics queries. attr_accessor :data_source - # Name of the query for use in formulas. + # # Name of the query for use in formulas. attr_accessor :name - # Metrics query definition. + # # Metrics query definition. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 6ea796ac97c..aed992bc6eb 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 @@ -23,31 +23,31 @@ class FormulaAndFunctionProcessQueryDefinition # @!visibility private attr_accessor :_unparsed - # The aggregation methods available for metrics queries. + # # The aggregation methods available for metrics queries. attr_accessor :aggregator - # Data sources that rely on the process backend. + # # Data sources that rely on the process backend. attr_accessor :data_source - # Whether to normalize the CPU percentages. + # # Whether to normalize the CPU percentages. attr_accessor :is_normalized_cpu - # Number of hits to return. + # # Number of hits to return. attr_accessor :limit - # Process metric name. + # # Process metric name. attr_accessor :metric - # Name of query for use in formulas. + # # Name of query for use in formulas. attr_accessor :name - # Direction of sort. + # # Direction of sort. attr_accessor :sort - # An array of tags to filter by. + # # An array of tags to filter by. attr_accessor :tag_filters - # Text to use as filter. + # # Text to use as filter. attr_accessor :text_filter # Attribute mapping from ruby-style variable name to JSON key. 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 f06fcd49d65..5e000d7c2a6 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 @@ -23,19 +23,19 @@ class FreeTextWidgetDefinition # @!visibility private attr_accessor :_unparsed - # Color of the text. + # # Color of the text. attr_accessor :color - # Size of the text. + # # Size of the text. attr_accessor :font_size - # Text to display. + # # Text to display. attr_accessor :text - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :text_align - # Type of the free text widget. + # # Type of the free text widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/funnel_query.rb b/lib/datadog_api_client/v1/models/funnel_query.rb index 79370660150..a5091b47963 100644 --- a/lib/datadog_api_client/v1/models/funnel_query.rb +++ b/lib/datadog_api_client/v1/models/funnel_query.rb @@ -23,13 +23,13 @@ class FunnelQuery # @!visibility private attr_accessor :_unparsed - # Source from which to query items to display in the funnel. + # # Source from which to query items to display in the funnel. attr_accessor :data_source - # The widget query. + # # The widget query. attr_accessor :query_string - # List of funnel steps. + # # List of funnel steps. attr_accessor :steps # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb index d3ea8983012..d2b93c2fc88 100644 --- a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb +++ b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb @@ -23,10 +23,10 @@ class FunnelQueryStepsItem # @!visibility private attr_accessor :_unparsed - # The facet of the step. + # # The facet of the step. attr_accessor :facet - # The value of the step. + # # The value of the step. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 0d229cd40ed..57854fc59bf 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb @@ -23,22 +23,22 @@ class FunnelWidgetDefinition # @!visibility private attr_accessor :_unparsed - # Request payload used to query items. + # # Request payload used to query items. attr_accessor :requests - # Time setting for the widget. + # # Time setting for the widget. attr_accessor :time - # The title of the widget. + # # The title of the widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # The size of the title. + # # The size of the title. attr_accessor :title_size - # Type of funnel widget. + # # Type of funnel widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 2e9e1157050..d373fa54197 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_request.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_request.rb @@ -23,10 +23,10 @@ class FunnelWidgetRequest # @!visibility private attr_accessor :_unparsed - # Updated funnel widget. + # # Updated funnel widget. attr_accessor :query - # Widget request type. + # # Widget request type. attr_accessor :request_type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/gcp_account.rb b/lib/datadog_api_client/v1/models/gcp_account.rb index 090648e8f77..268f77c9f47 100644 --- a/lib/datadog_api_client/v1/models/gcp_account.rb +++ b/lib/datadog_api_client/v1/models/gcp_account.rb @@ -23,45 +23,45 @@ class GCPAccount # @!visibility private attr_accessor :_unparsed - # Should be `https://www.googleapis.com/oauth2/v1/certs`. + # # Should be `https://www.googleapis.com/oauth2/v1/certs`. attr_accessor :auth_provider_x509_cert_url - # Should be `https://accounts.google.com/o/oauth2/auth`. + # # Should be `https://accounts.google.com/o/oauth2/auth`. attr_accessor :auth_uri - # Silence monitors for expected GCE instance shutdowns. + # # Silence monitors for expected GCE instance shutdowns. attr_accessor :automute - # Your email found in your JSON service account key. + # # Your email found in your JSON service account key. attr_accessor :client_email - # Your ID found in your JSON service account key. + # # Your ID found in your JSON service account key. attr_accessor :client_id - # Should be `https://www.googleapis.com/robot/v1/metadata/x509/` + # # Should be `https://www.googleapis.com/robot/v1/metadata/x509/` # where `` is the email found in your JSON service account key. attr_accessor :client_x509_cert_url - # An array of errors. + # # An array of errors. attr_accessor :errors - # Limit the GCE instances that are pulled into Datadog by using tags. + # # Limit the GCE instances that are pulled into Datadog by using tags. # Only hosts that match one of the defined tags are imported into Datadog. attr_accessor :host_filters - # Your private key name found in your JSON service account key. + # # Your private key name found in your JSON service account key. attr_accessor :private_key - # Your private key ID found in your JSON service account key. + # # Your private key ID found in your JSON service account key. attr_accessor :private_key_id - # Your Google Cloud project ID found in your JSON service account key. + # # Your Google Cloud project ID found in your JSON service account key. attr_accessor :project_id - # Should be `https://accounts.google.com/o/oauth2/token`. + # # Should be `https://accounts.google.com/o/oauth2/token`. attr_accessor :token_uri - # The value for service_account found in your JSON service account key. + # # The value for service_account found in your JSON service account key. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 a961b931cf6..3dfcd8028b6 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb @@ -23,34 +23,34 @@ class GeomapWidgetDefinition # @!visibility private attr_accessor :_unparsed - # A list of custom links. + # # A list of custom links. attr_accessor :custom_links - # Array of one request object to display in the widget. The request must contain a `group-by` tag whose value is a country ISO code. - # + # # Array of one request object to display in the widget. The request must contain a `group-by` tag whose value is a country ISO code. + # # See the [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) # for information about building the `REQUEST_SCHEMA`. attr_accessor :requests - # The style to apply to the widget. + # # The style to apply to the widget. attr_accessor :style - # Time setting for the widget. + # # Time setting for the widget. attr_accessor :time - # The title of your widget. + # # The title of your widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # The size of the title. + # # The size of the title. attr_accessor :title_size - # Type of the geomap widget. + # # Type of the geomap widget. attr_accessor :type - # The view of the world that the map should render. + # # The view of the world that the map should render. attr_accessor :view # Attribute mapping from ruby-style variable name to JSON key. 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 8b8862100df..51e6da9837c 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 @@ -23,10 +23,10 @@ class GeomapWidgetDefinitionStyle # @!visibility private attr_accessor :_unparsed - # The color palette to apply to the widget. + # # The color palette to apply to the widget. attr_accessor :palette - # Whether to flip the palette tones. + # # Whether to flip the palette tones. attr_accessor :palette_flip # Attribute mapping from ruby-style variable name to JSON key. 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 8b1daaf55ca..d0340321474 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 @@ -23,7 +23,7 @@ class GeomapWidgetDefinitionView # @!visibility private attr_accessor :_unparsed - # The 2-letter ISO code of a country to focus the map on. Or `WORLD`. + # # The 2-letter ISO code of a country to focus the map on. Or `WORLD`. attr_accessor :focus # Attribute mapping from ruby-style variable name to JSON key. 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 00420973ed2..97771064321 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_request.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_request.rb @@ -23,25 +23,25 @@ class GeomapWidgetRequest # @!visibility private attr_accessor :_unparsed - # List of formulas that operate on queries. **This feature is currently in beta.** + # # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas - # The log query. + # # The log query. attr_accessor :log_query - # The widget metrics query. + # # The widget metrics query. attr_accessor :q - # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** + # # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries - # Timeseries or Scalar response. **This feature is currently in beta.** + # # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format - # The log query. + # # The log query. attr_accessor :rum_query - # The log query. + # # The log query. attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/graph_snapshot.rb b/lib/datadog_api_client/v1/models/graph_snapshot.rb index d7870839231..b4cfd4dfcec 100644 --- a/lib/datadog_api_client/v1/models/graph_snapshot.rb +++ b/lib/datadog_api_client/v1/models/graph_snapshot.rb @@ -23,15 +23,15 @@ class GraphSnapshot # @!visibility private attr_accessor :_unparsed - # A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. + # # A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. # The JSON document uses the [grammar defined here](https://docs.datadoghq.com/graphing/graphing_json/#grammar) # and should be formatted to a single line then URL encoded. attr_accessor :graph_def - # The metric query. One of `metric_query` or `graph_def` is required. + # # The metric query. One of `metric_query` or `graph_def` is required. attr_accessor :metric_query - # URL of your [graph snapshot](https://docs.datadoghq.com/metrics/explorer/#snapshot). + # # URL of your [graph snapshot](https://docs.datadoghq.com/metrics/explorer/#snapshot). attr_accessor :snapshot_url # Attribute mapping from ruby-style variable name to JSON key. 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 6f9ed058898..47da61982b4 100644 --- a/lib/datadog_api_client/v1/models/group_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/group_widget_definition.rb @@ -23,28 +23,28 @@ class GroupWidgetDefinition # @!visibility private attr_accessor :_unparsed - # Background color of the group title. + # # Background color of the group title. attr_accessor :background_color - # URL of image to display as a banner for the group. + # # URL of image to display as a banner for the group. attr_accessor :banner_img - # Layout type of the group. + # # Layout type of the group. attr_accessor :layout_type - # Whether to show the title or not. + # # Whether to show the title or not. attr_accessor :show_title - # Title of the widget. + # # Title of the widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Type of the group widget. + # # Type of the group widget. attr_accessor :type - # List of widget groups. + # # List of widget groups. attr_accessor :widgets # Attribute mapping from ruby-style variable name to JSON key. 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 3a610229e04..6dbf3b23885 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 @@ -23,37 +23,37 @@ class HeatMapWidgetDefinition # @!visibility private attr_accessor :_unparsed - # List of custom links. + # # List of custom links. attr_accessor :custom_links - # List of widget events. + # # List of widget events. attr_accessor :events - # Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto". + # # Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto". attr_accessor :legend_size - # List of widget types. + # # List of widget types. attr_accessor :requests - # Whether or not to display the legend on this widget. + # # Whether or not to display the legend on this widget. attr_accessor :show_legend - # Time setting for the widget. + # # Time setting for the widget. attr_accessor :time - # Title of the widget. + # # Title of the widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the heat map widget. + # # Type of the heat map widget. attr_accessor :type - # Axis controls for the widget. + # # Axis controls for the widget. attr_accessor :yaxis # Attribute mapping from ruby-style variable name to JSON key. 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 d0770bab663..7e40c8f2510 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 @@ -23,34 +23,34 @@ class HeatMapWidgetRequest # @!visibility private attr_accessor :_unparsed - # The log query. + # # The log query. attr_accessor :apm_query - # The event query. + # # The event query. attr_accessor :event_query - # The log query. + # # The log query. attr_accessor :log_query - # The log query. + # # The log query. attr_accessor :network_query - # The process query to use in the widget. + # # The process query to use in the widget. attr_accessor :process_query - # The log query. + # # The log query. attr_accessor :profile_metrics_query - # Widget query. + # # Widget query. attr_accessor :q - # The log query. + # # The log query. attr_accessor :rum_query - # The log query. + # # The log query. attr_accessor :security_query - # Widget style definition. + # # Widget style definition. attr_accessor :style # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/host.rb b/lib/datadog_api_client/v1/models/host.rb index 9143f7d3bca..337e50813ca 100644 --- a/lib/datadog_api_client/v1/models/host.rb +++ b/lib/datadog_api_client/v1/models/host.rb @@ -23,46 +23,46 @@ class Host # @!visibility private attr_accessor :_unparsed - # Host aliases collected by Datadog. + # # Host aliases collected by Datadog. attr_accessor :aliases - # The Datadog integrations reporting metrics for the host. + # # The Datadog integrations reporting metrics for the host. attr_accessor :apps - # AWS name of your host. + # # AWS name of your host. attr_accessor :aws_name - # The host name. + # # The host name. attr_accessor :host_name - # The host ID. + # # The host ID. attr_accessor :id - # If a host is muted or unmuted. + # # If a host is muted or unmuted. attr_accessor :is_muted - # Last time the host reported a metric data point. + # # Last time the host reported a metric data point. attr_accessor :last_reported_time - # Metadata associated with your host. + # # Metadata associated with your host. attr_accessor :meta - # Host Metrics collected. + # # Host Metrics collected. attr_accessor :metrics - # Timeout of the mute applied to your host. + # # Timeout of the mute applied to your host. attr_accessor :mute_timeout - # The host name. + # # The host name. attr_accessor :name - # Source or cloud provider associated with your host. + # # Source or cloud provider associated with your host. attr_accessor :sources - # List of tags for each source (AWS, Datadog Agent, Chef..). + # # List of tags for each source (AWS, Datadog Agent, Chef..). attr_accessor :tags_by_source - # Displays UP when the expected metrics are received and displays `???` if no metrics are received. + # # Displays UP when the expected metrics are received and displays `???` if no metrics are received. attr_accessor :up # Attribute mapping from ruby-style variable name to JSON key. 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 0940dd68158..be0eb86ac4d 100644 --- a/lib/datadog_api_client/v1/models/host_list_response.rb +++ b/lib/datadog_api_client/v1/models/host_list_response.rb @@ -23,13 +23,13 @@ class HostListResponse # @!visibility private attr_accessor :_unparsed - # Array of hosts. + # # Array of hosts. attr_accessor :host_list - # Number of host matching the query. + # # Number of host matching the query. attr_accessor :total_matching - # Number of host returned. + # # Number of host returned. attr_accessor :total_returned # Attribute mapping from ruby-style variable name to JSON key. 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 c6dd3a8627d..021bcfeb525 100644 --- a/lib/datadog_api_client/v1/models/host_map_request.rb +++ b/lib/datadog_api_client/v1/models/host_map_request.rb @@ -23,31 +23,31 @@ class HostMapRequest # @!visibility private attr_accessor :_unparsed - # The log query. + # # The log query. attr_accessor :apm_query - # The log query. + # # The log query. attr_accessor :event_query - # The log query. + # # The log query. attr_accessor :log_query - # The log query. + # # The log query. attr_accessor :network_query - # The process query to use in the widget. + # # The process query to use in the widget. attr_accessor :process_query - # The log query. + # # The log query. attr_accessor :profile_metrics_query - # Query definition. + # # Query definition. attr_accessor :q - # The log query. + # # The log query. attr_accessor :rum_query - # The log query. + # # The log query. attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. 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 e9d0d800c24..0aba5c51fa8 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 @@ -23,43 +23,43 @@ class HostMapWidgetDefinition # @!visibility private attr_accessor :_unparsed - # List of custom links. + # # List of custom links. attr_accessor :custom_links - # List of tag prefixes to group by. + # # List of tag prefixes to group by. attr_accessor :group - # Whether to show the hosts that don’t fit in a group. + # # Whether to show the hosts that don’t fit in a group. attr_accessor :no_group_hosts - # Whether to show the hosts with no metrics. + # # Whether to show the hosts with no metrics. attr_accessor :no_metric_hosts - # Which type of node to use in the map. + # # Which type of node to use in the map. attr_accessor :node_type - # Notes on the title. + # # Notes on the title. attr_accessor :notes - # List of definitions. + # # List of definitions. attr_accessor :requests - # List of tags used to filter the map. + # # List of tags used to filter the map. attr_accessor :scope - # The style to apply to the widget. + # # The style to apply to the widget. attr_accessor :style - # Title of the widget. + # # Title of the widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the host map widget. + # # Type of the host map widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 eec945a47b8..af1df41f790 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 @@ -23,10 +23,10 @@ class HostMapWidgetDefinitionRequests # @!visibility private attr_accessor :_unparsed - # Updated host map. + # # Updated host map. attr_accessor :fill - # Updated host map. + # # Updated host map. attr_accessor :size # Attribute mapping from ruby-style variable name to JSON key. 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 0a669e5e455..2db490a1bb3 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 @@ -23,16 +23,16 @@ class HostMapWidgetDefinitionStyle # @!visibility private attr_accessor :_unparsed - # Max value to use to color the map. + # # Max value to use to color the map. attr_accessor :fill_max - # Min value to use to color the map. + # # Min value to use to color the map. attr_accessor :fill_min - # Color palette to apply to the widget. + # # Color palette to apply to the widget. attr_accessor :palette - # Whether to flip the palette tones. + # # Whether to flip the palette tones. attr_accessor :palette_flip # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/host_meta.rb b/lib/datadog_api_client/v1/models/host_meta.rb index 2cfd306e118..0d58457a2e7 100644 --- a/lib/datadog_api_client/v1/models/host_meta.rb +++ b/lib/datadog_api_client/v1/models/host_meta.rb @@ -23,49 +23,49 @@ class HostMeta # @!visibility private attr_accessor :_unparsed - # A list of Agent checks running on the host. + # # A list of Agent checks running on the host. attr_accessor :agent_checks - # The Datadog Agent version. + # # The Datadog Agent version. attr_accessor :agent_version - # The number of cores. + # # The number of cores. attr_accessor :cpu_cores - # An array of Mac versions. + # # An array of Mac versions. attr_accessor :fbsd_v - # JSON string containing system information. + # # JSON string containing system information. attr_accessor :gohai - # Agent install method. + # # Agent install method. attr_accessor :install_method - # An array of Mac versions. + # # An array of Mac versions. attr_accessor :mac_v - # The machine architecture. + # # The machine architecture. attr_accessor :machine - # Array of Unix versions. + # # Array of Unix versions. attr_accessor :nix_v - # The OS platform. + # # The OS platform. attr_accessor :platform - # The processor. + # # The processor. attr_accessor :processor - # The Python version. + # # The Python version. attr_accessor :python_v - # The socket fqdn. + # # The socket fqdn. attr_accessor :socket_fqdn - # The socket hostname. + # # The socket hostname. attr_accessor :socket_hostname - # An array of Windows versions. + # # An array of Windows versions. attr_accessor :win_v # Attribute mapping from ruby-style variable name to JSON key. 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 f5906107a95..f28f45d2732 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 @@ -23,13 +23,13 @@ class HostMetaInstallMethod # @!visibility private attr_accessor :_unparsed - # The installer version. + # # The installer version. attr_accessor :installer_version - # Tool used to install the agent. + # # Tool used to install the agent. attr_accessor :tool - # The tool version. + # # The tool version. attr_accessor :tool_version # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/host_metrics.rb b/lib/datadog_api_client/v1/models/host_metrics.rb index bd3215d07c5..2d3db46fc2c 100644 --- a/lib/datadog_api_client/v1/models/host_metrics.rb +++ b/lib/datadog_api_client/v1/models/host_metrics.rb @@ -23,13 +23,13 @@ class HostMetrics # @!visibility private attr_accessor :_unparsed - # The percent of CPU used (everything but idle). + # # The percent of CPU used (everything but idle). attr_accessor :cpu - # The percent of CPU spent waiting on the IO (not reported for all platforms). + # # The percent of CPU spent waiting on the IO (not reported for all platforms). attr_accessor :iowait - # The system load over the last 15 minutes. + # # The system load over the last 15 minutes. attr_accessor :load # Attribute mapping from ruby-style variable name to JSON key. 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 ab32d7ebc4e..b1bfa4578ec 100644 --- a/lib/datadog_api_client/v1/models/host_mute_response.rb +++ b/lib/datadog_api_client/v1/models/host_mute_response.rb @@ -23,16 +23,16 @@ class HostMuteResponse # @!visibility private attr_accessor :_unparsed - # Action applied to the hosts. + # # Action applied to the hosts. attr_accessor :action - # POSIX timestamp in seconds when the host is unmuted. + # # POSIX timestamp in seconds when the host is unmuted. attr_accessor :_end - # The host name. + # # The host name. attr_accessor :hostname - # Message associated with the mute. + # # Message associated with the mute. attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. 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 c66bf80e51f..9b862b6d592 100644 --- a/lib/datadog_api_client/v1/models/host_mute_settings.rb +++ b/lib/datadog_api_client/v1/models/host_mute_settings.rb @@ -23,13 +23,13 @@ class HostMuteSettings # @!visibility private attr_accessor :_unparsed - # POSIX timestamp in seconds when the host is unmuted. If omitted, the host remains muted until explicitly unmuted. + # # POSIX timestamp in seconds when the host is unmuted. If omitted, the host remains muted until explicitly unmuted. attr_accessor :_end - # Message to associate with the muting of this host. + # # Message to associate with the muting of this host. attr_accessor :message - # If true and the host is already muted, replaces existing host mute settings. + # # If true and the host is already muted, replaces existing host mute settings. attr_accessor :override # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/host_tags.rb b/lib/datadog_api_client/v1/models/host_tags.rb index 459ab68c423..c4d13f7a6d1 100644 --- a/lib/datadog_api_client/v1/models/host_tags.rb +++ b/lib/datadog_api_client/v1/models/host_tags.rb @@ -23,10 +23,10 @@ class HostTags # @!visibility private attr_accessor :_unparsed - # Your host name. + # # Your host name. attr_accessor :host - # A list of tags to apply to the host. + # # A list of tags to apply to the host. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/host_totals.rb b/lib/datadog_api_client/v1/models/host_totals.rb index 1824bf1391c..c1b752ca952 100644 --- a/lib/datadog_api_client/v1/models/host_totals.rb +++ b/lib/datadog_api_client/v1/models/host_totals.rb @@ -23,10 +23,10 @@ class HostTotals # @!visibility private attr_accessor :_unparsed - # Total number of active host (UP and ???) reporting to Datadog. + # # Total number of active host (UP and ???) reporting to Datadog. attr_accessor :total_active - # Number of host that are UP and reporting to Datadog. + # # Number of host that are UP and reporting to Datadog. attr_accessor :total_up # Attribute mapping from ruby-style variable name to JSON key. 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 e81716c1486..acf4b6979b3 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 @@ -23,28 +23,28 @@ class HourlyUsageAttributionBody # @!visibility private attr_accessor :_unparsed - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # The name of the organization. + # # The name of the organization. attr_accessor :org_name - # The organization public ID. + # # The organization public ID. attr_accessor :public_id - # The source of the usage attribution tag configuration and the selected tags in the format of `::://////`. + # # The source of the usage attribution tag configuration and the selected tags in the format of `::://////`. attr_accessor :tag_config_source - # Usage Summary by tag name. + # # Usage Summary by tag name. attr_accessor :tags - # Total product usage for the given tags within the hour. + # # Total product usage for the given tags within the hour. attr_accessor :total_usage_sum - # Shows the most recent hour in the current month for all organizations where usages are calculated. + # # Shows the most recent hour in the current month for all organizations where usages are calculated. attr_accessor :updated_at - # Supported products for hourly usage attribution requests. + # # Supported products for hourly usage attribution requests. attr_accessor :usage_type # Attribute mapping from ruby-style variable name to JSON key. 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 2b1622adb80..62be3fc6a42 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 @@ -23,7 +23,7 @@ class HourlyUsageAttributionMetadata # @!visibility private attr_accessor :_unparsed - # The metadata for the current pagination. + # # The metadata for the current pagination. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. 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 ecb610137bc..bcdda692324 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 @@ -23,7 +23,7 @@ class HourlyUsageAttributionPagination # @!visibility private attr_accessor :_unparsed - # The cursor to get the next results (if any). To make the next request, use the same parameters and add `next_record_id`. + # # 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 # Attribute mapping from ruby-style variable name to JSON key. 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 0bdfa7e22c3..17659bbc5f0 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 @@ -23,10 +23,10 @@ class HourlyUsageAttributionResponse # @!visibility private attr_accessor :_unparsed - # The object containing document metadata. + # # The object containing document metadata. attr_accessor :metadata - # Get the hourly usage attribution by tag(s). + # # Get the hourly usage attribution by tag(s). attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 cb352ff801d..e0eaaa55f33 100644 --- a/lib/datadog_api_client/v1/models/http_log_error.rb +++ b/lib/datadog_api_client/v1/models/http_log_error.rb @@ -23,10 +23,10 @@ class HTTPLogError # @!visibility private attr_accessor :_unparsed - # Error code. + # # Error code. attr_accessor :code - # Error message. + # # Error message. attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. 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 a75943df53c..bf81349f30b 100644 --- a/lib/datadog_api_client/v1/models/http_log_item.rb +++ b/lib/datadog_api_client/v1/models/http_log_item.rb @@ -23,23 +23,23 @@ class HTTPLogItem # @!visibility private attr_accessor :_unparsed - # The integration name associated with your log: the technology from which the log originated. + # # The integration name associated with your log: the technology from which the log originated. # When it matches an integration name, Datadog automatically installs the corresponding parsers and facets. # See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes). attr_accessor :ddsource - # Tags associated with your logs. + # # Tags associated with your logs. attr_accessor :ddtags - # The name of the originating host of the log. + # # The name of the originating host of the log. attr_accessor :hostname - # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) + # # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) # of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. # That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. attr_accessor :message - # The name of the application or service generating the log events. + # # The name of the application or service generating the log events. # It is used to switch from Logs to APM, so make sure you define the same value when you use both products. # See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes). attr_accessor :service 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 16acd77015b..0a6aa986390 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 @@ -23,10 +23,10 @@ class IFrameWidgetDefinition # @!visibility private attr_accessor :_unparsed - # Type of the iframe widget. + # # Type of the iframe widget. attr_accessor :type - # URL of the iframe. + # # URL of the iframe. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. 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 ade10b7bc96..5d9c2aec937 100644 --- a/lib/datadog_api_client/v1/models/idp_form_data.rb +++ b/lib/datadog_api_client/v1/models/idp_form_data.rb @@ -23,7 +23,7 @@ class IdpFormData # @!visibility private attr_accessor :_unparsed - # The path to the XML metadata file you wish to upload. + # # The path to the XML metadata file you wish to upload. attr_accessor :idp_file # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/idp_response.rb b/lib/datadog_api_client/v1/models/idp_response.rb index c8e319d465a..ce42798f267 100644 --- a/lib/datadog_api_client/v1/models/idp_response.rb +++ b/lib/datadog_api_client/v1/models/idp_response.rb @@ -23,7 +23,7 @@ class IdpResponse # @!visibility private attr_accessor :_unparsed - # Identity provider response. + # # Identity provider response. attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. 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 46edfdc3299..88524ab0618 100644 --- a/lib/datadog_api_client/v1/models/image_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/image_widget_definition.rb @@ -23,33 +23,33 @@ class ImageWidgetDefinition # @!visibility private attr_accessor :_unparsed - # Whether to display a background or not. + # # Whether to display a background or not. attr_accessor :has_background - # Whether to display a border or not. + # # Whether to display a border or not. attr_accessor :has_border - # Horizontal alignment. + # # Horizontal alignment. attr_accessor :horizontal_align - # Size of the margins around the image. + # # Size of the margins around the image. # **Note**: `small` and `large` values are deprecated. attr_accessor :margin - # How to size the image on the widget. The values are based on the image `object-fit` CSS properties. + # # How to size the image on the widget. The values are based on the image `object-fit` CSS properties. # **Note**: `zoom`, `fit` and `center` values are deprecated. attr_accessor :sizing - # Type of the image widget. + # # Type of the image widget. attr_accessor :type - # URL of the image. + # # URL of the image. attr_accessor :url - # URL of the image in dark mode. + # # URL of the image in dark mode. attr_accessor :url_dark_theme - # Vertical alignment. + # # Vertical alignment. attr_accessor :vertical_align # Attribute mapping from ruby-style variable name to JSON key. 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 9735de2790c..9d5be16d48e 100644 --- a/lib/datadog_api_client/v1/models/intake_payload_accepted.rb +++ b/lib/datadog_api_client/v1/models/intake_payload_accepted.rb @@ -23,7 +23,7 @@ class IntakePayloadAccepted # @!visibility private attr_accessor :_unparsed - # The status of the intake payload. + # # The status of the intake payload. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. 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 ea93207d585..b1beb39354b 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb @@ -23,10 +23,10 @@ class IPPrefixesAgents # @!visibility private attr_accessor :_unparsed - # List of IPv4 prefixes. + # # List of IPv4 prefixes. attr_accessor :prefixes_ipv4 - # List of IPv6 prefixes. + # # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 # Attribute mapping from ruby-style variable name to JSON key. 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 8ee4ff183ad..89a7f465c7b 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_api.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_api.rb @@ -23,10 +23,10 @@ class IPPrefixesAPI # @!visibility private attr_accessor :_unparsed - # List of IPv4 prefixes. + # # List of IPv4 prefixes. attr_accessor :prefixes_ipv4 - # List of IPv6 prefixes. + # # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 # Attribute mapping from ruby-style variable name to JSON key. 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 7887276e513..52337cd2da9 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb @@ -23,10 +23,10 @@ class IPPrefixesAPM # @!visibility private attr_accessor :_unparsed - # List of IPv4 prefixes. + # # List of IPv4 prefixes. attr_accessor :prefixes_ipv4 - # List of IPv6 prefixes. + # # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 # Attribute mapping from ruby-style variable name to JSON key. 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 ed081f7062b..74e63e88965 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb @@ -23,10 +23,10 @@ class IPPrefixesLogs # @!visibility private attr_accessor :_unparsed - # List of IPv4 prefixes. + # # List of IPv4 prefixes. attr_accessor :prefixes_ipv4 - # List of IPv6 prefixes. + # # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 # Attribute mapping from ruby-style variable name to JSON key. 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 bcbe70a206a..f0ca87d8347 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_process.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_process.rb @@ -23,10 +23,10 @@ class IPPrefixesProcess # @!visibility private attr_accessor :_unparsed - # List of IPv4 prefixes. + # # List of IPv4 prefixes. attr_accessor :prefixes_ipv4 - # List of IPv6 prefixes. + # # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 # Attribute mapping from ruby-style variable name to JSON key. 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 cc5d4b54ffa..b2013ccfcda 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb @@ -23,16 +23,16 @@ class IPPrefixesSynthetics # @!visibility private attr_accessor :_unparsed - # List of IPv4 prefixes. + # # List of IPv4 prefixes. attr_accessor :prefixes_ipv4 - # List of IPv4 prefixes by location. + # # List of IPv4 prefixes by location. attr_accessor :prefixes_ipv4_by_location - # List of IPv6 prefixes. + # # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 - # List of IPv6 prefixes by location. + # # List of IPv6 prefixes by location. attr_accessor :prefixes_ipv6_by_location # Attribute mapping from ruby-style variable name to JSON key. 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 451edfb452a..4ec307c0c35 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb @@ -23,10 +23,10 @@ class IPPrefixesWebhooks # @!visibility private attr_accessor :_unparsed - # List of IPv4 prefixes. + # # List of IPv4 prefixes. attr_accessor :prefixes_ipv4 - # List of IPv6 prefixes. + # # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/ip_ranges.rb b/lib/datadog_api_client/v1/models/ip_ranges.rb index e1cdc93182b..69e24242d84 100644 --- a/lib/datadog_api_client/v1/models/ip_ranges.rb +++ b/lib/datadog_api_client/v1/models/ip_ranges.rb @@ -23,31 +23,31 @@ class IPRanges # @!visibility private attr_accessor :_unparsed - # Available prefix information for the Agent endpoints. + # # Available prefix information for the Agent endpoints. attr_accessor :agents - # Available prefix information for the API endpoints. + # # Available prefix information for the API endpoints. attr_accessor :api - # Available prefix information for the APM endpoints. + # # Available prefix information for the APM endpoints. attr_accessor :apm - # Available prefix information for the Logs endpoints. + # # Available prefix information for the Logs endpoints. attr_accessor :logs - # Date when last updated, in the form `YYYY-MM-DD-hh-mm-ss`. + # # Date when last updated, in the form `YYYY-MM-DD-hh-mm-ss`. attr_accessor :modified - # Available prefix information for the Process endpoints. + # # Available prefix information for the Process endpoints. attr_accessor :process - # Available prefix information for the Synthetics endpoints. + # # Available prefix information for the Synthetics endpoints. attr_accessor :synthetics - # Version of the IP list. + # # Version of the IP list. attr_accessor :version - # Available prefix information for the Webhook endpoints. + # # Available prefix information for the Webhook endpoints. attr_accessor :webhooks # Attribute mapping from ruby-style variable name to JSON key. 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 5c50f06c379..a5dd2a572f2 100644 --- a/lib/datadog_api_client/v1/models/list_stream_column.rb +++ b/lib/datadog_api_client/v1/models/list_stream_column.rb @@ -23,10 +23,10 @@ class ListStreamColumn # @!visibility private attr_accessor :_unparsed - # Widget column field. + # # Widget column field. attr_accessor :field - # Widget column width. + # # Widget column width. attr_accessor :width # Attribute mapping from ruby-style variable name to JSON key. 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 64f2ab8e69f..4edc926a27b 100644 --- a/lib/datadog_api_client/v1/models/list_stream_query.rb +++ b/lib/datadog_api_client/v1/models/list_stream_query.rb @@ -23,13 +23,13 @@ class ListStreamQuery # @!visibility private attr_accessor :_unparsed - # Source from which to query items to display in the stream. + # # Source from which to query items to display in the stream. attr_accessor :data_source - # List of indexes. + # # List of indexes. attr_accessor :indexes - # Widget query. + # # Widget query. attr_accessor :query_string # Attribute mapping from ruby-style variable name to JSON key. 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 cd6f4bc6bf9..a8202837827 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 @@ -24,28 +24,28 @@ class ListStreamWidgetDefinition # @!visibility private attr_accessor :_unparsed - # Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto". + # # Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto". attr_accessor :legend_size - # Request payload used to query items. + # # Request payload used to query items. attr_accessor :requests - # Whether or not to display the legend on this widget. + # # Whether or not to display the legend on this widget. attr_accessor :show_legend - # Time setting for the widget. + # # Time setting for the widget. attr_accessor :time - # Title of the widget. + # # Title of the widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the list stream widget. + # # Type of the list stream widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 89323f30aed..ea0a4ace22a 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 @@ -23,13 +23,13 @@ class ListStreamWidgetRequest # @!visibility private attr_accessor :_unparsed - # Widget columns. + # # Widget columns. attr_accessor :columns - # Updated list stream widget. + # # Updated list stream widget. attr_accessor :query - # Widget response format. + # # Widget response format. attr_accessor :response_format # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/log.rb b/lib/datadog_api_client/v1/models/log.rb index e188a91332b..a2cfd351002 100644 --- a/lib/datadog_api_client/v1/models/log.rb +++ b/lib/datadog_api_client/v1/models/log.rb @@ -23,10 +23,10 @@ class Log # @!visibility private attr_accessor :_unparsed - # JSON object containing all log attributes and their associated values. + # # JSON object containing all log attributes and their associated values. attr_accessor :content - # Unique ID of the Log. + # # Unique ID of the Log. attr_accessor :id # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/log_content.rb b/lib/datadog_api_client/v1/models/log_content.rb index 083f0c2373a..84d7b11f59a 100644 --- a/lib/datadog_api_client/v1/models/log_content.rb +++ b/lib/datadog_api_client/v1/models/log_content.rb @@ -23,26 +23,26 @@ class LogContent # @!visibility private attr_accessor :_unparsed - # JSON object of attributes from your log. + # # JSON object of attributes from your log. attr_accessor :attributes - # Name of the machine from where the logs are being sent. + # # Name of the machine from where the logs are being sent. attr_accessor :host - # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) + # # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) # of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. # That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. attr_accessor :message - # The name of the application or service generating the log events. + # # The name of the application or service generating the log events. # It is used to switch from Logs to APM, so make sure you define the same # value when you use both products. attr_accessor :service - # Array of tags associated with your log. + # # Array of tags associated with your log. attr_accessor :tags - # Timestamp of your log. + # # Timestamp of your log. attr_accessor :timestamp # Attribute mapping from ruby-style variable name to JSON key. 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 376fc6e2bcf..a67097594c3 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition.rb @@ -23,19 +23,19 @@ class LogQueryDefinition # @!visibility private attr_accessor :_unparsed - # Define computation for a log query. + # # Define computation for a log query. attr_accessor :compute - # List of tag prefixes to group by in the case of a cluster check. + # # List of tag prefixes to group by in the case of a cluster check. attr_accessor :group_by - # A coma separated-list of index names. Use "*" query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes) + # # A coma separated-list of index names. Use "*" query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes) attr_accessor :index - # This field is mutually exclusive with `compute`. + # # This field is mutually exclusive with `compute`. attr_accessor :multi_compute - # The query being made on the logs. + # # The query being made on the logs. attr_accessor :search # Attribute mapping from ruby-style variable name to JSON key. 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 d1f4a496e3f..aab9b41692e 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 @@ -23,13 +23,13 @@ class LogQueryDefinitionGroupBy # @!visibility private attr_accessor :_unparsed - # Facet name. + # # Facet name. attr_accessor :facet - # Maximum number of items in the group. + # # Maximum number of items in the group. attr_accessor :limit - # Define a sorting method. + # # Define a sorting method. attr_accessor :sort # Attribute mapping from ruby-style variable name to JSON key. 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 69c831037a5..8b5f24b2bf3 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 @@ -23,13 +23,13 @@ class LogQueryDefinitionGroupBySort # @!visibility private attr_accessor :_unparsed - # The aggregation method. + # # The aggregation method. attr_accessor :aggregation - # Facet name. + # # Facet name. attr_accessor :facet - # Widget sorting methods. + # # Widget sorting methods. attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. 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 20caa7cb445..2b1e3f0c97a 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 @@ -23,7 +23,7 @@ class LogQueryDefinitionSearch # @!visibility private attr_accessor :_unparsed - # Search value to apply. + # # Search value to apply. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 fe4c879ecb6..f6942d8eb3e 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 @@ -23,43 +23,43 @@ class LogStreamWidgetDefinition # @!visibility private attr_accessor :_unparsed - # Which columns to display on the widget. + # # Which columns to display on the widget. attr_accessor :columns - # An array of index names to query in the stream. Use [] to query all indexes at once. + # # An array of index names to query in the stream. Use [] to query all indexes at once. attr_accessor :indexes - # ID of the log set to use. + # # ID of the log set to use. attr_accessor :logset - # Amount of log lines to display + # # Amount of log lines to display attr_accessor :message_display - # Query to filter the log stream with. + # # Query to filter the log stream with. attr_accessor :query - # Whether to show the date column or not + # # Whether to show the date column or not attr_accessor :show_date_column - # Whether to show the message column or not + # # Whether to show the message column or not attr_accessor :show_message_column - # Which column and order to sort by + # # Which column and order to sort by attr_accessor :sort - # Time setting for the widget. + # # Time setting for the widget. attr_accessor :time - # Title of the widget. + # # Title of the widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the log stream widget. + # # Type of the log stream widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 387809ec5ef..49cd1d4f4b2 100644 --- a/lib/datadog_api_client/v1/models/logs_api_error.rb +++ b/lib/datadog_api_client/v1/models/logs_api_error.rb @@ -23,13 +23,13 @@ class LogsAPIError # @!visibility private attr_accessor :_unparsed - # Code identifying the error + # # Code identifying the error attr_accessor :code - # Additional error details + # # Additional error details attr_accessor :details - # Error message + # # Error message attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. 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 719e542eb18..1fdb433a41b 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 @@ -23,7 +23,7 @@ class LogsAPIErrorResponse # @!visibility private attr_accessor :_unparsed - # Error returned by the Logs API + # # Error returned by the Logs API attr_accessor :error # Attribute mapping from ruby-style variable name to JSON key. 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 29a33e8ece9..fbe22d5d7f3 100644 --- a/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb @@ -43,23 +43,23 @@ class LogsArithmeticProcessor # @!visibility private attr_accessor :_unparsed - # Arithmetic operation between one or more log attributes. + # # Arithmetic operation between one or more log attributes. attr_accessor :expression - # Whether or not the processor is enabled. + # # Whether or not the processor is enabled. attr_accessor :is_enabled - # If `true`, it replaces all missing attributes of expression by `0`, `false` + # # If `true`, it replaces all missing attributes of expression by `0`, `false` # skip the operation if an attribute is missing. attr_accessor :is_replace_missing - # Name of the processor. + # # Name of the processor. attr_accessor :name - # Name of the attribute that contains the result of the arithmetic operation. + # # Name of the attribute that contains the result of the arithmetic operation. attr_accessor :target - # Type of logs arithmetic processor. + # # Type of logs arithmetic processor. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 cebe32651f1..c17742dfd25 100644 --- a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb @@ -25,36 +25,36 @@ class LogsAttributeRemapper # @!visibility private attr_accessor :_unparsed - # Whether or not the processor is enabled. + # # Whether or not the processor is enabled. attr_accessor :is_enabled - # Name of the processor. + # # Name of the processor. attr_accessor :name - # Override or not the target element if already set, + # # Override or not the target element if already set, attr_accessor :override_on_conflict - # Remove or preserve the remapped source element. + # # Remove or preserve the remapped source element. attr_accessor :preserve_source - # Defines if the sources are from log `attribute` or `tag`. + # # Defines if the sources are from log `attribute` or `tag`. attr_accessor :source_type - # Array of source attributes. + # # Array of source attributes. attr_accessor :sources - # Final attribute or tag name to remap the sources to. + # # Final attribute or tag name to remap the sources to. attr_accessor :target - # If the `target_type` of the remapper is `attribute`, try to cast the value to a new specific type. + # # If the `target_type` of the remapper is `attribute`, try to cast the value to a new specific type. # If the cast is not possible, the original type is kept. `string`, `integer`, or `double` are the possible types. # If the `target_type` is `tag`, this parameter may not be specified. attr_accessor :target_format - # Defines if the final attribute or tag name is from log `attribute` or `tag`. + # # Defines if the final attribute or tag name is from log `attribute` or `tag`. attr_accessor :target_type - # Type of logs attribute remapper. + # # Type of logs attribute remapper. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3eccf1db2b6..315b9f13278 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention.rb @@ -23,13 +23,13 @@ class LogsByRetention # @!visibility private attr_accessor :_unparsed - # Indexed logs usage summary for each organization for each retention period with usage. + # # Indexed logs usage summary for each organization for each retention period with usage. attr_accessor :orgs - # Aggregated index logs usage for each retention period with usage. + # # Aggregated index logs usage for each retention period with usage. attr_accessor :usage - # Object containing a summary of indexed logs usage by retention period for a single month. + # # Object containing a summary of indexed logs usage by retention period for a single month. attr_accessor :usage_by_month # Attribute mapping from ruby-style variable name to JSON key. 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 06d9afc28e7..feedb72c72a 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 @@ -23,10 +23,10 @@ class LogsByRetentionMonthlyUsage # @!visibility private attr_accessor :_unparsed - # The month for the usage. + # # The month for the usage. attr_accessor :date - # Indexed logs usage for each active retention for the month. + # # Indexed logs usage for each active retention for the month. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 5a62c461083..97f5cb7f383 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 @@ -23,7 +23,7 @@ class LogsByRetentionOrgUsage # @!visibility private attr_accessor :_unparsed - # Indexed logs usage for each active retention for the organization. + # # Indexed logs usage for each active retention for the organization. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 6a1226af917..a30ef2fba5d 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 @@ -23,7 +23,7 @@ class LogsByRetentionOrgs # @!visibility private attr_accessor :_unparsed - # Indexed logs usage summary for each organization. + # # Indexed logs usage summary for each organization. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 529087da17c..9c65d5e68f3 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor.rb @@ -35,20 +35,20 @@ class LogsCategoryProcessor # @!visibility private attr_accessor :_unparsed - # Array of filters to match or not a log and their + # # Array of filters to match or not a log and their # corresponding `name`to assign a custom value to the log. attr_accessor :categories - # Whether or not the processor is enabled. + # # Whether or not the processor is enabled. attr_accessor :is_enabled - # Name of the processor. + # # Name of the processor. attr_accessor :name - # Name of the target attribute which value is defined by the matching category. + # # Name of the target attribute which value is defined by the matching category. attr_accessor :target - # Type of logs category processor. + # # Type of logs category processor. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 544743d3942..73301876d8d 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 @@ -23,10 +23,10 @@ class LogsCategoryProcessorCategory # @!visibility private attr_accessor :_unparsed - # Filter for logs. + # # Filter for logs. attr_accessor :filter - # Value to assign to the target attribute. + # # Value to assign to the target attribute. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 6092bedabdc..6a57df7fb6e 100644 --- a/lib/datadog_api_client/v1/models/logs_date_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_date_remapper.rb @@ -41,16 +41,16 @@ class LogsDateRemapper # @!visibility private attr_accessor :_unparsed - # Whether or not the processor is enabled. + # # Whether or not the processor is enabled. attr_accessor :is_enabled - # Name of the processor. + # # Name of the processor. attr_accessor :name - # Array of source attributes. + # # Array of source attributes. attr_accessor :sources - # Type of logs date remapper. + # # Type of logs date remapper. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/logs_exclusion.rb b/lib/datadog_api_client/v1/models/logs_exclusion.rb index 1dafbba9584..c860fc8d7df 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion.rb @@ -23,13 +23,13 @@ class LogsExclusion # @!visibility private attr_accessor :_unparsed - # Exclusion filter is defined by a query, a sampling rule, and a active/inactive toggle. + # # Exclusion filter is defined by a query, a sampling rule, and a active/inactive toggle. attr_accessor :filter - # Whether or not the exclusion filter is active. + # # Whether or not the exclusion filter is active. attr_accessor :is_enabled - # Name of the index exclusion filter. + # # Name of the index exclusion filter. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 177ac8d78b8..d88d5ee141f 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb @@ -23,11 +23,11 @@ class LogsExclusionFilter # @!visibility private attr_accessor :_unparsed - # Default query is `*`, meaning all logs flowing in the index would be excluded. + # # Default query is `*`, meaning all logs flowing in the index would be excluded. # Scope down exclusion filter to only a subset of logs with a log query. attr_accessor :query - # Sample rate to apply to logs going through this exclusion filter, + # # Sample rate to apply to logs going through this exclusion filter, # a value of 1.0 excludes all logs matching the query. attr_accessor :sample_rate diff --git a/lib/datadog_api_client/v1/models/logs_filter.rb b/lib/datadog_api_client/v1/models/logs_filter.rb index 013d6f7b1de..fcb295a2e23 100644 --- a/lib/datadog_api_client/v1/models/logs_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_filter.rb @@ -23,7 +23,7 @@ class LogsFilter # @!visibility private attr_accessor :_unparsed - # The filter query. + # # The filter query. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 f54be14db16..ddddae858ef 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 @@ -24,19 +24,19 @@ class LogsGeoIPParser # @!visibility private attr_accessor :_unparsed - # Whether or not the processor is enabled. + # # Whether or not the processor is enabled. attr_accessor :is_enabled - # Name of the processor. + # # Name of the processor. attr_accessor :name - # Array of source attributes. + # # Array of source attributes. attr_accessor :sources - # Name of the parent attribute that contains all the extracted details from the `sources`. + # # Name of the parent attribute that contains all the extracted details from the `sources`. attr_accessor :target - # Type of GeoIP parser. + # # Type of GeoIP parser. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 bddd044bd5d..0ed39c0c33a 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser.rb @@ -24,22 +24,22 @@ class LogsGrokParser # @!visibility private attr_accessor :_unparsed - # Set of rules for the grok parser. + # # Set of rules for the grok parser. attr_accessor :grok - # Whether or not the processor is enabled. + # # Whether or not the processor is enabled. attr_accessor :is_enabled - # Name of the processor. + # # Name of the processor. attr_accessor :name - # List of sample logs to test this grok parser. + # # List of sample logs to test this grok parser. attr_accessor :samples - # Name of the log attribute to parse. + # # Name of the log attribute to parse. attr_accessor :source - # Type of logs grok parser. + # # Type of logs grok parser. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 27125d32973..26db9366b3d 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 @@ -23,10 +23,10 @@ class LogsGrokParserRules # @!visibility private attr_accessor :_unparsed - # List of match rules for the grok parser, separated by a new line. + # # List of match rules for the grok parser, separated by a new line. attr_accessor :match_rules - # List of support rules for the grok parser, separated by a new line. + # # List of support rules for the grok parser, separated by a new line. attr_accessor :support_rules # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/logs_index.rb b/lib/datadog_api_client/v1/models/logs_index.rb index 81e39b89561..65738c20691 100644 --- a/lib/datadog_api_client/v1/models/logs_index.rb +++ b/lib/datadog_api_client/v1/models/logs_index.rb @@ -23,25 +23,25 @@ class LogsIndex # @!visibility private attr_accessor :_unparsed - # The number of log events you can send in this index per day before you are rate-limited. + # # The number of log events you can send in this index per day before you are rate-limited. attr_accessor :daily_limit - # An array of exclusion objects. The logs are tested against the query of each filter, + # # An array of exclusion objects. The logs are tested against the query of each filter, # following the order of the array. Only the first matching active exclusion matters, # others (if any) are ignored. attr_accessor :exclusion_filters - # Filter for logs. + # # Filter for logs. attr_accessor :filter - # A boolean stating if the index is rate limited, meaning more logs than the daily limit have been sent. + # # A boolean stating if the index is rate limited, meaning more logs than the daily limit have been sent. # Rate limit is reset every-day at 2pm UTC. attr_accessor :is_rate_limited - # The name of the index. + # # The name of the index. attr_accessor :name - # The number of days before logs are deleted from this index. Available values depend on + # # The number of days before logs are deleted from this index. Available values depend on # retention plans specified in your organization's contract/subscriptions. attr_accessor :num_retention_days 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 901e5d4000d..0fa84bed969 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 @@ -23,7 +23,7 @@ class LogsIndexListResponse # @!visibility private attr_accessor :_unparsed - # Array of Log index configurations. + # # Array of Log index configurations. attr_accessor :indexes # Attribute mapping from ruby-style variable name to JSON key. 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 4bc7bf85e70..aa2a5637b54 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 @@ -23,25 +23,25 @@ class LogsIndexUpdateRequest # @!visibility private attr_accessor :_unparsed - # The number of log events you can send in this index per day before you are rate-limited. + # # The number of log events you can send in this index per day before you are rate-limited. attr_accessor :daily_limit - # If true, sets the `daily_limit` value to null and the index is not limited on a daily basis (any + # # If true, sets the `daily_limit` value to null and the index is not limited on a daily basis (any # specified `daily_limit` value in the request is ignored). If false or omitted, the index's current # `daily_limit` is maintained. attr_accessor :disable_daily_limit - # An array of exclusion objects. The logs are tested against the query of each filter, + # # An array of exclusion objects. The logs are tested against the query of each filter, # following the order of the array. Only the first matching active exclusion matters, # others (if any) are ignored. attr_accessor :exclusion_filters - # Filter for logs. + # # Filter for logs. attr_accessor :filter - # The number of days before logs are deleted from this index. Available values depend on + # # The number of days before logs are deleted from this index. Available values depend on # retention plans specified in your organization's contract/subscriptions. - # + # # **Note:** Changing the retention for an index adjusts the length of retention for all logs # already in this index. It may also affect billing. attr_accessor :num_retention_days 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 239c2c4d5c6..64c0b795680 100644 --- a/lib/datadog_api_client/v1/models/logs_indexes_order.rb +++ b/lib/datadog_api_client/v1/models/logs_indexes_order.rb @@ -23,7 +23,7 @@ class LogsIndexesOrder # @!visibility private attr_accessor :_unparsed - # Array of strings identifying by their name(s) the index(es) of your organization. + # # Array of strings identifying by their name(s) the index(es) of your organization. # Logs are tested against the query filter of each index one by one, following the order of the array. # Logs are eventually stored in the first matching index. attr_accessor :index_names 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 cfd7a95d779..606a27d479e 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request.rb @@ -23,27 +23,27 @@ class LogsListRequest # @!visibility private attr_accessor :_unparsed - # The log index on which the request is performed. For multi-index organizations, + # # The log index on which the request is performed. For multi-index organizations, # the default is all live indexes. Historical indexes of rehydrated logs must be specified. attr_accessor :index - # Number of logs return in the response. + # # Number of logs return in the response. attr_accessor :limit - # The search query - following the log search syntax. + # # The search query - following the log search syntax. attr_accessor :query - # Time-ascending `asc` or time-descending `desc`results. + # # Time-ascending `asc` or time-descending `desc`results. attr_accessor :sort - # Hash identifier of the first log to return in the list, available in a log `id` attribute. + # # Hash identifier of the first log to return in the list, available in a log `id` attribute. # This parameter is used for the pagination feature. - # + # # **Note**: This parameter is ignored if the corresponding log # is out of the scope of the specified time window. attr_accessor :start_at - # Timeframe to retrieve the log from. + # # Timeframe to retrieve the log from. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 e22be2af29b..e11ee4e031d 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 @@ -23,14 +23,14 @@ class LogsListRequestTime # @!visibility private attr_accessor :_unparsed - # Minimum timestamp for requested logs. + # # Minimum timestamp for requested logs. attr_accessor :from - # Timezone can be specified both as an offset (for example "UTC+03:00") + # # Timezone can be specified both as an offset (for example "UTC+03:00") # or a regional zone (for example "Europe/Paris"). attr_accessor :timezone - # Maximum timestamp for requested logs. + # # Maximum timestamp for requested logs. attr_accessor :to # Attribute mapping from ruby-style variable name to JSON key. 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 fe1caaa06d0..fcab206e4cf 100644 --- a/lib/datadog_api_client/v1/models/logs_list_response.rb +++ b/lib/datadog_api_client/v1/models/logs_list_response.rb @@ -23,14 +23,14 @@ class LogsListResponse # @!visibility private attr_accessor :_unparsed - # Array of logs matching the request and the `nextLogId` if sent. + # # Array of logs matching the request and the `nextLogId` if sent. attr_accessor :logs - # Hash identifier of the next log to return in the list. + # # Hash identifier of the next log to return in the list. # This parameter is used for the pagination feature. attr_accessor :next_log_id - # Status of the response. + # # Status of the response. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. 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 539e44b5388..7d203ea6654 100644 --- a/lib/datadog_api_client/v1/models/logs_lookup_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_lookup_processor.rb @@ -28,27 +28,27 @@ class LogsLookupProcessor # @!visibility private attr_accessor :_unparsed - # Value to set the target attribute if the source value is not found in the list. + # # Value to set the target attribute if the source value is not found in the list. attr_accessor :default_lookup - # Whether or not the processor is enabled. + # # Whether or not the processor is enabled. attr_accessor :is_enabled - # Mapping table of values for the source attribute and their associated target attribute values, + # # Mapping table of values for the source attribute and their associated target attribute values, # formatted as `["source_key1,target_value1", "source_key2,target_value2"]` attr_accessor :lookup_table - # Name of the processor. + # # Name of the processor. attr_accessor :name - # Source attribute used to perform the lookup. + # # Source attribute used to perform the lookup. attr_accessor :source - # Name of the attribute that contains the corresponding value in the mapping list + # # Name of the attribute that contains the corresponding value in the mapping list # or the `default_lookup` if not found in the mapping list. attr_accessor :target - # Type of logs lookup processor. + # # Type of logs lookup processor. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 ce4b1186340..1288f9dc7c6 100644 --- a/lib/datadog_api_client/v1/models/logs_message_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_message_remapper.rb @@ -28,16 +28,16 @@ class LogsMessageRemapper # @!visibility private attr_accessor :_unparsed - # Whether or not the processor is enabled. + # # Whether or not the processor is enabled. attr_accessor :is_enabled - # Name of the processor. + # # Name of the processor. attr_accessor :name - # Array of source attributes. + # # Array of source attributes. attr_accessor :sources - # Type of logs message remapper. + # # Type of logs message remapper. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/logs_pipeline.rb b/lib/datadog_api_client/v1/models/logs_pipeline.rb index f0de6ab5c6e..faaddb9ee3b 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline.rb @@ -27,25 +27,25 @@ class LogsPipeline # @!visibility private attr_accessor :_unparsed - # Filter for logs. + # # Filter for logs. attr_accessor :filter - # ID of the pipeline. + # # ID of the pipeline. attr_accessor :id - # Whether or not the pipeline is enabled. + # # Whether or not the pipeline is enabled. attr_accessor :is_enabled - # Whether or not the pipeline can be edited. + # # Whether or not the pipeline can be edited. attr_accessor :is_read_only - # Name of the pipeline. + # # Name of the pipeline. attr_accessor :name - # Ordered list of processors in this pipeline. + # # Ordered list of processors in this pipeline. attr_accessor :processors - # Type of pipeline. + # # Type of pipeline. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 fbce659f0d6..3d1bc6fc510 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb @@ -27,19 +27,19 @@ class LogsPipelineProcessor # @!visibility private attr_accessor :_unparsed - # Filter for logs. + # # Filter for logs. attr_accessor :filter - # Whether or not the processor is enabled. + # # Whether or not the processor is enabled. attr_accessor :is_enabled - # Name of the processor. + # # Name of the processor. attr_accessor :name - # Ordered list of processors in this pipeline. + # # Ordered list of processors in this pipeline. attr_accessor :processors - # Type of logs pipeline processor. + # # Type of logs pipeline processor. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 f669795e0d6..96c05dfaa84 100644 --- a/lib/datadog_api_client/v1/models/logs_pipelines_order.rb +++ b/lib/datadog_api_client/v1/models/logs_pipelines_order.rb @@ -23,7 +23,7 @@ class LogsPipelinesOrder # @!visibility private attr_accessor :_unparsed - # Ordered Array of `` strings, the order of pipeline IDs in the array + # # Ordered Array of `` strings, the order of pipeline IDs in the array # define the overall Pipelines order for Datadog. attr_accessor :pipeline_ids 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 3c0a76935c7..a9aa3b7a1c9 100644 --- a/lib/datadog_api_client/v1/models/logs_query_compute.rb +++ b/lib/datadog_api_client/v1/models/logs_query_compute.rb @@ -23,13 +23,13 @@ class LogsQueryCompute # @!visibility private attr_accessor :_unparsed - # The aggregation method. + # # The aggregation method. attr_accessor :aggregation - # Facet name. + # # Facet name. attr_accessor :facet - # Define a time interval in seconds. + # # Define a time interval in seconds. attr_accessor :interval # Attribute mapping from ruby-style variable name to JSON key. 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 2f506ee7592..5c4cffcf7ac 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 @@ -23,16 +23,16 @@ class LogsRetentionAggSumUsage # @!visibility private attr_accessor :_unparsed - # Total indexed logs for this retention period. + # # Total indexed logs for this retention period. attr_accessor :logs_indexed_logs_usage_agg_sum - # Live indexed logs for this retention period. + # # Live indexed logs for this retention period. attr_accessor :logs_live_indexed_logs_usage_agg_sum - # Rehydrated indexed logs for this retention period. + # # Rehydrated indexed logs for this retention period. attr_accessor :logs_rehydrated_indexed_logs_usage_agg_sum - # The retention period in days or "custom" for all custom retention periods. + # # The retention period in days or "custom" for all custom retention periods. attr_accessor :retention # Attribute mapping from ruby-style variable name to JSON key. 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 49c2e6bc46a..40fbeaac2a1 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 @@ -23,16 +23,16 @@ class LogsRetentionSumUsage # @!visibility private attr_accessor :_unparsed - # Total indexed logs for this retention period. + # # Total indexed logs for this retention period. attr_accessor :logs_indexed_logs_usage_sum - # Live indexed logs for this retention period. + # # Live indexed logs for this retention period. attr_accessor :logs_live_indexed_logs_usage_sum - # Rehydrated indexed logs for this retention period. + # # Rehydrated indexed logs for this retention period. attr_accessor :logs_rehydrated_indexed_logs_usage_sum - # The retention period in days or "custom" for all custom retention periods. + # # The retention period in days or "custom" for all custom retention periods. attr_accessor :retention # Attribute mapping from ruby-style variable name to JSON key. 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 2b071bacf0e..fca159e58a9 100644 --- a/lib/datadog_api_client/v1/models/logs_service_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_service_remapper.rb @@ -26,16 +26,16 @@ class LogsServiceRemapper # @!visibility private attr_accessor :_unparsed - # Whether or not the processor is enabled. + # # Whether or not the processor is enabled. attr_accessor :is_enabled - # Name of the processor. + # # Name of the processor. attr_accessor :name - # Array of source attributes. + # # Array of source attributes. attr_accessor :sources - # Type of logs service remapper. + # # Type of logs service remapper. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 d18420d0a93..769867374e1 100644 --- a/lib/datadog_api_client/v1/models/logs_status_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_status_remapper.rb @@ -40,16 +40,16 @@ class LogsStatusRemapper # @!visibility private attr_accessor :_unparsed - # Whether or not the processor is enabled. + # # Whether or not the processor is enabled. attr_accessor :is_enabled - # Name of the processor. + # # Name of the processor. attr_accessor :name - # Array of source attributes. + # # Array of source attributes. attr_accessor :sources - # Type of logs status remapper. + # # Type of logs status remapper. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 1e8f1accf8a..542cca8e98e 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 @@ -35,23 +35,23 @@ class LogsStringBuilderProcessor # @!visibility private attr_accessor :_unparsed - # Whether or not the processor is enabled. + # # Whether or not the processor is enabled. attr_accessor :is_enabled - # If true, it replaces all missing attributes of `template` by an empty string. + # # If true, it replaces all missing attributes of `template` by an empty string. # If `false` (default), skips the operation for missing attributes. attr_accessor :is_replace_missing - # Name of the processor. + # # Name of the processor. attr_accessor :name - # The name of the attribute that contains the result of the template. + # # The name of the attribute that contains the result of the template. attr_accessor :target - # A formula with one or more attributes and raw text. + # # A formula with one or more attributes and raw text. attr_accessor :template - # Type of logs string builder processor. + # # Type of logs string builder processor. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3ae1fbbc3b9..488820f2782 100644 --- a/lib/datadog_api_client/v1/models/logs_trace_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_trace_remapper.rb @@ -28,16 +28,16 @@ class LogsTraceRemapper # @!visibility private attr_accessor :_unparsed - # Whether or not the processor is enabled. + # # Whether or not the processor is enabled. attr_accessor :is_enabled - # Name of the processor. + # # Name of the processor. attr_accessor :name - # Array of source attributes. + # # Array of source attributes. attr_accessor :sources - # Type of logs trace remapper. + # # Type of logs trace remapper. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 d1f7241c7a5..8f3822c24d8 100644 --- a/lib/datadog_api_client/v1/models/logs_url_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_url_parser.rb @@ -23,22 +23,22 @@ class LogsURLParser # @!visibility private attr_accessor :_unparsed - # Whether or not the processor is enabled. + # # Whether or not the processor is enabled. attr_accessor :is_enabled - # Name of the processor. + # # Name of the processor. attr_accessor :name - # Normalize the ending slashes or not. + # # Normalize the ending slashes or not. attr_accessor :normalize_ending_slashes - # Array of source attributes. + # # Array of source attributes. attr_accessor :sources - # Name of the parent attribute that contains all the extracted details from the `sources`. + # # Name of the parent attribute that contains all the extracted details from the `sources`. attr_accessor :target - # Type of logs URL parser. + # # Type of logs URL parser. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 94d9dd24beb..19044d64981 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 @@ -24,22 +24,22 @@ class LogsUserAgentParser # @!visibility private attr_accessor :_unparsed - # Whether or not the processor is enabled. + # # Whether or not the processor is enabled. attr_accessor :is_enabled - # Define if the source attribute is URL encoded or not. + # # Define if the source attribute is URL encoded or not. attr_accessor :is_encoded - # Name of the processor. + # # Name of the processor. attr_accessor :name - # Array of source attributes. + # # Array of source attributes. attr_accessor :sources - # Name of the parent attribute that contains all the extracted details from the `sources`. + # # Name of the parent attribute that contains all the extracted details from the `sources`. attr_accessor :target - # Type of logs User-Agent parser. + # # Type of logs User-Agent parser. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/metric_metadata.rb b/lib/datadog_api_client/v1/models/metric_metadata.rb index 77f87cfdf1d..0cbcd12c17f 100644 --- a/lib/datadog_api_client/v1/models/metric_metadata.rb +++ b/lib/datadog_api_client/v1/models/metric_metadata.rb @@ -23,25 +23,25 @@ class MetricMetadata # @!visibility private attr_accessor :_unparsed - # Metric description. + # # Metric description. attr_accessor :description - # Name of the integration that sent the metric if applicable. + # # Name of the integration that sent the metric if applicable. attr_accessor :integration - # Per unit of the metric such as `second` in `bytes per second`. + # # Per unit of the metric such as `second` in `bytes per second`. attr_accessor :per_unit - # A more human-readable and abbreviated version of the metric name. + # # A more human-readable and abbreviated version of the metric name. attr_accessor :short_name - # StatsD flush interval of the metric in seconds if applicable. + # # StatsD flush interval of the metric in seconds if applicable. attr_accessor :statsd_interval - # Metric type such as `gauge` or `rate`. + # # Metric type such as `gauge` or `rate`. attr_accessor :type - # Primary unit of the metric such as `byte` or `operation`. + # # Primary unit of the metric such as `byte` or `operation`. attr_accessor :unit # Attribute mapping from ruby-style variable name to JSON key. 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 c38f571e642..a238aaba38d 100644 --- a/lib/datadog_api_client/v1/models/metric_search_response.rb +++ b/lib/datadog_api_client/v1/models/metric_search_response.rb @@ -23,7 +23,7 @@ class MetricSearchResponse # @!visibility private attr_accessor :_unparsed - # Search result. + # # Search result. attr_accessor :results # Attribute mapping from ruby-style variable name to JSON key. 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 a885c68fbda..9968de70a67 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 @@ -23,7 +23,7 @@ class MetricSearchResponseResults # @!visibility private attr_accessor :_unparsed - # List of metrics that match the search query. + # # List of metrics that match the search query. attr_accessor :metrics # Attribute mapping from ruby-style variable name to JSON key. 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 884e222a539..119fba26e4c 100644 --- a/lib/datadog_api_client/v1/models/metrics_list_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_list_response.rb @@ -23,10 +23,10 @@ class MetricsListResponse # @!visibility private attr_accessor :_unparsed - # Time when the metrics were active, seconds since the Unix epoch. + # # Time when the metrics were active, seconds since the Unix epoch. attr_accessor :from - # List of metric names. + # # List of metric names. attr_accessor :metrics # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/metrics_payload.rb b/lib/datadog_api_client/v1/models/metrics_payload.rb index 988dbcc427c..b9170b623ce 100644 --- a/lib/datadog_api_client/v1/models/metrics_payload.rb +++ b/lib/datadog_api_client/v1/models/metrics_payload.rb @@ -23,7 +23,7 @@ class MetricsPayload # @!visibility private attr_accessor :_unparsed - # A list of time series to submit to Datadog. + # # A list of time series to submit to Datadog. attr_accessor :series # Attribute mapping from ruby-style variable name to JSON key. 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 519efd37d10..ff1676d827b 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_metadata.rb @@ -23,43 +23,43 @@ class MetricsQueryMetadata # @!visibility private attr_accessor :_unparsed - # Aggregation type. + # # Aggregation type. attr_accessor :aggr - # Display name of the metric. + # # Display name of the metric. attr_accessor :display_name - # End of the time window, milliseconds since Unix epoch. + # # End of the time window, milliseconds since Unix epoch. attr_accessor :_end - # Metric expression. + # # Metric expression. attr_accessor :expression - # Number of seconds between data samples. + # # Number of seconds between data samples. attr_accessor :interval - # Number of data samples. + # # Number of data samples. attr_accessor :length - # Metric name. + # # Metric name. attr_accessor :metric - # List of points of the time series. + # # List of points of the time series. attr_accessor :pointlist - # The index of the series' query within the request. + # # The index of the series' query within the request. attr_accessor :query_index - # Metric scope, comma separated list of tags. + # # Metric scope, comma separated list of tags. attr_accessor :scope - # Start of the time window, milliseconds since Unix epoch. + # # Start of the time window, milliseconds since Unix epoch. attr_accessor :start - # Unique tags identifying this series. + # # Unique tags identifying this series. attr_accessor :tag_set - # Detailed information about the metric unit. + # # Detailed information about the metric unit. # First element describes the "primary unit" (for example, `bytes` in `bytes per second`), # second describes the "per unit" (for example, `second` in `bytes per second`). attr_accessor :unit 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 fc50371aaec..74879551534 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_response.rb @@ -23,31 +23,31 @@ class MetricsQueryResponse # @!visibility private attr_accessor :_unparsed - # Message indicating the errors if status is not `ok`. + # # Message indicating the errors if status is not `ok`. attr_accessor :error - # Start of requested time window, milliseconds since Unix epoch. + # # Start of requested time window, milliseconds since Unix epoch. attr_accessor :from_date - # List of tag keys on which to group. + # # List of tag keys on which to group. attr_accessor :group_by - # Message indicating `success` if status is `ok`. + # # Message indicating `success` if status is `ok`. attr_accessor :message - # Query string + # # Query string attr_accessor :query - # Type of response. + # # Type of response. attr_accessor :res_type - # List of timeseries queried. + # # List of timeseries queried. attr_accessor :series - # Status of the query. + # # Status of the query. attr_accessor :status - # End of requested time window, milliseconds since Unix epoch. + # # End of requested time window, milliseconds since Unix epoch. attr_accessor :to_date # Attribute mapping from ruby-style variable name to JSON key. 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 e71b6291134..4916d49de23 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_unit.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_unit.rb @@ -23,19 +23,19 @@ class MetricsQueryUnit # @!visibility private attr_accessor :_unparsed - # Unit family, allows for conversion between units of the same family, for scaling. + # # Unit family, allows for conversion between units of the same family, for scaling. attr_accessor :family - # Unit name + # # Unit name attr_accessor :name - # Plural form of the unit name. + # # Plural form of the unit name. attr_accessor :plural - # Factor for scaling between units of the same family. + # # Factor for scaling between units of the same family. attr_accessor :scale_factor - # Abbreviation of the unit. + # # Abbreviation of the unit. attr_accessor :short_name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor.rb b/lib/datadog_api_client/v1/models/monitor.rb index c2577e683c5..7e99004efc4 100644 --- a/lib/datadog_api_client/v1/models/monitor.rb +++ b/lib/datadog_api_client/v1/models/monitor.rb @@ -23,52 +23,52 @@ class Monitor # @!visibility private attr_accessor :_unparsed - # Timestamp of the monitor creation. + # # Timestamp of the monitor creation. attr_accessor :created - # Object describing the creator of the shared element. + # # Object describing the creator of the shared element. attr_accessor :creator - # Whether or not the monitor is deleted. (Always `null`) + # # Whether or not the monitor is deleted. (Always `null`) attr_accessor :deleted - # ID of this monitor. + # # ID of this monitor. attr_accessor :id - # A message to include with notifications for this monitor. + # # A message to include with notifications for this monitor. attr_accessor :message - # Last timestamp when the monitor was edited. + # # Last timestamp when the monitor was edited. attr_accessor :modified - # Whether or not the monitor is broken down on different groups. + # # Whether or not the monitor is broken down on different groups. attr_accessor :multi - # The monitor name. + # # The monitor name. attr_accessor :name - # List of options associated with your monitor. + # # List of options associated with your monitor. attr_accessor :options - # The different states your monitor can be in. + # # The different states your monitor can be in. attr_accessor :overall_state - # Integer from 1 (high) to 5 (low) indicating alert severity. + # # Integer from 1 (high) to 5 (low) indicating alert severity. attr_accessor :priority - # The monitor query. + # # The monitor query. attr_accessor :query - # A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked` option. + # # A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked` option. attr_accessor :restricted_roles - # Wrapper object with the different monitor states. + # # Wrapper object with the different monitor states. attr_accessor :state - # Tags associated to your monitor. + # # Tags associated to your monitor. attr_accessor :tags - # The type of the monitor. For more information about `type`, see the [monitor options](https://docs.datadoghq.com/monitors/guide/monitor_api_options/) docs. + # # 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 # Attribute mapping from ruby-style variable name to JSON key. 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 eef1588768c..8cdb48a4858 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 @@ -23,22 +23,22 @@ class MonitorFormulaAndFunctionEventQueryDefinition # @!visibility private attr_accessor :_unparsed - # Compute options. + # # Compute options. attr_accessor :compute - # Data source for event platform-based queries. + # # Data source for event platform-based queries. attr_accessor :data_source - # Group by options. + # # Group by options. attr_accessor :group_by - # An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. + # # An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. attr_accessor :indexes - # Name of the query for use in formulas. + # # Name of the query for use in formulas. attr_accessor :name - # Search options. + # # Search options. attr_accessor :search # Attribute mapping from ruby-style variable name to JSON key. 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 1f17bebd1dd..42e3c60fd3a 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 @@ -23,13 +23,13 @@ class MonitorFormulaAndFunctionEventQueryDefinitionCompute # @!visibility private attr_accessor :_unparsed - # Aggregation methods for event platform queries. + # # Aggregation methods for event platform queries. attr_accessor :aggregation - # A time interval in milliseconds. + # # A time interval in milliseconds. attr_accessor :interval - # Measurable attribute to compute. + # # Measurable attribute to compute. attr_accessor :metric # Attribute mapping from ruby-style variable name to JSON key. 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 a815a86f8e7..b31d74dfe1f 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 @@ -23,7 +23,7 @@ class MonitorFormulaAndFunctionEventQueryDefinitionSearch # @!visibility private attr_accessor :_unparsed - # Events search string. + # # Events search string. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 aa553fde769..da2ed4c757b 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 @@ -23,13 +23,13 @@ class MonitorFormulaAndFunctionEventQueryGroupBy # @!visibility private attr_accessor :_unparsed - # Event facet. + # # Event facet. attr_accessor :facet - # Number of groups to return. + # # Number of groups to return. attr_accessor :limit - # Options for sorting group by results. + # # Options for sorting group by results. attr_accessor :sort # Attribute mapping from ruby-style variable name to JSON key. 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 361d23f0b03..91bcead0896 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 @@ -23,13 +23,13 @@ class MonitorFormulaAndFunctionEventQueryGroupBySort # @!visibility private attr_accessor :_unparsed - # Aggregation methods for event platform queries. + # # Aggregation methods for event platform queries. attr_accessor :aggregation - # Metric used for sorting group by results. + # # Metric used for sorting group by results. attr_accessor :metric - # Direction of sort. + # # Direction of sort. attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. 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 86ed972eacc..684bf2237bc 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 @@ -23,13 +23,13 @@ class MonitorGroupSearchResponse # @!visibility private attr_accessor :_unparsed - # The counts of monitor groups per different criteria. + # # The counts of monitor groups per different criteria. attr_accessor :counts - # The list of found monitor groups. + # # The list of found monitor groups. attr_accessor :groups - # Metadata about the response. + # # Metadata about the response. attr_accessor :metadata # Attribute mapping from ruby-style variable name to JSON key. 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 5507b32accb..b3785ca0882 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 @@ -23,10 +23,10 @@ class MonitorGroupSearchResponseCounts # @!visibility private attr_accessor :_unparsed - # Search facets. + # # Search facets. attr_accessor :status - # Search facets. + # # Search facets. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb index 7d6625af15d..007685772e2 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb @@ -23,10 +23,10 @@ class MonitorGroupSearchResponseCountsStatusItem # @!visibility private attr_accessor :_unparsed - # The number of found monitors with the listed value. + # # The number of found monitors with the listed value. attr_accessor :count - # The facet value. + # # The facet value. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb index cbdad2cc91c..5e6e3fda2c3 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb @@ -23,10 +23,10 @@ class MonitorGroupSearchResponseCountsTypeItem # @!visibility private attr_accessor :_unparsed - # The number of found monitors with the listed value. + # # The number of found monitors with the listed value. attr_accessor :count - # The facet value. + # # The facet value. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 c922a4a0e4e..5ae81cd95e0 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 @@ -23,25 +23,25 @@ class MonitorGroupSearchResult # @!visibility private attr_accessor :_unparsed - # The name of the group. + # # The name of the group. attr_accessor :group - # The list of tags of the monitor group. + # # The list of tags of the monitor group. attr_accessor :group_tags - # Latest timestamp the monitor group was in NO_DATA state. + # # Latest timestamp the monitor group was in NO_DATA state. attr_accessor :last_nodata_ts - # Latest timestamp the monitor group triggered. + # # Latest timestamp the monitor group triggered. attr_accessor :last_triggered_ts - # The ID of the monitor. + # # The ID of the monitor. attr_accessor :monitor_id - # The name of the monitor. + # # The name of the monitor. attr_accessor :monitor_name - # The different states your monitor can be in. + # # The different states your monitor can be in. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor_options.rb b/lib/datadog_api_client/v1/models/monitor_options.rb index 53840c2d01d..8fe21524710 100644 --- a/lib/datadog_api_client/v1/models/monitor_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_options.rb @@ -23,103 +23,103 @@ class MonitorOptions # @!visibility private attr_accessor :_unparsed - # Type of aggregation performed in the monitor query. + # # Type of aggregation performed in the monitor query. attr_accessor :aggregation - # IDs of the device the Synthetics monitor is running on. + # # IDs of the device the Synthetics monitor is running on. attr_accessor :device_ids - # Whether or not to send a log sample when the log monitor triggers. + # # Whether or not to send a log sample when the log monitor triggers. attr_accessor :enable_logs_sample - # We recommend using the [is_renotify](https://docs.datadoghq.com/monitors/notify/?tab=is_alert#renotify), + # # We recommend using the [is_renotify](https://docs.datadoghq.com/monitors/notify/?tab=is_alert#renotify), # block in the original message instead. # A message to include with a re-notification. Supports the `@username` notification we allow elsewhere. # Not applicable if `renotify_interval` is `None`. attr_accessor :escalation_message - # Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to `300` (5min), + # # Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to `300` (5min), # the timeframe is set to `last_5m` and the time is 7:00, the monitor evaluates data from 6:50 to 6:55. # This is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation. attr_accessor :evaluation_delay - # Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. + # # Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. attr_accessor :groupby_simple_monitor - # A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title. - # + # # A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title. + # # **Examples** # - If `True`, `[Triggered on {host:h1}] Monitor Title` # - If `False`, `[Triggered] Monitor Title` attr_accessor :include_tags - # Whether or not the monitor is locked (only editable by creator and admins). + # # Whether or not the monitor is locked (only editable by creator and admins). attr_accessor :locked - # How long the test should be in failure before alerting (integer, number of seconds, max 7200). + # # How long the test should be in failure before alerting (integer, number of seconds, max 7200). attr_accessor :min_failure_duration - # The minimum number of locations in failure at the same time during + # # The minimum number of locations in failure at the same time during # at least one moment in the `min_failure_duration` period (`min_location_failed` and `min_failure_duration` # are part of the advanced alerting rules - integer, >= 1). attr_accessor :min_location_failed - # Time (in seconds) to skip evaluations for new groups. - # + # # Time (in seconds) to skip evaluations for new groups. + # # For example, this option can be used to skip evaluations for new hosts while they initialize. - # + # # Must be a non negative integer. attr_accessor :new_group_delay - # Time (in seconds) to allow a host to boot and applications + # # Time (in seconds) to allow a host to boot and applications # to fully start before starting the evaluation of monitor results. # Should be a non negative integer. - # + # # Use new_group_delay instead. attr_accessor :new_host_delay - # The number of minutes before a monitor notifies after data stops reporting. + # # The number of minutes before a monitor notifies after data stops reporting. # Datadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks. # If omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks. attr_accessor :no_data_timeframe - # A Boolean indicating whether tagged users is notified on changes to this monitor. + # # A Boolean indicating whether tagged users is notified on changes to this monitor. attr_accessor :notify_audit - # A Boolean indicating whether this monitor notifies when data stops reporting. + # # A Boolean indicating whether this monitor notifies when data stops reporting. attr_accessor :notify_no_data - # The number of minutes after the last notification before a monitor re-notifies on the current status. + # # The number of minutes after the last notification before a monitor re-notifies on the current status. # It only re-notifies if it’s not resolved. attr_accessor :renotify_interval - # The number of times re-notification messages should be sent on the current status at the provided re-notification interval. + # # The number of times re-notification messages should be sent on the current status at the provided re-notification interval. attr_accessor :renotify_occurrences - # The types of monitor statuses for which re-notification messages are sent. + # # The types of monitor statuses for which re-notification messages are sent. attr_accessor :renotify_statuses - # A Boolean indicating whether this monitor needs a full window of data before it’s evaluated. + # # A Boolean indicating whether this monitor needs a full window of data before it’s evaluated. # We highly recommend you set this to `false` for sparse metrics, # otherwise some evaluations are skipped. Default is false. attr_accessor :require_full_window - # Information about the downtime applied to the monitor. + # # Information about the downtime applied to the monitor. attr_accessor :silenced - # ID of the corresponding Synthetic check. + # # ID of the corresponding Synthetic check. attr_accessor :synthetics_check_id - # Alerting time window options. + # # Alerting time window options. attr_accessor :threshold_windows - # List of the different monitor threshold available. + # # List of the different monitor threshold available. attr_accessor :thresholds - # The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours. + # # The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours. attr_accessor :timeout_h - # List of requests that can be used in the monitor query. **This feature is currently in beta.** + # # List of requests that can be used in the monitor query. **This feature is currently in beta.** attr_accessor :variables # Attribute mapping from ruby-style variable name to JSON key. 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 0d270f3980b..f7c81e35f3e 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb @@ -23,13 +23,13 @@ class MonitorOptionsAggregation # @!visibility private attr_accessor :_unparsed - # Group to break down the monitor on. + # # Group to break down the monitor on. attr_accessor :group_by - # Metric name used in the monitor. + # # Metric name used in the monitor. attr_accessor :metric - # Metric type used in the monitor. + # # Metric type used in the monitor. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 62f5a803874..3427f469cf0 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response.rb @@ -23,13 +23,13 @@ class MonitorSearchResponse # @!visibility private attr_accessor :_unparsed - # The counts of monitors per different criteria. + # # The counts of monitors per different criteria. attr_accessor :counts - # Metadata about the response. + # # Metadata about the response. attr_accessor :metadata - # The list of found monitors. + # # The list of found monitors. attr_accessor :monitors # Attribute mapping from ruby-style variable name to JSON key. 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 e8e86ab6f1b..ef441a4c5f5 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 @@ -23,16 +23,16 @@ class MonitorSearchResponseCounts # @!visibility private attr_accessor :_unparsed - # Search facets. + # # Search facets. attr_accessor :muted - # Search facets. + # # Search facets. attr_accessor :status - # Search facets. + # # Search facets. attr_accessor :tag - # Search facets. + # # Search facets. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb index 51a3642aeae..683c66efe25 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb @@ -23,10 +23,10 @@ class MonitorSearchResponseCountsMutedItem # @!visibility private attr_accessor :_unparsed - # The number of found monitors with the listed value. + # # The number of found monitors with the listed value. attr_accessor :count - # The facet value. + # # The facet value. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb index 727ad0210f8..7990605ba8e 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb @@ -23,10 +23,10 @@ class MonitorSearchResponseCountsStatusItem # @!visibility private attr_accessor :_unparsed - # The number of found monitors with the listed value. + # # The number of found monitors with the listed value. attr_accessor :count - # The facet value. + # # The facet value. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb index 53020f1e819..7bcbe8c3189 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb @@ -23,10 +23,10 @@ class MonitorSearchResponseCountsTagItem # @!visibility private attr_accessor :_unparsed - # The number of found monitors with the listed value. + # # The number of found monitors with the listed value. attr_accessor :count - # The facet value. + # # The facet value. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb index 73ea46ff46f..84cc1520642 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb @@ -23,10 +23,10 @@ class MonitorSearchResponseCountsTypeItem # @!visibility private attr_accessor :_unparsed - # The number of found monitors with the listed value. + # # The number of found monitors with the listed value. attr_accessor :count - # The facet value. + # # The facet value. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 51d1f3c2f1b..2492a38089a 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 @@ -23,16 +23,16 @@ class MonitorSearchResponseMetadata # @!visibility private attr_accessor :_unparsed - # The page to start paginating from. + # # The page to start paginating from. attr_accessor :page - # The number of pages. + # # The number of pages. attr_accessor :page_count - # The number of monitors to return per page. + # # The number of monitors to return per page. attr_accessor :per_page - # The total number of monitors. + # # The total number of monitors. attr_accessor :total_count # Attribute mapping from ruby-style variable name to JSON key. 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 73758e42db0..ba30f2d1007 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_result.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_result.rb @@ -23,46 +23,46 @@ class MonitorSearchResult # @!visibility private attr_accessor :_unparsed - # Classification of the monitor. + # # Classification of the monitor. attr_accessor :classification - # Object describing the creator of the shared element. + # # Object describing the creator of the shared element. attr_accessor :creator - # ID of the monitor. + # # ID of the monitor. attr_accessor :id - # Latest timestamp the monitor triggered. + # # Latest timestamp the monitor triggered. attr_accessor :last_triggered_ts - # Metrics used by the monitor. + # # Metrics used by the monitor. attr_accessor :metrics - # The monitor name. + # # The monitor name. attr_accessor :name - # The notification triggered by the monitor. + # # The notification triggered by the monitor. attr_accessor :notifications - # The ID of the organization. + # # The ID of the organization. attr_accessor :org_id - # The monitor query. + # # The monitor query. attr_accessor :query - # The scope(s) to which the downtime applies, for example `host:app2`. + # # The scope(s) to which the downtime applies, for example `host:app2`. # Provide multiple scopes as a comma-separated list, for example `env:dev,env:prod`. # The resulting downtime applies to sources that matches ALL provided scopes # (that is `env:dev AND env:prod`), NOT any of them. attr_accessor :scopes - # The different states your monitor can be in. + # # The different states your monitor can be in. attr_accessor :status - # Tags associated with the monitor. + # # Tags associated with the monitor. attr_accessor :tags - # The type of the monitor. For more information about `type`, see the [monitor options](https://docs.datadoghq.com/monitors/guide/monitor_api_options/) docs. + # # 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 # Attribute mapping from ruby-style variable name to JSON key. 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 07df260257b..8cdd8697d22 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 @@ -23,10 +23,10 @@ class MonitorSearchResultNotification # @!visibility private attr_accessor :_unparsed - # The email address that received the notification. + # # The email address that received the notification. attr_accessor :handle - # The username receiving the notification + # # The username receiving the notification attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor_state.rb b/lib/datadog_api_client/v1/models/monitor_state.rb index 13856207b05..89f7dbe2f41 100644 --- a/lib/datadog_api_client/v1/models/monitor_state.rb +++ b/lib/datadog_api_client/v1/models/monitor_state.rb @@ -23,7 +23,7 @@ class MonitorState # @!visibility private attr_accessor :_unparsed - # Dictionary where the keys are groups (comma separated lists of tags) and the values are + # # Dictionary where the keys are groups (comma separated lists of tags) and the values are # the list of groups your monitor is broken down on. attr_accessor :groups 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 70fde80ca18..3a27cda1800 100644 --- a/lib/datadog_api_client/v1/models/monitor_state_group.rb +++ b/lib/datadog_api_client/v1/models/monitor_state_group.rb @@ -23,22 +23,22 @@ class MonitorStateGroup # @!visibility private attr_accessor :_unparsed - # Latest timestamp the monitor was in NO_DATA state. + # # Latest timestamp the monitor was in NO_DATA state. attr_accessor :last_nodata_ts - # Latest timestamp of the notification sent for this monitor group. + # # Latest timestamp of the notification sent for this monitor group. attr_accessor :last_notified_ts - # Latest timestamp the monitor group was resolved. + # # Latest timestamp the monitor group was resolved. attr_accessor :last_resolved_ts - # Latest timestamp the monitor group triggered. + # # Latest timestamp the monitor group triggered. attr_accessor :last_triggered_ts - # The name of the monitor. + # # The name of the monitor. attr_accessor :name - # The different states your monitor can be in. + # # The different states your monitor can be in. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. 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 31f3d8084d3..fe58e82f5f6 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 @@ -23,43 +23,43 @@ class MonitorSummaryWidgetDefinition # @!visibility private attr_accessor :_unparsed - # Which color to use on the widget. + # # Which color to use on the widget. attr_accessor :color_preference - # The number of monitors to display. + # # The number of monitors to display. attr_accessor :count - # What to display on the widget. + # # What to display on the widget. attr_accessor :display_format - # Whether to show counts of 0 or not. + # # Whether to show counts of 0 or not. attr_accessor :hide_zero_counts - # Query to filter the monitors with. + # # Query to filter the monitors with. attr_accessor :query - # Whether to show the time that has elapsed since the monitor/group triggered. + # # Whether to show the time that has elapsed since the monitor/group triggered. attr_accessor :show_last_triggered - # Widget sorting methods. + # # Widget sorting methods. attr_accessor :sort - # The start of the list. Typically 0. + # # The start of the list. Typically 0. attr_accessor :start - # Which summary type should be used. + # # Which summary type should be used. attr_accessor :summary_type - # Title of the widget. + # # Title of the widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the monitor summary widget. + # # Type of the monitor summary widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 0cf469289f4..92c714173b6 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 @@ -23,10 +23,10 @@ class MonitorThresholdWindowOptions # @!visibility private attr_accessor :_unparsed - # Describes how long an anomalous metric must be normal before the alert recovers. + # # Describes how long an anomalous metric must be normal before the alert recovers. attr_accessor :recovery_window - # Describes how long a metric must be anomalous before an alert triggers. + # # Describes how long a metric must be anomalous before an alert triggers. attr_accessor :trigger_window # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor_thresholds.rb b/lib/datadog_api_client/v1/models/monitor_thresholds.rb index 33ddcce6601..63182d1d917 100644 --- a/lib/datadog_api_client/v1/models/monitor_thresholds.rb +++ b/lib/datadog_api_client/v1/models/monitor_thresholds.rb @@ -23,22 +23,22 @@ class MonitorThresholds # @!visibility private attr_accessor :_unparsed - # The monitor `CRITICAL` threshold. + # # The monitor `CRITICAL` threshold. attr_accessor :critical - # The monitor `CRITICAL` recovery threshold. + # # The monitor `CRITICAL` recovery threshold. attr_accessor :critical_recovery - # The monitor `OK` threshold. + # # The monitor `OK` threshold. attr_accessor :ok - # The monitor UNKNOWN threshold. + # # The monitor UNKNOWN threshold. attr_accessor :unknown - # The monitor `WARNING` threshold. + # # The monitor `WARNING` threshold. attr_accessor :warning - # The monitor `WARNING` recovery threshold. + # # The monitor `WARNING` recovery threshold. attr_accessor :warning_recovery # Attribute mapping from ruby-style variable name to JSON key. 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 0f503c164e8..e939aea9e04 100644 --- a/lib/datadog_api_client/v1/models/monitor_update_request.rb +++ b/lib/datadog_api_client/v1/models/monitor_update_request.rb @@ -23,52 +23,52 @@ class MonitorUpdateRequest # @!visibility private attr_accessor :_unparsed - # Timestamp of the monitor creation. + # # Timestamp of the monitor creation. attr_accessor :created - # Object describing the creator of the shared element. + # # Object describing the creator of the shared element. attr_accessor :creator - # Whether or not the monitor is deleted. (Always `null`) + # # Whether or not the monitor is deleted. (Always `null`) attr_accessor :deleted - # ID of this monitor. + # # ID of this monitor. attr_accessor :id - # A message to include with notifications for this monitor. + # # A message to include with notifications for this monitor. attr_accessor :message - # Last timestamp when the monitor was edited. + # # Last timestamp when the monitor was edited. attr_accessor :modified - # Whether or not the monitor is broken down on different groups. + # # Whether or not the monitor is broken down on different groups. attr_accessor :multi - # The monitor name. + # # The monitor name. attr_accessor :name - # List of options associated with your monitor. + # # List of options associated with your monitor. attr_accessor :options - # The different states your monitor can be in. + # # The different states your monitor can be in. attr_accessor :overall_state - # Integer from 1 (high) to 5 (low) indicating alert severity. + # # Integer from 1 (high) to 5 (low) indicating alert severity. attr_accessor :priority - # The monitor query. + # # The monitor query. attr_accessor :query - # A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked` option. + # # A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked` option. attr_accessor :restricted_roles - # Wrapper object with the different monitor states. + # # Wrapper object with the different monitor states. attr_accessor :state - # Tags associated to your monitor. + # # Tags associated to your monitor. attr_accessor :tags - # The type of the monitor. For more information about `type`, see the [monitor options](https://docs.datadoghq.com/monitors/guide/monitor_api_options/) docs. + # # 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 # Attribute mapping from ruby-style variable name to JSON key. 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 65d0ccfe701..dbba5ab0fb0 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 @@ -23,25 +23,25 @@ class MonthlyUsageAttributionBody # @!visibility private attr_accessor :_unparsed - # Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM]. + # # Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM]. attr_accessor :month - # The name of the organization. + # # The name of the organization. attr_accessor :org_name - # The organization public ID. + # # The organization public ID. attr_accessor :public_id - # The source of the usage attribution tag configuration and the selected tags in the format `://////`. + # # The source of the usage attribution tag configuration and the selected tags in the format `://////`. attr_accessor :tag_config_source - # Usage Summary by tag name. + # # Usage Summary by tag name. attr_accessor :tags - # Datetime of the most recent update to the usage values. + # # Datetime of the most recent update to the usage values. attr_accessor :updated_at - # Fields in Usage Summary by tag(s). + # # Fields in Usage Summary by tag(s). attr_accessor :values # Attribute mapping from ruby-style variable name to JSON key. 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 77b171fc99f..edf58143214 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 @@ -23,10 +23,10 @@ class MonthlyUsageAttributionMetadata # @!visibility private attr_accessor :_unparsed - # An array of available aggregates. + # # An array of available aggregates. attr_accessor :aggregates - # The metadata for the current pagination. + # # The metadata for the current pagination. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. 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 6615da36b6c..0c91d45a585 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 @@ -23,7 +23,7 @@ class MonthlyUsageAttributionPagination # @!visibility private attr_accessor :_unparsed - # 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`. + # # 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 # Attribute mapping from ruby-style variable name to JSON key. 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 2967d728413..043fe2afbec 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 @@ -23,10 +23,10 @@ class MonthlyUsageAttributionResponse # @!visibility private attr_accessor :_unparsed - # The object containing document metadata. + # # The object containing document metadata. attr_accessor :metadata - # Get Usage Summary by tag(s). + # # Get Usage Summary by tag(s). attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 59ee20a4aca..09d522a168a 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 @@ -23,88 +23,88 @@ class MonthlyUsageAttributionValues # @!visibility private attr_accessor :_unparsed - # The percentage of synthetic API test usage by tag(s). + # # The percentage of synthetic API test usage by tag(s). attr_accessor :api_percentage - # The synthetic API test usage by tag(s). + # # The synthetic API test usage by tag(s). attr_accessor :api_usage - # The percentage of APM host usage by tag(s). + # # The percentage of APM host usage by tag(s). attr_accessor :apm_host_percentage - # The APM host usage by tag(s). + # # The APM host usage by tag(s). attr_accessor :apm_host_usage - # The percentage of synthetic browser test usage by tag(s). + # # The percentage of synthetic browser test usage by tag(s). attr_accessor :browser_percentage - # The synthetic browser test usage by tag(s). + # # The synthetic browser test usage by tag(s). attr_accessor :browser_usage - # The percentage of container usage by tag(s). + # # The percentage of container usage by tag(s). attr_accessor :container_percentage - # The container usage by tag(s). + # # The container usage by tag(s). attr_accessor :container_usage - # The percentage of custom metrics usage by tag(s). + # # The percentage of custom metrics usage by tag(s). attr_accessor :custom_timeseries_percentage - # The custom metrics usage by tag(s). + # # The custom metrics usage by tag(s). attr_accessor :custom_timeseries_usage - # The percentage of Fargate usage by tags. + # # The percentage of Fargate usage by tags. attr_accessor :fargate_percentage - # The Fargate usage by tags. + # # The Fargate usage by tags. attr_accessor :fargate_usage - # The percentage of Lambda function usage by tag(s). + # # The percentage of Lambda function usage by tag(s). attr_accessor :functions_percentage - # The Lambda function usage by tag(s). + # # The Lambda function usage by tag(s). attr_accessor :functions_usage - # The percentage of indexed logs usage by tags. + # # The percentage of indexed logs usage by tags. attr_accessor :indexed_logs_percentage - # The indexed logs usage by tags. + # # The indexed logs usage by tags. attr_accessor :indexed_logs_usage - # The percentage of infrastructure host usage by tag(s). + # # The percentage of infrastructure host usage by tag(s). attr_accessor :infra_host_percentage - # The infrastructure host usage by tag(s). + # # The infrastructure host usage by tag(s). attr_accessor :infra_host_usage - # The percentage of Lambda invocation usage by tag(s). + # # The percentage of Lambda invocation usage by tag(s). attr_accessor :invocations_percentage - # The Lambda invocation usage by tag(s). + # # The Lambda invocation usage by tag(s). attr_accessor :invocations_usage - # The percentage of network host usage by tag(s). + # # The percentage of network host usage by tag(s). attr_accessor :npm_host_percentage - # The network host usage by tag(s). + # # The network host usage by tag(s). attr_accessor :npm_host_usage - # The percentage of profiled container usage by tag(s). + # # The percentage of profiled container usage by tag(s). attr_accessor :profiled_container_percentage - # The profiled container usage by tag(s). + # # The profiled container usage by tag(s). attr_accessor :profiled_container_usage - # The percentage of profiled hosts usage by tag(s). + # # The percentage of profiled hosts usage by tag(s). attr_accessor :profiled_host_percentage - # The profiled hosts usage by tag(s). + # # The profiled hosts usage by tag(s). attr_accessor :profiled_host_usage - # The percentage of network device usage by tag(s). + # # The percentage of network device usage by tag(s). attr_accessor :snmp_percentage - # The network device usage by tag(s). + # # The network device usage by tag(s). attr_accessor :snmp_usage # Attribute mapping from ruby-style variable name to JSON key. 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 f70d8e9577f..033a3d0c96d 100644 --- a/lib/datadog_api_client/v1/models/note_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/note_widget_definition.rb @@ -23,34 +23,34 @@ class NoteWidgetDefinition # @!visibility private attr_accessor :_unparsed - # Background color of the note. + # # Background color of the note. attr_accessor :background_color - # Content of the note. + # # Content of the note. attr_accessor :content - # Size of the text. + # # Size of the text. attr_accessor :font_size - # Whether to add padding or not. + # # Whether to add padding or not. attr_accessor :has_padding - # Whether to show a tick or not. + # # Whether to show a tick or not. attr_accessor :show_tick - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :text_align - # Define how you want to align the text on the widget. + # # Define how you want to align the text on the widget. attr_accessor :tick_edge - # Where to position the tick on an edge. + # # Where to position the tick on an edge. attr_accessor :tick_pos - # Type of the note widget. + # # Type of the note widget. attr_accessor :type - # Vertical alignment. + # # Vertical alignment. attr_accessor :vertical_align # Attribute mapping from ruby-style variable name to JSON key. 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 7cc860400d7..d499898335a 100644 --- a/lib/datadog_api_client/v1/models/notebook_absolute_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_absolute_time.rb @@ -23,13 +23,13 @@ class NotebookAbsoluteTime # @!visibility private attr_accessor :_unparsed - # The end time. + # # The end time. attr_accessor :_end - # Indicates whether the timeframe should be shifted to end at the current time. + # # Indicates whether the timeframe should be shifted to end at the current time. attr_accessor :live - # The start time. + # # The start time. attr_accessor :start # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/notebook_author.rb b/lib/datadog_api_client/v1/models/notebook_author.rb index b6d0d934c0a..b9517ad0ca2 100644 --- a/lib/datadog_api_client/v1/models/notebook_author.rb +++ b/lib/datadog_api_client/v1/models/notebook_author.rb @@ -23,31 +23,31 @@ class NotebookAuthor # @!visibility private attr_accessor :_unparsed - # Creation time of the user. + # # Creation time of the user. attr_accessor :created_at - # Whether the user is disabled. + # # Whether the user is disabled. attr_accessor :disabled - # Email of the user. + # # Email of the user. attr_accessor :email - # Handle of the user. + # # Handle of the user. attr_accessor :handle - # URL of the user's icon. + # # URL of the user's icon. attr_accessor :icon - # Name of the user. + # # Name of the user. attr_accessor :name - # Status of the user. + # # Status of the user. attr_accessor :status - # Title of the user. + # # Title of the user. attr_accessor :title - # Whether the user is verified. + # # Whether the user is verified. attr_accessor :verified # Attribute mapping from ruby-style variable name to JSON key. 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 9db736d78e1..1ace9857bc9 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 @@ -23,11 +23,11 @@ class NotebookCellCreateRequest # @!visibility private attr_accessor :_unparsed - # The attributes of a notebook cell in create cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, + # # The attributes of a notebook cell in create cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, # `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) attr_accessor :attributes - # Type of the Notebook Cell resource. + # # Type of the Notebook Cell resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 480f74a3743..2b902901368 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_response.rb @@ -23,14 +23,14 @@ class NotebookCellResponse # @!visibility private attr_accessor :_unparsed - # The attributes of a notebook cell response. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, + # # The attributes of a notebook cell response. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, # `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) attr_accessor :attributes - # Notebook cell ID. + # # Notebook cell ID. attr_accessor :id - # Type of the Notebook Cell resource. + # # Type of the Notebook Cell resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 ba2e18ea1dc..a47a39048c0 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 @@ -23,14 +23,14 @@ class NotebookCellUpdateRequest # @!visibility private attr_accessor :_unparsed - # The attributes of a notebook cell in update cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, + # # The attributes of a notebook cell in update cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, # `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) attr_accessor :attributes - # Notebook cell ID. + # # Notebook cell ID. attr_accessor :id - # Type of the Notebook Cell resource. + # # Type of the Notebook Cell resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 2ed4b4fd0ee..a6e7183a6c7 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_data.rb @@ -23,10 +23,10 @@ class NotebookCreateData # @!visibility private attr_accessor :_unparsed - # The data attributes of a notebook. + # # The data attributes of a notebook. attr_accessor :attributes - # Type of the Notebook resource. + # # Type of the Notebook resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 0266887dbc9..6d51ec3a4d7 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 @@ -23,19 +23,19 @@ class NotebookCreateDataAttributes # @!visibility private attr_accessor :_unparsed - # List of cells to display in the notebook. + # # List of cells to display in the notebook. attr_accessor :cells - # Metadata associated with the notebook. + # # Metadata associated with the notebook. attr_accessor :metadata - # The name of the notebook. + # # The name of the notebook. attr_accessor :name - # Publication status of the notebook. For now, always "published". + # # Publication status of the notebook. For now, always "published". attr_accessor :status - # Notebook global timeframe. + # # Notebook global timeframe. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 5014f8f7d6e..748fe66fae0 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_request.rb @@ -23,7 +23,7 @@ class NotebookCreateRequest # @!visibility private attr_accessor :_unparsed - # The data for a notebook create request. + # # The data for a notebook create request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 2c48aab24a4..47184a424af 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 @@ -23,18 +23,18 @@ class NotebookDistributionCellAttributes # @!visibility private attr_accessor :_unparsed - # The Distribution visualization is another way of showing metrics + # # The Distribution visualization is another way of showing metrics # aggregated across one or several tags, such as hosts. # Unlike the heat map, a distribution graph’s x-axis is quantity rather than time. attr_accessor :definition - # The size of the graph. + # # The size of the graph. attr_accessor :graph_size - # Object describing how to split the graph to display multiple visualizations per request. + # # Object describing how to split the graph to display multiple visualizations per request. attr_accessor :split_by - # Timeframe for the notebook cell. When 'null', the notebook global time is used. + # # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 7eda77b5e50..b066ceaee78 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 @@ -23,16 +23,16 @@ class NotebookHeatMapCellAttributes # @!visibility private attr_accessor :_unparsed - # The heat map visualization shows metrics aggregated across many tags, such as hosts. The more hosts that have a particular value, the darker that square is. + # # The heat map visualization shows metrics aggregated across many tags, such as hosts. The more hosts that have a particular value, the darker that square is. attr_accessor :definition - # The size of the graph. + # # The size of the graph. attr_accessor :graph_size - # Object describing how to split the graph to display multiple visualizations per request. + # # Object describing how to split the graph to display multiple visualizations per request. attr_accessor :split_by - # Timeframe for the notebook cell. When 'null', the notebook global time is used. + # # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 49b2f7b0794..cf99e2eb542 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 @@ -23,13 +23,13 @@ class NotebookLogStreamCellAttributes # @!visibility private attr_accessor :_unparsed - # The Log Stream displays a log flow matching the defined query. Only available on FREE layout dashboards. + # # The Log Stream displays a log flow matching the defined query. Only available on FREE layout dashboards. attr_accessor :definition - # The size of the graph. + # # The size of the graph. attr_accessor :graph_size - # Timeframe for the notebook cell. When 'null', the notebook global time is used. + # # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 965802e4d5c..e1a717aa751 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 @@ -23,7 +23,7 @@ class NotebookMarkdownCellAttributes # @!visibility private attr_accessor :_unparsed - # 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. + # # 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_accessor :definition # Attribute mapping from ruby-style variable name to JSON key. 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 dbc4af9a6b7..70f340d5c9e 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 @@ -23,10 +23,10 @@ class NotebookMarkdownCellDefinition # @!visibility private attr_accessor :_unparsed - # The markdown content. + # # The markdown content. attr_accessor :text - # Type of the markdown cell. + # # Type of the markdown cell. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/notebook_metadata.rb b/lib/datadog_api_client/v1/models/notebook_metadata.rb index fba9df8d987..2fb05285a72 100644 --- a/lib/datadog_api_client/v1/models/notebook_metadata.rb +++ b/lib/datadog_api_client/v1/models/notebook_metadata.rb @@ -23,13 +23,13 @@ class NotebookMetadata # @!visibility private attr_accessor :_unparsed - # Whether or not the notebook is a template. + # # Whether or not the notebook is a template. attr_accessor :is_template - # Whether or not the notebook takes snapshot image backups of the notebook's fixed-time graphs. + # # Whether or not the notebook takes snapshot image backups of the notebook's fixed-time graphs. attr_accessor :take_snapshots - # Metadata type of the notebook. + # # Metadata type of the notebook. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 579a211a771..67d520f344d 100644 --- a/lib/datadog_api_client/v1/models/notebook_relative_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_relative_time.rb @@ -23,7 +23,7 @@ class NotebookRelativeTime # @!visibility private attr_accessor :_unparsed - # The available timeframes depend on the widget you are using. + # # The available timeframes depend on the widget you are using. attr_accessor :live_span # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/notebook_response.rb b/lib/datadog_api_client/v1/models/notebook_response.rb index e7ed2f8cb2e..4a977ebfb3a 100644 --- a/lib/datadog_api_client/v1/models/notebook_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_response.rb @@ -23,7 +23,7 @@ class NotebookResponse # @!visibility private attr_accessor :_unparsed - # The data for a notebook. + # # The data for a notebook. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 3f23acbd219..ecd6ca06d5c 100644 --- a/lib/datadog_api_client/v1/models/notebook_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_response_data.rb @@ -23,13 +23,13 @@ class NotebookResponseData # @!visibility private attr_accessor :_unparsed - # The attributes of a notebook. + # # The attributes of a notebook. attr_accessor :attributes - # Unique notebook ID, assigned when you create the notebook. + # # Unique notebook ID, assigned when you create the notebook. attr_accessor :id - # Type of the Notebook resource. + # # Type of the Notebook resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 65c9797beda..39bcd560dbf 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 @@ -23,28 +23,28 @@ class NotebookResponseDataAttributes # @!visibility private attr_accessor :_unparsed - # Attributes of user object returned by the API. + # # Attributes of user object returned by the API. attr_accessor :author - # List of cells to display in the notebook. + # # List of cells to display in the notebook. attr_accessor :cells - # UTC time stamp for when the notebook was created. + # # UTC time stamp for when the notebook was created. attr_accessor :created - # Metadata associated with the notebook. + # # Metadata associated with the notebook. attr_accessor :metadata - # UTC time stamp for when the notebook was last modified. + # # UTC time stamp for when the notebook was last modified. attr_accessor :modified - # The name of the notebook. + # # The name of the notebook. attr_accessor :name - # Publication status of the notebook. For now, always "published". + # # Publication status of the notebook. For now, always "published". attr_accessor :status - # Notebook global timeframe. + # # Notebook global timeframe. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 dbbff5b3933..15c6ed6bcf7 100644 --- a/lib/datadog_api_client/v1/models/notebook_split_by.rb +++ b/lib/datadog_api_client/v1/models/notebook_split_by.rb @@ -23,10 +23,10 @@ class NotebookSplitBy # @!visibility private attr_accessor :_unparsed - # Keys to split on. + # # Keys to split on. attr_accessor :keys - # Tags to split on. + # # Tags to split on. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 3f5af12c54e..a73350a04d2 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 @@ -23,16 +23,16 @@ class NotebookTimeseriesCellAttributes # @!visibility private attr_accessor :_unparsed - # The timeseries visualization allows you to display the evolution of one or more metrics, log events, or Indexed Spans over time. + # # The timeseries visualization allows you to display the evolution of one or more metrics, log events, or Indexed Spans over time. attr_accessor :definition - # The size of the graph. + # # The size of the graph. attr_accessor :graph_size - # Object describing how to split the graph to display multiple visualizations per request. + # # Object describing how to split the graph to display multiple visualizations per request. attr_accessor :split_by - # Timeframe for the notebook cell. When 'null', the notebook global time is used. + # # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 1ecdb79b8ba..dde75179d0d 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 @@ -23,16 +23,16 @@ class NotebookToplistCellAttributes # @!visibility private attr_accessor :_unparsed - # The top list visualization enables you to display a list of Tag value like hostname or service with the most or least of any metric value, such as highest consumers of CPU, hosts with the least disk space, etc. + # # The top list visualization enables you to display a list of Tag value like hostname or service with the most or least of any metric value, such as highest consumers of CPU, hosts with the least disk space, etc. attr_accessor :definition - # The size of the graph. + # # The size of the graph. attr_accessor :graph_size - # Object describing how to split the graph to display multiple visualizations per request. + # # Object describing how to split the graph to display multiple visualizations per request. attr_accessor :split_by - # Timeframe for the notebook cell. When 'null', the notebook global time is used. + # # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 949571647d3..2ed6546adcc 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_data.rb @@ -23,10 +23,10 @@ class NotebookUpdateData # @!visibility private attr_accessor :_unparsed - # The data attributes of a notebook. + # # The data attributes of a notebook. attr_accessor :attributes - # Type of the Notebook resource. + # # Type of the Notebook resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 d47ed404815..3cb81cfd8ea 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 @@ -23,19 +23,19 @@ class NotebookUpdateDataAttributes # @!visibility private attr_accessor :_unparsed - # List of cells to display in the notebook. + # # List of cells to display in the notebook. attr_accessor :cells - # Metadata associated with the notebook. + # # Metadata associated with the notebook. attr_accessor :metadata - # The name of the notebook. + # # The name of the notebook. attr_accessor :name - # Publication status of the notebook. For now, always "published". + # # Publication status of the notebook. For now, always "published". attr_accessor :status - # Notebook global timeframe. + # # Notebook global timeframe. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 44beee14fd2..c6e289c8a4e 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_request.rb @@ -23,7 +23,7 @@ class NotebookUpdateRequest # @!visibility private attr_accessor :_unparsed - # The data for a notebook update request. + # # The data for a notebook update request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/notebooks_response.rb b/lib/datadog_api_client/v1/models/notebooks_response.rb index ffd62c86f6b..8f1b80d676c 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response.rb @@ -23,10 +23,10 @@ class NotebooksResponse # @!visibility private attr_accessor :_unparsed - # List of notebook definitions. + # # List of notebook definitions. attr_accessor :data - # Searches metadata returned by the API. + # # Searches metadata returned by the API. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 f5fdc53a118..04f8f5d550e 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_data.rb @@ -23,13 +23,13 @@ class NotebooksResponseData # @!visibility private attr_accessor :_unparsed - # The attributes of a notebook in get all response. + # # The attributes of a notebook in get all response. attr_accessor :attributes - # Unique notebook ID, assigned when you create the notebook. + # # Unique notebook ID, assigned when you create the notebook. attr_accessor :id - # Type of the Notebook resource. + # # Type of the Notebook resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 919973a2a71..9ba0dbb99f9 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 @@ -23,28 +23,28 @@ class NotebooksResponseDataAttributes # @!visibility private attr_accessor :_unparsed - # Attributes of user object returned by the API. + # # Attributes of user object returned by the API. attr_accessor :author - # List of cells to display in the notebook. + # # List of cells to display in the notebook. attr_accessor :cells - # UTC time stamp for when the notebook was created. + # # UTC time stamp for when the notebook was created. attr_accessor :created - # Metadata associated with the notebook. + # # Metadata associated with the notebook. attr_accessor :metadata - # UTC time stamp for when the notebook was last modified. + # # UTC time stamp for when the notebook was last modified. attr_accessor :modified - # The name of the notebook. + # # The name of the notebook. attr_accessor :name - # Publication status of the notebook. For now, always "published". + # # Publication status of the notebook. For now, always "published". attr_accessor :status - # Notebook global timeframe. + # # Notebook global timeframe. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 32c3f5e4b51..5982ec7331e 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_meta.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_meta.rb @@ -23,7 +23,7 @@ class NotebooksResponseMeta # @!visibility private attr_accessor :_unparsed - # Pagination metadata returned by the API. + # # Pagination metadata returned by the API. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. 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 ef51fa1e509..6e6e37f4ca9 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_page.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_page.rb @@ -23,10 +23,10 @@ class NotebooksResponsePage # @!visibility private attr_accessor :_unparsed - # The total number of notebooks that would be returned if the request was not filtered by `start` and `count` parameters. + # # The total number of notebooks that would be returned if the request was not filtered by `start` and `count` parameters. attr_accessor :total_count - # The total number of notebooks returned. + # # The total number of notebooks returned. attr_accessor :total_filtered_count # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/organization.rb b/lib/datadog_api_client/v1/models/organization.rb index 41b42bb69a4..b20fd44f1f6 100644 --- a/lib/datadog_api_client/v1/models/organization.rb +++ b/lib/datadog_api_client/v1/models/organization.rb @@ -23,25 +23,25 @@ class Organization # @!visibility private attr_accessor :_unparsed - # A JSON array of billing type. + # # A JSON array of billing type. attr_accessor :billing - # Date of the organization creation. + # # Date of the organization creation. attr_accessor :created - # Description of the organization. + # # Description of the organization. attr_accessor :description - # The name of the new child-organization, limited to 32 characters. + # # The name of the new child-organization, limited to 32 characters. attr_accessor :name - # The `public_id` of the organization you are operating within. + # # The `public_id` of the organization you are operating within. attr_accessor :public_id - # A JSON array of settings. + # # A JSON array of settings. attr_accessor :settings - # Subscription definition. + # # Subscription definition. attr_accessor :subscription # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/organization_billing.rb b/lib/datadog_api_client/v1/models/organization_billing.rb index 0bec5804f4f..cab6b137e0c 100644 --- a/lib/datadog_api_client/v1/models/organization_billing.rb +++ b/lib/datadog_api_client/v1/models/organization_billing.rb @@ -23,7 +23,7 @@ class OrganizationBilling # @!visibility private attr_accessor :_unparsed - # The type of billing. Only `parent_billing` is supported. + # # The type of billing. Only `parent_billing` is supported. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 ad7ea6d2be6..d3d7daab39c 100644 --- a/lib/datadog_api_client/v1/models/organization_create_body.rb +++ b/lib/datadog_api_client/v1/models/organization_create_body.rb @@ -23,13 +23,13 @@ class OrganizationCreateBody # @!visibility private attr_accessor :_unparsed - # A JSON array of billing type. + # # A JSON array of billing type. attr_accessor :billing - # The name of the new child-organization, limited to 32 characters. + # # The name of the new child-organization, limited to 32 characters. attr_accessor :name - # Subscription definition. + # # Subscription definition. attr_accessor :subscription # Attribute mapping from ruby-style variable name to JSON key. 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 7cb4eb66f04..2fdd26461f4 100644 --- a/lib/datadog_api_client/v1/models/organization_create_response.rb +++ b/lib/datadog_api_client/v1/models/organization_create_response.rb @@ -23,16 +23,16 @@ class OrganizationCreateResponse # @!visibility private attr_accessor :_unparsed - # Datadog API key. + # # Datadog API key. attr_accessor :api_key - # An application key with its associated metadata. + # # An application key with its associated metadata. attr_accessor :application_key - # Create, edit, and manage organizations. + # # Create, edit, and manage organizations. attr_accessor :org - # Create, edit, and disable users. + # # Create, edit, and disable users. attr_accessor :user # Attribute mapping from ruby-style variable name to JSON key. 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 53f33cffa34..dbfa3a966b2 100644 --- a/lib/datadog_api_client/v1/models/organization_list_response.rb +++ b/lib/datadog_api_client/v1/models/organization_list_response.rb @@ -23,7 +23,7 @@ class OrganizationListResponse # @!visibility private attr_accessor :_unparsed - # Array of organization objects. + # # Array of organization objects. attr_accessor :orgs # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/organization_response.rb b/lib/datadog_api_client/v1/models/organization_response.rb index 7a14a0a7bdd..9d50da3fc1b 100644 --- a/lib/datadog_api_client/v1/models/organization_response.rb +++ b/lib/datadog_api_client/v1/models/organization_response.rb @@ -23,7 +23,7 @@ class OrganizationResponse # @!visibility private attr_accessor :_unparsed - # Create, edit, and manage organizations. + # # Create, edit, and manage organizations. attr_accessor :org # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/organization_settings.rb b/lib/datadog_api_client/v1/models/organization_settings.rb index 13dffe1ee43..e10112f86b0 100644 --- a/lib/datadog_api_client/v1/models/organization_settings.rb +++ b/lib/datadog_api_client/v1/models/organization_settings.rb @@ -23,35 +23,35 @@ class OrganizationSettings # @!visibility private attr_accessor :_unparsed - # Whether or not the organization users can share widgets outside of Datadog. + # # Whether or not the organization users can share widgets outside of Datadog. attr_accessor :private_widget_share - # Set the boolean property enabled to enable or disable single sign on with SAML. + # # Set the boolean property enabled to enable or disable single sign on with SAML. # See the SAML documentation for more information about all SAML settings. attr_accessor :saml - # The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). + # # The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). attr_accessor :saml_autocreate_access_role - # Has two properties, `enabled` (boolean) and `domains`, which is a list of domains without the @ symbol. + # # Has two properties, `enabled` (boolean) and `domains`, which is a list of domains without the @ symbol. attr_accessor :saml_autocreate_users_domains - # Whether or not SAML can be enabled for this organization. + # # Whether or not SAML can be enabled for this organization. attr_accessor :saml_can_be_enabled - # Identity provider endpoint for SAML authentication. + # # Identity provider endpoint for SAML authentication. attr_accessor :saml_idp_endpoint - # Has one property enabled (boolean). + # # Has one property enabled (boolean). attr_accessor :saml_idp_initiated_login - # Whether or not a SAML identity provider metadata file was provided to the Datadog organization. + # # Whether or not a SAML identity provider metadata file was provided to the Datadog organization. attr_accessor :saml_idp_metadata_uploaded - # URL for SAML logging. + # # URL for SAML logging. attr_accessor :saml_login_url - # Has one property enabled (boolean). + # # Has one property enabled (boolean). attr_accessor :saml_strict_mode # Attribute mapping from ruby-style variable name to JSON key. 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 fc89a3081cb..d553c258e13 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml.rb @@ -24,7 +24,7 @@ class OrganizationSettingsSaml # @!visibility private attr_accessor :_unparsed - # Whether or not SAML is enabled for this organization. + # # Whether or not SAML is enabled for this organization. attr_accessor :enabled # Attribute mapping from ruby-style variable name to JSON key. 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 3a2c3eefc2a..76bd2eb14c7 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 @@ -23,10 +23,10 @@ class OrganizationSettingsSamlAutocreateUsersDomains # @!visibility private attr_accessor :_unparsed - # List of domains where the SAML automated user creation is enabled. + # # List of domains where the SAML automated user creation is enabled. attr_accessor :domains - # Whether or not the automated user creation based on SAML domain is enabled. + # # Whether or not the automated user creation based on SAML domain is enabled. attr_accessor :enabled # Attribute mapping from ruby-style variable name to JSON key. 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 73cdca90dfa..1c427e75267 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 @@ -23,7 +23,7 @@ class OrganizationSettingsSamlIdpInitiatedLogin # @!visibility private attr_accessor :_unparsed - # Whether SAML IdP initiated login is enabled, learn more + # # Whether SAML IdP initiated login is enabled, learn more # in the [SAML documentation](https://docs.datadoghq.com/account_management/saml/#idp-initiated-login). attr_accessor :enabled 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 1f4c2649f06..07003603e94 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 @@ -23,7 +23,7 @@ class OrganizationSettingsSamlStrictMode # @!visibility private attr_accessor :_unparsed - # Whether or not the SAML strict mode is enabled. If true, all users must log in with SAML. + # # Whether or not the SAML strict mode is enabled. If true, all users must log in with SAML. # Learn more on the [SAML Strict documentation](https://docs.datadoghq.com/account_management/saml/#saml-strict). attr_accessor :enabled diff --git a/lib/datadog_api_client/v1/models/organization_subscription.rb b/lib/datadog_api_client/v1/models/organization_subscription.rb index aba3772f26c..63b6cee7929 100644 --- a/lib/datadog_api_client/v1/models/organization_subscription.rb +++ b/lib/datadog_api_client/v1/models/organization_subscription.rb @@ -23,7 +23,7 @@ class OrganizationSubscription # @!visibility private attr_accessor :_unparsed - # The subscription type. Types available are `trial`, `free`, and `pro`. + # # The subscription type. Types available are `trial`, `free`, and `pro`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 6a9f4d0c8c7..1066179298b 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service.rb @@ -23,10 +23,10 @@ class PagerDutyService # @!visibility private attr_accessor :_unparsed - # Your service key in PagerDuty. + # # Your service key in PagerDuty. attr_accessor :service_key - # Your service name associated with a service key in PagerDuty. + # # Your service name associated with a service key in PagerDuty. attr_accessor :service_name # Attribute mapping from ruby-style variable name to JSON key. 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 e68b6f60275..213dfbde04b 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 @@ -23,7 +23,7 @@ class PagerDutyServiceKey # @!visibility private attr_accessor :_unparsed - # Your service key in PagerDuty. + # # Your service key in PagerDuty. attr_accessor :service_key # Attribute mapping from ruby-style variable name to JSON key. 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 357d6b4b4ab..b711dc3a65b 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 @@ -23,7 +23,7 @@ class PagerDutyServiceName # @!visibility private attr_accessor :_unparsed - # Your service name associated service key in PagerDuty. + # # Your service name associated service key in PagerDuty. attr_accessor :service_name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/pagination.rb b/lib/datadog_api_client/v1/models/pagination.rb index 8ab45c49c91..e92d82c176c 100644 --- a/lib/datadog_api_client/v1/models/pagination.rb +++ b/lib/datadog_api_client/v1/models/pagination.rb @@ -23,10 +23,10 @@ class Pagination # @!visibility private attr_accessor :_unparsed - # Total count. + # # Total count. attr_accessor :total_count - # Total count of elements matched by the filter. + # # Total count of elements matched by the filter. attr_accessor :total_filtered_count # Attribute mapping from ruby-style variable name to JSON key. 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 30c3cfaf3e3..01691fc366b 100644 --- a/lib/datadog_api_client/v1/models/process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/process_query_definition.rb @@ -23,16 +23,16 @@ class ProcessQueryDefinition # @!visibility private attr_accessor :_unparsed - # List of processes. + # # List of processes. attr_accessor :filter_by - # Max number of items in the filter list. + # # Max number of items in the filter list. attr_accessor :limit - # Your chosen metric. + # # Your chosen metric. attr_accessor :metric - # Your chosen search term. + # # Your chosen search term. attr_accessor :search_by # Attribute mapping from ruby-style variable name to JSON key. 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 7673cf0116d..af704a72717 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 @@ -23,37 +23,37 @@ class QueryValueWidgetDefinition # @!visibility private attr_accessor :_unparsed - # Whether to use auto-scaling or not. + # # Whether to use auto-scaling or not. attr_accessor :autoscale - # List of custom links. + # # List of custom links. attr_accessor :custom_links - # Display a unit of your choice on the widget. + # # Display a unit of your choice on the widget. attr_accessor :custom_unit - # Number of decimals to show. If not defined, the widget uses the raw value. + # # Number of decimals to show. If not defined, the widget uses the raw value. attr_accessor :precision - # Widget definition. + # # Widget definition. attr_accessor :requests - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :text_align - # Time setting for the widget. + # # Time setting for the widget. attr_accessor :time - # Title of your widget. + # # Title of your widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the query value widget. + # # Type of the query value widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 8b326512b41..595350c0222 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 @@ -23,49 +23,49 @@ class QueryValueWidgetRequest # @!visibility private attr_accessor :_unparsed - # Aggregator used for the request. + # # Aggregator used for the request. attr_accessor :aggregator - # The log query. + # # The log query. attr_accessor :apm_query - # The log query. + # # The log query. attr_accessor :audit_query - # List of conditional formats. + # # List of conditional formats. attr_accessor :conditional_formats - # The log query. + # # The log query. attr_accessor :event_query - # List of formulas that operate on queries. **This feature is currently in beta.** + # # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas - # The log query. + # # The log query. attr_accessor :log_query - # The log query. + # # The log query. attr_accessor :network_query - # The process query to use in the widget. + # # The process query to use in the widget. attr_accessor :process_query - # The log query. + # # The log query. attr_accessor :profile_metrics_query - # TODO. + # # TODO. attr_accessor :q - # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** + # # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries - # Timeseries or Scalar response. **This feature is currently in beta.** + # # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format - # The log query. + # # The log query. attr_accessor :rum_query - # The log query. + # # The log query. attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. 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 a781f1e8220..28a4c1cfbe8 100644 --- a/lib/datadog_api_client/v1/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v1/models/response_meta_attributes.rb @@ -23,7 +23,7 @@ class ResponseMetaAttributes # @!visibility private attr_accessor :_unparsed - # Pagination object. + # # Pagination object. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. 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 38f95b6132d..79df5bebf61 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_request.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_request.rb @@ -23,34 +23,34 @@ class ScatterPlotRequest # @!visibility private attr_accessor :_unparsed - # Aggregator used for the request. + # # Aggregator used for the request. attr_accessor :aggregator - # The log query. + # # The log query. attr_accessor :apm_query - # The log query. + # # The log query. attr_accessor :event_query - # The log query. + # # The log query. attr_accessor :log_query - # The log query. + # # The log query. attr_accessor :network_query - # The process query to use in the widget. + # # The process query to use in the widget. attr_accessor :process_query - # The log query. + # # The log query. attr_accessor :profile_metrics_query - # Query definition. + # # Query definition. attr_accessor :q - # The log query. + # # The log query. attr_accessor :rum_query - # The log query. + # # The log query. attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. 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 70190da754e..b1fb24f44f9 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 @@ -23,34 +23,34 @@ class ScatterPlotWidgetDefinition # @!visibility private attr_accessor :_unparsed - # List of groups used for colors. + # # List of groups used for colors. attr_accessor :color_by_groups - # List of custom links. + # # List of custom links. attr_accessor :custom_links - # Widget definition. + # # Widget definition. attr_accessor :requests - # Time setting for the widget. + # # Time setting for the widget. attr_accessor :time - # Title of your widget. + # # Title of your widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the scatter plot widget. + # # Type of the scatter plot widget. attr_accessor :type - # Axis controls for the widget. + # # Axis controls for the widget. attr_accessor :xaxis - # Axis controls for the widget. + # # Axis controls for the widget. attr_accessor :yaxis # Attribute mapping from ruby-style variable name to JSON key. 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 7d65bd47a53..dfa5f141f1c 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 @@ -23,13 +23,13 @@ class ScatterPlotWidgetDefinitionRequests # @!visibility private attr_accessor :_unparsed - # Scatterplot request containing formulas and functions. + # # Scatterplot request containing formulas and functions. attr_accessor :table - # Updated scatter plot. + # # Updated scatter plot. attr_accessor :x - # Updated scatter plot. + # # Updated scatter plot. attr_accessor :y # Attribute mapping from ruby-style variable name to JSON key. 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 bf4e3a7fb80..860cc8f2b53 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_table_request.rb @@ -23,13 +23,13 @@ class ScatterplotTableRequest # @!visibility private attr_accessor :_unparsed - # List of Scatterplot formulas that operate on queries. **This feature is currently in beta.** + # # List of Scatterplot formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas - # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** + # # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries - # Timeseries or Scalar response. **This feature is currently in beta.** + # # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format # Attribute mapping from ruby-style variable name to JSON key. 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 bff0510f242..44631397dfa 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb @@ -23,13 +23,13 @@ class ScatterplotWidgetFormula # @!visibility private attr_accessor :_unparsed - # Expression alias. + # # Expression alias. attr_accessor :_alias - # Dimension of the Scatterplot. + # # Dimension of the Scatterplot. attr_accessor :dimension - # String expression built from queries, formulas, and functions. + # # String expression built from queries, formulas, and functions. attr_accessor :formula # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/series.rb b/lib/datadog_api_client/v1/models/series.rb index c7141085aab..3ddff0aaa2f 100644 --- a/lib/datadog_api_client/v1/models/series.rb +++ b/lib/datadog_api_client/v1/models/series.rb @@ -24,22 +24,22 @@ class Series # @!visibility private attr_accessor :_unparsed - # The name of the host that produced the metric. + # # The name of the host that produced the metric. attr_accessor :host - # If the type of the metric is rate or count, define the corresponding interval. + # # If the type of the metric is rate or count, define the corresponding interval. attr_accessor :interval - # The name of the timeseries. + # # The name of the timeseries. attr_accessor :metric - # Points relating to a metric. All points must be tuples with timestamp and a scalar value (cannot be a string). Timestamps should be in POSIX time in seconds, and cannot be more than ten minutes in the future or more than one hour in the past. + # # Points relating to a metric. All points must be tuples with timestamp and a scalar value (cannot be a string). Timestamps should be in POSIX time in seconds, and cannot be more than ten minutes in the future or more than one hour in the past. attr_accessor :points - # A list of tags associated with the metric. + # # A list of tags associated with the metric. attr_accessor :tags - # The type of the metric either `count`, `gauge`, or `rate`. + # # The type of the metric either `count`, `gauge`, or `rate`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/service_check.rb b/lib/datadog_api_client/v1/models/service_check.rb index 63084f3c48a..83f651449d1 100644 --- a/lib/datadog_api_client/v1/models/service_check.rb +++ b/lib/datadog_api_client/v1/models/service_check.rb @@ -23,22 +23,22 @@ class ServiceCheck # @!visibility private attr_accessor :_unparsed - # The check. + # # The check. attr_accessor :check - # The host name correlated with the check. + # # The host name correlated with the check. attr_accessor :host_name - # Message containing check status. + # # Message containing check status. attr_accessor :message - # The status of a service check. + # # The status of a service check. attr_accessor :status - # Tags related to a check. + # # Tags related to a check. attr_accessor :tags - # Time of check. + # # Time of check. attr_accessor :timestamp # Attribute mapping from ruby-style variable name to JSON key. 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 9463ec4e453..6f53c16a2d0 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective.rb @@ -24,42 +24,42 @@ class ServiceLevelObjective # @!visibility private attr_accessor :_unparsed - # Creation timestamp (UNIX time in seconds) - # + # # Creation timestamp (UNIX time in seconds) + # # Always included in service level objective responses. attr_accessor :created_at - # Object describing the creator of the shared element. + # # Object describing the creator of the shared element. attr_accessor :creator - # A user-defined description of the service level objective. - # + # # A user-defined description of the service level objective. + # # Always included in service level objective responses (but may be `null`). # Optional in create/update requests. attr_accessor :description - # A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. - # + # # A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. + # # Included in service level objective responses if it is not empty. Optional in # create/update requests for monitor service level objectives, but may only be # used when then length of the `monitor_ids` field is one. attr_accessor :groups - # A unique identifier for the service level objective object. - # + # # A unique identifier for the service level objective object. + # # Always included in service level objective responses. attr_accessor :id - # Modification timestamp (UNIX time in seconds) - # + # # Modification timestamp (UNIX time in seconds) + # # Always included in service level objective responses. attr_accessor :modified_at - # A list of monitor ids that defines the scope of a monitor service level + # # A list of monitor ids that defines the scope of a monitor service level # objective. **Required if type is `monitor`**. attr_accessor :monitor_ids - # The union of monitor tags for all monitors referenced by the `monitor_ids` + # # The union of monitor tags for all monitors referenced by the `monitor_ids` # field. # Always included in service level objective responses for monitor service level # objectives (but may be empty). Ignored in create/update requests. Does not @@ -67,24 +67,24 @@ class ServiceLevelObjective # determined entirely by the `monitor_ids` field). attr_accessor :monitor_tags - # The name of the service level objective object. + # # The name of the service level objective object. attr_accessor :name - # A metric SLI query. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator + # # A metric SLI query. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator # to be used because this will sum up all request counts instead of averaging them, or taking the max or # min of all of those requests. attr_accessor :query - # A list of tags associated with this service level objective. + # # A list of tags associated with this service level objective. # Always included in service level objective responses (but may be empty). # Optional in create/update requests. attr_accessor :tags - # The thresholds (timeframes and associated targets) for this service level + # # The thresholds (timeframes and associated targets) for this service level # objective object. attr_accessor :thresholds - # The type of the service level objective. + # # The type of the service level objective. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 a46d4951267..f4dede6197e 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 @@ -25,10 +25,10 @@ class ServiceLevelObjectiveQuery # @!visibility private attr_accessor :_unparsed - # A Datadog metric query for total (valid) events. + # # A Datadog metric query for total (valid) events. attr_accessor :denominator - # A Datadog metric query for good events. + # # A Datadog metric query for good events. attr_accessor :numerator # Attribute mapping from ruby-style variable name to JSON key. 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 b0a2e68d1d1..57e87901f91 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 @@ -24,41 +24,41 @@ class ServiceLevelObjectiveRequest # @!visibility private attr_accessor :_unparsed - # A user-defined description of the service level objective. - # + # # A user-defined description of the service level objective. + # # Always included in service level objective responses (but may be `null`). # Optional in create/update requests. attr_accessor :description - # A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. - # + # # A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. + # # Included in service level objective responses if it is not empty. Optional in # create/update requests for monitor service level objectives, but may only be # used when then length of the `monitor_ids` field is one. attr_accessor :groups - # A list of monitor ids that defines the scope of a monitor service level + # # A list of monitor ids that defines the scope of a monitor service level # objective. **Required if type is `monitor`**. attr_accessor :monitor_ids - # The name of the service level objective object. + # # The name of the service level objective object. attr_accessor :name - # A metric SLI query. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator + # # A metric SLI query. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator # to be used because this will sum up all request counts instead of averaging them, or taking the max or # min of all of those requests. attr_accessor :query - # A list of tags associated with this service level objective. + # # A list of tags associated with this service level objective. # Always included in service level objective responses (but may be empty). # Optional in create/update requests. attr_accessor :tags - # The thresholds (timeframes and associated targets) for this service level + # # The thresholds (timeframes and associated targets) for this service level # objective object. attr_accessor :thresholds - # The type of the service level objective. + # # The type of the service level objective. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 bf4d646e0e2..45cb87b9ad0 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 @@ -23,25 +23,25 @@ class ServiceMapWidgetDefinition # @!visibility private attr_accessor :_unparsed - # List of custom links. + # # List of custom links. attr_accessor :custom_links - # Your environment and primary tag (or * if enabled for your account). + # # Your environment and primary tag (or * if enabled for your account). attr_accessor :filters - # The ID of the service you want to map. + # # The ID of the service you want to map. attr_accessor :service - # The title of your widget. + # # The title of your widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the service map widget. + # # Type of the service map widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 b6a8251a662..795476a6b9b 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 @@ -23,52 +23,52 @@ class ServiceSummaryWidgetDefinition # @!visibility private attr_accessor :_unparsed - # Number of columns to display. + # # Number of columns to display. attr_accessor :display_format - # APM environment. + # # APM environment. attr_accessor :env - # APM service. + # # APM service. attr_accessor :service - # Whether to show the latency breakdown or not. + # # Whether to show the latency breakdown or not. attr_accessor :show_breakdown - # Whether to show the latency distribution or not. + # # Whether to show the latency distribution or not. attr_accessor :show_distribution - # Whether to show the error metrics or not. + # # Whether to show the error metrics or not. attr_accessor :show_errors - # Whether to show the hits metrics or not. + # # Whether to show the hits metrics or not. attr_accessor :show_hits - # Whether to show the latency metrics or not. + # # Whether to show the latency metrics or not. attr_accessor :show_latency - # Whether to show the resource list or not. + # # Whether to show the resource list or not. attr_accessor :show_resource_list - # Size of the widget. + # # Size of the widget. attr_accessor :size_format - # APM span name. + # # APM span name. attr_accessor :span_name - # Time setting for the widget. + # # Time setting for the widget. attr_accessor :time - # Title of the widget. + # # Title of the widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the service summary widget. + # # Type of the service summary widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 cb7781e472c..a02081bebe3 100644 --- a/lib/datadog_api_client/v1/models/slack_integration_channel.rb +++ b/lib/datadog_api_client/v1/models/slack_integration_channel.rb @@ -23,10 +23,10 @@ class SlackIntegrationChannel # @!visibility private attr_accessor :_unparsed - # Configuration options for what is shown in an alert event message. + # # Configuration options for what is shown in an alert event message. attr_accessor :display - # Your channel name. + # # Your channel name. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 bf0397db11b..42a8e5f08b1 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 @@ -23,16 +23,16 @@ class SlackIntegrationChannelDisplay # @!visibility private attr_accessor :_unparsed - # Show the main body of the alert event. + # # Show the main body of the alert event. attr_accessor :message - # Show the list of @-handles in the alert event. + # # Show the list of @-handles in the alert event. attr_accessor :notified - # Show the alert event's snapshot image. + # # Show the alert event's snapshot image. attr_accessor :snapshot - # Show the scopes on which the monitor alerted. + # # Show the scopes on which the monitor alerted. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 68a9cac35d6..6829bf5bdd0 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 @@ -23,14 +23,14 @@ class SLOBulkDeleteError # @!visibility private attr_accessor :_unparsed - # The ID of the service level objective object associated with + # # The ID of the service level objective object associated with # this error. attr_accessor :id - # The error message. + # # The error message. attr_accessor :message - # The timeframe of the threshold associated with this error + # # The timeframe of the threshold associated with this error # or "all" if all thresholds are affected. attr_accessor :timeframe 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 7934c8abf08..cafd22d4c9a 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 @@ -28,10 +28,10 @@ class SLOBulkDeleteResponse # @!visibility private attr_accessor :_unparsed - # An array of service level objective objects. + # # An array of service level objective objects. attr_accessor :data - # Array of errors object returned. + # # Array of errors object returned. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. 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 a0cfdd97053..6f6b52bb75b 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 @@ -23,11 +23,11 @@ class SLOBulkDeleteResponseData # @!visibility private attr_accessor :_unparsed - # An array of service level objective object IDs that indicates + # # An array of service level objective object IDs that indicates # which objects that were completely deleted. attr_accessor :deleted - # An array of service level objective object IDs that indicates + # # An array of service level objective object IDs that indicates # which objects that were modified (objects for which at least one # threshold was deleted, but that were not completely deleted). attr_accessor :updated diff --git a/lib/datadog_api_client/v1/models/slo_correction.rb b/lib/datadog_api_client/v1/models/slo_correction.rb index 566b29ecf43..05d3574ff2a 100644 --- a/lib/datadog_api_client/v1/models/slo_correction.rb +++ b/lib/datadog_api_client/v1/models/slo_correction.rb @@ -23,13 +23,13 @@ class SLOCorrection # @!visibility private attr_accessor :_unparsed - # The attribute object associated with the SLO correction. + # # The attribute object associated with the SLO correction. attr_accessor :attributes - # The ID of the SLO correction. + # # The ID of the SLO correction. attr_accessor :id - # SLO correction resource type. + # # SLO correction resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 7f4a669278d..9ed984a27c9 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 @@ -23,10 +23,10 @@ class SLOCorrectionCreateData # @!visibility private attr_accessor :_unparsed - # The attribute object associated with the SLO correction to be created. + # # The attribute object associated with the SLO correction to be created. attr_accessor :attributes - # SLO correction resource type. + # # SLO correction resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 9dd5170680b..4d5513989e3 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 @@ -23,7 +23,7 @@ class SLOCorrectionCreateRequest # @!visibility private attr_accessor :_unparsed - # The data object associated with the SLO correction to be created. + # # The data object associated with the SLO correction to be created. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 ec9e47f88b1..98370707b2e 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 @@ -23,29 +23,29 @@ class SLOCorrectionCreateRequestAttributes # @!visibility private attr_accessor :_unparsed - # Category the SLO correction belongs to. + # # Category the SLO correction belongs to. attr_accessor :category - # Description of the correction being made. + # # Description of the correction being made. attr_accessor :description - # Length of time (in seconds) for a specified `rrule` recurring SLO correction. + # # Length of time (in seconds) for a specified `rrule` recurring SLO correction. attr_accessor :duration - # Ending time of the correction in epoch seconds. + # # Ending time of the correction in epoch seconds. attr_accessor :_end - # The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections + # # The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections # are `FREQ`, `INTERVAL`, `COUNT` and `UNTIL`. attr_accessor :rrule - # ID of the SLO that this correction will be applied to. + # # ID of the SLO that this correction will be applied to. attr_accessor :slo_id - # Starting time of the correction in epoch seconds. + # # Starting time of the correction in epoch seconds. attr_accessor :start - # The timezone to display in the UI for the correction times (defaults to "UTC"). + # # The timezone to display in the UI for the correction times (defaults to "UTC"). attr_accessor :timezone # Attribute mapping from ruby-style variable name to JSON key. 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 dafe8cb5c33..96a2cb0752d 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 @@ -23,10 +23,10 @@ class SLOCorrectionListResponse # @!visibility private attr_accessor :_unparsed - # The list of of SLO corrections objects. + # # The list of of SLO corrections objects. attr_accessor :data - # Object describing meta attributes of response. + # # Object describing meta attributes of response. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 1308707f814..fbff629bac9 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_response.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_response.rb @@ -23,7 +23,7 @@ class SLOCorrectionResponse # @!visibility private attr_accessor :_unparsed - # The response object of a list of SLO corrections. + # # The response object of a list of SLO corrections. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 cfbdb6d572a..4c398983735 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 @@ -23,41 +23,41 @@ class SLOCorrectionResponseAttributes # @!visibility private attr_accessor :_unparsed - # Category the SLO correction belongs to. + # # Category the SLO correction belongs to. attr_accessor :category - # The epoch timestamp of when the correction was created at + # # The epoch timestamp of when the correction was created at attr_accessor :created_at - # Object describing the creator of the shared element. + # # Object describing the creator of the shared element. attr_accessor :creator - # Description of the correction being made. + # # Description of the correction being made. attr_accessor :description - # Length of time (in seconds) for a specified `rrule` recurring SLO correction. + # # Length of time (in seconds) for a specified `rrule` recurring SLO correction. attr_accessor :duration - # Ending time of the correction in epoch seconds. + # # Ending time of the correction in epoch seconds. attr_accessor :_end - # The epoch timestamp of when the correction was modified at + # # The epoch timestamp of when the correction was modified at attr_accessor :modified_at - # Modifier of the object. + # # Modifier of the object. attr_accessor :modifier - # The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections + # # The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections # are `FREQ`, `INTERVAL`, `COUNT` and `UNTIL`. attr_accessor :rrule - # ID of the SLO that this correction will be applied to. + # # ID of the SLO that this correction will be applied to. attr_accessor :slo_id - # Starting time of the correction in epoch seconds. + # # Starting time of the correction in epoch seconds. attr_accessor :start - # The timezone to display in the UI for the correction times (defaults to "UTC"). + # # The timezone to display in the UI for the correction times (defaults to "UTC"). attr_accessor :timezone # Attribute mapping from ruby-style variable name to JSON key. 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 d34f839bcf5..2a20d12fe5e 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 @@ -23,13 +23,13 @@ class SLOCorrectionResponseAttributesModifier # @!visibility private attr_accessor :_unparsed - # Email of the Modifier. + # # Email of the Modifier. attr_accessor :email - # Handle of the Modifier. + # # Handle of the Modifier. attr_accessor :handle - # Name of the Modifier. + # # Name of the Modifier. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 44b52e67f7b..4efd3da376a 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 @@ -23,10 +23,10 @@ class SLOCorrectionUpdateData # @!visibility private attr_accessor :_unparsed - # The attribute object associated with the SLO correction to be updated. + # # The attribute object associated with the SLO correction to be updated. attr_accessor :attributes - # SLO correction resource type. + # # SLO correction resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 1f1f6c07e44..d25d07e12fb 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 @@ -23,7 +23,7 @@ class SLOCorrectionUpdateRequest # @!visibility private attr_accessor :_unparsed - # The data object associated with the SLO correction to be updated. + # # The data object associated with the SLO correction to be updated. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 d3bbe180310..a6cda9dab1d 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 @@ -23,26 +23,26 @@ class SLOCorrectionUpdateRequestAttributes # @!visibility private attr_accessor :_unparsed - # Category the SLO correction belongs to. + # # Category the SLO correction belongs to. attr_accessor :category - # Description of the correction being made. + # # Description of the correction being made. attr_accessor :description - # Length of time (in seconds) for a specified `rrule` recurring SLO correction. + # # Length of time (in seconds) for a specified `rrule` recurring SLO correction. attr_accessor :duration - # Ending time of the correction in epoch seconds. + # # Ending time of the correction in epoch seconds. attr_accessor :_end - # The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections + # # The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections # are `FREQ`, `INTERVAL`, `COUNT` and `UNTIL`. attr_accessor :rrule - # Starting time of the correction in epoch seconds. + # # Starting time of the correction in epoch seconds. attr_accessor :start - # The timezone to display in the UI for the correction times (defaults to "UTC"). + # # The timezone to display in the UI for the correction times (defaults to "UTC"). attr_accessor :timezone # Attribute mapping from ruby-style variable name to JSON key. 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 30a2a9cdd68..16a49f95339 100644 --- a/lib/datadog_api_client/v1/models/slo_delete_response.rb +++ b/lib/datadog_api_client/v1/models/slo_delete_response.rb @@ -23,10 +23,10 @@ class SLODeleteResponse # @!visibility private attr_accessor :_unparsed - # An array containing the ID of the deleted service level objective object. + # # An array containing the ID of the deleted service level objective object. attr_accessor :data - # An dictionary containing the ID of the SLO as key and a deletion error as value. + # # An dictionary containing the ID of the SLO as key and a deletion error as value. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. 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 1ff9f94c7b9..5305611e3da 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics.rb @@ -25,30 +25,30 @@ class SLOHistoryMetrics # @!visibility private attr_accessor :_unparsed - # A representation of `metric` based SLO time series for the provided queries. + # # A representation of `metric` based SLO time series for the provided queries. # This is the same response type from `batch_query` endpoint. attr_accessor :denominator - # The aggregated query interval for the series data. It's implicit based on the query time window. + # # The aggregated query interval for the series data. It's implicit based on the query time window. attr_accessor :interval - # Optional message if there are specific query issues/warnings. + # # Optional message if there are specific query issues/warnings. attr_accessor :message - # A representation of `metric` based SLO time series for the provided queries. + # # A representation of `metric` based SLO time series for the provided queries. # This is the same response type from `batch_query` endpoint. attr_accessor :numerator - # The combined numerator and denominator query CSV. + # # The combined numerator and denominator query CSV. attr_accessor :query - # The series result type. This mimics `batch_query` response type. + # # The series result type. This mimics `batch_query` response type. attr_accessor :res_type - # The series response version type. This mimics `batch_query` response type. + # # The series response version type. This mimics `batch_query` response type. attr_accessor :resp_version - # An array of query timestamps in EPOCH milliseconds + # # An array of query timestamps in EPOCH milliseconds attr_accessor :times # Attribute mapping from ruby-style variable name to JSON key. 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 47de94dc74e..74cbfdbd55f 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 @@ -24,16 +24,16 @@ class SLOHistoryMetricsSeries # @!visibility private attr_accessor :_unparsed - # Count of submitted metrics. + # # Count of submitted metrics. attr_accessor :count - # Query metadata. + # # Query metadata. attr_accessor :metadata - # Total sum of the query. + # # Total sum of the query. attr_accessor :sum - # The query values for each metric. + # # The query values for each metric. attr_accessor :values # Attribute mapping from ruby-style variable name to JSON key. 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 3e4d53fa4ac..bb7269866a1 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 @@ -23,22 +23,22 @@ class SLOHistoryMetricsSeriesMetadata # @!visibility private attr_accessor :_unparsed - # Query aggregator function. + # # Query aggregator function. attr_accessor :aggr - # Query expression. + # # Query expression. attr_accessor :expression - # Query metric used. + # # Query metric used. attr_accessor :metric - # Query index from original combined query. + # # Query index from original combined query. attr_accessor :query_index - # Query scope. + # # Query scope. attr_accessor :scope - # An array of metric units that contains up to two unit objects. + # # An array of metric units that contains up to two unit objects. # For example, bytes represents one unit object and bytes per second represents two unit objects. # If a metric query only has one unit object, the second array element is null. attr_accessor :unit 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 eb6d8b7b3de..a2869a75dd4 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 @@ -23,22 +23,22 @@ class SLOHistoryMetricsSeriesMetadataUnit # @!visibility private attr_accessor :_unparsed - # The family of metric unit, for example `bytes` is the family for `kibibyte`, `byte`, and `bit` units. + # # The family of metric unit, for example `bytes` is the family for `kibibyte`, `byte`, and `bit` units. attr_accessor :family - # The ID of the metric unit. + # # The ID of the metric unit. attr_accessor :id - # The unit of the metric, for instance `byte`. + # # The unit of the metric, for instance `byte`. attr_accessor :name - # The plural Unit of metric, for instance `bytes`. + # # The plural Unit of metric, for instance `bytes`. attr_accessor :plural - # The scale factor of metric unit, for instance `1.0`. + # # The scale factor of metric unit, for instance `1.0`. attr_accessor :scale_factor - # A shorter and abbreviated version of the metric unit, for instance `B`. + # # A shorter and abbreviated version of the metric unit, for instance `B`. attr_accessor :short_name # Attribute mapping from ruby-style variable name to JSON key. 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 ce7565cae50..7f79dac7ac2 100644 --- a/lib/datadog_api_client/v1/models/slo_history_monitor.rb +++ b/lib/datadog_api_client/v1/models/slo_history_monitor.rb @@ -24,41 +24,41 @@ class SLOHistoryMonitor # @!visibility private attr_accessor :_unparsed - # A mapping of threshold `timeframe` to the remaining error budget. + # # A mapping of threshold `timeframe` to the remaining error budget. attr_accessor :error_budget_remaining - # An array of error objects returned while querying the history data for the service level objective. + # # An array of error objects returned while querying the history data for the service level objective. attr_accessor :errors - # For groups in a grouped SLO, this is the group name. + # # For groups in a grouped SLO, this is the group name. attr_accessor :group - # For `monitor` based SLOs, this includes the aggregated history as arrays that include time series and uptime data where `0=monitor` is in `OK` state and `1=monitor` is in `alert` state. + # # For `monitor` based SLOs, this includes the aggregated history as arrays that include time series and uptime data where `0=monitor` is in `OK` state and `1=monitor` is in `alert` state. attr_accessor :history - # For `monitor` based SLOs, this is the last modified timestamp in epoch seconds of the monitor. + # # For `monitor` based SLOs, this is the last modified timestamp in epoch seconds of the monitor. attr_accessor :monitor_modified - # For `monitor` based SLOs, this describes the type of monitor. + # # For `monitor` based SLOs, this describes the type of monitor. attr_accessor :monitor_type - # For groups in a grouped SLO, this is the group name. For monitors in a multi-monitor SLO, this is the monitor name. + # # For groups in a grouped SLO, this is the group name. For monitors in a multi-monitor SLO, this is the monitor name. attr_accessor :name - # The amount of decimal places the SLI value is accurate to for the given from `&&` to timestamp. Use `span_precision` instead. + # # The amount of decimal places the SLI value is accurate to for the given from `&&` to timestamp. Use `span_precision` instead. attr_accessor :precision - # For `monitor` based SLOs, when `true` this indicates that a replay is in progress to give an accurate uptime + # # For `monitor` based SLOs, when `true` this indicates that a replay is in progress to give an accurate uptime # calculation. attr_accessor :preview - # The current SLI value of the SLO over the history window. + # # The current SLI value of the SLO over the history window. attr_accessor :sli_value - # The amount of decimal places the SLI value is accurate to for the given from `&&` to timestamp. + # # The amount of decimal places the SLI value is accurate to for the given from `&&` to timestamp. attr_accessor :span_precision - # Use `sli_value` instead. + # # Use `sli_value` instead. attr_accessor :uptime # Attribute mapping from ruby-style variable name to JSON key. 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 90a279c9116..7fd19285ec2 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response.rb @@ -23,10 +23,10 @@ class SLOHistoryResponse # @!visibility private attr_accessor :_unparsed - # An array of service level objective objects. + # # An array of service level objective objects. attr_accessor :data - # A list of errors while querying the history data for the service level objective. + # # A list of errors while querying the history data for the service level objective. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. 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 93ad62bdb79..9a4fb5e4525 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 @@ -23,43 +23,43 @@ class SLOHistoryResponseData # @!visibility private attr_accessor :_unparsed - # The `from` timestamp in epoch seconds. + # # The `from` timestamp in epoch seconds. attr_accessor :from_ts - # For `metric` based SLOs where the query includes a group-by clause, this represents the list of grouping parameters. - # + # # For `metric` based SLOs where the query includes a group-by clause, this represents the list of grouping parameters. + # # This is not included in responses for `monitor` based SLOs. attr_accessor :group_by - # For grouped SLOs, this represents SLI data for specific groups. - # + # # For grouped SLOs, this represents SLI data for specific groups. + # # This is not included in the responses for `metric` based SLOs. attr_accessor :groups - # For multi-monitor SLOs, this represents SLI data for specific monitors. - # + # # For multi-monitor SLOs, this represents SLI data for specific monitors. + # # This is not included in the responses for `metric` based SLOs. attr_accessor :monitors - # An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI value. + # # An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI value. # This can also represent the SLI value for a specific monitor in multi-monitor SLOs, or a group in grouped SLOs. attr_accessor :overall - # A `metric` based SLO history response. - # + # # A `metric` based SLO history response. + # # This is not included in responses for `monitor` based SLOs. attr_accessor :series - # mapping of string timeframe to the SLO threshold. + # # mapping of string timeframe to the SLO threshold. attr_accessor :thresholds - # The `to` timestamp in epoch seconds. + # # The `to` timestamp in epoch seconds. attr_accessor :to_ts - # The type of the service level objective. + # # The type of the service level objective. attr_accessor :type - # A numeric representation of the type of the service level objective (`0` for + # # A numeric representation of the type of the service level objective (`0` for # monitor, `1` for metric). Always included in service level objective responses. # Ignored in create/update requests. attr_accessor :type_id 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 9111814fd4a..ee047ff173a 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 @@ -23,7 +23,7 @@ class SLOHistoryResponseError # @!visibility private attr_accessor :_unparsed - # Human readable error. + # # Human readable error. attr_accessor :error # Attribute mapping from ruby-style variable name to JSON key. 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 0d73f2dd958..dbdefd79e1d 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 @@ -23,10 +23,10 @@ class SLOHistoryResponseErrorWithType # @!visibility private attr_accessor :_unparsed - # A message with more details about the error. + # # A message with more details about the error. attr_accessor :error_message - # Type of the error. + # # Type of the error. attr_accessor :error_type # Attribute mapping from ruby-style variable name to JSON key. 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 79b8ede6bf7..d03b49cd114 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 @@ -24,41 +24,41 @@ class SLOHistorySLIData # @!visibility private attr_accessor :_unparsed - # A mapping of threshold `timeframe` to the remaining error budget. + # # A mapping of threshold `timeframe` to the remaining error budget. attr_accessor :error_budget_remaining - # An array of error objects returned while querying the history data for the service level objective. + # # An array of error objects returned while querying the history data for the service level objective. attr_accessor :errors - # For groups in a grouped SLO, this is the group name. + # # For groups in a grouped SLO, this is the group name. attr_accessor :group - # For `monitor` based SLOs, this includes the aggregated history as arrays that include time series and uptime data where `0=monitor` is in `OK` state and `1=monitor` is in `alert` state. + # # For `monitor` based SLOs, this includes the aggregated history as arrays that include time series and uptime data where `0=monitor` is in `OK` state and `1=monitor` is in `alert` state. attr_accessor :history - # For `monitor` based SLOs, this is the last modified timestamp in epoch seconds of the monitor. + # # For `monitor` based SLOs, this is the last modified timestamp in epoch seconds of the monitor. attr_accessor :monitor_modified - # For `monitor` based SLOs, this describes the type of monitor. + # # For `monitor` based SLOs, this describes the type of monitor. attr_accessor :monitor_type - # For groups in a grouped SLO, this is the group name. For monitors in a multi-monitor SLO, this is the monitor name. + # # For groups in a grouped SLO, this is the group name. For monitors in a multi-monitor SLO, this is the monitor name. attr_accessor :name - # A mapping of threshold `timeframe` to number of accurate decimals, regardless of the from && to timestamp. + # # A mapping of threshold `timeframe` to number of accurate decimals, regardless of the from && to timestamp. attr_accessor :precision - # For `monitor` based SLOs, when `true` this indicates that a replay is in progress to give an accurate uptime + # # For `monitor` based SLOs, when `true` this indicates that a replay is in progress to give an accurate uptime # calculation. attr_accessor :preview - # The current SLI value of the SLO over the history window. + # # The current SLI value of the SLO over the history window. attr_accessor :sli_value - # The amount of decimal places the SLI value is accurate to for the given from `&&` to timestamp. + # # The amount of decimal places the SLI value is accurate to for the given from `&&` to timestamp. attr_accessor :span_precision - # Use `sli_value` instead. + # # Use `sli_value` instead. attr_accessor :uptime # Attribute mapping from ruby-style variable name to JSON key. 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 6fc669163ca..7769c5e2061 100644 --- a/lib/datadog_api_client/v1/models/slo_list_response.rb +++ b/lib/datadog_api_client/v1/models/slo_list_response.rb @@ -23,14 +23,14 @@ class SLOListResponse # @!visibility private attr_accessor :_unparsed - # An array of service level objective objects. + # # An array of service level objective objects. attr_accessor :data - # An array of error messages. Each endpoint documents how/whether this field is + # # An array of error messages. Each endpoint documents how/whether this field is # used. attr_accessor :errors - # The metadata object containing additional information about the list of SLOs. + # # The metadata object containing additional information about the list of SLOs. attr_accessor :metadata # Attribute mapping from ruby-style variable name to JSON key. 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 82e9fc8fbe0..896ff45a706 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 @@ -23,7 +23,7 @@ class SLOListResponseMetadata # @!visibility private attr_accessor :_unparsed - # The object containing information about the pages of the list of SLOs. + # # The object containing information about the pages of the list of SLOs. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. 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 27920000352..0449109eb75 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 @@ -23,10 +23,10 @@ class SLOListResponseMetadataPage # @!visibility private attr_accessor :_unparsed - # The total number of resources that could be retrieved ignoring the parameters and filters in the request. + # # The total number of resources that could be retrieved ignoring the parameters and filters in the request. attr_accessor :total_count - # 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. + # # 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 # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/slo_response.rb b/lib/datadog_api_client/v1/models/slo_response.rb index f1765c4c606..5ef123ea7ff 100644 --- a/lib/datadog_api_client/v1/models/slo_response.rb +++ b/lib/datadog_api_client/v1/models/slo_response.rb @@ -23,11 +23,11 @@ class SLOResponse # @!visibility private attr_accessor :_unparsed - # A service level objective object includes a service level indicator, thresholds + # # A service level objective object includes a service level indicator, thresholds # for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). attr_accessor :data - # An array of error messages. Each endpoint documents how/whether this field is + # # An array of error messages. Each endpoint documents how/whether this field is # used. attr_accessor :errors 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 28d4a014fd0..5d11d55cc1c 100644 --- a/lib/datadog_api_client/v1/models/slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_response_data.rb @@ -24,45 +24,45 @@ class SLOResponseData # @!visibility private attr_accessor :_unparsed - # A list of SLO monitors IDs that reference this SLO. This field is returned only when `with_configured_alert_ids` parameter is true in query. + # # A list of SLO monitors IDs that reference this SLO. This field is returned only when `with_configured_alert_ids` parameter is true in query. attr_accessor :configured_alert_ids - # Creation timestamp (UNIX time in seconds) - # + # # Creation timestamp (UNIX time in seconds) + # # Always included in service level objective responses. attr_accessor :created_at - # Object describing the creator of the shared element. + # # Object describing the creator of the shared element. attr_accessor :creator - # A user-defined description of the service level objective. - # + # # A user-defined description of the service level objective. + # # Always included in service level objective responses (but may be `null`). # Optional in create/update requests. attr_accessor :description - # A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. - # + # # A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. + # # Included in service level objective responses if it is not empty. Optional in # create/update requests for monitor service level objectives, but may only be # used when then length of the `monitor_ids` field is one. attr_accessor :groups - # A unique identifier for the service level objective object. - # + # # A unique identifier for the service level objective object. + # # Always included in service level objective responses. attr_accessor :id - # Modification timestamp (UNIX time in seconds) - # + # # Modification timestamp (UNIX time in seconds) + # # Always included in service level objective responses. attr_accessor :modified_at - # A list of monitor ids that defines the scope of a monitor service level + # # A list of monitor ids that defines the scope of a monitor service level # objective. **Required if type is `monitor`**. attr_accessor :monitor_ids - # The union of monitor tags for all monitors referenced by the `monitor_ids` + # # The union of monitor tags for all monitors referenced by the `monitor_ids` # field. # Always included in service level objective responses for monitor service level # objectives (but may be empty). Ignored in create/update requests. Does not @@ -70,24 +70,24 @@ class SLOResponseData # determined entirely by the `monitor_ids` field). attr_accessor :monitor_tags - # The name of the service level objective object. + # # The name of the service level objective object. attr_accessor :name - # A metric SLI query. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator + # # A metric SLI query. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator # to be used because this will sum up all request counts instead of averaging them, or taking the max or # min of all of those requests. attr_accessor :query - # A list of tags associated with this service level objective. + # # A list of tags associated with this service level objective. # Always included in service level objective responses (but may be empty). # Optional in create/update requests. attr_accessor :tags - # The thresholds (timeframes and associated targets) for this service level + # # The thresholds (timeframes and associated targets) for this service level # objective object. attr_accessor :thresholds - # The type of the service level objective. + # # The type of the service level objective. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/slo_threshold.rb b/lib/datadog_api_client/v1/models/slo_threshold.rb index 4136005a40d..f0c90ef21cd 100644 --- a/lib/datadog_api_client/v1/models/slo_threshold.rb +++ b/lib/datadog_api_client/v1/models/slo_threshold.rb @@ -23,26 +23,26 @@ class SLOThreshold # @!visibility private attr_accessor :_unparsed - # The target value for the service level indicator within the corresponding + # # The target value for the service level indicator within the corresponding # timeframe. attr_accessor :target - # A string representation of the target that indicates its precision. + # # A string representation of the target that indicates its precision. # It uses trailing zeros to show significant decimal places (for example `98.00`). - # + # # Always included in service level objective responses. Ignored in # create/update requests. attr_accessor :target_display - # The SLO time window options. + # # The SLO time window options. attr_accessor :timeframe - # The warning value for the service level objective. + # # The warning value for the service level objective. attr_accessor :warning - # A string representation of the warning target (see the description of + # # A string representation of the warning target (see the description of # the `target_display` field for details). - # + # # Included in service level objective responses if a warning target exists. # Ignored in create/update requests. attr_accessor :warning_display 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 ae9b06d3cca..94231daf866 100644 --- a/lib/datadog_api_client/v1/models/slo_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/slo_widget_definition.rb @@ -23,34 +23,34 @@ class SLOWidgetDefinition # @!visibility private attr_accessor :_unparsed - # Defined global time target. + # # Defined global time target. attr_accessor :global_time_target - # Defined error budget. + # # Defined error budget. attr_accessor :show_error_budget - # ID of the SLO displayed. + # # ID of the SLO displayed. attr_accessor :slo_id - # Times being monitored. + # # Times being monitored. attr_accessor :time_windows - # Title of the widget. + # # Title of the widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the SLO widget. + # # Type of the SLO widget. attr_accessor :type - # Define how you want the SLO to be displayed. + # # Define how you want the SLO to be displayed. attr_accessor :view_mode - # Type of view displayed by the widget. + # # Type of view displayed by the widget. attr_accessor :view_type # Attribute mapping from ruby-style variable name to JSON key. 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 96baa09462a..16f5759048f 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb @@ -23,31 +23,31 @@ class SunburstWidgetDefinition # @!visibility private attr_accessor :_unparsed - # List of custom links. + # # List of custom links. attr_accessor :custom_links - # Show the total value in this widget. + # # Show the total value in this widget. attr_accessor :hide_total - # Configuration of the legend. + # # Configuration of the legend. attr_accessor :legend - # List of sunburst widget requests. + # # List of sunburst widget requests. attr_accessor :requests - # Time setting for the widget. + # # Time setting for the widget. attr_accessor :time - # Title of your widget. + # # Title of your widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the Sunburst widget. + # # Type of the Sunburst widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 578ebc342ac..42da43e6fb8 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 @@ -23,13 +23,13 @@ class SunburstWidgetLegendInlineAutomatic # @!visibility private attr_accessor :_unparsed - # Whether to hide the percentages of the groups. + # # Whether to hide the percentages of the groups. attr_accessor :hide_percent - # Whether to hide the values of the groups. + # # Whether to hide the values of the groups. attr_accessor :hide_value - # Whether to show the legend inline or let it be automatically generated. + # # Whether to show the legend inline or let it be automatically generated. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 08f7b3d60cd..b1ca32ebdfe 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 @@ -23,7 +23,7 @@ class SunburstWidgetLegendTable # @!visibility private attr_accessor :_unparsed - # Whether or not to show a table legend. + # # Whether or not to show a table legend. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 a1ecac6527d..3bac9bbb6f2 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_request.rb @@ -23,43 +23,43 @@ class SunburstWidgetRequest # @!visibility private attr_accessor :_unparsed - # The log query. + # # The log query. attr_accessor :apm_query - # The log query. + # # The log query. attr_accessor :audit_query - # The log query. + # # The log query. attr_accessor :event_query - # List of formulas that operate on queries. **This feature is currently in beta.** + # # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas - # The log query. + # # The log query. attr_accessor :log_query - # The log query. + # # The log query. attr_accessor :network_query - # The process query to use in the widget. + # # The process query to use in the widget. attr_accessor :process_query - # The log query. + # # The log query. attr_accessor :profile_metrics_query - # Widget query. + # # Widget query. attr_accessor :q - # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** + # # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries - # Timeseries or Scalar response. **This feature is currently in beta.** + # # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format - # The log query. + # # The log query. attr_accessor :rum_query - # The log query. + # # The log query. attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/synthetics_api_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_step.rb index 68ebde8095f..5af578e56b4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_step.rb @@ -23,29 +23,29 @@ class SyntheticsAPIStep # @!visibility private attr_accessor :_unparsed - # Determines whether or not to continue with test if this step fails. + # # Determines whether or not to continue with test if this step fails. attr_accessor :allow_failure - # Array of assertions used for the test. + # # Array of assertions used for the test. attr_accessor :assertions - # Array of values to parse and save as variables from the response. + # # Array of values to parse and save as variables from the response. attr_accessor :extracted_values - # Determines whether or not to consider the entire test as failed if this step fails. + # # Determines whether or not to consider the entire test as failed if this step fails. # Can be used only if `allowFailure` is `true`. attr_accessor :is_critical - # The name of the step. + # # The name of the step. attr_accessor :name - # Object describing the Synthetic test request. + # # Object describing the Synthetic test request. attr_accessor :request - # Object describing the retry strategy to apply to a Synthetic test. + # # Object describing the retry strategy to apply to a Synthetic test. attr_accessor :_retry - # The subtype of the Synthetic multistep API test step, currently only supporting `http`. + # # The subtype of the Synthetic multistep API test step, currently only supporting `http`. attr_accessor :subtype # Attribute mapping from ruby-style variable name to JSON key. 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 7d6f410d212..d9ae3138fd2 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test.rb @@ -23,39 +23,39 @@ class SyntheticsAPITest # @!visibility private attr_accessor :_unparsed - # Configuration object for a Synthetic API test. + # # Configuration object for a Synthetic API test. attr_accessor :config - # Array of locations used to run the test. + # # Array of locations used to run the test. attr_accessor :locations - # Notification message associated with the test. + # # Notification message associated with the test. attr_accessor :message - # The associated monitor ID. + # # The associated monitor ID. attr_accessor :monitor_id - # Name of the test. + # # Name of the test. attr_accessor :name - # Object describing the extra options for a Synthetic test. + # # Object describing the extra options for a Synthetic test. attr_accessor :options - # The public ID for the test. + # # The public ID for the test. attr_accessor :public_id - # Define whether you want to start (`live`) or pause (`paused`) a + # # Define whether you want to start (`live`) or pause (`paused`) a # Synthetic test. attr_accessor :status - # The subtype of the Synthetic API test, `http`, `ssl`, `tcp`, + # # The subtype of the Synthetic API test, `http`, `ssl`, `tcp`, # `dns`, `icmp`, `udp`, `websocket` or `multi`. attr_accessor :subtype - # Array of tags attached to the test. + # # Array of tags attached to the test. attr_accessor :tags - # Type of the Synthetic test, `api`. + # # Type of the Synthetic test, `api`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 26df33b2c62..c8f9845e8cc 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 @@ -23,16 +23,16 @@ class SyntheticsAPITestConfig # @!visibility private attr_accessor :_unparsed - # Array of assertions used for the test. Required for single API tests. + # # Array of assertions used for the test. Required for single API tests. attr_accessor :assertions - # Array of variables used for the test. + # # Array of variables used for the test. attr_accessor :config_variables - # Object describing the Synthetic test request. + # # Object describing the Synthetic test request. attr_accessor :request - # When the test subtype is `multi`, the steps of the test. + # # When the test subtype is `multi`, the steps of the test. attr_accessor :steps # Attribute mapping from ruby-style variable name to JSON key. 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 5d5ece4fd16..5d20d53a625 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 @@ -23,31 +23,31 @@ class SyntheticsAPITestResultData # @!visibility private attr_accessor :_unparsed - # Object describing the SSL certificate used for a Synthetic test. + # # Object describing the SSL certificate used for a Synthetic test. attr_accessor :cert - # Status of a Synthetic test. + # # Status of a Synthetic test. attr_accessor :event_type - # The API test failure details. + # # The API test failure details. attr_accessor :failure - # The API test HTTP status code. + # # The API test HTTP status code. attr_accessor :http_status_code - # Request header object used for the API test. + # # Request header object used for the API test. attr_accessor :request_headers - # Response body returned for the API test. + # # Response body returned for the API test. attr_accessor :response_body - # Response headers returned for the API test. + # # Response headers returned for the API test. attr_accessor :response_headers - # Global size in byte of the API test response. + # # Global size in byte of the API test response. attr_accessor :response_size - # Object containing all metrics and their values collected for a Synthetic API test. + # # Object containing all metrics and their values collected for a Synthetic API test. # Learn more about those metrics in [Synthetics documentation](https://docs.datadoghq.com/synthetics/#metrics). attr_accessor :timings 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 01c3c20b092..3cd0b9dc7fc 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 @@ -23,10 +23,10 @@ class SyntheticsApiTestResultFailure # @!visibility private attr_accessor :_unparsed - # Error code that can be returned by a Synthetic test. + # # Error code that can be returned by a Synthetic test. attr_accessor :code - # The API test error message. + # # The API test error message. attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. 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 ac6c731f69f..6facb74db86 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 @@ -23,25 +23,25 @@ class SyntheticsAPITestResultFull # @!visibility private attr_accessor :_unparsed - # Object describing the API test configuration. + # # Object describing the API test configuration. attr_accessor :check - # When the API test was conducted. + # # When the API test was conducted. attr_accessor :check_time - # Version of the API test used. + # # Version of the API test used. attr_accessor :check_version - # Locations for which to query the API test results. + # # Locations for which to query the API test results. attr_accessor :probe_dc - # Object containing results for your Synthetic API test. + # # Object containing results for your Synthetic API test. attr_accessor :result - # ID of the API test result. + # # ID of the API test result. attr_accessor :result_id - # The status of your Synthetic monitor. + # # The status of your Synthetic monitor. # * `O` for not triggered # * `1` for triggered # * `2` for no data 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 adf839dcf89..cd172b64fea 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 @@ -23,7 +23,7 @@ class SyntheticsAPITestResultFullCheck # @!visibility private attr_accessor :_unparsed - # Configuration object for a Synthetic test. + # # Configuration object for a Synthetic test. attr_accessor :config # Attribute mapping from ruby-style variable name to JSON key. 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 41c6d5425dc..8e40ac9e179 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 @@ -23,19 +23,19 @@ class SyntheticsAPITestResultShort # @!visibility private attr_accessor :_unparsed - # Last time the API test was performed. + # # Last time the API test was performed. attr_accessor :check_time - # Location from which the API test was performed. + # # Location from which the API test was performed. attr_accessor :probe_dc - # Result of the last API test run. + # # Result of the last API test run. attr_accessor :result - # ID of the API test result. + # # ID of the API test result. attr_accessor :result_id - # The status of your Synthetic monitor. + # # The status of your Synthetic monitor. # * `O` for not triggered # * `1` for triggered # * `2` for no data 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 658f832c40a..a5a98960be8 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 @@ -23,10 +23,10 @@ class SyntheticsAPITestResultShortResult # @!visibility private attr_accessor :_unparsed - # Describes if the test run has passed or failed. + # # Describes if the test run has passed or failed. attr_accessor :passed - # Object containing all metrics and their values collected for a Synthetic API test. + # # Object containing all metrics and their values collected for a Synthetic API test. # Learn more about those metrics in [Synthetics documentation](https://docs.datadoghq.com/synthetics/#metrics). attr_accessor :timings 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 628baf94f63..26b071832ca 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 @@ -23,16 +23,16 @@ class SyntheticsAssertionJSONPathTarget # @!visibility private attr_accessor :_unparsed - # Assertion operator to apply. + # # Assertion operator to apply. attr_accessor :operator - # The associated assertion property. + # # The associated assertion property. attr_accessor :property - # Composed target for `validatesJSONPath` operator. + # # Composed target for `validatesJSONPath` operator. attr_accessor :target - # Type of the assertion. + # # Type of the assertion. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 2bbb5ed4c4d..3df7ceb5cfd 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 @@ -23,13 +23,13 @@ class SyntheticsAssertionJSONPathTargetTarget # @!visibility private attr_accessor :_unparsed - # The JSON path to assert. + # # The JSON path to assert. attr_accessor :json_path - # The specific operator to use on the path. + # # The specific operator to use on the path. attr_accessor :operator - # The path target value to compare to. + # # The path target value to compare to. attr_accessor :target_value # Attribute mapping from ruby-style variable name to JSON key. 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 df16395e72d..9f88d89c247 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb @@ -23,16 +23,16 @@ class SyntheticsAssertionTarget # @!visibility private attr_accessor :_unparsed - # Assertion operator to apply. + # # Assertion operator to apply. attr_accessor :operator - # The associated assertion property. + # # The associated assertion property. attr_accessor :property - # Value used by the operator. + # # Value used by the operator. attr_accessor :target - # Type of the assertion. + # # Type of the assertion. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 675357de521..3d1a4dc53a0 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 @@ -23,19 +23,19 @@ class SyntheticsBasicAuthNTLM # @!visibility private attr_accessor :_unparsed - # Domain for the authentication to use when performing the test. + # # Domain for the authentication to use when performing the test. attr_accessor :domain - # Password for the authentication to use when performing the test. + # # Password for the authentication to use when performing the test. attr_accessor :password - # The type of authentication to use when performing the test. + # # The type of authentication to use when performing the test. attr_accessor :type - # Username for the authentication to use when performing the test. + # # Username for the authentication to use when performing the test. attr_accessor :username - # Workstation for the authentication to use when performing the test. + # # Workstation for the authentication to use when performing the test. attr_accessor :workstation # Attribute mapping from ruby-style variable name to JSON key. 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 97cb8bd66c2..162991aed39 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 @@ -23,22 +23,22 @@ class SyntheticsBasicAuthSigv4 # @!visibility private attr_accessor :_unparsed - # Access key for the `SIGV4` authentication. + # # Access key for the `SIGV4` authentication. attr_accessor :access_key - # Region for the `SIGV4` authentication. + # # Region for the `SIGV4` authentication. attr_accessor :region - # Secret key for the `SIGV4` authentication. + # # Secret key for the `SIGV4` authentication. attr_accessor :secret_key - # Service name for the `SIGV4` authentication. + # # Service name for the `SIGV4` authentication. attr_accessor :service_name - # Session token for the `SIGV4` authentication. + # # Session token for the `SIGV4` authentication. attr_accessor :session_token - # The type of authentication to use when performing the test. + # # The type of authentication to use when performing the test. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 c8a59e38483..3af8bbc46af 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 @@ -23,13 +23,13 @@ class SyntheticsBasicAuthWeb # @!visibility private attr_accessor :_unparsed - # Password to use for the basic authentication. + # # Password to use for the basic authentication. attr_accessor :password - # The type of basic authentication to use when performing the test. + # # The type of basic authentication to use when performing the test. attr_accessor :type - # Username to use for the basic authentication. + # # Username to use for the basic authentication. attr_accessor :username # Attribute mapping from ruby-style variable name to JSON key. 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 21077cce653..960b69eca7a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_details.rb @@ -23,7 +23,7 @@ class SyntheticsBatchDetails # @!visibility private attr_accessor :_unparsed - # Wrapper object that contains the details of a batch. + # # Wrapper object that contains the details of a batch. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 155de247a78..a995163b3bc 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 @@ -23,13 +23,13 @@ class SyntheticsBatchDetailsData # @!visibility private attr_accessor :_unparsed - # Metadata for the Synthetics tests run. + # # Metadata for the Synthetics tests run. attr_accessor :metadata - # List of results for the batch. + # # List of results for the batch. attr_accessor :results - # Determines whether or not the batch has passed, failed, or is in progress. + # # Determines whether or not the batch has passed, failed, or is in progress. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. 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 6ebf8b67798..e5e2159c290 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb @@ -23,34 +23,34 @@ class SyntheticsBatchResult # @!visibility private attr_accessor :_unparsed - # The device ID. + # # The device ID. attr_accessor :device - # Total duration in millisecond of the test. + # # Total duration in millisecond of the test. attr_accessor :duration - # Execution rule for a Synthetics test. + # # Execution rule for a Synthetics test. attr_accessor :execution_rule - # Name of the location. + # # Name of the location. attr_accessor :location - # The ID of the result to get. + # # The ID of the result to get. attr_accessor :result_id - # Total duration in millisecond of the test. + # # Total duration in millisecond of the test. attr_accessor :retries - # Determines whether or not the batch has passed, failed, or is in progress. + # # Determines whether or not the batch has passed, failed, or is in progress. attr_accessor :status - # Name of the test. + # # Name of the test. attr_accessor :test_name - # The public ID of the Synthetic test. + # # The public ID of the Synthetic test. attr_accessor :test_public_id - # Type of the Synthetic test, either `api` or `browser`. + # # Type of the Synthetic test, either `api` or `browser`. attr_accessor :test_type # Attribute mapping from ruby-style variable name to JSON key. 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 5465c7f4d3a..65b7735dec0 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_error.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_error.rb @@ -23,16 +23,16 @@ class SyntheticsBrowserError # @!visibility private attr_accessor :_unparsed - # Description of the error. + # # Description of the error. attr_accessor :description - # Name of the error. + # # Name of the error. attr_accessor :name - # Status Code of the error. + # # Status Code of the error. attr_accessor :status - # Error type returned by a browser test. + # # Error type returned by a browser test. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 071ef51d7ea..e5507de4728 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb @@ -23,38 +23,38 @@ class SyntheticsBrowserTest # @!visibility private attr_accessor :_unparsed - # Configuration object for a Synthetic browser test. + # # Configuration object for a Synthetic browser test. attr_accessor :config - # Array of locations used to run the test. + # # Array of locations used to run the test. attr_accessor :locations - # Notification message associated with the test. Message can either be text or an empty string. + # # Notification message associated with the test. Message can either be text or an empty string. attr_accessor :message - # The associated monitor ID. + # # The associated monitor ID. attr_accessor :monitor_id - # Name of the test. + # # Name of the test. attr_accessor :name - # Object describing the extra options for a Synthetic test. + # # Object describing the extra options for a Synthetic test. attr_accessor :options - # The public ID of the test. + # # The public ID of the test. attr_accessor :public_id - # Define whether you want to start (`live`) or pause (`paused`) a + # # Define whether you want to start (`live`) or pause (`paused`) a # Synthetic test. attr_accessor :status - # The steps of the test. + # # The steps of the test. attr_accessor :steps - # Array of tags attached to the test. + # # Array of tags attached to the test. attr_accessor :tags - # Type of the Synthetic test, `browser`. + # # Type of the Synthetic test, `browser`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 620f854c734..35c456fe171 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 @@ -23,19 +23,19 @@ class SyntheticsBrowserTestConfig # @!visibility private attr_accessor :_unparsed - # Array of assertions used for the test. + # # Array of assertions used for the test. attr_accessor :assertions - # Array of variables used for the test. + # # Array of variables used for the test. attr_accessor :config_variables - # Object describing the Synthetic test request. + # # Object describing the Synthetic test request. attr_accessor :request - # Cookies to be used for the request, using the [Set-Cookie](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) syntax. + # # Cookies to be used for the request, using the [Set-Cookie](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) syntax. attr_accessor :set_cookie - # Array of variables used for the test steps. + # # Array of variables used for the test steps. attr_accessor :variables # Attribute mapping from ruby-style variable name to JSON key. 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 a2e5b88be59..93fb3f9554c 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 @@ -23,40 +23,40 @@ class SyntheticsBrowserTestResultData # @!visibility private attr_accessor :_unparsed - # Type of browser device used for the browser test. + # # Type of browser device used for the browser test. attr_accessor :browser_type - # Browser version used for the browser test. + # # Browser version used for the browser test. attr_accessor :browser_version - # Object describing the device used to perform the Synthetic test. + # # Object describing the device used to perform the Synthetic test. attr_accessor :device - # Global duration in second of the browser test. + # # Global duration in second of the browser test. attr_accessor :duration - # Error returned for the browser test. + # # Error returned for the browser test. attr_accessor :error - # The browser test failure details. + # # The browser test failure details. attr_accessor :failure - # Whether or not the browser test was conducted. + # # Whether or not the browser test was conducted. attr_accessor :passed - # The amount of email received during the browser test. + # # The amount of email received during the browser test. attr_accessor :received_email_count - # Starting URL for the browser test. + # # Starting URL for the browser test. attr_accessor :start_url - # Array containing the different browser test steps. + # # Array containing the different browser test steps. attr_accessor :step_details - # Whether or not a thumbnail is associated with the browser test. + # # Whether or not a thumbnail is associated with the browser test. attr_accessor :thumbnails_bucket_key - # Time in second to wait before the browser test starts after + # # Time in second to wait before the browser test starts after # reaching the start URL. attr_accessor :time_to_interactive 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 676bf08f318..c080f5709cc 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 @@ -23,10 +23,10 @@ class SyntheticsBrowserTestResultFailure # @!visibility private attr_accessor :_unparsed - # Error code that can be returned by a Synthetic test. + # # Error code that can be returned by a Synthetic test. attr_accessor :code - # The browser test error message. + # # The browser test error message. attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. 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 2d7be43327d..b898fe54727 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 @@ -23,25 +23,25 @@ class SyntheticsBrowserTestResultFull # @!visibility private attr_accessor :_unparsed - # Object describing the browser test configuration. + # # Object describing the browser test configuration. attr_accessor :check - # When the browser test was conducted. + # # When the browser test was conducted. attr_accessor :check_time - # Version of the browser test used. + # # Version of the browser test used. attr_accessor :check_version - # Location from which the browser test was performed. + # # Location from which the browser test was performed. attr_accessor :probe_dc - # Object containing results for your Synthetic browser test. + # # Object containing results for your Synthetic browser test. attr_accessor :result - # ID of the browser test result. + # # ID of the browser test result. attr_accessor :result_id - # The status of your Synthetic monitor. + # # The status of your Synthetic monitor. # * `O` for not triggered # * `1` for triggered # * `2` for no data 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 a305a27378f..b371d1d3524 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 @@ -23,7 +23,7 @@ class SyntheticsBrowserTestResultFullCheck # @!visibility private attr_accessor :_unparsed - # Configuration object for a Synthetic test. + # # Configuration object for a Synthetic test. attr_accessor :config # Attribute mapping from ruby-style variable name to JSON key. 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 f62a2bd7b29..8f3f8b9fd45 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 @@ -23,19 +23,19 @@ class SyntheticsBrowserTestResultShort # @!visibility private attr_accessor :_unparsed - # Last time the browser test was performed. + # # Last time the browser test was performed. attr_accessor :check_time - # Location from which the Browser test was performed. + # # Location from which the Browser test was performed. attr_accessor :probe_dc - # Object with the result of the last browser test run. + # # Object with the result of the last browser test run. attr_accessor :result - # ID of the browser test result. + # # ID of the browser test result. attr_accessor :result_id - # The status of your Synthetic monitor. + # # The status of your Synthetic monitor. # * `O` for not triggered # * `1` for triggered # * `2` for no data 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 f5d3cad598d..3e0cf152c67 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 @@ -23,19 +23,19 @@ class SyntheticsBrowserTestResultShortResult # @!visibility private attr_accessor :_unparsed - # Object describing the device used to perform the Synthetic test. + # # Object describing the device used to perform the Synthetic test. attr_accessor :device - # Length in second of the browser test run. + # # Length in second of the browser test run. attr_accessor :duration - # Amount of errors collected for a single browser test run. + # # Amount of errors collected for a single browser test run. attr_accessor :error_count - # Amount of browser test steps completed before failing. + # # Amount of browser test steps completed before failing. attr_accessor :step_count_completed - # Total amount of browser test steps. + # # Total amount of browser test steps. attr_accessor :step_count_total # Attribute mapping from ruby-style variable name to JSON key. 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 360db25b7aa..a503a7d7102 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb @@ -24,19 +24,19 @@ class SyntheticsBrowserVariable # @!visibility private attr_accessor :_unparsed - # Example for the variable. + # # Example for the variable. attr_accessor :example - # ID for the variable. Global variables require an ID. + # # ID for the variable. Global variables require an ID. attr_accessor :id - # Name of the variable. + # # Name of the variable. attr_accessor :name - # Pattern of the variable. + # # Pattern of the variable. attr_accessor :pattern - # Type of browser test variable. + # # Type of browser test variable. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 8eac94df959..561ced4cd1a 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 @@ -23,10 +23,10 @@ class SyntheticsCIBatchMetadata # @!visibility private attr_accessor :_unparsed - # Description of the CI provider. + # # Description of the CI provider. attr_accessor :ci - # Git information. + # # Git information. attr_accessor :git # Attribute mapping from ruby-style variable name to JSON key. 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 25a4c8bc84f..30d977a9aa2 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 @@ -23,10 +23,10 @@ class SyntheticsCIBatchMetadataCI # @!visibility private attr_accessor :_unparsed - # Description of the CI pipeline. + # # Description of the CI pipeline. attr_accessor :pipeline - # Description of the CI provider. + # # Description of the CI provider. attr_accessor :provider # Attribute mapping from ruby-style variable name to JSON key. 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 b5b5e3b53f9..7e19ad32e9c 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 @@ -23,10 +23,10 @@ class SyntheticsCIBatchMetadataGit # @!visibility private attr_accessor :_unparsed - # Branch name. + # # Branch name. attr_accessor :branch - # The commit SHA. + # # The commit SHA. attr_accessor :commit_sha # Attribute mapping from ruby-style variable name to JSON key. 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 74da8d83a0f..71b56837fa0 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 @@ -23,7 +23,7 @@ class SyntheticsCIBatchMetadataPipeline # @!visibility private attr_accessor :_unparsed - # URL of the pipeline. + # # URL of the pipeline. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. 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 fc221a3b635..23581b90468 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 @@ -23,7 +23,7 @@ class SyntheticsCIBatchMetadataProvider # @!visibility private attr_accessor :_unparsed - # Name of the CI provider. + # # Name of the CI provider. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 fc1b30cb6b8..ea7b8018754 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_test.rb @@ -23,46 +23,46 @@ class SyntheticsCITest # @!visibility private attr_accessor :_unparsed - # Disable certificate checks in API tests. + # # Disable certificate checks in API tests. attr_accessor :allow_insecure_certificates - # Object to handle basic authentication when performing the test. + # # Object to handle basic authentication when performing the test. attr_accessor :basic_auth - # Body to include in the test. + # # Body to include in the test. attr_accessor :body - # Type of the data sent in a synthetics API test. + # # Type of the data sent in a synthetics API test. attr_accessor :body_type - # Cookies for the request. + # # Cookies for the request. attr_accessor :cookies - # For browser test, array with the different device IDs used to run the test. + # # For browser test, array with the different device IDs used to run the test. attr_accessor :device_ids - # For API HTTP test, whether or not the test should follow redirects. + # # For API HTTP test, whether or not the test should follow redirects. attr_accessor :follow_redirects - # Headers to include when performing the test. + # # Headers to include when performing the test. attr_accessor :headers - # Array of locations used to run the test. + # # Array of locations used to run the test. attr_accessor :locations - # Metadata for the Synthetics tests run. + # # Metadata for the Synthetics tests run. attr_accessor :metadata - # The public ID of the Synthetics test to trigger. + # # The public ID of the Synthetics test to trigger. attr_accessor :public_id - # Object describing the retry strategy to apply to a Synthetic test. + # # Object describing the retry strategy to apply to a Synthetic test. attr_accessor :_retry - # Starting URL for the browser test. + # # Starting URL for the browser test. attr_accessor :start_url - # Variables to replace in the test. + # # Variables to replace in the test. attr_accessor :variables # Attribute mapping from ruby-style variable name to JSON key. 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 5ceb2a02ee6..91d241b77b4 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 @@ -23,7 +23,7 @@ class SyntheticsCITestBody # @!visibility private attr_accessor :_unparsed - # Individual synthetics test. + # # Individual synthetics test. attr_accessor :tests # Attribute mapping from ruby-style variable name to JSON key. 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 2a96af9f3e6..50b15228f48 100644 --- a/lib/datadog_api_client/v1/models/synthetics_config_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_config_variable.rb @@ -23,19 +23,19 @@ class SyntheticsConfigVariable # @!visibility private attr_accessor :_unparsed - # Example for the variable. + # # Example for the variable. attr_accessor :example - # ID of the variable for global variables. + # # ID of the variable for global variables. attr_accessor :id - # Name of the variable. + # # Name of the variable. attr_accessor :name - # Pattern of the variable. + # # Pattern of the variable. attr_accessor :pattern - # Type of the configuration variable. + # # Type of the configuration variable. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 b5de9bd7fe2..e32e353ea6e 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 @@ -23,13 +23,13 @@ class SyntheticsCoreWebVitals # @!visibility private attr_accessor :_unparsed - # Cumulative Layout Shift. + # # Cumulative Layout Shift. attr_accessor :cls - # Largest Contentful Paint in milliseconds. + # # Largest Contentful Paint in milliseconds. attr_accessor :lcp - # URL attached to the metrics. + # # URL attached to the metrics. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. 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 106586618be..603a733e6db 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 @@ -24,7 +24,7 @@ class SyntheticsDeleteTestsPayload # @!visibility private attr_accessor :_unparsed - # An array of Synthetic test IDs you want to delete. + # # An array of Synthetic test IDs you want to delete. attr_accessor :public_ids # Attribute mapping from ruby-style variable name to JSON key. 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 818fdfe8565..531c8536d5d 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 @@ -23,7 +23,7 @@ class SyntheticsDeleteTestsResponse # @!visibility private attr_accessor :_unparsed - # Array of objects containing a deleted Synthetic test ID with + # # Array of objects containing a deleted Synthetic test ID with # the associated deletion timestamp. attr_accessor :deleted_tests 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 28af9c55cb9..849e5fb5cad 100644 --- a/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb @@ -24,10 +24,10 @@ class SyntheticsDeletedTest # @!visibility private attr_accessor :_unparsed - # Deletion timestamp of the Synthetic test ID. + # # Deletion timestamp of the Synthetic test ID. attr_accessor :deleted_at - # The Synthetic test ID deleted. + # # The Synthetic test ID deleted. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/synthetics_device.rb b/lib/datadog_api_client/v1/models/synthetics_device.rb index 30d1737e68a..6072d86f7f7 100644 --- a/lib/datadog_api_client/v1/models/synthetics_device.rb +++ b/lib/datadog_api_client/v1/models/synthetics_device.rb @@ -23,19 +23,19 @@ class SyntheticsDevice # @!visibility private attr_accessor :_unparsed - # Screen height of the device. + # # Screen height of the device. attr_accessor :height - # The device ID. + # # The device ID. attr_accessor :id - # Whether or not the device is a mobile. + # # Whether or not the device is a mobile. attr_accessor :is_mobile - # The device name. + # # The device name. attr_accessor :name - # Screen width of the device. + # # Screen width of the device. attr_accessor :width # Attribute mapping from ruby-style variable name to JSON key. 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 591092ef4f7..e6aa05bcbfc 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 @@ -23,10 +23,10 @@ class SyntheticsGetAPITestLatestResultsResponse # @!visibility private attr_accessor :_unparsed - # Timestamp of the latest API test run. + # # Timestamp of the latest API test run. attr_accessor :last_timestamp_fetched - # Result of the latest API test run. + # # Result of the latest API test run. attr_accessor :results # Attribute mapping from ruby-style variable name to JSON key. 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 4ca3d2f436b..f6ddc7dcc06 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 @@ -23,10 +23,10 @@ class SyntheticsGetBrowserTestLatestResultsResponse # @!visibility private attr_accessor :_unparsed - # Timestamp of the latest browser test run. + # # Timestamp of the latest browser test run. attr_accessor :last_timestamp_fetched - # Result of the latest browser test run. + # # Result of the latest browser test run. attr_accessor :results # Attribute mapping from ruby-style variable name to JSON key. 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 5ef56e42833..46c365a0079 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable.rb @@ -23,28 +23,28 @@ class SyntheticsGlobalVariable # @!visibility private attr_accessor :_unparsed - # Attributes of the global variable. + # # Attributes of the global variable. attr_accessor :attributes - # Description of the global variable. + # # Description of the global variable. attr_accessor :description - # Unique identifier of the global variable. + # # Unique identifier of the global variable. attr_accessor :id - # Name of the global variable. Unique across Synthetics global variables. + # # Name of the global variable. Unique across Synthetics global variables. attr_accessor :name - # Parser options to use for retrieving a Synthetics global variable from a Synthetics Test. Used in conjunction with `parse_test_public_id`. + # # Parser options to use for retrieving a Synthetics global variable from a Synthetics Test. Used in conjunction with `parse_test_public_id`. attr_accessor :parse_test_options - # A Synthetic test ID to use as a test to generate the variable value. + # # A Synthetic test ID to use as a test to generate the variable value. attr_accessor :parse_test_public_id - # Tags of the global variable. + # # Tags of the global variable. attr_accessor :tags - # Value of the global variable. + # # Value of the global variable. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 7d4448a4bb9..34c527b0186 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 @@ -23,7 +23,7 @@ class SyntheticsGlobalVariableAttributes # @!visibility private attr_accessor :_unparsed - # List of role identifiers that can be pulled from the Roles API. + # # List of role identifiers that can be pulled from the Roles API. attr_accessor :restricted_roles # Attribute mapping from ruby-style variable name to JSON key. 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 4009198c976..46a70504768 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 @@ -23,13 +23,13 @@ class SyntheticsGlobalVariableParseTestOptions # @!visibility private attr_accessor :_unparsed - # When type is `http_header`, name of the header to use to extract the value. + # # When type is `http_header`, name of the header to use to extract the value. attr_accessor :field - # Details of the parser to use for the global variable. + # # Details of the parser to use for the global variable. attr_accessor :parser - # Property of the Synthetics Test Response to use for a Synthetics global variable. + # # Property of the Synthetics Test Response to use for a Synthetics global variable. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 dfe6fc5d2d3..cac7abf71a4 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 @@ -23,10 +23,10 @@ class SyntheticsGlobalVariableValue # @!visibility private attr_accessor :_unparsed - # Determines if the value of the variable is hidden. + # # Determines if the value of the variable is hidden. attr_accessor :secure - # Value of the global variable. When reading a global variable, + # # Value of the global variable. When reading a global variable, # the value will not be present if the variable is hidden with the `secure` property. attr_accessor :value 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 d94cca37748..78a8f8613da 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 @@ -23,7 +23,7 @@ class SyntheticsListGlobalVariablesResponse # @!visibility private attr_accessor :_unparsed - # Array of Synthetic global variables. + # # Array of Synthetic global variables. attr_accessor :variables # Attribute mapping from ruby-style variable name to JSON key. 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 ae06a622c24..53cc3711f2b 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 @@ -23,7 +23,7 @@ class SyntheticsListTestsResponse # @!visibility private attr_accessor :_unparsed - # Array of Synthetic tests configuration. + # # Array of Synthetic tests configuration. attr_accessor :tests # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/synthetics_location.rb b/lib/datadog_api_client/v1/models/synthetics_location.rb index 315c279c1c4..f82f66cd697 100644 --- a/lib/datadog_api_client/v1/models/synthetics_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_location.rb @@ -24,10 +24,10 @@ class SyntheticsLocation # @!visibility private attr_accessor :_unparsed - # Unique identifier of the location. + # # Unique identifier of the location. attr_accessor :id - # Name of the location. + # # Name of the location. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/synthetics_locations.rb b/lib/datadog_api_client/v1/models/synthetics_locations.rb index 5c270459489..aa7ac62d6bd 100644 --- a/lib/datadog_api_client/v1/models/synthetics_locations.rb +++ b/lib/datadog_api_client/v1/models/synthetics_locations.rb @@ -23,7 +23,7 @@ class SyntheticsLocations # @!visibility private attr_accessor :_unparsed - # List of Synthetics locations. + # # List of Synthetics locations. attr_accessor :locations # Attribute mapping from ruby-style variable name to JSON key. 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 adbb47fe305..9511721e60a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb @@ -23,16 +23,16 @@ class SyntheticsParsingOptions # @!visibility private attr_accessor :_unparsed - # When type is `http_header`, name of the header to use to extract the value. + # # When type is `http_header`, name of the header to use to extract the value. attr_accessor :field - # Name of the variable to extract. + # # Name of the variable to extract. attr_accessor :name - # Details of the parser to use for the global variable. + # # Details of the parser to use for the global variable. attr_accessor :parser - # Property of the Synthetics Test Response to use for a Synthetics global variable. + # # Property of the Synthetics Test Response to use for a Synthetics global variable. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 e1c7eb33ff0..3d9166d50b4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location.rb @@ -23,19 +23,19 @@ class SyntheticsPrivateLocation # @!visibility private attr_accessor :_unparsed - # Description of the private location. + # # Description of the private location. attr_accessor :description - # Unique identifier of the private location. + # # Unique identifier of the private location. attr_accessor :id - # Name of the private location. + # # Name of the private location. attr_accessor :name - # Secrets for the private location. Only present in the response when creating the private location. + # # Secrets for the private location. Only present in the response when creating the private location. attr_accessor :secrets - # Array of tags attached to the private location. + # # Array of tags attached to the private location. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 4a3acb0907b..75547a39d7c 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 @@ -23,13 +23,13 @@ class SyntheticsPrivateLocationCreationResponse # @!visibility private attr_accessor :_unparsed - # Configuration skeleton for the private location. See installation instructions of the private location on how to use this configuration. + # # Configuration skeleton for the private location. See installation instructions of the private location on how to use this configuration. attr_accessor :config - # Object containing information about the private location to create. + # # Object containing information about the private location to create. attr_accessor :private_location - # Public key for the result encryption. + # # Public key for the result encryption. attr_accessor :result_encryption # Attribute mapping from ruby-style variable name to JSON key. 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 6ea31c7ee28..c9895613656 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 @@ -23,10 +23,10 @@ class SyntheticsPrivateLocationCreationResponseResultEncryption # @!visibility private attr_accessor :_unparsed - # Fingerprint for the encryption key. + # # Fingerprint for the encryption key. attr_accessor :id - # Public key for result encryption. + # # Public key for result encryption. attr_accessor :key # Attribute mapping from ruby-style variable name to JSON key. 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 1119552f0e5..9de8dc3dd6b 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 @@ -23,10 +23,10 @@ class SyntheticsPrivateLocationSecrets # @!visibility private attr_accessor :_unparsed - # Authentication part of the secrets. + # # Authentication part of the secrets. attr_accessor :authentication - # Private key for the private location. + # # Private key for the private location. attr_accessor :config_decryption # Attribute mapping from ruby-style variable name to JSON key. 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 64fb0b882a2..860ad411e18 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 @@ -23,10 +23,10 @@ class SyntheticsPrivateLocationSecretsAuthentication # @!visibility private attr_accessor :_unparsed - # Access key for the private location. + # # Access key for the private location. attr_accessor :id - # Secret access key for the private location. + # # Secret access key for the private location. attr_accessor :key # Attribute mapping from ruby-style variable name to JSON key. 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 e8fe6a7a34d..1ecb7f47340 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 @@ -23,7 +23,7 @@ class SyntheticsPrivateLocationSecretsConfigDecryption # @!visibility private attr_accessor :_unparsed - # Private key for the private location. + # # Private key for the private location. attr_accessor :key # Attribute mapping from ruby-style variable name to JSON key. 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 80aaeda078a..f4f252b8344 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb @@ -23,40 +23,40 @@ class SyntheticsSSLCertificate # @!visibility private attr_accessor :_unparsed - # Cipher used for the connection. + # # Cipher used for the connection. attr_accessor :cipher - # Exponent associated to the certificate. + # # Exponent associated to the certificate. attr_accessor :exponent - # Array of extensions and details used for the certificate. + # # Array of extensions and details used for the certificate. attr_accessor :ext_key_usage - # MD5 digest of the DER-encoded Certificate information. + # # MD5 digest of the DER-encoded Certificate information. attr_accessor :fingerprint - # SHA-1 digest of the DER-encoded Certificate information. + # # SHA-1 digest of the DER-encoded Certificate information. attr_accessor :fingerprint256 - # Object describing the issuer of a SSL certificate. + # # Object describing the issuer of a SSL certificate. attr_accessor :issuer - # Modulus associated to the SSL certificate private key. + # # Modulus associated to the SSL certificate private key. attr_accessor :modulus - # TLS protocol used for the test. + # # TLS protocol used for the test. attr_accessor :protocol - # Serial Number assigned by Symantec to the SSL certificate. + # # Serial Number assigned by Symantec to the SSL certificate. attr_accessor :serial_number - # Object describing the SSL certificate used for the test. + # # Object describing the SSL certificate used for the test. attr_accessor :subject - # Date from which the SSL certificate is valid. + # # Date from which the SSL certificate is valid. attr_accessor :valid_from - # Date until which the SSL certificate is valid. + # # Date until which the SSL certificate is valid. attr_accessor :valid_to # Attribute mapping from ruby-style variable name to JSON key. 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 be922937457..bc4054693fc 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 @@ -23,22 +23,22 @@ class SyntheticsSSLCertificateIssuer # @!visibility private attr_accessor :_unparsed - # Country Name that issued the certificate. + # # Country Name that issued the certificate. attr_accessor :c - # Common Name that issued certificate. + # # Common Name that issued certificate. attr_accessor :cn - # Locality that issued the certificate. + # # Locality that issued the certificate. attr_accessor :l - # Organization that issued the certificate. + # # Organization that issued the certificate. attr_accessor :o - # Organizational Unit that issued the certificate. + # # Organizational Unit that issued the certificate. attr_accessor :ou - # State Or Province Name that issued the certificate. + # # State Or Province Name that issued the certificate. attr_accessor :st # Attribute mapping from ruby-style variable name to JSON key. 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 f8081373006..14bcdf425bf 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 @@ -23,25 +23,25 @@ class SyntheticsSSLCertificateSubject # @!visibility private attr_accessor :_unparsed - # Country Name associated with the certificate. + # # Country Name associated with the certificate. attr_accessor :c - # Common Name that associated with the certificate. + # # Common Name that associated with the certificate. attr_accessor :cn - # Locality associated with the certificate. + # # Locality associated with the certificate. attr_accessor :l - # Organization associated with the certificate. + # # Organization associated with the certificate. attr_accessor :o - # Organizational Unit associated with the certificate. + # # Organizational Unit associated with the certificate. attr_accessor :ou - # State Or Province Name associated with the certificate. + # # State Or Province Name associated with the certificate. attr_accessor :st - # Subject Alternative Name associated with the certificate. + # # Subject Alternative Name associated with the certificate. attr_accessor :alt_name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/synthetics_step.rb b/lib/datadog_api_client/v1/models/synthetics_step.rb index 4967f8138c0..732511ec1d7 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step.rb @@ -23,19 +23,19 @@ class SyntheticsStep # @!visibility private attr_accessor :_unparsed - # A boolean set to allow this step to fail. + # # A boolean set to allow this step to fail. attr_accessor :allow_failure - # The name of the step. + # # The name of the step. attr_accessor :name - # The parameters of the step. + # # The parameters of the step. attr_accessor :params - # The time before declaring a step failed. + # # The time before declaring a step failed. attr_accessor :timeout - # Step type used in your Synthetic test. + # # Step type used in your Synthetic test. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 a030068a5c7..363391b4d2f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_detail.rb @@ -23,56 +23,56 @@ class SyntheticsStepDetail # @!visibility private attr_accessor :_unparsed - # Array of errors collected for a browser test. + # # Array of errors collected for a browser test. attr_accessor :browser_errors - # Type of assertion to apply in an API test. + # # Type of assertion to apply in an API test. attr_accessor :check_type - # Description of the test. + # # Description of the test. attr_accessor :description - # Total duration in millisecond of the test. + # # Total duration in millisecond of the test. attr_accessor :duration - # Error returned by the test. + # # Error returned by the test. attr_accessor :error - # Navigate between different tabs for your browser test. + # # Navigate between different tabs for your browser test. attr_accessor :playing_tab - # Whether or not screenshots where collected by the test. + # # Whether or not screenshots where collected by the test. attr_accessor :screenshot_bucket_key - # Whether or not to skip this step. + # # Whether or not to skip this step. attr_accessor :skipped - # Whether or not snapshots where collected by the test. + # # Whether or not snapshots where collected by the test. attr_accessor :snapshot_bucket_key - # The step ID. + # # The step ID. attr_accessor :step_id - # If this steps include a sub-test. + # # If this steps include a sub-test. # [Subtests documentation](https://docs.datadoghq.com/synthetics/browser_tests/advanced_options/#subtests). attr_accessor :sub_test_step_details - # Time before starting the step. + # # Time before starting the step. attr_accessor :time_to_interactive - # Step type used in your Synthetic test. + # # Step type used in your Synthetic test. attr_accessor :type - # URL to perform the step against. + # # URL to perform the step against. attr_accessor :url - # Value for the step. + # # Value for the step. attr_accessor :value - # Array of Core Web Vitals metrics for the step. + # # Array of Core Web Vitals metrics for the step. attr_accessor :vitals_metrics - # Warning collected that didn't failed the step. + # # Warning collected that didn't failed the step. attr_accessor :warnings # Attribute mapping from ruby-style variable name to JSON key. 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 abe331038a3..57b99b46a97 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 @@ -23,10 +23,10 @@ class SyntheticsStepDetailWarning # @!visibility private attr_accessor :_unparsed - # Message for the warning. + # # Message for the warning. attr_accessor :message - # User locator used. + # # User locator used. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 fbeeaa9bf1f..d4cb2496734 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_config.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_config.rb @@ -23,16 +23,16 @@ class SyntheticsTestConfig # @!visibility private attr_accessor :_unparsed - # Array of assertions used for the test. Required for single API tests. + # # Array of assertions used for the test. Required for single API tests. attr_accessor :assertions - # Array of variables used for the test. + # # Array of variables used for the test. attr_accessor :config_variables - # Object describing the Synthetic test request. + # # Object describing the Synthetic test request. attr_accessor :request - # Browser tests only - array of variables used for the test steps. + # # Browser tests only - array of variables used for the test steps. attr_accessor :variables # Attribute mapping from ruby-style variable name to JSON key. 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 3f79d0a2e2c..a3d9e43fae4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details.rb @@ -23,45 +23,45 @@ class SyntheticsTestDetails # @!visibility private attr_accessor :_unparsed - # Configuration object for a Synthetic test. + # # Configuration object for a Synthetic test. attr_accessor :config - # Object describing the creator of the shared element. + # # Object describing the creator of the shared element. attr_accessor :creator - # Array of locations used to run the test. + # # Array of locations used to run the test. attr_accessor :locations - # Notification message associated with the test. + # # Notification message associated with the test. attr_accessor :message - # The associated monitor ID. + # # The associated monitor ID. attr_accessor :monitor_id - # Name of the test. + # # Name of the test. attr_accessor :name - # Object describing the extra options for a Synthetic test. + # # Object describing the extra options for a Synthetic test. attr_accessor :options - # The test public ID. + # # The test public ID. attr_accessor :public_id - # Define whether you want to start (`live`) or pause (`paused`) a + # # Define whether you want to start (`live`) or pause (`paused`) a # Synthetic test. attr_accessor :status - # For browser test, the steps of the test. + # # For browser test, the steps of the test. attr_accessor :steps - # The subtype of the Synthetic API test, `http`, `ssl`, `tcp`, + # # The subtype of the Synthetic API test, `http`, `ssl`, `tcp`, # `dns`, `icmp`, `udp`, `websocket` or `multi`. attr_accessor :subtype - # Array of tags attached to the test. + # # Array of tags attached to the test. attr_accessor :tags - # Type of the Synthetic test, either `api` or `browser`. + # # Type of the Synthetic test, either `api` or `browser`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 88bd9fb2f31..2fd01ab10be 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options.rb @@ -23,46 +23,46 @@ class SyntheticsTestOptions # @!visibility private attr_accessor :_unparsed - # For SSL test, whether or not the test should allow self signed + # # For SSL test, whether or not the test should allow self signed # certificates. attr_accessor :accept_self_signed - # Allows loading insecure content for an HTTP request. + # # Allows loading insecure content for an HTTP request. attr_accessor :allow_insecure - # For browser test, array with the different device IDs used to run the test. + # # For browser test, array with the different device IDs used to run the test. attr_accessor :device_ids - # Whether or not to disable CORS mechanism. + # # Whether or not to disable CORS mechanism. attr_accessor :disable_cors - # For API HTTP test, whether or not the test should follow redirects. + # # For API HTTP test, whether or not the test should follow redirects. attr_accessor :follow_redirects - # Minimum amount of time in failure required to trigger an alert. + # # Minimum amount of time in failure required to trigger an alert. attr_accessor :min_failure_duration - # Minimum number of locations in failure required to trigger + # # Minimum number of locations in failure required to trigger # an alert. attr_accessor :min_location_failed - # The monitor name is used for the alert title as well as for all monitor dashboard widgets and SLOs. + # # The monitor name is used for the alert title as well as for all monitor dashboard widgets and SLOs. attr_accessor :monitor_name - # Object containing the options for a Synthetic test as a monitor + # # Object containing the options for a Synthetic test as a monitor # (for example, renotification). attr_accessor :monitor_options - # Integer from 1 (high) to 5 (low) indicating alert severity. + # # Integer from 1 (high) to 5 (low) indicating alert severity. attr_accessor :monitor_priority - # Prevents saving screenshots of the steps. + # # Prevents saving screenshots of the steps. attr_accessor :no_screenshot - # Object describing the retry strategy to apply to a Synthetic test. + # # Object describing the retry strategy to apply to a Synthetic test. attr_accessor :_retry - # The frequency at which to run the Synthetic test (in seconds). + # # The frequency at which to run the Synthetic test (in seconds). attr_accessor :tick_every # Attribute mapping from ruby-style variable name to JSON key. 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 0d4e2c7aa70..183cd60b427 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 @@ -24,7 +24,7 @@ class SyntheticsTestOptionsMonitorOptions # @!visibility private attr_accessor :_unparsed - # Time interval before renotifying if the test is still failing + # # Time interval before renotifying if the test is still failing # (in minutes). attr_accessor :renotify_interval 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 98cd8adce0d..d3291c912fa 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 @@ -23,11 +23,11 @@ class SyntheticsTestOptionsRetry # @!visibility private attr_accessor :_unparsed - # Number of times a test needs to be retried before marking a + # # Number of times a test needs to be retried before marking a # location as failed. Defaults to 0. attr_accessor :count - # Time interval between retries (in milliseconds). Defaults to + # # Time interval between retries (in milliseconds). Defaults to # 300ms. attr_accessor :interval 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 b385c57c08b..5cfcac98323 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request.rb @@ -23,66 +23,66 @@ class SyntheticsTestRequest # @!visibility private attr_accessor :_unparsed - # Allows loading insecure content for an HTTP request in a multistep test step. + # # Allows loading insecure content for an HTTP request in a multistep test step. attr_accessor :allow_insecure - # Object to handle basic authentication when performing the test. + # # Object to handle basic authentication when performing the test. attr_accessor :basic_auth - # Body to include in the test. + # # Body to include in the test. attr_accessor :body - # Client certificate to use when performing the test request. + # # Client certificate to use when performing the test request. attr_accessor :certificate - # DNS server to use for DNS tests. + # # DNS server to use for DNS tests. attr_accessor :dns_server - # DNS server port to use for DNS tests. + # # DNS server port to use for DNS tests. attr_accessor :dns_server_port - # Specifies whether or not the request follows redirects. + # # Specifies whether or not the request follows redirects. attr_accessor :follow_redirects - # Headers to include when performing the test. + # # Headers to include when performing the test. attr_accessor :headers - # Host name to perform the test with. + # # Host name to perform the test with. attr_accessor :host - # Message to send for UDP or WebSocket tests. + # # Message to send for UDP or WebSocket tests. attr_accessor :message - # The HTTP method. + # # The HTTP method. attr_accessor :method - # Determines whether or not to save the response body. + # # Determines whether or not to save the response body. attr_accessor :no_saving_response_body - # Number of pings to use per test. + # # Number of pings to use per test. attr_accessor :number_of_packets - # Port to use when performing the test. + # # Port to use when performing the test. attr_accessor :port - # The proxy to perform the test. + # # The proxy to perform the test. attr_accessor :proxy - # Query to use for the test. + # # Query to use for the test. attr_accessor :query - # For SSL tests, it specifies on which server you want to initiate the TLS handshake, + # # For SSL tests, it specifies on which server you want to initiate the TLS handshake, # allowing the server to present one of multiple possible certificates on # the same IP address and TCP port number. attr_accessor :servername - # Turns on a traceroute probe to discover all gateways along the path to the host destination. + # # Turns on a traceroute probe to discover all gateways along the path to the host destination. attr_accessor :should_track_hops - # Timeout in seconds for the test. + # # Timeout in seconds for the test. attr_accessor :timeout - # URL to perform the test with. + # # URL to perform the test with. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. 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 990a9acb787..93e1dbc28b4 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 @@ -23,10 +23,10 @@ class SyntheticsTestRequestCertificate # @!visibility private attr_accessor :_unparsed - # Define a request certificate. + # # Define a request certificate. attr_accessor :cert - # Define a request certificate. + # # Define a request certificate. attr_accessor :key # Attribute mapping from ruby-style variable name to JSON key. 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 a9cece8c566..24617f893bc 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 @@ -23,13 +23,13 @@ class SyntheticsTestRequestCertificateItem # @!visibility private attr_accessor :_unparsed - # Content of the certificate or key. + # # Content of the certificate or key. attr_accessor :content - # File name for the certificate or key. + # # File name for the certificate or key. attr_accessor :filename - # Date of update of the certificate or key, ISO format. + # # Date of update of the certificate or key, ISO format. attr_accessor :updated_at # Attribute mapping from ruby-style variable name to JSON key. 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 ffe650a2241..7f0a2400cc3 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 @@ -23,10 +23,10 @@ class SyntheticsTestRequestProxy # @!visibility private attr_accessor :_unparsed - # Headers to include when performing the test. + # # Headers to include when performing the test. attr_accessor :headers - # URL of the proxy to perform the test. + # # URL of the proxy to perform the test. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/synthetics_timing.rb b/lib/datadog_api_client/v1/models/synthetics_timing.rb index 9ec775e4ffe..889c00faf7e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_timing.rb +++ b/lib/datadog_api_client/v1/models/synthetics_timing.rb @@ -24,31 +24,31 @@ class SyntheticsTiming # @!visibility private attr_accessor :_unparsed - # The duration in millisecond of the DNS lookup. + # # The duration in millisecond of the DNS lookup. attr_accessor :dns - # The time in millisecond to download the response. + # # The time in millisecond to download the response. attr_accessor :download - # The time in millisecond to first byte. + # # The time in millisecond to first byte. attr_accessor :first_byte - # The duration in millisecond of the TLS handshake. + # # The duration in millisecond of the TLS handshake. attr_accessor :handshake - # The time in millisecond spent during redirections. + # # The time in millisecond spent during redirections. attr_accessor :redirect - # The duration in millisecond of the TLS handshake. + # # The duration in millisecond of the TLS handshake. attr_accessor :ssl - # Time in millisecond to establish the TCP connection. + # # Time in millisecond to establish the TCP connection. attr_accessor :tcp - # The overall time in millisecond the request took to be processed. + # # The overall time in millisecond the request took to be processed. attr_accessor :total - # Time spent in millisecond waiting for a response. + # # Time spent in millisecond waiting for a response. attr_accessor :wait # Attribute mapping from ruby-style variable name to JSON key. 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 cb2508366c4..79994caec88 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb @@ -23,7 +23,7 @@ class SyntheticsTriggerBody # @!visibility private attr_accessor :_unparsed - # Individual synthetics test. + # # Individual synthetics test. attr_accessor :tests # Attribute mapping from ruby-style variable name to JSON key. 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 528894dff3d..a83dbb57a09 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 @@ -23,10 +23,10 @@ class SyntheticsTriggerCITestLocation # @!visibility private attr_accessor :_unparsed - # Unique identifier of the location. + # # Unique identifier of the location. attr_accessor :id - # Name of the location. + # # Name of the location. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 41bdf5d1384..2548bb67e2e 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 @@ -23,16 +23,16 @@ class SyntheticsTriggerCITestRunResult # @!visibility private attr_accessor :_unparsed - # The device ID. + # # The device ID. attr_accessor :device - # The location ID of the test run. + # # The location ID of the test run. attr_accessor :location - # The public ID of the Synthetics test. + # # The public ID of the Synthetics test. attr_accessor :public_id - # ID of the result. + # # ID of the result. attr_accessor :result_id # Attribute mapping from ruby-style variable name to JSON key. 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 d8cf7e2d624..f88c35f4f50 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 @@ -23,16 +23,16 @@ class SyntheticsTriggerCITestsResponse # @!visibility private attr_accessor :_unparsed - # The public ID of the batch triggered. + # # The public ID of the batch triggered. attr_accessor :batch_id - # List of Synthetics locations. + # # List of Synthetics locations. attr_accessor :locations - # Information about the tests runs. + # # Information about the tests runs. attr_accessor :results - # The public IDs of the Synthetics test triggered. + # # The public IDs of the Synthetics test triggered. attr_accessor :triggered_check_ids # Attribute mapping from ruby-style variable name to JSON key. 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 c4abf3070a4..b10b16a33ef 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb @@ -23,10 +23,10 @@ class SyntheticsTriggerTest # @!visibility private attr_accessor :_unparsed - # Metadata for the Synthetics tests run. + # # Metadata for the Synthetics tests run. attr_accessor :metadata - # The public ID of the Synthetics test to trigger. + # # The public ID of the Synthetics test to trigger. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 7e7bde69d4d..e8af76ba3bd 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 @@ -23,7 +23,7 @@ class SyntheticsUpdateTestPauseStatusPayload # @!visibility private attr_accessor :_unparsed - # Define whether you want to start (`live`) or pause (`paused`) a + # # Define whether you want to start (`live`) or pause (`paused`) a # Synthetic test. attr_accessor :new_status 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 9388700146f..869af9e6f04 100644 --- a/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb +++ b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb @@ -23,10 +23,10 @@ class SyntheticsVariableParser # @!visibility private attr_accessor :_unparsed - # Type of parser for a Synthetics global variable from a synthetics test. + # # Type of parser for a Synthetics global variable from a synthetics test. attr_accessor :type - # Regex or JSON path used for the parser. Not used with type `raw`. + # # Regex or JSON path used for the parser. Not used with type `raw`. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 aa20fed364d..838d6e9fb92 100644 --- a/lib/datadog_api_client/v1/models/table_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/table_widget_definition.rb @@ -23,28 +23,28 @@ class TableWidgetDefinition # @!visibility private attr_accessor :_unparsed - # List of custom links. + # # List of custom links. attr_accessor :custom_links - # Controls the display of the search bar. + # # Controls the display of the search bar. attr_accessor :has_search_bar - # Widget definition. + # # Widget definition. attr_accessor :requests - # Time setting for the widget. + # # Time setting for the widget. attr_accessor :time - # Title of your widget. + # # Title of your widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the table widget. + # # Type of the table widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 814ccb537fd..8b87893320e 100644 --- a/lib/datadog_api_client/v1/models/table_widget_request.rb +++ b/lib/datadog_api_client/v1/models/table_widget_request.rb @@ -23,61 +23,61 @@ class TableWidgetRequest # @!visibility private attr_accessor :_unparsed - # Aggregator used for the request. + # # Aggregator used for the request. attr_accessor :aggregator - # The column name (defaults to the metric name). + # # The column name (defaults to the metric name). attr_accessor :_alias - # The log query. + # # The log query. attr_accessor :apm_query - # The APM stats query for table and distributions widgets. + # # The APM stats query for table and distributions widgets. attr_accessor :apm_stats_query - # A list of display modes for each table cell. + # # A list of display modes for each table cell. attr_accessor :cell_display_mode - # List of conditional formats. + # # List of conditional formats. attr_accessor :conditional_formats - # The log query. + # # The log query. attr_accessor :event_query - # List of formulas that operate on queries. **This feature is currently in beta.** + # # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas - # For metric queries, the number of lines to show in the table. Only one request should have this property. + # # For metric queries, the number of lines to show in the table. Only one request should have this property. attr_accessor :limit - # The log query. + # # The log query. attr_accessor :log_query - # The log query. + # # The log query. attr_accessor :network_query - # Widget sorting methods. + # # Widget sorting methods. attr_accessor :order - # The process query to use in the widget. + # # The process query to use in the widget. attr_accessor :process_query - # The log query. + # # The log query. attr_accessor :profile_metrics_query - # Query definition. + # # Query definition. attr_accessor :q - # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** + # # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries - # Timeseries or Scalar response. **This feature is currently in beta.** + # # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format - # The log query. + # # The log query. attr_accessor :rum_query - # The log query. + # # The log query. attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. 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 44ee2a575fd..63e3844803f 100644 --- a/lib/datadog_api_client/v1/models/tag_to_hosts.rb +++ b/lib/datadog_api_client/v1/models/tag_to_hosts.rb @@ -23,7 +23,7 @@ class TagToHosts # @!visibility private attr_accessor :_unparsed - # A list of tags to apply to the host. + # # A list of tags to apply to the host. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 c543c3bf6a2..d63a5496665 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb @@ -23,49 +23,49 @@ class TimeseriesWidgetDefinition # @!visibility private attr_accessor :_unparsed - # List of custom links. + # # List of custom links. attr_accessor :custom_links - # List of widget events. + # # List of widget events. attr_accessor :events - # Columns displayed in the legend. + # # Columns displayed in the legend. attr_accessor :legend_columns - # Layout of the legend. + # # Layout of the legend. attr_accessor :legend_layout - # Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto". + # # Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto". attr_accessor :legend_size - # List of markers. + # # List of markers. attr_accessor :markers - # List of timeseries widget requests. + # # List of timeseries widget requests. attr_accessor :requests - # Axis controls for the widget. + # # Axis controls for the widget. attr_accessor :right_yaxis - # (screenboard only) Show the legend for this widget. + # # (screenboard only) Show the legend for this widget. attr_accessor :show_legend - # Time setting for the widget. + # # Time setting for the widget. attr_accessor :time - # Title of your widget. + # # Title of your widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the timeseries widget. + # # Type of the timeseries widget. attr_accessor :type - # Axis controls for the widget. + # # Axis controls for the widget. attr_accessor :yaxis # Attribute mapping from ruby-style variable name to JSON key. 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 0e4f3f8a0ac..79523544eeb 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 @@ -23,10 +23,10 @@ class TimeseriesWidgetExpressionAlias # @!visibility private attr_accessor :_unparsed - # Expression alias. + # # Expression alias. attr_accessor :alias_name - # Expression name. + # # Expression name. attr_accessor :expression # Attribute mapping from ruby-style variable name to JSON key. 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 7864f98a527..ec781c8e01a 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb @@ -23,55 +23,55 @@ class TimeseriesWidgetRequest # @!visibility private attr_accessor :_unparsed - # The log query. + # # The log query. attr_accessor :apm_query - # The log query. + # # The log query. attr_accessor :audit_query - # Type of display to use for the request. + # # Type of display to use for the request. attr_accessor :display_type - # The log query. + # # The log query. attr_accessor :event_query - # List of formulas that operate on queries. **This feature is currently in beta.** + # # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas - # The log query. + # # The log query. attr_accessor :log_query - # Used to define expression aliases. + # # Used to define expression aliases. attr_accessor :metadata - # The log query. + # # The log query. attr_accessor :network_query - # Whether or not to display a second y-axis on the right. + # # Whether or not to display a second y-axis on the right. attr_accessor :on_right_yaxis - # The process query to use in the widget. + # # The process query to use in the widget. attr_accessor :process_query - # The log query. + # # The log query. attr_accessor :profile_metrics_query - # Widget query. + # # Widget query. attr_accessor :q - # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** + # # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries - # Timeseries or Scalar response. **This feature is currently in beta.** + # # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format - # The log query. + # # The log query. attr_accessor :rum_query - # The log query. + # # The log query. attr_accessor :security_query - # Define request widget style. + # # Define request widget style. attr_accessor :style # Attribute mapping from ruby-style variable name to JSON key. 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 4088a58b8b8..36ed70d716c 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_definition.rb @@ -23,25 +23,25 @@ class ToplistWidgetDefinition # @!visibility private attr_accessor :_unparsed - # List of custom links. + # # List of custom links. attr_accessor :custom_links - # List of top list widget requests. + # # List of top list widget requests. attr_accessor :requests - # Time setting for the widget. + # # Time setting for the widget. attr_accessor :time - # Title of your widget. + # # Title of your widget. attr_accessor :title - # How to align the text on the widget. + # # How to align the text on the widget. attr_accessor :title_align - # Size of the title. + # # Size of the title. attr_accessor :title_size - # Type of the top list widget. + # # Type of the top list widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3a6c2d4cb5d..3519b27f6ea 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_request.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_request.rb @@ -23,49 +23,49 @@ class ToplistWidgetRequest # @!visibility private attr_accessor :_unparsed - # The log query. + # # The log query. attr_accessor :apm_query - # The log query. + # # The log query. attr_accessor :audit_query - # List of conditional formats. + # # List of conditional formats. attr_accessor :conditional_formats - # The log query. + # # The log query. attr_accessor :event_query - # List of formulas that operate on queries. **This feature is currently in beta.** + # # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas - # The log query. + # # The log query. attr_accessor :log_query - # The log query. + # # The log query. attr_accessor :network_query - # The process query to use in the widget. + # # The process query to use in the widget. attr_accessor :process_query - # The log query. + # # The log query. attr_accessor :profile_metrics_query - # Widget query. + # # Widget query. attr_accessor :q - # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** + # # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries - # Timeseries or Scalar response. **This feature is currently in beta.** + # # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format - # The log query. + # # The log query. attr_accessor :rum_query - # The log query. + # # The log query. attr_accessor :security_query - # Define request widget style. + # # Define request widget style. attr_accessor :style # Attribute mapping from ruby-style variable name to JSON key. 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 056121c22ec..7c3d4f015ae 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 @@ -23,22 +23,22 @@ class TreeMapWidgetDefinition # @!visibility private attr_accessor :_unparsed - # The attribute used to determine color in the widget. + # # The attribute used to determine color in the widget. attr_accessor :color_by - # The attribute used to group elements in the widget. + # # The attribute used to group elements in the widget. attr_accessor :group_by - # List of top list widget requests. + # # List of top list widget requests. attr_accessor :requests - # The attribute used to determine size in the widget. + # # The attribute used to determine size in the widget. attr_accessor :size_by - # Title of your widget. + # # Title of your widget. attr_accessor :title - # Type of the treemap widget. + # # Type of the treemap widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 9c9c28f3db0..edce4176b4c 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 @@ -23,16 +23,16 @@ class TreeMapWidgetRequest # @!visibility private attr_accessor :_unparsed - # List of formulas that operate on queries. **This feature is currently in beta.** + # # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas - # The widget metrics query. + # # The widget metrics query. attr_accessor :q - # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** + # # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries - # Timeseries or Scalar response. **This feature is currently in beta.** + # # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format # Attribute mapping from ruby-style variable name to JSON key. 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 afd64929df3..93aed463736 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 @@ -23,16 +23,16 @@ class UsageAnalyzedLogsHour # @!visibility private attr_accessor :_unparsed - # Contains the number of analyzed logs. + # # Contains the number of analyzed logs. attr_accessor :analyzed_logs - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # The organization name. + # # The organization name. attr_accessor :org_name - # The organization public ID. + # # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 877aefc4b38..a2d8d40b98a 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 @@ -23,7 +23,7 @@ class UsageAnalyzedLogsResponse # @!visibility private attr_accessor :_unparsed - # Get hourly usage for analyzed logs. + # # Get hourly usage for analyzed logs. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 f21b0b8ab6b..fabc7e6f54c 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 @@ -23,13 +23,13 @@ class UsageAttributionAggregatesBody # @!visibility private attr_accessor :_unparsed - # The aggregate type. + # # The aggregate type. attr_accessor :agg_type - # The field. + # # The field. attr_accessor :field - # The value for a given field. + # # The value for a given field. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/usage_attribution_body.rb b/lib/datadog_api_client/v1/models/usage_attribution_body.rb index f14d8b4712b..0a76a52d1b4 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_body.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_body.rb @@ -23,25 +23,25 @@ class UsageAttributionBody # @!visibility private attr_accessor :_unparsed - # Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM]. + # # Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM]. attr_accessor :month - # The name of the organization. + # # The name of the organization. attr_accessor :org_name - # The organization public ID. + # # The organization public ID. attr_accessor :public_id - # The source of the usage attribution tag configuration and the selected tags in the format `:--`. + # # The source of the usage attribution tag configuration and the selected tags in the format `:--`. attr_accessor :tag_config_source - # Usage Summary by tag name. + # # Usage Summary by tag name. attr_accessor :tags - # Shows the the most recent hour in the current months for all organizations for which all usages were calculated. + # # Shows the the most recent hour in the current months for all organizations for which all usages were calculated. attr_accessor :updated_at - # Fields in Usage Summary by tag(s). + # # Fields in Usage Summary by tag(s). attr_accessor :values # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb b/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb index 1709789b759..0a60700d384 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb @@ -23,10 +23,10 @@ class UsageAttributionMetadata # @!visibility private attr_accessor :_unparsed - # An array of available aggregates. + # # An array of available aggregates. attr_accessor :aggregates - # The metadata for the current pagination. + # # The metadata for the current pagination. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb b/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb index b9c7ea5a78f..9a73cbe9934 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb @@ -23,19 +23,19 @@ class UsageAttributionPagination # @!visibility private attr_accessor :_unparsed - # Maximum amount of records to be returned. + # # Maximum amount of records to be returned. attr_accessor :limit - # Records to be skipped before beginning to return. + # # Records to be skipped before beginning to return. attr_accessor :offset - # Direction to sort by. + # # Direction to sort by. attr_accessor :sort_direction - # Field to sort by. + # # Field to sort by. attr_accessor :sort_name - # Total number of records. + # # Total number of records. attr_accessor :total_number_of_records # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/usage_attribution_response.rb b/lib/datadog_api_client/v1/models/usage_attribution_response.rb index dd1b98cd425..6233a292540 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_response.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_response.rb @@ -23,10 +23,10 @@ class UsageAttributionResponse # @!visibility private attr_accessor :_unparsed - # The object containing document metadata. + # # The object containing document metadata. attr_accessor :metadata - # Get Usage Summary by tag(s). + # # Get Usage Summary by tag(s). attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/usage_attribution_values.rb b/lib/datadog_api_client/v1/models/usage_attribution_values.rb index 01602493577..7ff411c2a86 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_values.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_values.rb @@ -23,128 +23,128 @@ class UsageAttributionValues # @!visibility private attr_accessor :_unparsed - # The percentage of synthetic API test usage by tag(s). + # # The percentage of synthetic API test usage by tag(s). attr_accessor :api_percentage - # The synthetic API test usage by tag(s). + # # The synthetic API test usage by tag(s). attr_accessor :api_usage - # The percentage of APM host usage by tag(s). + # # The percentage of APM host usage by tag(s). attr_accessor :apm_host_percentage - # The APM host usage by tag(s). + # # The APM host usage by tag(s). attr_accessor :apm_host_usage - # The percentage of synthetic browser test usage by tag(s). + # # The percentage of synthetic browser test usage by tag(s). attr_accessor :browser_percentage - # The synthetic browser test usage by tag(s). + # # The synthetic browser test usage by tag(s). attr_accessor :browser_usage - # The percentage of container usage by tag(s). + # # The percentage of container usage by tag(s). attr_accessor :container_percentage - # The container usage by tag(s). + # # The container usage by tag(s). attr_accessor :container_usage - # The percentage of Cloud Security Posture Management container usage by tag(s) + # # The percentage of Cloud Security Posture Management container usage by tag(s) attr_accessor :cspm_container_percentage - # The Cloud Security Posture Management container usage by tag(s) + # # The Cloud Security Posture Management container usage by tag(s) attr_accessor :cspm_container_usage - # The percentage of Cloud Security Posture Management host usage by tag(s) + # # The percentage of Cloud Security Posture Management host usage by tag(s) attr_accessor :cspm_host_percentage - # The Cloud Security Posture Management host usage by tag(s) + # # The Cloud Security Posture Management host usage by tag(s) attr_accessor :cspm_host_usage - # The percentage of custom metrics usage by tag(s). + # # The percentage of custom metrics usage by tag(s). attr_accessor :custom_timeseries_percentage - # The custom metrics usage by tag(s). + # # The custom metrics usage by tag(s). attr_accessor :custom_timeseries_usage - # The percentage of Cloud Workload Security container usage by tag(s) + # # The percentage of Cloud Workload Security container usage by tag(s) attr_accessor :cws_container_percentage - # The Cloud Workload Security container usage by tag(s) + # # The Cloud Workload Security container usage by tag(s) attr_accessor :cws_container_usage - # The percentage of Cloud Workload Security host usage by tag(s) + # # The percentage of Cloud Workload Security host usage by tag(s) attr_accessor :cws_host_percentage - # The Cloud Workload Security host usage by tag(s) + # # The Cloud Workload Security host usage by tag(s) attr_accessor :cws_host_usage - # The percentage of Database Monitoring host usage by tag(s). + # # The percentage of Database Monitoring host usage by tag(s). attr_accessor :dbm_hosts_percentage - # The Database Monitoring host usage by tag(s). + # # The Database Monitoring host usage by tag(s). attr_accessor :dbm_hosts_usage - # The percentage of Database Monitoring normalized queries usage by tag(s). + # # The percentage of Database Monitoring normalized queries usage by tag(s). attr_accessor :dbm_queries_percentage - # The Database Monitoring normalized queries usage by tag(s). + # # The Database Monitoring normalized queries usage by tag(s). attr_accessor :dbm_queries_usage - # The percentage of estimated live indexed logs usage by tag(s). Note this field is in private beta. + # # The percentage of estimated live indexed logs usage by tag(s). Note this field is in private beta. attr_accessor :estimated_indexed_logs_percentage - # The estimated live indexed logs usage by tag(s). Note this field is in private beta. + # # The estimated live indexed logs usage by tag(s). Note this field is in private beta. attr_accessor :estimated_indexed_logs_usage - # The percentage of infrastructure host usage by tag(s). + # # The percentage of infrastructure host usage by tag(s). attr_accessor :infra_host_percentage - # The infrastructure host usage by tag(s). + # # The infrastructure host usage by tag(s). attr_accessor :infra_host_usage - # The percentage of Lambda function usage by tag(s). + # # The percentage of Lambda function usage by tag(s). attr_accessor :lambda_functions_percentage - # The Lambda function usage by tag(s). + # # The Lambda function usage by tag(s). attr_accessor :lambda_functions_usage - # The percentage of Lambda invocation usage by tag(s). + # # The percentage of Lambda invocation usage by tag(s). attr_accessor :lambda_invocations_percentage - # The Lambda invocation usage by tag(s). + # # The Lambda invocation usage by tag(s). attr_accessor :lambda_invocations_usage - # The percentage of Lambda function usage by tag(s). - # + # # The percentage of Lambda function usage by tag(s). + # # **Note** this field is deprecated. Use lambda_functions_percentage instead. attr_accessor :lambda_percentage - # The Lambda function usage by tag(s). - # + # # The Lambda function usage by tag(s). + # # **Note** this field is deprecated. Use lambda_functions_usage instead. attr_accessor :lambda_usage - # The percentage of network host usage by tag(s). + # # The percentage of network host usage by tag(s). attr_accessor :npm_host_percentage - # The network host usage by tag(s). + # # The network host usage by tag(s). attr_accessor :npm_host_usage - # The percentage of profiled containers usage by tag(s). + # # The percentage of profiled containers usage by tag(s). attr_accessor :profiled_container_percentage - # The profiled container usage by tag(s). + # # The profiled container usage by tag(s). attr_accessor :profiled_container_usage - # The percentage of profiled hosts usage by tag(s). + # # The percentage of profiled hosts usage by tag(s). attr_accessor :profiled_hosts_percentage - # The profiled host usage by tag(s). + # # The profiled host usage by tag(s). attr_accessor :profiled_hosts_usage - # The percentage of network device usage by tag(s). + # # The percentage of network device usage by tag(s). attr_accessor :snmp_percentage - # The network device usage by tag(s). + # # The network device usage by tag(s). attr_accessor :snmp_usage # Attribute mapping from ruby-style variable name to JSON key. 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 ab827c169ed..5b1e4d2ad36 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 @@ -23,16 +23,16 @@ class UsageAuditLogsHour # @!visibility private attr_accessor :_unparsed - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # The total number of audit logs lines indexed during a given hour. + # # The total number of audit logs lines indexed during a given hour. attr_accessor :lines_indexed - # The organization name. + # # The organization name. attr_accessor :org_name - # The organization public ID. + # # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 e94a5fb777d..73f6d8127cd 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 @@ -23,7 +23,7 @@ class UsageAuditLogsResponse # @!visibility private attr_accessor :_unparsed - # Get hourly usage for audit logs. + # # Get hourly usage for audit logs. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 dd72d60d558..0fcb9342a04 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 @@ -23,25 +23,25 @@ class UsageBillableSummaryBody # @!visibility private attr_accessor :_unparsed - # The total account usage. + # # The total account usage. attr_accessor :account_billable_usage - # Elapsed usage hours for some billable product. + # # Elapsed usage hours for some billable product. attr_accessor :elapsed_usage_hours - # The first billable hour for the org. + # # The first billable hour for the org. attr_accessor :first_billable_usage_hour - # The last billable hour for the org. + # # The last billable hour for the org. attr_accessor :last_billable_usage_hour - # The number of units used within the billable timeframe. + # # The number of units used within the billable timeframe. attr_accessor :org_billable_usage - # The percentage of account usage the org represents. + # # The percentage of account usage the org represents. attr_accessor :percentage_in_account - # Units pertaining to the usage. + # # Units pertaining to the usage. attr_accessor :usage_unit # Attribute mapping from ruby-style variable name to JSON key. 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 f9e4bcf159b..12c5aea7020 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 @@ -23,28 +23,28 @@ class UsageBillableSummaryHour # @!visibility private attr_accessor :_unparsed - # The billing plan. + # # The billing plan. attr_accessor :billing_plan - # Shows the last date of usage. + # # Shows the last date of usage. attr_accessor :end_date - # The number of organizations. + # # The number of organizations. attr_accessor :num_orgs - # The organization name. + # # The organization name. attr_accessor :org_name - # The organization public ID. + # # The organization public ID. attr_accessor :public_id - # Shows usage aggregation for a billing period. + # # Shows usage aggregation for a billing period. attr_accessor :ratio_in_month - # Shows the first date of usage. + # # Shows the first date of usage. attr_accessor :start_date - # Response with aggregated usage types. + # # Response with aggregated usage types. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 3c8e4c7daef..7635a262f0a 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 @@ -23,100 +23,100 @@ class UsageBillableSummaryKeys # @!visibility private attr_accessor :_unparsed - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :apm_host_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :apm_host_top99p - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :apm_trace_search_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :fargate_container_average - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :infra_container_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :infra_host_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :infra_host_top99p - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :iot_top99p - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :lambda_function_average - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_15day_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_180day_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_30day_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_3day_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_45day_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_60day_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_7day_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_90day_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_custom_retention_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :logs_ingested_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :network_device_top99p - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :npm_flow_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :npm_host_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :npm_host_top99p - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :prof_container_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :prof_host_top99p - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :rum_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :serverless_invocation_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :siem_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :synthetics_api_tests_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :synthetics_browser_checks_sum - # Response with properties for each aggregated usage type. + # # Response with properties for each aggregated usage type. attr_accessor :timeseries_average # Attribute mapping from ruby-style variable name to JSON key. 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 3eb396e31a9..17c45612889 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 @@ -23,7 +23,7 @@ class UsageBillableSummaryResponse # @!visibility private attr_accessor :_unparsed - # An array of objects regarding usage of billable summary. + # # An array of objects regarding usage of billable summary. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 4aacdcb2a92..cf097f0d67f 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 @@ -23,28 +23,28 @@ class UsageCloudSecurityPostureManagementHour # @!visibility private attr_accessor :_unparsed - # The number of Cloud Security Posture Management Azure app services hosts during a given hour. + # # The number of Cloud Security Posture Management Azure app services hosts during a given hour. attr_accessor :aas_host_count - # The number of Cloud Security Posture Management Azure hosts during a given hour. + # # The number of Cloud Security Posture Management Azure hosts during a given hour. attr_accessor :azure_host_count - # The number of Cloud Security Posture Management hosts during a given hour. + # # The number of Cloud Security Posture Management hosts during a given hour. attr_accessor :compliance_host_count - # The total number of Cloud Security Posture Management containers during a given hour. + # # The total number of Cloud Security Posture Management containers during a given hour. attr_accessor :container_count - # The total number of Cloud Security Posture Management hosts during a given hour. + # # The total number of Cloud Security Posture Management hosts during a given hour. attr_accessor :host_count - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # The organization name. + # # The organization name. attr_accessor :org_name - # The organization public ID. + # # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 8993ce5734b..5cd25fe1d8a 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 @@ -23,7 +23,7 @@ class UsageCloudSecurityPostureManagementResponse # @!visibility private attr_accessor :_unparsed - # Get hourly usage for Cloud Security Posture Management. + # # Get hourly usage for Cloud Security Posture Management. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 9ddde5ec22a..351cc4b7733 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 @@ -23,19 +23,19 @@ class UsageCustomReportsAttributes # @!visibility private attr_accessor :_unparsed - # The date the specified custom report was computed. + # # The date the specified custom report was computed. attr_accessor :computed_on - # The ending date of custom report. + # # The ending date of custom report. attr_accessor :end_date - # size + # # size attr_accessor :size - # The starting date of custom report. + # # The starting date of custom report. attr_accessor :start_date - # A list of tags to apply to custom reports. + # # A list of tags to apply to custom reports. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 55cb14045f7..2e6338858a2 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 @@ -23,13 +23,13 @@ class UsageCustomReportsData # @!visibility private attr_accessor :_unparsed - # The response containing attributes for custom reports. + # # The response containing attributes for custom reports. attr_accessor :attributes - # The date for specified custom reports. + # # The date for specified custom reports. attr_accessor :id - # The type of reports. + # # The type of reports. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 6a4ea21553e..c5fc81c33d1 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 @@ -23,7 +23,7 @@ class UsageCustomReportsMeta # @!visibility private attr_accessor :_unparsed - # The object containing page total count. + # # The object containing page total count. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. 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 194f2a49c85..e4497cc0c78 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 @@ -23,7 +23,7 @@ class UsageCustomReportsPage # @!visibility private attr_accessor :_unparsed - # Total page count. + # # Total page count. attr_accessor :total_count # Attribute mapping from ruby-style variable name to JSON key. 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 35e9005d483..5604339523d 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 @@ -23,10 +23,10 @@ class UsageCustomReportsResponse # @!visibility private attr_accessor :_unparsed - # An array of available custom reports. + # # An array of available custom reports. attr_accessor :data - # The object containing document metadata. + # # The object containing document metadata. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 e94b9cf3c90..0160e19b37c 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_hour.rb @@ -23,19 +23,19 @@ class UsageCWSHour # @!visibility private attr_accessor :_unparsed - # The total number of Cloud Workload Security container hours from the start of the given hour’s month until the given hour. + # # The total number of Cloud Workload Security container hours from the start of the given hour’s month until the given hour. attr_accessor :cws_container_count - # The total number of Cloud Workload Security host hours from the start of the given hour’s month until the given hour. + # # The total number of Cloud Workload Security host hours from the start of the given hour’s month until the given hour. attr_accessor :cws_host_count - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # The organization name. + # # The organization name. attr_accessor :org_name - # The organization public ID. + # # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 756c9f38163..40f876737a1 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_response.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_response.rb @@ -23,7 +23,7 @@ class UsageCWSResponse # @!visibility private attr_accessor :_unparsed - # Get hourly usage for Cloud Workload Security. + # # Get hourly usage for Cloud Workload Security. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 9aa16ca155a..b7771f7bcdc 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_hour.rb @@ -23,19 +23,19 @@ class UsageDBMHour # @!visibility private attr_accessor :_unparsed - # The total number of Database Monitoring host hours from the start of the given hour’s month until the given hour. + # # The total number of Database Monitoring host hours from the start of the given hour’s month until the given hour. attr_accessor :dbm_host_count - # The total number of normalized Database Monitoring queries from the start of the given hour’s month until the given hour. + # # The total number of normalized Database Monitoring queries from the start of the given hour’s month until the given hour. attr_accessor :dbm_queries_count - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # The organization name. + # # The organization name. attr_accessor :org_name - # The organization public ID. + # # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 2d93586b1d3..d31a7871aa9 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_response.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_response.rb @@ -23,7 +23,7 @@ class UsageDBMResponse # @!visibility private attr_accessor :_unparsed - # Get hourly usage for Database Monitoring + # # Get hourly usage for Database Monitoring attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 a23a11ce3da..fed42cf3101 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_hour.rb @@ -23,19 +23,19 @@ class UsageFargateHour # @!visibility private attr_accessor :_unparsed - # The average profiled task count for Fargate Profiling. + # # The average profiled task count for Fargate Profiling. attr_accessor :avg_profiled_fargate_tasks - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # The organization name. + # # The organization name. attr_accessor :org_name - # The organization public ID. + # # The organization public ID. attr_accessor :public_id - # The number of Fargate tasks run. + # # The number of Fargate tasks run. attr_accessor :tasks_count # Attribute mapping from ruby-style variable name to JSON key. 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 03c71d58655..c2db6d8f4d8 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_response.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_response.rb @@ -23,7 +23,7 @@ class UsageFargateResponse # @!visibility private attr_accessor :_unparsed - # Array with the number of hourly Fargate tasks recorded for a given organization. + # # Array with the number of hourly Fargate tasks recorded for a given organization. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 e7f624974f8..4e9b83b3ec3 100644 --- a/lib/datadog_api_client/v1/models/usage_host_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_host_hour.rb @@ -23,54 +23,54 @@ class UsageHostHour # @!visibility private attr_accessor :_unparsed - # Contains the total number of infrastructure hosts reporting + # # Contains the total number of infrastructure hosts reporting # during a given hour that were running the Datadog Agent. attr_accessor :agent_host_count - # Contains the total number of hosts that reported through Alibaba integration + # # Contains the total number of hosts that reported through Alibaba integration # (and were NOT running the Datadog Agent). attr_accessor :alibaba_host_count - # Contains the total number of Azure App Services hosts using APM. + # # Contains the total number of Azure App Services hosts using APM. attr_accessor :apm_azure_app_service_host_count - # Shows the total number of hosts using APM during the hour, + # # Shows the total number of hosts using APM during the hour, # these are counted as billable (except during trial periods). attr_accessor :apm_host_count - # Contains the total number of hosts that reported through the AWS integration + # # Contains the total number of hosts that reported through the AWS integration # (and were NOT running the Datadog Agent). attr_accessor :aws_host_count - # Contains the total number of hosts that reported through Azure integration + # # Contains the total number of hosts that reported through Azure integration # (and were NOT running the Datadog Agent). attr_accessor :azure_host_count - # Shows the total number of containers reported by the Docker integration during the hour. + # # Shows the total number of containers reported by the Docker integration during the hour. attr_accessor :container_count - # Contains the total number of hosts that reported through the Google Cloud integration + # # Contains the total number of hosts that reported through the Google Cloud integration # (and were NOT running the Datadog Agent). attr_accessor :gcp_host_count - # Contains the total number of Heroku dynos reported by the Datadog Agent. + # # Contains the total number of Heroku dynos reported by the Datadog Agent. attr_accessor :heroku_host_count - # Contains the total number of billable infrastructure hosts reporting during a given hour. + # # Contains the total number of billable infrastructure hosts reporting during a given hour. # This is the sum of `agent_host_count`, `aws_host_count`, and `gcp_host_count`. attr_accessor :host_count - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # Contains the total number of hosts that reported through the Azure App Services integration + # # Contains the total number of hosts that reported through the Azure App Services integration # (and were NOT running the Datadog Agent). attr_accessor :infra_azure_app_service - # Contains the total number of hosts reported by Datadog exporter for the OpenTelemetry Collector. + # # Contains the total number of hosts reported by Datadog exporter for the OpenTelemetry Collector. attr_accessor :opentelemetry_host_count - # Contains the total number of hosts that reported through vSphere integration + # # Contains the total number of hosts that reported through vSphere integration # (and were NOT running the Datadog Agent). attr_accessor :vsphere_host_count 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 739a6860484..0398e86eadc 100644 --- a/lib/datadog_api_client/v1/models/usage_hosts_response.rb +++ b/lib/datadog_api_client/v1/models/usage_hosts_response.rb @@ -23,7 +23,7 @@ class UsageHostsResponse # @!visibility private attr_accessor :_unparsed - # An array of objects related to host usage. + # # An array of objects related to host usage. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 78e34952df8..998b7df0d28 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 @@ -23,16 +23,16 @@ class UsageIncidentManagementHour # @!visibility private attr_accessor :_unparsed - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # Contains the total number monthly active users from the start of the given hour's month until the given hour. + # # Contains the total number monthly active users from the start of the given hour's month until the given hour. attr_accessor :monthly_active_users - # The organization name. + # # The organization name. attr_accessor :org_name - # The organization public ID. + # # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 7a9847f2b6a..7435202b6c5 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 @@ -23,7 +23,7 @@ class UsageIncidentManagementResponse # @!visibility private attr_accessor :_unparsed - # Get hourly usage for incident management. + # # Get hourly usage for incident management. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 b8d5106e7a9..ce06fb5cac6 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 @@ -23,16 +23,16 @@ class UsageIndexedSpansHour # @!visibility private attr_accessor :_unparsed - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # Contains the number of spans indexed. + # # Contains the number of spans indexed. attr_accessor :indexed_events_count - # The organization name. + # # The organization name. attr_accessor :org_name - # The organization public ID. + # # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 6c24f6ed0e0..7c04566339a 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 @@ -23,7 +23,7 @@ class UsageIndexedSpansResponse # @!visibility private attr_accessor :_unparsed - # Array with the number of hourly traces indexed for a given organization. + # # Array with the number of hourly traces indexed for a given organization. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 c368578a6f4..15f5bd09227 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 @@ -23,16 +23,16 @@ class UsageIngestedSpansHour # @!visibility private attr_accessor :_unparsed - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # Contains the total number of bytes ingested during a given hour. + # # Contains the total number of bytes ingested during a given hour. attr_accessor :ingested_events_bytes - # The organization name. + # # The organization name. attr_accessor :org_name - # The organization public ID. + # # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 8b31a45cbef..e548e0a6467 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 @@ -23,7 +23,7 @@ class UsageIngestedSpansResponse # @!visibility private attr_accessor :_unparsed - # Get hourly usage for ingested spans. + # # Get hourly usage for ingested spans. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/usage_io_t_hour.rb b/lib/datadog_api_client/v1/models/usage_io_t_hour.rb index 87831e6523c..5d2ef1ddef4 100644 --- a/lib/datadog_api_client/v1/models/usage_io_t_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_io_t_hour.rb @@ -23,16 +23,16 @@ class UsageIoTHour # @!visibility private attr_accessor :_unparsed - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # The total number of IoT devices during a given hour. + # # The total number of IoT devices during a given hour. attr_accessor :iot_device_count - # The organization name. + # # The organization name. attr_accessor :org_name - # The organization public ID. + # # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/usage_io_t_response.rb b/lib/datadog_api_client/v1/models/usage_io_t_response.rb index d98e022a5f8..2a91e46b4c7 100644 --- a/lib/datadog_api_client/v1/models/usage_io_t_response.rb +++ b/lib/datadog_api_client/v1/models/usage_io_t_response.rb @@ -23,7 +23,7 @@ class UsageIoTResponse # @!visibility private attr_accessor :_unparsed - # Get hourly usage for IoT. + # # Get hourly usage for IoT. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 6995cd39127..c3b95d86e77 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_hour.rb @@ -24,13 +24,13 @@ class UsageLambdaHour # @!visibility private attr_accessor :_unparsed - # Contains the number of different functions for each region and AWS account. + # # Contains the number of different functions for each region and AWS account. attr_accessor :func_count - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # Contains the sum of invocations of all functions. + # # Contains the sum of invocations of all functions. attr_accessor :invocations_sum # Attribute mapping from ruby-style variable name to JSON key. 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 ffe45870c86..ed868f2de90 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_response.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_response.rb @@ -24,7 +24,7 @@ class UsageLambdaResponse # @!visibility private attr_accessor :_unparsed - # Get hourly usage for Lambda. + # # Get hourly usage for Lambda. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 c3a82b6ef98..31082145d4e 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 @@ -23,19 +23,19 @@ class UsageLogsByIndexHour # @!visibility private attr_accessor :_unparsed - # The total number of indexed logs for the queried hour. + # # The total number of indexed logs for the queried hour. attr_accessor :event_count - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # The index ID for this usage. + # # The index ID for this usage. attr_accessor :index_id - # The user specified name for this index ID. + # # The user specified name for this index ID. attr_accessor :index_name - # The retention period (in days) for this index ID. + # # The retention period (in days) for this index ID. attr_accessor :retention # Attribute mapping from ruby-style variable name to JSON key. 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 63fe10c85ea..39a71bc27e0 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 @@ -23,7 +23,7 @@ class UsageLogsByIndexResponse # @!visibility private attr_accessor :_unparsed - # An array of objects regarding hourly usage of logs by index response. + # # An array of objects regarding hourly usage of logs by index response. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 436e5a53269..5a4fecbd987 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 @@ -23,16 +23,16 @@ class UsageLogsByRetentionHour # @!visibility private attr_accessor :_unparsed - # Total logs indexed with this retention period during a given hour. + # # Total logs indexed with this retention period during a given hour. attr_accessor :indexed_events_count - # Live logs indexed with this retention period during a given hour. + # # Live logs indexed with this retention period during a given hour. attr_accessor :live_indexed_events_count - # Rehydrated logs indexed with this retention period during a given hour. + # # Rehydrated logs indexed with this retention period during a given hour. attr_accessor :rehydrated_indexed_events_count - # The retention period in days or "custom" for all custom retention usage. + # # The retention period in days or "custom" for all custom retention usage. attr_accessor :retention # Attribute mapping from ruby-style variable name to JSON key. 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 ccb5cce3bfc..d97b7f69df7 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 @@ -23,7 +23,7 @@ class UsageLogsByRetentionResponse # @!visibility private attr_accessor :_unparsed - # Get hourly usage for indexed logs by retention period. + # # Get hourly usage for indexed logs by retention period. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 a3c12792839..5bec74f0a65 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_hour.rb @@ -23,28 +23,28 @@ class UsageLogsHour # @!visibility private attr_accessor :_unparsed - # Contains the number of billable log bytes ingested. + # # Contains the number of billable log bytes ingested. attr_accessor :billable_ingested_bytes - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # Contains the number of log events indexed. + # # Contains the number of log events indexed. attr_accessor :indexed_events_count - # Contains the number of log bytes ingested. + # # Contains the number of log bytes ingested. attr_accessor :ingested_events_bytes - # Contains the number of live log events indexed (data available as of December 1, 2020). + # # Contains the number of live log events indexed (data available as of December 1, 2020). attr_accessor :logs_live_indexed_count - # Contains the number of live log bytes ingested (data available as of December 1, 2020). + # # Contains the number of live log bytes ingested (data available as of December 1, 2020). attr_accessor :logs_live_ingested_bytes - # Contains the number of rehydrated log events indexed (data available as of December 1, 2020). + # # Contains the number of rehydrated log events indexed (data available as of December 1, 2020). attr_accessor :logs_rehydrated_indexed_count - # Contains the number of rehydrated log bytes ingested (data available as of December 1, 2020). + # # Contains the number of rehydrated log bytes ingested (data available as of December 1, 2020). attr_accessor :logs_rehydrated_ingested_bytes # Attribute mapping from ruby-style variable name to JSON key. 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 5e39cf20959..a3bf9172672 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_response.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_response.rb @@ -23,7 +23,7 @@ class UsageLogsResponse # @!visibility private attr_accessor :_unparsed - # An array of objects regarding hourly usage of logs. + # # An array of objects regarding hourly usage of logs. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 4d526eac6d3..3d4feaa276d 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 @@ -23,10 +23,10 @@ class UsageNetworkFlowsHour # @!visibility private attr_accessor :_unparsed - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # Contains the number of netflow events indexed. + # # Contains the number of netflow events indexed. attr_accessor :indexed_events_count # Attribute mapping from ruby-style variable name to JSON key. 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 cc8b714b4b9..9f891cf08c3 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 @@ -23,7 +23,7 @@ class UsageNetworkFlowsResponse # @!visibility private attr_accessor :_unparsed - # Get hourly usage for Network Flows. + # # Get hourly usage for Network Flows. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 d96cf855a0a..5dd33195683 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 @@ -23,10 +23,10 @@ class UsageNetworkHostsHour # @!visibility private attr_accessor :_unparsed - # Contains the number of active NPM hosts. + # # Contains the number of active NPM hosts. attr_accessor :host_count - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour # Attribute mapping from ruby-style variable name to JSON key. 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 35681b4185c..53800caea27 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 @@ -23,7 +23,7 @@ class UsageNetworkHostsResponse # @!visibility private attr_accessor :_unparsed - # Get hourly usage for NPM hosts. + # # Get hourly usage for NPM hosts. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 2dbadb32478..79e9cdf8b63 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_hour.rb @@ -23,19 +23,19 @@ class UsageProfilingHour # @!visibility private attr_accessor :_unparsed - # Get average number of container agents for that hour. + # # Get average number of container agents for that hour. attr_accessor :avg_container_agent_count - # Contains the total number of profiled hosts reporting during a given hour. + # # Contains the total number of profiled hosts reporting during a given hour. attr_accessor :host_count - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # The organization name. + # # The organization name. attr_accessor :org_name - # The organization public ID. + # # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 6523755c74b..14d8c6d7095 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_response.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_response.rb @@ -23,7 +23,7 @@ class UsageProfilingResponse # @!visibility private attr_accessor :_unparsed - # Get hourly usage for profiled hosts. + # # Get hourly usage for profiled hosts. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 e1d1fb886d3..298e60df27b 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 @@ -23,25 +23,25 @@ class UsageRumSessionsHour # @!visibility private attr_accessor :_unparsed - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # The organization name. + # # The organization name. attr_accessor :org_name - # The organization public ID. + # # The organization public ID. attr_accessor :public_id - # Contains the number of RUM Replay Sessions (data available beginning November 1, 2021). + # # Contains the number of RUM Replay Sessions (data available beginning November 1, 2021). attr_accessor :replay_session_count - # Contains the number of browser RUM Lite Sessions. + # # Contains the number of browser RUM Lite Sessions. attr_accessor :session_count - # Contains the number of mobile RUM Sessions on Android (data available beginning December 1, 2020). + # # Contains the number of mobile RUM Sessions on Android (data available beginning December 1, 2020). attr_accessor :session_count_android - # Contains the number of mobile RUM Sessions on iOS (data available beginning December 1, 2020). + # # Contains the number of mobile RUM Sessions on iOS (data available beginning December 1, 2020). attr_accessor :session_count_ios # Attribute mapping from ruby-style variable name to JSON key. 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 5be8d0d0d14..3619f81f773 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 @@ -23,7 +23,7 @@ class UsageRumSessionsResponse # @!visibility private attr_accessor :_unparsed - # Get hourly usage for RUM Sessions. + # # Get hourly usage for RUM Sessions. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 71379a9ea1a..365803f7742 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 @@ -23,19 +23,19 @@ class UsageRumUnitsHour # @!visibility private attr_accessor :_unparsed - # The number of browser RUM units. + # # The number of browser RUM units. attr_accessor :browser_rum_units - # The number of mobile RUM units. + # # The number of mobile RUM units. attr_accessor :mobile_rum_units - # The organization name. + # # The organization name. attr_accessor :org_name - # The organization public ID. + # # The organization public ID. attr_accessor :public_id - # Total RUM units across mobile and browser RUM. + # # Total RUM units across mobile and browser RUM. attr_accessor :rum_units # Attribute mapping from ruby-style variable name to JSON key. 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 b84755eebe6..2a65f1bdcbe 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 @@ -23,7 +23,7 @@ class UsageRumUnitsResponse # @!visibility private attr_accessor :_unparsed - # Get hourly usage for RUM Units. + # # Get hourly usage for RUM Units. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 0ae692627cc..75b24f44fa7 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_hour.rb @@ -23,19 +23,19 @@ class UsageSDSHour # @!visibility private attr_accessor :_unparsed - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # The total number of bytes scanned of logs usage by the Sensitive Data Scanner from the start of the given hour’s month until the given hour. + # # The total number of bytes scanned of logs usage by the Sensitive Data Scanner from the start of the given hour’s month until the given hour. attr_accessor :logs_scanned_bytes - # The organization name. + # # The organization name. attr_accessor :org_name - # The organization public ID. + # # The organization public ID. attr_accessor :public_id - # 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. + # # 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 # Attribute mapping from ruby-style variable name to JSON key. 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 c249625c267..797e1818d43 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_response.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_response.rb @@ -23,7 +23,7 @@ class UsageSDSResponse # @!visibility private attr_accessor :_unparsed - # Get hourly usage for Sensitive Data Scanner. + # # Get hourly usage for Sensitive Data Scanner. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 c4a9678d8d9..2775e78b5a1 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_hour.rb @@ -23,16 +23,16 @@ class UsageSNMPHour # @!visibility private attr_accessor :_unparsed - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # The organization name. + # # The organization name. attr_accessor :org_name - # The organization public ID. + # # The organization public ID. attr_accessor :public_id - # Contains the number of SNMP devices. + # # Contains the number of SNMP devices. attr_accessor :snmp_devices # Attribute mapping from ruby-style variable name to JSON key. 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 b1f28e84d37..7fcc0c15d12 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_response.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_response.rb @@ -23,7 +23,7 @@ class UsageSNMPResponse # @!visibility private attr_accessor :_unparsed - # Get hourly usage for SNMP devices. + # # Get hourly usage for SNMP devices. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 27509c194fc..f63b7e1be5b 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 @@ -23,22 +23,22 @@ class UsageSpecifiedCustomReportsAttributes # @!visibility private attr_accessor :_unparsed - # The date the specified custom report was computed. + # # The date the specified custom report was computed. attr_accessor :computed_on - # The ending date of specified custom report. + # # The ending date of specified custom report. attr_accessor :end_date - # A downloadable file for the specified custom reporting file. + # # A downloadable file for the specified custom reporting file. attr_accessor :location - # size + # # size attr_accessor :size - # The starting date of specified custom report. + # # The starting date of specified custom report. attr_accessor :start_date - # A list of tags to apply to specified custom reports. + # # A list of tags to apply to specified custom reports. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 37e321ac9d7..18c6ad28ac1 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 @@ -23,13 +23,13 @@ class UsageSpecifiedCustomReportsData # @!visibility private attr_accessor :_unparsed - # The response containing attributes for specified custom reports. + # # The response containing attributes for specified custom reports. attr_accessor :attributes - # The date for specified custom reports. + # # The date for specified custom reports. attr_accessor :id - # The type of reports. + # # The type of reports. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 51305b278ac..e510067e580 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 @@ -23,7 +23,7 @@ class UsageSpecifiedCustomReportsMeta # @!visibility private attr_accessor :_unparsed - # The object containing page total count for specified ID. + # # The object containing page total count for specified ID. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. 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 ac36f1979da..d543a705367 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 @@ -23,7 +23,7 @@ class UsageSpecifiedCustomReportsPage # @!visibility private attr_accessor :_unparsed - # Total page count. + # # Total page count. attr_accessor :total_count # Attribute mapping from ruby-style variable name to JSON key. 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 44a2dffd1cf..cf371ed8d4c 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 @@ -23,10 +23,10 @@ class UsageSpecifiedCustomReportsResponse # @!visibility private attr_accessor :_unparsed - # Response containing date and type for specified custom reports. + # # Response containing date and type for specified custom reports. attr_accessor :data - # The object containing document metadata. + # # The object containing document metadata. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 bbc6bb1a36b..a5d0aa91ae0 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date.rb @@ -23,175 +23,175 @@ class UsageSummaryDate # @!visibility private attr_accessor :_unparsed - # Shows the 99th percentile of all agent hosts over all hours in the current date for all organizations. + # # Shows the 99th percentile of all agent hosts over all hours in the current date for all organizations. attr_accessor :agent_host_top99p - # Shows the 99th percentile of all Azure app services using APM over all hours in the current date all organizations. + # # Shows the 99th percentile of all Azure app services using APM over all hours in the current date all organizations. attr_accessor :apm_azure_app_service_host_top99p - # Shows the 99th percentile of all distinct APM hosts over all hours in the current date for all organizations. + # # Shows the 99th percentile of all distinct APM hosts over all hours in the current date for all organizations. attr_accessor :apm_host_top99p - # Shows the sum of audit logs lines indexed over all hours in the current date for all organizations. + # # Shows the sum of audit logs lines indexed over all hours in the current date for all organizations. attr_accessor :audit_logs_lines_indexed_sum - # The average profiled task count for Fargate Profiling. + # # The average profiled task count for Fargate Profiling. attr_accessor :avg_profiled_fargate_tasks - # Shows the 99th percentile of all AWS hosts over all hours in the current date for all organizations. + # # Shows the 99th percentile of all AWS hosts over all hours in the current date for all organizations. attr_accessor :aws_host_top99p - # Shows the average of the number of functions that executed 1 or more times each hour in the current date for all organizations. + # # Shows the average of the number of functions that executed 1 or more times each hour in the current date for all organizations. attr_accessor :aws_lambda_func_count - # Shows the sum of all AWS Lambda invocations over all hours in the current date for all organizations. + # # Shows the sum of all AWS Lambda invocations over all hours in the current date for all organizations. attr_accessor :aws_lambda_invocations_sum - # Shows the 99th percentile of all Azure app services over all hours in the current date for all organizations. + # # Shows the 99th percentile of all Azure app services over all hours in the current date for all organizations. attr_accessor :azure_app_service_top99p - # Shows the sum of all log bytes ingested over all hours in the current date for all organizations. + # # Shows the sum of all log bytes ingested over all hours in the current date for all organizations. attr_accessor :billable_ingested_bytes_sum - # Shows the sum of all browser lite sessions over all hours in the current date for all organizations. + # # Shows the sum of all browser lite sessions over all hours in the current date for all organizations. attr_accessor :browser_rum_lite_session_count_sum - # Shows the sum of all browser replay sessions over all hours in the current date for all organizations. + # # Shows the sum of all browser replay sessions over all hours in the current date for all organizations. attr_accessor :browser_rum_replay_session_count_sum - # Shows the sum of all browser RUM units over all hours in the current date for all organizations. + # # Shows the sum of all browser RUM units over all hours in the current date for all organizations. attr_accessor :browser_rum_units_sum - # Shows the average of all distinct containers over all hours in the current date for all organizations. + # # Shows the average of all distinct containers over all hours in the current date for all organizations. attr_accessor :container_avg - # Shows the high-water mark of all distinct containers over all hours in the current date for all organizations. + # # Shows the high-water mark of all distinct containers over all hours in the current date for all organizations. attr_accessor :container_hwm - # Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current date for all organizations. + # # Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current date for all organizations. attr_accessor :cspm_aas_host_top99p - # Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current date for all organizations. + # # Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current date for all organizations. attr_accessor :cspm_azure_host_top99p - # Shows the average number of Cloud Security Posture Management containers over all hours in the current date for all organizations. + # # Shows the average number of Cloud Security Posture Management containers over all hours in the current date for all organizations. attr_accessor :cspm_container_avg - # Shows the high-water mark of Cloud Security Posture Management containers over all hours in the current date for all organizations. + # # Shows the high-water mark of Cloud Security Posture Management containers over all hours in the current date for all organizations. attr_accessor :cspm_container_hwm - # Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current date for all organizations. + # # Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current date for all organizations. attr_accessor :cspm_host_top99p - # Shows the average number of distinct custom metrics over all hours in the current date for all organizations. + # # Shows the average number of distinct custom metrics over all hours in the current date for all organizations. attr_accessor :custom_ts_avg - # Shows the average of all distinct Cloud Workload Security containers over all hours in the current date for all organizations. + # # Shows the average of all distinct Cloud Workload Security containers over all hours in the current date for all organizations. attr_accessor :cws_container_count_avg - # Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current date for all organizations. + # # Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current date for all organizations. attr_accessor :cws_host_top99p - # The date for the usage. + # # The date for the usage. attr_accessor :date - # Shows the 99th percentile of all Database Monitoring hosts over all hours in the current date for all organizations. + # # Shows the 99th percentile of all Database Monitoring hosts over all hours in the current date for all organizations. attr_accessor :dbm_host_top99p - # Shows the average of all normalized Database Monitoring queries over all hours in the current date for all organizations. + # # Shows the average of all normalized Database Monitoring queries over all hours in the current date for all organizations. attr_accessor :dbm_queries_count_avg - # Shows the high-watermark of all Fargate tasks over all hours in the current date for all organizations. + # # Shows the high-watermark of all Fargate tasks over all hours in the current date for all organizations. attr_accessor :fargate_tasks_count_avg - # Shows the average of all Fargate tasks over all hours in the current date for all organizations. + # # Shows the average of all Fargate tasks over all hours in the current date for all organizations. attr_accessor :fargate_tasks_count_hwm - # Shows the 99th percentile of all GCP hosts over all hours in the current date for all organizations. + # # Shows the 99th percentile of all GCP hosts over all hours in the current date for all organizations. attr_accessor :gcp_host_top99p - # Shows the 99th percentile of all Heroku dynos over all hours in the current date for all organizations. + # # Shows the 99th percentile of all Heroku dynos over all hours in the current date for all organizations. attr_accessor :heroku_host_top99p - # Shows the high-water mark of incident management monthly active users over all hours in the current date for all organizations. + # # Shows the high-water mark of incident management monthly active users over all hours in the current date for all organizations. attr_accessor :incident_management_monthly_active_users_hwm - # Shows the sum of all log events indexed over all hours in the current date for all organizations. + # # Shows the sum of all log events indexed over all hours in the current date for all organizations. attr_accessor :indexed_events_count_sum - # Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current date for all organizations. + # # Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current date for all organizations. attr_accessor :infra_host_top99p - # Shows the sum of all log bytes ingested over all hours in the current date for all organizations. + # # Shows the sum of all log bytes ingested over all hours in the current date for all organizations. attr_accessor :ingested_events_bytes_sum - # Shows the sum of all IoT devices over all hours in the current date for all organizations. + # # Shows the sum of all IoT devices over all hours in the current date for all organizations. attr_accessor :iot_device_sum - # Shows the 99th percentile of all IoT devices over all hours in the current date all organizations. + # # Shows the 99th percentile of all IoT devices over all hours in the current date all organizations. attr_accessor :iot_device_top99p - # Shows the sum of all mobile lite sessions over all hours in the current date for all organizations. + # # Shows the sum of all mobile lite sessions over all hours in the current date for all organizations. attr_accessor :mobile_rum_lite_session_count_sum - # Shows the sum of all mobile RUM Sessions on Android over all hours in the current date for all organizations. + # # Shows the sum of all mobile RUM Sessions on Android over all hours in the current date for all organizations. attr_accessor :mobile_rum_session_count_android_sum - # Shows the sum of all mobile RUM Sessions on iOS over all hours in the current date for all organizations. + # # Shows the sum of all mobile RUM Sessions on iOS over all hours in the current date for all organizations. attr_accessor :mobile_rum_session_count_ios_sum - # Shows the sum of all mobile RUM Sessions over all hours in the current date for all organizations + # # Shows the sum of all mobile RUM Sessions over all hours in the current date for all organizations attr_accessor :mobile_rum_session_count_sum - # Shows the sum of all mobile RUM units over all hours in the current date for all organizations. + # # Shows the sum of all mobile RUM units over all hours in the current date for all organizations. attr_accessor :mobile_rum_units_sum - # Shows the sum of all Network flows indexed over all hours in the current date for all organizations. + # # Shows the sum of all Network flows indexed over all hours in the current date for all organizations. attr_accessor :netflow_indexed_events_count_sum - # Shows the 99th percentile of all distinct Networks hosts over all hours in the current date for all organizations. + # # Shows the 99th percentile of all distinct Networks hosts over all hours in the current date for all organizations. attr_accessor :npm_host_top99p - # Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for all organizations. + # # Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for all organizations. attr_accessor :opentelemetry_host_top99p - # Organizations associated with a user. + # # Organizations associated with a user. attr_accessor :orgs - # Shows the 99th percentile of all profiled hosts over all hours in the current date for all organizations. + # # Shows the 99th percentile of all profiled hosts over all hours in the current date for all organizations. attr_accessor :profiling_host_top99p - # Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current month for all organizations. + # # Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current month for all organizations. attr_accessor :rum_browser_and_mobile_session_count - # Shows the sum of all browser RUM Lite Sessions over all hours in the current date for all organizations + # # Shows the sum of all browser RUM Lite Sessions over all hours in the current date for all organizations attr_accessor :rum_session_count_sum - # Shows the sum of RUM Sessions (browser and mobile) over all hours in the current date for all organizations. + # # Shows the sum of RUM Sessions (browser and mobile) over all hours in the current date for all organizations. attr_accessor :rum_total_session_count_sum - # Shows the sum of all browser and mobile RUM units over all hours in the current date for all organizations. + # # Shows the sum of all browser and mobile RUM units over all hours in the current date for all organizations. attr_accessor :rum_units_sum - # Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations. + # # Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations. attr_accessor :sds_logs_scanned_bytes_sum - # Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for all organizations. + # # Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for all organizations. attr_accessor :sds_total_scanned_bytes_sum - # Shows the sum of all Synthetic browser tests over all hours in the current date for all organizations. + # # Shows the sum of all Synthetic browser tests over all hours in the current date for all organizations. attr_accessor :synthetics_browser_check_calls_count_sum - # Shows the sum of all Synthetic API tests over all hours in the current date for all organizations. + # # Shows the sum of all Synthetic API tests over all hours in the current date for all organizations. attr_accessor :synthetics_check_calls_count_sum - # Shows the sum of all Indexed Spans indexed over all hours in the current date for all organizations. + # # Shows the sum of all Indexed Spans indexed over all hours in the current date for all organizations. attr_accessor :trace_search_indexed_events_count_sum - # Shows the sum of all tracing without limits bytes ingested over all hours in the current date for all organizations. + # # Shows the sum of all tracing without limits bytes ingested over all hours in the current date for all organizations. attr_accessor :twol_ingested_events_bytes_sum - # Shows the 99th percentile of all vSphere hosts over all hours in the current date for all organizations. + # # Shows the 99th percentile of all vSphere hosts over all hours in the current date for all organizations. attr_accessor :vsphere_host_top99p # Attribute mapping from ruby-style variable name to JSON key. 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 e838b7acb88..d2fff51bdef 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 @@ -23,178 +23,178 @@ class UsageSummaryDateOrg # @!visibility private attr_accessor :_unparsed - # Shows the 99th percentile of all agent hosts over all hours in the current date for the given org. + # # Shows the 99th percentile of all agent hosts over all hours in the current date for the given org. attr_accessor :agent_host_top99p - # Shows the 99th percentile of all Azure app services using APM over all hours in the current date for the given org. + # # Shows the 99th percentile of all Azure app services using APM over all hours in the current date for the given org. attr_accessor :apm_azure_app_service_host_top99p - # Shows the 99th percentile of all distinct APM hosts over all hours in the current date for the given org. + # # Shows the 99th percentile of all distinct APM hosts over all hours in the current date for the given org. attr_accessor :apm_host_top99p - # Shows the sum of all audit logs lines indexed over all hours in the current date for the given org. + # # Shows the sum of all audit logs lines indexed over all hours in the current date for the given org. attr_accessor :audit_logs_lines_indexed_sum - # The average profiled task count for Fargate Profiling. + # # The average profiled task count for Fargate Profiling. attr_accessor :avg_profiled_fargate_tasks - # Shows the 99th percentile of all AWS hosts over all hours in the current date for the given org. + # # Shows the 99th percentile of all AWS hosts over all hours in the current date for the given org. attr_accessor :aws_host_top99p - # Shows the sum of all AWS Lambda invocations over all hours in the current date for the given org. + # # Shows the sum of all AWS Lambda invocations over all hours in the current date for the given org. attr_accessor :aws_lambda_func_count - # Shows the sum of all AWS Lambda invocations over all hours in the current date for the given org. + # # Shows the sum of all AWS Lambda invocations over all hours in the current date for the given org. attr_accessor :aws_lambda_invocations_sum - # Shows the 99th percentile of all Azure app services over all hours in the current date for the given org. + # # Shows the 99th percentile of all Azure app services over all hours in the current date for the given org. attr_accessor :azure_app_service_top99p - # Shows the sum of all log bytes ingested over all hours in the current date for the given org. + # # Shows the sum of all log bytes ingested over all hours in the current date for the given org. attr_accessor :billable_ingested_bytes_sum - # Shows the sum of all browser lite sessions over all hours in the current date for the given org. + # # Shows the sum of all browser lite sessions over all hours in the current date for the given org. attr_accessor :browser_rum_lite_session_count_sum - # Shows the sum of all browser replay sessions over all hours in the current date for the given org. + # # Shows the sum of all browser replay sessions over all hours in the current date for the given org. attr_accessor :browser_rum_replay_session_count_sum - # Shows the sum of all browser RUM units over all hours in the current date for the given org. + # # Shows the sum of all browser RUM units over all hours in the current date for the given org. attr_accessor :browser_rum_units_sum - # Shows the average of all distinct containers over all hours in the current date for the given org. + # # Shows the average of all distinct containers over all hours in the current date for the given org. attr_accessor :container_avg - # Shows the high-water mark of all distinct containers over all hours in the current date for the given org. + # # Shows the high-water mark of all distinct containers over all hours in the current date for the given org. attr_accessor :container_hwm - # Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current date for the given org. + # # Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current date for the given org. attr_accessor :cspm_aas_host_top99p - # Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current date for the given org. + # # Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current date for the given org. attr_accessor :cspm_azure_host_top99p - # Shows the average number of Cloud Security Posture Management containers over all hours in the current date for the given org. + # # Shows the average number of Cloud Security Posture Management containers over all hours in the current date for the given org. attr_accessor :cspm_container_avg - # Shows the high-water mark of Cloud Security Posture Management containers over all hours in the current date for the given org. + # # Shows the high-water mark of Cloud Security Posture Management containers over all hours in the current date for the given org. attr_accessor :cspm_container_hwm - # Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current date for the given org. + # # Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current date for the given org. attr_accessor :cspm_host_top99p - # Shows the average number of distinct custom metrics over all hours in the current date for the given org. + # # Shows the average number of distinct custom metrics over all hours in the current date for the given org. attr_accessor :custom_ts_avg - # Shows the average of all distinct Cloud Workload Security containers over all hours in the current date for the given org. + # # Shows the average of all distinct Cloud Workload Security containers over all hours in the current date for the given org. attr_accessor :cws_container_count_avg - # Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current date for the given org. + # # Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current date for the given org. attr_accessor :cws_host_top99p - # Shows the 99th percentile of all Database Monitoring hosts over all hours in the current month for the given org. + # # Shows the 99th percentile of all Database Monitoring hosts over all hours in the current month for the given org. attr_accessor :dbm_host_top99p_sum - # Shows the average of all distinct Database Monitoring normalized queries over all hours in the current month for the given org. + # # Shows the average of all distinct Database Monitoring normalized queries over all hours in the current month for the given org. attr_accessor :dbm_queries_avg_sum - # The average task count for Fargate. + # # The average task count for Fargate. attr_accessor :fargate_tasks_count_avg - # Shows the high-water mark of all Fargate tasks over all hours in the current date for the given org. + # # Shows the high-water mark of all Fargate tasks over all hours in the current date for the given org. attr_accessor :fargate_tasks_count_hwm - # Shows the 99th percentile of all GCP hosts over all hours in the current date for the given org. + # # Shows the 99th percentile of all GCP hosts over all hours in the current date for the given org. attr_accessor :gcp_host_top99p - # Shows the 99th percentile of all Heroku dynos over all hours in the current date for the given org. + # # Shows the 99th percentile of all Heroku dynos over all hours in the current date for the given org. attr_accessor :heroku_host_top99p - # The organization id. + # # The organization id. attr_accessor :id - # Shows the high-water mark of incident management monthly active users over all hours in the current date for the given org. + # # Shows the high-water mark of incident management monthly active users over all hours in the current date for the given org. attr_accessor :incident_management_monthly_active_users_hwm - # Shows the sum of all log events indexed over all hours in the current date for the given org. + # # Shows the sum of all log events indexed over all hours in the current date for the given org. attr_accessor :indexed_events_count_sum - # Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current date for the given org. + # # Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current date for the given org. attr_accessor :infra_host_top99p - # Shows the sum of all log bytes ingested over all hours in the current date for the given org. + # # Shows the sum of all log bytes ingested over all hours in the current date for the given org. attr_accessor :ingested_events_bytes_sum - # Shows the sum of all IoT devices over all hours in the current date for the given org. + # # Shows the sum of all IoT devices over all hours in the current date for the given org. attr_accessor :iot_device_agg_sum - # Shows the 99th percentile of all IoT devices over all hours in the current date for the given org. + # # Shows the 99th percentile of all IoT devices over all hours in the current date for the given org. attr_accessor :iot_device_top99p_sum - # Shows the sum of all mobile lite sessions over all hours in the current date for the given org. + # # Shows the sum of all mobile lite sessions over all hours in the current date for the given org. attr_accessor :mobile_rum_lite_session_count_sum - # Shows the sum of all mobile RUM Sessions on Android over all hours in the current date for the given org. + # # Shows the sum of all mobile RUM Sessions on Android over all hours in the current date for the given org. attr_accessor :mobile_rum_session_count_android_sum - # Shows the sum of all mobile RUM Sessions on iOS over all hours in the current date for the given org. + # # Shows the sum of all mobile RUM Sessions on iOS over all hours in the current date for the given org. attr_accessor :mobile_rum_session_count_ios_sum - # Shows the sum of all mobile RUM Sessions over all hours in the current date for the given org. + # # Shows the sum of all mobile RUM Sessions over all hours in the current date for the given org. attr_accessor :mobile_rum_session_count_sum - # Shows the sum of all mobile RUM units over all hours in the current date for the given org. + # # Shows the sum of all mobile RUM units over all hours in the current date for the given org. attr_accessor :mobile_rum_units_sum - # The organization name. + # # The organization name. attr_accessor :name - # Shows the sum of all Network flows indexed over all hours in the current date for the given org. + # # Shows the sum of all Network flows indexed over all hours in the current date for the given org. attr_accessor :netflow_indexed_events_count_sum - # Shows the 99th percentile of all distinct Networks hosts over all hours in the current date for the given org. + # # Shows the 99th percentile of all distinct Networks hosts over all hours in the current date for the given org. attr_accessor :npm_host_top99p - # Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for the given org. + # # Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for the given org. attr_accessor :opentelemetry_host_top99p - # Shows the 99th percentile of all profiled hosts over all hours in the current date for the given org. + # # Shows the 99th percentile of all profiled hosts over all hours in the current date for the given org. attr_accessor :profiling_host_top99p - # The organization public id. + # # The organization public id. attr_accessor :public_id - # Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current date for the given org. + # # Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current date for the given org. attr_accessor :rum_browser_and_mobile_session_count - # Shows the sum of all browser RUM Lite Sessions over all hours in the current date for the given org. + # # Shows the sum of all browser RUM Lite Sessions over all hours in the current date for the given org. attr_accessor :rum_session_count_sum - # Shows the sum of RUM Sessions (browser and mobile) over all hours in the current date for the given org. + # # Shows the sum of RUM Sessions (browser and mobile) over all hours in the current date for the given org. attr_accessor :rum_total_session_count_sum - # Shows the sum of all browser and mobile RUM units over all hours in the current date for the given org. + # # Shows the sum of all browser and mobile RUM units over all hours in the current date for the given org. attr_accessor :rum_units_sum - # Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for the given org. + # # Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for the given org. attr_accessor :sds_logs_scanned_bytes_sum - # Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for the given org. + # # Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for the given org. attr_accessor :sds_total_scanned_bytes_sum - # Shows the sum of all Synthetic browser tests over all hours in the current date for the given org. + # # Shows the sum of all Synthetic browser tests over all hours in the current date for the given org. attr_accessor :synthetics_browser_check_calls_count_sum - # Shows the sum of all Synthetic API tests over all hours in the current date for the given org. + # # Shows the sum of all Synthetic API tests over all hours in the current date for the given org. attr_accessor :synthetics_check_calls_count_sum - # Shows the sum of all Indexed Spans indexed over all hours in the current date for the given org. + # # Shows the sum of all Indexed Spans indexed over all hours in the current date for the given org. attr_accessor :trace_search_indexed_events_count_sum - # Shows the sum of all tracing without limits bytes ingested over all hours in the current date for the given org. + # # Shows the sum of all tracing without limits bytes ingested over all hours in the current date for the given org. attr_accessor :twol_ingested_events_bytes_sum - # Shows the 99th percentile of all vSphere hosts over all hours in the current date for the given org. + # # Shows the 99th percentile of all vSphere hosts over all hours in the current date for the given org. attr_accessor :vsphere_host_top99p # Attribute mapping from ruby-style variable name to JSON key. 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 fe15d9e2adf..8776a327e8f 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_response.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_response.rb @@ -23,202 +23,202 @@ class UsageSummaryResponse # @!visibility private attr_accessor :_unparsed - # Shows the 99th percentile of all agent hosts over all hours in the current months for all organizations. + # # Shows the 99th percentile of all agent hosts over all hours in the current months for all organizations. attr_accessor :agent_host_top99p_sum - # Shows the 99th percentile of all Azure app services using APM over all hours in the current months all organizations. + # # Shows the 99th percentile of all Azure app services using APM over all hours in the current months all organizations. attr_accessor :apm_azure_app_service_host_top99p_sum - # Shows the 99th percentile of all distinct APM hosts over all hours in the current months for all organizations. + # # Shows the 99th percentile of all distinct APM hosts over all hours in the current months for all organizations. attr_accessor :apm_host_top99p_sum - # Shows the sum of all audit logs lines indexed over all hours in the current months for all organizations. + # # Shows the sum of all audit logs lines indexed over all hours in the current months for all organizations. attr_accessor :audit_logs_lines_indexed_agg_sum - # Shows the average of all profiled Fargate tasks over all hours in the current months for all organizations. + # # Shows the average of all profiled Fargate tasks over all hours in the current months for all organizations. attr_accessor :avg_profiled_fargate_tasks_sum - # Shows the 99th percentile of all AWS hosts over all hours in the current months for all organizations. + # # Shows the 99th percentile of all AWS hosts over all hours in the current months for all organizations. attr_accessor :aws_host_top99p_sum - # Shows the average of the number of functions that executed 1 or more times each hour in the current months for all organizations. + # # Shows the average of the number of functions that executed 1 or more times each hour in the current months for all organizations. attr_accessor :aws_lambda_func_count - # Shows the sum of all AWS Lambda invocations over all hours in the current months for all organizations. + # # Shows the sum of all AWS Lambda invocations over all hours in the current months for all organizations. attr_accessor :aws_lambda_invocations_sum - # Shows the 99th percentile of all Azure app services over all hours in the current months for all organizations. + # # Shows the 99th percentile of all Azure app services over all hours in the current months for all organizations. attr_accessor :azure_app_service_top99p_sum - # Shows the 99th percentile of all Azure hosts over all hours in the current months for all organizations. + # # Shows the 99th percentile of all Azure hosts over all hours in the current months for all organizations. attr_accessor :azure_host_top99p_sum - # Shows the sum of all log bytes ingested over all hours in the current months for all organizations. + # # Shows the sum of all log bytes ingested over all hours in the current months for all organizations. attr_accessor :billable_ingested_bytes_agg_sum - # Shows the sum of all browser lite sessions over all hours in the current months for all organizations. + # # Shows the sum of all browser lite sessions over all hours in the current months for all organizations. attr_accessor :browser_rum_lite_session_count_agg_sum - # Shows the sum of all browser replay sessions over all hours in the current months for all organizations. + # # Shows the sum of all browser replay sessions over all hours in the current months for all organizations. attr_accessor :browser_rum_replay_session_count_agg_sum - # Shows the sum of all browser RUM units over all hours in the current months for all organizations. + # # Shows the sum of all browser RUM units over all hours in the current months for all organizations. attr_accessor :browser_rum_units_agg_sum - # Shows the average of all distinct containers over all hours in the current months for all organizations. + # # Shows the average of all distinct containers over all hours in the current months for all organizations. attr_accessor :container_avg_sum - # Shows the sum of the high-water marks of all distinct containers over all hours in the current months for all organizations. + # # Shows the sum of the high-water marks of all distinct containers over all hours in the current months for all organizations. attr_accessor :container_hwm_sum - # Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current months for all organizations. + # # Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current months for all organizations. attr_accessor :cspm_aas_host_top99p_sum - # Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current months for all organizations. + # # Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current months for all organizations. attr_accessor :cspm_azure_host_top99p_sum - # Shows the average number of Cloud Security Posture Management containers over all hours in the current months for all organizations. + # # Shows the average number of Cloud Security Posture Management containers over all hours in the current months for all organizations. attr_accessor :cspm_container_avg_sum - # Shows the sum of the the high-water marks of Cloud Security Posture Management containers over all hours in the current months for all organizations. + # # Shows the sum of the the high-water marks of Cloud Security Posture Management containers over all hours in the current months for all organizations. attr_accessor :cspm_container_hwm_sum - # Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current months for all organizations. + # # Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current months for all organizations. attr_accessor :cspm_host_top99p_sum - # Shows the average number of distinct custom metrics over all hours in the current months for all organizations. + # # Shows the average number of distinct custom metrics over all hours in the current months for all organizations. attr_accessor :custom_ts_sum - # Shows the average of all distinct Cloud Workload Security containers over all hours in the current months for all organizations. + # # Shows the average of all distinct Cloud Workload Security containers over all hours in the current months for all organizations. attr_accessor :cws_containers_avg_sum - # Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current months for all organizations. + # # Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current months for all organizations. attr_accessor :cws_host_top99p_sum - # Shows the 99th percentile of all Database Monitoring hosts over all hours in the current month for all organizations. + # # Shows the 99th percentile of all Database Monitoring hosts over all hours in the current month for all organizations. attr_accessor :dbm_host_top99p_sum - # Shows the average of all distinct Database Monitoring Normalized Queries over all hours in the current month for all organizations. + # # Shows the average of all distinct Database Monitoring Normalized Queries over all hours in the current month for all organizations. attr_accessor :dbm_queries_avg_sum - # Shows the last date of usage in the current months for all organizations. + # # Shows the last date of usage in the current months for all organizations. attr_accessor :end_date - # Shows the average of all Fargate tasks over all hours in the current months for all organizations. + # # Shows the average of all Fargate tasks over all hours in the current months for all organizations. attr_accessor :fargate_tasks_count_avg_sum - # Shows the sum of the high-water marks of all Fargate tasks over all hours in the current months for all organizations. + # # Shows the sum of the high-water marks of all Fargate tasks over all hours in the current months for all organizations. attr_accessor :fargate_tasks_count_hwm_sum - # Shows the 99th percentile of all GCP hosts over all hours in the current months for all organizations. + # # Shows the 99th percentile of all GCP hosts over all hours in the current months for all organizations. attr_accessor :gcp_host_top99p_sum - # Shows the 99th percentile of all Heroku dynos over all hours in the current months for all organizations. + # # Shows the 99th percentile of all Heroku dynos over all hours in the current months for all organizations. attr_accessor :heroku_host_top99p_sum - # Shows sum of the the high-water marks of incident management monthly active users in the current months for all organizations. + # # Shows sum of the the high-water marks of incident management monthly active users in the current months for all organizations. attr_accessor :incident_management_monthly_active_users_hwm_sum - # Shows the sum of all log events indexed over all hours in the current months for all organizations. + # # Shows the sum of all log events indexed over all hours in the current months for all organizations. attr_accessor :indexed_events_count_agg_sum - # Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current months for all organizations. + # # Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current months for all organizations. attr_accessor :infra_host_top99p_sum - # Shows the sum of all log bytes ingested over all hours in the current months for all organizations. + # # Shows the sum of all log bytes ingested over all hours in the current months for all organizations. attr_accessor :ingested_events_bytes_agg_sum - # Shows the sum of all IoT devices over all hours in the current months for all organizations. + # # Shows the sum of all IoT devices over all hours in the current months for all organizations. attr_accessor :iot_device_agg_sum - # Shows the 99th percentile of all IoT devices over all hours in the current months of all organizations. + # # Shows the 99th percentile of all IoT devices over all hours in the current months of all organizations. attr_accessor :iot_device_top99p_sum - # Shows the the most recent hour in the current months for all organizations for which all usages were calculated. + # # Shows the the most recent hour in the current months for all organizations for which all usages were calculated. attr_accessor :last_updated - # Shows the sum of all live logs indexed over all hours in the current months for all organizations (data available as of December 1, 2020). + # # Shows the sum of all live logs indexed over all hours in the current months for all organizations (data available as of December 1, 2020). attr_accessor :live_indexed_events_agg_sum - # Shows the sum of all live logs bytes ingested over all hours in the current months for all organizations (data available as of December 1, 2020). + # # Shows the sum of all live logs bytes ingested over all hours in the current months for all organizations (data available as of December 1, 2020). attr_accessor :live_ingested_bytes_agg_sum - # Object containing logs usage data broken down by retention period. + # # Object containing logs usage data broken down by retention period. attr_accessor :logs_by_retention - # Shows the sum of all mobile lite sessions over all hours in the current months for all organizations. + # # Shows the sum of all mobile lite sessions over all hours in the current months for all organizations. attr_accessor :mobile_rum_lite_session_count_agg_sum - # Shows the sum of all mobile RUM Sessions over all hours in the current months for all organizations. + # # Shows the sum of all mobile RUM Sessions over all hours in the current months for all organizations. attr_accessor :mobile_rum_session_count_agg_sum - # Shows the sum of all mobile RUM Sessions on Android over all hours in the current months for all organizations. + # # Shows the sum of all mobile RUM Sessions on Android over all hours in the current months for all organizations. attr_accessor :mobile_rum_session_count_android_agg_sum - # Shows the sum of all mobile RUM Sessions on iOS over all hours in the current months for all organizations. + # # Shows the sum of all mobile RUM Sessions on iOS over all hours in the current months for all organizations. attr_accessor :mobile_rum_session_count_ios_agg_sum - # Shows the sum of all mobile RUM units over all hours in the current months for all organizations. + # # Shows the sum of all mobile RUM units over all hours in the current months for all organizations. attr_accessor :mobile_rum_units_agg_sum - # Shows the sum of all Network flows indexed over all hours in the current months for all organizations. + # # Shows the sum of all Network flows indexed over all hours in the current months for all organizations. attr_accessor :netflow_indexed_events_count_agg_sum - # Shows the 99th percentile of all distinct Networks hosts over all hours in the current months for all organizations. + # # Shows the 99th percentile of all distinct Networks hosts over all hours in the current months for all organizations. attr_accessor :npm_host_top99p_sum - # Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current months for all organizations. + # # Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current months for all organizations. attr_accessor :opentelemetry_host_top99p_sum - # Shows the average number of profiled containers over all hours in the current months for all organizations. + # # Shows the average number of profiled containers over all hours in the current months for all organizations. attr_accessor :profiling_container_agent_count_avg - # Shows the 99th percentile of all profiled hosts over all hours in the current months for all organizations. + # # Shows the 99th percentile of all profiled hosts over all hours in the current months for all organizations. attr_accessor :profiling_host_count_top99p_sum - # Shows the sum of all rehydrated logs indexed over all hours in the current months for all organizations (data available as of December 1, 2020). + # # Shows the sum of all rehydrated logs indexed over all hours in the current months for all organizations (data available as of December 1, 2020). attr_accessor :rehydrated_indexed_events_agg_sum - # Shows the sum of all rehydrated logs bytes ingested over all hours in the current months for all organizations (data available as of December 1, 2020). + # # Shows the sum of all rehydrated logs bytes ingested over all hours in the current months for all organizations (data available as of December 1, 2020). attr_accessor :rehydrated_ingested_bytes_agg_sum - # Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current month for all organizations. + # # Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current month for all organizations. attr_accessor :rum_browser_and_mobile_session_count - # Shows the sum of all browser RUM Lite Sessions over all hours in the current months for all organizations. + # # Shows the sum of all browser RUM Lite Sessions over all hours in the current months for all organizations. attr_accessor :rum_session_count_agg_sum - # Shows the sum of RUM Sessions (browser and mobile) over all hours in the current months for all organizations. + # # Shows the sum of RUM Sessions (browser and mobile) over all hours in the current months for all organizations. attr_accessor :rum_total_session_count_agg_sum - # Shows the sum of all browser and mobile RUM units over all hours in the current months for all organizations. + # # Shows the sum of all browser and mobile RUM units over all hours in the current months for all organizations. attr_accessor :rum_units_agg_sum - # Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations. + # # Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations. attr_accessor :sds_logs_scanned_bytes_sum - # Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for all organizations. + # # Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for all organizations. attr_accessor :sds_total_scanned_bytes_sum - # Shows the first date of usage in the current months for all organizations. + # # Shows the first date of usage in the current months for all organizations. attr_accessor :start_date - # Shows the sum of all Synthetic browser tests over all hours in the current months for all organizations. + # # Shows the sum of all Synthetic browser tests over all hours in the current months for all organizations. attr_accessor :synthetics_browser_check_calls_count_agg_sum - # Shows the sum of all Synthetic API tests over all hours in the current months for all organizations. + # # Shows the sum of all Synthetic API tests over all hours in the current months for all organizations. attr_accessor :synthetics_check_calls_count_agg_sum - # Shows the sum of all Indexed Spans indexed over all hours in the current months for all organizations. + # # Shows the sum of all Indexed Spans indexed over all hours in the current months for all organizations. attr_accessor :trace_search_indexed_events_count_agg_sum - # Shows the sum of all tracing without limits bytes ingested over all hours in the current months for all organizations. + # # Shows the sum of all tracing without limits bytes ingested over all hours in the current months for all organizations. attr_accessor :twol_ingested_events_bytes_agg_sum - # An array of objects regarding hourly usage. + # # An array of objects regarding hourly usage. attr_accessor :usage - # Shows the 99th percentile of all vSphere hosts over all hours in the current months for all organizations. + # # Shows the 99th percentile of all vSphere hosts over all hours in the current months for all organizations. attr_accessor :vsphere_host_top99p_sum # Attribute mapping from ruby-style variable name to JSON key. 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 77710b492b8..38fc42feeb2 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 @@ -23,10 +23,10 @@ class UsageSyntheticsAPIHour # @!visibility private attr_accessor :_unparsed - # Contains the number of Synthetics API tests run. + # # Contains the number of Synthetics API tests run. attr_accessor :check_calls_count - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour # Attribute mapping from ruby-style variable name to JSON key. 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 d9069b2308e..0b987815de1 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 @@ -23,7 +23,7 @@ class UsageSyntheticsAPIResponse # @!visibility private attr_accessor :_unparsed - # Get hourly usage for Synthetics API tests. + # # Get hourly usage for Synthetics API tests. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 a019e2bb3d6..ae05ab5195c 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 @@ -23,10 +23,10 @@ class UsageSyntheticsBrowserHour # @!visibility private attr_accessor :_unparsed - # Contains the number of Synthetics Browser tests run. + # # Contains the number of Synthetics Browser tests run. attr_accessor :browser_check_calls_count - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour # Attribute mapping from ruby-style variable name to JSON key. 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 af8b522b993..af00584a58c 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 @@ -23,7 +23,7 @@ class UsageSyntheticsBrowserResponse # @!visibility private attr_accessor :_unparsed - # Get hourly usage for Synthetics Browser tests. + # # Get hourly usage for Synthetics Browser tests. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 ae4e894fa31..1bc52e025ad 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb @@ -23,10 +23,10 @@ class UsageSyntheticsHour # @!visibility private attr_accessor :_unparsed - # Contains the number of Synthetics API tests run. + # # Contains the number of Synthetics API tests run. attr_accessor :check_calls_count - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour # Attribute mapping from ruby-style variable name to JSON key. 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 ad1210e7230..61c3443bd70 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_response.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_response.rb @@ -23,7 +23,7 @@ class UsageSyntheticsResponse # @!visibility private attr_accessor :_unparsed - # Array with the number of hourly Synthetics test run for a given organization. + # # Array with the number of hourly Synthetics test run for a given organization. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 d438eafb06d..cff325e6e0a 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb @@ -23,16 +23,16 @@ class UsageTimeseriesHour # @!visibility private attr_accessor :_unparsed - # The hour for the usage. + # # The hour for the usage. attr_accessor :hour - # Contains the number of custom metrics that are inputs for aggregations (metric configured is custom). + # # Contains the number of custom metrics that are inputs for aggregations (metric configured is custom). attr_accessor :num_custom_input_timeseries - # Contains the number of custom metrics that are outputs for aggregations (metric configured is custom). + # # Contains the number of custom metrics that are outputs for aggregations (metric configured is custom). attr_accessor :num_custom_output_timeseries - # Contains sum of non-aggregation custom metrics and custom metrics that are outputs for aggregations. + # # Contains sum of non-aggregation custom metrics and custom metrics that are outputs for aggregations. attr_accessor :num_custom_timeseries # Attribute mapping from ruby-style variable name to JSON key. 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 c24ba77fd70..00d25078fe2 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_response.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_response.rb @@ -23,7 +23,7 @@ class UsageTimeseriesResponse # @!visibility private attr_accessor :_unparsed - # An array of objects regarding hourly usage of timeseries. + # # An array of objects regarding hourly usage of timeseries. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 d084a83e5a9..cfb2b32a62a 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 @@ -23,16 +23,16 @@ class UsageTopAvgMetricsHour # @!visibility private attr_accessor :_unparsed - # Average number of timeseries per hour in which the metric occurs. + # # Average number of timeseries per hour in which the metric occurs. attr_accessor :avg_metric_hour - # Maximum number of timeseries per hour in which the metric occurs. + # # Maximum number of timeseries per hour in which the metric occurs. attr_accessor :max_metric_hour - # Contains the metric category. + # # Contains the metric category. attr_accessor :metric_category - # Contains the custom metric name. + # # Contains the custom metric name. attr_accessor :metric_name # Attribute mapping from ruby-style variable name to JSON key. 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 f56ddce0447..ee1ec9c4430 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 @@ -23,13 +23,13 @@ class UsageTopAvgMetricsMetadata # @!visibility private attr_accessor :_unparsed - # The day value from the user request that contains the returned usage data. (If day was used the request) + # # The day value from the user request that contains the returned usage data. (If day was used the request) attr_accessor :day - # The month value from the user request that contains the returned usage data. (If month was used the request) + # # The month value from the user request that contains the returned usage data. (If month was used the request) attr_accessor :month - # The metadata for the current pagination. + # # The metadata for the current pagination. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. 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 6f327601aeb..83f119f3b6a 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 @@ -23,10 +23,10 @@ class UsageTopAvgMetricsResponse # @!visibility private attr_accessor :_unparsed - # The object containing document metadata. + # # The object containing document metadata. attr_accessor :metadata - # Number of hourly recorded custom metrics for a given organization. + # # Number of hourly recorded custom metrics for a given organization. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/user.rb b/lib/datadog_api_client/v1/models/user.rb index f360d6d07dc..3b8d0c550eb 100644 --- a/lib/datadog_api_client/v1/models/user.rb +++ b/lib/datadog_api_client/v1/models/user.rb @@ -23,25 +23,25 @@ class User # @!visibility private attr_accessor :_unparsed - # The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). + # # The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). attr_accessor :access_role - # The new disabled status of the user. + # # The new disabled status of the user. attr_accessor :disabled - # The new email of the user. + # # The new email of the user. attr_accessor :email - # The user handle, must be a valid email. + # # The user handle, must be a valid email. attr_accessor :handle - # Gravatar icon associated to the user. + # # Gravatar icon associated to the user. attr_accessor :icon - # The name of the user. + # # The name of the user. attr_accessor :name - # Whether or not the user logged in Datadog at least once. + # # Whether or not the user logged in Datadog at least once. attr_accessor :verified # Attribute mapping from ruby-style variable name to JSON key. 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 523e9e191d2..73d06b74728 100644 --- a/lib/datadog_api_client/v1/models/user_disable_response.rb +++ b/lib/datadog_api_client/v1/models/user_disable_response.rb @@ -23,7 +23,7 @@ class UserDisableResponse # @!visibility private attr_accessor :_unparsed - # Information pertaining to a user disabled for a given organization. + # # Information pertaining to a user disabled for a given organization. attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. 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 5adef74b0c5..c8325e1bab7 100644 --- a/lib/datadog_api_client/v1/models/user_list_response.rb +++ b/lib/datadog_api_client/v1/models/user_list_response.rb @@ -23,7 +23,7 @@ class UserListResponse # @!visibility private attr_accessor :_unparsed - # Array of users. + # # Array of users. attr_accessor :users # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/user_response.rb b/lib/datadog_api_client/v1/models/user_response.rb index af6e9dd004d..a77ce4ba62a 100644 --- a/lib/datadog_api_client/v1/models/user_response.rb +++ b/lib/datadog_api_client/v1/models/user_response.rb @@ -23,7 +23,7 @@ class UserResponse # @!visibility private attr_accessor :_unparsed - # Create, edit, and disable users. + # # Create, edit, and disable users. attr_accessor :user # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/webhooks_integration.rb b/lib/datadog_api_client/v1/models/webhooks_integration.rb index 43b73554881..989d81d40ad 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration.rb @@ -23,25 +23,25 @@ class WebhooksIntegration # @!visibility private attr_accessor :_unparsed - # If `null`, uses no header. + # # If `null`, uses no header. # If given a JSON payload, these will be headers attached to your webhook. attr_accessor :custom_headers - # Encoding type. Can be given either `json` or `form`. + # # Encoding type. Can be given either `json` or `form`. attr_accessor :encode_as - # The name of the webhook. It corresponds with ``. + # # The name of the webhook. It corresponds with ``. # Learn more on how to use it in # [monitor notifications](https://docs.datadoghq.com/monitors/notify). attr_accessor :name - # If `null`, uses the default payload. + # # If `null`, uses the default payload. # If given a JSON payload, the webhook returns the payload # specified by the given payload. # [Webhooks variable usage](https://docs.datadoghq.com/integrations/webhooks/#usage). attr_accessor :payload - # URL of the webhook. + # # URL of the webhook. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. 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 808b2bbcdd2..bc6fdca9c87 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 @@ -23,14 +23,14 @@ class WebhooksIntegrationCustomVariable # @!visibility private attr_accessor :_unparsed - # Make custom variable is secret or not. + # # Make custom variable is secret or not. # If the custom variable is secret, the value is not returned in the response payload. attr_accessor :is_secret - # The name of the variable. It corresponds with ``. + # # The name of the variable. It corresponds with ``. attr_accessor :name - # Value of the custom variable. + # # Value of the custom variable. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 63b406f5967..6c05eb2353f 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 @@ -23,14 +23,14 @@ class WebhooksIntegrationCustomVariableResponse # @!visibility private attr_accessor :_unparsed - # Make custom variable is secret or not. + # # Make custom variable is secret or not. # If the custom variable is secret, the value is not returned in the response payload. attr_accessor :is_secret - # The name of the variable. It corresponds with ``. It must only contains upper-case characters, integers or underscores. + # # The name of the variable. It corresponds with ``. It must only contains upper-case characters, integers or underscores. attr_accessor :name - # Value of the custom variable. It won't be returned if the variable is secret. + # # Value of the custom variable. It won't be returned if the variable is secret. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 b3f3673259f..b41194175fd 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 @@ -25,14 +25,14 @@ class WebhooksIntegrationCustomVariableUpdateRequest # @!visibility private attr_accessor :_unparsed - # Make custom variable is secret or not. + # # Make custom variable is secret or not. # If the custom variable is secret, the value is not returned in the response payload. attr_accessor :is_secret - # The name of the variable. It corresponds with ``. It must only contains upper-case characters, integers or underscores. + # # The name of the variable. It corresponds with ``. It must only contains upper-case characters, integers or underscores. attr_accessor :name - # Value of the custom variable. + # # Value of the custom variable. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 827edfaf87c..2606801d411 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 @@ -25,25 +25,25 @@ class WebhooksIntegrationUpdateRequest # @!visibility private attr_accessor :_unparsed - # If `null`, uses no header. + # # If `null`, uses no header. # If given a JSON payload, these will be headers attached to your webhook. attr_accessor :custom_headers - # Encoding type. Can be given either `json` or `form`. + # # Encoding type. Can be given either `json` or `form`. attr_accessor :encode_as - # The name of the webhook. It corresponds with ``. + # # The name of the webhook. It corresponds with ``. # Learn more on how to use it in # [monitor notifications](https://docs.datadoghq.com/monitors/notify). attr_accessor :name - # If `null`, uses the default payload. + # # If `null`, uses the default payload. # If given a JSON payload, the webhook returns the payload # specified by the given payload. # [Webhooks variable usage](https://docs.datadoghq.com/integrations/webhooks/#usage). attr_accessor :payload - # URL of the webhook. + # # URL of the webhook. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/widget.rb b/lib/datadog_api_client/v1/models/widget.rb index 3abcb355514..9155236c26e 100644 --- a/lib/datadog_api_client/v1/models/widget.rb +++ b/lib/datadog_api_client/v1/models/widget.rb @@ -28,13 +28,13 @@ class Widget # @!visibility private attr_accessor :_unparsed - # [Definition of the widget](https://docs.datadoghq.com/dashboards/widgets/). + # # [Definition of the widget](https://docs.datadoghq.com/dashboards/widgets/). attr_accessor :definition - # ID of the widget. + # # ID of the widget. attr_accessor :id - # The layout for a widget on a `free` or **new dashboard layout** dashboard. + # # The layout for a widget on a `free` or **new dashboard layout** dashboard. attr_accessor :layout # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/widget_axis.rb b/lib/datadog_api_client/v1/models/widget_axis.rb index 58a42786d16..e901676a75b 100644 --- a/lib/datadog_api_client/v1/models/widget_axis.rb +++ b/lib/datadog_api_client/v1/models/widget_axis.rb @@ -23,19 +23,19 @@ class WidgetAxis # @!visibility private attr_accessor :_unparsed - # True includes zero. + # # True includes zero. attr_accessor :include_zero - # The label of the axis to display on the graph. + # # The label of the axis to display on the graph. attr_accessor :label - # Specifies the maximum value to show on the y-axis. It takes a number, or auto for default behavior. + # # Specifies the maximum value to show on the y-axis. It takes a number, or auto for default behavior. attr_accessor :max - # Specifies minimum value to show on the y-axis. It takes a number, or auto for default behavior. + # # Specifies minimum value to show on the y-axis. It takes a number, or auto for default behavior. attr_accessor :min - # Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, `pow##` (for example `pow2`, `pow0.5` etc.). + # # Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, `pow##` (for example `pow2`, `pow0.5` etc.). attr_accessor :scale # Attribute mapping from ruby-style variable name to JSON key. 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 4649e1b537e..1dbce94297d 100644 --- a/lib/datadog_api_client/v1/models/widget_conditional_format.rb +++ b/lib/datadog_api_client/v1/models/widget_conditional_format.rb @@ -23,31 +23,31 @@ class WidgetConditionalFormat # @!visibility private attr_accessor :_unparsed - # Comparator to apply. + # # Comparator to apply. attr_accessor :comparator - # Color palette to apply to the background, same values available as palette. + # # Color palette to apply to the background, same values available as palette. attr_accessor :custom_bg_color - # Color palette to apply to the foreground, same values available as palette. + # # Color palette to apply to the foreground, same values available as palette. attr_accessor :custom_fg_color - # True hides values. + # # True hides values. attr_accessor :hide_value - # Displays an image as the background. + # # Displays an image as the background. attr_accessor :image_url - # Metric from the request to correlate this conditional format with. + # # Metric from the request to correlate this conditional format with. attr_accessor :metric - # Color palette to apply. + # # Color palette to apply. attr_accessor :palette - # Defines the displayed timeframe. + # # Defines the displayed timeframe. attr_accessor :timeframe - # Value for the comparator. + # # Value for the comparator. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 1e8e63302e0..bcc3e77b707 100644 --- a/lib/datadog_api_client/v1/models/widget_custom_link.rb +++ b/lib/datadog_api_client/v1/models/widget_custom_link.rb @@ -23,16 +23,16 @@ class WidgetCustomLink # @!visibility private attr_accessor :_unparsed - # The flag for toggling context menu link visibility. + # # The flag for toggling context menu link visibility. attr_accessor :is_hidden - # The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. + # # The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. attr_accessor :label - # The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. + # # The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. attr_accessor :link - # The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. + # # The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. attr_accessor :override_label # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/widget_event.rb b/lib/datadog_api_client/v1/models/widget_event.rb index c0481be0fe2..f3b2becf791 100644 --- a/lib/datadog_api_client/v1/models/widget_event.rb +++ b/lib/datadog_api_client/v1/models/widget_event.rb @@ -26,10 +26,10 @@ class WidgetEvent # @!visibility private attr_accessor :_unparsed - # Query definition. + # # Query definition. attr_accessor :q - # The execution method for multi-value filters. + # # The execution method for multi-value filters. attr_accessor :tags_execution # Attribute mapping from ruby-style variable name to JSON key. 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 1ed90d4e785..1c19344215f 100644 --- a/lib/datadog_api_client/v1/models/widget_field_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_field_sort.rb @@ -23,10 +23,10 @@ class WidgetFieldSort # @!visibility private attr_accessor :_unparsed - # Facet path for the column + # # Facet path for the column attr_accessor :column - # Widget sorting methods. + # # Widget sorting methods. attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/widget_formula.rb b/lib/datadog_api_client/v1/models/widget_formula.rb index 3ac0749e9db..f79f1913791 100644 --- a/lib/datadog_api_client/v1/models/widget_formula.rb +++ b/lib/datadog_api_client/v1/models/widget_formula.rb @@ -23,19 +23,19 @@ class WidgetFormula # @!visibility private attr_accessor :_unparsed - # Expression alias. + # # Expression alias. attr_accessor :_alias - # Define a display mode for the table cell. + # # Define a display mode for the table cell. attr_accessor :cell_display_mode - # List of conditional formats. + # # List of conditional formats. attr_accessor :conditional_formats - # String expression built from queries, formulas, and functions. + # # String expression built from queries, formulas, and functions. attr_accessor :formula - # Options for limiting results returned. + # # Options for limiting results returned. attr_accessor :limit # Attribute mapping from ruby-style variable name to JSON key. 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 38140d60a86..a5f94c536bd 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_limit.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_limit.rb @@ -23,10 +23,10 @@ class WidgetFormulaLimit # @!visibility private attr_accessor :_unparsed - # Number of results to return. + # # Number of results to return. attr_accessor :count - # Direction of sort. + # # Direction of sort. attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/widget_layout.rb b/lib/datadog_api_client/v1/models/widget_layout.rb index a89cbf57597..866e7406311 100644 --- a/lib/datadog_api_client/v1/models/widget_layout.rb +++ b/lib/datadog_api_client/v1/models/widget_layout.rb @@ -23,20 +23,20 @@ class WidgetLayout # @!visibility private attr_accessor :_unparsed - # The height of the widget. Should be a non-negative integer. + # # The height of the widget. Should be a non-negative integer. attr_accessor :height - # Whether the widget should be the first one on the second column in high density or not. + # # Whether the widget should be the first one on the second column in high density or not. # **Note**: Only for the **new dashboard layout** and only one widget in the dashboard should have this property set to `true`. attr_accessor :is_column_break - # The width of the widget. Should be a non-negative integer. + # # The width of the widget. Should be a non-negative integer. attr_accessor :width - # The position of the widget on the x (horizontal) axis. Should be a non-negative integer. + # # The position of the widget on the x (horizontal) axis. Should be a non-negative integer. attr_accessor :x - # The position of the widget on the y (vertical) axis. Should be a non-negative integer. + # # The position of the widget on the y (vertical) axis. Should be a non-negative integer. attr_accessor :y # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/widget_marker.rb b/lib/datadog_api_client/v1/models/widget_marker.rb index c15d8bf87d3..5ea571bbc03 100644 --- a/lib/datadog_api_client/v1/models/widget_marker.rb +++ b/lib/datadog_api_client/v1/models/widget_marker.rb @@ -23,20 +23,20 @@ class WidgetMarker # @!visibility private attr_accessor :_unparsed - # Combination of: + # # Combination of: # - A severity error, warning, ok, or info # - A line type: dashed, solid, or bold # In this case of a Distribution widget, this can be set to be `x_axis_percentile`. - # + # attr_accessor :display_type - # Label to display over the marker. + # # Label to display over the marker. attr_accessor :label - # Timestamp for the widget. + # # Timestamp for the widget. attr_accessor :time - # Value to apply. Can be a single value y = 15 or a range of values 0 < y < 10. + # # Value to apply. Can be a single value y = 15 or a range of values 0 < y < 10. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 08e3fdb72a1..78164fa3a63 100644 --- a/lib/datadog_api_client/v1/models/widget_request_style.rb +++ b/lib/datadog_api_client/v1/models/widget_request_style.rb @@ -23,13 +23,13 @@ class WidgetRequestStyle # @!visibility private attr_accessor :_unparsed - # Type of lines displayed. + # # Type of lines displayed. attr_accessor :line_type - # Width of line displayed. + # # Width of line displayed. attr_accessor :line_width - # Color palette to apply to the widget. + # # Color palette to apply to the widget. attr_accessor :palette # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/widget_style.rb b/lib/datadog_api_client/v1/models/widget_style.rb index 3ec0c0558c6..2afbd96e5c9 100644 --- a/lib/datadog_api_client/v1/models/widget_style.rb +++ b/lib/datadog_api_client/v1/models/widget_style.rb @@ -23,7 +23,7 @@ class WidgetStyle # @!visibility private attr_accessor :_unparsed - # Color palette to apply to the widget. + # # Color palette to apply to the widget. attr_accessor :palette # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/widget_time.rb b/lib/datadog_api_client/v1/models/widget_time.rb index 87065849fea..7eb82710ed6 100644 --- a/lib/datadog_api_client/v1/models/widget_time.rb +++ b/lib/datadog_api_client/v1/models/widget_time.rb @@ -23,7 +23,7 @@ class WidgetTime # @!visibility private attr_accessor :_unparsed - # The available timeframes depend on the widget you are using. + # # The available timeframes depend on the widget you are using. attr_accessor :live_span # Attribute mapping from ruby-style variable name to JSON key. 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 1b6a282a5c0..1e286f4033b 100644 --- a/lib/datadog_api_client/v2/models/api_error_response.rb +++ b/lib/datadog_api_client/v2/models/api_error_response.rb @@ -23,7 +23,7 @@ class APIErrorResponse # @!visibility private attr_accessor :_unparsed - # A list of errors. + # # A list of errors. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. 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 683b7bff60f..ff062f88c8d 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 @@ -23,7 +23,7 @@ class APIKeyCreateAttributes # @!visibility private attr_accessor :_unparsed - # Name of the API key. + # # Name of the API key. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 86f33a63b57..e845ebdbb15 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 @@ -23,10 +23,10 @@ class APIKeyCreateData # @!visibility private attr_accessor :_unparsed - # Attributes used to create an API Key. + # # Attributes used to create an API Key. attr_accessor :attributes - # API Keys resource type. + # # API Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 17337734a9f..cb096d634c1 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 @@ -23,7 +23,7 @@ class APIKeyCreateRequest # @!visibility private attr_accessor :_unparsed - # Object used to create an API key. + # # Object used to create an API key. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 7fc8a570fe7..5ea5e1097c2 100644 --- a/lib/datadog_api_client/v2/models/api_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/api_key_relationships.rb @@ -23,10 +23,10 @@ class APIKeyRelationships # @!visibility private attr_accessor :_unparsed - # Relationship to user. + # # Relationship to user. attr_accessor :created_by - # Relationship to user. + # # Relationship to user. attr_accessor :modified_by # Attribute mapping from ruby-style variable name to JSON key. 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 49e801ec614..9134b9be9b6 100644 --- a/lib/datadog_api_client/v2/models/api_key_response.rb +++ b/lib/datadog_api_client/v2/models/api_key_response.rb @@ -23,10 +23,10 @@ class APIKeyResponse # @!visibility private attr_accessor :_unparsed - # Datadog API key. + # # Datadog API key. attr_accessor :data - # Array of objects related to the API key. + # # Array of objects related to the API key. attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. 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 3127626aeb7..b3ef707235b 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 @@ -23,7 +23,7 @@ class APIKeyUpdateAttributes # @!visibility private attr_accessor :_unparsed - # Name of the API key. + # # Name of the API key. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 f22752a2cae..9135c355318 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 @@ -23,13 +23,13 @@ class APIKeyUpdateData # @!visibility private attr_accessor :_unparsed - # Attributes used to update an API Key. + # # Attributes used to update an API Key. attr_accessor :attributes - # ID of the API key. + # # ID of the API key. attr_accessor :id - # API Keys resource type. + # # API Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 23cc5bfdccf..0115b42ce5c 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 @@ -23,7 +23,7 @@ class APIKeyUpdateRequest # @!visibility private attr_accessor :_unparsed - # Object used to update an API key. + # # Object used to update an API key. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 d1c3c6aec66..e7a4f072050 100644 --- a/lib/datadog_api_client/v2/models/api_keys_response.rb +++ b/lib/datadog_api_client/v2/models/api_keys_response.rb @@ -23,10 +23,10 @@ class APIKeysResponse # @!visibility private attr_accessor :_unparsed - # Array of API keys. + # # Array of API keys. attr_accessor :data - # Array of objects related to the API key. + # # Array of objects related to the API key. attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. 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 f3231ced41b..b7be218168e 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 @@ -23,10 +23,10 @@ class ApplicationKeyCreateAttributes # @!visibility private attr_accessor :_unparsed - # Name of the application key. + # # Name of the application key. attr_accessor :name - # Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys. + # # Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys. attr_accessor :scopes # Attribute mapping from ruby-style variable name to JSON key. 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 8e911ee7d20..554688c5b20 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 @@ -23,10 +23,10 @@ class ApplicationKeyCreateData # @!visibility private attr_accessor :_unparsed - # Attributes used to create an application Key. + # # Attributes used to create an application Key. attr_accessor :attributes - # Application Keys resource type. + # # Application Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 e09512951d6..999374ccbc0 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 @@ -23,7 +23,7 @@ class ApplicationKeyCreateRequest # @!visibility private attr_accessor :_unparsed - # Object used to create an application key. + # # Object used to create an application key. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 66c27fc6741..66c8e57c338 100644 --- a/lib/datadog_api_client/v2/models/application_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/application_key_relationships.rb @@ -23,7 +23,7 @@ class ApplicationKeyRelationships # @!visibility private attr_accessor :_unparsed - # Relationship to user. + # # Relationship to user. attr_accessor :owned_by # Attribute mapping from ruby-style variable name to JSON key. 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 900c23ee2c3..0e59d9e5c6a 100644 --- a/lib/datadog_api_client/v2/models/application_key_response.rb +++ b/lib/datadog_api_client/v2/models/application_key_response.rb @@ -23,10 +23,10 @@ class ApplicationKeyResponse # @!visibility private attr_accessor :_unparsed - # Datadog application key. + # # Datadog application key. attr_accessor :data - # Array of objects related to the application key. + # # Array of objects related to the application key. attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. 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 3e23e27191c..22b5a056544 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 @@ -23,10 +23,10 @@ class ApplicationKeyUpdateAttributes # @!visibility private attr_accessor :_unparsed - # Name of the application key. + # # Name of the application key. attr_accessor :name - # Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys. + # # Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys. attr_accessor :scopes # Attribute mapping from ruby-style variable name to JSON key. 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 9a8389baf0f..8032e82cce0 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 @@ -23,13 +23,13 @@ class ApplicationKeyUpdateData # @!visibility private attr_accessor :_unparsed - # Attributes used to update an application Key. + # # Attributes used to update an application Key. attr_accessor :attributes - # ID of the application key. + # # ID of the application key. attr_accessor :id - # Application Keys resource type. + # # Application Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 c8254c7268d..4d9b37be6e5 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 @@ -23,7 +23,7 @@ class ApplicationKeyUpdateRequest # @!visibility private attr_accessor :_unparsed - # Object used to update an application key. + # # Object used to update an application key. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 a88a6e5915b..14f0abdb4c9 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 @@ -23,37 +23,37 @@ class CloudWorkloadSecurityAgentRuleAttributes # @!visibility private attr_accessor :_unparsed - # The category of the Agent rule. + # # The category of the Agent rule. attr_accessor :category - # When the Agent rule was created, timestamp in milliseconds. + # # When the Agent rule was created, timestamp in milliseconds. attr_accessor :creation_date - # The attributes of the user who created the Agent rule. + # # The attributes of the user who created the Agent rule. attr_accessor :creator - # Whether the rule is included by default. + # # Whether the rule is included by default. attr_accessor :default_rule - # The description of the Agent rule. + # # The description of the Agent rule. attr_accessor :description - # Whether the Agent rule is enabled. + # # Whether the Agent rule is enabled. attr_accessor :enabled - # The SECL expression of the Agent rule. + # # The SECL expression of the Agent rule. attr_accessor :expression - # The name of the Agent rule. + # # The name of the Agent rule. attr_accessor :name - # When the Agent rule was last updated, timestamp in milliseconds. + # # When the Agent rule was last updated, timestamp in milliseconds. attr_accessor :updated_at - # The attributes of the user who last updated the Agent rule. + # # The attributes of the user who last updated the Agent rule. attr_accessor :updater - # The version of the Agent rule. + # # The version of the Agent rule. attr_accessor :version # Attribute mapping from ruby-style variable name to JSON key. 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 f8df343666a..a09092c8af1 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 @@ -23,16 +23,16 @@ class CloudWorkloadSecurityAgentRuleCreateAttributes # @!visibility private attr_accessor :_unparsed - # The description of the Agent rule. + # # The description of the Agent rule. attr_accessor :description - # Whether the Agent rule is enabled. + # # Whether the Agent rule is enabled. attr_accessor :enabled - # The SECL expression of the Agent rule. + # # The SECL expression of the Agent rule. attr_accessor :expression - # The name of the Agent rule. + # # The name of the Agent rule. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 7cc7bc7da1a..e6cd26a6c68 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 @@ -23,10 +23,10 @@ class CloudWorkloadSecurityAgentRuleCreateData # @!visibility private attr_accessor :_unparsed - # Create a new Cloud Workload Security Agent rule. + # # Create a new Cloud Workload Security Agent rule. attr_accessor :attributes - # The type of the resource. The value should always be `agent_rule`. + # # The type of the resource. The value should always be `agent_rule`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 b98b704c782..90deeecad70 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 @@ -23,7 +23,7 @@ class CloudWorkloadSecurityAgentRuleCreateRequest # @!visibility private attr_accessor :_unparsed - # Object for a single Agent rule. + # # Object for a single Agent rule. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 76215fa175e..7eff13fb6c8 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 @@ -23,10 +23,10 @@ class CloudWorkloadSecurityAgentRuleCreatorAttributes # @!visibility private attr_accessor :_unparsed - # The handle of the user. + # # The handle of the user. attr_accessor :handle - # The name of the user. + # # The name of the user. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 61094dc3f17..c592c60e361 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 @@ -23,13 +23,13 @@ class CloudWorkloadSecurityAgentRuleData # @!visibility private attr_accessor :_unparsed - # A Cloud Workload Security Agent rule returned by the API. + # # A Cloud Workload Security Agent rule returned by the API. attr_accessor :attributes - # The ID of the Agent rule. + # # The ID of the Agent rule. attr_accessor :id - # The type of the resource. The value should always be `agent_rule`. + # # The type of the resource. The value should always be `agent_rule`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 16dcfc50242..31ac67b9ca8 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 @@ -23,7 +23,7 @@ class CloudWorkloadSecurityAgentRuleResponse # @!visibility private attr_accessor :_unparsed - # Object for a single Agent rule. + # # Object for a single Agent rule. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 c0646999a1d..9c9e10e4fef 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 @@ -23,13 +23,13 @@ class CloudWorkloadSecurityAgentRuleUpdateAttributes # @!visibility private attr_accessor :_unparsed - # The description of the Agent rule. + # # The description of the Agent rule. attr_accessor :description - # Whether the Agent rule is enabled. + # # Whether the Agent rule is enabled. attr_accessor :enabled - # The SECL expression of the Agent rule. + # # The SECL expression of the Agent rule. attr_accessor :expression # Attribute mapping from ruby-style variable name to JSON key. 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 871869f7877..bf84d794fb0 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 @@ -23,10 +23,10 @@ class CloudWorkloadSecurityAgentRuleUpdateData # @!visibility private attr_accessor :_unparsed - # Update an existing Cloud Workload Security Agent rule. + # # Update an existing Cloud Workload Security Agent rule. attr_accessor :attributes - # The type of the resource. The value should always be `agent_rule`. + # # The type of the resource. The value should always be `agent_rule`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 ce3a0c9e95f..7b1630569df 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 @@ -23,7 +23,7 @@ class CloudWorkloadSecurityAgentRuleUpdateRequest # @!visibility private attr_accessor :_unparsed - # Object for a single Agent rule. + # # Object for a single Agent rule. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 23c6ac1c841..345139a56a0 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 @@ -23,10 +23,10 @@ class CloudWorkloadSecurityAgentRuleUpdaterAttributes # @!visibility private attr_accessor :_unparsed - # The handle of the user. + # # The handle of the user. attr_accessor :handle - # The name of the user. + # # The name of the user. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 6623f85fc00..4d38f5be3cb 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 @@ -23,7 +23,7 @@ class CloudWorkloadSecurityAgentRulesListResponse # @!visibility private attr_accessor :_unparsed - # A list of Agent rules objects. + # # A list of Agent rules objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/creator.rb b/lib/datadog_api_client/v2/models/creator.rb index b3fd88a33aa..9aaa6f5ecc4 100644 --- a/lib/datadog_api_client/v2/models/creator.rb +++ b/lib/datadog_api_client/v2/models/creator.rb @@ -23,13 +23,13 @@ class Creator # @!visibility private attr_accessor :_unparsed - # Email of the creator. + # # Email of the creator. attr_accessor :email - # Handle of the creator. + # # Handle of the creator. attr_accessor :handle - # Name of the creator. + # # Name of the creator. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 c28492e226b..ff81ba40040 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 @@ -23,7 +23,7 @@ class DashboardListAddItemsRequest # @!visibility private attr_accessor :_unparsed - # List of dashboards to add the dashboard list. + # # List of dashboards to add the dashboard list. attr_accessor :dashboards # Attribute mapping from ruby-style variable name to JSON key. 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 5e3f53e2f58..b213f3e439f 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 @@ -23,7 +23,7 @@ class DashboardListAddItemsResponse # @!visibility private attr_accessor :_unparsed - # List of dashboards added to the dashboard list. + # # List of dashboards added to the dashboard list. attr_accessor :added_dashboards_to_list # Attribute mapping from ruby-style variable name to JSON key. 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 fa47528b3a9..25279793f9b 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 @@ -23,7 +23,7 @@ class DashboardListDeleteItemsRequest # @!visibility private attr_accessor :_unparsed - # List of dashboards to delete from the dashboard list. + # # List of dashboards to delete from the dashboard list. attr_accessor :dashboards # Attribute mapping from ruby-style variable name to JSON key. 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 1c6da1d376b..d6009dc23ce 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 @@ -23,7 +23,7 @@ class DashboardListDeleteItemsResponse # @!visibility private attr_accessor :_unparsed - # List of dashboards deleted from the dashboard list. + # # List of dashboards deleted from the dashboard list. attr_accessor :deleted_dashboards_from_list # Attribute mapping from ruby-style variable name to JSON key. 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 bd7734c8573..7921fc85120 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item.rb @@ -23,40 +23,40 @@ class DashboardListItem # @!visibility private attr_accessor :_unparsed - # Creator of the object. + # # Creator of the object. attr_accessor :author - # Date of creation of the dashboard. + # # Date of creation of the dashboard. attr_accessor :created - # URL to the icon of the dashboard. + # # URL to the icon of the dashboard. attr_accessor :icon - # ID of the dashboard. + # # ID of the dashboard. attr_accessor :id - # Whether or not the dashboard is in the favorites. + # # Whether or not the dashboard is in the favorites. attr_accessor :is_favorite - # Whether or not the dashboard is read only. + # # Whether or not the dashboard is read only. attr_accessor :is_read_only - # Whether the dashboard is publicly shared or not. + # # Whether the dashboard is publicly shared or not. attr_accessor :is_shared - # Date of last edition of the dashboard. + # # Date of last edition of the dashboard. attr_accessor :modified - # Popularity of the dashboard. + # # Popularity of the dashboard. attr_accessor :popularity - # Title of the dashboard. + # # Title of the dashboard. attr_accessor :title - # The type of the dashboard. + # # The type of the dashboard. attr_accessor :type - # URL path to the dashboard. + # # URL path to the dashboard. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. 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 a86884e6212..4519d481b35 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 @@ -23,10 +23,10 @@ class DashboardListItemRequest # @!visibility private attr_accessor :_unparsed - # ID of the dashboard. + # # ID of the dashboard. attr_accessor :id - # The type of the dashboard. + # # The type of the dashboard. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 9b6698b5265..7d1ad673aca 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 @@ -23,10 +23,10 @@ class DashboardListItemResponse # @!visibility private attr_accessor :_unparsed - # ID of the dashboard. + # # ID of the dashboard. attr_accessor :id - # The type of the dashboard. + # # The type of the dashboard. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 56bc07953e0..c34ab6ecd99 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_items.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_items.rb @@ -23,10 +23,10 @@ class DashboardListItems # @!visibility private attr_accessor :_unparsed - # List of dashboards in the dashboard list. + # # List of dashboards in the dashboard list. attr_accessor :dashboards - # Number of dashboards in the dashboard list. + # # Number of dashboards in the dashboard list. attr_accessor :total # Attribute mapping from ruby-style variable name to JSON key. 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 6148ca617c9..a981d5096c1 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 @@ -23,7 +23,7 @@ class DashboardListUpdateItemsRequest # @!visibility private attr_accessor :_unparsed - # List of dashboards to update the dashboard list to. + # # List of dashboards to update the dashboard list to. attr_accessor :dashboards # Attribute mapping from ruby-style variable name to JSON key. 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 59065c27b2e..3a682159705 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 @@ -23,7 +23,7 @@ class DashboardListUpdateItemsResponse # @!visibility private attr_accessor :_unparsed - # List of dashboards in the dashboard list. + # # List of dashboards in the dashboard list. attr_accessor :dashboards # Attribute mapping from ruby-style variable name to JSON key. 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 9c4c25941bb..eecbdfa47d7 100644 --- a/lib/datadog_api_client/v2/models/full_api_key.rb +++ b/lib/datadog_api_client/v2/models/full_api_key.rb @@ -23,16 +23,16 @@ class FullAPIKey # @!visibility private attr_accessor :_unparsed - # Attributes of a full API key. + # # Attributes of a full API key. attr_accessor :attributes - # ID of the API key. + # # ID of the API key. attr_accessor :id - # Resources related to the API key. + # # Resources related to the API key. attr_accessor :relationships - # API Keys resource type. + # # API Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 bffac009a4e..5a13babff49 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 @@ -23,19 +23,19 @@ class FullAPIKeyAttributes # @!visibility private attr_accessor :_unparsed - # Creation date of the API key. + # # Creation date of the API key. attr_accessor :created_at - # The API key. + # # The API key. attr_accessor :key - # The last four characters of the API key. + # # The last four characters of the API key. attr_accessor :last4 - # Date the API key was last modified. + # # Date the API key was last modified. attr_accessor :modified_at - # Name of the API key. + # # Name of the API key. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 caa51dc55b7..0f44c9c45e3 100644 --- a/lib/datadog_api_client/v2/models/full_application_key.rb +++ b/lib/datadog_api_client/v2/models/full_application_key.rb @@ -23,16 +23,16 @@ class FullApplicationKey # @!visibility private attr_accessor :_unparsed - # Attributes of a full application key. + # # Attributes of a full application key. attr_accessor :attributes - # ID of the application key. + # # ID of the application key. attr_accessor :id - # Resources related to the application key. + # # Resources related to the application key. attr_accessor :relationships - # Application Keys resource type. + # # Application Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 b1aab798565..3d24b2d02cb 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 @@ -23,19 +23,19 @@ class FullApplicationKeyAttributes # @!visibility private attr_accessor :_unparsed - # Creation date of the application key. + # # Creation date of the application key. attr_accessor :created_at - # The application key. + # # The application key. attr_accessor :key - # The last four characters of the application key. + # # The last four characters of the application key. attr_accessor :last4 - # Name of the application key. + # # Name of the application key. attr_accessor :name - # Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys. + # # Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys. attr_accessor :scopes # Attribute mapping from ruby-style variable name to JSON key. 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 85ab8cdb99d..98bcba0aa66 100644 --- a/lib/datadog_api_client/v2/models/http_log_error.rb +++ b/lib/datadog_api_client/v2/models/http_log_error.rb @@ -23,13 +23,13 @@ class HTTPLogError # @!visibility private attr_accessor :_unparsed - # Error message. + # # Error message. attr_accessor :detail - # Error code. + # # Error code. attr_accessor :status - # Error title. + # # Error title. attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. 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 d782a2cc486..6c7d8bfcad8 100644 --- a/lib/datadog_api_client/v2/models/http_log_errors.rb +++ b/lib/datadog_api_client/v2/models/http_log_errors.rb @@ -23,7 +23,7 @@ class HTTPLogErrors # @!visibility private attr_accessor :_unparsed - # Structured errors. + # # Structured errors. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. 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 01df12d83fa..bc438cad969 100644 --- a/lib/datadog_api_client/v2/models/http_log_item.rb +++ b/lib/datadog_api_client/v2/models/http_log_item.rb @@ -23,23 +23,23 @@ class HTTPLogItem # @!visibility private attr_accessor :_unparsed - # The integration name associated with your log: the technology from which the log originated. + # # The integration name associated with your log: the technology from which the log originated. # When it matches an integration name, Datadog automatically installs the corresponding parsers and facets. # See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes). attr_accessor :ddsource - # Tags associated with your logs. + # # Tags associated with your logs. attr_accessor :ddtags - # The name of the originating host of the log. + # # The name of the originating host of the log. attr_accessor :hostname - # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) + # # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) # of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. # That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. attr_accessor :message - # The name of the application or service generating the log events. + # # The name of the application or service generating the log events. # It is used to switch from Logs to APM, so make sure you define the same value when you use both products. # See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes). attr_accessor :service 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 a7e695c7f1f..496efa97a4d 100644 --- a/lib/datadog_api_client/v2/models/incident_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_create_attributes.rb @@ -23,19 +23,19 @@ class IncidentCreateAttributes # @!visibility private attr_accessor :_unparsed - # A flag indicating whether the incident caused customer impact. + # # A flag indicating whether the incident caused customer impact. attr_accessor :customer_impacted - # A condensed view of the user-defined fields for which to create initial selections. + # # A condensed view of the user-defined fields for which to create initial selections. attr_accessor :fields - # An array of initial timeline cells to be placed at the beginning of the incident timeline. + # # An array of initial timeline cells to be placed at the beginning of the incident timeline. attr_accessor :initial_cells - # Notification handles that will be notified of the incident at creation. + # # Notification handles that will be notified of the incident at creation. attr_accessor :notification_handles - # The title of the incident, which summarizes what happened. + # # The title of the incident, which summarizes what happened. attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. 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 20ef53f9e54..463775cfe89 100644 --- a/lib/datadog_api_client/v2/models/incident_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_create_data.rb @@ -23,13 +23,13 @@ class IncidentCreateData # @!visibility private attr_accessor :_unparsed - # The incident's attributes for a create request. + # # The incident's attributes for a create request. attr_accessor :attributes - # The relationships the incident will have with other resources once created. + # # The relationships the incident will have with other resources once created. attr_accessor :relationships - # Incident resource type. + # # Incident resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 8bb1bf800ad..44026288aca 100644 --- a/lib/datadog_api_client/v2/models/incident_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_create_relationships.rb @@ -23,7 +23,7 @@ class IncidentCreateRelationships # @!visibility private attr_accessor :_unparsed - # Relationship to user. + # # Relationship to user. attr_accessor :commander # Attribute mapping from ruby-style variable name to JSON key. 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 fecf57b0419..7c0d213c6ad 100644 --- a/lib/datadog_api_client/v2/models/incident_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_create_request.rb @@ -23,7 +23,7 @@ class IncidentCreateRequest # @!visibility private attr_accessor :_unparsed - # Incident data for a create request. + # # Incident data for a create request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 c5581fa6341..4eaa0357c99 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 @@ -23,10 +23,10 @@ class IncidentFieldAttributesMultipleValue # @!visibility private attr_accessor :_unparsed - # Type of the multiple value field definitions. + # # Type of the multiple value field definitions. attr_accessor :type - # The multiple values selected for this field. + # # The multiple values selected for this field. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 280f981fb90..32fcb9d7b10 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 @@ -23,10 +23,10 @@ class IncidentFieldAttributesSingleValue # @!visibility private attr_accessor :_unparsed - # Type of the single value field definitions. + # # Type of the single value field definitions. attr_accessor :type - # The single value selected for this field. + # # The single value selected for this field. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 480da22863f..9e15144e9d8 100644 --- a/lib/datadog_api_client/v2/models/incident_notification_handle.rb +++ b/lib/datadog_api_client/v2/models/incident_notification_handle.rb @@ -23,10 +23,10 @@ class IncidentNotificationHandle # @!visibility private attr_accessor :_unparsed - # The name of the notified handle. + # # The name of the notified handle. attr_accessor :display_name - # The email address used for the notification. + # # The email address used for the notification. attr_accessor :handle # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/incident_response.rb b/lib/datadog_api_client/v2/models/incident_response.rb index e5c1091bd0a..b02e77dbb7b 100644 --- a/lib/datadog_api_client/v2/models/incident_response.rb +++ b/lib/datadog_api_client/v2/models/incident_response.rb @@ -23,10 +23,10 @@ class IncidentResponse # @!visibility private attr_accessor :_unparsed - # Incident data from a response. + # # Incident data from a response. attr_accessor :data - # Included related resources that the user requested. + # # Included related resources that the user requested. attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. 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 78b05a5d6f9..d80c06f1dd3 100644 --- a/lib/datadog_api_client/v2/models/incident_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_response_attributes.rb @@ -23,60 +23,60 @@ class IncidentResponseAttributes # @!visibility private attr_accessor :_unparsed - # Timestamp when the incident was created. + # # Timestamp when the incident was created. attr_accessor :created - # Length of the incident's customer impact in seconds. + # # Length of the incident's customer impact in seconds. # Equals the difference between `customer_impact_start` and `customer_impact_end`. attr_accessor :customer_impact_duration - # Timestamp when customers were no longer impacted by the incident. + # # Timestamp when customers were no longer impacted by the incident. attr_accessor :customer_impact_end - # A summary of the impact customers experienced during the incident. + # # A summary of the impact customers experienced during the incident. attr_accessor :customer_impact_scope - # Timestamp when customers began being impacted by the incident. + # # Timestamp when customers began being impacted by the incident. attr_accessor :customer_impact_start - # A flag indicating whether the incident caused customer impact. + # # A flag indicating whether the incident caused customer impact. attr_accessor :customer_impacted - # Timestamp when the incident was detected. + # # Timestamp when the incident was detected. attr_accessor :detected - # A condensed view of the user-defined fields attached to incidents. + # # A condensed view of the user-defined fields attached to incidents. attr_accessor :fields - # Timestamp when the incident was last modified. + # # Timestamp when the incident was last modified. attr_accessor :modified - # Notification handles that will be notified of the incident during update. + # # Notification handles that will be notified of the incident during update. attr_accessor :notification_handles - # The UUID of the postmortem object attached to the incident. + # # The UUID of the postmortem object attached to the incident. attr_accessor :postmortem_id - # The monotonically increasing integer ID for the incident. + # # The monotonically increasing integer ID for the incident. attr_accessor :public_id - # Timestamp when the incident's state was set to resolved. + # # Timestamp when the incident's state was set to resolved. attr_accessor :resolved - # The amount of time in seconds to detect the incident. + # # The amount of time in seconds to detect the incident. # Equals the difference between `customer_impact_start` and `detected`. attr_accessor :time_to_detect - # The amount of time in seconds to call incident after detection. Equals the difference of `detected` and `created`. + # # The amount of time in seconds to call incident after detection. Equals the difference of `detected` and `created`. attr_accessor :time_to_internal_response - # The amount of time in seconds to resolve customer impact after detecting the issue. Equals the difference between `customer_impact_end` and `detected`. + # # The amount of time in seconds to resolve customer impact after detecting the issue. Equals the difference between `customer_impact_end` and `detected`. attr_accessor :time_to_repair - # The amount of time in seconds to resolve the incident after it was created. Equals the difference between `created` and `resolved`. + # # The amount of time in seconds to resolve the incident after it was created. Equals the difference between `created` and `resolved`. attr_accessor :time_to_resolve - # The title of the incident, which summarizes what happened. + # # The title of the incident, which summarizes what happened. attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. 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 71a16f75d4d..56e47f42c9c 100644 --- a/lib/datadog_api_client/v2/models/incident_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_response_data.rb @@ -23,16 +23,16 @@ class IncidentResponseData # @!visibility private attr_accessor :_unparsed - # The incident's attributes from a response. + # # The incident's attributes from a response. attr_accessor :attributes - # The incident's ID. + # # The incident's ID. attr_accessor :id - # The incident's relationships from a response. + # # The incident's relationships from a response. attr_accessor :relationships - # Incident resource type. + # # Incident resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 7d467a134f4..50949cfa120 100644 --- a/lib/datadog_api_client/v2/models/incident_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_response_relationships.rb @@ -23,19 +23,19 @@ class IncidentResponseRelationships # @!visibility private attr_accessor :_unparsed - # Relationship to user. + # # Relationship to user. attr_accessor :commander_user - # Relationship to user. + # # Relationship to user. attr_accessor :created_by_user - # A relationship reference for multiple integration metadata objects. + # # A relationship reference for multiple integration metadata objects. attr_accessor :integrations - # Relationship to user. + # # Relationship to user. attr_accessor :last_modified_by_user - # A relationship reference for postmortems. + # # A relationship reference for postmortems. attr_accessor :postmortem # Attribute mapping from ruby-style variable name to JSON key. 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 db2730f16ce..903a775ac1e 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 @@ -23,7 +23,7 @@ class IncidentServiceCreateAttributes # @!visibility private attr_accessor :_unparsed - # Name of the incident service. + # # Name of the incident service. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 01f1dae7d9f..4ef049d8d18 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 @@ -23,13 +23,13 @@ class IncidentServiceCreateData # @!visibility private attr_accessor :_unparsed - # The incident service's attributes for a create request. + # # The incident service's attributes for a create request. attr_accessor :attributes - # The incident service's relationships. + # # The incident service's relationships. attr_accessor :relationships - # Incident service resource type. + # # Incident service resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 b6289418b41..5ae097498b3 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 @@ -23,7 +23,7 @@ class IncidentServiceCreateRequest # @!visibility private attr_accessor :_unparsed - # Incident Service payload for create requests. + # # Incident Service payload for create requests. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 0b9ea5465e4..3c85d7db7c7 100644 --- a/lib/datadog_api_client/v2/models/incident_service_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_service_relationships.rb @@ -23,10 +23,10 @@ class IncidentServiceRelationships # @!visibility private attr_accessor :_unparsed - # Relationship to user. + # # Relationship to user. attr_accessor :created_by - # Relationship to user. + # # Relationship to user. attr_accessor :last_modified_by # Attribute mapping from ruby-style variable name to JSON key. 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 7889bb667fe..d078b1a484f 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response.rb @@ -23,10 +23,10 @@ class IncidentServiceResponse # @!visibility private attr_accessor :_unparsed - # Incident Service data from responses. + # # Incident Service data from responses. attr_accessor :data - # Included objects from relationships. + # # Included objects from relationships. attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. 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 c0bbf5182fe..18b38acb4c2 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 @@ -23,13 +23,13 @@ class IncidentServiceResponseAttributes # @!visibility private attr_accessor :_unparsed - # Timestamp of when the incident service was created. + # # Timestamp of when the incident service was created. attr_accessor :created - # Timestamp of when the incident service was modified. + # # Timestamp of when the incident service was modified. attr_accessor :modified - # Name of the incident service. + # # Name of the incident service. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 4b9077d415b..85e316cfad7 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 @@ -23,16 +23,16 @@ class IncidentServiceResponseData # @!visibility private attr_accessor :_unparsed - # The incident service's attributes from a response. + # # The incident service's attributes from a response. attr_accessor :attributes - # The incident service's ID. + # # The incident service's ID. attr_accessor :id - # The incident service's relationships. + # # The incident service's relationships. attr_accessor :relationships - # Incident service resource type. + # # Incident service resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 e111f8436bf..2d535ca21b5 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 @@ -23,7 +23,7 @@ class IncidentServiceUpdateAttributes # @!visibility private attr_accessor :_unparsed - # Name of the incident service. + # # Name of the incident service. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 8d6815462a0..d46f2fa7f5d 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 @@ -23,16 +23,16 @@ class IncidentServiceUpdateData # @!visibility private attr_accessor :_unparsed - # The incident service's attributes for an update request. + # # The incident service's attributes for an update request. attr_accessor :attributes - # The incident service's ID. + # # The incident service's ID. attr_accessor :id - # The incident service's relationships. + # # The incident service's relationships. attr_accessor :relationships - # Incident service resource type. + # # Incident service resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 d70ec1b3d6a..ffd0ab24c5c 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 @@ -23,7 +23,7 @@ class IncidentServiceUpdateRequest # @!visibility private attr_accessor :_unparsed - # Incident Service payload for update requests. + # # Incident Service payload for update requests. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 e73834d50e3..215e5db9565 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response.rb @@ -23,13 +23,13 @@ class IncidentServicesResponse # @!visibility private attr_accessor :_unparsed - # An array of incident services. + # # An array of incident services. attr_accessor :data - # Included related resources which the user requested. + # # Included related resources which the user requested. attr_accessor :included - # The metadata object containing pagination metadata. + # # The metadata object containing pagination metadata. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/incident_services_response_meta.rb b/lib/datadog_api_client/v2/models/incident_services_response_meta.rb index 94af788b146..c32fa332778 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response_meta.rb @@ -23,7 +23,7 @@ class IncidentServicesResponseMeta # @!visibility private attr_accessor :_unparsed - # Pagination properties. + # # Pagination properties. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb index de2a32a790a..6879a67443a 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb @@ -23,13 +23,13 @@ class IncidentServicesResponseMetaPagination # @!visibility private attr_accessor :_unparsed - # The index of the first element in the next page of results. Equal to page size added to the current offset. + # # The index of the first element in the next page of results. Equal to page size added to the current offset. attr_accessor :next_offset - # The index of the first element in the results. + # # The index of the first element in the results. attr_accessor :offset - # Maximum size of pages to return. + # # Maximum size of pages to return. attr_accessor :size # Attribute mapping from ruby-style variable name to JSON key. 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 6e919c0fec0..39cf3b9a102 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 @@ -23,7 +23,7 @@ class IncidentTeamCreateAttributes # @!visibility private attr_accessor :_unparsed - # Name of the incident team. + # # Name of the incident team. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 13e7e1dcbef..7a1bb4ef459 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 @@ -23,13 +23,13 @@ class IncidentTeamCreateData # @!visibility private attr_accessor :_unparsed - # The incident team's attributes for a create request. + # # The incident team's attributes for a create request. attr_accessor :attributes - # The incident team's relationships. + # # The incident team's relationships. attr_accessor :relationships - # Incident Team resource type. + # # Incident Team resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 d9eed24696b..a5c60470fbb 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 @@ -23,7 +23,7 @@ class IncidentTeamCreateRequest # @!visibility private attr_accessor :_unparsed - # Incident Team data for a create request. + # # Incident Team data for a create request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 e2bb56165a5..7e95913a729 100644 --- a/lib/datadog_api_client/v2/models/incident_team_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_team_relationships.rb @@ -23,10 +23,10 @@ class IncidentTeamRelationships # @!visibility private attr_accessor :_unparsed - # Relationship to user. + # # Relationship to user. attr_accessor :created_by - # Relationship to user. + # # Relationship to user. attr_accessor :last_modified_by # Attribute mapping from ruby-style variable name to JSON key. 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 dcb1be09214..577021d2c1b 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response.rb @@ -23,10 +23,10 @@ class IncidentTeamResponse # @!visibility private attr_accessor :_unparsed - # Incident Team data from a response. + # # Incident Team data from a response. attr_accessor :data - # Included objects from relationships. + # # Included objects from relationships. attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. 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 c825f20a39c..5b1dd195836 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 @@ -23,13 +23,13 @@ class IncidentTeamResponseAttributes # @!visibility private attr_accessor :_unparsed - # Timestamp of when the incident team was created. + # # Timestamp of when the incident team was created. attr_accessor :created - # Timestamp of when the incident team was modified. + # # Timestamp of when the incident team was modified. attr_accessor :modified - # Name of the incident team. + # # Name of the incident team. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 d484b8fe0e9..7fd901d9030 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 @@ -23,16 +23,16 @@ class IncidentTeamResponseData # @!visibility private attr_accessor :_unparsed - # The incident team's attributes from a response. + # # The incident team's attributes from a response. attr_accessor :attributes - # The incident team's ID. + # # The incident team's ID. attr_accessor :id - # The incident team's relationships. + # # The incident team's relationships. attr_accessor :relationships - # Incident Team resource type. + # # Incident Team resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 9f3d6196540..d0e3715c860 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 @@ -23,7 +23,7 @@ class IncidentTeamUpdateAttributes # @!visibility private attr_accessor :_unparsed - # Name of the incident team. + # # Name of the incident team. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 c12dcc88cc4..7fe1d53e8d4 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 @@ -23,16 +23,16 @@ class IncidentTeamUpdateData # @!visibility private attr_accessor :_unparsed - # The incident team's attributes for an update request. + # # The incident team's attributes for an update request. attr_accessor :attributes - # The incident team's ID. + # # The incident team's ID. attr_accessor :id - # The incident team's relationships. + # # The incident team's relationships. attr_accessor :relationships - # Incident Team resource type. + # # Incident Team resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3b1e3fab946..476cf500bd2 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 @@ -23,7 +23,7 @@ class IncidentTeamUpdateRequest # @!visibility private attr_accessor :_unparsed - # Incident Team data for an update request. + # # Incident Team data for an update request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 9e95523a098..544f299c5ac 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response.rb @@ -23,13 +23,13 @@ class IncidentTeamsResponse # @!visibility private attr_accessor :_unparsed - # An array of incident teams. + # # An array of incident teams. attr_accessor :data - # Included related resources which the user requested. + # # Included related resources which the user requested. attr_accessor :included - # The metadata object containing pagination metadata. + # # The metadata object containing pagination metadata. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb b/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb index 99f8d14e005..17400e1d951 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb @@ -23,7 +23,7 @@ class IncidentTeamsResponseMeta # @!visibility private attr_accessor :_unparsed - # Pagination properties. + # # Pagination properties. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb index bc2705f3dfc..0d8d1846cb5 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb @@ -23,13 +23,13 @@ class IncidentTeamsResponseMetaPagination # @!visibility private attr_accessor :_unparsed - # The index of the first element in the next page of results. Equal to page size added to the current offset. + # # The index of the first element in the next page of results. Equal to page size added to the current offset. attr_accessor :next_offset - # The index of the first element in the results. + # # The index of the first element in the results. attr_accessor :offset - # Maximum size of pages to return. + # # Maximum size of pages to return. attr_accessor :size # Attribute mapping from ruby-style variable name to JSON key. 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 58c765d1072..1d6d5c8cebe 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 @@ -23,13 +23,13 @@ class IncidentTimelineCellMarkdownCreateAttributes # @!visibility private attr_accessor :_unparsed - # Type of the Markdown timeline cell. + # # Type of the Markdown timeline cell. attr_accessor :cell_type - # The Markdown timeline cell contents. + # # The Markdown timeline cell contents. attr_accessor :content - # A flag indicating whether the timeline cell is important and should be highlighted. + # # A flag indicating whether the timeline cell is important and should be highlighted. attr_accessor :important # Attribute mapping from ruby-style variable name to JSON key. 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 2bea024fbe9..d6930f17c57 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 @@ -23,7 +23,7 @@ class IncidentTimelineCellMarkdownCreateAttributesContent # @!visibility private attr_accessor :_unparsed - # The Markdown content of the cell. + # # The Markdown content of the cell. attr_accessor :content # Attribute mapping from ruby-style variable name to JSON key. 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 dd6d6a8563b..72534269116 100644 --- a/lib/datadog_api_client/v2/models/incident_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_update_attributes.rb @@ -23,31 +23,31 @@ class IncidentUpdateAttributes # @!visibility private attr_accessor :_unparsed - # Timestamp when customers were no longer impacted by the incident. + # # Timestamp when customers were no longer impacted by the incident. attr_accessor :customer_impact_end - # A summary of the impact customers experienced during the incident. + # # A summary of the impact customers experienced during the incident. attr_accessor :customer_impact_scope - # Timestamp when customers began being impacted by the incident. + # # Timestamp when customers began being impacted by the incident. attr_accessor :customer_impact_start - # A flag indicating whether the incident caused customer impact. + # # A flag indicating whether the incident caused customer impact. attr_accessor :customer_impacted - # Timestamp when the incident was detected. + # # Timestamp when the incident was detected. attr_accessor :detected - # A condensed view of the user-defined fields for which to update selections. + # # A condensed view of the user-defined fields for which to update selections. attr_accessor :fields - # Notification handles that will be notified of the incident during update. + # # Notification handles that will be notified of the incident during update. attr_accessor :notification_handles - # Timestamp when the incident's state was set to resolved. + # # Timestamp when the incident's state was set to resolved. attr_accessor :resolved - # The title of the incident, which summarizes what happened. + # # The title of the incident, which summarizes what happened. attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. 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 de8937c91d4..2eac3132af7 100644 --- a/lib/datadog_api_client/v2/models/incident_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_update_data.rb @@ -23,16 +23,16 @@ class IncidentUpdateData # @!visibility private attr_accessor :_unparsed - # The incident's attributes for an update request. + # # The incident's attributes for an update request. attr_accessor :attributes - # The team's ID. + # # The team's ID. attr_accessor :id - # The incident's relationships for an update request. + # # The incident's relationships for an update request. attr_accessor :relationships - # Incident resource type. + # # Incident resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 330a032d56b..172db58f75f 100644 --- a/lib/datadog_api_client/v2/models/incident_update_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_update_relationships.rb @@ -23,19 +23,19 @@ class IncidentUpdateRelationships # @!visibility private attr_accessor :_unparsed - # Relationship to user. + # # Relationship to user. attr_accessor :commander_user - # Relationship to user. + # # Relationship to user. attr_accessor :created_by_user - # A relationship reference for multiple integration metadata objects. + # # A relationship reference for multiple integration metadata objects. attr_accessor :integrations - # Relationship to user. + # # Relationship to user. attr_accessor :last_modified_by_user - # A relationship reference for postmortems. + # # A relationship reference for postmortems. attr_accessor :postmortem # Attribute mapping from ruby-style variable name to JSON key. 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 27956022d9d..2a687beda4f 100644 --- a/lib/datadog_api_client/v2/models/incident_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_update_request.rb @@ -23,7 +23,7 @@ class IncidentUpdateRequest # @!visibility private attr_accessor :_unparsed - # Incident data for an update request. + # # Incident data for an update request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/incidents_response.rb b/lib/datadog_api_client/v2/models/incidents_response.rb index 168bb224318..26691406446 100644 --- a/lib/datadog_api_client/v2/models/incidents_response.rb +++ b/lib/datadog_api_client/v2/models/incidents_response.rb @@ -23,13 +23,13 @@ class IncidentsResponse # @!visibility private attr_accessor :_unparsed - # An array of incidents. + # # An array of incidents. attr_accessor :data - # Included related resources that the user requested. + # # Included related resources that the user requested. attr_accessor :included - # The metadata object containing pagination metadata. + # # The metadata object containing pagination metadata. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/incidents_response_meta.rb b/lib/datadog_api_client/v2/models/incidents_response_meta.rb index 6230e4bbc71..6c0c4bcb41f 100644 --- a/lib/datadog_api_client/v2/models/incidents_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incidents_response_meta.rb @@ -23,7 +23,7 @@ class IncidentsResponseMeta # @!visibility private attr_accessor :_unparsed - # Pagination properties. + # # Pagination properties. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb index bca22823c57..a78200699fb 100644 --- a/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb @@ -23,13 +23,13 @@ class IncidentsResponseMetaPagination # @!visibility private attr_accessor :_unparsed - # The index of the first element in the next page of results. Equal to page size added to the current offset. + # # The index of the first element in the next page of results. Equal to page size added to the current offset. attr_accessor :next_offset - # The index of the first element in the results. + # # The index of the first element in the results. attr_accessor :offset - # Maximum size of pages to return. + # # Maximum size of pages to return. attr_accessor :size # Attribute mapping from ruby-style variable name to JSON key. 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 0d8bcbec48c..6c14f4bde14 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 @@ -23,10 +23,10 @@ class ListApplicationKeysResponse # @!visibility private attr_accessor :_unparsed - # Array of application keys. + # # Array of application keys. attr_accessor :data - # Array of objects related to the application key. + # # Array of objects related to the application key. attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/log.rb b/lib/datadog_api_client/v2/models/log.rb index 0db27f69170..b10762c6ca0 100644 --- a/lib/datadog_api_client/v2/models/log.rb +++ b/lib/datadog_api_client/v2/models/log.rb @@ -23,13 +23,13 @@ class Log # @!visibility private attr_accessor :_unparsed - # JSON object containing all log attributes and their associated values. + # # JSON object containing all log attributes and their associated values. attr_accessor :attributes - # Unique ID of the Log. + # # Unique ID of the Log. attr_accessor :id - # Type of the event. + # # Type of the event. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/log_attributes.rb b/lib/datadog_api_client/v2/models/log_attributes.rb index 7569f945352..081513ce9e1 100644 --- a/lib/datadog_api_client/v2/models/log_attributes.rb +++ b/lib/datadog_api_client/v2/models/log_attributes.rb @@ -23,29 +23,29 @@ class LogAttributes # @!visibility private attr_accessor :_unparsed - # JSON object of attributes from your log. + # # JSON object of attributes from your log. attr_accessor :attributes - # Name of the machine from where the logs are being sent. + # # Name of the machine from where the logs are being sent. attr_accessor :host - # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) + # # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) # of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. # That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. attr_accessor :message - # The name of the application or service generating the log events. + # # The name of the application or service generating the log events. # It is used to switch from Logs to APM, so make sure you define the same # value when you use both products. attr_accessor :service - # Status of the message associated with your log. + # # Status of the message associated with your log. attr_accessor :status - # Array of tags associated with your log. + # # Array of tags associated with your log. attr_accessor :tags - # Timestamp of your log. + # # Timestamp of your log. attr_accessor :timestamp # Attribute mapping from ruby-style variable name to JSON key. 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 34cd1e770c9..1748f95794c 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb @@ -23,10 +23,10 @@ class LogsAggregateBucket # @!visibility private attr_accessor :_unparsed - # The key, value pairs for each group by + # # The key, value pairs for each group by attr_accessor :by - # A map of the metric name -> value for regular compute or list of values for a timeseries + # # A map of the metric name -> value for regular compute or list of values for a timeseries attr_accessor :computes # Attribute mapping from ruby-style variable name to JSON key. 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 d762f30c963..9e76e3c7c22 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 @@ -23,10 +23,10 @@ class LogsAggregateBucketValueTimeseriesPoint # @!visibility private attr_accessor :_unparsed - # The time value for this point + # # The time value for this point attr_accessor :time - # The value for this point + # # The value for this point attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 bb6db1dea10..a894db95547 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_request.rb @@ -23,20 +23,20 @@ class LogsAggregateRequest # @!visibility private attr_accessor :_unparsed - # The list of metrics or timeseries to compute for the retrieved buckets. + # # The list of metrics or timeseries to compute for the retrieved buckets. attr_accessor :compute - # The search and filter query settings + # # The search and filter query settings attr_accessor :filter - # The rules for the group by + # # The rules for the group by attr_accessor :group_by - # Global query options that are used during the query. + # # Global query options that are used during the query. # Note: You should only supply timezone or time offset but not both otherwise the query will fail. attr_accessor :options - # Paging settings + # # Paging settings attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. 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 c3cc90ecbc0..745e6b0784d 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 @@ -23,7 +23,7 @@ class LogsAggregateRequestPage # @!visibility private attr_accessor :_unparsed - # The returned paging point to use to get the next results + # # The returned paging point to use to get the next results attr_accessor :cursor # Attribute mapping from ruby-style variable name to JSON key. 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 2f8d7b3c0a2..f8feb75b3ae 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_response.rb @@ -23,10 +23,10 @@ class LogsAggregateResponse # @!visibility private attr_accessor :_unparsed - # The query results + # # The query results attr_accessor :data - # The metadata associated with a request + # # The metadata associated with a request attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 f34000321dd..1f5aac2e111 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 @@ -23,7 +23,7 @@ class LogsAggregateResponseData # @!visibility private attr_accessor :_unparsed - # The list of matching buckets, one item per bucket + # # The list of matching buckets, one item per bucket attr_accessor :buckets # Attribute mapping from ruby-style variable name to JSON key. 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 8df418797e5..49e37298507 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb @@ -23,16 +23,16 @@ class LogsAggregateSort # @!visibility private attr_accessor :_unparsed - # An aggregation function + # # An aggregation function attr_accessor :aggregation - # The metric to sort by (only used for `type=measure`) + # # The metric to sort by (only used for `type=measure`) attr_accessor :metric - # The order to use, ascending or descending + # # The order to use, ascending or descending attr_accessor :order - # The type of sorting algorithm + # # The type of sorting algorithm attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/logs_archive.rb b/lib/datadog_api_client/v2/models/logs_archive.rb index a3226b59675..2b1dd113c2b 100644 --- a/lib/datadog_api_client/v2/models/logs_archive.rb +++ b/lib/datadog_api_client/v2/models/logs_archive.rb @@ -23,7 +23,7 @@ class LogsArchive # @!visibility private attr_accessor :_unparsed - # The definition of an archive. + # # The definition of an archive. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 bb0171033a6..c80fe237eb7 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb @@ -23,23 +23,23 @@ class LogsArchiveAttributes # @!visibility private attr_accessor :_unparsed - # An archive's destination. + # # An archive's destination. attr_accessor :destination - # To store the tags in the archive, set the value "true". + # # To store the tags in the archive, set the value "true". # If it is set to "false", the tags will be deleted when the logs are sent to the archive. attr_accessor :include_tags - # The archive name. + # # The archive name. attr_accessor :name - # The archive query/filter. Logs matching this query are included in the archive. + # # The archive query/filter. Logs matching this query are included in the archive. attr_accessor :query - # An array of tags to add to rehydrated logs from an archive. + # # An array of tags to add to rehydrated logs from an archive. attr_accessor :rehydration_tags - # The state of the archive. + # # The state of the archive. attr_accessor :state # Attribute mapping from ruby-style variable name to JSON key. 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 333628679a1..9671d9cdbee 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 @@ -23,7 +23,7 @@ class LogsArchiveCreateRequest # @!visibility private attr_accessor :_unparsed - # The definition of an archive. + # # The definition of an archive. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 7654cd9fe84..f09832e6b01 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 @@ -23,20 +23,20 @@ class LogsArchiveCreateRequestAttributes # @!visibility private attr_accessor :_unparsed - # An archive's destination. + # # An archive's destination. attr_accessor :destination - # To store the tags in the archive, set the value "true". + # # To store the tags in the archive, set the value "true". # If it is set to "false", the tags will be deleted when the logs are sent to the archive. attr_accessor :include_tags - # The archive name. + # # The archive name. attr_accessor :name - # The archive query/filter. Logs matching this query are included in the archive. + # # The archive query/filter. Logs matching this query are included in the archive. attr_accessor :query - # An array of tags to add to rehydrated logs from an archive. + # # An array of tags to add to rehydrated logs from an archive. attr_accessor :rehydration_tags # Attribute mapping from ruby-style variable name to JSON key. 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 a9008d2248d..b9ddb525655 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 @@ -23,10 +23,10 @@ class LogsArchiveCreateRequestDefinition # @!visibility private attr_accessor :_unparsed - # The attributes associated with the archive. + # # The attributes associated with the archive. attr_accessor :attributes - # The type of the resource. The value should always be archives. + # # The type of the resource. The value should always be archives. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 82e9ef9652a..4ba47a207d6 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_definition.rb @@ -23,13 +23,13 @@ class LogsArchiveDefinition # @!visibility private attr_accessor :_unparsed - # The attributes associated with the archive. + # # The attributes associated with the archive. attr_accessor :attributes - # The archive ID. + # # The archive ID. attr_accessor :id - # The type of the resource. The value should always be archives. + # # The type of the resource. The value should always be archives. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 69ec319b3be..84469127fc9 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 @@ -23,22 +23,22 @@ class LogsArchiveDestinationAzure # @!visibility private attr_accessor :_unparsed - # The container where the archive will be stored. + # # The container where the archive will be stored. attr_accessor :container - # The Azure archive's integration destination. + # # The Azure archive's integration destination. attr_accessor :integration - # The archive path. + # # The archive path. attr_accessor :path - # The region where the archive will be stored. + # # The region where the archive will be stored. attr_accessor :region - # The associated storage account. + # # The associated storage account. attr_accessor :storage_account - # Type of the Azure archive destination. + # # Type of the Azure archive destination. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 babd3eccb72..af9d68d84e7 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 @@ -23,16 +23,16 @@ class LogsArchiveDestinationGCS # @!visibility private attr_accessor :_unparsed - # The bucket where the archive will be stored. + # # The bucket where the archive will be stored. attr_accessor :bucket - # The GCS archive's integration destination. + # # The GCS archive's integration destination. attr_accessor :integration - # The archive path. + # # The archive path. attr_accessor :path - # Type of the GCS archive destination. + # # Type of the GCS archive destination. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 a2b463fde86..b568ac022a2 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 @@ -23,16 +23,16 @@ class LogsArchiveDestinationS3 # @!visibility private attr_accessor :_unparsed - # The bucket where the archive will be stored. + # # The bucket where the archive will be stored. attr_accessor :bucket - # The S3 Archive's integration destination. + # # The S3 Archive's integration destination. attr_accessor :integration - # The archive path. + # # The archive path. attr_accessor :path - # Type of the S3 archive destination. + # # Type of the S3 archive destination. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 db9138bdf2a..2c807d5cb7b 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 @@ -23,10 +23,10 @@ class LogsArchiveIntegrationAzure # @!visibility private attr_accessor :_unparsed - # A client ID. + # # A client ID. attr_accessor :client_id - # A tenant ID. + # # A tenant ID. attr_accessor :tenant_id # Attribute mapping from ruby-style variable name to JSON key. 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 f88ba39621b..82933d089ee 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 @@ -23,10 +23,10 @@ class LogsArchiveIntegrationGCS # @!visibility private attr_accessor :_unparsed - # A client email. + # # A client email. attr_accessor :client_email - # A project ID. + # # A project ID. attr_accessor :project_id # Attribute mapping from ruby-style variable name to JSON key. 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 b2e11a5100c..9469b4a8095 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 @@ -23,10 +23,10 @@ class LogsArchiveIntegrationS3 # @!visibility private attr_accessor :_unparsed - # The account ID for the integration. + # # The account ID for the integration. attr_accessor :account_id - # The path of the integration. + # # The path of the integration. attr_accessor :role_name # Attribute mapping from ruby-style variable name to JSON key. 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 10a0712042f..3e564e248fe 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order.rb @@ -23,7 +23,7 @@ class LogsArchiveOrder # @!visibility private attr_accessor :_unparsed - # The definition of an archive order. + # # The definition of an archive order. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 aa486a046d1..3e1c9ba15e5 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 @@ -23,7 +23,7 @@ class LogsArchiveOrderAttributes # @!visibility private attr_accessor :_unparsed - # An ordered array of `` strings, the order of archive IDs in the array + # # An ordered array of `` strings, the order of archive IDs in the array # define the overall archives order for Datadog. attr_accessor :archive_ids 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 17349ae12be..2fc8be8e3c8 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 @@ -23,10 +23,10 @@ class LogsArchiveOrderDefinition # @!visibility private attr_accessor :_unparsed - # The attributes associated with the archive order. + # # The attributes associated with the archive order. attr_accessor :attributes - # Type of the archive order definition. + # # Type of the archive order definition. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/logs_archives.rb b/lib/datadog_api_client/v2/models/logs_archives.rb index 6fe6fbd02f3..452f29d33e3 100644 --- a/lib/datadog_api_client/v2/models/logs_archives.rb +++ b/lib/datadog_api_client/v2/models/logs_archives.rb @@ -23,7 +23,7 @@ class LogsArchives # @!visibility private attr_accessor :_unparsed - # A list of archives. + # # A list of archives. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/logs_compute.rb b/lib/datadog_api_client/v2/models/logs_compute.rb index 30014521ecb..49c09768ab6 100644 --- a/lib/datadog_api_client/v2/models/logs_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_compute.rb @@ -23,17 +23,17 @@ class LogsCompute # @!visibility private attr_accessor :_unparsed - # An aggregation function + # # An aggregation function attr_accessor :aggregation - # The time buckets' size (only used for type=timeseries) + # # The time buckets' size (only used for type=timeseries) # Defaults to a resolution of 150 points attr_accessor :interval - # The metric to use + # # The metric to use attr_accessor :metric - # The type of compute + # # The type of compute attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 16a3d99b4d3..2d98ee5619a 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by.rb @@ -23,23 +23,23 @@ class LogsGroupBy # @!visibility private attr_accessor :_unparsed - # The name of the facet to use (required) + # # The name of the facet to use (required) attr_accessor :facet - # Used to perform a histogram computation (only for measure facets). + # # Used to perform a histogram computation (only for measure facets). # Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval. attr_accessor :histogram - # The maximum buckets to return for this group by + # # The maximum buckets to return for this group by attr_accessor :limit - # The value to use for logs that don't have the facet used to group by + # # The value to use for logs that don't have the facet used to group by attr_accessor :missing - # A sort rule + # # A sort rule attr_accessor :sort - # A resulting object to put the given computes in over all the matching records. + # # A resulting object to put the given computes in over all the matching records. attr_accessor :total # Attribute mapping from ruby-style variable name to JSON key. 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 d94ef8ccc63..695c9b973e0 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 @@ -24,14 +24,14 @@ class LogsGroupByHistogram # @!visibility private attr_accessor :_unparsed - # The bin size of the histogram buckets + # # The bin size of the histogram buckets attr_accessor :interval - # The maximum value for the measure used in the histogram + # # The maximum value for the measure used in the histogram # (values greater than this one are filtered out) attr_accessor :max - # The minimum value for the measure used in the histogram + # # The minimum value for the measure used in the histogram # (values smaller than this one are filtered out) attr_accessor :min 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 6fdc85fb860..725ced5098e 100644 --- a/lib/datadog_api_client/v2/models/logs_list_request.rb +++ b/lib/datadog_api_client/v2/models/logs_list_request.rb @@ -23,17 +23,17 @@ class LogsListRequest # @!visibility private attr_accessor :_unparsed - # The search and filter query settings + # # The search and filter query settings attr_accessor :filter - # Global query options that are used during the query. + # # Global query options that are used during the query. # Note: You should only supply timezone or time offset but not both otherwise the query will fail. attr_accessor :options - # Paging attributes for listing logs. + # # Paging attributes for listing logs. attr_accessor :page - # Sort parameters when querying logs. + # # Sort parameters when querying logs. attr_accessor :sort # Attribute mapping from ruby-style variable name to JSON key. 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 4c945e91f29..0662e01c8d6 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 @@ -23,10 +23,10 @@ class LogsListRequestPage # @!visibility private attr_accessor :_unparsed - # List following results with a cursor provided in the previous query. + # # List following results with a cursor provided in the previous query. attr_accessor :cursor - # Maximum number of logs in the response. + # # Maximum number of logs in the response. attr_accessor :limit # Attribute mapping from ruby-style variable name to JSON key. 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 0fdb32f8788..475885eb567 100644 --- a/lib/datadog_api_client/v2/models/logs_list_response.rb +++ b/lib/datadog_api_client/v2/models/logs_list_response.rb @@ -23,13 +23,13 @@ class LogsListResponse # @!visibility private attr_accessor :_unparsed - # Array of logs matching the request. + # # Array of logs matching the request. attr_accessor :data - # Links attributes. + # # Links attributes. attr_accessor :links - # The metadata associated with a request + # # The metadata associated with a request attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 2a63407699a..8294cb62c1c 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 @@ -23,7 +23,7 @@ class LogsListResponseLinks # @!visibility private attr_accessor :_unparsed - # Link for the next set of results. Note that the request can also be made using the + # # Link for the next set of results. Note that the request can also be made using the # POST endpoint. attr_accessor :_next 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 c0538a16385..b6fcb4b6c83 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_compute.rb @@ -23,10 +23,10 @@ class LogsMetricCompute # @!visibility private attr_accessor :_unparsed - # The type of aggregation to use. + # # The type of aggregation to use. attr_accessor :aggregation_type - # The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution"). + # # The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution"). attr_accessor :path # Attribute mapping from ruby-style variable name to JSON key. 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 f4ad6968ec4..bf91151630e 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 @@ -23,13 +23,13 @@ class LogsMetricCreateAttributes # @!visibility private attr_accessor :_unparsed - # The compute rule to compute the log-based metric. + # # The compute rule to compute the log-based metric. attr_accessor :compute - # The log-based metric filter. Logs matching this filter will be aggregated in this metric. + # # The log-based metric filter. Logs matching this filter will be aggregated in this metric. attr_accessor :filter - # The rules for the group by. + # # The rules for the group by. attr_accessor :group_by # Attribute mapping from ruby-style variable name to JSON key. 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 71cf2ea4e74..838f89311f4 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 @@ -23,13 +23,13 @@ class LogsMetricCreateData # @!visibility private attr_accessor :_unparsed - # The object describing the Datadog log-based metric to create. + # # The object describing the Datadog log-based metric to create. attr_accessor :attributes - # The name of the log-based metric. + # # The name of the log-based metric. attr_accessor :id - # The type of the resource. The value should always be logs_metrics. + # # The type of the resource. The value should always be logs_metrics. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 afa3b6c6d6f..66c7708286f 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 @@ -23,7 +23,7 @@ class LogsMetricCreateRequest # @!visibility private attr_accessor :_unparsed - # The new log-based metric properties. + # # The new log-based metric properties. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 8f14d8a9e2f..8b662559fa4 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_filter.rb @@ -23,7 +23,7 @@ class LogsMetricFilter # @!visibility private attr_accessor :_unparsed - # The search query - following the log search syntax. + # # The search query - following the log search syntax. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 dff050f7d35..5a7bbc4cc83 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 @@ -23,10 +23,10 @@ class LogsMetricGroupBy # @!visibility private attr_accessor :_unparsed - # The path to the value the log-based metric will be aggregated over. + # # The path to the value the log-based metric will be aggregated over. attr_accessor :path - # Eventual name of the tag that gets created. By default, the path attribute is used as the tag name. + # # Eventual name of the tag that gets created. By default, the path attribute is used as the tag name. attr_accessor :tag_name # Attribute mapping from ruby-style variable name to JSON key. 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 bae53a2b845..d0320b52e67 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response.rb @@ -23,7 +23,7 @@ class LogsMetricResponse # @!visibility private attr_accessor :_unparsed - # The log-based metric properties. + # # The log-based metric properties. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 2f59ce7a4cf..c21f7b4ec63 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 @@ -23,13 +23,13 @@ class LogsMetricResponseAttributes # @!visibility private attr_accessor :_unparsed - # The compute rule to compute the log-based metric. + # # The compute rule to compute the log-based metric. attr_accessor :compute - # The log-based metric filter. Logs matching this filter will be aggregated in this metric. + # # The log-based metric filter. Logs matching this filter will be aggregated in this metric. attr_accessor :filter - # The rules for the group by. + # # The rules for the group by. attr_accessor :group_by # Attribute mapping from ruby-style variable name to JSON key. 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 7fbaa967c90..2f254a7cd70 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 @@ -23,10 +23,10 @@ class LogsMetricResponseCompute # @!visibility private attr_accessor :_unparsed - # The type of aggregation to use. + # # The type of aggregation to use. attr_accessor :aggregation_type - # The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution"). + # # The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution"). attr_accessor :path # Attribute mapping from ruby-style variable name to JSON key. 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 a45370df66e..284e83dc663 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 @@ -23,13 +23,13 @@ class LogsMetricResponseData # @!visibility private attr_accessor :_unparsed - # The object describing a Datadog log-based metric. + # # The object describing a Datadog log-based metric. attr_accessor :attributes - # The name of the log-based metric. + # # The name of the log-based metric. attr_accessor :id - # The type of the resource. The value should always be logs_metrics. + # # The type of the resource. The value should always be logs_metrics. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 96070d53a08..ae6819b2108 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 @@ -23,7 +23,7 @@ class LogsMetricResponseFilter # @!visibility private attr_accessor :_unparsed - # The search query - following the log search syntax. + # # The search query - following the log search syntax. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 d2ea1db3f8c..a01caa7bb0a 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 @@ -23,10 +23,10 @@ class LogsMetricResponseGroupBy # @!visibility private attr_accessor :_unparsed - # The path to the value the log-based metric will be aggregated over. + # # The path to the value the log-based metric will be aggregated over. attr_accessor :path - # Eventual name of the tag that gets created. By default, the path attribute is used as the tag name. + # # Eventual name of the tag that gets created. By default, the path attribute is used as the tag name. attr_accessor :tag_name # Attribute mapping from ruby-style variable name to JSON key. 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 bf498025227..a0f1b2caf85 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 @@ -23,10 +23,10 @@ class LogsMetricUpdateAttributes # @!visibility private attr_accessor :_unparsed - # The log-based metric filter. Logs matching this filter will be aggregated in this metric. + # # The log-based metric filter. Logs matching this filter will be aggregated in this metric. attr_accessor :filter - # The rules for the group by. + # # The rules for the group by. attr_accessor :group_by # Attribute mapping from ruby-style variable name to JSON key. 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 93421fe9dd1..e49d08a16ed 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 @@ -23,10 +23,10 @@ class LogsMetricUpdateData # @!visibility private attr_accessor :_unparsed - # The log-based metric properties that will be updated. + # # The log-based metric properties that will be updated. attr_accessor :attributes - # The type of the resource. The value should always be logs_metrics. + # # The type of the resource. The value should always be logs_metrics. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 ac7db316ede..71096875b60 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 @@ -23,7 +23,7 @@ class LogsMetricUpdateRequest # @!visibility private attr_accessor :_unparsed - # The new log-based metric properties. + # # The new log-based metric properties. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 08f4cb784be..ceda56d39d3 100644 --- a/lib/datadog_api_client/v2/models/logs_metrics_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metrics_response.rb @@ -23,7 +23,7 @@ class LogsMetricsResponse # @!visibility private attr_accessor :_unparsed - # A list of log-based metric objects. + # # A list of log-based metric objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 dbae9f5c296..2398f991904 100644 --- a/lib/datadog_api_client/v2/models/logs_query_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_query_filter.rb @@ -23,16 +23,16 @@ class LogsQueryFilter # @!visibility private attr_accessor :_unparsed - # The minimum time for the requested logs, supports date math and regular timestamps (milliseconds). + # # The minimum time for the requested logs, supports date math and regular timestamps (milliseconds). attr_accessor :from - # For customers with multiple indexes, the indexes to search. Defaults to ['*'] which means all indexes. + # # For customers with multiple indexes, the indexes to search. Defaults to ['*'] which means all indexes. attr_accessor :indexes - # The search query - following the log search syntax. + # # The search query - following the log search syntax. attr_accessor :query - # The maximum time for the requested logs, supports date math and regular timestamps (milliseconds). + # # The maximum time for the requested logs, supports date math and regular timestamps (milliseconds). attr_accessor :to # Attribute mapping from ruby-style variable name to JSON key. 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 bcda4ae16c1..e0a7ffae793 100644 --- a/lib/datadog_api_client/v2/models/logs_query_options.rb +++ b/lib/datadog_api_client/v2/models/logs_query_options.rb @@ -24,10 +24,10 @@ class LogsQueryOptions # @!visibility private attr_accessor :_unparsed - # The time offset (in seconds) to apply to the query. + # # The time offset (in seconds) to apply to the query. attr_accessor :time_offset - # The timezone can be specified both as an offset, for example: "UTC+03:00". + # # The timezone can be specified both as an offset, for example: "UTC+03:00". attr_accessor :timezone # Attribute mapping from ruby-style variable name to JSON key. 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 e8e0cfe0340..bc00f87381f 100644 --- a/lib/datadog_api_client/v2/models/logs_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/logs_response_metadata.rb @@ -23,19 +23,19 @@ class LogsResponseMetadata # @!visibility private attr_accessor :_unparsed - # The time elapsed in milliseconds + # # The time elapsed in milliseconds attr_accessor :elapsed - # Paging attributes. + # # Paging attributes. attr_accessor :page - # The identifier of the request + # # The identifier of the request attr_accessor :request_id - # The status of the response + # # The status of the response attr_accessor :status - # A list of warnings (non fatal errors) encountered, partial results might be returned if + # # A list of warnings (non fatal errors) encountered, partial results might be returned if # warnings are present in the response. attr_accessor :warnings 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 cd32c105036..5d7622c1243 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 @@ -23,7 +23,7 @@ class LogsResponseMetadataPage # @!visibility private attr_accessor :_unparsed - # The cursor to use to get the next results, if any. To make the next request, use the same. + # # 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 `page[cursor]`. attr_accessor :after diff --git a/lib/datadog_api_client/v2/models/logs_warning.rb b/lib/datadog_api_client/v2/models/logs_warning.rb index 305546b5a4b..78fb4fe21e2 100644 --- a/lib/datadog_api_client/v2/models/logs_warning.rb +++ b/lib/datadog_api_client/v2/models/logs_warning.rb @@ -23,13 +23,13 @@ class LogsWarning # @!visibility private attr_accessor :_unparsed - # A unique code for this type of warning + # # A unique code for this type of warning attr_accessor :code - # A detailed explanation of this specific warning + # # A detailed explanation of this specific warning attr_accessor :detail - # A short human-readable summary of the warning + # # A short human-readable summary of the warning attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/metric.rb b/lib/datadog_api_client/v2/models/metric.rb index f358b941b6b..6170c334bf5 100644 --- a/lib/datadog_api_client/v2/models/metric.rb +++ b/lib/datadog_api_client/v2/models/metric.rb @@ -23,10 +23,10 @@ class Metric # @!visibility private attr_accessor :_unparsed - # The metric name for this resource. + # # The metric name for this resource. attr_accessor :id - # The metric resource type. + # # The metric resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 43d8c518e9b..dfc00ccf1d8 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags.rb @@ -23,13 +23,13 @@ class MetricAllTags # @!visibility private attr_accessor :_unparsed - # Object containing the definition of a metric's tags. + # # Object containing the definition of a metric's tags. attr_accessor :attributes - # The metric name for this resource. + # # The metric name for this resource. attr_accessor :id - # The metric resource type. + # # The metric resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 8b99f0445ff..3e0001dc397 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 @@ -23,7 +23,7 @@ class MetricAllTagsAttributes # @!visibility private attr_accessor :_unparsed - # List of indexed tag value pairs. + # # List of indexed tag value pairs. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 0e39e58dea1..ecf9419e1a1 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 @@ -23,7 +23,7 @@ class MetricAllTagsResponse # @!visibility private attr_accessor :_unparsed - # Object for a single metric's indexed tags. + # # Object for a single metric's indexed tags. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 3e0e2fdb5cb..a0c63ce659b 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb @@ -23,10 +23,10 @@ class MetricCustomAggregation # @!visibility private attr_accessor :_unparsed - # A space aggregation for use in query. + # # A space aggregation for use in query. attr_accessor :space - # A time aggregation for use in query. + # # A time aggregation for use in query. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 ee1a1e9b59e..5c2774d09d1 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume.rb @@ -23,13 +23,13 @@ class MetricDistinctVolume # @!visibility private attr_accessor :_unparsed - # Object containing the definition of a metric's distinct volume. + # # Object containing the definition of a metric's distinct volume. attr_accessor :attributes - # The metric name for this resource. + # # The metric name for this resource. attr_accessor :id - # The metric distinct volume type. + # # The metric distinct volume type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 e47ddc66c1f..1c49d92ec30 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 @@ -23,7 +23,7 @@ class MetricDistinctVolumeAttributes # @!visibility private attr_accessor :_unparsed - # Distinct volume for the given metric. + # # Distinct volume for the given metric. attr_accessor :distinct_volume # Attribute mapping from ruby-style variable name to JSON key. 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 32993129649..470e18949c3 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 @@ -23,13 +23,13 @@ class MetricIngestedIndexedVolume # @!visibility private attr_accessor :_unparsed - # Object containing the definition of a metric's ingested and indexed volume. + # # Object containing the definition of a metric's ingested and indexed volume. attr_accessor :attributes - # The metric name for this resource. + # # The metric name for this resource. attr_accessor :id - # The metric ingested and indexed volume type. + # # The metric ingested and indexed volume type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 b3f1f39b01f..44e357267df 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 @@ -23,10 +23,10 @@ class MetricIngestedIndexedVolumeAttributes # @!visibility private attr_accessor :_unparsed - # Indexed volume for the given metric. + # # Indexed volume for the given metric. attr_accessor :indexed_volume - # Ingested volume for the given metric. + # # Ingested volume for the given metric. attr_accessor :ingested_volume # Attribute mapping from ruby-style variable name to JSON key. 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 42d913b485b..04e5fe08c15 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration.rb @@ -23,13 +23,13 @@ class MetricTagConfiguration # @!visibility private attr_accessor :_unparsed - # Object containing the definition of a metric tag configuration attributes. + # # Object containing the definition of a metric tag configuration attributes. attr_accessor :attributes - # The metric name for this resource. + # # The metric name for this resource. attr_accessor :id - # The metric tag configuration resource type. + # # The metric tag configuration resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 5f0a8c2ec07..b83a3ea941c 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 @@ -23,11 +23,11 @@ class MetricTagConfigurationAttributes # @!visibility private attr_accessor :_unparsed - # A list of queryable aggregation combinations for a count, rate, or gauge metric. + # # A list of queryable aggregation combinations for a count, rate, or gauge metric. # By default, count and rate metrics require the (time: sum, space: sum) aggregation and # Gauge metrics require the (time: avg, space: avg) aggregation. # Additional time & space combinations are also available: - # + # # - time: avg, space: avg # - time: avg, space: max # - time: avg, space: min @@ -37,24 +37,24 @@ class MetricTagConfigurationAttributes # - time: min, space: min # - time: sum, space: avg # - time: sum, space: sum - # + # # Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`. attr_accessor :aggregations - # Timestamp when the tag configuration was created. + # # Timestamp when the tag configuration was created. attr_accessor :created_at - # Toggle to turn on/off percentile aggregations for distribution metrics. + # # Toggle to turn on/off percentile aggregations for distribution metrics. # Only present when the `metric_type` is `distribution`. attr_accessor :include_percentiles - # The metric's type. + # # The metric's type. attr_accessor :metric_type - # Timestamp when the tag configuration was last modified. + # # Timestamp when the tag configuration was last modified. attr_accessor :modified_at - # List of tag keys on which to group. + # # List of tag keys on which to group. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 7612286dbad..9cfec375060 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 @@ -23,11 +23,11 @@ class MetricTagConfigurationCreateAttributes # @!visibility private attr_accessor :_unparsed - # A list of queryable aggregation combinations for a count, rate, or gauge metric. + # # A list of queryable aggregation combinations for a count, rate, or gauge metric. # By default, count and rate metrics require the (time: sum, space: sum) aggregation and # Gauge metrics require the (time: avg, space: avg) aggregation. # Additional time & space combinations are also available: - # + # # - time: avg, space: avg # - time: avg, space: max # - time: avg, space: min @@ -37,18 +37,18 @@ class MetricTagConfigurationCreateAttributes # - time: min, space: min # - time: sum, space: avg # - time: sum, space: sum - # + # # Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`. attr_accessor :aggregations - # Toggle to include/exclude percentiles for a distribution metric. + # # Toggle to include/exclude percentiles for a distribution metric. # Defaults to false. Can only be applied to metrics that have a `metric_type` of `distribution`. attr_accessor :include_percentiles - # The metric's type. + # # The metric's type. attr_accessor :metric_type - # A list of tag keys that will be queryable for your metric. + # # A list of tag keys that will be queryable for your metric. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 5421c55e26e..dd1d9439c51 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 @@ -23,13 +23,13 @@ class MetricTagConfigurationCreateData # @!visibility private attr_accessor :_unparsed - # Object containing the definition of a metric tag configuration to be created. + # # Object containing the definition of a metric tag configuration to be created. attr_accessor :attributes - # The metric name for this resource. + # # The metric name for this resource. attr_accessor :id - # The metric tag configuration resource type. + # # The metric tag configuration resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 9f85a4c85e5..287a3c7927e 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 @@ -23,7 +23,7 @@ class MetricTagConfigurationCreateRequest # @!visibility private attr_accessor :_unparsed - # Object for a single metric to be configure tags on. + # # Object for a single metric to be configure tags on. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 a8d6bddf3ff..2167c83bdda 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 @@ -23,7 +23,7 @@ class MetricTagConfigurationResponse # @!visibility private attr_accessor :_unparsed - # Object for a single metric tag configuration. + # # Object for a single metric tag configuration. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 d38f2005fd6..8cd3269ea3f 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 @@ -23,11 +23,11 @@ class MetricTagConfigurationUpdateAttributes # @!visibility private attr_accessor :_unparsed - # A list of queryable aggregation combinations for a count, rate, or gauge metric. + # # A list of queryable aggregation combinations for a count, rate, or gauge metric. # By default, count and rate metrics require the (time: sum, space: sum) aggregation and # Gauge metrics require the (time: avg, space: avg) aggregation. # Additional time & space combinations are also available: - # + # # - time: avg, space: avg # - time: avg, space: max # - time: avg, space: min @@ -37,15 +37,15 @@ class MetricTagConfigurationUpdateAttributes # - time: min, space: min # - time: sum, space: avg # - time: sum, space: sum - # + # # Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`. attr_accessor :aggregations - # Toggle to include/exclude percentiles for a distribution metric. + # # Toggle to include/exclude percentiles for a distribution metric. # Defaults to false. Can only be applied to metrics that have a `metric_type` of `distribution`. attr_accessor :include_percentiles - # A list of tag keys that will be queryable for your metric. + # # A list of tag keys that will be queryable for your metric. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 cf23b0eee8d..9fdf6008eff 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 @@ -23,13 +23,13 @@ class MetricTagConfigurationUpdateData # @!visibility private attr_accessor :_unparsed - # Object containing the definition of a metric tag configuration to be updated. + # # Object containing the definition of a metric tag configuration to be updated. attr_accessor :attributes - # The metric name for this resource. + # # The metric name for this resource. attr_accessor :id - # The metric tag configuration resource type. + # # The metric tag configuration resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 f4bd78b0f96..b29a4fecd42 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 @@ -23,7 +23,7 @@ class MetricTagConfigurationUpdateRequest # @!visibility private attr_accessor :_unparsed - # Object for a single tag configuration to be edited. + # # Object for a single tag configuration to be edited. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 4dc8533a02d..6fa2fb45149 100644 --- a/lib/datadog_api_client/v2/models/metric_volumes_response.rb +++ b/lib/datadog_api_client/v2/models/metric_volumes_response.rb @@ -23,7 +23,7 @@ class MetricVolumesResponse # @!visibility private attr_accessor :_unparsed - # Possible response objects for a metric's volume. + # # Possible response objects for a metric's volume. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 dbceead4706..fad1927b66a 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 @@ -23,7 +23,7 @@ class MetricsAndMetricTagConfigurationsResponse # @!visibility private attr_accessor :_unparsed - # Array of metrics and metric tag configurations. + # # Array of metrics and metric tag configurations. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/organization.rb b/lib/datadog_api_client/v2/models/organization.rb index 355442b83bc..b92447b2618 100644 --- a/lib/datadog_api_client/v2/models/organization.rb +++ b/lib/datadog_api_client/v2/models/organization.rb @@ -23,13 +23,13 @@ class Organization # @!visibility private attr_accessor :_unparsed - # Attributes of the organization. + # # Attributes of the organization. attr_accessor :attributes - # ID of the organization. + # # ID of the organization. attr_accessor :id - # Organizations resource type. + # # Organizations resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/organization_attributes.rb b/lib/datadog_api_client/v2/models/organization_attributes.rb index 14fbf0febdd..22e321e19cd 100644 --- a/lib/datadog_api_client/v2/models/organization_attributes.rb +++ b/lib/datadog_api_client/v2/models/organization_attributes.rb @@ -23,28 +23,28 @@ class OrganizationAttributes # @!visibility private attr_accessor :_unparsed - # Creation time of the organization. + # # Creation time of the organization. attr_accessor :created_at - # Description of the organization. + # # Description of the organization. attr_accessor :description - # Whether or not the organization is disabled. + # # Whether or not the organization is disabled. attr_accessor :disabled - # Time of last organization modification. + # # Time of last organization modification. attr_accessor :modified_at - # Name of the organization. + # # Name of the organization. attr_accessor :name - # Public ID of the organization. + # # Public ID of the organization. attr_accessor :public_id - # Sharing type of the organization. + # # Sharing type of the organization. attr_accessor :sharing - # URL of the site that this organization exists at. + # # URL of the site that this organization exists at. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/pagination.rb b/lib/datadog_api_client/v2/models/pagination.rb index ef2bf2eb040..fc2b08fc7bc 100644 --- a/lib/datadog_api_client/v2/models/pagination.rb +++ b/lib/datadog_api_client/v2/models/pagination.rb @@ -23,10 +23,10 @@ class Pagination # @!visibility private attr_accessor :_unparsed - # Total count. + # # Total count. attr_accessor :total_count - # Total count of elements matched by the filter. + # # Total count of elements matched by the filter. attr_accessor :total_filtered_count # Attribute mapping from ruby-style variable name to JSON key. 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 235f2bdd062..9f1bcbd8e02 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key.rb @@ -23,16 +23,16 @@ class PartialAPIKey # @!visibility private attr_accessor :_unparsed - # Attributes of a partial API key. + # # Attributes of a partial API key. attr_accessor :attributes - # ID of the API key. + # # ID of the API key. attr_accessor :id - # Resources related to the API key. + # # Resources related to the API key. attr_accessor :relationships - # API Keys resource type. + # # API Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 7d04031dd02..1936203790e 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 @@ -23,16 +23,16 @@ class PartialAPIKeyAttributes # @!visibility private attr_accessor :_unparsed - # Creation date of the API key. + # # Creation date of the API key. attr_accessor :created_at - # The last four characters of the API key. + # # The last four characters of the API key. attr_accessor :last4 - # Date the API key was last modified. + # # Date the API key was last modified. attr_accessor :modified_at - # Name of the API key. + # # Name of the API key. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 d8f82f751bb..4392eccbb59 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key.rb @@ -23,16 +23,16 @@ class PartialApplicationKey # @!visibility private attr_accessor :_unparsed - # Attributes of a partial application key. + # # Attributes of a partial application key. attr_accessor :attributes - # ID of the application key. + # # ID of the application key. attr_accessor :id - # Resources related to the application key. + # # Resources related to the application key. attr_accessor :relationships - # Application Keys resource type. + # # Application Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3fdd96d6a39..64394e5a918 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 @@ -23,16 +23,16 @@ class PartialApplicationKeyAttributes # @!visibility private attr_accessor :_unparsed - # Creation date of the application key. + # # Creation date of the application key. attr_accessor :created_at - # The last four characters of the application key. + # # The last four characters of the application key. attr_accessor :last4 - # Name of the application key. + # # Name of the application key. attr_accessor :name - # Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys. + # # Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys. attr_accessor :scopes # Attribute mapping from ruby-style variable name to JSON key. 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 26fc1a64d47..218c7580fa4 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 @@ -23,10 +23,10 @@ class PartialApplicationKeyResponse # @!visibility private attr_accessor :_unparsed - # Partial Datadog application key. + # # Partial Datadog application key. attr_accessor :data - # Array of objects related to the application key. + # # Array of objects related to the application key. attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/permission.rb b/lib/datadog_api_client/v2/models/permission.rb index 48744e6d6a1..7c50cd8f3a2 100644 --- a/lib/datadog_api_client/v2/models/permission.rb +++ b/lib/datadog_api_client/v2/models/permission.rb @@ -23,13 +23,13 @@ class Permission # @!visibility private attr_accessor :_unparsed - # Attributes of a permission. + # # Attributes of a permission. attr_accessor :attributes - # ID of the permission. + # # ID of the permission. attr_accessor :id - # Permissions resource type. + # # Permissions resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/permission_attributes.rb b/lib/datadog_api_client/v2/models/permission_attributes.rb index 5b6f4683949..98843a9d127 100644 --- a/lib/datadog_api_client/v2/models/permission_attributes.rb +++ b/lib/datadog_api_client/v2/models/permission_attributes.rb @@ -23,25 +23,25 @@ class PermissionAttributes # @!visibility private attr_accessor :_unparsed - # Creation time of the permission. + # # Creation time of the permission. attr_accessor :created - # Description of the permission. + # # Description of the permission. attr_accessor :description - # Displayed name for the permission. + # # Displayed name for the permission. attr_accessor :display_name - # Display type. + # # Display type. attr_accessor :display_type - # Name of the permission group. + # # Name of the permission group. attr_accessor :group_name - # Name of the permission. + # # Name of the permission. attr_accessor :name - # Whether or not the permission is restricted. + # # Whether or not the permission is restricted. attr_accessor :restricted # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/permissions_response.rb b/lib/datadog_api_client/v2/models/permissions_response.rb index e81789b678b..dd8f99e4d4a 100644 --- a/lib/datadog_api_client/v2/models/permissions_response.rb +++ b/lib/datadog_api_client/v2/models/permissions_response.rb @@ -23,7 +23,7 @@ class PermissionsResponse # @!visibility private attr_accessor :_unparsed - # Array of permissions. + # # Array of permissions. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 aaeb92d975b..cb2fb5a1267 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_meta.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_meta.rb @@ -23,7 +23,7 @@ class ProcessSummariesMeta # @!visibility private attr_accessor :_unparsed - # Paging attributes. + # # Paging attributes. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. 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 e34fd87d255..4d69b87dfbd 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 @@ -23,11 +23,11 @@ class ProcessSummariesMetaPage # @!visibility private attr_accessor :_unparsed - # The cursor used to get the next results, if any. To make the next request, use the same + # # The cursor used to get the next results, if any. To make the next request, use the same # parameters with the addition of the `page[cursor]`. attr_accessor :after - # Number of results returned. + # # Number of results returned. attr_accessor :size # Attribute mapping from ruby-style variable name to JSON key. 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 cecec1b0af1..24f53a7fec4 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_response.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_response.rb @@ -23,10 +23,10 @@ class ProcessSummariesResponse # @!visibility private attr_accessor :_unparsed - # Array of process summary objects. + # # Array of process summary objects. attr_accessor :data - # Response metadata object. + # # Response metadata object. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/process_summary.rb b/lib/datadog_api_client/v2/models/process_summary.rb index b2423082f1a..d77044fb105 100644 --- a/lib/datadog_api_client/v2/models/process_summary.rb +++ b/lib/datadog_api_client/v2/models/process_summary.rb @@ -23,13 +23,13 @@ class ProcessSummary # @!visibility private attr_accessor :_unparsed - # Attributes for a process summary. + # # Attributes for a process summary. attr_accessor :attributes - # Process ID. + # # Process ID. attr_accessor :id - # Type of process summary. + # # Type of process summary. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 76927868546..a09a32719d0 100644 --- a/lib/datadog_api_client/v2/models/process_summary_attributes.rb +++ b/lib/datadog_api_client/v2/models/process_summary_attributes.rb @@ -23,28 +23,28 @@ class ProcessSummaryAttributes # @!visibility private attr_accessor :_unparsed - # Process command line. + # # Process command line. attr_accessor :cmdline - # Host running the process. + # # Host running the process. attr_accessor :host - # Process ID. + # # Process ID. attr_accessor :pid - # Parent process ID. + # # Parent process ID. attr_accessor :ppid - # Time the process was started. + # # Time the process was started. attr_accessor :start - # List of tags associated with the process. + # # List of tags associated with the process. attr_accessor :tags - # Time the process was seen. + # # Time the process was seen. attr_accessor :timestamp - # Process owner. + # # Process owner. attr_accessor :user # Attribute mapping from ruby-style variable name to JSON key. 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 5fabf0e8c3e..c533675d447 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 @@ -23,10 +23,10 @@ class RelationshipToIncidentIntegrationMetadataData # @!visibility private attr_accessor :_unparsed - # A unique identifier that represents the integration metadata. + # # A unique identifier that represents the integration metadata. attr_accessor :id - # Integration metadata resource type. + # # Integration metadata resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 f04f5cf1d9b..30baf7bef62 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 @@ -23,7 +23,7 @@ class RelationshipToIncidentIntegrationMetadatas # @!visibility private attr_accessor :_unparsed - # The integration metadata relationship array + # # The integration metadata relationship array attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 e8d967b1ce2..f80f638612a 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 @@ -23,7 +23,7 @@ class RelationshipToIncidentPostmortem # @!visibility private attr_accessor :_unparsed - # The postmortem relationship data. + # # The postmortem relationship data. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 f1f301b94f6..d5d761275ce 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 @@ -23,10 +23,10 @@ class RelationshipToIncidentPostmortemData # @!visibility private attr_accessor :_unparsed - # A unique identifier that represents the postmortem. + # # A unique identifier that represents the postmortem. attr_accessor :id - # Incident postmortem resource type. + # # Incident postmortem resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 4d39be388ba..097992144c8 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organization.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organization.rb @@ -23,7 +23,7 @@ class RelationshipToOrganization # @!visibility private attr_accessor :_unparsed - # Relationship to organization object. + # # Relationship to organization object. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 c24ec566c04..48e090dbab1 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 @@ -23,10 +23,10 @@ class RelationshipToOrganizationData # @!visibility private attr_accessor :_unparsed - # ID of the organization. + # # ID of the organization. attr_accessor :id - # Organizations resource type. + # # Organizations resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 90e1a005814..8d902fa4991 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organizations.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organizations.rb @@ -23,7 +23,7 @@ class RelationshipToOrganizations # @!visibility private attr_accessor :_unparsed - # Relationships to organization objects. + # # Relationships to organization objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 3f3f713f4ed..a5b97a9b6cc 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permission.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permission.rb @@ -23,7 +23,7 @@ class RelationshipToPermission # @!visibility private attr_accessor :_unparsed - # Relationship to permission object. + # # Relationship to permission object. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 5fd1969194c..d3c39dcd5e0 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 @@ -23,10 +23,10 @@ class RelationshipToPermissionData # @!visibility private attr_accessor :_unparsed - # ID of the permission. + # # ID of the permission. attr_accessor :id - # Permissions resource type. + # # Permissions resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 82047bc35d1..0a6aae042cb 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permissions.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permissions.rb @@ -23,7 +23,7 @@ class RelationshipToPermissions # @!visibility private attr_accessor :_unparsed - # Relationships to permission objects. + # # Relationships to permission objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 fcc6af3d7e7..3f30f427a4b 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_role.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_role.rb @@ -23,7 +23,7 @@ class RelationshipToRole # @!visibility private attr_accessor :_unparsed - # Relationship to role object. + # # Relationship to role object. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 e3b60f0f3c3..a8b39f18df5 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 @@ -23,10 +23,10 @@ class RelationshipToRoleData # @!visibility private attr_accessor :_unparsed - # ID of the role. + # # ID of the role. attr_accessor :id - # Roles type. + # # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 949380dbccf..935e7801260 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_roles.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_roles.rb @@ -23,7 +23,7 @@ class RelationshipToRoles # @!visibility private attr_accessor :_unparsed - # An array containing type and ID of a role. + # # An array containing type and ID of a role. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 cb1c1fdcfc0..b5b7e532982 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user.rb @@ -23,7 +23,7 @@ class RelationshipToUser # @!visibility private attr_accessor :_unparsed - # Relationship to user object. + # # Relationship to user object. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 3ab1d97abee..cb52ef00403 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 @@ -23,10 +23,10 @@ class RelationshipToUserData # @!visibility private attr_accessor :_unparsed - # A unique identifier that represents the user. + # # A unique identifier that represents the user. attr_accessor :id - # Users resource type. + # # Users resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 6586eea40cd..cb4e2132047 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_users.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_users.rb @@ -23,7 +23,7 @@ class RelationshipToUsers # @!visibility private attr_accessor :_unparsed - # Relationships to user objects. + # # Relationships to user objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 636c2dbc5e8..869dae6ffc1 100644 --- a/lib/datadog_api_client/v2/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v2/models/response_meta_attributes.rb @@ -23,7 +23,7 @@ class ResponseMetaAttributes # @!visibility private attr_accessor :_unparsed - # Pagination object. + # # Pagination object. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/role.rb b/lib/datadog_api_client/v2/models/role.rb index 1aec72b1d3c..d7946fee05f 100644 --- a/lib/datadog_api_client/v2/models/role.rb +++ b/lib/datadog_api_client/v2/models/role.rb @@ -23,16 +23,16 @@ class Role # @!visibility private attr_accessor :_unparsed - # Attributes of the role. + # # Attributes of the role. attr_accessor :attributes - # ID of the role. + # # ID of the role. attr_accessor :id - # Relationships of the role object returned by the API. + # # Relationships of the role object returned by the API. attr_accessor :relationships - # Roles type. + # # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/role_attributes.rb b/lib/datadog_api_client/v2/models/role_attributes.rb index 360a29bafbd..605776fa644 100644 --- a/lib/datadog_api_client/v2/models/role_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_attributes.rb @@ -23,16 +23,16 @@ class RoleAttributes # @!visibility private attr_accessor :_unparsed - # Creation time of the role. + # # Creation time of the role. attr_accessor :created_at - # Time of last role modification. + # # Time of last role modification. attr_accessor :modified_at - # Name of the role. + # # Name of the role. attr_accessor :name - # Number of users with that role. + # # Number of users with that role. attr_accessor :user_count # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/role_clone.rb b/lib/datadog_api_client/v2/models/role_clone.rb index a090dd2f50a..3f1ebf9ea49 100644 --- a/lib/datadog_api_client/v2/models/role_clone.rb +++ b/lib/datadog_api_client/v2/models/role_clone.rb @@ -23,10 +23,10 @@ class RoleClone # @!visibility private attr_accessor :_unparsed - # Attributes required to create a new role by cloning an existing one. + # # Attributes required to create a new role by cloning an existing one. attr_accessor :attributes - # Roles type. + # # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 14339345e80..d028d288536 100644 --- a/lib/datadog_api_client/v2/models/role_clone_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_clone_attributes.rb @@ -23,7 +23,7 @@ class RoleCloneAttributes # @!visibility private attr_accessor :_unparsed - # Name of the new role that is cloned. + # # Name of the new role that is cloned. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 3c9eddae514..4e93bb417e1 100644 --- a/lib/datadog_api_client/v2/models/role_clone_request.rb +++ b/lib/datadog_api_client/v2/models/role_clone_request.rb @@ -23,7 +23,7 @@ class RoleCloneRequest # @!visibility private attr_accessor :_unparsed - # Data for the clone role request. + # # Data for the clone role request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 74188ef91a9..3b1e7a56e2f 100644 --- a/lib/datadog_api_client/v2/models/role_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_create_attributes.rb @@ -23,13 +23,13 @@ class RoleCreateAttributes # @!visibility private attr_accessor :_unparsed - # Creation time of the role. + # # Creation time of the role. attr_accessor :created_at - # Time of last role modification. + # # Time of last role modification. attr_accessor :modified_at - # Name of the role. + # # Name of the role. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 47ff5f291bf..08d051bc73a 100644 --- a/lib/datadog_api_client/v2/models/role_create_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_data.rb @@ -23,13 +23,13 @@ class RoleCreateData # @!visibility private attr_accessor :_unparsed - # Attributes of the created role. + # # Attributes of the created role. attr_accessor :attributes - # Relationships of the role object. + # # Relationships of the role object. attr_accessor :relationships - # Roles type. + # # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 79fb68a3687..d783bbb3e9b 100644 --- a/lib/datadog_api_client/v2/models/role_create_request.rb +++ b/lib/datadog_api_client/v2/models/role_create_request.rb @@ -23,7 +23,7 @@ class RoleCreateRequest # @!visibility private attr_accessor :_unparsed - # Data related to the creation of a role. + # # Data related to the creation of a role. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 85c9593825a..294af156aeb 100644 --- a/lib/datadog_api_client/v2/models/role_create_response.rb +++ b/lib/datadog_api_client/v2/models/role_create_response.rb @@ -23,7 +23,7 @@ class RoleCreateResponse # @!visibility private attr_accessor :_unparsed - # Role object returned by the API. + # # Role object returned by the API. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 652c14c4d25..95faf9e4cab 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 @@ -23,16 +23,16 @@ class RoleCreateResponseData # @!visibility private attr_accessor :_unparsed - # Attributes of the created role. + # # Attributes of the created role. attr_accessor :attributes - # ID of the role. + # # ID of the role. attr_accessor :id - # Relationships of the role object returned by the API. + # # Relationships of the role object returned by the API. attr_accessor :relationships - # Roles type. + # # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/role_relationships.rb b/lib/datadog_api_client/v2/models/role_relationships.rb index 7e7897d6cb4..d8ae398e732 100644 --- a/lib/datadog_api_client/v2/models/role_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_relationships.rb @@ -23,10 +23,10 @@ class RoleRelationships # @!visibility private attr_accessor :_unparsed - # Relationship to multiple permissions objects. + # # Relationship to multiple permissions objects. attr_accessor :permissions - # Relationship to users. + # # Relationship to users. attr_accessor :users # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/role_response.rb b/lib/datadog_api_client/v2/models/role_response.rb index c2aa27c9f59..6ff9257e82f 100644 --- a/lib/datadog_api_client/v2/models/role_response.rb +++ b/lib/datadog_api_client/v2/models/role_response.rb @@ -23,7 +23,7 @@ class RoleResponse # @!visibility private attr_accessor :_unparsed - # Role object returned by the API. + # # Role object returned by the API. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 2d5751b322c..ef8ef47a5f8 100644 --- a/lib/datadog_api_client/v2/models/role_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_response_relationships.rb @@ -23,7 +23,7 @@ class RoleResponseRelationships # @!visibility private attr_accessor :_unparsed - # Relationship to multiple permissions objects. + # # Relationship to multiple permissions objects. attr_accessor :permissions # Attribute mapping from ruby-style variable name to JSON key. 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 7076d5bdcb1..2db7bcbc2bf 100644 --- a/lib/datadog_api_client/v2/models/role_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_update_attributes.rb @@ -23,13 +23,13 @@ class RoleUpdateAttributes # @!visibility private attr_accessor :_unparsed - # Creation time of the role. + # # Creation time of the role. attr_accessor :created_at - # Time of last role modification. + # # Time of last role modification. attr_accessor :modified_at - # Name of the role. + # # Name of the role. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 e087aab6a6e..4a37c004c3d 100644 --- a/lib/datadog_api_client/v2/models/role_update_data.rb +++ b/lib/datadog_api_client/v2/models/role_update_data.rb @@ -23,13 +23,13 @@ class RoleUpdateData # @!visibility private attr_accessor :_unparsed - # Attributes of the role. + # # Attributes of the role. attr_accessor :attributes - # ID of the role. + # # ID of the role. attr_accessor :id - # Roles type. + # # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 8a1fc4b2f76..8e9cd4345a2 100644 --- a/lib/datadog_api_client/v2/models/role_update_request.rb +++ b/lib/datadog_api_client/v2/models/role_update_request.rb @@ -23,7 +23,7 @@ class RoleUpdateRequest # @!visibility private attr_accessor :_unparsed - # Data related to the update of a role. + # # Data related to the update of a role. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 5f6bdeca2f7..5e67e8e2bde 100644 --- a/lib/datadog_api_client/v2/models/role_update_response.rb +++ b/lib/datadog_api_client/v2/models/role_update_response.rb @@ -23,7 +23,7 @@ class RoleUpdateResponse # @!visibility private attr_accessor :_unparsed - # Role object returned by the API. + # # Role object returned by the API. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 d797e2fd81a..0eaaf3d83ae 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 @@ -23,16 +23,16 @@ class RoleUpdateResponseData # @!visibility private attr_accessor :_unparsed - # Attributes of the role. + # # Attributes of the role. attr_accessor :attributes - # ID of the role. + # # ID of the role. attr_accessor :id - # Relationships of the role object returned by the API. + # # Relationships of the role object returned by the API. attr_accessor :relationships - # Roles type. + # # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/roles_response.rb b/lib/datadog_api_client/v2/models/roles_response.rb index fa9657ff2be..0273f876edd 100644 --- a/lib/datadog_api_client/v2/models/roles_response.rb +++ b/lib/datadog_api_client/v2/models/roles_response.rb @@ -23,10 +23,10 @@ class RolesResponse # @!visibility private attr_accessor :_unparsed - # Array of returned roles. + # # Array of returned roles. attr_accessor :data - # Object describing meta attributes of response. + # # Object describing meta attributes of response. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/security_filter.rb b/lib/datadog_api_client/v2/models/security_filter.rb index 7e9ca5ba2c8..a263a0e2842 100644 --- a/lib/datadog_api_client/v2/models/security_filter.rb +++ b/lib/datadog_api_client/v2/models/security_filter.rb @@ -23,13 +23,13 @@ class SecurityFilter # @!visibility private attr_accessor :_unparsed - # The object describing a security filter. + # # The object describing a security filter. attr_accessor :attributes - # The ID of the security filter. + # # The ID of the security filter. attr_accessor :id - # The type of the resource. The value should always be `security_filters`. + # # The type of the resource. The value should always be `security_filters`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3a43d9c378f..03982217334 100644 --- a/lib/datadog_api_client/v2/models/security_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_attributes.rb @@ -23,25 +23,25 @@ class SecurityFilterAttributes # @!visibility private attr_accessor :_unparsed - # The list of exclusion filters applied in this security filter. + # # The list of exclusion filters applied in this security filter. attr_accessor :exclusion_filters - # The filtered data type. + # # The filtered data type. attr_accessor :filtered_data_type - # Whether the security filter is the built-in filter. + # # Whether the security filter is the built-in filter. attr_accessor :is_builtin - # Whether the security filter is enabled. + # # Whether the security filter is enabled. attr_accessor :is_enabled - # The security filter name. + # # The security filter name. attr_accessor :name - # The security filter query. Logs accepted by this query will be accepted by this filter. + # # The security filter query. Logs accepted by this query will be accepted by this filter. attr_accessor :query - # The version of the security filter. + # # The version of the security filter. attr_accessor :version # Attribute mapping from ruby-style variable name to JSON key. 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 22d3c73f774..dfa814814ec 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 @@ -23,19 +23,19 @@ class SecurityFilterCreateAttributes # @!visibility private attr_accessor :_unparsed - # Exclusion filters to exclude some logs from the security filter. + # # Exclusion filters to exclude some logs from the security filter. attr_accessor :exclusion_filters - # The filtered data type. + # # The filtered data type. attr_accessor :filtered_data_type - # Whether the security filter is enabled. + # # Whether the security filter is enabled. attr_accessor :is_enabled - # The name of the security filter. + # # The name of the security filter. attr_accessor :name - # The query of the security filter. + # # The query of the security filter. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 855cd03f203..534fc56160a 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 @@ -23,10 +23,10 @@ class SecurityFilterCreateData # @!visibility private attr_accessor :_unparsed - # Object containing the attributes of the security filter to be created. + # # Object containing the attributes of the security filter to be created. attr_accessor :attributes - # The type of the resource. The value should always be `security_filters`. + # # The type of the resource. The value should always be `security_filters`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 9c7a7025a86..55b4aa70ff2 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 @@ -23,7 +23,7 @@ class SecurityFilterCreateRequest # @!visibility private attr_accessor :_unparsed - # Object for a single security filter. + # # Object for a single security filter. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 efd7c3f2d26..f313bf7e5a0 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 @@ -23,10 +23,10 @@ class SecurityFilterExclusionFilter # @!visibility private attr_accessor :_unparsed - # Exclusion filter name. + # # Exclusion filter name. attr_accessor :name - # Exclusion filter query. Logs that match this query are excluded from the security filter. + # # Exclusion filter query. Logs that match this query are excluded from the security filter. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 2f07902b8ed..b9f363c1908 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 @@ -23,10 +23,10 @@ class SecurityFilterExclusionFilterResponse # @!visibility private attr_accessor :_unparsed - # The exclusion filter name. + # # The exclusion filter name. attr_accessor :name - # The exclusion filter query. + # # The exclusion filter query. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 c3431356bf7..099b91aab0f 100644 --- a/lib/datadog_api_client/v2/models/security_filter_meta.rb +++ b/lib/datadog_api_client/v2/models/security_filter_meta.rb @@ -23,7 +23,7 @@ class SecurityFilterMeta # @!visibility private attr_accessor :_unparsed - # A warning message. + # # A warning message. attr_accessor :warning # Attribute mapping from ruby-style variable name to JSON key. 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 702564143a3..eea3f9ec453 100644 --- a/lib/datadog_api_client/v2/models/security_filter_response.rb +++ b/lib/datadog_api_client/v2/models/security_filter_response.rb @@ -23,10 +23,10 @@ class SecurityFilterResponse # @!visibility private attr_accessor :_unparsed - # The security filter's properties. + # # The security filter's properties. attr_accessor :data - # Optional metadata associated to the response. + # # Optional metadata associated to the response. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 a4412dcf438..bbb0b03d1df 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 @@ -23,22 +23,22 @@ class SecurityFilterUpdateAttributes # @!visibility private attr_accessor :_unparsed - # Exclusion filters to exclude some logs from the security filter. + # # Exclusion filters to exclude some logs from the security filter. attr_accessor :exclusion_filters - # The filtered data type. + # # The filtered data type. attr_accessor :filtered_data_type - # Whether the security filter is enabled. + # # Whether the security filter is enabled. attr_accessor :is_enabled - # The name of the security filter. + # # The name of the security filter. attr_accessor :name - # The query of the security filter. + # # The query of the security filter. attr_accessor :query - # The version of the security filter to update. + # # The version of the security filter to update. attr_accessor :version # Attribute mapping from ruby-style variable name to JSON key. 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 31064de1467..ec4d9d14753 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 @@ -23,10 +23,10 @@ class SecurityFilterUpdateData # @!visibility private attr_accessor :_unparsed - # The security filters properties to be updated. + # # The security filters properties to be updated. attr_accessor :attributes - # The type of the resource. The value should always be `security_filters`. + # # The type of the resource. The value should always be `security_filters`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 0cfb67ffd96..5d7c07740a5 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 @@ -23,7 +23,7 @@ class SecurityFilterUpdateRequest # @!visibility private attr_accessor :_unparsed - # The new security filter properties. + # # The new security filter properties. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 4f94e1c41bf..f1289aec37f 100644 --- a/lib/datadog_api_client/v2/models/security_filters_response.rb +++ b/lib/datadog_api_client/v2/models/security_filters_response.rb @@ -23,10 +23,10 @@ class SecurityFiltersResponse # @!visibility private attr_accessor :_unparsed - # A list of security filters objects. + # # A list of security filters objects. attr_accessor :data - # Optional metadata associated to the response. + # # Optional metadata associated to the response. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 86ea7f9232d..28eab40ee56 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_filter.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_filter.rb @@ -23,10 +23,10 @@ class SecurityMonitoringFilter # @!visibility private attr_accessor :_unparsed - # The type of filtering action. + # # The type of filtering action. attr_accessor :action - # Query for selecting logs to apply the filtering action. + # # Query for selecting logs to apply the filtering action. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 3f991c088c1..6990bb25818 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 @@ -23,10 +23,10 @@ class SecurityMonitoringListRulesResponse # @!visibility private attr_accessor :_unparsed - # Array containing the list of rules. + # # Array containing the list of rules. attr_accessor :data - # Object describing meta attributes of response. + # # Object describing meta attributes of response. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 ae4fe689ab0..85629539e30 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 @@ -23,17 +23,17 @@ class SecurityMonitoringRuleCase # @!visibility private attr_accessor :_unparsed - # A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated + # # A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated # based on the event counts in the previously defined queries. attr_accessor :condition - # Name of the case. + # # Name of the case. attr_accessor :name - # Notification targets for each rule case. + # # Notification targets for each rule case. attr_accessor :notifications - # Severity of the Security Signal. + # # Severity of the Security Signal. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. 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 6311143f2c4..dd81da2f019 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 @@ -23,17 +23,17 @@ class SecurityMonitoringRuleCaseCreate # @!visibility private attr_accessor :_unparsed - # A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated + # # A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated # based on the event counts in the previously defined queries. attr_accessor :condition - # Name of the case. + # # Name of the case. attr_accessor :name - # Notification targets for each rule case. + # # Notification targets for each rule case. attr_accessor :notifications - # Severity of the Security Signal. + # # Severity of the Security Signal. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb index 213a3033990..1a463ea2448 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb @@ -23,34 +23,34 @@ class SecurityMonitoringRuleCreatePayload # @!visibility private attr_accessor :_unparsed - # Cases for generating signals. + # # Cases for generating signals. attr_accessor :cases - # Additional queries to filter matched events before they are processed. + # # Additional queries to filter matched events before they are processed. attr_accessor :filters - # Whether the notifications include the triggering group-by values in their title. + # # Whether the notifications include the triggering group-by values in their title. attr_accessor :has_extended_title - # Whether the rule is enabled. + # # Whether the rule is enabled. attr_accessor :is_enabled - # Message for generated signals. + # # Message for generated signals. attr_accessor :message - # The name of the rule. + # # The name of the rule. attr_accessor :name - # Options on rules. + # # Options on rules. attr_accessor :options - # Queries for selecting logs which are part of the rule. + # # Queries for selecting logs which are part of the rule. attr_accessor :queries - # Tags for generated signals. + # # Tags for generated signals. attr_accessor :tags - # The rule type. + # # The rule type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3d95583f0a6..2e84ac3f837 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 @@ -23,10 +23,10 @@ class SecurityMonitoringRuleNewValueOptions # @!visibility private attr_accessor :_unparsed - # The duration in days after which a learned value is forgotten. + # # The duration in days after which a learned value is forgotten. attr_accessor :forget_after - # The duration in days during which values are learned, and after which signals will be generated for values that + # # The duration in days during which values are learned, and after which signals will be generated for values that # weren't learned. If set to 0, a signal will be generated for all new values after the first value is learned. attr_accessor :learning_duration 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 8cd5b6085f9..ba2394dbb10 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 @@ -23,22 +23,22 @@ class SecurityMonitoringRuleOptions # @!visibility private attr_accessor :_unparsed - # The detection method. + # # The detection method. attr_accessor :detection_method - # A time window is specified to match when at least one of the cases matches true. This is a sliding window + # # A time window is specified to match when at least one of the cases matches true. This is a sliding window # and evaluates in real time. attr_accessor :evaluation_window - # Once a signal is generated, the signal will remain “open” if a case is matched at least once within + # # Once a signal is generated, the signal will remain “open” if a case is matched at least once within # this keep alive window. attr_accessor :keep_alive - # A signal will “close” regardless of the query being matched once the time exceeds the maximum duration. + # # A signal will “close” regardless of the query being matched once the time exceeds the maximum duration. # This time is calculated from the first seen timestamp. attr_accessor :max_signal_duration - # Options on new value rules. + # # Options on new value rules. attr_accessor :new_value_options # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb index 2070beedc67..060de7597ae 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb @@ -23,23 +23,23 @@ class SecurityMonitoringRuleQuery # @!visibility private attr_accessor :_unparsed - # The aggregation type. + # # The aggregation type. attr_accessor :aggregation - # Field for which the cardinality is measured. Sent as an array. + # # Field for which the cardinality is measured. Sent as an array. attr_accessor :distinct_fields - # Fields to group by. + # # Fields to group by. attr_accessor :group_by_fields - # The target field to aggregate over when using the sum or max + # # The target field to aggregate over when using the sum or max # aggregations. attr_accessor :metric - # Name of the query. + # # Name of the query. attr_accessor :name - # Query to run on logs. + # # Query to run on logs. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb index bf82e2493b6..b1d356bb4be 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb @@ -23,23 +23,23 @@ class SecurityMonitoringRuleQueryCreate # @!visibility private attr_accessor :_unparsed - # The aggregation type. + # # The aggregation type. attr_accessor :aggregation - # Field for which the cardinality is measured. Sent as an array. + # # Field for which the cardinality is measured. Sent as an array. attr_accessor :distinct_fields - # Fields to group by. + # # Fields to group by. attr_accessor :group_by_fields - # The target field to aggregate over when using the sum or max + # # The target field to aggregate over when using the sum or max # aggregations. attr_accessor :metric - # Name of the query. + # # Name of the query. attr_accessor :name - # Query to run on logs. + # # Query to run on logs. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb index 913159379e9..02da54125a0 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb @@ -23,55 +23,55 @@ class SecurityMonitoringRuleResponse # @!visibility private attr_accessor :_unparsed - # Cases for generating signals. + # # Cases for generating signals. attr_accessor :cases - # When the rule was created, timestamp in milliseconds. + # # When the rule was created, timestamp in milliseconds. attr_accessor :created_at - # User ID of the user who created the rule. + # # User ID of the user who created the rule. attr_accessor :creation_author_id - # Additional queries to filter matched events before they are processed. + # # Additional queries to filter matched events before they are processed. attr_accessor :filters - # Whether the notifications include the triggering group-by values in their title. + # # Whether the notifications include the triggering group-by values in their title. attr_accessor :has_extended_title - # The ID of the rule. + # # The ID of the rule. attr_accessor :id - # Whether the rule is included by default. + # # Whether the rule is included by default. attr_accessor :is_default - # Whether the rule has been deleted. + # # Whether the rule has been deleted. attr_accessor :is_deleted - # Whether the rule is enabled. + # # Whether the rule is enabled. attr_accessor :is_enabled - # Message for generated signals. + # # Message for generated signals. attr_accessor :message - # The name of the rule. + # # The name of the rule. attr_accessor :name - # Options on rules. + # # Options on rules. attr_accessor :options - # Queries for selecting logs which are part of the rule. + # # Queries for selecting logs which are part of the rule. attr_accessor :queries - # Tags for generated signals. + # # Tags for generated signals. attr_accessor :tags - # The rule type. + # # The rule type. attr_accessor :type - # User ID of the user who updated the rule. + # # User ID of the user who updated the rule. attr_accessor :update_author_id - # The version of the rule. + # # The version of the rule. attr_accessor :version # Attribute mapping from ruby-style variable name to JSON key. 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 7ab9cd59aeb..86feab1e9a2 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 @@ -23,34 +23,34 @@ class SecurityMonitoringRuleUpdatePayload # @!visibility private attr_accessor :_unparsed - # Cases for generating signals. + # # Cases for generating signals. attr_accessor :cases - # Additional queries to filter matched events before they are processed. + # # Additional queries to filter matched events before they are processed. attr_accessor :filters - # Whether the notifications include the triggering group-by values in their title. + # # Whether the notifications include the triggering group-by values in their title. attr_accessor :has_extended_title - # Whether the rule is enabled. + # # Whether the rule is enabled. attr_accessor :is_enabled - # Message for generated signals. + # # Message for generated signals. attr_accessor :message - # Name of the rule. + # # Name of the rule. attr_accessor :name - # Options on rules. + # # Options on rules. attr_accessor :options - # Queries for selecting logs which are part of the rule. + # # Queries for selecting logs which are part of the rule. attr_accessor :queries - # Tags for generated signals. + # # Tags for generated signals. attr_accessor :tags - # The version of the rule being updated. + # # The version of the rule being updated. attr_accessor :version # Attribute mapping from ruby-style variable name to JSON key. 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 e53d4ffa4e3..65aab2201cc 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal.rb @@ -23,14 +23,14 @@ class SecurityMonitoringSignal # @!visibility private attr_accessor :_unparsed - # The object containing all signal attributes and their + # # The object containing all signal attributes and their # associated values. attr_accessor :attributes - # The unique ID of the security signal. + # # The unique ID of the security signal. attr_accessor :id - # The type of event. + # # The type of event. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 90153f08b3d..b6767f55647 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 @@ -24,16 +24,16 @@ class SecurityMonitoringSignalAttributes # @!visibility private attr_accessor :_unparsed - # A JSON object of attributes in the security signal. + # # A JSON object of attributes in the security signal. attr_accessor :attributes - # The message in the security signal defined by the rule that generated the signal. + # # The message in the security signal defined by the rule that generated the signal. attr_accessor :message - # An array of tags associated with the security signal. + # # An array of tags associated with the security signal. attr_accessor :tags - # The timestamp of the security signal. + # # The timestamp of the security signal. attr_accessor :timestamp # Attribute mapping from ruby-style variable name to JSON key. 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 232c1403a72..adfc86d607a 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 @@ -23,13 +23,13 @@ class SecurityMonitoringSignalListRequest # @!visibility private attr_accessor :_unparsed - # Search filters for listing security signals. + # # Search filters for listing security signals. attr_accessor :filter - # The paging attributes for listing security signals. + # # The paging attributes for listing security signals. attr_accessor :page - # The sort parameters used for querying security signals. + # # The sort parameters used for querying security signals. attr_accessor :sort # Attribute mapping from ruby-style variable name to JSON key. 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 0563b26aacd..2fb1c821c6c 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 @@ -23,13 +23,13 @@ class SecurityMonitoringSignalListRequestFilter # @!visibility private attr_accessor :_unparsed - # The minimum timestamp for requested security signals. + # # The minimum timestamp for requested security signals. attr_accessor :from - # Search query for listing security signals. + # # Search query for listing security signals. attr_accessor :query - # The maximum timestamp for requested security signals. + # # The maximum timestamp for requested security signals. attr_accessor :to # Attribute mapping from ruby-style variable name to JSON key. 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 bfeb14e182b..830aa6b2d9c 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 @@ -23,10 +23,10 @@ class SecurityMonitoringSignalListRequestPage # @!visibility private attr_accessor :_unparsed - # A list of results using the cursor provided in the previous query. + # # A list of results using the cursor provided in the previous query. attr_accessor :cursor - # The maximum number of security signals in the response. + # # The maximum number of security signals in the response. attr_accessor :limit # Attribute mapping from ruby-style variable name to JSON key. 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 eec72fec523..4f48715f6e4 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 @@ -24,13 +24,13 @@ class SecurityMonitoringSignalsListResponse # @!visibility private attr_accessor :_unparsed - # An array of security signals matching the request. + # # An array of security signals matching the request. attr_accessor :data - # Links attributes. + # # Links attributes. attr_accessor :links - # Meta attributes. + # # Meta attributes. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 bc5d4a1c389..185f785841f 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 @@ -23,7 +23,7 @@ class SecurityMonitoringSignalsListResponseLinks # @!visibility private attr_accessor :_unparsed - # The link for the next set of results. **Note**: The request can also be made using the + # # The link for the next set of results. **Note**: The request can also be made using the # POST endpoint. attr_accessor :_next 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 f165a7adfc4..c445cf33c0d 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 @@ -23,7 +23,7 @@ class SecurityMonitoringSignalsListResponseMeta # @!visibility private attr_accessor :_unparsed - # Paging attributes. + # # Paging attributes. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. 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 73c22a7f915..d806274bd7d 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 @@ -23,7 +23,7 @@ class SecurityMonitoringSignalsListResponseMetaPage # @!visibility private attr_accessor :_unparsed - # The cursor used to get the next results, if any. To make the next request, use the same + # # The cursor used to get the next results, if any. To make the next request, use the same # parameters with the addition of the `page[cursor]`. attr_accessor :after 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 bf16972b9bd..e4cfa773046 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 @@ -23,16 +23,16 @@ class ServiceAccountCreateAttributes # @!visibility private attr_accessor :_unparsed - # The email of the user. + # # The email of the user. attr_accessor :email - # The name of the user. + # # The name of the user. attr_accessor :name - # Whether the user is a service account. Must be true. + # # Whether the user is a service account. Must be true. attr_accessor :service_account - # The title of the user. + # # The title of the user. attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. 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 d7b27c583b2..6f3d61106c4 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 @@ -23,13 +23,13 @@ class ServiceAccountCreateData # @!visibility private attr_accessor :_unparsed - # Attributes of the created user. + # # Attributes of the created user. attr_accessor :attributes - # Relationships of the user object. + # # Relationships of the user object. attr_accessor :relationships - # Users resource type. + # # Users resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 da94101f50d..7c957740e30 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 @@ -23,7 +23,7 @@ class ServiceAccountCreateRequest # @!visibility private attr_accessor :_unparsed - # Object to create a service account User. + # # Object to create a service account User. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/user.rb b/lib/datadog_api_client/v2/models/user.rb index 94ff611a753..b4ab11438a7 100644 --- a/lib/datadog_api_client/v2/models/user.rb +++ b/lib/datadog_api_client/v2/models/user.rb @@ -23,16 +23,16 @@ class User # @!visibility private attr_accessor :_unparsed - # Attributes of user object returned by the API. + # # Attributes of user object returned by the API. attr_accessor :attributes - # ID of the user. + # # ID of the user. attr_accessor :id - # Relationships of the user object returned by the API. + # # Relationships of the user object returned by the API. attr_accessor :relationships - # Users resource type. + # # Users resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/user_attributes.rb b/lib/datadog_api_client/v2/models/user_attributes.rb index 08b695cee8b..088d4afd53f 100644 --- a/lib/datadog_api_client/v2/models/user_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_attributes.rb @@ -23,37 +23,37 @@ class UserAttributes # @!visibility private attr_accessor :_unparsed - # Creation time of the user. + # # Creation time of the user. attr_accessor :created_at - # Whether the user is disabled. + # # Whether the user is disabled. attr_accessor :disabled - # Email of the user. + # # Email of the user. attr_accessor :email - # Handle of the user. + # # Handle of the user. attr_accessor :handle - # URL of the user's icon. + # # URL of the user's icon. attr_accessor :icon - # Time that the user was last modified. + # # Time that the user was last modified. attr_accessor :modified_at - # Name of the user. + # # Name of the user. attr_accessor :name - # Whether the user is a service account. + # # Whether the user is a service account. attr_accessor :service_account - # Status of the user. + # # Status of the user. attr_accessor :status - # Title of the user. + # # Title of the user. attr_accessor :title - # Whether the user is verified. + # # Whether the user is verified. attr_accessor :verified # Attribute mapping from ruby-style variable name to JSON key. 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 273bb7319cf..e8b22a66580 100644 --- a/lib/datadog_api_client/v2/models/user_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_create_attributes.rb @@ -23,13 +23,13 @@ class UserCreateAttributes # @!visibility private attr_accessor :_unparsed - # The email of the user. + # # The email of the user. attr_accessor :email - # The name of the user. + # # The name of the user. attr_accessor :name - # The title of the user. + # # The title of the user. attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. 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 5b38f1c3258..ad47ace2e51 100644 --- a/lib/datadog_api_client/v2/models/user_create_data.rb +++ b/lib/datadog_api_client/v2/models/user_create_data.rb @@ -23,13 +23,13 @@ class UserCreateData # @!visibility private attr_accessor :_unparsed - # Attributes of the created user. + # # Attributes of the created user. attr_accessor :attributes - # Relationships of the user object. + # # Relationships of the user object. attr_accessor :relationships - # Users resource type. + # # Users resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 38c5417e934..1b1c5392f9a 100644 --- a/lib/datadog_api_client/v2/models/user_create_request.rb +++ b/lib/datadog_api_client/v2/models/user_create_request.rb @@ -23,7 +23,7 @@ class UserCreateRequest # @!visibility private attr_accessor :_unparsed - # Object to create a user. + # # Object to create a user. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 253bfd6e3d0..258d01bac7b 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_data.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_data.rb @@ -23,10 +23,10 @@ class UserInvitationData # @!visibility private attr_accessor :_unparsed - # Relationships data for user invitation. + # # Relationships data for user invitation. attr_accessor :relationships - # User invitations type. + # # User invitations type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 dc07d91b801..99feb7d4318 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 @@ -23,16 +23,16 @@ class UserInvitationDataAttributes # @!visibility private attr_accessor :_unparsed - # Creation time of the user invitation. + # # Creation time of the user invitation. attr_accessor :created_at - # Time of invitation expiration. + # # Time of invitation expiration. attr_accessor :expires_at - # Type of invitation. + # # Type of invitation. attr_accessor :invite_type - # UUID of the user invitation. + # # UUID of the user invitation. attr_accessor :uuid # Attribute mapping from ruby-style variable name to JSON key. 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 2853584f0f2..6c11ba3c579 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_relationships.rb @@ -23,7 +23,7 @@ class UserInvitationRelationships # @!visibility private attr_accessor :_unparsed - # Relationship to user. + # # Relationship to user. attr_accessor :user # Attribute mapping from ruby-style variable name to JSON key. 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 aabc2b6f18f..48b6dd68e93 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_response.rb @@ -23,7 +23,7 @@ class UserInvitationResponse # @!visibility private attr_accessor :_unparsed - # Object of a user invitation returned by the API. + # # Object of a user invitation returned by the API. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 ee4ee80a320..d6abeac48ec 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 @@ -23,13 +23,13 @@ class UserInvitationResponseData # @!visibility private attr_accessor :_unparsed - # Attributes of a user invitation. + # # Attributes of a user invitation. attr_accessor :attributes - # ID of the user invitation. + # # ID of the user invitation. attr_accessor :id - # User invitations type. + # # User invitations type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 603d4d82815..18c5fbaf3cb 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_request.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_request.rb @@ -23,7 +23,7 @@ class UserInvitationsRequest # @!visibility private attr_accessor :_unparsed - # List of user invitations. + # # List of user invitations. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 84a09b74226..8ca04b28902 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_response.rb @@ -23,7 +23,7 @@ class UserInvitationsResponse # @!visibility private attr_accessor :_unparsed - # Array of user invitations. + # # Array of user invitations. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/user_relationships.rb b/lib/datadog_api_client/v2/models/user_relationships.rb index 8f82f1e0377..27ea4e7c8c1 100644 --- a/lib/datadog_api_client/v2/models/user_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_relationships.rb @@ -23,7 +23,7 @@ class UserRelationships # @!visibility private attr_accessor :_unparsed - # Relationship to roles. + # # Relationship to roles. attr_accessor :roles # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/user_response.rb b/lib/datadog_api_client/v2/models/user_response.rb index e9818b3490f..ea3b7101a92 100644 --- a/lib/datadog_api_client/v2/models/user_response.rb +++ b/lib/datadog_api_client/v2/models/user_response.rb @@ -23,10 +23,10 @@ class UserResponse # @!visibility private attr_accessor :_unparsed - # User object returned by the API. + # # User object returned by the API. attr_accessor :data - # Array of objects related to the user. + # # Array of objects related to the user. attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. 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 58f35504a19..ecda2dc5dbc 100644 --- a/lib/datadog_api_client/v2/models/user_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_response_relationships.rb @@ -23,16 +23,16 @@ class UserResponseRelationships # @!visibility private attr_accessor :_unparsed - # Relationship to an organization. + # # Relationship to an organization. attr_accessor :org - # Relationship to organizations. + # # Relationship to organizations. attr_accessor :other_orgs - # Relationship to users. + # # Relationship to users. attr_accessor :other_users - # Relationship to roles. + # # Relationship to roles. attr_accessor :roles # Attribute mapping from ruby-style variable name to JSON key. 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 7d8568bd157..195cccf6f16 100644 --- a/lib/datadog_api_client/v2/models/user_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_update_attributes.rb @@ -23,13 +23,13 @@ class UserUpdateAttributes # @!visibility private attr_accessor :_unparsed - # If the user is enabled or disabled. + # # If the user is enabled or disabled. attr_accessor :disabled - # The email of the user. + # # The email of the user. attr_accessor :email - # The name of the user. + # # The name of the user. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 15302478290..3d01d33f448 100644 --- a/lib/datadog_api_client/v2/models/user_update_data.rb +++ b/lib/datadog_api_client/v2/models/user_update_data.rb @@ -23,13 +23,13 @@ class UserUpdateData # @!visibility private attr_accessor :_unparsed - # Attributes of the edited user. + # # Attributes of the edited user. attr_accessor :attributes - # ID of the user. + # # ID of the user. attr_accessor :id - # Users resource type. + # # Users resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 5bd73becfb9..12ca170b2cd 100644 --- a/lib/datadog_api_client/v2/models/user_update_request.rb +++ b/lib/datadog_api_client/v2/models/user_update_request.rb @@ -23,7 +23,7 @@ class UserUpdateRequest # @!visibility private attr_accessor :_unparsed - # Object to update a user. + # # Object to update a user. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/users_response.rb b/lib/datadog_api_client/v2/models/users_response.rb index f7f1f59e42f..38607162ee0 100644 --- a/lib/datadog_api_client/v2/models/users_response.rb +++ b/lib/datadog_api_client/v2/models/users_response.rb @@ -23,13 +23,13 @@ class UsersResponse # @!visibility private attr_accessor :_unparsed - # Array of returned users. + # # Array of returned users. attr_accessor :data - # Array of objects related to the users. + # # Array of objects related to the users. attr_accessor :included - # Object describing meta attributes of response. + # # Object describing meta attributes of response. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. From 2f1355b62b68ff04f1fb7633c18f81cc3691f078 Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Mon, 7 Feb 2022 12:23:39 +0100 Subject: [PATCH 15/23] better comments --- .../src/generator/templates/model_generic.j2 | 2 +- .../models/alert_graph_widget_definition.rb | 14 +- .../models/alert_value_widget_definition.rb | 16 +-- .../v1/models/api_error_response.rb | 2 +- lib/datadog_api_client/v1/models/api_key.rb | 8 +- .../v1/models/api_key_list_response.rb | 2 +- .../v1/models/api_key_response.rb | 2 +- .../v1/models/apm_stats_query_column_type.rb | 8 +- .../v1/models/apm_stats_query_definition.rb | 14 +- .../v1/models/application_key.rb | 6 +- .../models/application_key_list_response.rb | 2 +- .../v1/models/application_key_response.rb | 2 +- .../authentication_validation_response.rb | 2 +- .../v1/models/aws_account.rb | 22 +-- .../models/aws_account_and_lambda_request.rb | 4 +- .../v1/models/aws_account_create_response.rb | 2 +- .../v1/models/aws_account_delete_request.rb | 6 +- .../v1/models/aws_account_list_response.rb | 2 +- .../v1/models/aws_logs_async_error.rb | 4 +- .../v1/models/aws_logs_async_response.rb | 4 +- .../v1/models/aws_logs_lambda.rb | 2 +- .../v1/models/aws_logs_list_response.rb | 6 +- .../models/aws_logs_list_services_response.rb | 4 +- .../v1/models/aws_logs_services_request.rb | 4 +- .../v1/models/aws_tag_filter.rb | 4 +- .../models/aws_tag_filter_create_request.rb | 6 +- .../models/aws_tag_filter_delete_request.rb | 4 +- .../v1/models/aws_tag_filter_list_response.rb | 2 +- .../v1/models/azure_account.rb | 16 +-- .../cancel_downtimes_by_scope_request.rb | 2 +- .../v1/models/canceled_downtimes_ids.rb | 2 +- .../v1/models/change_widget_definition.rb | 14 +- .../v1/models/change_widget_request.rb | 36 ++--- .../check_can_delete_monitor_response.rb | 4 +- .../check_can_delete_monitor_response_data.rb | 2 +- .../models/check_can_delete_slo_response.rb | 4 +- .../check_can_delete_slo_response_data.rb | 2 +- .../models/check_status_widget_definition.rb | 20 +-- lib/datadog_api_client/v1/models/creator.rb | 6 +- lib/datadog_api_client/v1/models/dashboard.rb | 32 ++--- .../v1/models/dashboard_bulk_action_data.rb | 4 +- .../models/dashboard_bulk_delete_request.rb | 2 +- .../v1/models/dashboard_delete_response.rb | 2 +- .../v1/models/dashboard_list.rb | 16 +-- .../models/dashboard_list_delete_response.rb | 2 +- .../v1/models/dashboard_list_list_response.rb | 2 +- .../v1/models/dashboard_restore_request.rb | 2 +- .../v1/models/dashboard_summary.rb | 2 +- .../v1/models/dashboard_summary_definition.rb | 18 +-- .../v1/models/dashboard_template_variable.rb | 8 +- .../dashboard_template_variable_preset.rb | 4 +- ...ashboard_template_variable_preset_value.rb | 4 +- .../v1/models/deleted_monitor.rb | 2 +- .../models/distribution_widget_definition.rb | 22 +-- .../v1/models/distribution_widget_request.rb | 22 +-- .../v1/models/distribution_widget_x_axis.rb | 8 +- .../v1/models/distribution_widget_y_axis.rb | 10 +- lib/datadog_api_client/v1/models/downtime.rb | 34 ++--- .../v1/models/downtime_child.rb | 32 ++--- .../v1/models/downtime_recurrence.rb | 12 +- lib/datadog_api_client/v1/models/event.rb | 26 ++-- .../v1/models/event_create_request.rb | 22 +-- .../v1/models/event_create_response.rb | 28 ++-- .../v1/models/event_list_response.rb | 4 +- .../v1/models/event_query_definition.rb | 4 +- .../v1/models/event_response.rb | 4 +- .../models/event_stream_widget_definition.rb | 16 +-- .../event_timeline_widget_definition.rb | 14 +- ...n_apm_dependency_stats_query_definition.rb | 20 +-- ...ion_apm_resource_stats_query_definition.rb | 20 +-- ...ula_and_function_event_query_definition.rb | 12 +- ...function_event_query_definition_compute.rb | 6 +- ..._function_event_query_definition_search.rb | 2 +- ...rmula_and_function_event_query_group_by.rb | 6 +- ..._and_function_event_query_group_by_sort.rb | 6 +- ...la_and_function_metric_query_definition.rb | 8 +- ...a_and_function_process_query_definition.rb | 18 +-- .../v1/models/free_text_widget_definition.rb | 10 +- .../v1/models/funnel_query.rb | 6 +- .../v1/models/funnel_query_steps_item.rb | 4 +- .../v1/models/funnel_widget_definition.rb | 12 +- .../v1/models/funnel_widget_request.rb | 4 +- .../v1/models/gcp_account.rb | 26 ++-- .../v1/models/geomap_widget_definition.rb | 18 +-- .../models/geomap_widget_definition_style.rb | 4 +- .../models/geomap_widget_definition_view.rb | 2 +- .../v1/models/geomap_widget_request.rb | 14 +- .../v1/models/graph_snapshot.rb | 6 +- .../v1/models/group_widget_definition.rb | 16 +-- .../v1/models/heat_map_widget_definition.rb | 22 +-- .../v1/models/heat_map_widget_request.rb | 20 +-- lib/datadog_api_client/v1/models/host.rb | 28 ++-- .../v1/models/host_list_response.rb | 6 +- .../v1/models/host_map_request.rb | 18 +-- .../v1/models/host_map_widget_definition.rb | 26 ++-- .../host_map_widget_definition_requests.rb | 4 +- .../host_map_widget_definition_style.rb | 8 +- lib/datadog_api_client/v1/models/host_meta.rb | 30 ++-- .../v1/models/host_meta_install_method.rb | 6 +- .../v1/models/host_metrics.rb | 6 +- .../v1/models/host_mute_response.rb | 8 +- .../v1/models/host_mute_settings.rb | 6 +- lib/datadog_api_client/v1/models/host_tags.rb | 4 +- .../v1/models/host_totals.rb | 4 +- .../models/hourly_usage_attribution_body.rb | 16 +-- .../hourly_usage_attribution_metadata.rb | 2 +- .../hourly_usage_attribution_pagination.rb | 2 +- .../hourly_usage_attribution_response.rb | 4 +- .../v1/models/http_log_error.rb | 4 +- .../v1/models/http_log_item.rb | 10 +- .../v1/models/i_frame_widget_definition.rb | 4 +- .../v1/models/idp_form_data.rb | 2 +- .../v1/models/idp_response.rb | 2 +- .../v1/models/image_widget_definition.rb | 18 +-- .../v1/models/intake_payload_accepted.rb | 2 +- .../v1/models/ip_prefixes_agents.rb | 4 +- .../v1/models/ip_prefixes_api.rb | 4 +- .../v1/models/ip_prefixes_apm.rb | 4 +- .../v1/models/ip_prefixes_logs.rb | 4 +- .../v1/models/ip_prefixes_process.rb | 4 +- .../v1/models/ip_prefixes_synthetics.rb | 8 +- .../v1/models/ip_prefixes_webhooks.rb | 4 +- lib/datadog_api_client/v1/models/ip_ranges.rb | 18 +-- .../v1/models/list_stream_column.rb | 4 +- .../v1/models/list_stream_query.rb | 6 +- .../models/list_stream_widget_definition.rb | 16 +-- .../v1/models/list_stream_widget_request.rb | 6 +- lib/datadog_api_client/v1/models/log.rb | 4 +- .../v1/models/log_content.rb | 12 +- .../v1/models/log_query_definition.rb | 10 +- .../models/log_query_definition_group_by.rb | 6 +- .../log_query_definition_group_by_sort.rb | 6 +- .../v1/models/log_query_definition_search.rb | 2 +- .../v1/models/log_stream_widget_definition.rb | 26 ++-- .../v1/models/logs_api_error.rb | 6 +- .../v1/models/logs_api_error_response.rb | 2 +- .../v1/models/logs_arithmetic_processor.rb | 12 +- .../v1/models/logs_attribute_remapper.rb | 20 +-- .../v1/models/logs_by_retention.rb | 6 +- .../models/logs_by_retention_monthly_usage.rb | 4 +- .../v1/models/logs_by_retention_org_usage.rb | 2 +- .../v1/models/logs_by_retention_orgs.rb | 2 +- .../v1/models/logs_category_processor.rb | 10 +- .../logs_category_processor_category.rb | 4 +- .../v1/models/logs_date_remapper.rb | 8 +- .../v1/models/logs_exclusion.rb | 6 +- .../v1/models/logs_exclusion_filter.rb | 4 +- .../v1/models/logs_filter.rb | 2 +- .../v1/models/logs_geo_ip_parser.rb | 10 +- .../v1/models/logs_grok_parser.rb | 12 +- .../v1/models/logs_grok_parser_rules.rb | 4 +- .../v1/models/logs_index.rb | 12 +- .../v1/models/logs_index_list_response.rb | 2 +- .../v1/models/logs_index_update_request.rb | 10 +- .../v1/models/logs_indexes_order.rb | 2 +- .../v1/models/logs_list_request.rb | 12 +- .../v1/models/logs_list_request_time.rb | 6 +- .../v1/models/logs_list_response.rb | 6 +- .../v1/models/logs_lookup_processor.rb | 14 +- .../v1/models/logs_message_remapper.rb | 8 +- .../v1/models/logs_pipeline.rb | 14 +- .../v1/models/logs_pipeline_processor.rb | 10 +- .../v1/models/logs_pipelines_order.rb | 2 +- .../v1/models/logs_query_compute.rb | 6 +- .../v1/models/logs_retention_agg_sum_usage.rb | 8 +- .../v1/models/logs_retention_sum_usage.rb | 8 +- .../v1/models/logs_service_remapper.rb | 8 +- .../v1/models/logs_status_remapper.rb | 8 +- .../models/logs_string_builder_processor.rb | 12 +- .../v1/models/logs_trace_remapper.rb | 8 +- .../v1/models/logs_url_parser.rb | 12 +- .../v1/models/logs_user_agent_parser.rb | 12 +- .../v1/models/metric_metadata.rb | 14 +- .../v1/models/metric_search_response.rb | 2 +- .../models/metric_search_response_results.rb | 2 +- .../v1/models/metrics_list_response.rb | 4 +- .../v1/models/metrics_payload.rb | 2 +- .../v1/models/metrics_query_metadata.rb | 26 ++-- .../v1/models/metrics_query_response.rb | 18 +-- .../v1/models/metrics_query_unit.rb | 10 +- lib/datadog_api_client/v1/models/monitor.rb | 32 ++--- ...ula_and_function_event_query_definition.rb | 12 +- ...function_event_query_definition_compute.rb | 6 +- ..._function_event_query_definition_search.rb | 2 +- ...rmula_and_function_event_query_group_by.rb | 6 +- ..._and_function_event_query_group_by_sort.rb | 6 +- .../models/monitor_group_search_response.rb | 6 +- .../monitor_group_search_response_counts.rb | 4 +- ...roup_search_response_counts_status_item.rb | 4 +- ..._group_search_response_counts_type_item.rb | 4 +- .../v1/models/monitor_group_search_result.rb | 14 +- .../v1/models/monitor_options.rb | 50 +++---- .../v1/models/monitor_options_aggregation.rb | 6 +- .../v1/models/monitor_search_response.rb | 6 +- .../models/monitor_search_response_counts.rb | 8 +- ...nitor_search_response_counts_muted_item.rb | 4 +- ...itor_search_response_counts_status_item.rb | 4 +- ...monitor_search_response_counts_tag_item.rb | 4 +- ...onitor_search_response_counts_type_item.rb | 4 +- .../monitor_search_response_metadata.rb | 8 +- .../v1/models/monitor_search_result.rb | 26 ++-- .../monitor_search_result_notification.rb | 4 +- .../v1/models/monitor_state.rb | 2 +- .../v1/models/monitor_state_group.rb | 12 +- .../monitor_summary_widget_definition.rb | 26 ++-- .../monitor_threshold_window_options.rb | 4 +- .../v1/models/monitor_thresholds.rb | 12 +- .../v1/models/monitor_update_request.rb | 32 ++--- .../models/monthly_usage_attribution_body.rb | 14 +- .../monthly_usage_attribution_metadata.rb | 4 +- .../monthly_usage_attribution_pagination.rb | 2 +- .../monthly_usage_attribution_response.rb | 4 +- .../monthly_usage_attribution_values.rb | 56 ++++---- .../v1/models/note_widget_definition.rb | 20 +-- .../v1/models/notebook_absolute_time.rb | 6 +- .../v1/models/notebook_author.rb | 18 +-- .../v1/models/notebook_cell_create_request.rb | 4 +- .../v1/models/notebook_cell_response.rb | 6 +- .../v1/models/notebook_cell_update_request.rb | 6 +- .../v1/models/notebook_create_data.rb | 4 +- .../models/notebook_create_data_attributes.rb | 10 +- .../v1/models/notebook_create_request.rb | 2 +- .../notebook_distribution_cell_attributes.rb | 8 +- .../notebook_heat_map_cell_attributes.rb | 8 +- .../notebook_log_stream_cell_attributes.rb | 6 +- .../notebook_markdown_cell_attributes.rb | 2 +- .../notebook_markdown_cell_definition.rb | 4 +- .../v1/models/notebook_metadata.rb | 6 +- .../v1/models/notebook_relative_time.rb | 2 +- .../v1/models/notebook_response.rb | 2 +- .../v1/models/notebook_response_data.rb | 6 +- .../notebook_response_data_attributes.rb | 16 +-- .../v1/models/notebook_split_by.rb | 4 +- .../notebook_timeseries_cell_attributes.rb | 8 +- .../notebook_toplist_cell_attributes.rb | 8 +- .../v1/models/notebook_update_data.rb | 4 +- .../models/notebook_update_data_attributes.rb | 10 +- .../v1/models/notebook_update_request.rb | 2 +- .../v1/models/notebooks_response.rb | 4 +- .../v1/models/notebooks_response_data.rb | 6 +- .../notebooks_response_data_attributes.rb | 16 +-- .../v1/models/notebooks_response_meta.rb | 2 +- .../v1/models/notebooks_response_page.rb | 4 +- .../v1/models/organization.rb | 14 +- .../v1/models/organization_billing.rb | 2 +- .../v1/models/organization_create_body.rb | 6 +- .../v1/models/organization_create_response.rb | 8 +- .../v1/models/organization_list_response.rb | 2 +- .../v1/models/organization_response.rb | 2 +- .../v1/models/organization_settings.rb | 20 +-- .../v1/models/organization_settings_saml.rb | 2 +- ..._settings_saml_autocreate_users_domains.rb | 4 +- ...ation_settings_saml_idp_initiated_login.rb | 2 +- .../organization_settings_saml_strict_mode.rb | 2 +- .../v1/models/organization_subscription.rb | 2 +- .../v1/models/pager_duty_service.rb | 4 +- .../v1/models/pager_duty_service_key.rb | 2 +- .../v1/models/pager_duty_service_name.rb | 2 +- .../v1/models/pagination.rb | 4 +- .../v1/models/process_query_definition.rb | 8 +- .../models/query_value_widget_definition.rb | 22 +-- .../v1/models/query_value_widget_request.rb | 30 ++-- .../v1/models/response_meta_attributes.rb | 2 +- .../v1/models/scatter_plot_request.rb | 20 +-- .../models/scatter_plot_widget_definition.rb | 20 +-- ...scatter_plot_widget_definition_requests.rb | 6 +- .../v1/models/scatterplot_table_request.rb | 6 +- .../v1/models/scatterplot_widget_formula.rb | 6 +- lib/datadog_api_client/v1/models/series.rb | 12 +- .../v1/models/service_check.rb | 12 +- .../v1/models/service_level_objective.rb | 26 ++-- .../models/service_level_objective_query.rb | 4 +- .../models/service_level_objective_request.rb | 16 +-- .../models/service_map_widget_definition.rb | 14 +- .../service_summary_widget_definition.rb | 32 ++--- .../v1/models/slack_integration_channel.rb | 4 +- .../slack_integration_channel_display.rb | 8 +- .../v1/models/slo_bulk_delete_error.rb | 6 +- .../v1/models/slo_bulk_delete_response.rb | 4 +- .../models/slo_bulk_delete_response_data.rb | 4 +- .../v1/models/slo_correction.rb | 6 +- .../v1/models/slo_correction_create_data.rb | 4 +- .../models/slo_correction_create_request.rb | 2 +- ...lo_correction_create_request_attributes.rb | 16 +-- .../v1/models/slo_correction_list_response.rb | 4 +- .../v1/models/slo_correction_response.rb | 2 +- .../slo_correction_response_attributes.rb | 24 ++-- ...correction_response_attributes_modifier.rb | 6 +- .../v1/models/slo_correction_update_data.rb | 4 +- .../models/slo_correction_update_request.rb | 2 +- ...lo_correction_update_request_attributes.rb | 14 +- .../v1/models/slo_delete_response.rb | 4 +- .../v1/models/slo_history_metrics.rb | 16 +-- .../v1/models/slo_history_metrics_series.rb | 8 +- .../slo_history_metrics_series_metadata.rb | 12 +- ...lo_history_metrics_series_metadata_unit.rb | 12 +- .../v1/models/slo_history_monitor.rb | 24 ++-- .../v1/models/slo_history_response.rb | 4 +- .../v1/models/slo_history_response_data.rb | 20 +-- .../v1/models/slo_history_response_error.rb | 2 +- .../slo_history_response_error_with_type.rb | 4 +- .../v1/models/slo_history_sli_data.rb | 24 ++-- .../v1/models/slo_list_response.rb | 6 +- .../v1/models/slo_list_response_metadata.rb | 2 +- .../models/slo_list_response_metadata_page.rb | 4 +- .../v1/models/slo_response.rb | 4 +- .../v1/models/slo_response_data.rb | 28 ++-- .../v1/models/slo_threshold.rb | 10 +- .../v1/models/slo_widget_definition.rb | 20 +-- .../v1/models/sunburst_widget_definition.rb | 18 +-- ...sunburst_widget_legend_inline_automatic.rb | 6 +- .../v1/models/sunburst_widget_legend_table.rb | 2 +- .../v1/models/sunburst_widget_request.rb | 26 ++-- .../v1/models/synthetics_api_step.rb | 16 +-- .../v1/models/synthetics_api_test.rb | 22 +-- .../v1/models/synthetics_api_test_config.rb | 8 +- .../models/synthetics_api_test_result_data.rb | 18 +-- .../synthetics_api_test_result_failure.rb | 4 +- .../models/synthetics_api_test_result_full.rb | 14 +- .../synthetics_api_test_result_full_check.rb | 2 +- .../synthetics_api_test_result_short.rb | 10 +- ...synthetics_api_test_result_short_result.rb | 4 +- .../synthetics_assertion_json_path_target.rb | 8 +- ...etics_assertion_json_path_target_target.rb | 6 +- .../v1/models/synthetics_assertion_target.rb | 8 +- .../v1/models/synthetics_basic_auth_ntlm.rb | 10 +- .../v1/models/synthetics_basic_auth_sigv4.rb | 12 +- .../v1/models/synthetics_basic_auth_web.rb | 6 +- .../v1/models/synthetics_batch_details.rb | 2 +- .../models/synthetics_batch_details_data.rb | 6 +- .../v1/models/synthetics_batch_result.rb | 20 +-- .../v1/models/synthetics_browser_error.rb | 8 +- .../v1/models/synthetics_browser_test.rb | 22 +-- .../models/synthetics_browser_test_config.rb | 10 +- .../synthetics_browser_test_result_data.rb | 24 ++-- .../synthetics_browser_test_result_failure.rb | 4 +- .../synthetics_browser_test_result_full.rb | 14 +- ...nthetics_browser_test_result_full_check.rb | 2 +- .../synthetics_browser_test_result_short.rb | 10 +- ...hetics_browser_test_result_short_result.rb | 10 +- .../v1/models/synthetics_browser_variable.rb | 10 +- .../v1/models/synthetics_ci_batch_metadata.rb | 4 +- .../models/synthetics_ci_batch_metadata_ci.rb | 4 +- .../synthetics_ci_batch_metadata_git.rb | 4 +- .../synthetics_ci_batch_metadata_pipeline.rb | 2 +- .../synthetics_ci_batch_metadata_provider.rb | 2 +- .../v1/models/synthetics_ci_test.rb | 28 ++-- .../v1/models/synthetics_ci_test_body.rb | 2 +- .../v1/models/synthetics_config_variable.rb | 10 +- .../v1/models/synthetics_core_web_vitals.rb | 6 +- .../models/synthetics_delete_tests_payload.rb | 2 +- .../synthetics_delete_tests_response.rb | 2 +- .../v1/models/synthetics_deleted_test.rb | 4 +- .../v1/models/synthetics_device.rb | 10 +- ...cs_get_api_test_latest_results_response.rb | 4 +- ...et_browser_test_latest_results_response.rb | 4 +- .../v1/models/synthetics_global_variable.rb | 16 +-- .../synthetics_global_variable_attributes.rb | 2 +- ...tics_global_variable_parse_test_options.rb | 6 +- .../synthetics_global_variable_value.rb | 4 +- ...nthetics_list_global_variables_response.rb | 2 +- .../models/synthetics_list_tests_response.rb | 2 +- .../v1/models/synthetics_location.rb | 4 +- .../v1/models/synthetics_locations.rb | 2 +- .../v1/models/synthetics_parsing_options.rb | 8 +- .../v1/models/synthetics_private_location.rb | 10 +- ...tics_private_location_creation_response.rb | 6 +- ...ion_creation_response_result_encryption.rb | 4 +- .../synthetics_private_location_secrets.rb | 4 +- ...private_location_secrets_authentication.rb | 4 +- ...vate_location_secrets_config_decryption.rb | 2 +- .../v1/models/synthetics_ssl_certificate.rb | 24 ++-- .../synthetics_ssl_certificate_issuer.rb | 12 +- .../synthetics_ssl_certificate_subject.rb | 14 +- .../v1/models/synthetics_step.rb | 10 +- .../v1/models/synthetics_step_detail.rb | 34 ++--- .../models/synthetics_step_detail_warning.rb | 4 +- .../v1/models/synthetics_test_config.rb | 8 +- .../v1/models/synthetics_test_details.rb | 26 ++-- .../v1/models/synthetics_test_options.rb | 26 ++-- ...synthetics_test_options_monitor_options.rb | 2 +- .../models/synthetics_test_options_retry.rb | 4 +- .../v1/models/synthetics_test_request.rb | 40 +++--- .../synthetics_test_request_certificate.rb | 4 +- ...ynthetics_test_request_certificate_item.rb | 6 +- .../models/synthetics_test_request_proxy.rb | 4 +- .../v1/models/synthetics_timing.rb | 18 +-- .../v1/models/synthetics_trigger_body.rb | 2 +- .../synthetics_trigger_ci_test_location.rb | 4 +- .../synthetics_trigger_ci_test_run_result.rb | 8 +- .../synthetics_trigger_ci_tests_response.rb | 8 +- .../v1/models/synthetics_trigger_test.rb | 4 +- ...hetics_update_test_pause_status_payload.rb | 2 +- .../v1/models/synthetics_variable_parser.rb | 4 +- .../v1/models/table_widget_definition.rb | 16 +-- .../v1/models/table_widget_request.rb | 38 ++--- .../v1/models/tag_to_hosts.rb | 2 +- .../v1/models/timeseries_widget_definition.rb | 30 ++-- .../timeseries_widget_expression_alias.rb | 4 +- .../v1/models/timeseries_widget_request.rb | 34 ++--- .../v1/models/toplist_widget_definition.rb | 14 +- .../v1/models/toplist_widget_request.rb | 30 ++-- .../v1/models/tree_map_widget_definition.rb | 12 +- .../v1/models/tree_map_widget_request.rb | 8 +- .../v1/models/usage_analyzed_logs_hour.rb | 8 +- .../v1/models/usage_analyzed_logs_response.rb | 2 +- .../usage_attribution_aggregates_body.rb | 6 +- .../v1/models/usage_attribution_body.rb | 14 +- .../v1/models/usage_attribution_metadata.rb | 4 +- .../v1/models/usage_attribution_pagination.rb | 10 +- .../v1/models/usage_attribution_response.rb | 4 +- .../v1/models/usage_attribution_values.rb | 80 +++++------ .../v1/models/usage_audit_logs_hour.rb | 8 +- .../v1/models/usage_audit_logs_response.rb | 2 +- .../v1/models/usage_billable_summary_body.rb | 14 +- .../v1/models/usage_billable_summary_hour.rb | 16 +-- .../v1/models/usage_billable_summary_keys.rb | 64 ++++----- .../models/usage_billable_summary_response.rb | 2 +- ..._cloud_security_posture_management_hour.rb | 16 +-- ...ud_security_posture_management_response.rb | 2 +- .../models/usage_custom_reports_attributes.rb | 10 +- .../v1/models/usage_custom_reports_data.rb | 6 +- .../v1/models/usage_custom_reports_meta.rb | 2 +- .../v1/models/usage_custom_reports_page.rb | 2 +- .../models/usage_custom_reports_response.rb | 4 +- .../v1/models/usage_cws_hour.rb | 10 +- .../v1/models/usage_cws_response.rb | 2 +- .../v1/models/usage_dbm_hour.rb | 10 +- .../v1/models/usage_dbm_response.rb | 2 +- .../v1/models/usage_fargate_hour.rb | 10 +- .../v1/models/usage_fargate_response.rb | 2 +- .../v1/models/usage_host_hour.rb | 28 ++-- .../v1/models/usage_hosts_response.rb | 2 +- .../models/usage_incident_management_hour.rb | 8 +- .../usage_incident_management_response.rb | 2 +- .../v1/models/usage_indexed_spans_hour.rb | 8 +- .../v1/models/usage_indexed_spans_response.rb | 2 +- .../v1/models/usage_ingested_spans_hour.rb | 8 +- .../models/usage_ingested_spans_response.rb | 2 +- .../v1/models/usage_io_t_hour.rb | 8 +- .../v1/models/usage_io_t_response.rb | 2 +- .../v1/models/usage_lambda_hour.rb | 6 +- .../v1/models/usage_lambda_response.rb | 2 +- .../v1/models/usage_logs_by_index_hour.rb | 10 +- .../v1/models/usage_logs_by_index_response.rb | 2 +- .../v1/models/usage_logs_by_retention_hour.rb | 8 +- .../usage_logs_by_retention_response.rb | 2 +- .../v1/models/usage_logs_hour.rb | 16 +-- .../v1/models/usage_logs_response.rb | 2 +- .../v1/models/usage_network_flows_hour.rb | 4 +- .../v1/models/usage_network_flows_response.rb | 2 +- .../v1/models/usage_network_hosts_hour.rb | 4 +- .../v1/models/usage_network_hosts_response.rb | 2 +- .../v1/models/usage_profiling_hour.rb | 10 +- .../v1/models/usage_profiling_response.rb | 2 +- .../v1/models/usage_rum_sessions_hour.rb | 14 +- .../v1/models/usage_rum_sessions_response.rb | 2 +- .../v1/models/usage_rum_units_hour.rb | 10 +- .../v1/models/usage_rum_units_response.rb | 2 +- .../v1/models/usage_sds_hour.rb | 10 +- .../v1/models/usage_sds_response.rb | 2 +- .../v1/models/usage_snmp_hour.rb | 8 +- .../v1/models/usage_snmp_response.rb | 2 +- ...age_specified_custom_reports_attributes.rb | 12 +- .../usage_specified_custom_reports_data.rb | 6 +- .../usage_specified_custom_reports_meta.rb | 2 +- .../usage_specified_custom_reports_page.rb | 2 +- ...usage_specified_custom_reports_response.rb | 4 +- .../v1/models/usage_summary_date.rb | 114 +++++++-------- .../v1/models/usage_summary_date_org.rb | 116 +++++++-------- .../v1/models/usage_summary_response.rb | 132 +++++++++--------- .../v1/models/usage_synthetics_api_hour.rb | 4 +- .../models/usage_synthetics_api_response.rb | 2 +- .../models/usage_synthetics_browser_hour.rb | 4 +- .../usage_synthetics_browser_response.rb | 2 +- .../v1/models/usage_synthetics_hour.rb | 4 +- .../v1/models/usage_synthetics_response.rb | 2 +- .../v1/models/usage_timeseries_hour.rb | 8 +- .../v1/models/usage_timeseries_response.rb | 2 +- .../v1/models/usage_top_avg_metrics_hour.rb | 8 +- .../models/usage_top_avg_metrics_metadata.rb | 6 +- .../models/usage_top_avg_metrics_response.rb | 4 +- lib/datadog_api_client/v1/models/user.rb | 14 +- .../v1/models/user_disable_response.rb | 2 +- .../v1/models/user_list_response.rb | 2 +- .../v1/models/user_response.rb | 2 +- .../v1/models/webhooks_integration.rb | 10 +- .../webhooks_integration_custom_variable.rb | 6 +- ...ks_integration_custom_variable_response.rb | 6 +- ...egration_custom_variable_update_request.rb | 6 +- .../webhooks_integration_update_request.rb | 10 +- lib/datadog_api_client/v1/models/widget.rb | 6 +- .../v1/models/widget_axis.rb | 10 +- .../v1/models/widget_conditional_format.rb | 18 +-- .../v1/models/widget_custom_link.rb | 8 +- .../v1/models/widget_event.rb | 4 +- .../v1/models/widget_field_sort.rb | 4 +- .../v1/models/widget_formula.rb | 10 +- .../v1/models/widget_formula_limit.rb | 4 +- .../v1/models/widget_layout.rb | 10 +- .../v1/models/widget_marker.rb | 8 +- .../v1/models/widget_request_style.rb | 6 +- .../v1/models/widget_style.rb | 2 +- .../v1/models/widget_time.rb | 2 +- .../v2/models/api_error_response.rb | 2 +- .../v2/models/api_key_create_attributes.rb | 2 +- .../v2/models/api_key_create_data.rb | 4 +- .../v2/models/api_key_create_request.rb | 2 +- .../v2/models/api_key_relationships.rb | 4 +- .../v2/models/api_key_response.rb | 4 +- .../v2/models/api_key_update_attributes.rb | 2 +- .../v2/models/api_key_update_data.rb | 6 +- .../v2/models/api_key_update_request.rb | 2 +- .../v2/models/api_keys_response.rb | 4 +- .../application_key_create_attributes.rb | 4 +- .../v2/models/application_key_create_data.rb | 4 +- .../models/application_key_create_request.rb | 2 +- .../models/application_key_relationships.rb | 2 +- .../v2/models/application_key_response.rb | 4 +- .../application_key_update_attributes.rb | 4 +- .../v2/models/application_key_update_data.rb | 6 +- .../models/application_key_update_request.rb | 2 +- ...workload_security_agent_rule_attributes.rb | 22 +-- ...d_security_agent_rule_create_attributes.rb | 8 +- ...orkload_security_agent_rule_create_data.rb | 4 +- ...load_security_agent_rule_create_request.rb | 2 +- ..._security_agent_rule_creator_attributes.rb | 4 +- ...cloud_workload_security_agent_rule_data.rb | 6 +- ...d_workload_security_agent_rule_response.rb | 2 +- ...d_security_agent_rule_update_attributes.rb | 6 +- ...orkload_security_agent_rule_update_data.rb | 4 +- ...load_security_agent_rule_update_request.rb | 2 +- ..._security_agent_rule_updater_attributes.rb | 4 +- ...load_security_agent_rules_list_response.rb | 2 +- lib/datadog_api_client/v2/models/creator.rb | 6 +- .../dashboard_list_add_items_request.rb | 2 +- .../dashboard_list_add_items_response.rb | 2 +- .../dashboard_list_delete_items_request.rb | 2 +- .../dashboard_list_delete_items_response.rb | 2 +- .../v2/models/dashboard_list_item.rb | 24 ++-- .../v2/models/dashboard_list_item_request.rb | 4 +- .../v2/models/dashboard_list_item_response.rb | 4 +- .../v2/models/dashboard_list_items.rb | 4 +- .../dashboard_list_update_items_request.rb | 2 +- .../dashboard_list_update_items_response.rb | 2 +- .../v2/models/full_api_key.rb | 8 +- .../v2/models/full_api_key_attributes.rb | 10 +- .../v2/models/full_application_key.rb | 8 +- .../models/full_application_key_attributes.rb | 10 +- .../v2/models/http_log_error.rb | 6 +- .../v2/models/http_log_errors.rb | 2 +- .../v2/models/http_log_item.rb | 10 +- .../v2/models/incident_create_attributes.rb | 10 +- .../v2/models/incident_create_data.rb | 6 +- .../models/incident_create_relationships.rb | 2 +- .../v2/models/incident_create_request.rb | 2 +- ...ncident_field_attributes_multiple_value.rb | 4 +- .../incident_field_attributes_single_value.rb | 4 +- .../v2/models/incident_notification_handle.rb | 4 +- .../v2/models/incident_response.rb | 4 +- .../v2/models/incident_response_attributes.rb | 36 ++--- .../v2/models/incident_response_data.rb | 8 +- .../models/incident_response_relationships.rb | 10 +- .../incident_service_create_attributes.rb | 2 +- .../v2/models/incident_service_create_data.rb | 6 +- .../models/incident_service_create_request.rb | 2 +- .../models/incident_service_relationships.rb | 4 +- .../v2/models/incident_service_response.rb | 4 +- .../incident_service_response_attributes.rb | 6 +- .../models/incident_service_response_data.rb | 8 +- .../incident_service_update_attributes.rb | 2 +- .../v2/models/incident_service_update_data.rb | 8 +- .../models/incident_service_update_request.rb | 2 +- .../v2/models/incident_services_response.rb | 6 +- .../models/incident_services_response_meta.rb | 2 +- ...ident_services_response_meta_pagination.rb | 6 +- .../models/incident_team_create_attributes.rb | 2 +- .../v2/models/incident_team_create_data.rb | 6 +- .../v2/models/incident_team_create_request.rb | 2 +- .../v2/models/incident_team_relationships.rb | 4 +- .../v2/models/incident_team_response.rb | 4 +- .../incident_team_response_attributes.rb | 6 +- .../v2/models/incident_team_response_data.rb | 8 +- .../models/incident_team_update_attributes.rb | 2 +- .../v2/models/incident_team_update_data.rb | 8 +- .../v2/models/incident_team_update_request.rb | 2 +- .../v2/models/incident_teams_response.rb | 6 +- .../v2/models/incident_teams_response_meta.rb | 2 +- ...incident_teams_response_meta_pagination.rb | 6 +- ...imeline_cell_markdown_create_attributes.rb | 6 +- ...cell_markdown_create_attributes_content.rb | 2 +- .../v2/models/incident_update_attributes.rb | 18 +-- .../v2/models/incident_update_data.rb | 8 +- .../models/incident_update_relationships.rb | 10 +- .../v2/models/incident_update_request.rb | 2 +- .../v2/models/incidents_response.rb | 6 +- .../v2/models/incidents_response_meta.rb | 2 +- .../incidents_response_meta_pagination.rb | 6 +- .../models/list_application_keys_response.rb | 4 +- lib/datadog_api_client/v2/models/log.rb | 6 +- .../v2/models/log_attributes.rb | 14 +- .../v2/models/logs_aggregate_bucket.rb | 4 +- ...aggregate_bucket_value_timeseries_point.rb | 4 +- .../v2/models/logs_aggregate_request.rb | 10 +- .../v2/models/logs_aggregate_request_page.rb | 2 +- .../v2/models/logs_aggregate_response.rb | 4 +- .../v2/models/logs_aggregate_response_data.rb | 2 +- .../v2/models/logs_aggregate_sort.rb | 8 +- .../v2/models/logs_archive.rb | 2 +- .../v2/models/logs_archive_attributes.rb | 12 +- .../v2/models/logs_archive_create_request.rb | 2 +- .../logs_archive_create_request_attributes.rb | 10 +- .../logs_archive_create_request_definition.rb | 4 +- .../v2/models/logs_archive_definition.rb | 6 +- .../models/logs_archive_destination_azure.rb | 12 +- .../v2/models/logs_archive_destination_gcs.rb | 8 +- .../v2/models/logs_archive_destination_s3.rb | 8 +- .../models/logs_archive_integration_azure.rb | 4 +- .../v2/models/logs_archive_integration_gcs.rb | 4 +- .../v2/models/logs_archive_integration_s3.rb | 4 +- .../v2/models/logs_archive_order.rb | 2 +- .../models/logs_archive_order_attributes.rb | 2 +- .../models/logs_archive_order_definition.rb | 4 +- .../v2/models/logs_archives.rb | 2 +- .../v2/models/logs_compute.rb | 8 +- .../v2/models/logs_group_by.rb | 12 +- .../v2/models/logs_group_by_histogram.rb | 6 +- .../v2/models/logs_list_request.rb | 8 +- .../v2/models/logs_list_request_page.rb | 4 +- .../v2/models/logs_list_response.rb | 6 +- .../v2/models/logs_list_response_links.rb | 2 +- .../v2/models/logs_metric_compute.rb | 4 +- .../models/logs_metric_create_attributes.rb | 6 +- .../v2/models/logs_metric_create_data.rb | 6 +- .../v2/models/logs_metric_create_request.rb | 2 +- .../v2/models/logs_metric_filter.rb | 2 +- .../v2/models/logs_metric_group_by.rb | 4 +- .../v2/models/logs_metric_response.rb | 2 +- .../models/logs_metric_response_attributes.rb | 6 +- .../v2/models/logs_metric_response_compute.rb | 4 +- .../v2/models/logs_metric_response_data.rb | 6 +- .../v2/models/logs_metric_response_filter.rb | 2 +- .../models/logs_metric_response_group_by.rb | 4 +- .../models/logs_metric_update_attributes.rb | 4 +- .../v2/models/logs_metric_update_data.rb | 4 +- .../v2/models/logs_metric_update_request.rb | 2 +- .../v2/models/logs_metrics_response.rb | 2 +- .../v2/models/logs_query_filter.rb | 8 +- .../v2/models/logs_query_options.rb | 4 +- .../v2/models/logs_response_metadata.rb | 10 +- .../v2/models/logs_response_metadata_page.rb | 2 +- .../v2/models/logs_warning.rb | 6 +- lib/datadog_api_client/v2/models/metric.rb | 4 +- .../v2/models/metric_all_tags.rb | 6 +- .../v2/models/metric_all_tags_attributes.rb | 2 +- .../v2/models/metric_all_tags_response.rb | 2 +- .../v2/models/metric_custom_aggregation.rb | 4 +- .../v2/models/metric_distinct_volume.rb | 6 +- .../metric_distinct_volume_attributes.rb | 2 +- .../models/metric_ingested_indexed_volume.rb | 6 +- ...tric_ingested_indexed_volume_attributes.rb | 4 +- .../v2/models/metric_tag_configuration.rb | 6 +- .../metric_tag_configuration_attributes.rb | 12 +- ...ric_tag_configuration_create_attributes.rb | 8 +- .../metric_tag_configuration_create_data.rb | 6 +- ...metric_tag_configuration_create_request.rb | 2 +- .../metric_tag_configuration_response.rb | 2 +- ...ric_tag_configuration_update_attributes.rb | 6 +- .../metric_tag_configuration_update_data.rb | 6 +- ...metric_tag_configuration_update_request.rb | 2 +- .../v2/models/metric_volumes_response.rb | 2 +- ..._and_metric_tag_configurations_response.rb | 2 +- .../v2/models/organization.rb | 6 +- .../v2/models/organization_attributes.rb | 16 +-- .../v2/models/pagination.rb | 4 +- .../v2/models/partial_api_key.rb | 8 +- .../v2/models/partial_api_key_attributes.rb | 8 +- .../v2/models/partial_application_key.rb | 8 +- .../partial_application_key_attributes.rb | 8 +- .../partial_application_key_response.rb | 4 +- .../v2/models/permission.rb | 6 +- .../v2/models/permission_attributes.rb | 14 +- .../v2/models/permissions_response.rb | 2 +- .../v2/models/process_summaries_meta.rb | 2 +- .../v2/models/process_summaries_meta_page.rb | 4 +- .../v2/models/process_summaries_response.rb | 4 +- .../v2/models/process_summary.rb | 6 +- .../v2/models/process_summary_attributes.rb | 16 +-- ...p_to_incident_integration_metadata_data.rb | 4 +- ...nship_to_incident_integration_metadatas.rb | 2 +- .../relationship_to_incident_postmortem.rb | 2 +- ...elationship_to_incident_postmortem_data.rb | 4 +- .../v2/models/relationship_to_organization.rb | 2 +- .../relationship_to_organization_data.rb | 4 +- .../models/relationship_to_organizations.rb | 2 +- .../v2/models/relationship_to_permission.rb | 2 +- .../models/relationship_to_permission_data.rb | 4 +- .../v2/models/relationship_to_permissions.rb | 2 +- .../v2/models/relationship_to_role.rb | 2 +- .../v2/models/relationship_to_role_data.rb | 4 +- .../v2/models/relationship_to_roles.rb | 2 +- .../v2/models/relationship_to_user.rb | 2 +- .../v2/models/relationship_to_user_data.rb | 4 +- .../v2/models/relationship_to_users.rb | 2 +- .../v2/models/response_meta_attributes.rb | 2 +- lib/datadog_api_client/v2/models/role.rb | 8 +- .../v2/models/role_attributes.rb | 8 +- .../v2/models/role_clone.rb | 4 +- .../v2/models/role_clone_attributes.rb | 2 +- .../v2/models/role_clone_request.rb | 2 +- .../v2/models/role_create_attributes.rb | 6 +- .../v2/models/role_create_data.rb | 6 +- .../v2/models/role_create_request.rb | 2 +- .../v2/models/role_create_response.rb | 2 +- .../v2/models/role_create_response_data.rb | 8 +- .../v2/models/role_relationships.rb | 4 +- .../v2/models/role_response.rb | 2 +- .../v2/models/role_response_relationships.rb | 2 +- .../v2/models/role_update_attributes.rb | 6 +- .../v2/models/role_update_data.rb | 6 +- .../v2/models/role_update_request.rb | 2 +- .../v2/models/role_update_response.rb | 2 +- .../v2/models/role_update_response_data.rb | 8 +- .../v2/models/roles_response.rb | 4 +- .../v2/models/security_filter.rb | 6 +- .../v2/models/security_filter_attributes.rb | 14 +- .../security_filter_create_attributes.rb | 10 +- .../v2/models/security_filter_create_data.rb | 4 +- .../models/security_filter_create_request.rb | 2 +- .../security_filter_exclusion_filter.rb | 4 +- ...curity_filter_exclusion_filter_response.rb | 4 +- .../v2/models/security_filter_meta.rb | 2 +- .../v2/models/security_filter_response.rb | 4 +- .../security_filter_update_attributes.rb | 12 +- .../v2/models/security_filter_update_data.rb | 4 +- .../models/security_filter_update_request.rb | 2 +- .../v2/models/security_filters_response.rb | 4 +- .../v2/models/security_monitoring_filter.rb | 4 +- ...security_monitoring_list_rules_response.rb | 4 +- .../models/security_monitoring_rule_case.rb | 8 +- .../security_monitoring_rule_case_create.rb | 8 +- ...security_monitoring_rule_create_payload.rb | 20 +-- ...urity_monitoring_rule_new_value_options.rb | 4 +- .../security_monitoring_rule_options.rb | 10 +- .../models/security_monitoring_rule_query.rb | 12 +- .../security_monitoring_rule_query_create.rb | 12 +- .../security_monitoring_rule_response.rb | 34 ++--- ...security_monitoring_rule_update_payload.rb | 20 +-- .../v2/models/security_monitoring_signal.rb | 6 +- .../security_monitoring_signal_attributes.rb | 8 +- ...security_monitoring_signal_list_request.rb | 6 +- ...y_monitoring_signal_list_request_filter.rb | 6 +- ...ity_monitoring_signal_list_request_page.rb | 4 +- ...curity_monitoring_signals_list_response.rb | 6 +- ..._monitoring_signals_list_response_links.rb | 2 +- ...y_monitoring_signals_list_response_meta.rb | 2 +- ...itoring_signals_list_response_meta_page.rb | 2 +- .../service_account_create_attributes.rb | 8 +- .../v2/models/service_account_create_data.rb | 6 +- .../models/service_account_create_request.rb | 2 +- lib/datadog_api_client/v2/models/user.rb | 8 +- .../v2/models/user_attributes.rb | 22 +-- .../v2/models/user_create_attributes.rb | 6 +- .../v2/models/user_create_data.rb | 6 +- .../v2/models/user_create_request.rb | 2 +- .../v2/models/user_invitation_data.rb | 4 +- .../models/user_invitation_data_attributes.rb | 8 +- .../models/user_invitation_relationships.rb | 2 +- .../v2/models/user_invitation_response.rb | 2 +- .../models/user_invitation_response_data.rb | 6 +- .../v2/models/user_invitations_request.rb | 2 +- .../v2/models/user_invitations_response.rb | 2 +- .../v2/models/user_relationships.rb | 2 +- .../v2/models/user_response.rb | 4 +- .../v2/models/user_response_relationships.rb | 8 +- .../v2/models/user_update_attributes.rb | 6 +- .../v2/models/user_update_data.rb | 6 +- .../v2/models/user_update_request.rb | 2 +- .../v2/models/users_response.rb | 6 +- 779 files changed, 3190 insertions(+), 3190 deletions(-) diff --git a/.generator/src/generator/templates/model_generic.j2 b/.generator/src/generator/templates/model_generic.j2 index ddf2a6c4c43..35fc1a63fa9 100644 --- a/.generator/src/generator/templates/model_generic.j2 +++ b/.generator/src/generator/templates/model_generic.j2 @@ -4,7 +4,7 @@ attr_accessor :_unparsed {%- for attr, definition in model.get("properties", {}).items() %} - # {{ definition.description|block_comment|indent(4) }} + {{ definition.description|block_comment|indent(4) }} attr_accessor :{{ attr|attribute_name }} {%- endfor %} 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 45b96d7e90d..6ebb8b2fe62 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 @@ -23,25 +23,25 @@ class AlertGraphWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # ID of the alert to use in the widget. + # ID of the alert to use in the widget. attr_accessor :alert_id - # # Time setting for the widget. + # Time setting for the widget. attr_accessor :time - # # The title of the widget. + # The title of the widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the alert graph widget. + # Type of the alert graph widget. attr_accessor :type - # # Whether to display the Alert Graph as a timeseries or a top list. + # Whether to display the Alert Graph as a timeseries or a top list. attr_accessor :viz_type # Attribute mapping from ruby-style variable name to JSON key. 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 9e47ef59cc7..cf83a861117 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 @@ -23,28 +23,28 @@ class AlertValueWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # ID of the alert to use in the widget. + # ID of the alert to use in the widget. attr_accessor :alert_id - # # Number of decimal to show. If not defined, will use the raw value. + # Number of decimal to show. If not defined, will use the raw value. attr_accessor :precision - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :text_align - # # Title of the widget. + # Title of the widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of value in the widget. + # Size of value in the widget. attr_accessor :title_size - # # Type of the alert value widget. + # Type of the alert value widget. attr_accessor :type - # # Unit to display with the value. + # Unit to display with the value. attr_accessor :unit # Attribute mapping from ruby-style variable name to JSON key. 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 fa07d742f2e..2990fbca872 100644 --- a/lib/datadog_api_client/v1/models/api_error_response.rb +++ b/lib/datadog_api_client/v1/models/api_error_response.rb @@ -23,7 +23,7 @@ class APIErrorResponse # @!visibility private attr_accessor :_unparsed - # # Array of errors returned by the API. + # Array of errors returned by the API. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/api_key.rb b/lib/datadog_api_client/v1/models/api_key.rb index 1745c3aa5db..9790b6d3947 100644 --- a/lib/datadog_api_client/v1/models/api_key.rb +++ b/lib/datadog_api_client/v1/models/api_key.rb @@ -23,16 +23,16 @@ class ApiKey # @!visibility private attr_accessor :_unparsed - # # Date of creation of the API key. + # Date of creation of the API key. attr_accessor :created - # # Datadog user handle that created the API key. + # Datadog user handle that created the API key. attr_accessor :created_by - # # API key. + # API key. attr_accessor :key - # # Name of your API key. + # Name of your API key. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 1009647d7ba..7b50132036f 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 @@ -23,7 +23,7 @@ class ApiKeyListResponse # @!visibility private attr_accessor :_unparsed - # # Array of API keys. + # Array of API keys. attr_accessor :api_keys # Attribute mapping from ruby-style variable name to JSON key. 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 009e6630d3a..d5ae5e9e74a 100644 --- a/lib/datadog_api_client/v1/models/api_key_response.rb +++ b/lib/datadog_api_client/v1/models/api_key_response.rb @@ -23,7 +23,7 @@ class ApiKeyResponse # @!visibility private attr_accessor :_unparsed - # # Datadog API key. + # Datadog API key. attr_accessor :api_key # Attribute mapping from ruby-style variable name to JSON key. 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 29af779665d..55ea4fdf48e 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 @@ -23,16 +23,16 @@ class ApmStatsQueryColumnType # @!visibility private attr_accessor :_unparsed - # # A user-assigned alias for the column. + # A user-assigned alias for the column. attr_accessor :_alias - # # Define a display mode for the table cell. + # Define a display mode for the table cell. attr_accessor :cell_display_mode - # # Column name. + # Column name. attr_accessor :name - # # Widget sorting methods. + # Widget sorting methods. attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. 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 5941f233f27..f7afdf6575e 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 @@ -23,25 +23,25 @@ class ApmStatsQueryDefinition # @!visibility private attr_accessor :_unparsed - # # Column properties used by the front end for display. + # Column properties used by the front end for display. attr_accessor :columns - # # Environment name. + # Environment name. attr_accessor :env - # # Operation name associated with service. + # Operation name associated with service. attr_accessor :name - # # The organization's host group name and value. + # The organization's host group name and value. attr_accessor :primary_tag - # # Resource name. + # Resource name. attr_accessor :resource - # # The level of detail for the request. + # The level of detail for the request. attr_accessor :row_type - # # Service name. + # Service name. attr_accessor :service # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/application_key.rb b/lib/datadog_api_client/v1/models/application_key.rb index 2990ed32dc4..c8f57996185 100644 --- a/lib/datadog_api_client/v1/models/application_key.rb +++ b/lib/datadog_api_client/v1/models/application_key.rb @@ -23,13 +23,13 @@ class ApplicationKey # @!visibility private attr_accessor :_unparsed - # # Hash of an application key. + # Hash of an application key. attr_accessor :hash - # # Name of an application key. + # Name of an application key. attr_accessor :name - # # Owner of an application key. + # Owner of an application key. attr_accessor :owner # Attribute mapping from ruby-style variable name to JSON key. 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 aafbbe1a566..03226179736 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 @@ -23,7 +23,7 @@ class ApplicationKeyListResponse # @!visibility private attr_accessor :_unparsed - # # Array of application keys. + # Array of application keys. attr_accessor :application_keys # Attribute mapping from ruby-style variable name to JSON key. 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 1d6ea52a791..708ff863d48 100644 --- a/lib/datadog_api_client/v1/models/application_key_response.rb +++ b/lib/datadog_api_client/v1/models/application_key_response.rb @@ -23,7 +23,7 @@ class ApplicationKeyResponse # @!visibility private attr_accessor :_unparsed - # # An application key with its associated metadata. + # An application key with its associated metadata. attr_accessor :application_key # Attribute mapping from ruby-style variable name to JSON key. 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 a280b458e5d..a1687856707 100644 --- a/lib/datadog_api_client/v1/models/authentication_validation_response.rb +++ b/lib/datadog_api_client/v1/models/authentication_validation_response.rb @@ -23,7 +23,7 @@ class AuthenticationValidationResponse # @!visibility private attr_accessor :_unparsed - # # Return `true` if the authentication response is valid. + # Return `true` if the authentication response is valid. attr_accessor :valid # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/aws_account.rb b/lib/datadog_api_client/v1/models/aws_account.rb index 19fb3cf1632..84dc4134875 100644 --- a/lib/datadog_api_client/v1/models/aws_account.rb +++ b/lib/datadog_api_client/v1/models/aws_account.rb @@ -23,24 +23,24 @@ class AWSAccount # @!visibility private attr_accessor :_unparsed - # # Your AWS access key ID. Only required if your AWS account is a GovCloud or China account. + # Your AWS access key ID. Only required if your AWS account is a GovCloud or China account. attr_accessor :access_key_id - # # Your AWS Account ID without dashes. + # Your AWS Account ID without dashes. attr_accessor :account_id - # # An object, (in the form `{"namespace1":true/false, "namespace2":true/false}`), + # An object, (in the form `{"namespace1":true/false, "namespace2":true/false}`), # that enables or disables metric collection for specific AWS namespaces for this # AWS account only. attr_accessor :account_specific_namespace_rules - # # Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general `resource_collection`. + # Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general `resource_collection`. attr_accessor :cspm_resource_collection_enabled - # # An array of AWS regions to exclude from metrics collection. + # An array of AWS regions to exclude from metrics collection. attr_accessor :excluded_regions - # # The array of EC2 tags (in the form `key:value`) defines a filter that Datadog uses when collecting metrics from EC2. + # The array of EC2 tags (in the form `key:value`) defines a filter that Datadog uses when collecting metrics from EC2. # Wildcards, such as `?` (for single characters) and `*` (for multiple characters) can also be used. # Only hosts that match one of the defined tags # will be imported into Datadog. The rest will be ignored. @@ -48,20 +48,20 @@ class AWSAccount # For example, `env:production,instance-type:c1.*,!region:us-east-1` attr_accessor :filter_tags - # # Array of tags (in the form `key:value`) to add to all hosts + # Array of tags (in the form `key:value`) to add to all hosts # and metrics reporting through this integration. attr_accessor :host_tags - # # Whether Datadog collects metrics for this AWS account. + # Whether Datadog collects metrics for this AWS account. attr_accessor :metrics_collection_enabled - # # Whether Datadog collects a standard set of resources from your AWS account. + # Whether Datadog collects a standard set of resources from your AWS account. attr_accessor :resource_collection_enabled - # # Your Datadog role delegation name. + # Your Datadog role delegation name. attr_accessor :role_name - # # Your AWS secret access key. Only required if your AWS account is a GovCloud or China account. + # Your AWS secret access key. Only required if your AWS account is a GovCloud or China account. attr_accessor :secret_access_key # Attribute mapping from ruby-style variable name to JSON key. 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 c720bd8691c..16133ba853d 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 @@ -23,10 +23,10 @@ class AWSAccountAndLambdaRequest # @!visibility private attr_accessor :_unparsed - # # Your AWS Account ID without dashes. + # Your AWS Account ID without dashes. attr_accessor :account_id - # # ARN of the Datadog Lambda created during the Datadog-Amazon Web services Log collection setup. + # ARN of the Datadog Lambda created during the Datadog-Amazon Web services Log collection setup. attr_accessor :lambda_arn # Attribute mapping from ruby-style variable name to JSON key. 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 0eb77b4fb69..07c86b70382 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 @@ -23,7 +23,7 @@ class AWSAccountCreateResponse # @!visibility private attr_accessor :_unparsed - # # AWS external_id. + # AWS external_id. attr_accessor :external_id # Attribute mapping from ruby-style variable name to JSON key. 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 e72afa9e6a0..da00c6b419c 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 @@ -23,13 +23,13 @@ class AWSAccountDeleteRequest # @!visibility private attr_accessor :_unparsed - # # Your AWS access key ID. Only required if your AWS account is a GovCloud or China account. + # Your AWS access key ID. Only required if your AWS account is a GovCloud or China account. attr_accessor :access_key_id - # # Your AWS Account ID without dashes. + # Your AWS Account ID without dashes. attr_accessor :account_id - # # Your Datadog role delegation name. + # Your Datadog role delegation name. attr_accessor :role_name # Attribute mapping from ruby-style variable name to JSON key. 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 009ad80f6bc..4e92e8d7282 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 @@ -23,7 +23,7 @@ class AWSAccountListResponse # @!visibility private attr_accessor :_unparsed - # # List of enabled AWS accounts. + # List of enabled AWS accounts. attr_accessor :accounts # Attribute mapping from ruby-style variable name to JSON key. 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 238407a7d27..a3bae2a9039 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 @@ -23,10 +23,10 @@ class AWSLogsAsyncError # @!visibility private attr_accessor :_unparsed - # # Code properties + # Code properties attr_accessor :code - # # Message content. + # Message content. attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. 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 d325bc3c307..2a2a4680eb1 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 @@ -23,10 +23,10 @@ class AWSLogsAsyncResponse # @!visibility private attr_accessor :_unparsed - # # List of errors. + # List of errors. attr_accessor :errors - # # Status of the properties. + # Status of the properties. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. 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 2e5ce6b9062..bc982a45ea5 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_lambda.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_lambda.rb @@ -23,7 +23,7 @@ class AWSLogsLambda # @!visibility private attr_accessor :_unparsed - # # Available ARN IDs. + # Available ARN IDs. attr_accessor :arn # Attribute mapping from ruby-style variable name to JSON key. 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 fdf4b7e845c..898376b828a 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 @@ -23,13 +23,13 @@ class AWSLogsListResponse # @!visibility private attr_accessor :_unparsed - # # Your AWS Account ID without dashes. + # Your AWS Account ID without dashes. attr_accessor :account_id - # # List of ARNs configured in your Datadog account. + # List of ARNs configured in your Datadog account. attr_accessor :lambdas - # # Array of services IDs. + # Array of services IDs. attr_accessor :services # Attribute mapping from ruby-style variable name to JSON key. 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 c1391f53fdc..f3e86ff2c40 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 @@ -23,10 +23,10 @@ class AWSLogsListServicesResponse # @!visibility private attr_accessor :_unparsed - # # Key value in returned object. + # Key value in returned object. attr_accessor :id - # # Name of service available for configuration with Datadog logs. + # Name of service available for configuration with Datadog logs. attr_accessor :label # Attribute mapping from ruby-style variable name to JSON key. 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 ccd637f4ea8..5211f6c2689 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 @@ -23,10 +23,10 @@ class AWSLogsServicesRequest # @!visibility private attr_accessor :_unparsed - # # Your AWS Account ID without dashes. + # Your AWS Account ID without dashes. attr_accessor :account_id - # # 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. + # 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_accessor :services # Attribute mapping from ruby-style variable name to JSON key. 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 6ccb74f6866..47057bb35dd 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter.rb @@ -23,10 +23,10 @@ class AWSTagFilter # @!visibility private attr_accessor :_unparsed - # # The namespace associated with the tag filter entry. + # The namespace associated with the tag filter entry. attr_accessor :namespace - # # The tag filter string. + # The tag filter string. attr_accessor :tag_filter_str # Attribute mapping from ruby-style variable name to JSON key. 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 272b92366e0..9895bf139b1 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 @@ -23,13 +23,13 @@ class AWSTagFilterCreateRequest # @!visibility private attr_accessor :_unparsed - # # Your AWS Account ID without dashes. + # Your AWS Account ID without dashes. attr_accessor :account_id - # # The namespace associated with the tag filter entry. + # The namespace associated with the tag filter entry. attr_accessor :namespace - # # The tag filter string. + # The tag filter string. attr_accessor :tag_filter_str # Attribute mapping from ruby-style variable name to JSON key. 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 929412da532..26a8aecff94 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 @@ -23,10 +23,10 @@ class AWSTagFilterDeleteRequest # @!visibility private attr_accessor :_unparsed - # # The unique identifier of your AWS account. + # The unique identifier of your AWS account. attr_accessor :account_id - # # The namespace associated with the tag filter entry. + # The namespace associated with the tag filter entry. attr_accessor :namespace # Attribute mapping from ruby-style variable name to JSON key. 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 27a9098985f..fa65037aa3b 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 @@ -23,7 +23,7 @@ class AWSTagFilterListResponse # @!visibility private attr_accessor :_unparsed - # # An array of tag filters. + # An array of tag filters. attr_accessor :filters # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/azure_account.rb b/lib/datadog_api_client/v1/models/azure_account.rb index ceb00fa53e8..8ae5573a52c 100644 --- a/lib/datadog_api_client/v1/models/azure_account.rb +++ b/lib/datadog_api_client/v1/models/azure_account.rb @@ -23,29 +23,29 @@ class AzureAccount # @!visibility private attr_accessor :_unparsed - # # Silence monitors for expected Azure VM shutdowns. + # Silence monitors for expected Azure VM shutdowns. attr_accessor :automute - # # Your Azure web application ID. + # Your Azure web application ID. attr_accessor :client_id - # # Your Azure web application secret key. + # Your Azure web application secret key. attr_accessor :client_secret - # # Errors in your configuration. + # Errors in your configuration. attr_accessor :errors - # # Limit the Azure instances that are pulled into Datadog by using tags. + # Limit the Azure instances that are pulled into Datadog by using tags. # Only hosts that match one of the defined tags are imported into Datadog. attr_accessor :host_filters - # # Your New Azure web application ID. + # Your New Azure web application ID. attr_accessor :new_client_id - # # Your New Azure Active Directory ID. + # Your New Azure Active Directory ID. attr_accessor :new_tenant_name - # # Your Azure Active Directory ID. + # Your Azure Active Directory ID. attr_accessor :tenant_name # Attribute mapping from ruby-style variable name to JSON key. 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 7506ead398f..c177bf575de 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 @@ -23,7 +23,7 @@ class CancelDowntimesByScopeRequest # @!visibility private attr_accessor :_unparsed - # # The scope(s) to which the downtime applies. For example, `host:app2`. + # The scope(s) to which the downtime applies. For example, `host:app2`. # Provide multiple scopes as a comma-separated list like `env:dev,env:prod`. # The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`). attr_accessor :scope 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 b746078f696..513ac7713d1 100644 --- a/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb +++ b/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb @@ -23,7 +23,7 @@ class CanceledDowntimesIds # @!visibility private attr_accessor :_unparsed - # # ID of downtimes that were canceled. + # ID of downtimes that were canceled. attr_accessor :cancelled_ids # Attribute mapping from ruby-style variable name to JSON key. 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 e80d8950de2..0f58232fc76 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition.rb @@ -23,28 +23,28 @@ class ChangeWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # List of custom links. + # List of custom links. attr_accessor :custom_links - # # Array of one request object to display in the widget. + # Array of one request object to display in the widget. # # See the dedicated [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) # to learn how to build the `REQUEST_SCHEMA`. attr_accessor :requests - # # Time setting for the widget. + # Time setting for the widget. attr_accessor :time - # # Title of the widget. + # Title of the widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the change widget. + # Type of the change widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 cdf5f8396f6..4d18b5c5d3f 100644 --- a/lib/datadog_api_client/v1/models/change_widget_request.rb +++ b/lib/datadog_api_client/v1/models/change_widget_request.rb @@ -23,58 +23,58 @@ class ChangeWidgetRequest # @!visibility private attr_accessor :_unparsed - # # The log query. + # The log query. attr_accessor :apm_query - # # Show the absolute or the relative change. + # Show the absolute or the relative change. attr_accessor :change_type - # # Timeframe used for the change comparison. + # Timeframe used for the change comparison. attr_accessor :compare_to - # # The log query. + # The log query. attr_accessor :event_query - # # List of formulas that operate on queries. **This feature is currently in beta.** + # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas - # # Whether to show increase as good. + # Whether to show increase as good. attr_accessor :increase_good - # # The log query. + # The log query. attr_accessor :log_query - # # The log query. + # The log query. attr_accessor :network_query - # # What to order by. + # What to order by. attr_accessor :order_by - # # Widget sorting methods. + # Widget sorting methods. attr_accessor :order_dir - # # The process query to use in the widget. + # The process query to use in the widget. attr_accessor :process_query - # # The log query. + # The log query. attr_accessor :profile_metrics_query - # # Query definition. + # Query definition. attr_accessor :q - # # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** + # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries - # # Timeseries or Scalar response. **This feature is currently in beta.** + # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format - # # The log query. + # The log query. attr_accessor :rum_query - # # The log query. + # The log query. attr_accessor :security_query - # # Whether to show the present value. + # Whether to show the present value. attr_accessor :show_present # Attribute mapping from ruby-style variable name to JSON key. 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 de08037a00a..7e6656b323c 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 @@ -23,10 +23,10 @@ class CheckCanDeleteMonitorResponse # @!visibility private attr_accessor :_unparsed - # # Wrapper object with the list of monitor IDs. + # Wrapper object with the list of monitor IDs. attr_accessor :data - # # A mapping of Monitor ID to strings denoting where it's used. + # A mapping of Monitor ID to strings denoting where it's used. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. 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 7ebe296d9c4..94cbd6ff070 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 @@ -23,7 +23,7 @@ class CheckCanDeleteMonitorResponseData # @!visibility private attr_accessor :_unparsed - # # An array of of Monitor IDs that can be safely deleted. + # An array of of Monitor IDs that can be safely deleted. attr_accessor :ok # Attribute mapping from ruby-style variable name to JSON key. 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 4aec80d9f8d..415d0e0a8ee 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 @@ -23,10 +23,10 @@ class CheckCanDeleteSLOResponse # @!visibility private attr_accessor :_unparsed - # # An array of service level objective objects. + # An array of service level objective objects. attr_accessor :data - # # A mapping of SLO id to it's current usages. + # A mapping of SLO id to it's current usages. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. 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 ff3c6d926e8..9b251ffd271 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 @@ -23,7 +23,7 @@ class CheckCanDeleteSLOResponseData # @!visibility private attr_accessor :_unparsed - # # An array of of SLO IDs that can be safely deleted. + # An array of of SLO IDs that can be safely deleted. attr_accessor :ok # Attribute mapping from ruby-style variable name to JSON key. 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 87a897a721b..d31c310af1e 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 @@ -23,34 +23,34 @@ class CheckStatusWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # Name of the check to use in the widget. + # Name of the check to use in the widget. attr_accessor :check - # # Group reporting a single check. + # Group reporting a single check. attr_accessor :group - # # List of tag prefixes to group by in the case of a cluster check. + # List of tag prefixes to group by in the case of a cluster check. attr_accessor :group_by - # # The kind of grouping to use. + # The kind of grouping to use. attr_accessor :grouping - # # List of tags used to filter the groups reporting a cluster check. + # List of tags used to filter the groups reporting a cluster check. attr_accessor :tags - # # Time setting for the widget. + # Time setting for the widget. attr_accessor :time - # # Title of the widget. + # Title of the widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the check status widget. + # Type of the check status widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/creator.rb b/lib/datadog_api_client/v1/models/creator.rb index 2fad271e069..4cdf54f441d 100644 --- a/lib/datadog_api_client/v1/models/creator.rb +++ b/lib/datadog_api_client/v1/models/creator.rb @@ -23,13 +23,13 @@ class Creator # @!visibility private attr_accessor :_unparsed - # # Email of the creator. + # Email of the creator. attr_accessor :email - # # Handle of the creator. + # Handle of the creator. attr_accessor :handle - # # Name of the creator. + # Name of the creator. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/dashboard.rb b/lib/datadog_api_client/v1/models/dashboard.rb index daef4fd7fb4..01937743049 100644 --- a/lib/datadog_api_client/v1/models/dashboard.rb +++ b/lib/datadog_api_client/v1/models/dashboard.rb @@ -24,54 +24,54 @@ class Dashboard # @!visibility private attr_accessor :_unparsed - # # Identifier of the dashboard author. + # Identifier of the dashboard author. attr_accessor :author_handle - # # Name of the dashboard author. + # Name of the dashboard author. attr_accessor :author_name - # # Creation date of the dashboard. + # Creation date of the dashboard. attr_accessor :created_at - # # Description of the dashboard. + # Description of the dashboard. attr_accessor :description - # # ID of the dashboard. + # ID of the dashboard. attr_accessor :id - # # Whether this dashboard is read-only. If True, only the author and admins can make changes to it. Prefer using `restricted_roles` to manage write authorization. + # Whether this dashboard is read-only. If True, only the author and admins can make changes to it. Prefer using `restricted_roles` to manage write authorization. attr_accessor :is_read_only - # # Layout type of the dashboard. + # Layout type of the dashboard. attr_accessor :layout_type - # # Modification date of the dashboard. + # Modification date of the dashboard. attr_accessor :modified_at - # # List of handles of users to notify when changes are made to this dashboard. + # List of handles of users to notify when changes are made to this dashboard. attr_accessor :notify_list - # # Reflow type for a **new dashboard layout** dashboard. Set this only when layout type is 'ordered'. + # Reflow type for a **new dashboard layout** dashboard. Set this only when layout type is 'ordered'. # If set to 'fixed', the dashboard expects all widgets to have a layout, and if it's set to 'auto', # widgets should not have layouts. attr_accessor :reflow_type - # # A list of role identifiers. Only the author and users associated with at least one of these roles can edit this dashboard. + # A list of role identifiers. Only the author and users associated with at least one of these roles can edit this dashboard. attr_accessor :restricted_roles - # # Array of template variables saved views. + # Array of template variables saved views. attr_accessor :template_variable_presets - # # List of template variables for this dashboard. + # List of template variables for this dashboard. attr_accessor :template_variables - # # Title of the dashboard. + # Title of the dashboard. attr_accessor :title - # # The URL of the dashboard. + # The URL of the dashboard. attr_accessor :url - # # List of widgets to display on the dashboard. + # List of widgets to display on the dashboard. attr_accessor :widgets # Attribute mapping from ruby-style variable name to JSON key. 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 3c91210e72f..0fc1f541ce6 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 @@ -23,10 +23,10 @@ class DashboardBulkActionData # @!visibility private attr_accessor :_unparsed - # # Dashboard resource ID. + # Dashboard resource ID. attr_accessor :id - # # Dashboard resource type. + # Dashboard resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3c0db8d384f..12ffc31f59a 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 @@ -23,7 +23,7 @@ class DashboardBulkDeleteRequest # @!visibility private attr_accessor :_unparsed - # # List of dashboard bulk action request data objects. + # List of dashboard bulk action request data objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 4133bb0f482..8a1503d310e 100644 --- a/lib/datadog_api_client/v1/models/dashboard_delete_response.rb +++ b/lib/datadog_api_client/v1/models/dashboard_delete_response.rb @@ -23,7 +23,7 @@ class DashboardDeleteResponse # @!visibility private attr_accessor :_unparsed - # # ID of the deleted dashboard. + # ID of the deleted dashboard. attr_accessor :deleted_dashboard_id # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/dashboard_list.rb b/lib/datadog_api_client/v1/models/dashboard_list.rb index 6e66d9037fa..bb9771712d0 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list.rb @@ -23,28 +23,28 @@ class DashboardList # @!visibility private attr_accessor :_unparsed - # # Object describing the creator of the shared element. + # Object describing the creator of the shared element. attr_accessor :author - # # Date of creation of the dashboard list. + # Date of creation of the dashboard list. attr_accessor :created - # # The number of dashboards in the list. + # The number of dashboards in the list. attr_accessor :dashboard_count - # # The ID of the dashboard list. + # The ID of the dashboard list. attr_accessor :id - # # Whether or not the list is in the favorites. + # Whether or not the list is in the favorites. attr_accessor :is_favorite - # # Date of last edition of the dashboard list. + # Date of last edition of the dashboard list. attr_accessor :modified - # # The name of the dashboard list. + # The name of the dashboard list. attr_accessor :name - # # The type of dashboard list. + # The type of dashboard list. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 d9f7f3cae57..b3d427364d6 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 @@ -23,7 +23,7 @@ class DashboardListDeleteResponse # @!visibility private attr_accessor :_unparsed - # # ID of the deleted dashboard list. + # ID of the deleted dashboard list. attr_accessor :deleted_dashboard_list_id # Attribute mapping from ruby-style variable name to JSON key. 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 bc88b6c6d90..c957ace30ab 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 @@ -23,7 +23,7 @@ class DashboardListListResponse # @!visibility private attr_accessor :_unparsed - # # List of all your dashboard lists. + # List of all your dashboard lists. attr_accessor :dashboard_lists # Attribute mapping from ruby-style variable name to JSON key. 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 0dacb6e10ee..6346fd4d68b 100644 --- a/lib/datadog_api_client/v1/models/dashboard_restore_request.rb +++ b/lib/datadog_api_client/v1/models/dashboard_restore_request.rb @@ -23,7 +23,7 @@ class DashboardRestoreRequest # @!visibility private attr_accessor :_unparsed - # # List of dashboard bulk action request data objects. + # List of dashboard bulk action request data objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/dashboard_summary.rb b/lib/datadog_api_client/v1/models/dashboard_summary.rb index 3a5c8777584..1f77f90d4b9 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary.rb @@ -23,7 +23,7 @@ class DashboardSummary # @!visibility private attr_accessor :_unparsed - # # List of dashboard definitions. + # List of dashboard definitions. attr_accessor :dashboards # Attribute mapping from ruby-style variable name to JSON key. 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 7dba1cc796f..99a5f4608db 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb @@ -23,31 +23,31 @@ class DashboardSummaryDefinition # @!visibility private attr_accessor :_unparsed - # # Identifier of the dashboard author. + # Identifier of the dashboard author. attr_accessor :author_handle - # # Creation date of the dashboard. + # Creation date of the dashboard. attr_accessor :created_at - # # Description of the dashboard. + # Description of the dashboard. attr_accessor :description - # # Dashboard identifier. + # Dashboard identifier. attr_accessor :id - # # Whether this dashboard is read-only. If True, only the author and admins can make changes to it. + # Whether this dashboard is read-only. If True, only the author and admins can make changes to it. attr_accessor :is_read_only - # # Layout type of the dashboard. + # Layout type of the dashboard. attr_accessor :layout_type - # # Modification date of the dashboard. + # Modification date of the dashboard. attr_accessor :modified_at - # # Title of the dashboard. + # Title of the dashboard. attr_accessor :title - # # URL of the dashboard. + # URL of the dashboard. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. 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 f561afe688a..7f2e101be26 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable.rb @@ -23,16 +23,16 @@ class DashboardTemplateVariable # @!visibility private attr_accessor :_unparsed - # # The list of values that the template variable drop-down is limited to. + # The list of values that the template variable drop-down is limited to. attr_accessor :available_values - # # The default value for the template variable on dashboard load. + # The default value for the template variable on dashboard load. attr_accessor :default - # # The name of the variable. + # The name of the variable. attr_accessor :name - # # The tag prefix associated with the variable. Only tags with this prefix appear in the variable drop-down. + # The tag prefix associated with the variable. Only tags with this prefix appear in the variable drop-down. attr_accessor :prefix # Attribute mapping from ruby-style variable name to JSON key. 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 63c54a6d6d0..c6f001fb281 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 @@ -23,10 +23,10 @@ class DashboardTemplateVariablePreset # @!visibility private attr_accessor :_unparsed - # # The name of the variable. + # The name of the variable. attr_accessor :name - # # List of variables. + # List of variables. attr_accessor :template_variables # Attribute mapping from ruby-style variable name to JSON key. 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 8fbd2a3b402..d99ba298ec5 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 @@ -23,10 +23,10 @@ class DashboardTemplateVariablePresetValue # @!visibility private attr_accessor :_unparsed - # # The name of the variable. + # The name of the variable. attr_accessor :name - # # The value of the template variable within the saved view. + # The value of the template variable within the saved view. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/deleted_monitor.rb b/lib/datadog_api_client/v1/models/deleted_monitor.rb index eae1dcbd531..cccbf18a4db 100644 --- a/lib/datadog_api_client/v1/models/deleted_monitor.rb +++ b/lib/datadog_api_client/v1/models/deleted_monitor.rb @@ -23,7 +23,7 @@ class DeletedMonitor # @!visibility private attr_accessor :_unparsed - # # ID of the deleted monitor. + # ID of the deleted monitor. attr_accessor :deleted_monitor_id # Attribute mapping from ruby-style variable name to JSON key. 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 b56909773d6..d3c049d7d55 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb @@ -25,40 +25,40 @@ class DistributionWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # (Deprecated) The widget legend was replaced by a tooltip and sidebar. + # (Deprecated) The widget legend was replaced by a tooltip and sidebar. attr_accessor :legend_size - # # List of markers. + # List of markers. attr_accessor :markers - # # Array of one request object to display in the widget. + # Array of one request object to display in the widget. # # See the dedicated [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) # to learn how to build the `REQUEST_SCHEMA`. attr_accessor :requests - # # (Deprecated) The widget legend was replaced by a tooltip and sidebar. + # (Deprecated) The widget legend was replaced by a tooltip and sidebar. attr_accessor :show_legend - # # Time setting for the widget. + # Time setting for the widget. attr_accessor :time - # # Title of the widget. + # Title of the widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the distribution widget. + # Type of the distribution widget. attr_accessor :type - # # X Axis controls for the distribution widget. + # X Axis controls for the distribution widget. attr_accessor :xaxis - # # Y Axis controls for the distribution widget. + # Y Axis controls for the distribution widget. attr_accessor :yaxis # Attribute mapping from ruby-style variable name to JSON key. 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 f576cff7eb3..fdde436ec4a 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_request.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_request.rb @@ -23,37 +23,37 @@ class DistributionWidgetRequest # @!visibility private attr_accessor :_unparsed - # # The log query. + # The log query. attr_accessor :apm_query - # # The APM stats query for table and distributions widgets. + # The APM stats query for table and distributions widgets. attr_accessor :apm_stats_query - # # The log query. + # The log query. attr_accessor :event_query - # # The log query. + # The log query. attr_accessor :log_query - # # The log query. + # The log query. attr_accessor :network_query - # # The process query to use in the widget. + # The process query to use in the widget. attr_accessor :process_query - # # The log query. + # The log query. attr_accessor :profile_metrics_query - # # Widget query. + # Widget query. attr_accessor :q - # # The log query. + # The log query. attr_accessor :rum_query - # # The log query. + # The log query. attr_accessor :security_query - # # Widget style definition. + # Widget style definition. attr_accessor :style # Attribute mapping from ruby-style variable name to JSON key. 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 9a1b8e0fba9..2a09d56654e 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 @@ -23,16 +23,16 @@ class DistributionWidgetXAxis # @!visibility private attr_accessor :_unparsed - # # True includes zero. + # True includes zero. attr_accessor :include_zero - # # Specifies maximum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior. + # Specifies maximum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior. attr_accessor :max - # # Specifies minimum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior. + # Specifies minimum value to show on the x-axis. It takes a number, percentile (p90 === 90th percentile), or auto for default behavior. attr_accessor :min - # # Specifies the scale type. Possible values are `linear`. + # Specifies the scale type. Possible values are `linear`. attr_accessor :scale # Attribute mapping from ruby-style variable name to JSON key. 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 f763970b982..174380a2945 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 @@ -23,19 +23,19 @@ class DistributionWidgetYAxis # @!visibility private attr_accessor :_unparsed - # # True includes zero. + # True includes zero. attr_accessor :include_zero - # # The label of the axis to display on the graph. + # The label of the axis to display on the graph. attr_accessor :label - # # Specifies the maximum value to show on the y-axis. It takes a number, or auto for default behavior. + # Specifies the maximum value to show on the y-axis. It takes a number, or auto for default behavior. attr_accessor :max - # # Specifies minimum value to show on the y-axis. It takes a number, or auto for default behavior. + # Specifies minimum value to show on the y-axis. It takes a number, or auto for default behavior. attr_accessor :min - # # Specifies the scale type. Possible values are `linear` or `log`. + # Specifies the scale type. Possible values are `linear` or `log`. attr_accessor :scale # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/downtime.rb b/lib/datadog_api_client/v1/models/downtime.rb index 28dbbb1f3f9..e218d363c6c 100644 --- a/lib/datadog_api_client/v1/models/downtime.rb +++ b/lib/datadog_api_client/v1/models/downtime.rb @@ -26,67 +26,67 @@ class Downtime # @!visibility private attr_accessor :_unparsed - # # If a scheduled downtime currently exists. + # If a scheduled downtime currently exists. attr_accessor :active - # # The downtime object definition of the active child for the original parent recurring downtime. This + # The downtime object definition of the active child for the original parent recurring downtime. This # field will only exist on recurring downtimes. attr_accessor :active_child - # # If a scheduled downtime is canceled. + # If a scheduled downtime is canceled. attr_accessor :canceled - # # User ID of the downtime creator. + # User ID of the downtime creator. attr_accessor :creator_id - # # If a downtime has been disabled. + # If a downtime has been disabled. attr_accessor :disabled - # # `0` for a downtime applied on `*` or all, + # `0` for a downtime applied on `*` or all, # `1` when the downtime is only scoped to hosts, # or `2` when the downtime is scoped to anything but hosts. attr_accessor :downtime_type - # # POSIX timestamp to end the downtime. If not provided, + # POSIX timestamp to end the downtime. If not provided, # the downtime is in effect indefinitely until you cancel it. attr_accessor :_end - # # The downtime ID. + # The downtime ID. attr_accessor :id - # # A message to include with notifications for this downtime. + # A message to include with notifications for this downtime. # Email notifications can be sent to specific users by using the same `@username` notation as events. attr_accessor :message - # # A single monitor to which the downtime applies. + # A single monitor to which the downtime applies. # If not provided, the downtime applies to all monitors. attr_accessor :monitor_id - # # A comma-separated list of monitor tags. For example, tags that are applied directly to monitors, + # A comma-separated list of monitor tags. For example, tags that are applied directly to monitors, # not tags that are used in monitor queries (which are filtered by the scope parameter), to which the downtime applies. # The resulting downtime applies to monitors that match ALL provided monitor tags. # For example, `service:postgres` **AND** `team:frontend`. attr_accessor :monitor_tags - # # ID of the parent Downtime. + # ID of the parent Downtime. attr_accessor :parent_id - # # An object defining the recurrence of the downtime. + # An object defining the recurrence of the downtime. attr_accessor :recurrence - # # The scope(s) to which the downtime applies. For example, `host:app2`. + # The scope(s) to which the downtime applies. For example, `host:app2`. # Provide multiple scopes as a comma-separated list like `env:dev,env:prod`. # The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`). attr_accessor :scope - # # POSIX timestamp to start the downtime. + # POSIX timestamp to start the downtime. # If not provided, the downtime starts the moment it is created. attr_accessor :start - # # The timezone in which to display the downtime's start and end times in Datadog applications. + # The timezone in which to display the downtime's start and end times in Datadog applications. attr_accessor :timezone - # # ID of the last user that updated the downtime. + # ID of the last user that updated the downtime. attr_accessor :updater_id # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/downtime_child.rb b/lib/datadog_api_client/v1/models/downtime_child.rb index 1146cb4cefd..68f76855d20 100644 --- a/lib/datadog_api_client/v1/models/downtime_child.rb +++ b/lib/datadog_api_client/v1/models/downtime_child.rb @@ -24,63 +24,63 @@ class DowntimeChild # @!visibility private attr_accessor :_unparsed - # # If a scheduled downtime currently exists. + # If a scheduled downtime currently exists. attr_accessor :active - # # If a scheduled downtime is canceled. + # If a scheduled downtime is canceled. attr_accessor :canceled - # # User ID of the downtime creator. + # User ID of the downtime creator. attr_accessor :creator_id - # # If a downtime has been disabled. + # If a downtime has been disabled. attr_accessor :disabled - # # `0` for a downtime applied on `*` or all, + # `0` for a downtime applied on `*` or all, # `1` when the downtime is only scoped to hosts, # or `2` when the downtime is scoped to anything but hosts. attr_accessor :downtime_type - # # POSIX timestamp to end the downtime. If not provided, + # POSIX timestamp to end the downtime. If not provided, # the downtime is in effect indefinitely until you cancel it. attr_accessor :_end - # # The downtime ID. + # The downtime ID. attr_accessor :id - # # A message to include with notifications for this downtime. + # A message to include with notifications for this downtime. # Email notifications can be sent to specific users by using the same `@username` notation as events. attr_accessor :message - # # A single monitor to which the downtime applies. + # A single monitor to which the downtime applies. # If not provided, the downtime applies to all monitors. attr_accessor :monitor_id - # # A comma-separated list of monitor tags. For example, tags that are applied directly to monitors, + # A comma-separated list of monitor tags. For example, tags that are applied directly to monitors, # not tags that are used in monitor queries (which are filtered by the scope parameter), to which the downtime applies. # The resulting downtime applies to monitors that match ALL provided monitor tags. # For example, `service:postgres` **AND** `team:frontend`. attr_accessor :monitor_tags - # # ID of the parent Downtime. + # ID of the parent Downtime. attr_accessor :parent_id - # # An object defining the recurrence of the downtime. + # An object defining the recurrence of the downtime. attr_accessor :recurrence - # # The scope(s) to which the downtime applies. For example, `host:app2`. + # The scope(s) to which the downtime applies. For example, `host:app2`. # Provide multiple scopes as a comma-separated list like `env:dev,env:prod`. # The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`). attr_accessor :scope - # # POSIX timestamp to start the downtime. + # POSIX timestamp to start the downtime. # If not provided, the downtime starts the moment it is created. attr_accessor :start - # # The timezone in which to display the downtime's start and end times in Datadog applications. + # The timezone in which to display the downtime's start and end times in Datadog applications. attr_accessor :timezone - # # ID of the last user that updated the downtime. + # ID of the last user that updated the downtime. attr_accessor :updater_id # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/downtime_recurrence.rb b/lib/datadog_api_client/v1/models/downtime_recurrence.rb index fbbd3e4618c..f1ba08b4bac 100644 --- a/lib/datadog_api_client/v1/models/downtime_recurrence.rb +++ b/lib/datadog_api_client/v1/models/downtime_recurrence.rb @@ -23,11 +23,11 @@ class DowntimeRecurrence # @!visibility private attr_accessor :_unparsed - # # How often to repeat as an integer. + # How often to repeat as an integer. # For example, to repeat every 3 days, select a type of `days` and a period of `3`. attr_accessor :period - # # The `RRULE` standard for defining recurring events (**requires to set "type" to rrule**) + # The `RRULE` standard for defining recurring events (**requires to set "type" to rrule**) # For example, to have a recurring event on the first day of each month, set the type to `rrule` and set the `FREQ` to `MONTHLY` and `BYMONTHDAY` to `1`. # Most common `rrule` options from the [iCalendar Spec](https://tools.ietf.org/html/rfc5545) are supported. # @@ -35,18 +35,18 @@ class DowntimeRecurrence # More examples available in this [downtime guide](https://docs.datadoghq.com/monitors/guide/suppress-alert-with-downtimes/?tab=api) attr_accessor :rrule - # # The type of recurrence. Choose from `days`, `weeks`, `months`, `years`, `rrule`. + # The type of recurrence. Choose from `days`, `weeks`, `months`, `years`, `rrule`. attr_accessor :type - # # The date at which the recurrence should end as a POSIX timestamp. + # The date at which the recurrence should end as a POSIX timestamp. # `until_occurences` and `until_date` are mutually exclusive. attr_accessor :until_date - # # How many times the downtime is rescheduled. + # How many times the downtime is rescheduled. # `until_occurences` and `until_date` are mutually exclusive. attr_accessor :until_occurrences - # # A list of week days to repeat on. Choose from `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat` or `Sun`. + # A list of week days to repeat on. Choose from `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat` or `Sun`. # Only applicable when type is weeks. First letter must be capitalized. attr_accessor :week_days diff --git a/lib/datadog_api_client/v1/models/event.rb b/lib/datadog_api_client/v1/models/event.rb index df441c1fcc2..818611fa5d2 100644 --- a/lib/datadog_api_client/v1/models/event.rb +++ b/lib/datadog_api_client/v1/models/event.rb @@ -23,51 +23,51 @@ class Event # @!visibility private attr_accessor :_unparsed - # # If an alert event is enabled, set its type. + # If an alert event is enabled, set its type. # For example, `error`, `warning`, `info`, `success`, `user_update`, # `recommendation`, and `snapshot`. attr_accessor :alert_type - # # POSIX timestamp of the event. Must be sent as an integer (that is no quotes). + # POSIX timestamp of the event. Must be sent as an integer (that is no quotes). # Limited to events no older than 7 days. attr_accessor :date_happened - # # A device name. + # A device name. attr_accessor :device_name - # # Host name to associate with the event. + # Host name to associate with the event. # Any tags associated with the host are also applied to this event. attr_accessor :host - # # Integer ID of the event. + # Integer ID of the event. attr_accessor :id - # # Handling IDs as large 64-bit numbers can cause loss of accuracy issues with some programming languages. + # Handling IDs as large 64-bit numbers can cause loss of accuracy issues with some programming languages. # Instead, use the string representation of the Event ID to avoid losing accuracy. attr_accessor :id_str - # # Payload of the event. + # Payload of the event. attr_accessor :payload - # # The priority of the event. For example, `normal` or `low`. + # The priority of the event. For example, `normal` or `low`. attr_accessor :priority - # # The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. + # The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. # A complete list of source attribute values [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). attr_accessor :source_type_name - # # A list of tags to apply to the event. + # A list of tags to apply to the event. attr_accessor :tags - # # The body of the event. Limited to 4000 characters. The text supports markdown. + # The body of the event. Limited to 4000 characters. The text supports markdown. # To use markdown in the event text, start the text block with `%%% \n` and end the text block with `\n %%%`. # Use `msg_text` with the Datadog Ruby library. attr_accessor :text - # # The event title. + # The event title. attr_accessor :title - # # URL of the event. + # URL of the event. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. 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 b9f50827a13..b82244d8496 100644 --- a/lib/datadog_api_client/v1/models/event_create_request.rb +++ b/lib/datadog_api_client/v1/models/event_create_request.rb @@ -23,45 +23,45 @@ class EventCreateRequest # @!visibility private attr_accessor :_unparsed - # # An arbitrary string to use for aggregation. Limited to 100 characters. + # An arbitrary string to use for aggregation. Limited to 100 characters. # If you specify a key, all events using that key are grouped together in the Event Stream. attr_accessor :aggregation_key - # # If an alert event is enabled, set its type. + # If an alert event is enabled, set its type. # For example, `error`, `warning`, `info`, `success`, `user_update`, # `recommendation`, and `snapshot`. attr_accessor :alert_type - # # POSIX timestamp of the event. Must be sent as an integer (that is no quotes). + # POSIX timestamp of the event. Must be sent as an integer (that is no quotes). # Limited to events no older than 7 days. attr_accessor :date_happened - # # A device name. + # A device name. attr_accessor :device_name - # # Host name to associate with the event. + # Host name to associate with the event. # Any tags associated with the host are also applied to this event. attr_accessor :host - # # The priority of the event. For example, `normal` or `low`. + # The priority of the event. For example, `normal` or `low`. attr_accessor :priority - # # ID of the parent event. Must be sent as an integer (that is no quotes). + # ID of the parent event. Must be sent as an integer (that is no quotes). attr_accessor :related_event_id - # # The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. + # The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. # A complete list of source attribute values [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). attr_accessor :source_type_name - # # A list of tags to apply to the event. + # A list of tags to apply to the event. attr_accessor :tags - # # The body of the event. Limited to 4000 characters. The text supports markdown. + # The body of the event. Limited to 4000 characters. The text supports markdown. # To use markdown in the event text, start the text block with `%%% \n` and end the text block with `\n %%%`. # Use `msg_text` with the Datadog Ruby library. attr_accessor :text - # # The event title. + # The event title. attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. 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 c07e9691c43..8628f3708ae 100644 --- a/lib/datadog_api_client/v1/models/event_create_response.rb +++ b/lib/datadog_api_client/v1/models/event_create_response.rb @@ -23,52 +23,52 @@ class EventCreateResponse # @!visibility private attr_accessor :_unparsed - # # If an alert event is enabled, set its type. + # If an alert event is enabled, set its type. # For example, `error`, `warning`, `info`, `success`, `user_update`, # `recommendation`, and `snapshot`. attr_accessor :alert_type - # # POSIX timestamp of the event. Must be sent as an integer (that is no quotes). + # POSIX timestamp of the event. Must be sent as an integer (that is no quotes). # Limited to events no older than 7 days. attr_accessor :date_happened - # # A device name. + # A device name. attr_accessor :device_name - # # Host name to associate with the event. + # Host name to associate with the event. # Any tags associated with the host are also applied to this event. attr_accessor :host - # # Integer ID of the event. + # Integer ID of the event. attr_accessor :id - # # Payload of the event. + # Payload of the event. attr_accessor :payload - # # The priority of the event. For example, `normal` or `low`. + # The priority of the event. For example, `normal` or `low`. attr_accessor :priority - # # ID of the parent event. Must be sent as an integer (that is no quotes). + # ID of the parent event. Must be sent as an integer (that is no quotes). attr_accessor :related_event_id - # # The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. + # The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. # A complete list of source attribute values [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). attr_accessor :source_type_name - # # A status. + # A status. attr_accessor :status - # # A list of tags to apply to the event. + # A list of tags to apply to the event. attr_accessor :tags - # # The body of the event. Limited to 4000 characters. The text supports markdown. + # The body of the event. Limited to 4000 characters. The text supports markdown. # Use `msg_text` with the Datadog Ruby library. attr_accessor :text - # # The event title. Limited to 100 characters. Use `msg_title` with the Datadog Ruby library. + # The event title. Limited to 100 characters. Use `msg_title` with the Datadog Ruby library. attr_accessor :title - # # URL of the event. + # URL of the event. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. 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 47d694d9e36..e0b76282e90 100644 --- a/lib/datadog_api_client/v1/models/event_list_response.rb +++ b/lib/datadog_api_client/v1/models/event_list_response.rb @@ -23,10 +23,10 @@ class EventListResponse # @!visibility private attr_accessor :_unparsed - # # An array of events. + # An array of events. attr_accessor :events - # # A status. + # A status. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. 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 4e47803cfd9..4e9e9debaf6 100644 --- a/lib/datadog_api_client/v1/models/event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/event_query_definition.rb @@ -23,10 +23,10 @@ class EventQueryDefinition # @!visibility private attr_accessor :_unparsed - # # The query being made on the event. + # The query being made on the event. attr_accessor :search - # # The execution method for multi-value filters. Can be either and or or. + # The execution method for multi-value filters. Can be either and or or. attr_accessor :tags_execution # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/event_response.rb b/lib/datadog_api_client/v1/models/event_response.rb index f0661f4ab3e..66bbd512fd1 100644 --- a/lib/datadog_api_client/v1/models/event_response.rb +++ b/lib/datadog_api_client/v1/models/event_response.rb @@ -23,10 +23,10 @@ class EventResponse # @!visibility private attr_accessor :_unparsed - # # Object representing an event. + # Object representing an event. attr_accessor :event - # # A status. + # A status. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. 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 3a97bcc9815..7ca149990dd 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 @@ -24,28 +24,28 @@ class EventStreamWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # Size to use to display an event. + # Size to use to display an event. attr_accessor :event_size - # # Query to filter the event stream with. + # Query to filter the event stream with. attr_accessor :query - # # The execution method for multi-value filters. Can be either and or or. + # The execution method for multi-value filters. Can be either and or or. attr_accessor :tags_execution - # # Time setting for the widget. + # Time setting for the widget. attr_accessor :time - # # Title of the widget. + # Title of the widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the event stream widget. + # Type of the event stream widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 cf3faa7cbc2..4463230b079 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 @@ -23,25 +23,25 @@ class EventTimelineWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # Query to filter the event timeline with. + # Query to filter the event timeline with. attr_accessor :query - # # The execution method for multi-value filters. Can be either and or or. + # The execution method for multi-value filters. Can be either and or or. attr_accessor :tags_execution - # # Time setting for the widget. + # Time setting for the widget. attr_accessor :time - # # Title of the widget. + # Title of the widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the event timeline widget. + # Type of the event timeline widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3038504546e..278dbe660cb 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 @@ -23,34 +23,34 @@ class FormulaAndFunctionApmDependencyStatsQueryDefinition # @!visibility private attr_accessor :_unparsed - # # Data source for APM dependency stats queries. + # Data source for APM dependency stats queries. attr_accessor :data_source - # # APM environment. + # APM environment. attr_accessor :env - # # Determines whether stats for upstream or downstream dependencies should be queried. + # Determines whether stats for upstream or downstream dependencies should be queried. attr_accessor :is_upstream - # # Name of query to use in formulas. + # Name of query to use in formulas. attr_accessor :name - # # Name of operation on service. + # Name of operation on service. attr_accessor :operation_name - # # The name of the second primary tag used within APM; required when `primary_tag_value` is specified. See https://docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog. + # The name of the second primary tag used within APM; required when `primary_tag_value` is specified. See https://docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog. attr_accessor :primary_tag_name - # # Filter APM data by the second primary tag. `primary_tag_name` must also be specified. + # Filter APM data by the second primary tag. `primary_tag_name` must also be specified. attr_accessor :primary_tag_value - # # APM resource. + # APM resource. attr_accessor :resource_name - # # APM service. + # APM service. attr_accessor :service - # # APM statistic. + # APM statistic. attr_accessor :stat # Attribute mapping from ruby-style variable name to JSON key. 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 62187200de5..b36d7a7bd29 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 @@ -23,34 +23,34 @@ class FormulaAndFunctionApmResourceStatsQueryDefinition # @!visibility private attr_accessor :_unparsed - # # Data source for APM resource stats queries. + # Data source for APM resource stats queries. attr_accessor :data_source - # # APM environment. + # APM environment. attr_accessor :env - # # Array of fields to group results by. + # Array of fields to group results by. attr_accessor :group_by - # # Name of this query to use in formulas. + # Name of this query to use in formulas. attr_accessor :name - # # Name of operation on service. + # Name of operation on service. attr_accessor :operation_name - # # Name of the second primary tag used within APM. Required when `primary_tag_value` is specified. See https://docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog + # Name of the second primary tag used within APM. Required when `primary_tag_value` is specified. See https://docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog attr_accessor :primary_tag_name - # # Value of the second primary tag by which to filter APM data. `primary_tag_name` must also be specified. + # Value of the second primary tag by which to filter APM data. `primary_tag_name` must also be specified. attr_accessor :primary_tag_value - # # APM resource name. + # APM resource name. attr_accessor :resource_name - # # APM service name. + # APM service name. attr_accessor :service - # # APM resource stat name. + # APM resource stat name. attr_accessor :stat # Attribute mapping from ruby-style variable name to JSON key. 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 62f137f6f46..60d4dcc67d5 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 @@ -23,22 +23,22 @@ class FormulaAndFunctionEventQueryDefinition # @!visibility private attr_accessor :_unparsed - # # Compute options. + # Compute options. attr_accessor :compute - # # Data source for event platform-based queries. + # Data source for event platform-based queries. attr_accessor :data_source - # # Group by options. + # Group by options. attr_accessor :group_by - # # An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. + # An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. attr_accessor :indexes - # # Name of the query for use in formulas. + # Name of the query for use in formulas. attr_accessor :name - # # Search options. + # Search options. attr_accessor :search # Attribute mapping from ruby-style variable name to JSON key. 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 da38658e86c..90845ad8bae 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 @@ -23,13 +23,13 @@ class FormulaAndFunctionEventQueryDefinitionCompute # @!visibility private attr_accessor :_unparsed - # # Aggregation methods for event platform queries. + # Aggregation methods for event platform queries. attr_accessor :aggregation - # # A time interval in milliseconds. + # A time interval in milliseconds. attr_accessor :interval - # # Measurable attribute to compute. + # Measurable attribute to compute. attr_accessor :metric # Attribute mapping from ruby-style variable name to JSON key. 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 a138e4536b5..d42016c5102 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 @@ -23,7 +23,7 @@ class FormulaAndFunctionEventQueryDefinitionSearch # @!visibility private attr_accessor :_unparsed - # # Events search string. + # Events search string. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 4ef8a570d5a..865863a0b75 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 @@ -23,13 +23,13 @@ class FormulaAndFunctionEventQueryGroupBy # @!visibility private attr_accessor :_unparsed - # # Event facet. + # Event facet. attr_accessor :facet - # # Number of groups to return. + # Number of groups to return. attr_accessor :limit - # # Options for sorting group by results. + # Options for sorting group by results. attr_accessor :sort # Attribute mapping from ruby-style variable name to JSON key. 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 756278679b8..2da8f8cd859 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 @@ -23,13 +23,13 @@ class FormulaAndFunctionEventQueryGroupBySort # @!visibility private attr_accessor :_unparsed - # # Aggregation methods for event platform queries. + # Aggregation methods for event platform queries. attr_accessor :aggregation - # # Metric used for sorting group by results. + # Metric used for sorting group by results. attr_accessor :metric - # # Direction of sort. + # Direction of sort. attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. 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 527b951a8e0..2bae0643120 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 @@ -23,16 +23,16 @@ class FormulaAndFunctionMetricQueryDefinition # @!visibility private attr_accessor :_unparsed - # # The aggregation methods available for metrics queries. + # The aggregation methods available for metrics queries. attr_accessor :aggregator - # # Data source for metrics queries. + # Data source for metrics queries. attr_accessor :data_source - # # Name of the query for use in formulas. + # Name of the query for use in formulas. attr_accessor :name - # # Metrics query definition. + # Metrics query definition. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 aed992bc6eb..6ea796ac97c 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 @@ -23,31 +23,31 @@ class FormulaAndFunctionProcessQueryDefinition # @!visibility private attr_accessor :_unparsed - # # The aggregation methods available for metrics queries. + # The aggregation methods available for metrics queries. attr_accessor :aggregator - # # Data sources that rely on the process backend. + # Data sources that rely on the process backend. attr_accessor :data_source - # # Whether to normalize the CPU percentages. + # Whether to normalize the CPU percentages. attr_accessor :is_normalized_cpu - # # Number of hits to return. + # Number of hits to return. attr_accessor :limit - # # Process metric name. + # Process metric name. attr_accessor :metric - # # Name of query for use in formulas. + # Name of query for use in formulas. attr_accessor :name - # # Direction of sort. + # Direction of sort. attr_accessor :sort - # # An array of tags to filter by. + # An array of tags to filter by. attr_accessor :tag_filters - # # Text to use as filter. + # Text to use as filter. attr_accessor :text_filter # Attribute mapping from ruby-style variable name to JSON key. 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 5e000d7c2a6..f06fcd49d65 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 @@ -23,19 +23,19 @@ class FreeTextWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # Color of the text. + # Color of the text. attr_accessor :color - # # Size of the text. + # Size of the text. attr_accessor :font_size - # # Text to display. + # Text to display. attr_accessor :text - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :text_align - # # Type of the free text widget. + # Type of the free text widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/funnel_query.rb b/lib/datadog_api_client/v1/models/funnel_query.rb index a5091b47963..79370660150 100644 --- a/lib/datadog_api_client/v1/models/funnel_query.rb +++ b/lib/datadog_api_client/v1/models/funnel_query.rb @@ -23,13 +23,13 @@ class FunnelQuery # @!visibility private attr_accessor :_unparsed - # # Source from which to query items to display in the funnel. + # Source from which to query items to display in the funnel. attr_accessor :data_source - # # The widget query. + # The widget query. attr_accessor :query_string - # # List of funnel steps. + # List of funnel steps. attr_accessor :steps # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb index d2b93c2fc88..d3ea8983012 100644 --- a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb +++ b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb @@ -23,10 +23,10 @@ class FunnelQueryStepsItem # @!visibility private attr_accessor :_unparsed - # # The facet of the step. + # The facet of the step. attr_accessor :facet - # # The value of the step. + # The value of the step. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 57854fc59bf..0d229cd40ed 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb @@ -23,22 +23,22 @@ class FunnelWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # Request payload used to query items. + # Request payload used to query items. attr_accessor :requests - # # Time setting for the widget. + # Time setting for the widget. attr_accessor :time - # # The title of the widget. + # The title of the widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # The size of the title. + # The size of the title. attr_accessor :title_size - # # Type of funnel widget. + # Type of funnel widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 d373fa54197..2e9e1157050 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_request.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_request.rb @@ -23,10 +23,10 @@ class FunnelWidgetRequest # @!visibility private attr_accessor :_unparsed - # # Updated funnel widget. + # Updated funnel widget. attr_accessor :query - # # Widget request type. + # Widget request type. attr_accessor :request_type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/gcp_account.rb b/lib/datadog_api_client/v1/models/gcp_account.rb index 268f77c9f47..090648e8f77 100644 --- a/lib/datadog_api_client/v1/models/gcp_account.rb +++ b/lib/datadog_api_client/v1/models/gcp_account.rb @@ -23,45 +23,45 @@ class GCPAccount # @!visibility private attr_accessor :_unparsed - # # Should be `https://www.googleapis.com/oauth2/v1/certs`. + # Should be `https://www.googleapis.com/oauth2/v1/certs`. attr_accessor :auth_provider_x509_cert_url - # # Should be `https://accounts.google.com/o/oauth2/auth`. + # Should be `https://accounts.google.com/o/oauth2/auth`. attr_accessor :auth_uri - # # Silence monitors for expected GCE instance shutdowns. + # Silence monitors for expected GCE instance shutdowns. attr_accessor :automute - # # Your email found in your JSON service account key. + # Your email found in your JSON service account key. attr_accessor :client_email - # # Your ID found in your JSON service account key. + # Your ID found in your JSON service account key. attr_accessor :client_id - # # Should be `https://www.googleapis.com/robot/v1/metadata/x509/` + # Should be `https://www.googleapis.com/robot/v1/metadata/x509/` # where `` is the email found in your JSON service account key. attr_accessor :client_x509_cert_url - # # An array of errors. + # An array of errors. attr_accessor :errors - # # Limit the GCE instances that are pulled into Datadog by using tags. + # Limit the GCE instances that are pulled into Datadog by using tags. # Only hosts that match one of the defined tags are imported into Datadog. attr_accessor :host_filters - # # Your private key name found in your JSON service account key. + # Your private key name found in your JSON service account key. attr_accessor :private_key - # # Your private key ID found in your JSON service account key. + # Your private key ID found in your JSON service account key. attr_accessor :private_key_id - # # Your Google Cloud project ID found in your JSON service account key. + # Your Google Cloud project ID found in your JSON service account key. attr_accessor :project_id - # # Should be `https://accounts.google.com/o/oauth2/token`. + # Should be `https://accounts.google.com/o/oauth2/token`. attr_accessor :token_uri - # # The value for service_account found in your JSON service account key. + # The value for service_account found in your JSON service account key. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3dfcd8028b6..a97eea9f0b0 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb @@ -23,34 +23,34 @@ class GeomapWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # A list of custom links. + # A list of custom links. attr_accessor :custom_links - # # Array of one request object to display in the widget. The request must contain a `group-by` tag whose value is a country ISO code. + # Array of one request object to display in the widget. The request must contain a `group-by` tag whose value is a country ISO code. # # See the [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) # for information about building the `REQUEST_SCHEMA`. attr_accessor :requests - # # The style to apply to the widget. + # The style to apply to the widget. attr_accessor :style - # # Time setting for the widget. + # Time setting for the widget. attr_accessor :time - # # The title of your widget. + # The title of your widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # The size of the title. + # The size of the title. attr_accessor :title_size - # # Type of the geomap widget. + # Type of the geomap widget. attr_accessor :type - # # The view of the world that the map should render. + # The view of the world that the map should render. attr_accessor :view # Attribute mapping from ruby-style variable name to JSON key. 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 51e6da9837c..8b8862100df 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 @@ -23,10 +23,10 @@ class GeomapWidgetDefinitionStyle # @!visibility private attr_accessor :_unparsed - # # The color palette to apply to the widget. + # The color palette to apply to the widget. attr_accessor :palette - # # Whether to flip the palette tones. + # Whether to flip the palette tones. attr_accessor :palette_flip # Attribute mapping from ruby-style variable name to JSON key. 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 d0340321474..8b1daaf55ca 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 @@ -23,7 +23,7 @@ class GeomapWidgetDefinitionView # @!visibility private attr_accessor :_unparsed - # # The 2-letter ISO code of a country to focus the map on. Or `WORLD`. + # The 2-letter ISO code of a country to focus the map on. Or `WORLD`. attr_accessor :focus # Attribute mapping from ruby-style variable name to JSON key. 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 97771064321..00420973ed2 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_request.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_request.rb @@ -23,25 +23,25 @@ class GeomapWidgetRequest # @!visibility private attr_accessor :_unparsed - # # List of formulas that operate on queries. **This feature is currently in beta.** + # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas - # # The log query. + # The log query. attr_accessor :log_query - # # The widget metrics query. + # The widget metrics query. attr_accessor :q - # # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** + # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries - # # Timeseries or Scalar response. **This feature is currently in beta.** + # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format - # # The log query. + # The log query. attr_accessor :rum_query - # # The log query. + # The log query. attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/graph_snapshot.rb b/lib/datadog_api_client/v1/models/graph_snapshot.rb index b4cfd4dfcec..d7870839231 100644 --- a/lib/datadog_api_client/v1/models/graph_snapshot.rb +++ b/lib/datadog_api_client/v1/models/graph_snapshot.rb @@ -23,15 +23,15 @@ class GraphSnapshot # @!visibility private attr_accessor :_unparsed - # # A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. + # A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. # The JSON document uses the [grammar defined here](https://docs.datadoghq.com/graphing/graphing_json/#grammar) # and should be formatted to a single line then URL encoded. attr_accessor :graph_def - # # The metric query. One of `metric_query` or `graph_def` is required. + # The metric query. One of `metric_query` or `graph_def` is required. attr_accessor :metric_query - # # URL of your [graph snapshot](https://docs.datadoghq.com/metrics/explorer/#snapshot). + # URL of your [graph snapshot](https://docs.datadoghq.com/metrics/explorer/#snapshot). attr_accessor :snapshot_url # Attribute mapping from ruby-style variable name to JSON key. 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 47da61982b4..6f9ed058898 100644 --- a/lib/datadog_api_client/v1/models/group_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/group_widget_definition.rb @@ -23,28 +23,28 @@ class GroupWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # Background color of the group title. + # Background color of the group title. attr_accessor :background_color - # # URL of image to display as a banner for the group. + # URL of image to display as a banner for the group. attr_accessor :banner_img - # # Layout type of the group. + # Layout type of the group. attr_accessor :layout_type - # # Whether to show the title or not. + # Whether to show the title or not. attr_accessor :show_title - # # Title of the widget. + # Title of the widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Type of the group widget. + # Type of the group widget. attr_accessor :type - # # List of widget groups. + # List of widget groups. attr_accessor :widgets # Attribute mapping from ruby-style variable name to JSON key. 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 6dbf3b23885..3a610229e04 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 @@ -23,37 +23,37 @@ class HeatMapWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # List of custom links. + # List of custom links. attr_accessor :custom_links - # # List of widget events. + # List of widget events. attr_accessor :events - # # Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto". + # Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto". attr_accessor :legend_size - # # List of widget types. + # List of widget types. attr_accessor :requests - # # Whether or not to display the legend on this widget. + # Whether or not to display the legend on this widget. attr_accessor :show_legend - # # Time setting for the widget. + # Time setting for the widget. attr_accessor :time - # # Title of the widget. + # Title of the widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the heat map widget. + # Type of the heat map widget. attr_accessor :type - # # Axis controls for the widget. + # Axis controls for the widget. attr_accessor :yaxis # Attribute mapping from ruby-style variable name to JSON key. 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 7e40c8f2510..d0770bab663 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 @@ -23,34 +23,34 @@ class HeatMapWidgetRequest # @!visibility private attr_accessor :_unparsed - # # The log query. + # The log query. attr_accessor :apm_query - # # The event query. + # The event query. attr_accessor :event_query - # # The log query. + # The log query. attr_accessor :log_query - # # The log query. + # The log query. attr_accessor :network_query - # # The process query to use in the widget. + # The process query to use in the widget. attr_accessor :process_query - # # The log query. + # The log query. attr_accessor :profile_metrics_query - # # Widget query. + # Widget query. attr_accessor :q - # # The log query. + # The log query. attr_accessor :rum_query - # # The log query. + # The log query. attr_accessor :security_query - # # Widget style definition. + # Widget style definition. attr_accessor :style # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/host.rb b/lib/datadog_api_client/v1/models/host.rb index 337e50813ca..9143f7d3bca 100644 --- a/lib/datadog_api_client/v1/models/host.rb +++ b/lib/datadog_api_client/v1/models/host.rb @@ -23,46 +23,46 @@ class Host # @!visibility private attr_accessor :_unparsed - # # Host aliases collected by Datadog. + # Host aliases collected by Datadog. attr_accessor :aliases - # # The Datadog integrations reporting metrics for the host. + # The Datadog integrations reporting metrics for the host. attr_accessor :apps - # # AWS name of your host. + # AWS name of your host. attr_accessor :aws_name - # # The host name. + # The host name. attr_accessor :host_name - # # The host ID. + # The host ID. attr_accessor :id - # # If a host is muted or unmuted. + # If a host is muted or unmuted. attr_accessor :is_muted - # # Last time the host reported a metric data point. + # Last time the host reported a metric data point. attr_accessor :last_reported_time - # # Metadata associated with your host. + # Metadata associated with your host. attr_accessor :meta - # # Host Metrics collected. + # Host Metrics collected. attr_accessor :metrics - # # Timeout of the mute applied to your host. + # Timeout of the mute applied to your host. attr_accessor :mute_timeout - # # The host name. + # The host name. attr_accessor :name - # # Source or cloud provider associated with your host. + # Source or cloud provider associated with your host. attr_accessor :sources - # # List of tags for each source (AWS, Datadog Agent, Chef..). + # List of tags for each source (AWS, Datadog Agent, Chef..). attr_accessor :tags_by_source - # # Displays UP when the expected metrics are received and displays `???` if no metrics are received. + # Displays UP when the expected metrics are received and displays `???` if no metrics are received. attr_accessor :up # Attribute mapping from ruby-style variable name to JSON key. 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 be0eb86ac4d..0940dd68158 100644 --- a/lib/datadog_api_client/v1/models/host_list_response.rb +++ b/lib/datadog_api_client/v1/models/host_list_response.rb @@ -23,13 +23,13 @@ class HostListResponse # @!visibility private attr_accessor :_unparsed - # # Array of hosts. + # Array of hosts. attr_accessor :host_list - # # Number of host matching the query. + # Number of host matching the query. attr_accessor :total_matching - # # Number of host returned. + # Number of host returned. attr_accessor :total_returned # Attribute mapping from ruby-style variable name to JSON key. 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 021bcfeb525..c6dd3a8627d 100644 --- a/lib/datadog_api_client/v1/models/host_map_request.rb +++ b/lib/datadog_api_client/v1/models/host_map_request.rb @@ -23,31 +23,31 @@ class HostMapRequest # @!visibility private attr_accessor :_unparsed - # # The log query. + # The log query. attr_accessor :apm_query - # # The log query. + # The log query. attr_accessor :event_query - # # The log query. + # The log query. attr_accessor :log_query - # # The log query. + # The log query. attr_accessor :network_query - # # The process query to use in the widget. + # The process query to use in the widget. attr_accessor :process_query - # # The log query. + # The log query. attr_accessor :profile_metrics_query - # # Query definition. + # Query definition. attr_accessor :q - # # The log query. + # The log query. attr_accessor :rum_query - # # The log query. + # The log query. attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. 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 0aba5c51fa8..e9d0d800c24 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 @@ -23,43 +23,43 @@ class HostMapWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # List of custom links. + # List of custom links. attr_accessor :custom_links - # # List of tag prefixes to group by. + # List of tag prefixes to group by. attr_accessor :group - # # Whether to show the hosts that don’t fit in a group. + # Whether to show the hosts that don’t fit in a group. attr_accessor :no_group_hosts - # # Whether to show the hosts with no metrics. + # Whether to show the hosts with no metrics. attr_accessor :no_metric_hosts - # # Which type of node to use in the map. + # Which type of node to use in the map. attr_accessor :node_type - # # Notes on the title. + # Notes on the title. attr_accessor :notes - # # List of definitions. + # List of definitions. attr_accessor :requests - # # List of tags used to filter the map. + # List of tags used to filter the map. attr_accessor :scope - # # The style to apply to the widget. + # The style to apply to the widget. attr_accessor :style - # # Title of the widget. + # Title of the widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the host map widget. + # Type of the host map widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 af1df41f790..eec945a47b8 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 @@ -23,10 +23,10 @@ class HostMapWidgetDefinitionRequests # @!visibility private attr_accessor :_unparsed - # # Updated host map. + # Updated host map. attr_accessor :fill - # # Updated host map. + # Updated host map. attr_accessor :size # Attribute mapping from ruby-style variable name to JSON key. 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 2db490a1bb3..0a669e5e455 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 @@ -23,16 +23,16 @@ class HostMapWidgetDefinitionStyle # @!visibility private attr_accessor :_unparsed - # # Max value to use to color the map. + # Max value to use to color the map. attr_accessor :fill_max - # # Min value to use to color the map. + # Min value to use to color the map. attr_accessor :fill_min - # # Color palette to apply to the widget. + # Color palette to apply to the widget. attr_accessor :palette - # # Whether to flip the palette tones. + # Whether to flip the palette tones. attr_accessor :palette_flip # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/host_meta.rb b/lib/datadog_api_client/v1/models/host_meta.rb index 0d58457a2e7..2cfd306e118 100644 --- a/lib/datadog_api_client/v1/models/host_meta.rb +++ b/lib/datadog_api_client/v1/models/host_meta.rb @@ -23,49 +23,49 @@ class HostMeta # @!visibility private attr_accessor :_unparsed - # # A list of Agent checks running on the host. + # A list of Agent checks running on the host. attr_accessor :agent_checks - # # The Datadog Agent version. + # The Datadog Agent version. attr_accessor :agent_version - # # The number of cores. + # The number of cores. attr_accessor :cpu_cores - # # An array of Mac versions. + # An array of Mac versions. attr_accessor :fbsd_v - # # JSON string containing system information. + # JSON string containing system information. attr_accessor :gohai - # # Agent install method. + # Agent install method. attr_accessor :install_method - # # An array of Mac versions. + # An array of Mac versions. attr_accessor :mac_v - # # The machine architecture. + # The machine architecture. attr_accessor :machine - # # Array of Unix versions. + # Array of Unix versions. attr_accessor :nix_v - # # The OS platform. + # The OS platform. attr_accessor :platform - # # The processor. + # The processor. attr_accessor :processor - # # The Python version. + # The Python version. attr_accessor :python_v - # # The socket fqdn. + # The socket fqdn. attr_accessor :socket_fqdn - # # The socket hostname. + # The socket hostname. attr_accessor :socket_hostname - # # An array of Windows versions. + # An array of Windows versions. attr_accessor :win_v # Attribute mapping from ruby-style variable name to JSON key. 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 f28f45d2732..f5906107a95 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 @@ -23,13 +23,13 @@ class HostMetaInstallMethod # @!visibility private attr_accessor :_unparsed - # # The installer version. + # The installer version. attr_accessor :installer_version - # # Tool used to install the agent. + # Tool used to install the agent. attr_accessor :tool - # # The tool version. + # The tool version. attr_accessor :tool_version # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/host_metrics.rb b/lib/datadog_api_client/v1/models/host_metrics.rb index 2d3db46fc2c..bd3215d07c5 100644 --- a/lib/datadog_api_client/v1/models/host_metrics.rb +++ b/lib/datadog_api_client/v1/models/host_metrics.rb @@ -23,13 +23,13 @@ class HostMetrics # @!visibility private attr_accessor :_unparsed - # # The percent of CPU used (everything but idle). + # The percent of CPU used (everything but idle). attr_accessor :cpu - # # The percent of CPU spent waiting on the IO (not reported for all platforms). + # The percent of CPU spent waiting on the IO (not reported for all platforms). attr_accessor :iowait - # # The system load over the last 15 minutes. + # The system load over the last 15 minutes. attr_accessor :load # Attribute mapping from ruby-style variable name to JSON key. 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 b1bfa4578ec..ab32d7ebc4e 100644 --- a/lib/datadog_api_client/v1/models/host_mute_response.rb +++ b/lib/datadog_api_client/v1/models/host_mute_response.rb @@ -23,16 +23,16 @@ class HostMuteResponse # @!visibility private attr_accessor :_unparsed - # # Action applied to the hosts. + # Action applied to the hosts. attr_accessor :action - # # POSIX timestamp in seconds when the host is unmuted. + # POSIX timestamp in seconds when the host is unmuted. attr_accessor :_end - # # The host name. + # The host name. attr_accessor :hostname - # # Message associated with the mute. + # Message associated with the mute. attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. 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 9b862b6d592..c66bf80e51f 100644 --- a/lib/datadog_api_client/v1/models/host_mute_settings.rb +++ b/lib/datadog_api_client/v1/models/host_mute_settings.rb @@ -23,13 +23,13 @@ class HostMuteSettings # @!visibility private attr_accessor :_unparsed - # # POSIX timestamp in seconds when the host is unmuted. If omitted, the host remains muted until explicitly unmuted. + # POSIX timestamp in seconds when the host is unmuted. If omitted, the host remains muted until explicitly unmuted. attr_accessor :_end - # # Message to associate with the muting of this host. + # Message to associate with the muting of this host. attr_accessor :message - # # If true and the host is already muted, replaces existing host mute settings. + # If true and the host is already muted, replaces existing host mute settings. attr_accessor :override # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/host_tags.rb b/lib/datadog_api_client/v1/models/host_tags.rb index c4d13f7a6d1..459ab68c423 100644 --- a/lib/datadog_api_client/v1/models/host_tags.rb +++ b/lib/datadog_api_client/v1/models/host_tags.rb @@ -23,10 +23,10 @@ class HostTags # @!visibility private attr_accessor :_unparsed - # # Your host name. + # Your host name. attr_accessor :host - # # A list of tags to apply to the host. + # A list of tags to apply to the host. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/host_totals.rb b/lib/datadog_api_client/v1/models/host_totals.rb index c1b752ca952..1824bf1391c 100644 --- a/lib/datadog_api_client/v1/models/host_totals.rb +++ b/lib/datadog_api_client/v1/models/host_totals.rb @@ -23,10 +23,10 @@ class HostTotals # @!visibility private attr_accessor :_unparsed - # # Total number of active host (UP and ???) reporting to Datadog. + # Total number of active host (UP and ???) reporting to Datadog. attr_accessor :total_active - # # Number of host that are UP and reporting to Datadog. + # Number of host that are UP and reporting to Datadog. attr_accessor :total_up # Attribute mapping from ruby-style variable name to JSON key. 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 acf4b6979b3..e81716c1486 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 @@ -23,28 +23,28 @@ class HourlyUsageAttributionBody # @!visibility private attr_accessor :_unparsed - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # The name of the organization. + # The name of the organization. attr_accessor :org_name - # # The organization public ID. + # The organization public ID. attr_accessor :public_id - # # The source of the usage attribution tag configuration and the selected tags in the format of `::://////`. + # The source of the usage attribution tag configuration and the selected tags in the format of `::://////`. attr_accessor :tag_config_source - # # Usage Summary by tag name. + # Usage Summary by tag name. attr_accessor :tags - # # Total product usage for the given tags within the hour. + # Total product usage for the given tags within the hour. attr_accessor :total_usage_sum - # # Shows the most recent hour in the current month for all organizations where usages are calculated. + # Shows the most recent hour in the current month for all organizations where usages are calculated. attr_accessor :updated_at - # # Supported products for hourly usage attribution requests. + # Supported products for hourly usage attribution requests. attr_accessor :usage_type # Attribute mapping from ruby-style variable name to JSON key. 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 62be3fc6a42..2b1622adb80 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 @@ -23,7 +23,7 @@ class HourlyUsageAttributionMetadata # @!visibility private attr_accessor :_unparsed - # # The metadata for the current pagination. + # The metadata for the current pagination. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. 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 bcdda692324..ecb610137bc 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 @@ -23,7 +23,7 @@ class HourlyUsageAttributionPagination # @!visibility private attr_accessor :_unparsed - # # The cursor to get the next results (if any). To make the next request, use the same parameters and add `next_record_id`. + # 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 # Attribute mapping from ruby-style variable name to JSON key. 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 17659bbc5f0..0bdfa7e22c3 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 @@ -23,10 +23,10 @@ class HourlyUsageAttributionResponse # @!visibility private attr_accessor :_unparsed - # # The object containing document metadata. + # The object containing document metadata. attr_accessor :metadata - # # Get the hourly usage attribution by tag(s). + # Get the hourly usage attribution by tag(s). attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 e0eaaa55f33..cb352ff801d 100644 --- a/lib/datadog_api_client/v1/models/http_log_error.rb +++ b/lib/datadog_api_client/v1/models/http_log_error.rb @@ -23,10 +23,10 @@ class HTTPLogError # @!visibility private attr_accessor :_unparsed - # # Error code. + # Error code. attr_accessor :code - # # Error message. + # Error message. attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. 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 bf81349f30b..a75943df53c 100644 --- a/lib/datadog_api_client/v1/models/http_log_item.rb +++ b/lib/datadog_api_client/v1/models/http_log_item.rb @@ -23,23 +23,23 @@ class HTTPLogItem # @!visibility private attr_accessor :_unparsed - # # The integration name associated with your log: the technology from which the log originated. + # The integration name associated with your log: the technology from which the log originated. # When it matches an integration name, Datadog automatically installs the corresponding parsers and facets. # See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes). attr_accessor :ddsource - # # Tags associated with your logs. + # Tags associated with your logs. attr_accessor :ddtags - # # The name of the originating host of the log. + # The name of the originating host of the log. attr_accessor :hostname - # # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) + # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) # of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. # That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. attr_accessor :message - # # The name of the application or service generating the log events. + # The name of the application or service generating the log events. # It is used to switch from Logs to APM, so make sure you define the same value when you use both products. # See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes). attr_accessor :service 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 0a6aa986390..16acd77015b 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 @@ -23,10 +23,10 @@ class IFrameWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # Type of the iframe widget. + # Type of the iframe widget. attr_accessor :type - # # URL of the iframe. + # URL of the iframe. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. 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 5d9c2aec937..ade10b7bc96 100644 --- a/lib/datadog_api_client/v1/models/idp_form_data.rb +++ b/lib/datadog_api_client/v1/models/idp_form_data.rb @@ -23,7 +23,7 @@ class IdpFormData # @!visibility private attr_accessor :_unparsed - # # The path to the XML metadata file you wish to upload. + # The path to the XML metadata file you wish to upload. attr_accessor :idp_file # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/idp_response.rb b/lib/datadog_api_client/v1/models/idp_response.rb index ce42798f267..c8e319d465a 100644 --- a/lib/datadog_api_client/v1/models/idp_response.rb +++ b/lib/datadog_api_client/v1/models/idp_response.rb @@ -23,7 +23,7 @@ class IdpResponse # @!visibility private attr_accessor :_unparsed - # # Identity provider response. + # Identity provider response. attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. 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 88524ab0618..46edfdc3299 100644 --- a/lib/datadog_api_client/v1/models/image_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/image_widget_definition.rb @@ -23,33 +23,33 @@ class ImageWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # Whether to display a background or not. + # Whether to display a background or not. attr_accessor :has_background - # # Whether to display a border or not. + # Whether to display a border or not. attr_accessor :has_border - # # Horizontal alignment. + # Horizontal alignment. attr_accessor :horizontal_align - # # Size of the margins around the image. + # Size of the margins around the image. # **Note**: `small` and `large` values are deprecated. attr_accessor :margin - # # How to size the image on the widget. The values are based on the image `object-fit` CSS properties. + # How to size the image on the widget. The values are based on the image `object-fit` CSS properties. # **Note**: `zoom`, `fit` and `center` values are deprecated. attr_accessor :sizing - # # Type of the image widget. + # Type of the image widget. attr_accessor :type - # # URL of the image. + # URL of the image. attr_accessor :url - # # URL of the image in dark mode. + # URL of the image in dark mode. attr_accessor :url_dark_theme - # # Vertical alignment. + # Vertical alignment. attr_accessor :vertical_align # Attribute mapping from ruby-style variable name to JSON key. 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 9d5be16d48e..9735de2790c 100644 --- a/lib/datadog_api_client/v1/models/intake_payload_accepted.rb +++ b/lib/datadog_api_client/v1/models/intake_payload_accepted.rb @@ -23,7 +23,7 @@ class IntakePayloadAccepted # @!visibility private attr_accessor :_unparsed - # # The status of the intake payload. + # The status of the intake payload. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. 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 b1beb39354b..ea93207d585 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb @@ -23,10 +23,10 @@ class IPPrefixesAgents # @!visibility private attr_accessor :_unparsed - # # List of IPv4 prefixes. + # List of IPv4 prefixes. attr_accessor :prefixes_ipv4 - # # List of IPv6 prefixes. + # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 # Attribute mapping from ruby-style variable name to JSON key. 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 89a7f465c7b..8ee4ff183ad 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_api.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_api.rb @@ -23,10 +23,10 @@ class IPPrefixesAPI # @!visibility private attr_accessor :_unparsed - # # List of IPv4 prefixes. + # List of IPv4 prefixes. attr_accessor :prefixes_ipv4 - # # List of IPv6 prefixes. + # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 # Attribute mapping from ruby-style variable name to JSON key. 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 52337cd2da9..7887276e513 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb @@ -23,10 +23,10 @@ class IPPrefixesAPM # @!visibility private attr_accessor :_unparsed - # # List of IPv4 prefixes. + # List of IPv4 prefixes. attr_accessor :prefixes_ipv4 - # # List of IPv6 prefixes. + # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 # Attribute mapping from ruby-style variable name to JSON key. 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 74e63e88965..ed081f7062b 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb @@ -23,10 +23,10 @@ class IPPrefixesLogs # @!visibility private attr_accessor :_unparsed - # # List of IPv4 prefixes. + # List of IPv4 prefixes. attr_accessor :prefixes_ipv4 - # # List of IPv6 prefixes. + # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 # Attribute mapping from ruby-style variable name to JSON key. 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 f0ca87d8347..bcbe70a206a 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_process.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_process.rb @@ -23,10 +23,10 @@ class IPPrefixesProcess # @!visibility private attr_accessor :_unparsed - # # List of IPv4 prefixes. + # List of IPv4 prefixes. attr_accessor :prefixes_ipv4 - # # List of IPv6 prefixes. + # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 # Attribute mapping from ruby-style variable name to JSON key. 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 b2013ccfcda..cc5d4b54ffa 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb @@ -23,16 +23,16 @@ class IPPrefixesSynthetics # @!visibility private attr_accessor :_unparsed - # # List of IPv4 prefixes. + # List of IPv4 prefixes. attr_accessor :prefixes_ipv4 - # # List of IPv4 prefixes by location. + # List of IPv4 prefixes by location. attr_accessor :prefixes_ipv4_by_location - # # List of IPv6 prefixes. + # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 - # # List of IPv6 prefixes by location. + # List of IPv6 prefixes by location. attr_accessor :prefixes_ipv6_by_location # Attribute mapping from ruby-style variable name to JSON key. 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 4ec307c0c35..451edfb452a 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb @@ -23,10 +23,10 @@ class IPPrefixesWebhooks # @!visibility private attr_accessor :_unparsed - # # List of IPv4 prefixes. + # List of IPv4 prefixes. attr_accessor :prefixes_ipv4 - # # List of IPv6 prefixes. + # List of IPv6 prefixes. attr_accessor :prefixes_ipv6 # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/ip_ranges.rb b/lib/datadog_api_client/v1/models/ip_ranges.rb index 69e24242d84..e1cdc93182b 100644 --- a/lib/datadog_api_client/v1/models/ip_ranges.rb +++ b/lib/datadog_api_client/v1/models/ip_ranges.rb @@ -23,31 +23,31 @@ class IPRanges # @!visibility private attr_accessor :_unparsed - # # Available prefix information for the Agent endpoints. + # Available prefix information for the Agent endpoints. attr_accessor :agents - # # Available prefix information for the API endpoints. + # Available prefix information for the API endpoints. attr_accessor :api - # # Available prefix information for the APM endpoints. + # Available prefix information for the APM endpoints. attr_accessor :apm - # # Available prefix information for the Logs endpoints. + # Available prefix information for the Logs endpoints. attr_accessor :logs - # # Date when last updated, in the form `YYYY-MM-DD-hh-mm-ss`. + # Date when last updated, in the form `YYYY-MM-DD-hh-mm-ss`. attr_accessor :modified - # # Available prefix information for the Process endpoints. + # Available prefix information for the Process endpoints. attr_accessor :process - # # Available prefix information for the Synthetics endpoints. + # Available prefix information for the Synthetics endpoints. attr_accessor :synthetics - # # Version of the IP list. + # Version of the IP list. attr_accessor :version - # # Available prefix information for the Webhook endpoints. + # Available prefix information for the Webhook endpoints. attr_accessor :webhooks # Attribute mapping from ruby-style variable name to JSON key. 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 a5dd2a572f2..5c50f06c379 100644 --- a/lib/datadog_api_client/v1/models/list_stream_column.rb +++ b/lib/datadog_api_client/v1/models/list_stream_column.rb @@ -23,10 +23,10 @@ class ListStreamColumn # @!visibility private attr_accessor :_unparsed - # # Widget column field. + # Widget column field. attr_accessor :field - # # Widget column width. + # Widget column width. attr_accessor :width # Attribute mapping from ruby-style variable name to JSON key. 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 4edc926a27b..64f2ab8e69f 100644 --- a/lib/datadog_api_client/v1/models/list_stream_query.rb +++ b/lib/datadog_api_client/v1/models/list_stream_query.rb @@ -23,13 +23,13 @@ class ListStreamQuery # @!visibility private attr_accessor :_unparsed - # # Source from which to query items to display in the stream. + # Source from which to query items to display in the stream. attr_accessor :data_source - # # List of indexes. + # List of indexes. attr_accessor :indexes - # # Widget query. + # Widget query. attr_accessor :query_string # Attribute mapping from ruby-style variable name to JSON key. 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 a8202837827..cd6f4bc6bf9 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 @@ -24,28 +24,28 @@ class ListStreamWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto". + # Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto". attr_accessor :legend_size - # # Request payload used to query items. + # Request payload used to query items. attr_accessor :requests - # # Whether or not to display the legend on this widget. + # Whether or not to display the legend on this widget. attr_accessor :show_legend - # # Time setting for the widget. + # Time setting for the widget. attr_accessor :time - # # Title of the widget. + # Title of the widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the list stream widget. + # Type of the list stream widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 ea0a4ace22a..89323f30aed 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 @@ -23,13 +23,13 @@ class ListStreamWidgetRequest # @!visibility private attr_accessor :_unparsed - # # Widget columns. + # Widget columns. attr_accessor :columns - # # Updated list stream widget. + # Updated list stream widget. attr_accessor :query - # # Widget response format. + # Widget response format. attr_accessor :response_format # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/log.rb b/lib/datadog_api_client/v1/models/log.rb index a2cfd351002..e188a91332b 100644 --- a/lib/datadog_api_client/v1/models/log.rb +++ b/lib/datadog_api_client/v1/models/log.rb @@ -23,10 +23,10 @@ class Log # @!visibility private attr_accessor :_unparsed - # # JSON object containing all log attributes and their associated values. + # JSON object containing all log attributes and their associated values. attr_accessor :content - # # Unique ID of the Log. + # Unique ID of the Log. attr_accessor :id # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/log_content.rb b/lib/datadog_api_client/v1/models/log_content.rb index 84d7b11f59a..083f0c2373a 100644 --- a/lib/datadog_api_client/v1/models/log_content.rb +++ b/lib/datadog_api_client/v1/models/log_content.rb @@ -23,26 +23,26 @@ class LogContent # @!visibility private attr_accessor :_unparsed - # # JSON object of attributes from your log. + # JSON object of attributes from your log. attr_accessor :attributes - # # Name of the machine from where the logs are being sent. + # Name of the machine from where the logs are being sent. attr_accessor :host - # # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) + # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) # of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. # That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. attr_accessor :message - # # The name of the application or service generating the log events. + # The name of the application or service generating the log events. # It is used to switch from Logs to APM, so make sure you define the same # value when you use both products. attr_accessor :service - # # Array of tags associated with your log. + # Array of tags associated with your log. attr_accessor :tags - # # Timestamp of your log. + # Timestamp of your log. attr_accessor :timestamp # Attribute mapping from ruby-style variable name to JSON key. 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 a67097594c3..376fc6e2bcf 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition.rb @@ -23,19 +23,19 @@ class LogQueryDefinition # @!visibility private attr_accessor :_unparsed - # # Define computation for a log query. + # Define computation for a log query. attr_accessor :compute - # # List of tag prefixes to group by in the case of a cluster check. + # List of tag prefixes to group by in the case of a cluster check. attr_accessor :group_by - # # A coma separated-list of index names. Use "*" query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes) + # A coma separated-list of index names. Use "*" query all indexes at once. [Multiple Indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes) attr_accessor :index - # # This field is mutually exclusive with `compute`. + # This field is mutually exclusive with `compute`. attr_accessor :multi_compute - # # The query being made on the logs. + # The query being made on the logs. attr_accessor :search # Attribute mapping from ruby-style variable name to JSON key. 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 aab9b41692e..d1f4a496e3f 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 @@ -23,13 +23,13 @@ class LogQueryDefinitionGroupBy # @!visibility private attr_accessor :_unparsed - # # Facet name. + # Facet name. attr_accessor :facet - # # Maximum number of items in the group. + # Maximum number of items in the group. attr_accessor :limit - # # Define a sorting method. + # Define a sorting method. attr_accessor :sort # Attribute mapping from ruby-style variable name to JSON key. 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 8b5f24b2bf3..69c831037a5 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 @@ -23,13 +23,13 @@ class LogQueryDefinitionGroupBySort # @!visibility private attr_accessor :_unparsed - # # The aggregation method. + # The aggregation method. attr_accessor :aggregation - # # Facet name. + # Facet name. attr_accessor :facet - # # Widget sorting methods. + # Widget sorting methods. attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. 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 2b1e3f0c97a..20caa7cb445 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 @@ -23,7 +23,7 @@ class LogQueryDefinitionSearch # @!visibility private attr_accessor :_unparsed - # # Search value to apply. + # Search value to apply. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 f6942d8eb3e..fe4c879ecb6 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 @@ -23,43 +23,43 @@ class LogStreamWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # Which columns to display on the widget. + # Which columns to display on the widget. attr_accessor :columns - # # An array of index names to query in the stream. Use [] to query all indexes at once. + # An array of index names to query in the stream. Use [] to query all indexes at once. attr_accessor :indexes - # # ID of the log set to use. + # ID of the log set to use. attr_accessor :logset - # # Amount of log lines to display + # Amount of log lines to display attr_accessor :message_display - # # Query to filter the log stream with. + # Query to filter the log stream with. attr_accessor :query - # # Whether to show the date column or not + # Whether to show the date column or not attr_accessor :show_date_column - # # Whether to show the message column or not + # Whether to show the message column or not attr_accessor :show_message_column - # # Which column and order to sort by + # Which column and order to sort by attr_accessor :sort - # # Time setting for the widget. + # Time setting for the widget. attr_accessor :time - # # Title of the widget. + # Title of the widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the log stream widget. + # Type of the log stream widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 49cd1d4f4b2..387809ec5ef 100644 --- a/lib/datadog_api_client/v1/models/logs_api_error.rb +++ b/lib/datadog_api_client/v1/models/logs_api_error.rb @@ -23,13 +23,13 @@ class LogsAPIError # @!visibility private attr_accessor :_unparsed - # # Code identifying the error + # Code identifying the error attr_accessor :code - # # Additional error details + # Additional error details attr_accessor :details - # # Error message + # Error message attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. 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 1fdb433a41b..719e542eb18 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 @@ -23,7 +23,7 @@ class LogsAPIErrorResponse # @!visibility private attr_accessor :_unparsed - # # Error returned by the Logs API + # Error returned by the Logs API attr_accessor :error # Attribute mapping from ruby-style variable name to JSON key. 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 fbe22d5d7f3..29a33e8ece9 100644 --- a/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb @@ -43,23 +43,23 @@ class LogsArithmeticProcessor # @!visibility private attr_accessor :_unparsed - # # Arithmetic operation between one or more log attributes. + # Arithmetic operation between one or more log attributes. attr_accessor :expression - # # Whether or not the processor is enabled. + # Whether or not the processor is enabled. attr_accessor :is_enabled - # # If `true`, it replaces all missing attributes of expression by `0`, `false` + # If `true`, it replaces all missing attributes of expression by `0`, `false` # skip the operation if an attribute is missing. attr_accessor :is_replace_missing - # # Name of the processor. + # Name of the processor. attr_accessor :name - # # Name of the attribute that contains the result of the arithmetic operation. + # Name of the attribute that contains the result of the arithmetic operation. attr_accessor :target - # # Type of logs arithmetic processor. + # Type of logs arithmetic processor. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 c17742dfd25..cebe32651f1 100644 --- a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb @@ -25,36 +25,36 @@ class LogsAttributeRemapper # @!visibility private attr_accessor :_unparsed - # # Whether or not the processor is enabled. + # Whether or not the processor is enabled. attr_accessor :is_enabled - # # Name of the processor. + # Name of the processor. attr_accessor :name - # # Override or not the target element if already set, + # Override or not the target element if already set, attr_accessor :override_on_conflict - # # Remove or preserve the remapped source element. + # Remove or preserve the remapped source element. attr_accessor :preserve_source - # # Defines if the sources are from log `attribute` or `tag`. + # Defines if the sources are from log `attribute` or `tag`. attr_accessor :source_type - # # Array of source attributes. + # Array of source attributes. attr_accessor :sources - # # Final attribute or tag name to remap the sources to. + # Final attribute or tag name to remap the sources to. attr_accessor :target - # # If the `target_type` of the remapper is `attribute`, try to cast the value to a new specific type. + # If the `target_type` of the remapper is `attribute`, try to cast the value to a new specific type. # If the cast is not possible, the original type is kept. `string`, `integer`, or `double` are the possible types. # If the `target_type` is `tag`, this parameter may not be specified. attr_accessor :target_format - # # Defines if the final attribute or tag name is from log `attribute` or `tag`. + # Defines if the final attribute or tag name is from log `attribute` or `tag`. attr_accessor :target_type - # # Type of logs attribute remapper. + # Type of logs attribute remapper. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 315b9f13278..3eccf1db2b6 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention.rb @@ -23,13 +23,13 @@ class LogsByRetention # @!visibility private attr_accessor :_unparsed - # # Indexed logs usage summary for each organization for each retention period with usage. + # Indexed logs usage summary for each organization for each retention period with usage. attr_accessor :orgs - # # Aggregated index logs usage for each retention period with usage. + # Aggregated index logs usage for each retention period with usage. attr_accessor :usage - # # Object containing a summary of indexed logs usage by retention period for a single month. + # Object containing a summary of indexed logs usage by retention period for a single month. attr_accessor :usage_by_month # Attribute mapping from ruby-style variable name to JSON key. 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 feedb72c72a..06d9afc28e7 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 @@ -23,10 +23,10 @@ class LogsByRetentionMonthlyUsage # @!visibility private attr_accessor :_unparsed - # # The month for the usage. + # The month for the usage. attr_accessor :date - # # Indexed logs usage for each active retention for the month. + # Indexed logs usage for each active retention for the month. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 97f5cb7f383..5a62c461083 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 @@ -23,7 +23,7 @@ class LogsByRetentionOrgUsage # @!visibility private attr_accessor :_unparsed - # # Indexed logs usage for each active retention for the organization. + # Indexed logs usage for each active retention for the organization. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 a30ef2fba5d..6a1226af917 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 @@ -23,7 +23,7 @@ class LogsByRetentionOrgs # @!visibility private attr_accessor :_unparsed - # # Indexed logs usage summary for each organization. + # Indexed logs usage summary for each organization. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 9c65d5e68f3..529087da17c 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor.rb @@ -35,20 +35,20 @@ class LogsCategoryProcessor # @!visibility private attr_accessor :_unparsed - # # Array of filters to match or not a log and their + # Array of filters to match or not a log and their # corresponding `name`to assign a custom value to the log. attr_accessor :categories - # # Whether or not the processor is enabled. + # Whether or not the processor is enabled. attr_accessor :is_enabled - # # Name of the processor. + # Name of the processor. attr_accessor :name - # # Name of the target attribute which value is defined by the matching category. + # Name of the target attribute which value is defined by the matching category. attr_accessor :target - # # Type of logs category processor. + # Type of logs category processor. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 73301876d8d..544743d3942 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 @@ -23,10 +23,10 @@ class LogsCategoryProcessorCategory # @!visibility private attr_accessor :_unparsed - # # Filter for logs. + # Filter for logs. attr_accessor :filter - # # Value to assign to the target attribute. + # Value to assign to the target attribute. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 6a57df7fb6e..6092bedabdc 100644 --- a/lib/datadog_api_client/v1/models/logs_date_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_date_remapper.rb @@ -41,16 +41,16 @@ class LogsDateRemapper # @!visibility private attr_accessor :_unparsed - # # Whether or not the processor is enabled. + # Whether or not the processor is enabled. attr_accessor :is_enabled - # # Name of the processor. + # Name of the processor. attr_accessor :name - # # Array of source attributes. + # Array of source attributes. attr_accessor :sources - # # Type of logs date remapper. + # Type of logs date remapper. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/logs_exclusion.rb b/lib/datadog_api_client/v1/models/logs_exclusion.rb index c860fc8d7df..1dafbba9584 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion.rb @@ -23,13 +23,13 @@ class LogsExclusion # @!visibility private attr_accessor :_unparsed - # # Exclusion filter is defined by a query, a sampling rule, and a active/inactive toggle. + # Exclusion filter is defined by a query, a sampling rule, and a active/inactive toggle. attr_accessor :filter - # # Whether or not the exclusion filter is active. + # Whether or not the exclusion filter is active. attr_accessor :is_enabled - # # Name of the index exclusion filter. + # Name of the index exclusion filter. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 d88d5ee141f..177ac8d78b8 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb @@ -23,11 +23,11 @@ class LogsExclusionFilter # @!visibility private attr_accessor :_unparsed - # # Default query is `*`, meaning all logs flowing in the index would be excluded. + # Default query is `*`, meaning all logs flowing in the index would be excluded. # Scope down exclusion filter to only a subset of logs with a log query. attr_accessor :query - # # Sample rate to apply to logs going through this exclusion filter, + # Sample rate to apply to logs going through this exclusion filter, # a value of 1.0 excludes all logs matching the query. attr_accessor :sample_rate diff --git a/lib/datadog_api_client/v1/models/logs_filter.rb b/lib/datadog_api_client/v1/models/logs_filter.rb index fcb295a2e23..013d6f7b1de 100644 --- a/lib/datadog_api_client/v1/models/logs_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_filter.rb @@ -23,7 +23,7 @@ class LogsFilter # @!visibility private attr_accessor :_unparsed - # # The filter query. + # The filter query. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 ddddae858ef..f54be14db16 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 @@ -24,19 +24,19 @@ class LogsGeoIPParser # @!visibility private attr_accessor :_unparsed - # # Whether or not the processor is enabled. + # Whether or not the processor is enabled. attr_accessor :is_enabled - # # Name of the processor. + # Name of the processor. attr_accessor :name - # # Array of source attributes. + # Array of source attributes. attr_accessor :sources - # # Name of the parent attribute that contains all the extracted details from the `sources`. + # Name of the parent attribute that contains all the extracted details from the `sources`. attr_accessor :target - # # Type of GeoIP parser. + # Type of GeoIP parser. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 0ed39c0c33a..bddd044bd5d 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser.rb @@ -24,22 +24,22 @@ class LogsGrokParser # @!visibility private attr_accessor :_unparsed - # # Set of rules for the grok parser. + # Set of rules for the grok parser. attr_accessor :grok - # # Whether or not the processor is enabled. + # Whether or not the processor is enabled. attr_accessor :is_enabled - # # Name of the processor. + # Name of the processor. attr_accessor :name - # # List of sample logs to test this grok parser. + # List of sample logs to test this grok parser. attr_accessor :samples - # # Name of the log attribute to parse. + # Name of the log attribute to parse. attr_accessor :source - # # Type of logs grok parser. + # Type of logs grok parser. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 26db9366b3d..27125d32973 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 @@ -23,10 +23,10 @@ class LogsGrokParserRules # @!visibility private attr_accessor :_unparsed - # # List of match rules for the grok parser, separated by a new line. + # List of match rules for the grok parser, separated by a new line. attr_accessor :match_rules - # # List of support rules for the grok parser, separated by a new line. + # List of support rules for the grok parser, separated by a new line. attr_accessor :support_rules # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/logs_index.rb b/lib/datadog_api_client/v1/models/logs_index.rb index 65738c20691..81e39b89561 100644 --- a/lib/datadog_api_client/v1/models/logs_index.rb +++ b/lib/datadog_api_client/v1/models/logs_index.rb @@ -23,25 +23,25 @@ class LogsIndex # @!visibility private attr_accessor :_unparsed - # # The number of log events you can send in this index per day before you are rate-limited. + # The number of log events you can send in this index per day before you are rate-limited. attr_accessor :daily_limit - # # An array of exclusion objects. The logs are tested against the query of each filter, + # An array of exclusion objects. The logs are tested against the query of each filter, # following the order of the array. Only the first matching active exclusion matters, # others (if any) are ignored. attr_accessor :exclusion_filters - # # Filter for logs. + # Filter for logs. attr_accessor :filter - # # A boolean stating if the index is rate limited, meaning more logs than the daily limit have been sent. + # A boolean stating if the index is rate limited, meaning more logs than the daily limit have been sent. # Rate limit is reset every-day at 2pm UTC. attr_accessor :is_rate_limited - # # The name of the index. + # The name of the index. attr_accessor :name - # # The number of days before logs are deleted from this index. Available values depend on + # The number of days before logs are deleted from this index. Available values depend on # retention plans specified in your organization's contract/subscriptions. attr_accessor :num_retention_days 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 0fa84bed969..901e5d4000d 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 @@ -23,7 +23,7 @@ class LogsIndexListResponse # @!visibility private attr_accessor :_unparsed - # # Array of Log index configurations. + # Array of Log index configurations. attr_accessor :indexes # Attribute mapping from ruby-style variable name to JSON key. 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 aa2a5637b54..dc531e5152f 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 @@ -23,23 +23,23 @@ class LogsIndexUpdateRequest # @!visibility private attr_accessor :_unparsed - # # The number of log events you can send in this index per day before you are rate-limited. + # The number of log events you can send in this index per day before you are rate-limited. attr_accessor :daily_limit - # # If true, sets the `daily_limit` value to null and the index is not limited on a daily basis (any + # If true, sets the `daily_limit` value to null and the index is not limited on a daily basis (any # specified `daily_limit` value in the request is ignored). If false or omitted, the index's current # `daily_limit` is maintained. attr_accessor :disable_daily_limit - # # An array of exclusion objects. The logs are tested against the query of each filter, + # An array of exclusion objects. The logs are tested against the query of each filter, # following the order of the array. Only the first matching active exclusion matters, # others (if any) are ignored. attr_accessor :exclusion_filters - # # Filter for logs. + # Filter for logs. attr_accessor :filter - # # The number of days before logs are deleted from this index. Available values depend on + # The number of days before logs are deleted from this index. Available values depend on # retention plans specified in your organization's contract/subscriptions. # # **Note:** Changing the retention for an index adjusts the length of retention for all logs 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 64c0b795680..239c2c4d5c6 100644 --- a/lib/datadog_api_client/v1/models/logs_indexes_order.rb +++ b/lib/datadog_api_client/v1/models/logs_indexes_order.rb @@ -23,7 +23,7 @@ class LogsIndexesOrder # @!visibility private attr_accessor :_unparsed - # # Array of strings identifying by their name(s) the index(es) of your organization. + # Array of strings identifying by their name(s) the index(es) of your organization. # Logs are tested against the query filter of each index one by one, following the order of the array. # Logs are eventually stored in the first matching index. attr_accessor :index_names 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 606a27d479e..85f376a2c72 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request.rb @@ -23,27 +23,27 @@ class LogsListRequest # @!visibility private attr_accessor :_unparsed - # # The log index on which the request is performed. For multi-index organizations, + # The log index on which the request is performed. For multi-index organizations, # the default is all live indexes. Historical indexes of rehydrated logs must be specified. attr_accessor :index - # # Number of logs return in the response. + # Number of logs return in the response. attr_accessor :limit - # # The search query - following the log search syntax. + # The search query - following the log search syntax. attr_accessor :query - # # Time-ascending `asc` or time-descending `desc`results. + # Time-ascending `asc` or time-descending `desc`results. attr_accessor :sort - # # Hash identifier of the first log to return in the list, available in a log `id` attribute. + # Hash identifier of the first log to return in the list, available in a log `id` attribute. # This parameter is used for the pagination feature. # # **Note**: This parameter is ignored if the corresponding log # is out of the scope of the specified time window. attr_accessor :start_at - # # Timeframe to retrieve the log from. + # Timeframe to retrieve the log from. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 e11ee4e031d..e22be2af29b 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 @@ -23,14 +23,14 @@ class LogsListRequestTime # @!visibility private attr_accessor :_unparsed - # # Minimum timestamp for requested logs. + # Minimum timestamp for requested logs. attr_accessor :from - # # Timezone can be specified both as an offset (for example "UTC+03:00") + # Timezone can be specified both as an offset (for example "UTC+03:00") # or a regional zone (for example "Europe/Paris"). attr_accessor :timezone - # # Maximum timestamp for requested logs. + # Maximum timestamp for requested logs. attr_accessor :to # Attribute mapping from ruby-style variable name to JSON key. 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 fcab206e4cf..fe1caaa06d0 100644 --- a/lib/datadog_api_client/v1/models/logs_list_response.rb +++ b/lib/datadog_api_client/v1/models/logs_list_response.rb @@ -23,14 +23,14 @@ class LogsListResponse # @!visibility private attr_accessor :_unparsed - # # Array of logs matching the request and the `nextLogId` if sent. + # Array of logs matching the request and the `nextLogId` if sent. attr_accessor :logs - # # Hash identifier of the next log to return in the list. + # Hash identifier of the next log to return in the list. # This parameter is used for the pagination feature. attr_accessor :next_log_id - # # Status of the response. + # Status of the response. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. 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 7d203ea6654..539e44b5388 100644 --- a/lib/datadog_api_client/v1/models/logs_lookup_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_lookup_processor.rb @@ -28,27 +28,27 @@ class LogsLookupProcessor # @!visibility private attr_accessor :_unparsed - # # Value to set the target attribute if the source value is not found in the list. + # Value to set the target attribute if the source value is not found in the list. attr_accessor :default_lookup - # # Whether or not the processor is enabled. + # Whether or not the processor is enabled. attr_accessor :is_enabled - # # Mapping table of values for the source attribute and their associated target attribute values, + # Mapping table of values for the source attribute and their associated target attribute values, # formatted as `["source_key1,target_value1", "source_key2,target_value2"]` attr_accessor :lookup_table - # # Name of the processor. + # Name of the processor. attr_accessor :name - # # Source attribute used to perform the lookup. + # Source attribute used to perform the lookup. attr_accessor :source - # # Name of the attribute that contains the corresponding value in the mapping list + # Name of the attribute that contains the corresponding value in the mapping list # or the `default_lookup` if not found in the mapping list. attr_accessor :target - # # Type of logs lookup processor. + # Type of logs lookup processor. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 1288f9dc7c6..ce4b1186340 100644 --- a/lib/datadog_api_client/v1/models/logs_message_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_message_remapper.rb @@ -28,16 +28,16 @@ class LogsMessageRemapper # @!visibility private attr_accessor :_unparsed - # # Whether or not the processor is enabled. + # Whether or not the processor is enabled. attr_accessor :is_enabled - # # Name of the processor. + # Name of the processor. attr_accessor :name - # # Array of source attributes. + # Array of source attributes. attr_accessor :sources - # # Type of logs message remapper. + # Type of logs message remapper. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/logs_pipeline.rb b/lib/datadog_api_client/v1/models/logs_pipeline.rb index faaddb9ee3b..f0de6ab5c6e 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline.rb @@ -27,25 +27,25 @@ class LogsPipeline # @!visibility private attr_accessor :_unparsed - # # Filter for logs. + # Filter for logs. attr_accessor :filter - # # ID of the pipeline. + # ID of the pipeline. attr_accessor :id - # # Whether or not the pipeline is enabled. + # Whether or not the pipeline is enabled. attr_accessor :is_enabled - # # Whether or not the pipeline can be edited. + # Whether or not the pipeline can be edited. attr_accessor :is_read_only - # # Name of the pipeline. + # Name of the pipeline. attr_accessor :name - # # Ordered list of processors in this pipeline. + # Ordered list of processors in this pipeline. attr_accessor :processors - # # Type of pipeline. + # Type of pipeline. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3d1bc6fc510..fbce659f0d6 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb @@ -27,19 +27,19 @@ class LogsPipelineProcessor # @!visibility private attr_accessor :_unparsed - # # Filter for logs. + # Filter for logs. attr_accessor :filter - # # Whether or not the processor is enabled. + # Whether or not the processor is enabled. attr_accessor :is_enabled - # # Name of the processor. + # Name of the processor. attr_accessor :name - # # Ordered list of processors in this pipeline. + # Ordered list of processors in this pipeline. attr_accessor :processors - # # Type of logs pipeline processor. + # Type of logs pipeline processor. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 96c05dfaa84..f669795e0d6 100644 --- a/lib/datadog_api_client/v1/models/logs_pipelines_order.rb +++ b/lib/datadog_api_client/v1/models/logs_pipelines_order.rb @@ -23,7 +23,7 @@ class LogsPipelinesOrder # @!visibility private attr_accessor :_unparsed - # # Ordered Array of `` strings, the order of pipeline IDs in the array + # Ordered Array of `` strings, the order of pipeline IDs in the array # define the overall Pipelines order for Datadog. attr_accessor :pipeline_ids 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 a9aa3b7a1c9..3c0a76935c7 100644 --- a/lib/datadog_api_client/v1/models/logs_query_compute.rb +++ b/lib/datadog_api_client/v1/models/logs_query_compute.rb @@ -23,13 +23,13 @@ class LogsQueryCompute # @!visibility private attr_accessor :_unparsed - # # The aggregation method. + # The aggregation method. attr_accessor :aggregation - # # Facet name. + # Facet name. attr_accessor :facet - # # Define a time interval in seconds. + # Define a time interval in seconds. attr_accessor :interval # Attribute mapping from ruby-style variable name to JSON key. 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 5c4cffcf7ac..2f506ee7592 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 @@ -23,16 +23,16 @@ class LogsRetentionAggSumUsage # @!visibility private attr_accessor :_unparsed - # # Total indexed logs for this retention period. + # Total indexed logs for this retention period. attr_accessor :logs_indexed_logs_usage_agg_sum - # # Live indexed logs for this retention period. + # Live indexed logs for this retention period. attr_accessor :logs_live_indexed_logs_usage_agg_sum - # # Rehydrated indexed logs for this retention period. + # Rehydrated indexed logs for this retention period. attr_accessor :logs_rehydrated_indexed_logs_usage_agg_sum - # # The retention period in days or "custom" for all custom retention periods. + # The retention period in days or "custom" for all custom retention periods. attr_accessor :retention # Attribute mapping from ruby-style variable name to JSON key. 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 40fbeaac2a1..49c2e6bc46a 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 @@ -23,16 +23,16 @@ class LogsRetentionSumUsage # @!visibility private attr_accessor :_unparsed - # # Total indexed logs for this retention period. + # Total indexed logs for this retention period. attr_accessor :logs_indexed_logs_usage_sum - # # Live indexed logs for this retention period. + # Live indexed logs for this retention period. attr_accessor :logs_live_indexed_logs_usage_sum - # # Rehydrated indexed logs for this retention period. + # Rehydrated indexed logs for this retention period. attr_accessor :logs_rehydrated_indexed_logs_usage_sum - # # The retention period in days or "custom" for all custom retention periods. + # The retention period in days or "custom" for all custom retention periods. attr_accessor :retention # Attribute mapping from ruby-style variable name to JSON key. 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 fca159e58a9..2b071bacf0e 100644 --- a/lib/datadog_api_client/v1/models/logs_service_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_service_remapper.rb @@ -26,16 +26,16 @@ class LogsServiceRemapper # @!visibility private attr_accessor :_unparsed - # # Whether or not the processor is enabled. + # Whether or not the processor is enabled. attr_accessor :is_enabled - # # Name of the processor. + # Name of the processor. attr_accessor :name - # # Array of source attributes. + # Array of source attributes. attr_accessor :sources - # # Type of logs service remapper. + # Type of logs service remapper. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 769867374e1..d18420d0a93 100644 --- a/lib/datadog_api_client/v1/models/logs_status_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_status_remapper.rb @@ -40,16 +40,16 @@ class LogsStatusRemapper # @!visibility private attr_accessor :_unparsed - # # Whether or not the processor is enabled. + # Whether or not the processor is enabled. attr_accessor :is_enabled - # # Name of the processor. + # Name of the processor. attr_accessor :name - # # Array of source attributes. + # Array of source attributes. attr_accessor :sources - # # Type of logs status remapper. + # Type of logs status remapper. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 542cca8e98e..1e8f1accf8a 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 @@ -35,23 +35,23 @@ class LogsStringBuilderProcessor # @!visibility private attr_accessor :_unparsed - # # Whether or not the processor is enabled. + # Whether or not the processor is enabled. attr_accessor :is_enabled - # # If true, it replaces all missing attributes of `template` by an empty string. + # If true, it replaces all missing attributes of `template` by an empty string. # If `false` (default), skips the operation for missing attributes. attr_accessor :is_replace_missing - # # Name of the processor. + # Name of the processor. attr_accessor :name - # # The name of the attribute that contains the result of the template. + # The name of the attribute that contains the result of the template. attr_accessor :target - # # A formula with one or more attributes and raw text. + # A formula with one or more attributes and raw text. attr_accessor :template - # # Type of logs string builder processor. + # Type of logs string builder processor. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 488820f2782..3ae1fbbc3b9 100644 --- a/lib/datadog_api_client/v1/models/logs_trace_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_trace_remapper.rb @@ -28,16 +28,16 @@ class LogsTraceRemapper # @!visibility private attr_accessor :_unparsed - # # Whether or not the processor is enabled. + # Whether or not the processor is enabled. attr_accessor :is_enabled - # # Name of the processor. + # Name of the processor. attr_accessor :name - # # Array of source attributes. + # Array of source attributes. attr_accessor :sources - # # Type of logs trace remapper. + # Type of logs trace remapper. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 8f3822c24d8..d1f7241c7a5 100644 --- a/lib/datadog_api_client/v1/models/logs_url_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_url_parser.rb @@ -23,22 +23,22 @@ class LogsURLParser # @!visibility private attr_accessor :_unparsed - # # Whether or not the processor is enabled. + # Whether or not the processor is enabled. attr_accessor :is_enabled - # # Name of the processor. + # Name of the processor. attr_accessor :name - # # Normalize the ending slashes or not. + # Normalize the ending slashes or not. attr_accessor :normalize_ending_slashes - # # Array of source attributes. + # Array of source attributes. attr_accessor :sources - # # Name of the parent attribute that contains all the extracted details from the `sources`. + # Name of the parent attribute that contains all the extracted details from the `sources`. attr_accessor :target - # # Type of logs URL parser. + # Type of logs URL parser. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 19044d64981..94d9dd24beb 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 @@ -24,22 +24,22 @@ class LogsUserAgentParser # @!visibility private attr_accessor :_unparsed - # # Whether or not the processor is enabled. + # Whether or not the processor is enabled. attr_accessor :is_enabled - # # Define if the source attribute is URL encoded or not. + # Define if the source attribute is URL encoded or not. attr_accessor :is_encoded - # # Name of the processor. + # Name of the processor. attr_accessor :name - # # Array of source attributes. + # Array of source attributes. attr_accessor :sources - # # Name of the parent attribute that contains all the extracted details from the `sources`. + # Name of the parent attribute that contains all the extracted details from the `sources`. attr_accessor :target - # # Type of logs User-Agent parser. + # Type of logs User-Agent parser. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/metric_metadata.rb b/lib/datadog_api_client/v1/models/metric_metadata.rb index 0cbcd12c17f..77f87cfdf1d 100644 --- a/lib/datadog_api_client/v1/models/metric_metadata.rb +++ b/lib/datadog_api_client/v1/models/metric_metadata.rb @@ -23,25 +23,25 @@ class MetricMetadata # @!visibility private attr_accessor :_unparsed - # # Metric description. + # Metric description. attr_accessor :description - # # Name of the integration that sent the metric if applicable. + # Name of the integration that sent the metric if applicable. attr_accessor :integration - # # Per unit of the metric such as `second` in `bytes per second`. + # Per unit of the metric such as `second` in `bytes per second`. attr_accessor :per_unit - # # A more human-readable and abbreviated version of the metric name. + # A more human-readable and abbreviated version of the metric name. attr_accessor :short_name - # # StatsD flush interval of the metric in seconds if applicable. + # StatsD flush interval of the metric in seconds if applicable. attr_accessor :statsd_interval - # # Metric type such as `gauge` or `rate`. + # Metric type such as `gauge` or `rate`. attr_accessor :type - # # Primary unit of the metric such as `byte` or `operation`. + # Primary unit of the metric such as `byte` or `operation`. attr_accessor :unit # Attribute mapping from ruby-style variable name to JSON key. 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 a238aaba38d..c38f571e642 100644 --- a/lib/datadog_api_client/v1/models/metric_search_response.rb +++ b/lib/datadog_api_client/v1/models/metric_search_response.rb @@ -23,7 +23,7 @@ class MetricSearchResponse # @!visibility private attr_accessor :_unparsed - # # Search result. + # Search result. attr_accessor :results # Attribute mapping from ruby-style variable name to JSON key. 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 9968de70a67..a885c68fbda 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 @@ -23,7 +23,7 @@ class MetricSearchResponseResults # @!visibility private attr_accessor :_unparsed - # # List of metrics that match the search query. + # List of metrics that match the search query. attr_accessor :metrics # Attribute mapping from ruby-style variable name to JSON key. 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 119fba26e4c..884e222a539 100644 --- a/lib/datadog_api_client/v1/models/metrics_list_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_list_response.rb @@ -23,10 +23,10 @@ class MetricsListResponse # @!visibility private attr_accessor :_unparsed - # # Time when the metrics were active, seconds since the Unix epoch. + # Time when the metrics were active, seconds since the Unix epoch. attr_accessor :from - # # List of metric names. + # List of metric names. attr_accessor :metrics # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/metrics_payload.rb b/lib/datadog_api_client/v1/models/metrics_payload.rb index b9170b623ce..988dbcc427c 100644 --- a/lib/datadog_api_client/v1/models/metrics_payload.rb +++ b/lib/datadog_api_client/v1/models/metrics_payload.rb @@ -23,7 +23,7 @@ class MetricsPayload # @!visibility private attr_accessor :_unparsed - # # A list of time series to submit to Datadog. + # A list of time series to submit to Datadog. attr_accessor :series # Attribute mapping from ruby-style variable name to JSON key. 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 ff1676d827b..519efd37d10 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_metadata.rb @@ -23,43 +23,43 @@ class MetricsQueryMetadata # @!visibility private attr_accessor :_unparsed - # # Aggregation type. + # Aggregation type. attr_accessor :aggr - # # Display name of the metric. + # Display name of the metric. attr_accessor :display_name - # # End of the time window, milliseconds since Unix epoch. + # End of the time window, milliseconds since Unix epoch. attr_accessor :_end - # # Metric expression. + # Metric expression. attr_accessor :expression - # # Number of seconds between data samples. + # Number of seconds between data samples. attr_accessor :interval - # # Number of data samples. + # Number of data samples. attr_accessor :length - # # Metric name. + # Metric name. attr_accessor :metric - # # List of points of the time series. + # List of points of the time series. attr_accessor :pointlist - # # The index of the series' query within the request. + # The index of the series' query within the request. attr_accessor :query_index - # # Metric scope, comma separated list of tags. + # Metric scope, comma separated list of tags. attr_accessor :scope - # # Start of the time window, milliseconds since Unix epoch. + # Start of the time window, milliseconds since Unix epoch. attr_accessor :start - # # Unique tags identifying this series. + # Unique tags identifying this series. attr_accessor :tag_set - # # Detailed information about the metric unit. + # Detailed information about the metric unit. # First element describes the "primary unit" (for example, `bytes` in `bytes per second`), # second describes the "per unit" (for example, `second` in `bytes per second`). attr_accessor :unit 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 74879551534..fc50371aaec 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_response.rb @@ -23,31 +23,31 @@ class MetricsQueryResponse # @!visibility private attr_accessor :_unparsed - # # Message indicating the errors if status is not `ok`. + # Message indicating the errors if status is not `ok`. attr_accessor :error - # # Start of requested time window, milliseconds since Unix epoch. + # Start of requested time window, milliseconds since Unix epoch. attr_accessor :from_date - # # List of tag keys on which to group. + # List of tag keys on which to group. attr_accessor :group_by - # # Message indicating `success` if status is `ok`. + # Message indicating `success` if status is `ok`. attr_accessor :message - # # Query string + # Query string attr_accessor :query - # # Type of response. + # Type of response. attr_accessor :res_type - # # List of timeseries queried. + # List of timeseries queried. attr_accessor :series - # # Status of the query. + # Status of the query. attr_accessor :status - # # End of requested time window, milliseconds since Unix epoch. + # End of requested time window, milliseconds since Unix epoch. attr_accessor :to_date # Attribute mapping from ruby-style variable name to JSON key. 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 4916d49de23..e71b6291134 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_unit.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_unit.rb @@ -23,19 +23,19 @@ class MetricsQueryUnit # @!visibility private attr_accessor :_unparsed - # # Unit family, allows for conversion between units of the same family, for scaling. + # Unit family, allows for conversion between units of the same family, for scaling. attr_accessor :family - # # Unit name + # Unit name attr_accessor :name - # # Plural form of the unit name. + # Plural form of the unit name. attr_accessor :plural - # # Factor for scaling between units of the same family. + # Factor for scaling between units of the same family. attr_accessor :scale_factor - # # Abbreviation of the unit. + # Abbreviation of the unit. attr_accessor :short_name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor.rb b/lib/datadog_api_client/v1/models/monitor.rb index 7e99004efc4..c2577e683c5 100644 --- a/lib/datadog_api_client/v1/models/monitor.rb +++ b/lib/datadog_api_client/v1/models/monitor.rb @@ -23,52 +23,52 @@ class Monitor # @!visibility private attr_accessor :_unparsed - # # Timestamp of the monitor creation. + # Timestamp of the monitor creation. attr_accessor :created - # # Object describing the creator of the shared element. + # Object describing the creator of the shared element. attr_accessor :creator - # # Whether or not the monitor is deleted. (Always `null`) + # Whether or not the monitor is deleted. (Always `null`) attr_accessor :deleted - # # ID of this monitor. + # ID of this monitor. attr_accessor :id - # # A message to include with notifications for this monitor. + # A message to include with notifications for this monitor. attr_accessor :message - # # Last timestamp when the monitor was edited. + # Last timestamp when the monitor was edited. attr_accessor :modified - # # Whether or not the monitor is broken down on different groups. + # Whether or not the monitor is broken down on different groups. attr_accessor :multi - # # The monitor name. + # The monitor name. attr_accessor :name - # # List of options associated with your monitor. + # List of options associated with your monitor. attr_accessor :options - # # The different states your monitor can be in. + # The different states your monitor can be in. attr_accessor :overall_state - # # Integer from 1 (high) to 5 (low) indicating alert severity. + # Integer from 1 (high) to 5 (low) indicating alert severity. attr_accessor :priority - # # The monitor query. + # The monitor query. attr_accessor :query - # # A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked` option. + # A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked` option. attr_accessor :restricted_roles - # # Wrapper object with the different monitor states. + # Wrapper object with the different monitor states. attr_accessor :state - # # Tags associated to your monitor. + # Tags associated to your monitor. attr_accessor :tags - # # The type of the monitor. For more information about `type`, see the [monitor options](https://docs.datadoghq.com/monitors/guide/monitor_api_options/) docs. + # 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 # Attribute mapping from ruby-style variable name to JSON key. 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 8cdb48a4858..eef1588768c 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 @@ -23,22 +23,22 @@ class MonitorFormulaAndFunctionEventQueryDefinition # @!visibility private attr_accessor :_unparsed - # # Compute options. + # Compute options. attr_accessor :compute - # # Data source for event platform-based queries. + # Data source for event platform-based queries. attr_accessor :data_source - # # Group by options. + # Group by options. attr_accessor :group_by - # # An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. + # An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. attr_accessor :indexes - # # Name of the query for use in formulas. + # Name of the query for use in formulas. attr_accessor :name - # # Search options. + # Search options. attr_accessor :search # Attribute mapping from ruby-style variable name to JSON key. 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 42e3c60fd3a..1f17bebd1dd 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 @@ -23,13 +23,13 @@ class MonitorFormulaAndFunctionEventQueryDefinitionCompute # @!visibility private attr_accessor :_unparsed - # # Aggregation methods for event platform queries. + # Aggregation methods for event platform queries. attr_accessor :aggregation - # # A time interval in milliseconds. + # A time interval in milliseconds. attr_accessor :interval - # # Measurable attribute to compute. + # Measurable attribute to compute. attr_accessor :metric # Attribute mapping from ruby-style variable name to JSON key. 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 b31d74dfe1f..a815a86f8e7 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 @@ -23,7 +23,7 @@ class MonitorFormulaAndFunctionEventQueryDefinitionSearch # @!visibility private attr_accessor :_unparsed - # # Events search string. + # Events search string. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 da2ed4c757b..aa553fde769 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 @@ -23,13 +23,13 @@ class MonitorFormulaAndFunctionEventQueryGroupBy # @!visibility private attr_accessor :_unparsed - # # Event facet. + # Event facet. attr_accessor :facet - # # Number of groups to return. + # Number of groups to return. attr_accessor :limit - # # Options for sorting group by results. + # Options for sorting group by results. attr_accessor :sort # Attribute mapping from ruby-style variable name to JSON key. 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 91bcead0896..361d23f0b03 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 @@ -23,13 +23,13 @@ class MonitorFormulaAndFunctionEventQueryGroupBySort # @!visibility private attr_accessor :_unparsed - # # Aggregation methods for event platform queries. + # Aggregation methods for event platform queries. attr_accessor :aggregation - # # Metric used for sorting group by results. + # Metric used for sorting group by results. attr_accessor :metric - # # Direction of sort. + # Direction of sort. attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. 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 684bf2237bc..86ed972eacc 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 @@ -23,13 +23,13 @@ class MonitorGroupSearchResponse # @!visibility private attr_accessor :_unparsed - # # The counts of monitor groups per different criteria. + # The counts of monitor groups per different criteria. attr_accessor :counts - # # The list of found monitor groups. + # The list of found monitor groups. attr_accessor :groups - # # Metadata about the response. + # Metadata about the response. attr_accessor :metadata # Attribute mapping from ruby-style variable name to JSON key. 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 b3785ca0882..5507b32accb 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 @@ -23,10 +23,10 @@ class MonitorGroupSearchResponseCounts # @!visibility private attr_accessor :_unparsed - # # Search facets. + # Search facets. attr_accessor :status - # # Search facets. + # Search facets. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb index 007685772e2..7d6625af15d 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb @@ -23,10 +23,10 @@ class MonitorGroupSearchResponseCountsStatusItem # @!visibility private attr_accessor :_unparsed - # # The number of found monitors with the listed value. + # The number of found monitors with the listed value. attr_accessor :count - # # The facet value. + # The facet value. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb index 5e6e3fda2c3..cbdad2cc91c 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb @@ -23,10 +23,10 @@ class MonitorGroupSearchResponseCountsTypeItem # @!visibility private attr_accessor :_unparsed - # # The number of found monitors with the listed value. + # The number of found monitors with the listed value. attr_accessor :count - # # The facet value. + # The facet value. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 5ae81cd95e0..c922a4a0e4e 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 @@ -23,25 +23,25 @@ class MonitorGroupSearchResult # @!visibility private attr_accessor :_unparsed - # # The name of the group. + # The name of the group. attr_accessor :group - # # The list of tags of the monitor group. + # The list of tags of the monitor group. attr_accessor :group_tags - # # Latest timestamp the monitor group was in NO_DATA state. + # Latest timestamp the monitor group was in NO_DATA state. attr_accessor :last_nodata_ts - # # Latest timestamp the monitor group triggered. + # Latest timestamp the monitor group triggered. attr_accessor :last_triggered_ts - # # The ID of the monitor. + # The ID of the monitor. attr_accessor :monitor_id - # # The name of the monitor. + # The name of the monitor. attr_accessor :monitor_name - # # The different states your monitor can be in. + # The different states your monitor can be in. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor_options.rb b/lib/datadog_api_client/v1/models/monitor_options.rb index 8fe21524710..a1f96a8fbe2 100644 --- a/lib/datadog_api_client/v1/models/monitor_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_options.rb @@ -23,103 +23,103 @@ class MonitorOptions # @!visibility private attr_accessor :_unparsed - # # Type of aggregation performed in the monitor query. + # Type of aggregation performed in the monitor query. attr_accessor :aggregation - # # IDs of the device the Synthetics monitor is running on. + # IDs of the device the Synthetics monitor is running on. attr_accessor :device_ids - # # Whether or not to send a log sample when the log monitor triggers. + # Whether or not to send a log sample when the log monitor triggers. attr_accessor :enable_logs_sample - # # We recommend using the [is_renotify](https://docs.datadoghq.com/monitors/notify/?tab=is_alert#renotify), + # We recommend using the [is_renotify](https://docs.datadoghq.com/monitors/notify/?tab=is_alert#renotify), # block in the original message instead. # A message to include with a re-notification. Supports the `@username` notification we allow elsewhere. # Not applicable if `renotify_interval` is `None`. attr_accessor :escalation_message - # # Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to `300` (5min), + # Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to `300` (5min), # the timeframe is set to `last_5m` and the time is 7:00, the monitor evaluates data from 6:50 to 6:55. # This is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation. attr_accessor :evaluation_delay - # # Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. + # Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. attr_accessor :groupby_simple_monitor - # # A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title. + # A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title. # # **Examples** # - If `True`, `[Triggered on {host:h1}] Monitor Title` # - If `False`, `[Triggered] Monitor Title` attr_accessor :include_tags - # # Whether or not the monitor is locked (only editable by creator and admins). + # Whether or not the monitor is locked (only editable by creator and admins). attr_accessor :locked - # # How long the test should be in failure before alerting (integer, number of seconds, max 7200). + # How long the test should be in failure before alerting (integer, number of seconds, max 7200). attr_accessor :min_failure_duration - # # The minimum number of locations in failure at the same time during + # The minimum number of locations in failure at the same time during # at least one moment in the `min_failure_duration` period (`min_location_failed` and `min_failure_duration` # are part of the advanced alerting rules - integer, >= 1). attr_accessor :min_location_failed - # # Time (in seconds) to skip evaluations for new groups. + # Time (in seconds) to skip evaluations for new groups. # # For example, this option can be used to skip evaluations for new hosts while they initialize. # # Must be a non negative integer. attr_accessor :new_group_delay - # # Time (in seconds) to allow a host to boot and applications + # Time (in seconds) to allow a host to boot and applications # to fully start before starting the evaluation of monitor results. # Should be a non negative integer. # # Use new_group_delay instead. attr_accessor :new_host_delay - # # The number of minutes before a monitor notifies after data stops reporting. + # The number of minutes before a monitor notifies after data stops reporting. # Datadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks. # If omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks. attr_accessor :no_data_timeframe - # # A Boolean indicating whether tagged users is notified on changes to this monitor. + # A Boolean indicating whether tagged users is notified on changes to this monitor. attr_accessor :notify_audit - # # A Boolean indicating whether this monitor notifies when data stops reporting. + # A Boolean indicating whether this monitor notifies when data stops reporting. attr_accessor :notify_no_data - # # The number of minutes after the last notification before a monitor re-notifies on the current status. + # The number of minutes after the last notification before a monitor re-notifies on the current status. # It only re-notifies if it’s not resolved. attr_accessor :renotify_interval - # # The number of times re-notification messages should be sent on the current status at the provided re-notification interval. + # The number of times re-notification messages should be sent on the current status at the provided re-notification interval. attr_accessor :renotify_occurrences - # # The types of monitor statuses for which re-notification messages are sent. + # The types of monitor statuses for which re-notification messages are sent. attr_accessor :renotify_statuses - # # A Boolean indicating whether this monitor needs a full window of data before it’s evaluated. + # A Boolean indicating whether this monitor needs a full window of data before it’s evaluated. # We highly recommend you set this to `false` for sparse metrics, # otherwise some evaluations are skipped. Default is false. attr_accessor :require_full_window - # # Information about the downtime applied to the monitor. + # Information about the downtime applied to the monitor. attr_accessor :silenced - # # ID of the corresponding Synthetic check. + # ID of the corresponding Synthetic check. attr_accessor :synthetics_check_id - # # Alerting time window options. + # Alerting time window options. attr_accessor :threshold_windows - # # List of the different monitor threshold available. + # List of the different monitor threshold available. attr_accessor :thresholds - # # The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours. + # The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours. attr_accessor :timeout_h - # # List of requests that can be used in the monitor query. **This feature is currently in beta.** + # List of requests that can be used in the monitor query. **This feature is currently in beta.** attr_accessor :variables # Attribute mapping from ruby-style variable name to JSON key. 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 f7c81e35f3e..0d270f3980b 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb @@ -23,13 +23,13 @@ class MonitorOptionsAggregation # @!visibility private attr_accessor :_unparsed - # # Group to break down the monitor on. + # Group to break down the monitor on. attr_accessor :group_by - # # Metric name used in the monitor. + # Metric name used in the monitor. attr_accessor :metric - # # Metric type used in the monitor. + # Metric type used in the monitor. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3427f469cf0..62f5a803874 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response.rb @@ -23,13 +23,13 @@ class MonitorSearchResponse # @!visibility private attr_accessor :_unparsed - # # The counts of monitors per different criteria. + # The counts of monitors per different criteria. attr_accessor :counts - # # Metadata about the response. + # Metadata about the response. attr_accessor :metadata - # # The list of found monitors. + # The list of found monitors. attr_accessor :monitors # Attribute mapping from ruby-style variable name to JSON key. 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 ef441a4c5f5..e8e86ab6f1b 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 @@ -23,16 +23,16 @@ class MonitorSearchResponseCounts # @!visibility private attr_accessor :_unparsed - # # Search facets. + # Search facets. attr_accessor :muted - # # Search facets. + # Search facets. attr_accessor :status - # # Search facets. + # Search facets. attr_accessor :tag - # # Search facets. + # Search facets. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb index 683c66efe25..51a3642aeae 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb @@ -23,10 +23,10 @@ class MonitorSearchResponseCountsMutedItem # @!visibility private attr_accessor :_unparsed - # # The number of found monitors with the listed value. + # The number of found monitors with the listed value. attr_accessor :count - # # The facet value. + # The facet value. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb index 7990605ba8e..727ad0210f8 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb @@ -23,10 +23,10 @@ class MonitorSearchResponseCountsStatusItem # @!visibility private attr_accessor :_unparsed - # # The number of found monitors with the listed value. + # The number of found monitors with the listed value. attr_accessor :count - # # The facet value. + # The facet value. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb index 7bcbe8c3189..53020f1e819 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb @@ -23,10 +23,10 @@ class MonitorSearchResponseCountsTagItem # @!visibility private attr_accessor :_unparsed - # # The number of found monitors with the listed value. + # The number of found monitors with the listed value. attr_accessor :count - # # The facet value. + # The facet value. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb index 84cc1520642..73ea46ff46f 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb @@ -23,10 +23,10 @@ class MonitorSearchResponseCountsTypeItem # @!visibility private attr_accessor :_unparsed - # # The number of found monitors with the listed value. + # The number of found monitors with the listed value. attr_accessor :count - # # The facet value. + # The facet value. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 2492a38089a..51d1f3c2f1b 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 @@ -23,16 +23,16 @@ class MonitorSearchResponseMetadata # @!visibility private attr_accessor :_unparsed - # # The page to start paginating from. + # The page to start paginating from. attr_accessor :page - # # The number of pages. + # The number of pages. attr_accessor :page_count - # # The number of monitors to return per page. + # The number of monitors to return per page. attr_accessor :per_page - # # The total number of monitors. + # The total number of monitors. attr_accessor :total_count # Attribute mapping from ruby-style variable name to JSON key. 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 ba30f2d1007..73758e42db0 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_result.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_result.rb @@ -23,46 +23,46 @@ class MonitorSearchResult # @!visibility private attr_accessor :_unparsed - # # Classification of the monitor. + # Classification of the monitor. attr_accessor :classification - # # Object describing the creator of the shared element. + # Object describing the creator of the shared element. attr_accessor :creator - # # ID of the monitor. + # ID of the monitor. attr_accessor :id - # # Latest timestamp the monitor triggered. + # Latest timestamp the monitor triggered. attr_accessor :last_triggered_ts - # # Metrics used by the monitor. + # Metrics used by the monitor. attr_accessor :metrics - # # The monitor name. + # The monitor name. attr_accessor :name - # # The notification triggered by the monitor. + # The notification triggered by the monitor. attr_accessor :notifications - # # The ID of the organization. + # The ID of the organization. attr_accessor :org_id - # # The monitor query. + # The monitor query. attr_accessor :query - # # The scope(s) to which the downtime applies, for example `host:app2`. + # The scope(s) to which the downtime applies, for example `host:app2`. # Provide multiple scopes as a comma-separated list, for example `env:dev,env:prod`. # The resulting downtime applies to sources that matches ALL provided scopes # (that is `env:dev AND env:prod`), NOT any of them. attr_accessor :scopes - # # The different states your monitor can be in. + # The different states your monitor can be in. attr_accessor :status - # # Tags associated with the monitor. + # Tags associated with the monitor. attr_accessor :tags - # # The type of the monitor. For more information about `type`, see the [monitor options](https://docs.datadoghq.com/monitors/guide/monitor_api_options/) docs. + # 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 # Attribute mapping from ruby-style variable name to JSON key. 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 8cdd8697d22..07df260257b 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 @@ -23,10 +23,10 @@ class MonitorSearchResultNotification # @!visibility private attr_accessor :_unparsed - # # The email address that received the notification. + # The email address that received the notification. attr_accessor :handle - # # The username receiving the notification + # The username receiving the notification attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor_state.rb b/lib/datadog_api_client/v1/models/monitor_state.rb index 89f7dbe2f41..13856207b05 100644 --- a/lib/datadog_api_client/v1/models/monitor_state.rb +++ b/lib/datadog_api_client/v1/models/monitor_state.rb @@ -23,7 +23,7 @@ class MonitorState # @!visibility private attr_accessor :_unparsed - # # Dictionary where the keys are groups (comma separated lists of tags) and the values are + # Dictionary where the keys are groups (comma separated lists of tags) and the values are # the list of groups your monitor is broken down on. attr_accessor :groups 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 3a27cda1800..70fde80ca18 100644 --- a/lib/datadog_api_client/v1/models/monitor_state_group.rb +++ b/lib/datadog_api_client/v1/models/monitor_state_group.rb @@ -23,22 +23,22 @@ class MonitorStateGroup # @!visibility private attr_accessor :_unparsed - # # Latest timestamp the monitor was in NO_DATA state. + # Latest timestamp the monitor was in NO_DATA state. attr_accessor :last_nodata_ts - # # Latest timestamp of the notification sent for this monitor group. + # Latest timestamp of the notification sent for this monitor group. attr_accessor :last_notified_ts - # # Latest timestamp the monitor group was resolved. + # Latest timestamp the monitor group was resolved. attr_accessor :last_resolved_ts - # # Latest timestamp the monitor group triggered. + # Latest timestamp the monitor group triggered. attr_accessor :last_triggered_ts - # # The name of the monitor. + # The name of the monitor. attr_accessor :name - # # The different states your monitor can be in. + # The different states your monitor can be in. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. 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 fe58e82f5f6..31f3d8084d3 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 @@ -23,43 +23,43 @@ class MonitorSummaryWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # Which color to use on the widget. + # Which color to use on the widget. attr_accessor :color_preference - # # The number of monitors to display. + # The number of monitors to display. attr_accessor :count - # # What to display on the widget. + # What to display on the widget. attr_accessor :display_format - # # Whether to show counts of 0 or not. + # Whether to show counts of 0 or not. attr_accessor :hide_zero_counts - # # Query to filter the monitors with. + # Query to filter the monitors with. attr_accessor :query - # # Whether to show the time that has elapsed since the monitor/group triggered. + # Whether to show the time that has elapsed since the monitor/group triggered. attr_accessor :show_last_triggered - # # Widget sorting methods. + # Widget sorting methods. attr_accessor :sort - # # The start of the list. Typically 0. + # The start of the list. Typically 0. attr_accessor :start - # # Which summary type should be used. + # Which summary type should be used. attr_accessor :summary_type - # # Title of the widget. + # Title of the widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the monitor summary widget. + # Type of the monitor summary widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 92c714173b6..0cf469289f4 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 @@ -23,10 +23,10 @@ class MonitorThresholdWindowOptions # @!visibility private attr_accessor :_unparsed - # # Describes how long an anomalous metric must be normal before the alert recovers. + # Describes how long an anomalous metric must be normal before the alert recovers. attr_accessor :recovery_window - # # Describes how long a metric must be anomalous before an alert triggers. + # Describes how long a metric must be anomalous before an alert triggers. attr_accessor :trigger_window # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/monitor_thresholds.rb b/lib/datadog_api_client/v1/models/monitor_thresholds.rb index 63182d1d917..33ddcce6601 100644 --- a/lib/datadog_api_client/v1/models/monitor_thresholds.rb +++ b/lib/datadog_api_client/v1/models/monitor_thresholds.rb @@ -23,22 +23,22 @@ class MonitorThresholds # @!visibility private attr_accessor :_unparsed - # # The monitor `CRITICAL` threshold. + # The monitor `CRITICAL` threshold. attr_accessor :critical - # # The monitor `CRITICAL` recovery threshold. + # The monitor `CRITICAL` recovery threshold. attr_accessor :critical_recovery - # # The monitor `OK` threshold. + # The monitor `OK` threshold. attr_accessor :ok - # # The monitor UNKNOWN threshold. + # The monitor UNKNOWN threshold. attr_accessor :unknown - # # The monitor `WARNING` threshold. + # The monitor `WARNING` threshold. attr_accessor :warning - # # The monitor `WARNING` recovery threshold. + # The monitor `WARNING` recovery threshold. attr_accessor :warning_recovery # Attribute mapping from ruby-style variable name to JSON key. 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 e939aea9e04..0f503c164e8 100644 --- a/lib/datadog_api_client/v1/models/monitor_update_request.rb +++ b/lib/datadog_api_client/v1/models/monitor_update_request.rb @@ -23,52 +23,52 @@ class MonitorUpdateRequest # @!visibility private attr_accessor :_unparsed - # # Timestamp of the monitor creation. + # Timestamp of the monitor creation. attr_accessor :created - # # Object describing the creator of the shared element. + # Object describing the creator of the shared element. attr_accessor :creator - # # Whether or not the monitor is deleted. (Always `null`) + # Whether or not the monitor is deleted. (Always `null`) attr_accessor :deleted - # # ID of this monitor. + # ID of this monitor. attr_accessor :id - # # A message to include with notifications for this monitor. + # A message to include with notifications for this monitor. attr_accessor :message - # # Last timestamp when the monitor was edited. + # Last timestamp when the monitor was edited. attr_accessor :modified - # # Whether or not the monitor is broken down on different groups. + # Whether or not the monitor is broken down on different groups. attr_accessor :multi - # # The monitor name. + # The monitor name. attr_accessor :name - # # List of options associated with your monitor. + # List of options associated with your monitor. attr_accessor :options - # # The different states your monitor can be in. + # The different states your monitor can be in. attr_accessor :overall_state - # # Integer from 1 (high) to 5 (low) indicating alert severity. + # Integer from 1 (high) to 5 (low) indicating alert severity. attr_accessor :priority - # # The monitor query. + # The monitor query. attr_accessor :query - # # A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked` option. + # A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked` option. attr_accessor :restricted_roles - # # Wrapper object with the different monitor states. + # Wrapper object with the different monitor states. attr_accessor :state - # # Tags associated to your monitor. + # Tags associated to your monitor. attr_accessor :tags - # # The type of the monitor. For more information about `type`, see the [monitor options](https://docs.datadoghq.com/monitors/guide/monitor_api_options/) docs. + # 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 # Attribute mapping from ruby-style variable name to JSON key. 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 dbba5ab0fb0..65d0ccfe701 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 @@ -23,25 +23,25 @@ class MonthlyUsageAttributionBody # @!visibility private attr_accessor :_unparsed - # # Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM]. + # Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM]. attr_accessor :month - # # The name of the organization. + # The name of the organization. attr_accessor :org_name - # # The organization public ID. + # The organization public ID. attr_accessor :public_id - # # The source of the usage attribution tag configuration and the selected tags in the format `://////`. + # The source of the usage attribution tag configuration and the selected tags in the format `://////`. attr_accessor :tag_config_source - # # Usage Summary by tag name. + # Usage Summary by tag name. attr_accessor :tags - # # Datetime of the most recent update to the usage values. + # Datetime of the most recent update to the usage values. attr_accessor :updated_at - # # Fields in Usage Summary by tag(s). + # Fields in Usage Summary by tag(s). attr_accessor :values # Attribute mapping from ruby-style variable name to JSON key. 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 edf58143214..77b171fc99f 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 @@ -23,10 +23,10 @@ class MonthlyUsageAttributionMetadata # @!visibility private attr_accessor :_unparsed - # # An array of available aggregates. + # An array of available aggregates. attr_accessor :aggregates - # # The metadata for the current pagination. + # The metadata for the current pagination. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. 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 0c91d45a585..6615da36b6c 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 @@ -23,7 +23,7 @@ class MonthlyUsageAttributionPagination # @!visibility private attr_accessor :_unparsed - # # 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`. + # 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 # Attribute mapping from ruby-style variable name to JSON key. 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 043fe2afbec..2967d728413 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 @@ -23,10 +23,10 @@ class MonthlyUsageAttributionResponse # @!visibility private attr_accessor :_unparsed - # # The object containing document metadata. + # The object containing document metadata. attr_accessor :metadata - # # Get Usage Summary by tag(s). + # Get Usage Summary by tag(s). attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 09d522a168a..59ee20a4aca 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 @@ -23,88 +23,88 @@ class MonthlyUsageAttributionValues # @!visibility private attr_accessor :_unparsed - # # The percentage of synthetic API test usage by tag(s). + # The percentage of synthetic API test usage by tag(s). attr_accessor :api_percentage - # # The synthetic API test usage by tag(s). + # The synthetic API test usage by tag(s). attr_accessor :api_usage - # # The percentage of APM host usage by tag(s). + # The percentage of APM host usage by tag(s). attr_accessor :apm_host_percentage - # # The APM host usage by tag(s). + # The APM host usage by tag(s). attr_accessor :apm_host_usage - # # The percentage of synthetic browser test usage by tag(s). + # The percentage of synthetic browser test usage by tag(s). attr_accessor :browser_percentage - # # The synthetic browser test usage by tag(s). + # The synthetic browser test usage by tag(s). attr_accessor :browser_usage - # # The percentage of container usage by tag(s). + # The percentage of container usage by tag(s). attr_accessor :container_percentage - # # The container usage by tag(s). + # The container usage by tag(s). attr_accessor :container_usage - # # The percentage of custom metrics usage by tag(s). + # The percentage of custom metrics usage by tag(s). attr_accessor :custom_timeseries_percentage - # # The custom metrics usage by tag(s). + # The custom metrics usage by tag(s). attr_accessor :custom_timeseries_usage - # # The percentage of Fargate usage by tags. + # The percentage of Fargate usage by tags. attr_accessor :fargate_percentage - # # The Fargate usage by tags. + # The Fargate usage by tags. attr_accessor :fargate_usage - # # The percentage of Lambda function usage by tag(s). + # The percentage of Lambda function usage by tag(s). attr_accessor :functions_percentage - # # The Lambda function usage by tag(s). + # The Lambda function usage by tag(s). attr_accessor :functions_usage - # # The percentage of indexed logs usage by tags. + # The percentage of indexed logs usage by tags. attr_accessor :indexed_logs_percentage - # # The indexed logs usage by tags. + # The indexed logs usage by tags. attr_accessor :indexed_logs_usage - # # The percentage of infrastructure host usage by tag(s). + # The percentage of infrastructure host usage by tag(s). attr_accessor :infra_host_percentage - # # The infrastructure host usage by tag(s). + # The infrastructure host usage by tag(s). attr_accessor :infra_host_usage - # # The percentage of Lambda invocation usage by tag(s). + # The percentage of Lambda invocation usage by tag(s). attr_accessor :invocations_percentage - # # The Lambda invocation usage by tag(s). + # The Lambda invocation usage by tag(s). attr_accessor :invocations_usage - # # The percentage of network host usage by tag(s). + # The percentage of network host usage by tag(s). attr_accessor :npm_host_percentage - # # The network host usage by tag(s). + # The network host usage by tag(s). attr_accessor :npm_host_usage - # # The percentage of profiled container usage by tag(s). + # The percentage of profiled container usage by tag(s). attr_accessor :profiled_container_percentage - # # The profiled container usage by tag(s). + # The profiled container usage by tag(s). attr_accessor :profiled_container_usage - # # The percentage of profiled hosts usage by tag(s). + # The percentage of profiled hosts usage by tag(s). attr_accessor :profiled_host_percentage - # # The profiled hosts usage by tag(s). + # The profiled hosts usage by tag(s). attr_accessor :profiled_host_usage - # # The percentage of network device usage by tag(s). + # The percentage of network device usage by tag(s). attr_accessor :snmp_percentage - # # The network device usage by tag(s). + # The network device usage by tag(s). attr_accessor :snmp_usage # Attribute mapping from ruby-style variable name to JSON key. 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 033a3d0c96d..f70d8e9577f 100644 --- a/lib/datadog_api_client/v1/models/note_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/note_widget_definition.rb @@ -23,34 +23,34 @@ class NoteWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # Background color of the note. + # Background color of the note. attr_accessor :background_color - # # Content of the note. + # Content of the note. attr_accessor :content - # # Size of the text. + # Size of the text. attr_accessor :font_size - # # Whether to add padding or not. + # Whether to add padding or not. attr_accessor :has_padding - # # Whether to show a tick or not. + # Whether to show a tick or not. attr_accessor :show_tick - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :text_align - # # Define how you want to align the text on the widget. + # Define how you want to align the text on the widget. attr_accessor :tick_edge - # # Where to position the tick on an edge. + # Where to position the tick on an edge. attr_accessor :tick_pos - # # Type of the note widget. + # Type of the note widget. attr_accessor :type - # # Vertical alignment. + # Vertical alignment. attr_accessor :vertical_align # Attribute mapping from ruby-style variable name to JSON key. 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 d499898335a..7cc860400d7 100644 --- a/lib/datadog_api_client/v1/models/notebook_absolute_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_absolute_time.rb @@ -23,13 +23,13 @@ class NotebookAbsoluteTime # @!visibility private attr_accessor :_unparsed - # # The end time. + # The end time. attr_accessor :_end - # # Indicates whether the timeframe should be shifted to end at the current time. + # Indicates whether the timeframe should be shifted to end at the current time. attr_accessor :live - # # The start time. + # The start time. attr_accessor :start # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/notebook_author.rb b/lib/datadog_api_client/v1/models/notebook_author.rb index b9517ad0ca2..b6d0d934c0a 100644 --- a/lib/datadog_api_client/v1/models/notebook_author.rb +++ b/lib/datadog_api_client/v1/models/notebook_author.rb @@ -23,31 +23,31 @@ class NotebookAuthor # @!visibility private attr_accessor :_unparsed - # # Creation time of the user. + # Creation time of the user. attr_accessor :created_at - # # Whether the user is disabled. + # Whether the user is disabled. attr_accessor :disabled - # # Email of the user. + # Email of the user. attr_accessor :email - # # Handle of the user. + # Handle of the user. attr_accessor :handle - # # URL of the user's icon. + # URL of the user's icon. attr_accessor :icon - # # Name of the user. + # Name of the user. attr_accessor :name - # # Status of the user. + # Status of the user. attr_accessor :status - # # Title of the user. + # Title of the user. attr_accessor :title - # # Whether the user is verified. + # Whether the user is verified. attr_accessor :verified # Attribute mapping from ruby-style variable name to JSON key. 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 1ace9857bc9..9db736d78e1 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 @@ -23,11 +23,11 @@ class NotebookCellCreateRequest # @!visibility private attr_accessor :_unparsed - # # The attributes of a notebook cell in create cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, + # The attributes of a notebook cell in create cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, # `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) attr_accessor :attributes - # # Type of the Notebook Cell resource. + # Type of the Notebook Cell resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 2b902901368..480f74a3743 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_response.rb @@ -23,14 +23,14 @@ class NotebookCellResponse # @!visibility private attr_accessor :_unparsed - # # The attributes of a notebook cell response. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, + # The attributes of a notebook cell response. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, # `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) attr_accessor :attributes - # # Notebook cell ID. + # Notebook cell ID. attr_accessor :id - # # Type of the Notebook Cell resource. + # Type of the Notebook Cell resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 a47a39048c0..ba2e18ea1dc 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 @@ -23,14 +23,14 @@ class NotebookCellUpdateRequest # @!visibility private attr_accessor :_unparsed - # # The attributes of a notebook cell in update cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, + # The attributes of a notebook cell in update cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, # `log_stream`. [More information on each graph visualization type.](https://docs.datadoghq.com/dashboards/widgets/) attr_accessor :attributes - # # Notebook cell ID. + # Notebook cell ID. attr_accessor :id - # # Type of the Notebook Cell resource. + # Type of the Notebook Cell resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 a6e7183a6c7..2ed4b4fd0ee 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_data.rb @@ -23,10 +23,10 @@ class NotebookCreateData # @!visibility private attr_accessor :_unparsed - # # The data attributes of a notebook. + # The data attributes of a notebook. attr_accessor :attributes - # # Type of the Notebook resource. + # Type of the Notebook resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 6d51ec3a4d7..0266887dbc9 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 @@ -23,19 +23,19 @@ class NotebookCreateDataAttributes # @!visibility private attr_accessor :_unparsed - # # List of cells to display in the notebook. + # List of cells to display in the notebook. attr_accessor :cells - # # Metadata associated with the notebook. + # Metadata associated with the notebook. attr_accessor :metadata - # # The name of the notebook. + # The name of the notebook. attr_accessor :name - # # Publication status of the notebook. For now, always "published". + # Publication status of the notebook. For now, always "published". attr_accessor :status - # # Notebook global timeframe. + # Notebook global timeframe. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 748fe66fae0..5014f8f7d6e 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_request.rb @@ -23,7 +23,7 @@ class NotebookCreateRequest # @!visibility private attr_accessor :_unparsed - # # The data for a notebook create request. + # The data for a notebook create request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 47184a424af..2c48aab24a4 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 @@ -23,18 +23,18 @@ class NotebookDistributionCellAttributes # @!visibility private attr_accessor :_unparsed - # # The Distribution visualization is another way of showing metrics + # The Distribution visualization is another way of showing metrics # aggregated across one or several tags, such as hosts. # Unlike the heat map, a distribution graph’s x-axis is quantity rather than time. attr_accessor :definition - # # The size of the graph. + # The size of the graph. attr_accessor :graph_size - # # Object describing how to split the graph to display multiple visualizations per request. + # Object describing how to split the graph to display multiple visualizations per request. attr_accessor :split_by - # # Timeframe for the notebook cell. When 'null', the notebook global time is used. + # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 b066ceaee78..7eda77b5e50 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 @@ -23,16 +23,16 @@ class NotebookHeatMapCellAttributes # @!visibility private attr_accessor :_unparsed - # # The heat map visualization shows metrics aggregated across many tags, such as hosts. The more hosts that have a particular value, the darker that square is. + # The heat map visualization shows metrics aggregated across many tags, such as hosts. The more hosts that have a particular value, the darker that square is. attr_accessor :definition - # # The size of the graph. + # The size of the graph. attr_accessor :graph_size - # # Object describing how to split the graph to display multiple visualizations per request. + # Object describing how to split the graph to display multiple visualizations per request. attr_accessor :split_by - # # Timeframe for the notebook cell. When 'null', the notebook global time is used. + # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 cf99e2eb542..49b2f7b0794 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 @@ -23,13 +23,13 @@ class NotebookLogStreamCellAttributes # @!visibility private attr_accessor :_unparsed - # # The Log Stream displays a log flow matching the defined query. Only available on FREE layout dashboards. + # The Log Stream displays a log flow matching the defined query. Only available on FREE layout dashboards. attr_accessor :definition - # # The size of the graph. + # The size of the graph. attr_accessor :graph_size - # # Timeframe for the notebook cell. When 'null', the notebook global time is used. + # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 e1a717aa751..965802e4d5c 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 @@ -23,7 +23,7 @@ class NotebookMarkdownCellAttributes # @!visibility private attr_accessor :_unparsed - # # 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. + # 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_accessor :definition # Attribute mapping from ruby-style variable name to JSON key. 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 70f340d5c9e..dbc4af9a6b7 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 @@ -23,10 +23,10 @@ class NotebookMarkdownCellDefinition # @!visibility private attr_accessor :_unparsed - # # The markdown content. + # The markdown content. attr_accessor :text - # # Type of the markdown cell. + # Type of the markdown cell. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/notebook_metadata.rb b/lib/datadog_api_client/v1/models/notebook_metadata.rb index 2fb05285a72..fba9df8d987 100644 --- a/lib/datadog_api_client/v1/models/notebook_metadata.rb +++ b/lib/datadog_api_client/v1/models/notebook_metadata.rb @@ -23,13 +23,13 @@ class NotebookMetadata # @!visibility private attr_accessor :_unparsed - # # Whether or not the notebook is a template. + # Whether or not the notebook is a template. attr_accessor :is_template - # # Whether or not the notebook takes snapshot image backups of the notebook's fixed-time graphs. + # Whether or not the notebook takes snapshot image backups of the notebook's fixed-time graphs. attr_accessor :take_snapshots - # # Metadata type of the notebook. + # Metadata type of the notebook. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 67d520f344d..579a211a771 100644 --- a/lib/datadog_api_client/v1/models/notebook_relative_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_relative_time.rb @@ -23,7 +23,7 @@ class NotebookRelativeTime # @!visibility private attr_accessor :_unparsed - # # The available timeframes depend on the widget you are using. + # The available timeframes depend on the widget you are using. attr_accessor :live_span # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/notebook_response.rb b/lib/datadog_api_client/v1/models/notebook_response.rb index 4a977ebfb3a..e7ed2f8cb2e 100644 --- a/lib/datadog_api_client/v1/models/notebook_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_response.rb @@ -23,7 +23,7 @@ class NotebookResponse # @!visibility private attr_accessor :_unparsed - # # The data for a notebook. + # The data for a notebook. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 ecd6ca06d5c..3f23acbd219 100644 --- a/lib/datadog_api_client/v1/models/notebook_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_response_data.rb @@ -23,13 +23,13 @@ class NotebookResponseData # @!visibility private attr_accessor :_unparsed - # # The attributes of a notebook. + # The attributes of a notebook. attr_accessor :attributes - # # Unique notebook ID, assigned when you create the notebook. + # Unique notebook ID, assigned when you create the notebook. attr_accessor :id - # # Type of the Notebook resource. + # Type of the Notebook resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 39bcd560dbf..65c9797beda 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 @@ -23,28 +23,28 @@ class NotebookResponseDataAttributes # @!visibility private attr_accessor :_unparsed - # # Attributes of user object returned by the API. + # Attributes of user object returned by the API. attr_accessor :author - # # List of cells to display in the notebook. + # List of cells to display in the notebook. attr_accessor :cells - # # UTC time stamp for when the notebook was created. + # UTC time stamp for when the notebook was created. attr_accessor :created - # # Metadata associated with the notebook. + # Metadata associated with the notebook. attr_accessor :metadata - # # UTC time stamp for when the notebook was last modified. + # UTC time stamp for when the notebook was last modified. attr_accessor :modified - # # The name of the notebook. + # The name of the notebook. attr_accessor :name - # # Publication status of the notebook. For now, always "published". + # Publication status of the notebook. For now, always "published". attr_accessor :status - # # Notebook global timeframe. + # Notebook global timeframe. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 15c6ed6bcf7..dbbff5b3933 100644 --- a/lib/datadog_api_client/v1/models/notebook_split_by.rb +++ b/lib/datadog_api_client/v1/models/notebook_split_by.rb @@ -23,10 +23,10 @@ class NotebookSplitBy # @!visibility private attr_accessor :_unparsed - # # Keys to split on. + # Keys to split on. attr_accessor :keys - # # Tags to split on. + # Tags to split on. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 a73350a04d2..3f5af12c54e 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 @@ -23,16 +23,16 @@ class NotebookTimeseriesCellAttributes # @!visibility private attr_accessor :_unparsed - # # The timeseries visualization allows you to display the evolution of one or more metrics, log events, or Indexed Spans over time. + # The timeseries visualization allows you to display the evolution of one or more metrics, log events, or Indexed Spans over time. attr_accessor :definition - # # The size of the graph. + # The size of the graph. attr_accessor :graph_size - # # Object describing how to split the graph to display multiple visualizations per request. + # Object describing how to split the graph to display multiple visualizations per request. attr_accessor :split_by - # # Timeframe for the notebook cell. When 'null', the notebook global time is used. + # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 dde75179d0d..1ecdb79b8ba 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 @@ -23,16 +23,16 @@ class NotebookToplistCellAttributes # @!visibility private attr_accessor :_unparsed - # # The top list visualization enables you to display a list of Tag value like hostname or service with the most or least of any metric value, such as highest consumers of CPU, hosts with the least disk space, etc. + # The top list visualization enables you to display a list of Tag value like hostname or service with the most or least of any metric value, such as highest consumers of CPU, hosts with the least disk space, etc. attr_accessor :definition - # # The size of the graph. + # The size of the graph. attr_accessor :graph_size - # # Object describing how to split the graph to display multiple visualizations per request. + # Object describing how to split the graph to display multiple visualizations per request. attr_accessor :split_by - # # Timeframe for the notebook cell. When 'null', the notebook global time is used. + # Timeframe for the notebook cell. When 'null', the notebook global time is used. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 2ed6546adcc..949571647d3 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_data.rb @@ -23,10 +23,10 @@ class NotebookUpdateData # @!visibility private attr_accessor :_unparsed - # # The data attributes of a notebook. + # The data attributes of a notebook. attr_accessor :attributes - # # Type of the Notebook resource. + # Type of the Notebook resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3cb81cfd8ea..d47ed404815 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 @@ -23,19 +23,19 @@ class NotebookUpdateDataAttributes # @!visibility private attr_accessor :_unparsed - # # List of cells to display in the notebook. + # List of cells to display in the notebook. attr_accessor :cells - # # Metadata associated with the notebook. + # Metadata associated with the notebook. attr_accessor :metadata - # # The name of the notebook. + # The name of the notebook. attr_accessor :name - # # Publication status of the notebook. For now, always "published". + # Publication status of the notebook. For now, always "published". attr_accessor :status - # # Notebook global timeframe. + # Notebook global timeframe. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 c6e289c8a4e..44beee14fd2 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_request.rb @@ -23,7 +23,7 @@ class NotebookUpdateRequest # @!visibility private attr_accessor :_unparsed - # # The data for a notebook update request. + # The data for a notebook update request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/notebooks_response.rb b/lib/datadog_api_client/v1/models/notebooks_response.rb index 8f1b80d676c..ffd62c86f6b 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response.rb @@ -23,10 +23,10 @@ class NotebooksResponse # @!visibility private attr_accessor :_unparsed - # # List of notebook definitions. + # List of notebook definitions. attr_accessor :data - # # Searches metadata returned by the API. + # Searches metadata returned by the API. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 04f8f5d550e..f5fdc53a118 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_data.rb @@ -23,13 +23,13 @@ class NotebooksResponseData # @!visibility private attr_accessor :_unparsed - # # The attributes of a notebook in get all response. + # The attributes of a notebook in get all response. attr_accessor :attributes - # # Unique notebook ID, assigned when you create the notebook. + # Unique notebook ID, assigned when you create the notebook. attr_accessor :id - # # Type of the Notebook resource. + # Type of the Notebook resource. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 9ba0dbb99f9..919973a2a71 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 @@ -23,28 +23,28 @@ class NotebooksResponseDataAttributes # @!visibility private attr_accessor :_unparsed - # # Attributes of user object returned by the API. + # Attributes of user object returned by the API. attr_accessor :author - # # List of cells to display in the notebook. + # List of cells to display in the notebook. attr_accessor :cells - # # UTC time stamp for when the notebook was created. + # UTC time stamp for when the notebook was created. attr_accessor :created - # # Metadata associated with the notebook. + # Metadata associated with the notebook. attr_accessor :metadata - # # UTC time stamp for when the notebook was last modified. + # UTC time stamp for when the notebook was last modified. attr_accessor :modified - # # The name of the notebook. + # The name of the notebook. attr_accessor :name - # # Publication status of the notebook. For now, always "published". + # Publication status of the notebook. For now, always "published". attr_accessor :status - # # Notebook global timeframe. + # Notebook global timeframe. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 5982ec7331e..32c3f5e4b51 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_meta.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_meta.rb @@ -23,7 +23,7 @@ class NotebooksResponseMeta # @!visibility private attr_accessor :_unparsed - # # Pagination metadata returned by the API. + # Pagination metadata returned by the API. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. 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 6e6e37f4ca9..ef51fa1e509 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_page.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_page.rb @@ -23,10 +23,10 @@ class NotebooksResponsePage # @!visibility private attr_accessor :_unparsed - # # The total number of notebooks that would be returned if the request was not filtered by `start` and `count` parameters. + # The total number of notebooks that would be returned if the request was not filtered by `start` and `count` parameters. attr_accessor :total_count - # # The total number of notebooks returned. + # The total number of notebooks returned. attr_accessor :total_filtered_count # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/organization.rb b/lib/datadog_api_client/v1/models/organization.rb index b20fd44f1f6..41b42bb69a4 100644 --- a/lib/datadog_api_client/v1/models/organization.rb +++ b/lib/datadog_api_client/v1/models/organization.rb @@ -23,25 +23,25 @@ class Organization # @!visibility private attr_accessor :_unparsed - # # A JSON array of billing type. + # A JSON array of billing type. attr_accessor :billing - # # Date of the organization creation. + # Date of the organization creation. attr_accessor :created - # # Description of the organization. + # Description of the organization. attr_accessor :description - # # The name of the new child-organization, limited to 32 characters. + # The name of the new child-organization, limited to 32 characters. attr_accessor :name - # # The `public_id` of the organization you are operating within. + # The `public_id` of the organization you are operating within. attr_accessor :public_id - # # A JSON array of settings. + # A JSON array of settings. attr_accessor :settings - # # Subscription definition. + # Subscription definition. attr_accessor :subscription # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/organization_billing.rb b/lib/datadog_api_client/v1/models/organization_billing.rb index cab6b137e0c..0bec5804f4f 100644 --- a/lib/datadog_api_client/v1/models/organization_billing.rb +++ b/lib/datadog_api_client/v1/models/organization_billing.rb @@ -23,7 +23,7 @@ class OrganizationBilling # @!visibility private attr_accessor :_unparsed - # # The type of billing. Only `parent_billing` is supported. + # The type of billing. Only `parent_billing` is supported. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 d3d7daab39c..ad7ea6d2be6 100644 --- a/lib/datadog_api_client/v1/models/organization_create_body.rb +++ b/lib/datadog_api_client/v1/models/organization_create_body.rb @@ -23,13 +23,13 @@ class OrganizationCreateBody # @!visibility private attr_accessor :_unparsed - # # A JSON array of billing type. + # A JSON array of billing type. attr_accessor :billing - # # The name of the new child-organization, limited to 32 characters. + # The name of the new child-organization, limited to 32 characters. attr_accessor :name - # # Subscription definition. + # Subscription definition. attr_accessor :subscription # Attribute mapping from ruby-style variable name to JSON key. 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 2fdd26461f4..7cb4eb66f04 100644 --- a/lib/datadog_api_client/v1/models/organization_create_response.rb +++ b/lib/datadog_api_client/v1/models/organization_create_response.rb @@ -23,16 +23,16 @@ class OrganizationCreateResponse # @!visibility private attr_accessor :_unparsed - # # Datadog API key. + # Datadog API key. attr_accessor :api_key - # # An application key with its associated metadata. + # An application key with its associated metadata. attr_accessor :application_key - # # Create, edit, and manage organizations. + # Create, edit, and manage organizations. attr_accessor :org - # # Create, edit, and disable users. + # Create, edit, and disable users. attr_accessor :user # Attribute mapping from ruby-style variable name to JSON key. 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 dbfa3a966b2..53f33cffa34 100644 --- a/lib/datadog_api_client/v1/models/organization_list_response.rb +++ b/lib/datadog_api_client/v1/models/organization_list_response.rb @@ -23,7 +23,7 @@ class OrganizationListResponse # @!visibility private attr_accessor :_unparsed - # # Array of organization objects. + # Array of organization objects. attr_accessor :orgs # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/organization_response.rb b/lib/datadog_api_client/v1/models/organization_response.rb index 9d50da3fc1b..7a14a0a7bdd 100644 --- a/lib/datadog_api_client/v1/models/organization_response.rb +++ b/lib/datadog_api_client/v1/models/organization_response.rb @@ -23,7 +23,7 @@ class OrganizationResponse # @!visibility private attr_accessor :_unparsed - # # Create, edit, and manage organizations. + # Create, edit, and manage organizations. attr_accessor :org # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/organization_settings.rb b/lib/datadog_api_client/v1/models/organization_settings.rb index e10112f86b0..13dffe1ee43 100644 --- a/lib/datadog_api_client/v1/models/organization_settings.rb +++ b/lib/datadog_api_client/v1/models/organization_settings.rb @@ -23,35 +23,35 @@ class OrganizationSettings # @!visibility private attr_accessor :_unparsed - # # Whether or not the organization users can share widgets outside of Datadog. + # Whether or not the organization users can share widgets outside of Datadog. attr_accessor :private_widget_share - # # Set the boolean property enabled to enable or disable single sign on with SAML. + # Set the boolean property enabled to enable or disable single sign on with SAML. # See the SAML documentation for more information about all SAML settings. attr_accessor :saml - # # The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). + # The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). attr_accessor :saml_autocreate_access_role - # # Has two properties, `enabled` (boolean) and `domains`, which is a list of domains without the @ symbol. + # Has two properties, `enabled` (boolean) and `domains`, which is a list of domains without the @ symbol. attr_accessor :saml_autocreate_users_domains - # # Whether or not SAML can be enabled for this organization. + # Whether or not SAML can be enabled for this organization. attr_accessor :saml_can_be_enabled - # # Identity provider endpoint for SAML authentication. + # Identity provider endpoint for SAML authentication. attr_accessor :saml_idp_endpoint - # # Has one property enabled (boolean). + # Has one property enabled (boolean). attr_accessor :saml_idp_initiated_login - # # Whether or not a SAML identity provider metadata file was provided to the Datadog organization. + # Whether or not a SAML identity provider metadata file was provided to the Datadog organization. attr_accessor :saml_idp_metadata_uploaded - # # URL for SAML logging. + # URL for SAML logging. attr_accessor :saml_login_url - # # Has one property enabled (boolean). + # Has one property enabled (boolean). attr_accessor :saml_strict_mode # Attribute mapping from ruby-style variable name to JSON key. 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 d553c258e13..fc89a3081cb 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml.rb @@ -24,7 +24,7 @@ class OrganizationSettingsSaml # @!visibility private attr_accessor :_unparsed - # # Whether or not SAML is enabled for this organization. + # Whether or not SAML is enabled for this organization. attr_accessor :enabled # Attribute mapping from ruby-style variable name to JSON key. 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 76bd2eb14c7..3a2c3eefc2a 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 @@ -23,10 +23,10 @@ class OrganizationSettingsSamlAutocreateUsersDomains # @!visibility private attr_accessor :_unparsed - # # List of domains where the SAML automated user creation is enabled. + # List of domains where the SAML automated user creation is enabled. attr_accessor :domains - # # Whether or not the automated user creation based on SAML domain is enabled. + # Whether or not the automated user creation based on SAML domain is enabled. attr_accessor :enabled # Attribute mapping from ruby-style variable name to JSON key. 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 1c427e75267..73cdca90dfa 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 @@ -23,7 +23,7 @@ class OrganizationSettingsSamlIdpInitiatedLogin # @!visibility private attr_accessor :_unparsed - # # Whether SAML IdP initiated login is enabled, learn more + # Whether SAML IdP initiated login is enabled, learn more # in the [SAML documentation](https://docs.datadoghq.com/account_management/saml/#idp-initiated-login). attr_accessor :enabled 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 07003603e94..1f4c2649f06 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 @@ -23,7 +23,7 @@ class OrganizationSettingsSamlStrictMode # @!visibility private attr_accessor :_unparsed - # # Whether or not the SAML strict mode is enabled. If true, all users must log in with SAML. + # Whether or not the SAML strict mode is enabled. If true, all users must log in with SAML. # Learn more on the [SAML Strict documentation](https://docs.datadoghq.com/account_management/saml/#saml-strict). attr_accessor :enabled diff --git a/lib/datadog_api_client/v1/models/organization_subscription.rb b/lib/datadog_api_client/v1/models/organization_subscription.rb index 63b6cee7929..aba3772f26c 100644 --- a/lib/datadog_api_client/v1/models/organization_subscription.rb +++ b/lib/datadog_api_client/v1/models/organization_subscription.rb @@ -23,7 +23,7 @@ class OrganizationSubscription # @!visibility private attr_accessor :_unparsed - # # The subscription type. Types available are `trial`, `free`, and `pro`. + # The subscription type. Types available are `trial`, `free`, and `pro`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 1066179298b..6a9f4d0c8c7 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service.rb @@ -23,10 +23,10 @@ class PagerDutyService # @!visibility private attr_accessor :_unparsed - # # Your service key in PagerDuty. + # Your service key in PagerDuty. attr_accessor :service_key - # # Your service name associated with a service key in PagerDuty. + # Your service name associated with a service key in PagerDuty. attr_accessor :service_name # Attribute mapping from ruby-style variable name to JSON key. 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 213dfbde04b..e68b6f60275 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 @@ -23,7 +23,7 @@ class PagerDutyServiceKey # @!visibility private attr_accessor :_unparsed - # # Your service key in PagerDuty. + # Your service key in PagerDuty. attr_accessor :service_key # Attribute mapping from ruby-style variable name to JSON key. 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 b711dc3a65b..357d6b4b4ab 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 @@ -23,7 +23,7 @@ class PagerDutyServiceName # @!visibility private attr_accessor :_unparsed - # # Your service name associated service key in PagerDuty. + # Your service name associated service key in PagerDuty. attr_accessor :service_name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/pagination.rb b/lib/datadog_api_client/v1/models/pagination.rb index e92d82c176c..8ab45c49c91 100644 --- a/lib/datadog_api_client/v1/models/pagination.rb +++ b/lib/datadog_api_client/v1/models/pagination.rb @@ -23,10 +23,10 @@ class Pagination # @!visibility private attr_accessor :_unparsed - # # Total count. + # Total count. attr_accessor :total_count - # # Total count of elements matched by the filter. + # Total count of elements matched by the filter. attr_accessor :total_filtered_count # Attribute mapping from ruby-style variable name to JSON key. 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 01691fc366b..30c3cfaf3e3 100644 --- a/lib/datadog_api_client/v1/models/process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/process_query_definition.rb @@ -23,16 +23,16 @@ class ProcessQueryDefinition # @!visibility private attr_accessor :_unparsed - # # List of processes. + # List of processes. attr_accessor :filter_by - # # Max number of items in the filter list. + # Max number of items in the filter list. attr_accessor :limit - # # Your chosen metric. + # Your chosen metric. attr_accessor :metric - # # Your chosen search term. + # Your chosen search term. attr_accessor :search_by # Attribute mapping from ruby-style variable name to JSON key. 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 af704a72717..7673cf0116d 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 @@ -23,37 +23,37 @@ class QueryValueWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # Whether to use auto-scaling or not. + # Whether to use auto-scaling or not. attr_accessor :autoscale - # # List of custom links. + # List of custom links. attr_accessor :custom_links - # # Display a unit of your choice on the widget. + # Display a unit of your choice on the widget. attr_accessor :custom_unit - # # Number of decimals to show. If not defined, the widget uses the raw value. + # Number of decimals to show. If not defined, the widget uses the raw value. attr_accessor :precision - # # Widget definition. + # Widget definition. attr_accessor :requests - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :text_align - # # Time setting for the widget. + # Time setting for the widget. attr_accessor :time - # # Title of your widget. + # Title of your widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the query value widget. + # Type of the query value widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 595350c0222..8b326512b41 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 @@ -23,49 +23,49 @@ class QueryValueWidgetRequest # @!visibility private attr_accessor :_unparsed - # # Aggregator used for the request. + # Aggregator used for the request. attr_accessor :aggregator - # # The log query. + # The log query. attr_accessor :apm_query - # # The log query. + # The log query. attr_accessor :audit_query - # # List of conditional formats. + # List of conditional formats. attr_accessor :conditional_formats - # # The log query. + # The log query. attr_accessor :event_query - # # List of formulas that operate on queries. **This feature is currently in beta.** + # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas - # # The log query. + # The log query. attr_accessor :log_query - # # The log query. + # The log query. attr_accessor :network_query - # # The process query to use in the widget. + # The process query to use in the widget. attr_accessor :process_query - # # The log query. + # The log query. attr_accessor :profile_metrics_query - # # TODO. + # TODO. attr_accessor :q - # # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** + # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries - # # Timeseries or Scalar response. **This feature is currently in beta.** + # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format - # # The log query. + # The log query. attr_accessor :rum_query - # # The log query. + # The log query. attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. 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 28a4c1cfbe8..a781f1e8220 100644 --- a/lib/datadog_api_client/v1/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v1/models/response_meta_attributes.rb @@ -23,7 +23,7 @@ class ResponseMetaAttributes # @!visibility private attr_accessor :_unparsed - # # Pagination object. + # Pagination object. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. 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 79df5bebf61..38f95b6132d 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_request.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_request.rb @@ -23,34 +23,34 @@ class ScatterPlotRequest # @!visibility private attr_accessor :_unparsed - # # Aggregator used for the request. + # Aggregator used for the request. attr_accessor :aggregator - # # The log query. + # The log query. attr_accessor :apm_query - # # The log query. + # The log query. attr_accessor :event_query - # # The log query. + # The log query. attr_accessor :log_query - # # The log query. + # The log query. attr_accessor :network_query - # # The process query to use in the widget. + # The process query to use in the widget. attr_accessor :process_query - # # The log query. + # The log query. attr_accessor :profile_metrics_query - # # Query definition. + # Query definition. attr_accessor :q - # # The log query. + # The log query. attr_accessor :rum_query - # # The log query. + # The log query. attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. 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 b1fb24f44f9..70190da754e 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 @@ -23,34 +23,34 @@ class ScatterPlotWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # List of groups used for colors. + # List of groups used for colors. attr_accessor :color_by_groups - # # List of custom links. + # List of custom links. attr_accessor :custom_links - # # Widget definition. + # Widget definition. attr_accessor :requests - # # Time setting for the widget. + # Time setting for the widget. attr_accessor :time - # # Title of your widget. + # Title of your widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the scatter plot widget. + # Type of the scatter plot widget. attr_accessor :type - # # Axis controls for the widget. + # Axis controls for the widget. attr_accessor :xaxis - # # Axis controls for the widget. + # Axis controls for the widget. attr_accessor :yaxis # Attribute mapping from ruby-style variable name to JSON key. 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 dfa5f141f1c..7d65bd47a53 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 @@ -23,13 +23,13 @@ class ScatterPlotWidgetDefinitionRequests # @!visibility private attr_accessor :_unparsed - # # Scatterplot request containing formulas and functions. + # Scatterplot request containing formulas and functions. attr_accessor :table - # # Updated scatter plot. + # Updated scatter plot. attr_accessor :x - # # Updated scatter plot. + # Updated scatter plot. attr_accessor :y # Attribute mapping from ruby-style variable name to JSON key. 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 860cc8f2b53..bf4e3a7fb80 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_table_request.rb @@ -23,13 +23,13 @@ class ScatterplotTableRequest # @!visibility private attr_accessor :_unparsed - # # List of Scatterplot formulas that operate on queries. **This feature is currently in beta.** + # List of Scatterplot formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas - # # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** + # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries - # # Timeseries or Scalar response. **This feature is currently in beta.** + # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format # Attribute mapping from ruby-style variable name to JSON key. 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 44631397dfa..bff0510f242 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb @@ -23,13 +23,13 @@ class ScatterplotWidgetFormula # @!visibility private attr_accessor :_unparsed - # # Expression alias. + # Expression alias. attr_accessor :_alias - # # Dimension of the Scatterplot. + # Dimension of the Scatterplot. attr_accessor :dimension - # # String expression built from queries, formulas, and functions. + # String expression built from queries, formulas, and functions. attr_accessor :formula # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/series.rb b/lib/datadog_api_client/v1/models/series.rb index 3ddff0aaa2f..c7141085aab 100644 --- a/lib/datadog_api_client/v1/models/series.rb +++ b/lib/datadog_api_client/v1/models/series.rb @@ -24,22 +24,22 @@ class Series # @!visibility private attr_accessor :_unparsed - # # The name of the host that produced the metric. + # The name of the host that produced the metric. attr_accessor :host - # # If the type of the metric is rate or count, define the corresponding interval. + # If the type of the metric is rate or count, define the corresponding interval. attr_accessor :interval - # # The name of the timeseries. + # The name of the timeseries. attr_accessor :metric - # # Points relating to a metric. All points must be tuples with timestamp and a scalar value (cannot be a string). Timestamps should be in POSIX time in seconds, and cannot be more than ten minutes in the future or more than one hour in the past. + # Points relating to a metric. All points must be tuples with timestamp and a scalar value (cannot be a string). Timestamps should be in POSIX time in seconds, and cannot be more than ten minutes in the future or more than one hour in the past. attr_accessor :points - # # A list of tags associated with the metric. + # A list of tags associated with the metric. attr_accessor :tags - # # The type of the metric either `count`, `gauge`, or `rate`. + # The type of the metric either `count`, `gauge`, or `rate`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/service_check.rb b/lib/datadog_api_client/v1/models/service_check.rb index 83f651449d1..63084f3c48a 100644 --- a/lib/datadog_api_client/v1/models/service_check.rb +++ b/lib/datadog_api_client/v1/models/service_check.rb @@ -23,22 +23,22 @@ class ServiceCheck # @!visibility private attr_accessor :_unparsed - # # The check. + # The check. attr_accessor :check - # # The host name correlated with the check. + # The host name correlated with the check. attr_accessor :host_name - # # Message containing check status. + # Message containing check status. attr_accessor :message - # # The status of a service check. + # The status of a service check. attr_accessor :status - # # Tags related to a check. + # Tags related to a check. attr_accessor :tags - # # Time of check. + # Time of check. attr_accessor :timestamp # Attribute mapping from ruby-style variable name to JSON key. 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 6f53c16a2d0..fd5bd628e5a 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective.rb @@ -24,42 +24,42 @@ class ServiceLevelObjective # @!visibility private attr_accessor :_unparsed - # # Creation timestamp (UNIX time in seconds) + # Creation timestamp (UNIX time in seconds) # # Always included in service level objective responses. attr_accessor :created_at - # # Object describing the creator of the shared element. + # Object describing the creator of the shared element. attr_accessor :creator - # # A user-defined description of the service level objective. + # A user-defined description of the service level objective. # # Always included in service level objective responses (but may be `null`). # Optional in create/update requests. attr_accessor :description - # # A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. + # A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. # # Included in service level objective responses if it is not empty. Optional in # create/update requests for monitor service level objectives, but may only be # used when then length of the `monitor_ids` field is one. attr_accessor :groups - # # A unique identifier for the service level objective object. + # A unique identifier for the service level objective object. # # Always included in service level objective responses. attr_accessor :id - # # Modification timestamp (UNIX time in seconds) + # Modification timestamp (UNIX time in seconds) # # Always included in service level objective responses. attr_accessor :modified_at - # # A list of monitor ids that defines the scope of a monitor service level + # A list of monitor ids that defines the scope of a monitor service level # objective. **Required if type is `monitor`**. attr_accessor :monitor_ids - # # The union of monitor tags for all monitors referenced by the `monitor_ids` + # The union of monitor tags for all monitors referenced by the `monitor_ids` # field. # Always included in service level objective responses for monitor service level # objectives (but may be empty). Ignored in create/update requests. Does not @@ -67,24 +67,24 @@ class ServiceLevelObjective # determined entirely by the `monitor_ids` field). attr_accessor :monitor_tags - # # The name of the service level objective object. + # The name of the service level objective object. attr_accessor :name - # # A metric SLI query. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator + # A metric SLI query. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator # to be used because this will sum up all request counts instead of averaging them, or taking the max or # min of all of those requests. attr_accessor :query - # # A list of tags associated with this service level objective. + # A list of tags associated with this service level objective. # Always included in service level objective responses (but may be empty). # Optional in create/update requests. attr_accessor :tags - # # The thresholds (timeframes and associated targets) for this service level + # The thresholds (timeframes and associated targets) for this service level # objective object. attr_accessor :thresholds - # # The type of the service level objective. + # The type of the service level objective. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 f4dede6197e..a46d4951267 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 @@ -25,10 +25,10 @@ class ServiceLevelObjectiveQuery # @!visibility private attr_accessor :_unparsed - # # A Datadog metric query for total (valid) events. + # A Datadog metric query for total (valid) events. attr_accessor :denominator - # # A Datadog metric query for good events. + # A Datadog metric query for good events. attr_accessor :numerator # Attribute mapping from ruby-style variable name to JSON key. 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 57e87901f91..3074a7d240e 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 @@ -24,41 +24,41 @@ class ServiceLevelObjectiveRequest # @!visibility private attr_accessor :_unparsed - # # A user-defined description of the service level objective. + # A user-defined description of the service level objective. # # Always included in service level objective responses (but may be `null`). # Optional in create/update requests. attr_accessor :description - # # A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. + # A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. # # Included in service level objective responses if it is not empty. Optional in # create/update requests for monitor service level objectives, but may only be # used when then length of the `monitor_ids` field is one. attr_accessor :groups - # # A list of monitor ids that defines the scope of a monitor service level + # A list of monitor ids that defines the scope of a monitor service level # objective. **Required if type is `monitor`**. attr_accessor :monitor_ids - # # The name of the service level objective object. + # The name of the service level objective object. attr_accessor :name - # # A metric SLI query. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator + # A metric SLI query. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator # to be used because this will sum up all request counts instead of averaging them, or taking the max or # min of all of those requests. attr_accessor :query - # # A list of tags associated with this service level objective. + # A list of tags associated with this service level objective. # Always included in service level objective responses (but may be empty). # Optional in create/update requests. attr_accessor :tags - # # The thresholds (timeframes and associated targets) for this service level + # The thresholds (timeframes and associated targets) for this service level # objective object. attr_accessor :thresholds - # # The type of the service level objective. + # The type of the service level objective. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 45cb87b9ad0..bf4d646e0e2 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 @@ -23,25 +23,25 @@ class ServiceMapWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # List of custom links. + # List of custom links. attr_accessor :custom_links - # # Your environment and primary tag (or * if enabled for your account). + # Your environment and primary tag (or * if enabled for your account). attr_accessor :filters - # # The ID of the service you want to map. + # The ID of the service you want to map. attr_accessor :service - # # The title of your widget. + # The title of your widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the service map widget. + # Type of the service map widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 795476a6b9b..b6a8251a662 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 @@ -23,52 +23,52 @@ class ServiceSummaryWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # Number of columns to display. + # Number of columns to display. attr_accessor :display_format - # # APM environment. + # APM environment. attr_accessor :env - # # APM service. + # APM service. attr_accessor :service - # # Whether to show the latency breakdown or not. + # Whether to show the latency breakdown or not. attr_accessor :show_breakdown - # # Whether to show the latency distribution or not. + # Whether to show the latency distribution or not. attr_accessor :show_distribution - # # Whether to show the error metrics or not. + # Whether to show the error metrics or not. attr_accessor :show_errors - # # Whether to show the hits metrics or not. + # Whether to show the hits metrics or not. attr_accessor :show_hits - # # Whether to show the latency metrics or not. + # Whether to show the latency metrics or not. attr_accessor :show_latency - # # Whether to show the resource list or not. + # Whether to show the resource list or not. attr_accessor :show_resource_list - # # Size of the widget. + # Size of the widget. attr_accessor :size_format - # # APM span name. + # APM span name. attr_accessor :span_name - # # Time setting for the widget. + # Time setting for the widget. attr_accessor :time - # # Title of the widget. + # Title of the widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the service summary widget. + # Type of the service summary widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 a02081bebe3..cb7781e472c 100644 --- a/lib/datadog_api_client/v1/models/slack_integration_channel.rb +++ b/lib/datadog_api_client/v1/models/slack_integration_channel.rb @@ -23,10 +23,10 @@ class SlackIntegrationChannel # @!visibility private attr_accessor :_unparsed - # # Configuration options for what is shown in an alert event message. + # Configuration options for what is shown in an alert event message. attr_accessor :display - # # Your channel name. + # Your channel name. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 42a8e5f08b1..bf0397db11b 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 @@ -23,16 +23,16 @@ class SlackIntegrationChannelDisplay # @!visibility private attr_accessor :_unparsed - # # Show the main body of the alert event. + # Show the main body of the alert event. attr_accessor :message - # # Show the list of @-handles in the alert event. + # Show the list of @-handles in the alert event. attr_accessor :notified - # # Show the alert event's snapshot image. + # Show the alert event's snapshot image. attr_accessor :snapshot - # # Show the scopes on which the monitor alerted. + # Show the scopes on which the monitor alerted. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 6829bf5bdd0..68a9cac35d6 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 @@ -23,14 +23,14 @@ class SLOBulkDeleteError # @!visibility private attr_accessor :_unparsed - # # The ID of the service level objective object associated with + # The ID of the service level objective object associated with # this error. attr_accessor :id - # # The error message. + # The error message. attr_accessor :message - # # The timeframe of the threshold associated with this error + # The timeframe of the threshold associated with this error # or "all" if all thresholds are affected. attr_accessor :timeframe 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 cafd22d4c9a..7934c8abf08 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 @@ -28,10 +28,10 @@ class SLOBulkDeleteResponse # @!visibility private attr_accessor :_unparsed - # # An array of service level objective objects. + # An array of service level objective objects. attr_accessor :data - # # Array of errors object returned. + # Array of errors object returned. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. 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 6f6b52bb75b..a0cfdd97053 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 @@ -23,11 +23,11 @@ class SLOBulkDeleteResponseData # @!visibility private attr_accessor :_unparsed - # # An array of service level objective object IDs that indicates + # An array of service level objective object IDs that indicates # which objects that were completely deleted. attr_accessor :deleted - # # An array of service level objective object IDs that indicates + # An array of service level objective object IDs that indicates # which objects that were modified (objects for which at least one # threshold was deleted, but that were not completely deleted). attr_accessor :updated diff --git a/lib/datadog_api_client/v1/models/slo_correction.rb b/lib/datadog_api_client/v1/models/slo_correction.rb index 05d3574ff2a..566b29ecf43 100644 --- a/lib/datadog_api_client/v1/models/slo_correction.rb +++ b/lib/datadog_api_client/v1/models/slo_correction.rb @@ -23,13 +23,13 @@ class SLOCorrection # @!visibility private attr_accessor :_unparsed - # # The attribute object associated with the SLO correction. + # The attribute object associated with the SLO correction. attr_accessor :attributes - # # The ID of the SLO correction. + # The ID of the SLO correction. attr_accessor :id - # # SLO correction resource type. + # SLO correction resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 9ed984a27c9..7f4a669278d 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 @@ -23,10 +23,10 @@ class SLOCorrectionCreateData # @!visibility private attr_accessor :_unparsed - # # The attribute object associated with the SLO correction to be created. + # The attribute object associated with the SLO correction to be created. attr_accessor :attributes - # # SLO correction resource type. + # SLO correction resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 4d5513989e3..9dd5170680b 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 @@ -23,7 +23,7 @@ class SLOCorrectionCreateRequest # @!visibility private attr_accessor :_unparsed - # # The data object associated with the SLO correction to be created. + # The data object associated with the SLO correction to be created. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 98370707b2e..ec9e47f88b1 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 @@ -23,29 +23,29 @@ class SLOCorrectionCreateRequestAttributes # @!visibility private attr_accessor :_unparsed - # # Category the SLO correction belongs to. + # Category the SLO correction belongs to. attr_accessor :category - # # Description of the correction being made. + # Description of the correction being made. attr_accessor :description - # # Length of time (in seconds) for a specified `rrule` recurring SLO correction. + # Length of time (in seconds) for a specified `rrule` recurring SLO correction. attr_accessor :duration - # # Ending time of the correction in epoch seconds. + # Ending time of the correction in epoch seconds. attr_accessor :_end - # # The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections + # The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections # are `FREQ`, `INTERVAL`, `COUNT` and `UNTIL`. attr_accessor :rrule - # # ID of the SLO that this correction will be applied to. + # ID of the SLO that this correction will be applied to. attr_accessor :slo_id - # # Starting time of the correction in epoch seconds. + # Starting time of the correction in epoch seconds. attr_accessor :start - # # The timezone to display in the UI for the correction times (defaults to "UTC"). + # The timezone to display in the UI for the correction times (defaults to "UTC"). attr_accessor :timezone # Attribute mapping from ruby-style variable name to JSON key. 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 96a2cb0752d..dafe8cb5c33 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 @@ -23,10 +23,10 @@ class SLOCorrectionListResponse # @!visibility private attr_accessor :_unparsed - # # The list of of SLO corrections objects. + # The list of of SLO corrections objects. attr_accessor :data - # # Object describing meta attributes of response. + # Object describing meta attributes of response. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 fbff629bac9..1308707f814 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_response.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_response.rb @@ -23,7 +23,7 @@ class SLOCorrectionResponse # @!visibility private attr_accessor :_unparsed - # # The response object of a list of SLO corrections. + # The response object of a list of SLO corrections. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 4c398983735..cfbdb6d572a 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 @@ -23,41 +23,41 @@ class SLOCorrectionResponseAttributes # @!visibility private attr_accessor :_unparsed - # # Category the SLO correction belongs to. + # Category the SLO correction belongs to. attr_accessor :category - # # The epoch timestamp of when the correction was created at + # The epoch timestamp of when the correction was created at attr_accessor :created_at - # # Object describing the creator of the shared element. + # Object describing the creator of the shared element. attr_accessor :creator - # # Description of the correction being made. + # Description of the correction being made. attr_accessor :description - # # Length of time (in seconds) for a specified `rrule` recurring SLO correction. + # Length of time (in seconds) for a specified `rrule` recurring SLO correction. attr_accessor :duration - # # Ending time of the correction in epoch seconds. + # Ending time of the correction in epoch seconds. attr_accessor :_end - # # The epoch timestamp of when the correction was modified at + # The epoch timestamp of when the correction was modified at attr_accessor :modified_at - # # Modifier of the object. + # Modifier of the object. attr_accessor :modifier - # # The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections + # The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections # are `FREQ`, `INTERVAL`, `COUNT` and `UNTIL`. attr_accessor :rrule - # # ID of the SLO that this correction will be applied to. + # ID of the SLO that this correction will be applied to. attr_accessor :slo_id - # # Starting time of the correction in epoch seconds. + # Starting time of the correction in epoch seconds. attr_accessor :start - # # The timezone to display in the UI for the correction times (defaults to "UTC"). + # The timezone to display in the UI for the correction times (defaults to "UTC"). attr_accessor :timezone # Attribute mapping from ruby-style variable name to JSON key. 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 2a20d12fe5e..d34f839bcf5 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 @@ -23,13 +23,13 @@ class SLOCorrectionResponseAttributesModifier # @!visibility private attr_accessor :_unparsed - # # Email of the Modifier. + # Email of the Modifier. attr_accessor :email - # # Handle of the Modifier. + # Handle of the Modifier. attr_accessor :handle - # # Name of the Modifier. + # Name of the Modifier. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 4efd3da376a..44b52e67f7b 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 @@ -23,10 +23,10 @@ class SLOCorrectionUpdateData # @!visibility private attr_accessor :_unparsed - # # The attribute object associated with the SLO correction to be updated. + # The attribute object associated with the SLO correction to be updated. attr_accessor :attributes - # # SLO correction resource type. + # SLO correction resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 d25d07e12fb..1f1f6c07e44 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 @@ -23,7 +23,7 @@ class SLOCorrectionUpdateRequest # @!visibility private attr_accessor :_unparsed - # # The data object associated with the SLO correction to be updated. + # The data object associated with the SLO correction to be updated. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 a6cda9dab1d..d3bbe180310 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 @@ -23,26 +23,26 @@ class SLOCorrectionUpdateRequestAttributes # @!visibility private attr_accessor :_unparsed - # # Category the SLO correction belongs to. + # Category the SLO correction belongs to. attr_accessor :category - # # Description of the correction being made. + # Description of the correction being made. attr_accessor :description - # # Length of time (in seconds) for a specified `rrule` recurring SLO correction. + # Length of time (in seconds) for a specified `rrule` recurring SLO correction. attr_accessor :duration - # # Ending time of the correction in epoch seconds. + # Ending time of the correction in epoch seconds. attr_accessor :_end - # # The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections + # The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections # are `FREQ`, `INTERVAL`, `COUNT` and `UNTIL`. attr_accessor :rrule - # # Starting time of the correction in epoch seconds. + # Starting time of the correction in epoch seconds. attr_accessor :start - # # The timezone to display in the UI for the correction times (defaults to "UTC"). + # The timezone to display in the UI for the correction times (defaults to "UTC"). attr_accessor :timezone # Attribute mapping from ruby-style variable name to JSON key. 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 16a49f95339..30a2a9cdd68 100644 --- a/lib/datadog_api_client/v1/models/slo_delete_response.rb +++ b/lib/datadog_api_client/v1/models/slo_delete_response.rb @@ -23,10 +23,10 @@ class SLODeleteResponse # @!visibility private attr_accessor :_unparsed - # # An array containing the ID of the deleted service level objective object. + # An array containing the ID of the deleted service level objective object. attr_accessor :data - # # An dictionary containing the ID of the SLO as key and a deletion error as value. + # An dictionary containing the ID of the SLO as key and a deletion error as value. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. 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 5305611e3da..1ff9f94c7b9 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics.rb @@ -25,30 +25,30 @@ class SLOHistoryMetrics # @!visibility private attr_accessor :_unparsed - # # A representation of `metric` based SLO time series for the provided queries. + # A representation of `metric` based SLO time series for the provided queries. # This is the same response type from `batch_query` endpoint. attr_accessor :denominator - # # The aggregated query interval for the series data. It's implicit based on the query time window. + # The aggregated query interval for the series data. It's implicit based on the query time window. attr_accessor :interval - # # Optional message if there are specific query issues/warnings. + # Optional message if there are specific query issues/warnings. attr_accessor :message - # # A representation of `metric` based SLO time series for the provided queries. + # A representation of `metric` based SLO time series for the provided queries. # This is the same response type from `batch_query` endpoint. attr_accessor :numerator - # # The combined numerator and denominator query CSV. + # The combined numerator and denominator query CSV. attr_accessor :query - # # The series result type. This mimics `batch_query` response type. + # The series result type. This mimics `batch_query` response type. attr_accessor :res_type - # # The series response version type. This mimics `batch_query` response type. + # The series response version type. This mimics `batch_query` response type. attr_accessor :resp_version - # # An array of query timestamps in EPOCH milliseconds + # An array of query timestamps in EPOCH milliseconds attr_accessor :times # Attribute mapping from ruby-style variable name to JSON key. 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 74cbfdbd55f..47de94dc74e 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 @@ -24,16 +24,16 @@ class SLOHistoryMetricsSeries # @!visibility private attr_accessor :_unparsed - # # Count of submitted metrics. + # Count of submitted metrics. attr_accessor :count - # # Query metadata. + # Query metadata. attr_accessor :metadata - # # Total sum of the query. + # Total sum of the query. attr_accessor :sum - # # The query values for each metric. + # The query values for each metric. attr_accessor :values # Attribute mapping from ruby-style variable name to JSON key. 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 bb7269866a1..3e4d53fa4ac 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 @@ -23,22 +23,22 @@ class SLOHistoryMetricsSeriesMetadata # @!visibility private attr_accessor :_unparsed - # # Query aggregator function. + # Query aggregator function. attr_accessor :aggr - # # Query expression. + # Query expression. attr_accessor :expression - # # Query metric used. + # Query metric used. attr_accessor :metric - # # Query index from original combined query. + # Query index from original combined query. attr_accessor :query_index - # # Query scope. + # Query scope. attr_accessor :scope - # # An array of metric units that contains up to two unit objects. + # An array of metric units that contains up to two unit objects. # For example, bytes represents one unit object and bytes per second represents two unit objects. # If a metric query only has one unit object, the second array element is null. attr_accessor :unit 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 a2869a75dd4..eb6d8b7b3de 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 @@ -23,22 +23,22 @@ class SLOHistoryMetricsSeriesMetadataUnit # @!visibility private attr_accessor :_unparsed - # # The family of metric unit, for example `bytes` is the family for `kibibyte`, `byte`, and `bit` units. + # The family of metric unit, for example `bytes` is the family for `kibibyte`, `byte`, and `bit` units. attr_accessor :family - # # The ID of the metric unit. + # The ID of the metric unit. attr_accessor :id - # # The unit of the metric, for instance `byte`. + # The unit of the metric, for instance `byte`. attr_accessor :name - # # The plural Unit of metric, for instance `bytes`. + # The plural Unit of metric, for instance `bytes`. attr_accessor :plural - # # The scale factor of metric unit, for instance `1.0`. + # The scale factor of metric unit, for instance `1.0`. attr_accessor :scale_factor - # # A shorter and abbreviated version of the metric unit, for instance `B`. + # A shorter and abbreviated version of the metric unit, for instance `B`. attr_accessor :short_name # Attribute mapping from ruby-style variable name to JSON key. 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 7f79dac7ac2..ce7565cae50 100644 --- a/lib/datadog_api_client/v1/models/slo_history_monitor.rb +++ b/lib/datadog_api_client/v1/models/slo_history_monitor.rb @@ -24,41 +24,41 @@ class SLOHistoryMonitor # @!visibility private attr_accessor :_unparsed - # # A mapping of threshold `timeframe` to the remaining error budget. + # A mapping of threshold `timeframe` to the remaining error budget. attr_accessor :error_budget_remaining - # # An array of error objects returned while querying the history data for the service level objective. + # An array of error objects returned while querying the history data for the service level objective. attr_accessor :errors - # # For groups in a grouped SLO, this is the group name. + # For groups in a grouped SLO, this is the group name. attr_accessor :group - # # For `monitor` based SLOs, this includes the aggregated history as arrays that include time series and uptime data where `0=monitor` is in `OK` state and `1=monitor` is in `alert` state. + # For `monitor` based SLOs, this includes the aggregated history as arrays that include time series and uptime data where `0=monitor` is in `OK` state and `1=monitor` is in `alert` state. attr_accessor :history - # # For `monitor` based SLOs, this is the last modified timestamp in epoch seconds of the monitor. + # For `monitor` based SLOs, this is the last modified timestamp in epoch seconds of the monitor. attr_accessor :monitor_modified - # # For `monitor` based SLOs, this describes the type of monitor. + # For `monitor` based SLOs, this describes the type of monitor. attr_accessor :monitor_type - # # For groups in a grouped SLO, this is the group name. For monitors in a multi-monitor SLO, this is the monitor name. + # For groups in a grouped SLO, this is the group name. For monitors in a multi-monitor SLO, this is the monitor name. attr_accessor :name - # # The amount of decimal places the SLI value is accurate to for the given from `&&` to timestamp. Use `span_precision` instead. + # The amount of decimal places the SLI value is accurate to for the given from `&&` to timestamp. Use `span_precision` instead. attr_accessor :precision - # # For `monitor` based SLOs, when `true` this indicates that a replay is in progress to give an accurate uptime + # For `monitor` based SLOs, when `true` this indicates that a replay is in progress to give an accurate uptime # calculation. attr_accessor :preview - # # The current SLI value of the SLO over the history window. + # The current SLI value of the SLO over the history window. attr_accessor :sli_value - # # The amount of decimal places the SLI value is accurate to for the given from `&&` to timestamp. + # The amount of decimal places the SLI value is accurate to for the given from `&&` to timestamp. attr_accessor :span_precision - # # Use `sli_value` instead. + # Use `sli_value` instead. attr_accessor :uptime # Attribute mapping from ruby-style variable name to JSON key. 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 7fd19285ec2..90a279c9116 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response.rb @@ -23,10 +23,10 @@ class SLOHistoryResponse # @!visibility private attr_accessor :_unparsed - # # An array of service level objective objects. + # An array of service level objective objects. attr_accessor :data - # # A list of errors while querying the history data for the service level objective. + # A list of errors while querying the history data for the service level objective. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. 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 9a4fb5e4525..e3c86780a98 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 @@ -23,43 +23,43 @@ class SLOHistoryResponseData # @!visibility private attr_accessor :_unparsed - # # The `from` timestamp in epoch seconds. + # The `from` timestamp in epoch seconds. attr_accessor :from_ts - # # For `metric` based SLOs where the query includes a group-by clause, this represents the list of grouping parameters. + # For `metric` based SLOs where the query includes a group-by clause, this represents the list of grouping parameters. # # This is not included in responses for `monitor` based SLOs. attr_accessor :group_by - # # For grouped SLOs, this represents SLI data for specific groups. + # For grouped SLOs, this represents SLI data for specific groups. # # This is not included in the responses for `metric` based SLOs. attr_accessor :groups - # # For multi-monitor SLOs, this represents SLI data for specific monitors. + # For multi-monitor SLOs, this represents SLI data for specific monitors. # # This is not included in the responses for `metric` based SLOs. attr_accessor :monitors - # # An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI value. + # An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI value. # This can also represent the SLI value for a specific monitor in multi-monitor SLOs, or a group in grouped SLOs. attr_accessor :overall - # # A `metric` based SLO history response. + # A `metric` based SLO history response. # # This is not included in responses for `monitor` based SLOs. attr_accessor :series - # # mapping of string timeframe to the SLO threshold. + # mapping of string timeframe to the SLO threshold. attr_accessor :thresholds - # # The `to` timestamp in epoch seconds. + # The `to` timestamp in epoch seconds. attr_accessor :to_ts - # # The type of the service level objective. + # The type of the service level objective. attr_accessor :type - # # A numeric representation of the type of the service level objective (`0` for + # A numeric representation of the type of the service level objective (`0` for # monitor, `1` for metric). Always included in service level objective responses. # Ignored in create/update requests. attr_accessor :type_id 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 ee047ff173a..9111814fd4a 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 @@ -23,7 +23,7 @@ class SLOHistoryResponseError # @!visibility private attr_accessor :_unparsed - # # Human readable error. + # Human readable error. attr_accessor :error # Attribute mapping from ruby-style variable name to JSON key. 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 dbdefd79e1d..0d73f2dd958 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 @@ -23,10 +23,10 @@ class SLOHistoryResponseErrorWithType # @!visibility private attr_accessor :_unparsed - # # A message with more details about the error. + # A message with more details about the error. attr_accessor :error_message - # # Type of the error. + # Type of the error. attr_accessor :error_type # Attribute mapping from ruby-style variable name to JSON key. 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 d03b49cd114..79b8ede6bf7 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 @@ -24,41 +24,41 @@ class SLOHistorySLIData # @!visibility private attr_accessor :_unparsed - # # A mapping of threshold `timeframe` to the remaining error budget. + # A mapping of threshold `timeframe` to the remaining error budget. attr_accessor :error_budget_remaining - # # An array of error objects returned while querying the history data for the service level objective. + # An array of error objects returned while querying the history data for the service level objective. attr_accessor :errors - # # For groups in a grouped SLO, this is the group name. + # For groups in a grouped SLO, this is the group name. attr_accessor :group - # # For `monitor` based SLOs, this includes the aggregated history as arrays that include time series and uptime data where `0=monitor` is in `OK` state and `1=monitor` is in `alert` state. + # For `monitor` based SLOs, this includes the aggregated history as arrays that include time series and uptime data where `0=monitor` is in `OK` state and `1=monitor` is in `alert` state. attr_accessor :history - # # For `monitor` based SLOs, this is the last modified timestamp in epoch seconds of the monitor. + # For `monitor` based SLOs, this is the last modified timestamp in epoch seconds of the monitor. attr_accessor :monitor_modified - # # For `monitor` based SLOs, this describes the type of monitor. + # For `monitor` based SLOs, this describes the type of monitor. attr_accessor :monitor_type - # # For groups in a grouped SLO, this is the group name. For monitors in a multi-monitor SLO, this is the monitor name. + # For groups in a grouped SLO, this is the group name. For monitors in a multi-monitor SLO, this is the monitor name. attr_accessor :name - # # A mapping of threshold `timeframe` to number of accurate decimals, regardless of the from && to timestamp. + # A mapping of threshold `timeframe` to number of accurate decimals, regardless of the from && to timestamp. attr_accessor :precision - # # For `monitor` based SLOs, when `true` this indicates that a replay is in progress to give an accurate uptime + # For `monitor` based SLOs, when `true` this indicates that a replay is in progress to give an accurate uptime # calculation. attr_accessor :preview - # # The current SLI value of the SLO over the history window. + # The current SLI value of the SLO over the history window. attr_accessor :sli_value - # # The amount of decimal places the SLI value is accurate to for the given from `&&` to timestamp. + # The amount of decimal places the SLI value is accurate to for the given from `&&` to timestamp. attr_accessor :span_precision - # # Use `sli_value` instead. + # Use `sli_value` instead. attr_accessor :uptime # Attribute mapping from ruby-style variable name to JSON key. 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 7769c5e2061..6fc669163ca 100644 --- a/lib/datadog_api_client/v1/models/slo_list_response.rb +++ b/lib/datadog_api_client/v1/models/slo_list_response.rb @@ -23,14 +23,14 @@ class SLOListResponse # @!visibility private attr_accessor :_unparsed - # # An array of service level objective objects. + # An array of service level objective objects. attr_accessor :data - # # An array of error messages. Each endpoint documents how/whether this field is + # An array of error messages. Each endpoint documents how/whether this field is # used. attr_accessor :errors - # # The metadata object containing additional information about the list of SLOs. + # The metadata object containing additional information about the list of SLOs. attr_accessor :metadata # Attribute mapping from ruby-style variable name to JSON key. 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 896ff45a706..82e9fc8fbe0 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 @@ -23,7 +23,7 @@ class SLOListResponseMetadata # @!visibility private attr_accessor :_unparsed - # # The object containing information about the pages of the list of SLOs. + # The object containing information about the pages of the list of SLOs. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. 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 0449109eb75..27920000352 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 @@ -23,10 +23,10 @@ class SLOListResponseMetadataPage # @!visibility private attr_accessor :_unparsed - # # The total number of resources that could be retrieved ignoring the parameters and filters in the request. + # The total number of resources that could be retrieved ignoring the parameters and filters in the request. attr_accessor :total_count - # # 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. + # 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 # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/slo_response.rb b/lib/datadog_api_client/v1/models/slo_response.rb index 5ef123ea7ff..f1765c4c606 100644 --- a/lib/datadog_api_client/v1/models/slo_response.rb +++ b/lib/datadog_api_client/v1/models/slo_response.rb @@ -23,11 +23,11 @@ class SLOResponse # @!visibility private attr_accessor :_unparsed - # # A service level objective object includes a service level indicator, thresholds + # A service level objective object includes a service level indicator, thresholds # for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). attr_accessor :data - # # An array of error messages. Each endpoint documents how/whether this field is + # An array of error messages. Each endpoint documents how/whether this field is # used. attr_accessor :errors 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 5d11d55cc1c..458b6191727 100644 --- a/lib/datadog_api_client/v1/models/slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_response_data.rb @@ -24,45 +24,45 @@ class SLOResponseData # @!visibility private attr_accessor :_unparsed - # # A list of SLO monitors IDs that reference this SLO. This field is returned only when `with_configured_alert_ids` parameter is true in query. + # A list of SLO monitors IDs that reference this SLO. This field is returned only when `with_configured_alert_ids` parameter is true in query. attr_accessor :configured_alert_ids - # # Creation timestamp (UNIX time in seconds) + # Creation timestamp (UNIX time in seconds) # # Always included in service level objective responses. attr_accessor :created_at - # # Object describing the creator of the shared element. + # Object describing the creator of the shared element. attr_accessor :creator - # # A user-defined description of the service level objective. + # A user-defined description of the service level objective. # # Always included in service level objective responses (but may be `null`). # Optional in create/update requests. attr_accessor :description - # # A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. + # A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective. # # Included in service level objective responses if it is not empty. Optional in # create/update requests for monitor service level objectives, but may only be # used when then length of the `monitor_ids` field is one. attr_accessor :groups - # # A unique identifier for the service level objective object. + # A unique identifier for the service level objective object. # # Always included in service level objective responses. attr_accessor :id - # # Modification timestamp (UNIX time in seconds) + # Modification timestamp (UNIX time in seconds) # # Always included in service level objective responses. attr_accessor :modified_at - # # A list of monitor ids that defines the scope of a monitor service level + # A list of monitor ids that defines the scope of a monitor service level # objective. **Required if type is `monitor`**. attr_accessor :monitor_ids - # # The union of monitor tags for all monitors referenced by the `monitor_ids` + # The union of monitor tags for all monitors referenced by the `monitor_ids` # field. # Always included in service level objective responses for monitor service level # objectives (but may be empty). Ignored in create/update requests. Does not @@ -70,24 +70,24 @@ class SLOResponseData # determined entirely by the `monitor_ids` field). attr_accessor :monitor_tags - # # The name of the service level objective object. + # The name of the service level objective object. attr_accessor :name - # # A metric SLI query. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator + # A metric SLI query. **Required if type is `metric`**. Note that Datadog only allows the sum by aggregator # to be used because this will sum up all request counts instead of averaging them, or taking the max or # min of all of those requests. attr_accessor :query - # # A list of tags associated with this service level objective. + # A list of tags associated with this service level objective. # Always included in service level objective responses (but may be empty). # Optional in create/update requests. attr_accessor :tags - # # The thresholds (timeframes and associated targets) for this service level + # The thresholds (timeframes and associated targets) for this service level # objective object. attr_accessor :thresholds - # # The type of the service level objective. + # The type of the service level objective. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/slo_threshold.rb b/lib/datadog_api_client/v1/models/slo_threshold.rb index f0c90ef21cd..1b964c5d6cb 100644 --- a/lib/datadog_api_client/v1/models/slo_threshold.rb +++ b/lib/datadog_api_client/v1/models/slo_threshold.rb @@ -23,24 +23,24 @@ class SLOThreshold # @!visibility private attr_accessor :_unparsed - # # The target value for the service level indicator within the corresponding + # The target value for the service level indicator within the corresponding # timeframe. attr_accessor :target - # # A string representation of the target that indicates its precision. + # A string representation of the target that indicates its precision. # It uses trailing zeros to show significant decimal places (for example `98.00`). # # Always included in service level objective responses. Ignored in # create/update requests. attr_accessor :target_display - # # The SLO time window options. + # The SLO time window options. attr_accessor :timeframe - # # The warning value for the service level objective. + # The warning value for the service level objective. attr_accessor :warning - # # A string representation of the warning target (see the description of + # A string representation of the warning target (see the description of # the `target_display` field for details). # # Included in service level objective responses if a warning target exists. 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 94231daf866..ae9b06d3cca 100644 --- a/lib/datadog_api_client/v1/models/slo_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/slo_widget_definition.rb @@ -23,34 +23,34 @@ class SLOWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # Defined global time target. + # Defined global time target. attr_accessor :global_time_target - # # Defined error budget. + # Defined error budget. attr_accessor :show_error_budget - # # ID of the SLO displayed. + # ID of the SLO displayed. attr_accessor :slo_id - # # Times being monitored. + # Times being monitored. attr_accessor :time_windows - # # Title of the widget. + # Title of the widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the SLO widget. + # Type of the SLO widget. attr_accessor :type - # # Define how you want the SLO to be displayed. + # Define how you want the SLO to be displayed. attr_accessor :view_mode - # # Type of view displayed by the widget. + # Type of view displayed by the widget. attr_accessor :view_type # Attribute mapping from ruby-style variable name to JSON key. 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 16f5759048f..96baa09462a 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb @@ -23,31 +23,31 @@ class SunburstWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # List of custom links. + # List of custom links. attr_accessor :custom_links - # # Show the total value in this widget. + # Show the total value in this widget. attr_accessor :hide_total - # # Configuration of the legend. + # Configuration of the legend. attr_accessor :legend - # # List of sunburst widget requests. + # List of sunburst widget requests. attr_accessor :requests - # # Time setting for the widget. + # Time setting for the widget. attr_accessor :time - # # Title of your widget. + # Title of your widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the Sunburst widget. + # Type of the Sunburst widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 42da43e6fb8..578ebc342ac 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 @@ -23,13 +23,13 @@ class SunburstWidgetLegendInlineAutomatic # @!visibility private attr_accessor :_unparsed - # # Whether to hide the percentages of the groups. + # Whether to hide the percentages of the groups. attr_accessor :hide_percent - # # Whether to hide the values of the groups. + # Whether to hide the values of the groups. attr_accessor :hide_value - # # Whether to show the legend inline or let it be automatically generated. + # Whether to show the legend inline or let it be automatically generated. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 b1ca32ebdfe..08f7b3d60cd 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 @@ -23,7 +23,7 @@ class SunburstWidgetLegendTable # @!visibility private attr_accessor :_unparsed - # # Whether or not to show a table legend. + # Whether or not to show a table legend. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3bac9bbb6f2..a1ecac6527d 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_request.rb @@ -23,43 +23,43 @@ class SunburstWidgetRequest # @!visibility private attr_accessor :_unparsed - # # The log query. + # The log query. attr_accessor :apm_query - # # The log query. + # The log query. attr_accessor :audit_query - # # The log query. + # The log query. attr_accessor :event_query - # # List of formulas that operate on queries. **This feature is currently in beta.** + # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas - # # The log query. + # The log query. attr_accessor :log_query - # # The log query. + # The log query. attr_accessor :network_query - # # The process query to use in the widget. + # The process query to use in the widget. attr_accessor :process_query - # # The log query. + # The log query. attr_accessor :profile_metrics_query - # # Widget query. + # Widget query. attr_accessor :q - # # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** + # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries - # # Timeseries or Scalar response. **This feature is currently in beta.** + # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format - # # The log query. + # The log query. attr_accessor :rum_query - # # The log query. + # The log query. attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/synthetics_api_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_step.rb index 5af578e56b4..68ebde8095f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_step.rb @@ -23,29 +23,29 @@ class SyntheticsAPIStep # @!visibility private attr_accessor :_unparsed - # # Determines whether or not to continue with test if this step fails. + # Determines whether or not to continue with test if this step fails. attr_accessor :allow_failure - # # Array of assertions used for the test. + # Array of assertions used for the test. attr_accessor :assertions - # # Array of values to parse and save as variables from the response. + # Array of values to parse and save as variables from the response. attr_accessor :extracted_values - # # Determines whether or not to consider the entire test as failed if this step fails. + # Determines whether or not to consider the entire test as failed if this step fails. # Can be used only if `allowFailure` is `true`. attr_accessor :is_critical - # # The name of the step. + # The name of the step. attr_accessor :name - # # Object describing the Synthetic test request. + # Object describing the Synthetic test request. attr_accessor :request - # # Object describing the retry strategy to apply to a Synthetic test. + # Object describing the retry strategy to apply to a Synthetic test. attr_accessor :_retry - # # The subtype of the Synthetic multistep API test step, currently only supporting `http`. + # The subtype of the Synthetic multistep API test step, currently only supporting `http`. attr_accessor :subtype # Attribute mapping from ruby-style variable name to JSON key. 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 d9ae3138fd2..7d6f410d212 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test.rb @@ -23,39 +23,39 @@ class SyntheticsAPITest # @!visibility private attr_accessor :_unparsed - # # Configuration object for a Synthetic API test. + # Configuration object for a Synthetic API test. attr_accessor :config - # # Array of locations used to run the test. + # Array of locations used to run the test. attr_accessor :locations - # # Notification message associated with the test. + # Notification message associated with the test. attr_accessor :message - # # The associated monitor ID. + # The associated monitor ID. attr_accessor :monitor_id - # # Name of the test. + # Name of the test. attr_accessor :name - # # Object describing the extra options for a Synthetic test. + # Object describing the extra options for a Synthetic test. attr_accessor :options - # # The public ID for the test. + # The public ID for the test. attr_accessor :public_id - # # Define whether you want to start (`live`) or pause (`paused`) a + # Define whether you want to start (`live`) or pause (`paused`) a # Synthetic test. attr_accessor :status - # # The subtype of the Synthetic API test, `http`, `ssl`, `tcp`, + # The subtype of the Synthetic API test, `http`, `ssl`, `tcp`, # `dns`, `icmp`, `udp`, `websocket` or `multi`. attr_accessor :subtype - # # Array of tags attached to the test. + # Array of tags attached to the test. attr_accessor :tags - # # Type of the Synthetic test, `api`. + # Type of the Synthetic test, `api`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 c8f9845e8cc..26df33b2c62 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 @@ -23,16 +23,16 @@ class SyntheticsAPITestConfig # @!visibility private attr_accessor :_unparsed - # # Array of assertions used for the test. Required for single API tests. + # Array of assertions used for the test. Required for single API tests. attr_accessor :assertions - # # Array of variables used for the test. + # Array of variables used for the test. attr_accessor :config_variables - # # Object describing the Synthetic test request. + # Object describing the Synthetic test request. attr_accessor :request - # # When the test subtype is `multi`, the steps of the test. + # When the test subtype is `multi`, the steps of the test. attr_accessor :steps # Attribute mapping from ruby-style variable name to JSON key. 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 5d20d53a625..5d5ece4fd16 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 @@ -23,31 +23,31 @@ class SyntheticsAPITestResultData # @!visibility private attr_accessor :_unparsed - # # Object describing the SSL certificate used for a Synthetic test. + # Object describing the SSL certificate used for a Synthetic test. attr_accessor :cert - # # Status of a Synthetic test. + # Status of a Synthetic test. attr_accessor :event_type - # # The API test failure details. + # The API test failure details. attr_accessor :failure - # # The API test HTTP status code. + # The API test HTTP status code. attr_accessor :http_status_code - # # Request header object used for the API test. + # Request header object used for the API test. attr_accessor :request_headers - # # Response body returned for the API test. + # Response body returned for the API test. attr_accessor :response_body - # # Response headers returned for the API test. + # Response headers returned for the API test. attr_accessor :response_headers - # # Global size in byte of the API test response. + # Global size in byte of the API test response. attr_accessor :response_size - # # Object containing all metrics and their values collected for a Synthetic API test. + # Object containing all metrics and their values collected for a Synthetic API test. # Learn more about those metrics in [Synthetics documentation](https://docs.datadoghq.com/synthetics/#metrics). attr_accessor :timings 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 3cd0b9dc7fc..01c3c20b092 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 @@ -23,10 +23,10 @@ class SyntheticsApiTestResultFailure # @!visibility private attr_accessor :_unparsed - # # Error code that can be returned by a Synthetic test. + # Error code that can be returned by a Synthetic test. attr_accessor :code - # # The API test error message. + # The API test error message. attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. 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 6facb74db86..ac6c731f69f 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 @@ -23,25 +23,25 @@ class SyntheticsAPITestResultFull # @!visibility private attr_accessor :_unparsed - # # Object describing the API test configuration. + # Object describing the API test configuration. attr_accessor :check - # # When the API test was conducted. + # When the API test was conducted. attr_accessor :check_time - # # Version of the API test used. + # Version of the API test used. attr_accessor :check_version - # # Locations for which to query the API test results. + # Locations for which to query the API test results. attr_accessor :probe_dc - # # Object containing results for your Synthetic API test. + # Object containing results for your Synthetic API test. attr_accessor :result - # # ID of the API test result. + # ID of the API test result. attr_accessor :result_id - # # The status of your Synthetic monitor. + # The status of your Synthetic monitor. # * `O` for not triggered # * `1` for triggered # * `2` for no data 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 cd172b64fea..adf839dcf89 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 @@ -23,7 +23,7 @@ class SyntheticsAPITestResultFullCheck # @!visibility private attr_accessor :_unparsed - # # Configuration object for a Synthetic test. + # Configuration object for a Synthetic test. attr_accessor :config # Attribute mapping from ruby-style variable name to JSON key. 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 8e40ac9e179..41c6d5425dc 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 @@ -23,19 +23,19 @@ class SyntheticsAPITestResultShort # @!visibility private attr_accessor :_unparsed - # # Last time the API test was performed. + # Last time the API test was performed. attr_accessor :check_time - # # Location from which the API test was performed. + # Location from which the API test was performed. attr_accessor :probe_dc - # # Result of the last API test run. + # Result of the last API test run. attr_accessor :result - # # ID of the API test result. + # ID of the API test result. attr_accessor :result_id - # # The status of your Synthetic monitor. + # The status of your Synthetic monitor. # * `O` for not triggered # * `1` for triggered # * `2` for no data 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 a5a98960be8..658f832c40a 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 @@ -23,10 +23,10 @@ class SyntheticsAPITestResultShortResult # @!visibility private attr_accessor :_unparsed - # # Describes if the test run has passed or failed. + # Describes if the test run has passed or failed. attr_accessor :passed - # # Object containing all metrics and their values collected for a Synthetic API test. + # Object containing all metrics and their values collected for a Synthetic API test. # Learn more about those metrics in [Synthetics documentation](https://docs.datadoghq.com/synthetics/#metrics). attr_accessor :timings 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 26b071832ca..628baf94f63 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 @@ -23,16 +23,16 @@ class SyntheticsAssertionJSONPathTarget # @!visibility private attr_accessor :_unparsed - # # Assertion operator to apply. + # Assertion operator to apply. attr_accessor :operator - # # The associated assertion property. + # The associated assertion property. attr_accessor :property - # # Composed target for `validatesJSONPath` operator. + # Composed target for `validatesJSONPath` operator. attr_accessor :target - # # Type of the assertion. + # Type of the assertion. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3df7ceb5cfd..2bbb5ed4c4d 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 @@ -23,13 +23,13 @@ class SyntheticsAssertionJSONPathTargetTarget # @!visibility private attr_accessor :_unparsed - # # The JSON path to assert. + # The JSON path to assert. attr_accessor :json_path - # # The specific operator to use on the path. + # The specific operator to use on the path. attr_accessor :operator - # # The path target value to compare to. + # The path target value to compare to. attr_accessor :target_value # Attribute mapping from ruby-style variable name to JSON key. 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 9f88d89c247..df16395e72d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb @@ -23,16 +23,16 @@ class SyntheticsAssertionTarget # @!visibility private attr_accessor :_unparsed - # # Assertion operator to apply. + # Assertion operator to apply. attr_accessor :operator - # # The associated assertion property. + # The associated assertion property. attr_accessor :property - # # Value used by the operator. + # Value used by the operator. attr_accessor :target - # # Type of the assertion. + # Type of the assertion. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3d1a4dc53a0..675357de521 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 @@ -23,19 +23,19 @@ class SyntheticsBasicAuthNTLM # @!visibility private attr_accessor :_unparsed - # # Domain for the authentication to use when performing the test. + # Domain for the authentication to use when performing the test. attr_accessor :domain - # # Password for the authentication to use when performing the test. + # Password for the authentication to use when performing the test. attr_accessor :password - # # The type of authentication to use when performing the test. + # The type of authentication to use when performing the test. attr_accessor :type - # # Username for the authentication to use when performing the test. + # Username for the authentication to use when performing the test. attr_accessor :username - # # Workstation for the authentication to use when performing the test. + # Workstation for the authentication to use when performing the test. attr_accessor :workstation # Attribute mapping from ruby-style variable name to JSON key. 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 162991aed39..97cb8bd66c2 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 @@ -23,22 +23,22 @@ class SyntheticsBasicAuthSigv4 # @!visibility private attr_accessor :_unparsed - # # Access key for the `SIGV4` authentication. + # Access key for the `SIGV4` authentication. attr_accessor :access_key - # # Region for the `SIGV4` authentication. + # Region for the `SIGV4` authentication. attr_accessor :region - # # Secret key for the `SIGV4` authentication. + # Secret key for the `SIGV4` authentication. attr_accessor :secret_key - # # Service name for the `SIGV4` authentication. + # Service name for the `SIGV4` authentication. attr_accessor :service_name - # # Session token for the `SIGV4` authentication. + # Session token for the `SIGV4` authentication. attr_accessor :session_token - # # The type of authentication to use when performing the test. + # The type of authentication to use when performing the test. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3af8bbc46af..c8a59e38483 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 @@ -23,13 +23,13 @@ class SyntheticsBasicAuthWeb # @!visibility private attr_accessor :_unparsed - # # Password to use for the basic authentication. + # Password to use for the basic authentication. attr_accessor :password - # # The type of basic authentication to use when performing the test. + # The type of basic authentication to use when performing the test. attr_accessor :type - # # Username to use for the basic authentication. + # Username to use for the basic authentication. attr_accessor :username # Attribute mapping from ruby-style variable name to JSON key. 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 960b69eca7a..21077cce653 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_details.rb @@ -23,7 +23,7 @@ class SyntheticsBatchDetails # @!visibility private attr_accessor :_unparsed - # # Wrapper object that contains the details of a batch. + # Wrapper object that contains the details of a batch. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 a995163b3bc..155de247a78 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 @@ -23,13 +23,13 @@ class SyntheticsBatchDetailsData # @!visibility private attr_accessor :_unparsed - # # Metadata for the Synthetics tests run. + # Metadata for the Synthetics tests run. attr_accessor :metadata - # # List of results for the batch. + # List of results for the batch. attr_accessor :results - # # Determines whether or not the batch has passed, failed, or is in progress. + # Determines whether or not the batch has passed, failed, or is in progress. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. 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 e5e2159c290..6ebf8b67798 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb @@ -23,34 +23,34 @@ class SyntheticsBatchResult # @!visibility private attr_accessor :_unparsed - # # The device ID. + # The device ID. attr_accessor :device - # # Total duration in millisecond of the test. + # Total duration in millisecond of the test. attr_accessor :duration - # # Execution rule for a Synthetics test. + # Execution rule for a Synthetics test. attr_accessor :execution_rule - # # Name of the location. + # Name of the location. attr_accessor :location - # # The ID of the result to get. + # The ID of the result to get. attr_accessor :result_id - # # Total duration in millisecond of the test. + # Total duration in millisecond of the test. attr_accessor :retries - # # Determines whether or not the batch has passed, failed, or is in progress. + # Determines whether or not the batch has passed, failed, or is in progress. attr_accessor :status - # # Name of the test. + # Name of the test. attr_accessor :test_name - # # The public ID of the Synthetic test. + # The public ID of the Synthetic test. attr_accessor :test_public_id - # # Type of the Synthetic test, either `api` or `browser`. + # Type of the Synthetic test, either `api` or `browser`. attr_accessor :test_type # Attribute mapping from ruby-style variable name to JSON key. 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 65b7735dec0..5465c7f4d3a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_error.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_error.rb @@ -23,16 +23,16 @@ class SyntheticsBrowserError # @!visibility private attr_accessor :_unparsed - # # Description of the error. + # Description of the error. attr_accessor :description - # # Name of the error. + # Name of the error. attr_accessor :name - # # Status Code of the error. + # Status Code of the error. attr_accessor :status - # # Error type returned by a browser test. + # Error type returned by a browser test. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 e5507de4728..071ef51d7ea 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb @@ -23,38 +23,38 @@ class SyntheticsBrowserTest # @!visibility private attr_accessor :_unparsed - # # Configuration object for a Synthetic browser test. + # Configuration object for a Synthetic browser test. attr_accessor :config - # # Array of locations used to run the test. + # Array of locations used to run the test. attr_accessor :locations - # # Notification message associated with the test. Message can either be text or an empty string. + # Notification message associated with the test. Message can either be text or an empty string. attr_accessor :message - # # The associated monitor ID. + # The associated monitor ID. attr_accessor :monitor_id - # # Name of the test. + # Name of the test. attr_accessor :name - # # Object describing the extra options for a Synthetic test. + # Object describing the extra options for a Synthetic test. attr_accessor :options - # # The public ID of the test. + # The public ID of the test. attr_accessor :public_id - # # Define whether you want to start (`live`) or pause (`paused`) a + # Define whether you want to start (`live`) or pause (`paused`) a # Synthetic test. attr_accessor :status - # # The steps of the test. + # The steps of the test. attr_accessor :steps - # # Array of tags attached to the test. + # Array of tags attached to the test. attr_accessor :tags - # # Type of the Synthetic test, `browser`. + # Type of the Synthetic test, `browser`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 35c456fe171..620f854c734 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 @@ -23,19 +23,19 @@ class SyntheticsBrowserTestConfig # @!visibility private attr_accessor :_unparsed - # # Array of assertions used for the test. + # Array of assertions used for the test. attr_accessor :assertions - # # Array of variables used for the test. + # Array of variables used for the test. attr_accessor :config_variables - # # Object describing the Synthetic test request. + # Object describing the Synthetic test request. attr_accessor :request - # # Cookies to be used for the request, using the [Set-Cookie](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) syntax. + # Cookies to be used for the request, using the [Set-Cookie](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) syntax. attr_accessor :set_cookie - # # Array of variables used for the test steps. + # Array of variables used for the test steps. attr_accessor :variables # Attribute mapping from ruby-style variable name to JSON key. 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 93fb3f9554c..a2e5b88be59 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 @@ -23,40 +23,40 @@ class SyntheticsBrowserTestResultData # @!visibility private attr_accessor :_unparsed - # # Type of browser device used for the browser test. + # Type of browser device used for the browser test. attr_accessor :browser_type - # # Browser version used for the browser test. + # Browser version used for the browser test. attr_accessor :browser_version - # # Object describing the device used to perform the Synthetic test. + # Object describing the device used to perform the Synthetic test. attr_accessor :device - # # Global duration in second of the browser test. + # Global duration in second of the browser test. attr_accessor :duration - # # Error returned for the browser test. + # Error returned for the browser test. attr_accessor :error - # # The browser test failure details. + # The browser test failure details. attr_accessor :failure - # # Whether or not the browser test was conducted. + # Whether or not the browser test was conducted. attr_accessor :passed - # # The amount of email received during the browser test. + # The amount of email received during the browser test. attr_accessor :received_email_count - # # Starting URL for the browser test. + # Starting URL for the browser test. attr_accessor :start_url - # # Array containing the different browser test steps. + # Array containing the different browser test steps. attr_accessor :step_details - # # Whether or not a thumbnail is associated with the browser test. + # Whether or not a thumbnail is associated with the browser test. attr_accessor :thumbnails_bucket_key - # # Time in second to wait before the browser test starts after + # Time in second to wait before the browser test starts after # reaching the start URL. attr_accessor :time_to_interactive 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 c080f5709cc..676bf08f318 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 @@ -23,10 +23,10 @@ class SyntheticsBrowserTestResultFailure # @!visibility private attr_accessor :_unparsed - # # Error code that can be returned by a Synthetic test. + # Error code that can be returned by a Synthetic test. attr_accessor :code - # # The browser test error message. + # The browser test error message. attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. 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 b898fe54727..2d7be43327d 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 @@ -23,25 +23,25 @@ class SyntheticsBrowserTestResultFull # @!visibility private attr_accessor :_unparsed - # # Object describing the browser test configuration. + # Object describing the browser test configuration. attr_accessor :check - # # When the browser test was conducted. + # When the browser test was conducted. attr_accessor :check_time - # # Version of the browser test used. + # Version of the browser test used. attr_accessor :check_version - # # Location from which the browser test was performed. + # Location from which the browser test was performed. attr_accessor :probe_dc - # # Object containing results for your Synthetic browser test. + # Object containing results for your Synthetic browser test. attr_accessor :result - # # ID of the browser test result. + # ID of the browser test result. attr_accessor :result_id - # # The status of your Synthetic monitor. + # The status of your Synthetic monitor. # * `O` for not triggered # * `1` for triggered # * `2` for no data 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 b371d1d3524..a305a27378f 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 @@ -23,7 +23,7 @@ class SyntheticsBrowserTestResultFullCheck # @!visibility private attr_accessor :_unparsed - # # Configuration object for a Synthetic test. + # Configuration object for a Synthetic test. attr_accessor :config # Attribute mapping from ruby-style variable name to JSON key. 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 8f3f8b9fd45..f62a2bd7b29 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 @@ -23,19 +23,19 @@ class SyntheticsBrowserTestResultShort # @!visibility private attr_accessor :_unparsed - # # Last time the browser test was performed. + # Last time the browser test was performed. attr_accessor :check_time - # # Location from which the Browser test was performed. + # Location from which the Browser test was performed. attr_accessor :probe_dc - # # Object with the result of the last browser test run. + # Object with the result of the last browser test run. attr_accessor :result - # # ID of the browser test result. + # ID of the browser test result. attr_accessor :result_id - # # The status of your Synthetic monitor. + # The status of your Synthetic monitor. # * `O` for not triggered # * `1` for triggered # * `2` for no data 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 3e0cf152c67..f5d3cad598d 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 @@ -23,19 +23,19 @@ class SyntheticsBrowserTestResultShortResult # @!visibility private attr_accessor :_unparsed - # # Object describing the device used to perform the Synthetic test. + # Object describing the device used to perform the Synthetic test. attr_accessor :device - # # Length in second of the browser test run. + # Length in second of the browser test run. attr_accessor :duration - # # Amount of errors collected for a single browser test run. + # Amount of errors collected for a single browser test run. attr_accessor :error_count - # # Amount of browser test steps completed before failing. + # Amount of browser test steps completed before failing. attr_accessor :step_count_completed - # # Total amount of browser test steps. + # Total amount of browser test steps. attr_accessor :step_count_total # Attribute mapping from ruby-style variable name to JSON key. 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 a503a7d7102..360db25b7aa 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb @@ -24,19 +24,19 @@ class SyntheticsBrowserVariable # @!visibility private attr_accessor :_unparsed - # # Example for the variable. + # Example for the variable. attr_accessor :example - # # ID for the variable. Global variables require an ID. + # ID for the variable. Global variables require an ID. attr_accessor :id - # # Name of the variable. + # Name of the variable. attr_accessor :name - # # Pattern of the variable. + # Pattern of the variable. attr_accessor :pattern - # # Type of browser test variable. + # Type of browser test variable. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 561ced4cd1a..8eac94df959 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 @@ -23,10 +23,10 @@ class SyntheticsCIBatchMetadata # @!visibility private attr_accessor :_unparsed - # # Description of the CI provider. + # Description of the CI provider. attr_accessor :ci - # # Git information. + # Git information. attr_accessor :git # Attribute mapping from ruby-style variable name to JSON key. 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 30d977a9aa2..25a4c8bc84f 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 @@ -23,10 +23,10 @@ class SyntheticsCIBatchMetadataCI # @!visibility private attr_accessor :_unparsed - # # Description of the CI pipeline. + # Description of the CI pipeline. attr_accessor :pipeline - # # Description of the CI provider. + # Description of the CI provider. attr_accessor :provider # Attribute mapping from ruby-style variable name to JSON key. 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 7e19ad32e9c..b5b5e3b53f9 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 @@ -23,10 +23,10 @@ class SyntheticsCIBatchMetadataGit # @!visibility private attr_accessor :_unparsed - # # Branch name. + # Branch name. attr_accessor :branch - # # The commit SHA. + # The commit SHA. attr_accessor :commit_sha # Attribute mapping from ruby-style variable name to JSON key. 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 71b56837fa0..74da8d83a0f 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 @@ -23,7 +23,7 @@ class SyntheticsCIBatchMetadataPipeline # @!visibility private attr_accessor :_unparsed - # # URL of the pipeline. + # URL of the pipeline. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. 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 23581b90468..fc221a3b635 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 @@ -23,7 +23,7 @@ class SyntheticsCIBatchMetadataProvider # @!visibility private attr_accessor :_unparsed - # # Name of the CI provider. + # Name of the CI provider. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 ea7b8018754..fc1b30cb6b8 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_test.rb @@ -23,46 +23,46 @@ class SyntheticsCITest # @!visibility private attr_accessor :_unparsed - # # Disable certificate checks in API tests. + # Disable certificate checks in API tests. attr_accessor :allow_insecure_certificates - # # Object to handle basic authentication when performing the test. + # Object to handle basic authentication when performing the test. attr_accessor :basic_auth - # # Body to include in the test. + # Body to include in the test. attr_accessor :body - # # Type of the data sent in a synthetics API test. + # Type of the data sent in a synthetics API test. attr_accessor :body_type - # # Cookies for the request. + # Cookies for the request. attr_accessor :cookies - # # For browser test, array with the different device IDs used to run the test. + # For browser test, array with the different device IDs used to run the test. attr_accessor :device_ids - # # For API HTTP test, whether or not the test should follow redirects. + # For API HTTP test, whether or not the test should follow redirects. attr_accessor :follow_redirects - # # Headers to include when performing the test. + # Headers to include when performing the test. attr_accessor :headers - # # Array of locations used to run the test. + # Array of locations used to run the test. attr_accessor :locations - # # Metadata for the Synthetics tests run. + # Metadata for the Synthetics tests run. attr_accessor :metadata - # # The public ID of the Synthetics test to trigger. + # The public ID of the Synthetics test to trigger. attr_accessor :public_id - # # Object describing the retry strategy to apply to a Synthetic test. + # Object describing the retry strategy to apply to a Synthetic test. attr_accessor :_retry - # # Starting URL for the browser test. + # Starting URL for the browser test. attr_accessor :start_url - # # Variables to replace in the test. + # Variables to replace in the test. attr_accessor :variables # Attribute mapping from ruby-style variable name to JSON key. 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 91d241b77b4..5ceb2a02ee6 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 @@ -23,7 +23,7 @@ class SyntheticsCITestBody # @!visibility private attr_accessor :_unparsed - # # Individual synthetics test. + # Individual synthetics test. attr_accessor :tests # Attribute mapping from ruby-style variable name to JSON key. 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 50b15228f48..2a96af9f3e6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_config_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_config_variable.rb @@ -23,19 +23,19 @@ class SyntheticsConfigVariable # @!visibility private attr_accessor :_unparsed - # # Example for the variable. + # Example for the variable. attr_accessor :example - # # ID of the variable for global variables. + # ID of the variable for global variables. attr_accessor :id - # # Name of the variable. + # Name of the variable. attr_accessor :name - # # Pattern of the variable. + # Pattern of the variable. attr_accessor :pattern - # # Type of the configuration variable. + # Type of the configuration variable. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 e32e353ea6e..b5de9bd7fe2 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 @@ -23,13 +23,13 @@ class SyntheticsCoreWebVitals # @!visibility private attr_accessor :_unparsed - # # Cumulative Layout Shift. + # Cumulative Layout Shift. attr_accessor :cls - # # Largest Contentful Paint in milliseconds. + # Largest Contentful Paint in milliseconds. attr_accessor :lcp - # # URL attached to the metrics. + # URL attached to the metrics. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. 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 603a733e6db..106586618be 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 @@ -24,7 +24,7 @@ class SyntheticsDeleteTestsPayload # @!visibility private attr_accessor :_unparsed - # # An array of Synthetic test IDs you want to delete. + # An array of Synthetic test IDs you want to delete. attr_accessor :public_ids # Attribute mapping from ruby-style variable name to JSON key. 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 531c8536d5d..818fdfe8565 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 @@ -23,7 +23,7 @@ class SyntheticsDeleteTestsResponse # @!visibility private attr_accessor :_unparsed - # # Array of objects containing a deleted Synthetic test ID with + # Array of objects containing a deleted Synthetic test ID with # the associated deletion timestamp. attr_accessor :deleted_tests 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 849e5fb5cad..28af9c55cb9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb @@ -24,10 +24,10 @@ class SyntheticsDeletedTest # @!visibility private attr_accessor :_unparsed - # # Deletion timestamp of the Synthetic test ID. + # Deletion timestamp of the Synthetic test ID. attr_accessor :deleted_at - # # The Synthetic test ID deleted. + # The Synthetic test ID deleted. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/synthetics_device.rb b/lib/datadog_api_client/v1/models/synthetics_device.rb index 6072d86f7f7..30d1737e68a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_device.rb +++ b/lib/datadog_api_client/v1/models/synthetics_device.rb @@ -23,19 +23,19 @@ class SyntheticsDevice # @!visibility private attr_accessor :_unparsed - # # Screen height of the device. + # Screen height of the device. attr_accessor :height - # # The device ID. + # The device ID. attr_accessor :id - # # Whether or not the device is a mobile. + # Whether or not the device is a mobile. attr_accessor :is_mobile - # # The device name. + # The device name. attr_accessor :name - # # Screen width of the device. + # Screen width of the device. attr_accessor :width # Attribute mapping from ruby-style variable name to JSON key. 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 e6aa05bcbfc..591092ef4f7 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 @@ -23,10 +23,10 @@ class SyntheticsGetAPITestLatestResultsResponse # @!visibility private attr_accessor :_unparsed - # # Timestamp of the latest API test run. + # Timestamp of the latest API test run. attr_accessor :last_timestamp_fetched - # # Result of the latest API test run. + # Result of the latest API test run. attr_accessor :results # Attribute mapping from ruby-style variable name to JSON key. 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 f6ddc7dcc06..4ca3d2f436b 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 @@ -23,10 +23,10 @@ class SyntheticsGetBrowserTestLatestResultsResponse # @!visibility private attr_accessor :_unparsed - # # Timestamp of the latest browser test run. + # Timestamp of the latest browser test run. attr_accessor :last_timestamp_fetched - # # Result of the latest browser test run. + # Result of the latest browser test run. attr_accessor :results # Attribute mapping from ruby-style variable name to JSON key. 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 46c365a0079..5ef56e42833 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable.rb @@ -23,28 +23,28 @@ class SyntheticsGlobalVariable # @!visibility private attr_accessor :_unparsed - # # Attributes of the global variable. + # Attributes of the global variable. attr_accessor :attributes - # # Description of the global variable. + # Description of the global variable. attr_accessor :description - # # Unique identifier of the global variable. + # Unique identifier of the global variable. attr_accessor :id - # # Name of the global variable. Unique across Synthetics global variables. + # Name of the global variable. Unique across Synthetics global variables. attr_accessor :name - # # Parser options to use for retrieving a Synthetics global variable from a Synthetics Test. Used in conjunction with `parse_test_public_id`. + # Parser options to use for retrieving a Synthetics global variable from a Synthetics Test. Used in conjunction with `parse_test_public_id`. attr_accessor :parse_test_options - # # A Synthetic test ID to use as a test to generate the variable value. + # A Synthetic test ID to use as a test to generate the variable value. attr_accessor :parse_test_public_id - # # Tags of the global variable. + # Tags of the global variable. attr_accessor :tags - # # Value of the global variable. + # Value of the global variable. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 34c527b0186..7d4448a4bb9 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 @@ -23,7 +23,7 @@ class SyntheticsGlobalVariableAttributes # @!visibility private attr_accessor :_unparsed - # # List of role identifiers that can be pulled from the Roles API. + # List of role identifiers that can be pulled from the Roles API. attr_accessor :restricted_roles # Attribute mapping from ruby-style variable name to JSON key. 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 46a70504768..4009198c976 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 @@ -23,13 +23,13 @@ class SyntheticsGlobalVariableParseTestOptions # @!visibility private attr_accessor :_unparsed - # # When type is `http_header`, name of the header to use to extract the value. + # When type is `http_header`, name of the header to use to extract the value. attr_accessor :field - # # Details of the parser to use for the global variable. + # Details of the parser to use for the global variable. attr_accessor :parser - # # Property of the Synthetics Test Response to use for a Synthetics global variable. + # Property of the Synthetics Test Response to use for a Synthetics global variable. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 cac7abf71a4..dfe6fc5d2d3 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 @@ -23,10 +23,10 @@ class SyntheticsGlobalVariableValue # @!visibility private attr_accessor :_unparsed - # # Determines if the value of the variable is hidden. + # Determines if the value of the variable is hidden. attr_accessor :secure - # # Value of the global variable. When reading a global variable, + # Value of the global variable. When reading a global variable, # the value will not be present if the variable is hidden with the `secure` property. attr_accessor :value 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 78a8f8613da..d94cca37748 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 @@ -23,7 +23,7 @@ class SyntheticsListGlobalVariablesResponse # @!visibility private attr_accessor :_unparsed - # # Array of Synthetic global variables. + # Array of Synthetic global variables. attr_accessor :variables # Attribute mapping from ruby-style variable name to JSON key. 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 53cc3711f2b..ae06a622c24 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 @@ -23,7 +23,7 @@ class SyntheticsListTestsResponse # @!visibility private attr_accessor :_unparsed - # # Array of Synthetic tests configuration. + # Array of Synthetic tests configuration. attr_accessor :tests # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/synthetics_location.rb b/lib/datadog_api_client/v1/models/synthetics_location.rb index f82f66cd697..315c279c1c4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_location.rb @@ -24,10 +24,10 @@ class SyntheticsLocation # @!visibility private attr_accessor :_unparsed - # # Unique identifier of the location. + # Unique identifier of the location. attr_accessor :id - # # Name of the location. + # Name of the location. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/synthetics_locations.rb b/lib/datadog_api_client/v1/models/synthetics_locations.rb index aa7ac62d6bd..5c270459489 100644 --- a/lib/datadog_api_client/v1/models/synthetics_locations.rb +++ b/lib/datadog_api_client/v1/models/synthetics_locations.rb @@ -23,7 +23,7 @@ class SyntheticsLocations # @!visibility private attr_accessor :_unparsed - # # List of Synthetics locations. + # List of Synthetics locations. attr_accessor :locations # Attribute mapping from ruby-style variable name to JSON key. 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 9511721e60a..adbb47fe305 100644 --- a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb @@ -23,16 +23,16 @@ class SyntheticsParsingOptions # @!visibility private attr_accessor :_unparsed - # # When type is `http_header`, name of the header to use to extract the value. + # When type is `http_header`, name of the header to use to extract the value. attr_accessor :field - # # Name of the variable to extract. + # Name of the variable to extract. attr_accessor :name - # # Details of the parser to use for the global variable. + # Details of the parser to use for the global variable. attr_accessor :parser - # # Property of the Synthetics Test Response to use for a Synthetics global variable. + # Property of the Synthetics Test Response to use for a Synthetics global variable. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3d9166d50b4..e1c7eb33ff0 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location.rb @@ -23,19 +23,19 @@ class SyntheticsPrivateLocation # @!visibility private attr_accessor :_unparsed - # # Description of the private location. + # Description of the private location. attr_accessor :description - # # Unique identifier of the private location. + # Unique identifier of the private location. attr_accessor :id - # # Name of the private location. + # Name of the private location. attr_accessor :name - # # Secrets for the private location. Only present in the response when creating the private location. + # Secrets for the private location. Only present in the response when creating the private location. attr_accessor :secrets - # # Array of tags attached to the private location. + # Array of tags attached to the private location. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 75547a39d7c..4a3acb0907b 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 @@ -23,13 +23,13 @@ class SyntheticsPrivateLocationCreationResponse # @!visibility private attr_accessor :_unparsed - # # Configuration skeleton for the private location. See installation instructions of the private location on how to use this configuration. + # Configuration skeleton for the private location. See installation instructions of the private location on how to use this configuration. attr_accessor :config - # # Object containing information about the private location to create. + # Object containing information about the private location to create. attr_accessor :private_location - # # Public key for the result encryption. + # Public key for the result encryption. attr_accessor :result_encryption # Attribute mapping from ruby-style variable name to JSON key. 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 c9895613656..6ea31c7ee28 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 @@ -23,10 +23,10 @@ class SyntheticsPrivateLocationCreationResponseResultEncryption # @!visibility private attr_accessor :_unparsed - # # Fingerprint for the encryption key. + # Fingerprint for the encryption key. attr_accessor :id - # # Public key for result encryption. + # Public key for result encryption. attr_accessor :key # Attribute mapping from ruby-style variable name to JSON key. 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 9de8dc3dd6b..1119552f0e5 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 @@ -23,10 +23,10 @@ class SyntheticsPrivateLocationSecrets # @!visibility private attr_accessor :_unparsed - # # Authentication part of the secrets. + # Authentication part of the secrets. attr_accessor :authentication - # # Private key for the private location. + # Private key for the private location. attr_accessor :config_decryption # Attribute mapping from ruby-style variable name to JSON key. 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 860ad411e18..64fb0b882a2 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 @@ -23,10 +23,10 @@ class SyntheticsPrivateLocationSecretsAuthentication # @!visibility private attr_accessor :_unparsed - # # Access key for the private location. + # Access key for the private location. attr_accessor :id - # # Secret access key for the private location. + # Secret access key for the private location. attr_accessor :key # Attribute mapping from ruby-style variable name to JSON key. 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 1ecb7f47340..e8fe6a7a34d 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 @@ -23,7 +23,7 @@ class SyntheticsPrivateLocationSecretsConfigDecryption # @!visibility private attr_accessor :_unparsed - # # Private key for the private location. + # Private key for the private location. attr_accessor :key # Attribute mapping from ruby-style variable name to JSON key. 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 f4f252b8344..80aaeda078a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb @@ -23,40 +23,40 @@ class SyntheticsSSLCertificate # @!visibility private attr_accessor :_unparsed - # # Cipher used for the connection. + # Cipher used for the connection. attr_accessor :cipher - # # Exponent associated to the certificate. + # Exponent associated to the certificate. attr_accessor :exponent - # # Array of extensions and details used for the certificate. + # Array of extensions and details used for the certificate. attr_accessor :ext_key_usage - # # MD5 digest of the DER-encoded Certificate information. + # MD5 digest of the DER-encoded Certificate information. attr_accessor :fingerprint - # # SHA-1 digest of the DER-encoded Certificate information. + # SHA-1 digest of the DER-encoded Certificate information. attr_accessor :fingerprint256 - # # Object describing the issuer of a SSL certificate. + # Object describing the issuer of a SSL certificate. attr_accessor :issuer - # # Modulus associated to the SSL certificate private key. + # Modulus associated to the SSL certificate private key. attr_accessor :modulus - # # TLS protocol used for the test. + # TLS protocol used for the test. attr_accessor :protocol - # # Serial Number assigned by Symantec to the SSL certificate. + # Serial Number assigned by Symantec to the SSL certificate. attr_accessor :serial_number - # # Object describing the SSL certificate used for the test. + # Object describing the SSL certificate used for the test. attr_accessor :subject - # # Date from which the SSL certificate is valid. + # Date from which the SSL certificate is valid. attr_accessor :valid_from - # # Date until which the SSL certificate is valid. + # Date until which the SSL certificate is valid. attr_accessor :valid_to # Attribute mapping from ruby-style variable name to JSON key. 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 bc4054693fc..be922937457 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 @@ -23,22 +23,22 @@ class SyntheticsSSLCertificateIssuer # @!visibility private attr_accessor :_unparsed - # # Country Name that issued the certificate. + # Country Name that issued the certificate. attr_accessor :c - # # Common Name that issued certificate. + # Common Name that issued certificate. attr_accessor :cn - # # Locality that issued the certificate. + # Locality that issued the certificate. attr_accessor :l - # # Organization that issued the certificate. + # Organization that issued the certificate. attr_accessor :o - # # Organizational Unit that issued the certificate. + # Organizational Unit that issued the certificate. attr_accessor :ou - # # State Or Province Name that issued the certificate. + # State Or Province Name that issued the certificate. attr_accessor :st # Attribute mapping from ruby-style variable name to JSON key. 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 14bcdf425bf..f8081373006 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 @@ -23,25 +23,25 @@ class SyntheticsSSLCertificateSubject # @!visibility private attr_accessor :_unparsed - # # Country Name associated with the certificate. + # Country Name associated with the certificate. attr_accessor :c - # # Common Name that associated with the certificate. + # Common Name that associated with the certificate. attr_accessor :cn - # # Locality associated with the certificate. + # Locality associated with the certificate. attr_accessor :l - # # Organization associated with the certificate. + # Organization associated with the certificate. attr_accessor :o - # # Organizational Unit associated with the certificate. + # Organizational Unit associated with the certificate. attr_accessor :ou - # # State Or Province Name associated with the certificate. + # State Or Province Name associated with the certificate. attr_accessor :st - # # Subject Alternative Name associated with the certificate. + # Subject Alternative Name associated with the certificate. attr_accessor :alt_name # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/synthetics_step.rb b/lib/datadog_api_client/v1/models/synthetics_step.rb index 732511ec1d7..4967f8138c0 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step.rb @@ -23,19 +23,19 @@ class SyntheticsStep # @!visibility private attr_accessor :_unparsed - # # A boolean set to allow this step to fail. + # A boolean set to allow this step to fail. attr_accessor :allow_failure - # # The name of the step. + # The name of the step. attr_accessor :name - # # The parameters of the step. + # The parameters of the step. attr_accessor :params - # # The time before declaring a step failed. + # The time before declaring a step failed. attr_accessor :timeout - # # Step type used in your Synthetic test. + # Step type used in your Synthetic test. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 363391b4d2f..a030068a5c7 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_detail.rb @@ -23,56 +23,56 @@ class SyntheticsStepDetail # @!visibility private attr_accessor :_unparsed - # # Array of errors collected for a browser test. + # Array of errors collected for a browser test. attr_accessor :browser_errors - # # Type of assertion to apply in an API test. + # Type of assertion to apply in an API test. attr_accessor :check_type - # # Description of the test. + # Description of the test. attr_accessor :description - # # Total duration in millisecond of the test. + # Total duration in millisecond of the test. attr_accessor :duration - # # Error returned by the test. + # Error returned by the test. attr_accessor :error - # # Navigate between different tabs for your browser test. + # Navigate between different tabs for your browser test. attr_accessor :playing_tab - # # Whether or not screenshots where collected by the test. + # Whether or not screenshots where collected by the test. attr_accessor :screenshot_bucket_key - # # Whether or not to skip this step. + # Whether or not to skip this step. attr_accessor :skipped - # # Whether or not snapshots where collected by the test. + # Whether or not snapshots where collected by the test. attr_accessor :snapshot_bucket_key - # # The step ID. + # The step ID. attr_accessor :step_id - # # If this steps include a sub-test. + # If this steps include a sub-test. # [Subtests documentation](https://docs.datadoghq.com/synthetics/browser_tests/advanced_options/#subtests). attr_accessor :sub_test_step_details - # # Time before starting the step. + # Time before starting the step. attr_accessor :time_to_interactive - # # Step type used in your Synthetic test. + # Step type used in your Synthetic test. attr_accessor :type - # # URL to perform the step against. + # URL to perform the step against. attr_accessor :url - # # Value for the step. + # Value for the step. attr_accessor :value - # # Array of Core Web Vitals metrics for the step. + # Array of Core Web Vitals metrics for the step. attr_accessor :vitals_metrics - # # Warning collected that didn't failed the step. + # Warning collected that didn't failed the step. attr_accessor :warnings # Attribute mapping from ruby-style variable name to JSON key. 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 57b99b46a97..abe331038a3 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 @@ -23,10 +23,10 @@ class SyntheticsStepDetailWarning # @!visibility private attr_accessor :_unparsed - # # Message for the warning. + # Message for the warning. attr_accessor :message - # # User locator used. + # User locator used. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 d4cb2496734..fbeeaa9bf1f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_config.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_config.rb @@ -23,16 +23,16 @@ class SyntheticsTestConfig # @!visibility private attr_accessor :_unparsed - # # Array of assertions used for the test. Required for single API tests. + # Array of assertions used for the test. Required for single API tests. attr_accessor :assertions - # # Array of variables used for the test. + # Array of variables used for the test. attr_accessor :config_variables - # # Object describing the Synthetic test request. + # Object describing the Synthetic test request. attr_accessor :request - # # Browser tests only - array of variables used for the test steps. + # Browser tests only - array of variables used for the test steps. attr_accessor :variables # Attribute mapping from ruby-style variable name to JSON key. 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 a3d9e43fae4..3f79d0a2e2c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details.rb @@ -23,45 +23,45 @@ class SyntheticsTestDetails # @!visibility private attr_accessor :_unparsed - # # Configuration object for a Synthetic test. + # Configuration object for a Synthetic test. attr_accessor :config - # # Object describing the creator of the shared element. + # Object describing the creator of the shared element. attr_accessor :creator - # # Array of locations used to run the test. + # Array of locations used to run the test. attr_accessor :locations - # # Notification message associated with the test. + # Notification message associated with the test. attr_accessor :message - # # The associated monitor ID. + # The associated monitor ID. attr_accessor :monitor_id - # # Name of the test. + # Name of the test. attr_accessor :name - # # Object describing the extra options for a Synthetic test. + # Object describing the extra options for a Synthetic test. attr_accessor :options - # # The test public ID. + # The test public ID. attr_accessor :public_id - # # Define whether you want to start (`live`) or pause (`paused`) a + # Define whether you want to start (`live`) or pause (`paused`) a # Synthetic test. attr_accessor :status - # # For browser test, the steps of the test. + # For browser test, the steps of the test. attr_accessor :steps - # # The subtype of the Synthetic API test, `http`, `ssl`, `tcp`, + # The subtype of the Synthetic API test, `http`, `ssl`, `tcp`, # `dns`, `icmp`, `udp`, `websocket` or `multi`. attr_accessor :subtype - # # Array of tags attached to the test. + # Array of tags attached to the test. attr_accessor :tags - # # Type of the Synthetic test, either `api` or `browser`. + # Type of the Synthetic test, either `api` or `browser`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 2fd01ab10be..88bd9fb2f31 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options.rb @@ -23,46 +23,46 @@ class SyntheticsTestOptions # @!visibility private attr_accessor :_unparsed - # # For SSL test, whether or not the test should allow self signed + # For SSL test, whether or not the test should allow self signed # certificates. attr_accessor :accept_self_signed - # # Allows loading insecure content for an HTTP request. + # Allows loading insecure content for an HTTP request. attr_accessor :allow_insecure - # # For browser test, array with the different device IDs used to run the test. + # For browser test, array with the different device IDs used to run the test. attr_accessor :device_ids - # # Whether or not to disable CORS mechanism. + # Whether or not to disable CORS mechanism. attr_accessor :disable_cors - # # For API HTTP test, whether or not the test should follow redirects. + # For API HTTP test, whether or not the test should follow redirects. attr_accessor :follow_redirects - # # Minimum amount of time in failure required to trigger an alert. + # Minimum amount of time in failure required to trigger an alert. attr_accessor :min_failure_duration - # # Minimum number of locations in failure required to trigger + # Minimum number of locations in failure required to trigger # an alert. attr_accessor :min_location_failed - # # The monitor name is used for the alert title as well as for all monitor dashboard widgets and SLOs. + # The monitor name is used for the alert title as well as for all monitor dashboard widgets and SLOs. attr_accessor :monitor_name - # # Object containing the options for a Synthetic test as a monitor + # Object containing the options for a Synthetic test as a monitor # (for example, renotification). attr_accessor :monitor_options - # # Integer from 1 (high) to 5 (low) indicating alert severity. + # Integer from 1 (high) to 5 (low) indicating alert severity. attr_accessor :monitor_priority - # # Prevents saving screenshots of the steps. + # Prevents saving screenshots of the steps. attr_accessor :no_screenshot - # # Object describing the retry strategy to apply to a Synthetic test. + # Object describing the retry strategy to apply to a Synthetic test. attr_accessor :_retry - # # The frequency at which to run the Synthetic test (in seconds). + # The frequency at which to run the Synthetic test (in seconds). attr_accessor :tick_every # Attribute mapping from ruby-style variable name to JSON key. 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 183cd60b427..0d4e2c7aa70 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 @@ -24,7 +24,7 @@ class SyntheticsTestOptionsMonitorOptions # @!visibility private attr_accessor :_unparsed - # # Time interval before renotifying if the test is still failing + # Time interval before renotifying if the test is still failing # (in minutes). attr_accessor :renotify_interval 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 d3291c912fa..98cd8adce0d 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 @@ -23,11 +23,11 @@ class SyntheticsTestOptionsRetry # @!visibility private attr_accessor :_unparsed - # # Number of times a test needs to be retried before marking a + # Number of times a test needs to be retried before marking a # location as failed. Defaults to 0. attr_accessor :count - # # Time interval between retries (in milliseconds). Defaults to + # Time interval between retries (in milliseconds). Defaults to # 300ms. attr_accessor :interval 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 5cfcac98323..b385c57c08b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request.rb @@ -23,66 +23,66 @@ class SyntheticsTestRequest # @!visibility private attr_accessor :_unparsed - # # Allows loading insecure content for an HTTP request in a multistep test step. + # Allows loading insecure content for an HTTP request in a multistep test step. attr_accessor :allow_insecure - # # Object to handle basic authentication when performing the test. + # Object to handle basic authentication when performing the test. attr_accessor :basic_auth - # # Body to include in the test. + # Body to include in the test. attr_accessor :body - # # Client certificate to use when performing the test request. + # Client certificate to use when performing the test request. attr_accessor :certificate - # # DNS server to use for DNS tests. + # DNS server to use for DNS tests. attr_accessor :dns_server - # # DNS server port to use for DNS tests. + # DNS server port to use for DNS tests. attr_accessor :dns_server_port - # # Specifies whether or not the request follows redirects. + # Specifies whether or not the request follows redirects. attr_accessor :follow_redirects - # # Headers to include when performing the test. + # Headers to include when performing the test. attr_accessor :headers - # # Host name to perform the test with. + # Host name to perform the test with. attr_accessor :host - # # Message to send for UDP or WebSocket tests. + # Message to send for UDP or WebSocket tests. attr_accessor :message - # # The HTTP method. + # The HTTP method. attr_accessor :method - # # Determines whether or not to save the response body. + # Determines whether or not to save the response body. attr_accessor :no_saving_response_body - # # Number of pings to use per test. + # Number of pings to use per test. attr_accessor :number_of_packets - # # Port to use when performing the test. + # Port to use when performing the test. attr_accessor :port - # # The proxy to perform the test. + # The proxy to perform the test. attr_accessor :proxy - # # Query to use for the test. + # Query to use for the test. attr_accessor :query - # # For SSL tests, it specifies on which server you want to initiate the TLS handshake, + # For SSL tests, it specifies on which server you want to initiate the TLS handshake, # allowing the server to present one of multiple possible certificates on # the same IP address and TCP port number. attr_accessor :servername - # # Turns on a traceroute probe to discover all gateways along the path to the host destination. + # Turns on a traceroute probe to discover all gateways along the path to the host destination. attr_accessor :should_track_hops - # # Timeout in seconds for the test. + # Timeout in seconds for the test. attr_accessor :timeout - # # URL to perform the test with. + # URL to perform the test with. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. 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 93e1dbc28b4..990a9acb787 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 @@ -23,10 +23,10 @@ class SyntheticsTestRequestCertificate # @!visibility private attr_accessor :_unparsed - # # Define a request certificate. + # Define a request certificate. attr_accessor :cert - # # Define a request certificate. + # Define a request certificate. attr_accessor :key # Attribute mapping from ruby-style variable name to JSON key. 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 24617f893bc..a9cece8c566 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 @@ -23,13 +23,13 @@ class SyntheticsTestRequestCertificateItem # @!visibility private attr_accessor :_unparsed - # # Content of the certificate or key. + # Content of the certificate or key. attr_accessor :content - # # File name for the certificate or key. + # File name for the certificate or key. attr_accessor :filename - # # Date of update of the certificate or key, ISO format. + # Date of update of the certificate or key, ISO format. attr_accessor :updated_at # Attribute mapping from ruby-style variable name to JSON key. 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 7f0a2400cc3..ffe650a2241 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 @@ -23,10 +23,10 @@ class SyntheticsTestRequestProxy # @!visibility private attr_accessor :_unparsed - # # Headers to include when performing the test. + # Headers to include when performing the test. attr_accessor :headers - # # URL of the proxy to perform the test. + # URL of the proxy to perform the test. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/synthetics_timing.rb b/lib/datadog_api_client/v1/models/synthetics_timing.rb index 889c00faf7e..9ec775e4ffe 100644 --- a/lib/datadog_api_client/v1/models/synthetics_timing.rb +++ b/lib/datadog_api_client/v1/models/synthetics_timing.rb @@ -24,31 +24,31 @@ class SyntheticsTiming # @!visibility private attr_accessor :_unparsed - # # The duration in millisecond of the DNS lookup. + # The duration in millisecond of the DNS lookup. attr_accessor :dns - # # The time in millisecond to download the response. + # The time in millisecond to download the response. attr_accessor :download - # # The time in millisecond to first byte. + # The time in millisecond to first byte. attr_accessor :first_byte - # # The duration in millisecond of the TLS handshake. + # The duration in millisecond of the TLS handshake. attr_accessor :handshake - # # The time in millisecond spent during redirections. + # The time in millisecond spent during redirections. attr_accessor :redirect - # # The duration in millisecond of the TLS handshake. + # The duration in millisecond of the TLS handshake. attr_accessor :ssl - # # Time in millisecond to establish the TCP connection. + # Time in millisecond to establish the TCP connection. attr_accessor :tcp - # # The overall time in millisecond the request took to be processed. + # The overall time in millisecond the request took to be processed. attr_accessor :total - # # Time spent in millisecond waiting for a response. + # Time spent in millisecond waiting for a response. attr_accessor :wait # Attribute mapping from ruby-style variable name to JSON key. 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 79994caec88..cb2508366c4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb @@ -23,7 +23,7 @@ class SyntheticsTriggerBody # @!visibility private attr_accessor :_unparsed - # # Individual synthetics test. + # Individual synthetics test. attr_accessor :tests # Attribute mapping from ruby-style variable name to JSON key. 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 a83dbb57a09..528894dff3d 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 @@ -23,10 +23,10 @@ class SyntheticsTriggerCITestLocation # @!visibility private attr_accessor :_unparsed - # # Unique identifier of the location. + # Unique identifier of the location. attr_accessor :id - # # Name of the location. + # Name of the location. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 2548bb67e2e..41bdf5d1384 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 @@ -23,16 +23,16 @@ class SyntheticsTriggerCITestRunResult # @!visibility private attr_accessor :_unparsed - # # The device ID. + # The device ID. attr_accessor :device - # # The location ID of the test run. + # The location ID of the test run. attr_accessor :location - # # The public ID of the Synthetics test. + # The public ID of the Synthetics test. attr_accessor :public_id - # # ID of the result. + # ID of the result. attr_accessor :result_id # Attribute mapping from ruby-style variable name to JSON key. 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 f88c35f4f50..d8cf7e2d624 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 @@ -23,16 +23,16 @@ class SyntheticsTriggerCITestsResponse # @!visibility private attr_accessor :_unparsed - # # The public ID of the batch triggered. + # The public ID of the batch triggered. attr_accessor :batch_id - # # List of Synthetics locations. + # List of Synthetics locations. attr_accessor :locations - # # Information about the tests runs. + # Information about the tests runs. attr_accessor :results - # # The public IDs of the Synthetics test triggered. + # The public IDs of the Synthetics test triggered. attr_accessor :triggered_check_ids # Attribute mapping from ruby-style variable name to JSON key. 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 b10b16a33ef..c4abf3070a4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb @@ -23,10 +23,10 @@ class SyntheticsTriggerTest # @!visibility private attr_accessor :_unparsed - # # Metadata for the Synthetics tests run. + # Metadata for the Synthetics tests run. attr_accessor :metadata - # # The public ID of the Synthetics test to trigger. + # The public ID of the Synthetics test to trigger. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 e8af76ba3bd..7e7bde69d4d 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 @@ -23,7 +23,7 @@ class SyntheticsUpdateTestPauseStatusPayload # @!visibility private attr_accessor :_unparsed - # # Define whether you want to start (`live`) or pause (`paused`) a + # Define whether you want to start (`live`) or pause (`paused`) a # Synthetic test. attr_accessor :new_status 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 869af9e6f04..9388700146f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb +++ b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb @@ -23,10 +23,10 @@ class SyntheticsVariableParser # @!visibility private attr_accessor :_unparsed - # # Type of parser for a Synthetics global variable from a synthetics test. + # Type of parser for a Synthetics global variable from a synthetics test. attr_accessor :type - # # Regex or JSON path used for the parser. Not used with type `raw`. + # Regex or JSON path used for the parser. Not used with type `raw`. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 838d6e9fb92..aa20fed364d 100644 --- a/lib/datadog_api_client/v1/models/table_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/table_widget_definition.rb @@ -23,28 +23,28 @@ class TableWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # List of custom links. + # List of custom links. attr_accessor :custom_links - # # Controls the display of the search bar. + # Controls the display of the search bar. attr_accessor :has_search_bar - # # Widget definition. + # Widget definition. attr_accessor :requests - # # Time setting for the widget. + # Time setting for the widget. attr_accessor :time - # # Title of your widget. + # Title of your widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the table widget. + # Type of the table widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 8b87893320e..814ccb537fd 100644 --- a/lib/datadog_api_client/v1/models/table_widget_request.rb +++ b/lib/datadog_api_client/v1/models/table_widget_request.rb @@ -23,61 +23,61 @@ class TableWidgetRequest # @!visibility private attr_accessor :_unparsed - # # Aggregator used for the request. + # Aggregator used for the request. attr_accessor :aggregator - # # The column name (defaults to the metric name). + # The column name (defaults to the metric name). attr_accessor :_alias - # # The log query. + # The log query. attr_accessor :apm_query - # # The APM stats query for table and distributions widgets. + # The APM stats query for table and distributions widgets. attr_accessor :apm_stats_query - # # A list of display modes for each table cell. + # A list of display modes for each table cell. attr_accessor :cell_display_mode - # # List of conditional formats. + # List of conditional formats. attr_accessor :conditional_formats - # # The log query. + # The log query. attr_accessor :event_query - # # List of formulas that operate on queries. **This feature is currently in beta.** + # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas - # # For metric queries, the number of lines to show in the table. Only one request should have this property. + # For metric queries, the number of lines to show in the table. Only one request should have this property. attr_accessor :limit - # # The log query. + # The log query. attr_accessor :log_query - # # The log query. + # The log query. attr_accessor :network_query - # # Widget sorting methods. + # Widget sorting methods. attr_accessor :order - # # The process query to use in the widget. + # The process query to use in the widget. attr_accessor :process_query - # # The log query. + # The log query. attr_accessor :profile_metrics_query - # # Query definition. + # Query definition. attr_accessor :q - # # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** + # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries - # # Timeseries or Scalar response. **This feature is currently in beta.** + # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format - # # The log query. + # The log query. attr_accessor :rum_query - # # The log query. + # The log query. attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. 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 63e3844803f..44ee2a575fd 100644 --- a/lib/datadog_api_client/v1/models/tag_to_hosts.rb +++ b/lib/datadog_api_client/v1/models/tag_to_hosts.rb @@ -23,7 +23,7 @@ class TagToHosts # @!visibility private attr_accessor :_unparsed - # # A list of tags to apply to the host. + # A list of tags to apply to the host. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 d63a5496665..c543c3bf6a2 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb @@ -23,49 +23,49 @@ class TimeseriesWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # List of custom links. + # List of custom links. attr_accessor :custom_links - # # List of widget events. + # List of widget events. attr_accessor :events - # # Columns displayed in the legend. + # Columns displayed in the legend. attr_accessor :legend_columns - # # Layout of the legend. + # Layout of the legend. attr_accessor :legend_layout - # # Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto". + # Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto". attr_accessor :legend_size - # # List of markers. + # List of markers. attr_accessor :markers - # # List of timeseries widget requests. + # List of timeseries widget requests. attr_accessor :requests - # # Axis controls for the widget. + # Axis controls for the widget. attr_accessor :right_yaxis - # # (screenboard only) Show the legend for this widget. + # (screenboard only) Show the legend for this widget. attr_accessor :show_legend - # # Time setting for the widget. + # Time setting for the widget. attr_accessor :time - # # Title of your widget. + # Title of your widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the timeseries widget. + # Type of the timeseries widget. attr_accessor :type - # # Axis controls for the widget. + # Axis controls for the widget. attr_accessor :yaxis # Attribute mapping from ruby-style variable name to JSON key. 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 79523544eeb..0e4f3f8a0ac 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 @@ -23,10 +23,10 @@ class TimeseriesWidgetExpressionAlias # @!visibility private attr_accessor :_unparsed - # # Expression alias. + # Expression alias. attr_accessor :alias_name - # # Expression name. + # Expression name. attr_accessor :expression # Attribute mapping from ruby-style variable name to JSON key. 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 ec781c8e01a..7864f98a527 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb @@ -23,55 +23,55 @@ class TimeseriesWidgetRequest # @!visibility private attr_accessor :_unparsed - # # The log query. + # The log query. attr_accessor :apm_query - # # The log query. + # The log query. attr_accessor :audit_query - # # Type of display to use for the request. + # Type of display to use for the request. attr_accessor :display_type - # # The log query. + # The log query. attr_accessor :event_query - # # List of formulas that operate on queries. **This feature is currently in beta.** + # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas - # # The log query. + # The log query. attr_accessor :log_query - # # Used to define expression aliases. + # Used to define expression aliases. attr_accessor :metadata - # # The log query. + # The log query. attr_accessor :network_query - # # Whether or not to display a second y-axis on the right. + # Whether or not to display a second y-axis on the right. attr_accessor :on_right_yaxis - # # The process query to use in the widget. + # The process query to use in the widget. attr_accessor :process_query - # # The log query. + # The log query. attr_accessor :profile_metrics_query - # # Widget query. + # Widget query. attr_accessor :q - # # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** + # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries - # # Timeseries or Scalar response. **This feature is currently in beta.** + # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format - # # The log query. + # The log query. attr_accessor :rum_query - # # The log query. + # The log query. attr_accessor :security_query - # # Define request widget style. + # Define request widget style. attr_accessor :style # Attribute mapping from ruby-style variable name to JSON key. 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 36ed70d716c..4088a58b8b8 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_definition.rb @@ -23,25 +23,25 @@ class ToplistWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # List of custom links. + # List of custom links. attr_accessor :custom_links - # # List of top list widget requests. + # List of top list widget requests. attr_accessor :requests - # # Time setting for the widget. + # Time setting for the widget. attr_accessor :time - # # Title of your widget. + # Title of your widget. attr_accessor :title - # # How to align the text on the widget. + # How to align the text on the widget. attr_accessor :title_align - # # Size of the title. + # Size of the title. attr_accessor :title_size - # # Type of the top list widget. + # Type of the top list widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3519b27f6ea..3a6c2d4cb5d 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_request.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_request.rb @@ -23,49 +23,49 @@ class ToplistWidgetRequest # @!visibility private attr_accessor :_unparsed - # # The log query. + # The log query. attr_accessor :apm_query - # # The log query. + # The log query. attr_accessor :audit_query - # # List of conditional formats. + # List of conditional formats. attr_accessor :conditional_formats - # # The log query. + # The log query. attr_accessor :event_query - # # List of formulas that operate on queries. **This feature is currently in beta.** + # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas - # # The log query. + # The log query. attr_accessor :log_query - # # The log query. + # The log query. attr_accessor :network_query - # # The process query to use in the widget. + # The process query to use in the widget. attr_accessor :process_query - # # The log query. + # The log query. attr_accessor :profile_metrics_query - # # Widget query. + # Widget query. attr_accessor :q - # # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** + # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries - # # Timeseries or Scalar response. **This feature is currently in beta.** + # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format - # # The log query. + # The log query. attr_accessor :rum_query - # # The log query. + # The log query. attr_accessor :security_query - # # Define request widget style. + # Define request widget style. attr_accessor :style # Attribute mapping from ruby-style variable name to JSON key. 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 7c3d4f015ae..056121c22ec 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 @@ -23,22 +23,22 @@ class TreeMapWidgetDefinition # @!visibility private attr_accessor :_unparsed - # # The attribute used to determine color in the widget. + # The attribute used to determine color in the widget. attr_accessor :color_by - # # The attribute used to group elements in the widget. + # The attribute used to group elements in the widget. attr_accessor :group_by - # # List of top list widget requests. + # List of top list widget requests. attr_accessor :requests - # # The attribute used to determine size in the widget. + # The attribute used to determine size in the widget. attr_accessor :size_by - # # Title of your widget. + # Title of your widget. attr_accessor :title - # # Type of the treemap widget. + # Type of the treemap widget. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 edce4176b4c..9c9c28f3db0 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 @@ -23,16 +23,16 @@ class TreeMapWidgetRequest # @!visibility private attr_accessor :_unparsed - # # List of formulas that operate on queries. **This feature is currently in beta.** + # List of formulas that operate on queries. **This feature is currently in beta.** attr_accessor :formulas - # # The widget metrics query. + # The widget metrics query. attr_accessor :q - # # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** + # List of queries that can be returned directly or used in formulas. **This feature is currently in beta.** attr_accessor :queries - # # Timeseries or Scalar response. **This feature is currently in beta.** + # Timeseries or Scalar response. **This feature is currently in beta.** attr_accessor :response_format # Attribute mapping from ruby-style variable name to JSON key. 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 93aed463736..afd64929df3 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 @@ -23,16 +23,16 @@ class UsageAnalyzedLogsHour # @!visibility private attr_accessor :_unparsed - # # Contains the number of analyzed logs. + # Contains the number of analyzed logs. attr_accessor :analyzed_logs - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # The organization name. + # The organization name. attr_accessor :org_name - # # The organization public ID. + # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 a2d8d40b98a..877aefc4b38 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 @@ -23,7 +23,7 @@ class UsageAnalyzedLogsResponse # @!visibility private attr_accessor :_unparsed - # # Get hourly usage for analyzed logs. + # Get hourly usage for analyzed logs. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 fabc7e6f54c..f21b0b8ab6b 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 @@ -23,13 +23,13 @@ class UsageAttributionAggregatesBody # @!visibility private attr_accessor :_unparsed - # # The aggregate type. + # The aggregate type. attr_accessor :agg_type - # # The field. + # The field. attr_accessor :field - # # The value for a given field. + # The value for a given field. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/usage_attribution_body.rb b/lib/datadog_api_client/v1/models/usage_attribution_body.rb index 0a76a52d1b4..f14d8b4712b 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_body.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_body.rb @@ -23,25 +23,25 @@ class UsageAttributionBody # @!visibility private attr_accessor :_unparsed - # # Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM]. + # Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM]. attr_accessor :month - # # The name of the organization. + # The name of the organization. attr_accessor :org_name - # # The organization public ID. + # The organization public ID. attr_accessor :public_id - # # The source of the usage attribution tag configuration and the selected tags in the format `:--`. + # The source of the usage attribution tag configuration and the selected tags in the format `:--`. attr_accessor :tag_config_source - # # Usage Summary by tag name. + # Usage Summary by tag name. attr_accessor :tags - # # Shows the the most recent hour in the current months for all organizations for which all usages were calculated. + # Shows the the most recent hour in the current months for all organizations for which all usages were calculated. attr_accessor :updated_at - # # Fields in Usage Summary by tag(s). + # Fields in Usage Summary by tag(s). attr_accessor :values # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb b/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb index 0a60700d384..1709789b759 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb @@ -23,10 +23,10 @@ class UsageAttributionMetadata # @!visibility private attr_accessor :_unparsed - # # An array of available aggregates. + # An array of available aggregates. attr_accessor :aggregates - # # The metadata for the current pagination. + # The metadata for the current pagination. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb b/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb index 9a73cbe9934..b9c7ea5a78f 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb @@ -23,19 +23,19 @@ class UsageAttributionPagination # @!visibility private attr_accessor :_unparsed - # # Maximum amount of records to be returned. + # Maximum amount of records to be returned. attr_accessor :limit - # # Records to be skipped before beginning to return. + # Records to be skipped before beginning to return. attr_accessor :offset - # # Direction to sort by. + # Direction to sort by. attr_accessor :sort_direction - # # Field to sort by. + # Field to sort by. attr_accessor :sort_name - # # Total number of records. + # Total number of records. attr_accessor :total_number_of_records # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/usage_attribution_response.rb b/lib/datadog_api_client/v1/models/usage_attribution_response.rb index 6233a292540..dd1b98cd425 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_response.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_response.rb @@ -23,10 +23,10 @@ class UsageAttributionResponse # @!visibility private attr_accessor :_unparsed - # # The object containing document metadata. + # The object containing document metadata. attr_accessor :metadata - # # Get Usage Summary by tag(s). + # Get Usage Summary by tag(s). attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/usage_attribution_values.rb b/lib/datadog_api_client/v1/models/usage_attribution_values.rb index 7ff411c2a86..e999d4f4581 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_values.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_values.rb @@ -23,128 +23,128 @@ class UsageAttributionValues # @!visibility private attr_accessor :_unparsed - # # The percentage of synthetic API test usage by tag(s). + # The percentage of synthetic API test usage by tag(s). attr_accessor :api_percentage - # # The synthetic API test usage by tag(s). + # The synthetic API test usage by tag(s). attr_accessor :api_usage - # # The percentage of APM host usage by tag(s). + # The percentage of APM host usage by tag(s). attr_accessor :apm_host_percentage - # # The APM host usage by tag(s). + # The APM host usage by tag(s). attr_accessor :apm_host_usage - # # The percentage of synthetic browser test usage by tag(s). + # The percentage of synthetic browser test usage by tag(s). attr_accessor :browser_percentage - # # The synthetic browser test usage by tag(s). + # The synthetic browser test usage by tag(s). attr_accessor :browser_usage - # # The percentage of container usage by tag(s). + # The percentage of container usage by tag(s). attr_accessor :container_percentage - # # The container usage by tag(s). + # The container usage by tag(s). attr_accessor :container_usage - # # The percentage of Cloud Security Posture Management container usage by tag(s) + # The percentage of Cloud Security Posture Management container usage by tag(s) attr_accessor :cspm_container_percentage - # # The Cloud Security Posture Management container usage by tag(s) + # The Cloud Security Posture Management container usage by tag(s) attr_accessor :cspm_container_usage - # # The percentage of Cloud Security Posture Management host usage by tag(s) + # The percentage of Cloud Security Posture Management host usage by tag(s) attr_accessor :cspm_host_percentage - # # The Cloud Security Posture Management host usage by tag(s) + # The Cloud Security Posture Management host usage by tag(s) attr_accessor :cspm_host_usage - # # The percentage of custom metrics usage by tag(s). + # The percentage of custom metrics usage by tag(s). attr_accessor :custom_timeseries_percentage - # # The custom metrics usage by tag(s). + # The custom metrics usage by tag(s). attr_accessor :custom_timeseries_usage - # # The percentage of Cloud Workload Security container usage by tag(s) + # The percentage of Cloud Workload Security container usage by tag(s) attr_accessor :cws_container_percentage - # # The Cloud Workload Security container usage by tag(s) + # The Cloud Workload Security container usage by tag(s) attr_accessor :cws_container_usage - # # The percentage of Cloud Workload Security host usage by tag(s) + # The percentage of Cloud Workload Security host usage by tag(s) attr_accessor :cws_host_percentage - # # The Cloud Workload Security host usage by tag(s) + # The Cloud Workload Security host usage by tag(s) attr_accessor :cws_host_usage - # # The percentage of Database Monitoring host usage by tag(s). + # The percentage of Database Monitoring host usage by tag(s). attr_accessor :dbm_hosts_percentage - # # The Database Monitoring host usage by tag(s). + # The Database Monitoring host usage by tag(s). attr_accessor :dbm_hosts_usage - # # The percentage of Database Monitoring normalized queries usage by tag(s). + # The percentage of Database Monitoring normalized queries usage by tag(s). attr_accessor :dbm_queries_percentage - # # The Database Monitoring normalized queries usage by tag(s). + # The Database Monitoring normalized queries usage by tag(s). attr_accessor :dbm_queries_usage - # # The percentage of estimated live indexed logs usage by tag(s). Note this field is in private beta. + # The percentage of estimated live indexed logs usage by tag(s). Note this field is in private beta. attr_accessor :estimated_indexed_logs_percentage - # # The estimated live indexed logs usage by tag(s). Note this field is in private beta. + # The estimated live indexed logs usage by tag(s). Note this field is in private beta. attr_accessor :estimated_indexed_logs_usage - # # The percentage of infrastructure host usage by tag(s). + # The percentage of infrastructure host usage by tag(s). attr_accessor :infra_host_percentage - # # The infrastructure host usage by tag(s). + # The infrastructure host usage by tag(s). attr_accessor :infra_host_usage - # # The percentage of Lambda function usage by tag(s). + # The percentage of Lambda function usage by tag(s). attr_accessor :lambda_functions_percentage - # # The Lambda function usage by tag(s). + # The Lambda function usage by tag(s). attr_accessor :lambda_functions_usage - # # The percentage of Lambda invocation usage by tag(s). + # The percentage of Lambda invocation usage by tag(s). attr_accessor :lambda_invocations_percentage - # # The Lambda invocation usage by tag(s). + # The Lambda invocation usage by tag(s). attr_accessor :lambda_invocations_usage - # # The percentage of Lambda function usage by tag(s). + # The percentage of Lambda function usage by tag(s). # # **Note** this field is deprecated. Use lambda_functions_percentage instead. attr_accessor :lambda_percentage - # # The Lambda function usage by tag(s). + # The Lambda function usage by tag(s). # # **Note** this field is deprecated. Use lambda_functions_usage instead. attr_accessor :lambda_usage - # # The percentage of network host usage by tag(s). + # The percentage of network host usage by tag(s). attr_accessor :npm_host_percentage - # # The network host usage by tag(s). + # The network host usage by tag(s). attr_accessor :npm_host_usage - # # The percentage of profiled containers usage by tag(s). + # The percentage of profiled containers usage by tag(s). attr_accessor :profiled_container_percentage - # # The profiled container usage by tag(s). + # The profiled container usage by tag(s). attr_accessor :profiled_container_usage - # # The percentage of profiled hosts usage by tag(s). + # The percentage of profiled hosts usage by tag(s). attr_accessor :profiled_hosts_percentage - # # The profiled host usage by tag(s). + # The profiled host usage by tag(s). attr_accessor :profiled_hosts_usage - # # The percentage of network device usage by tag(s). + # The percentage of network device usage by tag(s). attr_accessor :snmp_percentage - # # The network device usage by tag(s). + # The network device usage by tag(s). attr_accessor :snmp_usage # Attribute mapping from ruby-style variable name to JSON key. 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 5b1e4d2ad36..ab827c169ed 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 @@ -23,16 +23,16 @@ class UsageAuditLogsHour # @!visibility private attr_accessor :_unparsed - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # The total number of audit logs lines indexed during a given hour. + # The total number of audit logs lines indexed during a given hour. attr_accessor :lines_indexed - # # The organization name. + # The organization name. attr_accessor :org_name - # # The organization public ID. + # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 73f6d8127cd..e94a5fb777d 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 @@ -23,7 +23,7 @@ class UsageAuditLogsResponse # @!visibility private attr_accessor :_unparsed - # # Get hourly usage for audit logs. + # Get hourly usage for audit logs. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 0fcb9342a04..dd72d60d558 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 @@ -23,25 +23,25 @@ class UsageBillableSummaryBody # @!visibility private attr_accessor :_unparsed - # # The total account usage. + # The total account usage. attr_accessor :account_billable_usage - # # Elapsed usage hours for some billable product. + # Elapsed usage hours for some billable product. attr_accessor :elapsed_usage_hours - # # The first billable hour for the org. + # The first billable hour for the org. attr_accessor :first_billable_usage_hour - # # The last billable hour for the org. + # The last billable hour for the org. attr_accessor :last_billable_usage_hour - # # The number of units used within the billable timeframe. + # The number of units used within the billable timeframe. attr_accessor :org_billable_usage - # # The percentage of account usage the org represents. + # The percentage of account usage the org represents. attr_accessor :percentage_in_account - # # Units pertaining to the usage. + # Units pertaining to the usage. attr_accessor :usage_unit # Attribute mapping from ruby-style variable name to JSON key. 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 12c5aea7020..f9e4bcf159b 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 @@ -23,28 +23,28 @@ class UsageBillableSummaryHour # @!visibility private attr_accessor :_unparsed - # # The billing plan. + # The billing plan. attr_accessor :billing_plan - # # Shows the last date of usage. + # Shows the last date of usage. attr_accessor :end_date - # # The number of organizations. + # The number of organizations. attr_accessor :num_orgs - # # The organization name. + # The organization name. attr_accessor :org_name - # # The organization public ID. + # The organization public ID. attr_accessor :public_id - # # Shows usage aggregation for a billing period. + # Shows usage aggregation for a billing period. attr_accessor :ratio_in_month - # # Shows the first date of usage. + # Shows the first date of usage. attr_accessor :start_date - # # Response with aggregated usage types. + # Response with aggregated usage types. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 7635a262f0a..3c8e4c7daef 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 @@ -23,100 +23,100 @@ class UsageBillableSummaryKeys # @!visibility private attr_accessor :_unparsed - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :apm_host_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :apm_host_top99p - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :apm_trace_search_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :fargate_container_average - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :infra_container_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :infra_host_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :infra_host_top99p - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :iot_top99p - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :lambda_function_average - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_15day_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_180day_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_30day_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_3day_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_45day_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_60day_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_7day_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_90day_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_custom_retention_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :logs_indexed_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :logs_ingested_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :network_device_top99p - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :npm_flow_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :npm_host_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :npm_host_top99p - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :prof_container_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :prof_host_top99p - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :rum_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :serverless_invocation_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :siem_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :synthetics_api_tests_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :synthetics_browser_checks_sum - # # Response with properties for each aggregated usage type. + # Response with properties for each aggregated usage type. attr_accessor :timeseries_average # Attribute mapping from ruby-style variable name to JSON key. 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 17c45612889..3eb396e31a9 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 @@ -23,7 +23,7 @@ class UsageBillableSummaryResponse # @!visibility private attr_accessor :_unparsed - # # An array of objects regarding usage of billable summary. + # An array of objects regarding usage of billable summary. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 cf097f0d67f..4aacdcb2a92 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 @@ -23,28 +23,28 @@ class UsageCloudSecurityPostureManagementHour # @!visibility private attr_accessor :_unparsed - # # The number of Cloud Security Posture Management Azure app services hosts during a given hour. + # The number of Cloud Security Posture Management Azure app services hosts during a given hour. attr_accessor :aas_host_count - # # The number of Cloud Security Posture Management Azure hosts during a given hour. + # The number of Cloud Security Posture Management Azure hosts during a given hour. attr_accessor :azure_host_count - # # The number of Cloud Security Posture Management hosts during a given hour. + # The number of Cloud Security Posture Management hosts during a given hour. attr_accessor :compliance_host_count - # # The total number of Cloud Security Posture Management containers during a given hour. + # The total number of Cloud Security Posture Management containers during a given hour. attr_accessor :container_count - # # The total number of Cloud Security Posture Management hosts during a given hour. + # The total number of Cloud Security Posture Management hosts during a given hour. attr_accessor :host_count - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # The organization name. + # The organization name. attr_accessor :org_name - # # The organization public ID. + # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 5cd25fe1d8a..8993ce5734b 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 @@ -23,7 +23,7 @@ class UsageCloudSecurityPostureManagementResponse # @!visibility private attr_accessor :_unparsed - # # Get hourly usage for Cloud Security Posture Management. + # Get hourly usage for Cloud Security Posture Management. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 351cc4b7733..9ddde5ec22a 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 @@ -23,19 +23,19 @@ class UsageCustomReportsAttributes # @!visibility private attr_accessor :_unparsed - # # The date the specified custom report was computed. + # The date the specified custom report was computed. attr_accessor :computed_on - # # The ending date of custom report. + # The ending date of custom report. attr_accessor :end_date - # # size + # size attr_accessor :size - # # The starting date of custom report. + # The starting date of custom report. attr_accessor :start_date - # # A list of tags to apply to custom reports. + # A list of tags to apply to custom reports. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 2e6338858a2..55cb14045f7 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 @@ -23,13 +23,13 @@ class UsageCustomReportsData # @!visibility private attr_accessor :_unparsed - # # The response containing attributes for custom reports. + # The response containing attributes for custom reports. attr_accessor :attributes - # # The date for specified custom reports. + # The date for specified custom reports. attr_accessor :id - # # The type of reports. + # The type of reports. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 c5fc81c33d1..6a4ea21553e 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 @@ -23,7 +23,7 @@ class UsageCustomReportsMeta # @!visibility private attr_accessor :_unparsed - # # The object containing page total count. + # The object containing page total count. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. 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 e4497cc0c78..194f2a49c85 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 @@ -23,7 +23,7 @@ class UsageCustomReportsPage # @!visibility private attr_accessor :_unparsed - # # Total page count. + # Total page count. attr_accessor :total_count # Attribute mapping from ruby-style variable name to JSON key. 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 5604339523d..35e9005d483 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 @@ -23,10 +23,10 @@ class UsageCustomReportsResponse # @!visibility private attr_accessor :_unparsed - # # An array of available custom reports. + # An array of available custom reports. attr_accessor :data - # # The object containing document metadata. + # The object containing document metadata. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 0160e19b37c..e94b9cf3c90 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_hour.rb @@ -23,19 +23,19 @@ class UsageCWSHour # @!visibility private attr_accessor :_unparsed - # # The total number of Cloud Workload Security container hours from the start of the given hour’s month until the given hour. + # The total number of Cloud Workload Security container hours from the start of the given hour’s month until the given hour. attr_accessor :cws_container_count - # # The total number of Cloud Workload Security host hours from the start of the given hour’s month until the given hour. + # The total number of Cloud Workload Security host hours from the start of the given hour’s month until the given hour. attr_accessor :cws_host_count - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # The organization name. + # The organization name. attr_accessor :org_name - # # The organization public ID. + # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 40f876737a1..756c9f38163 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_response.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_response.rb @@ -23,7 +23,7 @@ class UsageCWSResponse # @!visibility private attr_accessor :_unparsed - # # Get hourly usage for Cloud Workload Security. + # Get hourly usage for Cloud Workload Security. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 b7771f7bcdc..9aa16ca155a 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_hour.rb @@ -23,19 +23,19 @@ class UsageDBMHour # @!visibility private attr_accessor :_unparsed - # # The total number of Database Monitoring host hours from the start of the given hour’s month until the given hour. + # The total number of Database Monitoring host hours from the start of the given hour’s month until the given hour. attr_accessor :dbm_host_count - # # The total number of normalized Database Monitoring queries from the start of the given hour’s month until the given hour. + # The total number of normalized Database Monitoring queries from the start of the given hour’s month until the given hour. attr_accessor :dbm_queries_count - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # The organization name. + # The organization name. attr_accessor :org_name - # # The organization public ID. + # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 d31a7871aa9..2d93586b1d3 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_response.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_response.rb @@ -23,7 +23,7 @@ class UsageDBMResponse # @!visibility private attr_accessor :_unparsed - # # Get hourly usage for Database Monitoring + # Get hourly usage for Database Monitoring attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 fed42cf3101..a23a11ce3da 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_hour.rb @@ -23,19 +23,19 @@ class UsageFargateHour # @!visibility private attr_accessor :_unparsed - # # The average profiled task count for Fargate Profiling. + # The average profiled task count for Fargate Profiling. attr_accessor :avg_profiled_fargate_tasks - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # The organization name. + # The organization name. attr_accessor :org_name - # # The organization public ID. + # The organization public ID. attr_accessor :public_id - # # The number of Fargate tasks run. + # The number of Fargate tasks run. attr_accessor :tasks_count # Attribute mapping from ruby-style variable name to JSON key. 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 c2db6d8f4d8..03c71d58655 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_response.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_response.rb @@ -23,7 +23,7 @@ class UsageFargateResponse # @!visibility private attr_accessor :_unparsed - # # Array with the number of hourly Fargate tasks recorded for a given organization. + # Array with the number of hourly Fargate tasks recorded for a given organization. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 4e9b83b3ec3..e7f624974f8 100644 --- a/lib/datadog_api_client/v1/models/usage_host_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_host_hour.rb @@ -23,54 +23,54 @@ class UsageHostHour # @!visibility private attr_accessor :_unparsed - # # Contains the total number of infrastructure hosts reporting + # Contains the total number of infrastructure hosts reporting # during a given hour that were running the Datadog Agent. attr_accessor :agent_host_count - # # Contains the total number of hosts that reported through Alibaba integration + # Contains the total number of hosts that reported through Alibaba integration # (and were NOT running the Datadog Agent). attr_accessor :alibaba_host_count - # # Contains the total number of Azure App Services hosts using APM. + # Contains the total number of Azure App Services hosts using APM. attr_accessor :apm_azure_app_service_host_count - # # Shows the total number of hosts using APM during the hour, + # Shows the total number of hosts using APM during the hour, # these are counted as billable (except during trial periods). attr_accessor :apm_host_count - # # Contains the total number of hosts that reported through the AWS integration + # Contains the total number of hosts that reported through the AWS integration # (and were NOT running the Datadog Agent). attr_accessor :aws_host_count - # # Contains the total number of hosts that reported through Azure integration + # Contains the total number of hosts that reported through Azure integration # (and were NOT running the Datadog Agent). attr_accessor :azure_host_count - # # Shows the total number of containers reported by the Docker integration during the hour. + # Shows the total number of containers reported by the Docker integration during the hour. attr_accessor :container_count - # # Contains the total number of hosts that reported through the Google Cloud integration + # Contains the total number of hosts that reported through the Google Cloud integration # (and were NOT running the Datadog Agent). attr_accessor :gcp_host_count - # # Contains the total number of Heroku dynos reported by the Datadog Agent. + # Contains the total number of Heroku dynos reported by the Datadog Agent. attr_accessor :heroku_host_count - # # Contains the total number of billable infrastructure hosts reporting during a given hour. + # Contains the total number of billable infrastructure hosts reporting during a given hour. # This is the sum of `agent_host_count`, `aws_host_count`, and `gcp_host_count`. attr_accessor :host_count - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # Contains the total number of hosts that reported through the Azure App Services integration + # Contains the total number of hosts that reported through the Azure App Services integration # (and were NOT running the Datadog Agent). attr_accessor :infra_azure_app_service - # # Contains the total number of hosts reported by Datadog exporter for the OpenTelemetry Collector. + # Contains the total number of hosts reported by Datadog exporter for the OpenTelemetry Collector. attr_accessor :opentelemetry_host_count - # # Contains the total number of hosts that reported through vSphere integration + # Contains the total number of hosts that reported through vSphere integration # (and were NOT running the Datadog Agent). attr_accessor :vsphere_host_count 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 0398e86eadc..739a6860484 100644 --- a/lib/datadog_api_client/v1/models/usage_hosts_response.rb +++ b/lib/datadog_api_client/v1/models/usage_hosts_response.rb @@ -23,7 +23,7 @@ class UsageHostsResponse # @!visibility private attr_accessor :_unparsed - # # An array of objects related to host usage. + # An array of objects related to host usage. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 998b7df0d28..78e34952df8 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 @@ -23,16 +23,16 @@ class UsageIncidentManagementHour # @!visibility private attr_accessor :_unparsed - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # Contains the total number monthly active users from the start of the given hour's month until the given hour. + # Contains the total number monthly active users from the start of the given hour's month until the given hour. attr_accessor :monthly_active_users - # # The organization name. + # The organization name. attr_accessor :org_name - # # The organization public ID. + # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 7435202b6c5..7a9847f2b6a 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 @@ -23,7 +23,7 @@ class UsageIncidentManagementResponse # @!visibility private attr_accessor :_unparsed - # # Get hourly usage for incident management. + # Get hourly usage for incident management. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 ce06fb5cac6..b8d5106e7a9 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 @@ -23,16 +23,16 @@ class UsageIndexedSpansHour # @!visibility private attr_accessor :_unparsed - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # Contains the number of spans indexed. + # Contains the number of spans indexed. attr_accessor :indexed_events_count - # # The organization name. + # The organization name. attr_accessor :org_name - # # The organization public ID. + # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 7c04566339a..6c24f6ed0e0 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 @@ -23,7 +23,7 @@ class UsageIndexedSpansResponse # @!visibility private attr_accessor :_unparsed - # # Array with the number of hourly traces indexed for a given organization. + # Array with the number of hourly traces indexed for a given organization. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 15f5bd09227..c368578a6f4 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 @@ -23,16 +23,16 @@ class UsageIngestedSpansHour # @!visibility private attr_accessor :_unparsed - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # Contains the total number of bytes ingested during a given hour. + # Contains the total number of bytes ingested during a given hour. attr_accessor :ingested_events_bytes - # # The organization name. + # The organization name. attr_accessor :org_name - # # The organization public ID. + # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 e548e0a6467..8b31a45cbef 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 @@ -23,7 +23,7 @@ class UsageIngestedSpansResponse # @!visibility private attr_accessor :_unparsed - # # Get hourly usage for ingested spans. + # Get hourly usage for ingested spans. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/usage_io_t_hour.rb b/lib/datadog_api_client/v1/models/usage_io_t_hour.rb index 5d2ef1ddef4..87831e6523c 100644 --- a/lib/datadog_api_client/v1/models/usage_io_t_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_io_t_hour.rb @@ -23,16 +23,16 @@ class UsageIoTHour # @!visibility private attr_accessor :_unparsed - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # The total number of IoT devices during a given hour. + # The total number of IoT devices during a given hour. attr_accessor :iot_device_count - # # The organization name. + # The organization name. attr_accessor :org_name - # # The organization public ID. + # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/usage_io_t_response.rb b/lib/datadog_api_client/v1/models/usage_io_t_response.rb index 2a91e46b4c7..d98e022a5f8 100644 --- a/lib/datadog_api_client/v1/models/usage_io_t_response.rb +++ b/lib/datadog_api_client/v1/models/usage_io_t_response.rb @@ -23,7 +23,7 @@ class UsageIoTResponse # @!visibility private attr_accessor :_unparsed - # # Get hourly usage for IoT. + # Get hourly usage for IoT. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 c3b95d86e77..6995cd39127 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_hour.rb @@ -24,13 +24,13 @@ class UsageLambdaHour # @!visibility private attr_accessor :_unparsed - # # Contains the number of different functions for each region and AWS account. + # Contains the number of different functions for each region and AWS account. attr_accessor :func_count - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # Contains the sum of invocations of all functions. + # Contains the sum of invocations of all functions. attr_accessor :invocations_sum # Attribute mapping from ruby-style variable name to JSON key. 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 ed868f2de90..ffe45870c86 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_response.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_response.rb @@ -24,7 +24,7 @@ class UsageLambdaResponse # @!visibility private attr_accessor :_unparsed - # # Get hourly usage for Lambda. + # Get hourly usage for Lambda. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 31082145d4e..c3a82b6ef98 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 @@ -23,19 +23,19 @@ class UsageLogsByIndexHour # @!visibility private attr_accessor :_unparsed - # # The total number of indexed logs for the queried hour. + # The total number of indexed logs for the queried hour. attr_accessor :event_count - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # The index ID for this usage. + # The index ID for this usage. attr_accessor :index_id - # # The user specified name for this index ID. + # The user specified name for this index ID. attr_accessor :index_name - # # The retention period (in days) for this index ID. + # The retention period (in days) for this index ID. attr_accessor :retention # Attribute mapping from ruby-style variable name to JSON key. 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 39a71bc27e0..63fe10c85ea 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 @@ -23,7 +23,7 @@ class UsageLogsByIndexResponse # @!visibility private attr_accessor :_unparsed - # # An array of objects regarding hourly usage of logs by index response. + # An array of objects regarding hourly usage of logs by index response. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 5a4fecbd987..436e5a53269 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 @@ -23,16 +23,16 @@ class UsageLogsByRetentionHour # @!visibility private attr_accessor :_unparsed - # # Total logs indexed with this retention period during a given hour. + # Total logs indexed with this retention period during a given hour. attr_accessor :indexed_events_count - # # Live logs indexed with this retention period during a given hour. + # Live logs indexed with this retention period during a given hour. attr_accessor :live_indexed_events_count - # # Rehydrated logs indexed with this retention period during a given hour. + # Rehydrated logs indexed with this retention period during a given hour. attr_accessor :rehydrated_indexed_events_count - # # The retention period in days or "custom" for all custom retention usage. + # The retention period in days or "custom" for all custom retention usage. attr_accessor :retention # Attribute mapping from ruby-style variable name to JSON key. 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 d97b7f69df7..ccb5cce3bfc 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 @@ -23,7 +23,7 @@ class UsageLogsByRetentionResponse # @!visibility private attr_accessor :_unparsed - # # Get hourly usage for indexed logs by retention period. + # Get hourly usage for indexed logs by retention period. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 5bec74f0a65..a3c12792839 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_hour.rb @@ -23,28 +23,28 @@ class UsageLogsHour # @!visibility private attr_accessor :_unparsed - # # Contains the number of billable log bytes ingested. + # Contains the number of billable log bytes ingested. attr_accessor :billable_ingested_bytes - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # Contains the number of log events indexed. + # Contains the number of log events indexed. attr_accessor :indexed_events_count - # # Contains the number of log bytes ingested. + # Contains the number of log bytes ingested. attr_accessor :ingested_events_bytes - # # Contains the number of live log events indexed (data available as of December 1, 2020). + # Contains the number of live log events indexed (data available as of December 1, 2020). attr_accessor :logs_live_indexed_count - # # Contains the number of live log bytes ingested (data available as of December 1, 2020). + # Contains the number of live log bytes ingested (data available as of December 1, 2020). attr_accessor :logs_live_ingested_bytes - # # Contains the number of rehydrated log events indexed (data available as of December 1, 2020). + # Contains the number of rehydrated log events indexed (data available as of December 1, 2020). attr_accessor :logs_rehydrated_indexed_count - # # Contains the number of rehydrated log bytes ingested (data available as of December 1, 2020). + # Contains the number of rehydrated log bytes ingested (data available as of December 1, 2020). attr_accessor :logs_rehydrated_ingested_bytes # Attribute mapping from ruby-style variable name to JSON key. 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 a3bf9172672..5e39cf20959 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_response.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_response.rb @@ -23,7 +23,7 @@ class UsageLogsResponse # @!visibility private attr_accessor :_unparsed - # # An array of objects regarding hourly usage of logs. + # An array of objects regarding hourly usage of logs. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 3d4feaa276d..4d526eac6d3 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 @@ -23,10 +23,10 @@ class UsageNetworkFlowsHour # @!visibility private attr_accessor :_unparsed - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # Contains the number of netflow events indexed. + # Contains the number of netflow events indexed. attr_accessor :indexed_events_count # Attribute mapping from ruby-style variable name to JSON key. 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 9f891cf08c3..cc8b714b4b9 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 @@ -23,7 +23,7 @@ class UsageNetworkFlowsResponse # @!visibility private attr_accessor :_unparsed - # # Get hourly usage for Network Flows. + # Get hourly usage for Network Flows. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 5dd33195683..d96cf855a0a 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 @@ -23,10 +23,10 @@ class UsageNetworkHostsHour # @!visibility private attr_accessor :_unparsed - # # Contains the number of active NPM hosts. + # Contains the number of active NPM hosts. attr_accessor :host_count - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour # Attribute mapping from ruby-style variable name to JSON key. 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 53800caea27..35681b4185c 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 @@ -23,7 +23,7 @@ class UsageNetworkHostsResponse # @!visibility private attr_accessor :_unparsed - # # Get hourly usage for NPM hosts. + # Get hourly usage for NPM hosts. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 79e9cdf8b63..2dbadb32478 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_hour.rb @@ -23,19 +23,19 @@ class UsageProfilingHour # @!visibility private attr_accessor :_unparsed - # # Get average number of container agents for that hour. + # Get average number of container agents for that hour. attr_accessor :avg_container_agent_count - # # Contains the total number of profiled hosts reporting during a given hour. + # Contains the total number of profiled hosts reporting during a given hour. attr_accessor :host_count - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # The organization name. + # The organization name. attr_accessor :org_name - # # The organization public ID. + # The organization public ID. attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. 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 14d8c6d7095..6523755c74b 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_response.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_response.rb @@ -23,7 +23,7 @@ class UsageProfilingResponse # @!visibility private attr_accessor :_unparsed - # # Get hourly usage for profiled hosts. + # Get hourly usage for profiled hosts. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 298e60df27b..e1d1fb886d3 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 @@ -23,25 +23,25 @@ class UsageRumSessionsHour # @!visibility private attr_accessor :_unparsed - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # The organization name. + # The organization name. attr_accessor :org_name - # # The organization public ID. + # The organization public ID. attr_accessor :public_id - # # Contains the number of RUM Replay Sessions (data available beginning November 1, 2021). + # Contains the number of RUM Replay Sessions (data available beginning November 1, 2021). attr_accessor :replay_session_count - # # Contains the number of browser RUM Lite Sessions. + # Contains the number of browser RUM Lite Sessions. attr_accessor :session_count - # # Contains the number of mobile RUM Sessions on Android (data available beginning December 1, 2020). + # Contains the number of mobile RUM Sessions on Android (data available beginning December 1, 2020). attr_accessor :session_count_android - # # Contains the number of mobile RUM Sessions on iOS (data available beginning December 1, 2020). + # Contains the number of mobile RUM Sessions on iOS (data available beginning December 1, 2020). attr_accessor :session_count_ios # Attribute mapping from ruby-style variable name to JSON key. 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 3619f81f773..5be8d0d0d14 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 @@ -23,7 +23,7 @@ class UsageRumSessionsResponse # @!visibility private attr_accessor :_unparsed - # # Get hourly usage for RUM Sessions. + # Get hourly usage for RUM Sessions. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 365803f7742..71379a9ea1a 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 @@ -23,19 +23,19 @@ class UsageRumUnitsHour # @!visibility private attr_accessor :_unparsed - # # The number of browser RUM units. + # The number of browser RUM units. attr_accessor :browser_rum_units - # # The number of mobile RUM units. + # The number of mobile RUM units. attr_accessor :mobile_rum_units - # # The organization name. + # The organization name. attr_accessor :org_name - # # The organization public ID. + # The organization public ID. attr_accessor :public_id - # # Total RUM units across mobile and browser RUM. + # Total RUM units across mobile and browser RUM. attr_accessor :rum_units # Attribute mapping from ruby-style variable name to JSON key. 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 2a65f1bdcbe..b84755eebe6 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 @@ -23,7 +23,7 @@ class UsageRumUnitsResponse # @!visibility private attr_accessor :_unparsed - # # Get hourly usage for RUM Units. + # Get hourly usage for RUM Units. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 75b24f44fa7..0ae692627cc 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_hour.rb @@ -23,19 +23,19 @@ class UsageSDSHour # @!visibility private attr_accessor :_unparsed - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # The total number of bytes scanned of logs usage by the Sensitive Data Scanner from the start of the given hour’s month until the given hour. + # The total number of bytes scanned of logs usage by the Sensitive Data Scanner from the start of the given hour’s month until the given hour. attr_accessor :logs_scanned_bytes - # # The organization name. + # The organization name. attr_accessor :org_name - # # The organization public ID. + # The organization public ID. attr_accessor :public_id - # # 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. + # 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 # Attribute mapping from ruby-style variable name to JSON key. 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 797e1818d43..c249625c267 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_response.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_response.rb @@ -23,7 +23,7 @@ class UsageSDSResponse # @!visibility private attr_accessor :_unparsed - # # Get hourly usage for Sensitive Data Scanner. + # Get hourly usage for Sensitive Data Scanner. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 2775e78b5a1..c4a9678d8d9 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_hour.rb @@ -23,16 +23,16 @@ class UsageSNMPHour # @!visibility private attr_accessor :_unparsed - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # The organization name. + # The organization name. attr_accessor :org_name - # # The organization public ID. + # The organization public ID. attr_accessor :public_id - # # Contains the number of SNMP devices. + # Contains the number of SNMP devices. attr_accessor :snmp_devices # Attribute mapping from ruby-style variable name to JSON key. 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 7fcc0c15d12..b1f28e84d37 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_response.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_response.rb @@ -23,7 +23,7 @@ class UsageSNMPResponse # @!visibility private attr_accessor :_unparsed - # # Get hourly usage for SNMP devices. + # Get hourly usage for SNMP devices. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 f63b7e1be5b..27509c194fc 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 @@ -23,22 +23,22 @@ class UsageSpecifiedCustomReportsAttributes # @!visibility private attr_accessor :_unparsed - # # The date the specified custom report was computed. + # The date the specified custom report was computed. attr_accessor :computed_on - # # The ending date of specified custom report. + # The ending date of specified custom report. attr_accessor :end_date - # # A downloadable file for the specified custom reporting file. + # A downloadable file for the specified custom reporting file. attr_accessor :location - # # size + # size attr_accessor :size - # # The starting date of specified custom report. + # The starting date of specified custom report. attr_accessor :start_date - # # A list of tags to apply to specified custom reports. + # A list of tags to apply to specified custom reports. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 18c6ad28ac1..37e321ac9d7 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 @@ -23,13 +23,13 @@ class UsageSpecifiedCustomReportsData # @!visibility private attr_accessor :_unparsed - # # The response containing attributes for specified custom reports. + # The response containing attributes for specified custom reports. attr_accessor :attributes - # # The date for specified custom reports. + # The date for specified custom reports. attr_accessor :id - # # The type of reports. + # The type of reports. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 e510067e580..51305b278ac 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 @@ -23,7 +23,7 @@ class UsageSpecifiedCustomReportsMeta # @!visibility private attr_accessor :_unparsed - # # The object containing page total count for specified ID. + # The object containing page total count for specified ID. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. 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 d543a705367..ac36f1979da 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 @@ -23,7 +23,7 @@ class UsageSpecifiedCustomReportsPage # @!visibility private attr_accessor :_unparsed - # # Total page count. + # Total page count. attr_accessor :total_count # Attribute mapping from ruby-style variable name to JSON key. 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 cf371ed8d4c..44a2dffd1cf 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 @@ -23,10 +23,10 @@ class UsageSpecifiedCustomReportsResponse # @!visibility private attr_accessor :_unparsed - # # Response containing date and type for specified custom reports. + # Response containing date and type for specified custom reports. attr_accessor :data - # # The object containing document metadata. + # The object containing document metadata. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 a5d0aa91ae0..bbc6bb1a36b 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date.rb @@ -23,175 +23,175 @@ class UsageSummaryDate # @!visibility private attr_accessor :_unparsed - # # Shows the 99th percentile of all agent hosts over all hours in the current date for all organizations. + # Shows the 99th percentile of all agent hosts over all hours in the current date for all organizations. attr_accessor :agent_host_top99p - # # Shows the 99th percentile of all Azure app services using APM over all hours in the current date all organizations. + # Shows the 99th percentile of all Azure app services using APM over all hours in the current date all organizations. attr_accessor :apm_azure_app_service_host_top99p - # # Shows the 99th percentile of all distinct APM hosts over all hours in the current date for all organizations. + # Shows the 99th percentile of all distinct APM hosts over all hours in the current date for all organizations. attr_accessor :apm_host_top99p - # # Shows the sum of audit logs lines indexed over all hours in the current date for all organizations. + # Shows the sum of audit logs lines indexed over all hours in the current date for all organizations. attr_accessor :audit_logs_lines_indexed_sum - # # The average profiled task count for Fargate Profiling. + # The average profiled task count for Fargate Profiling. attr_accessor :avg_profiled_fargate_tasks - # # Shows the 99th percentile of all AWS hosts over all hours in the current date for all organizations. + # Shows the 99th percentile of all AWS hosts over all hours in the current date for all organizations. attr_accessor :aws_host_top99p - # # Shows the average of the number of functions that executed 1 or more times each hour in the current date for all organizations. + # Shows the average of the number of functions that executed 1 or more times each hour in the current date for all organizations. attr_accessor :aws_lambda_func_count - # # Shows the sum of all AWS Lambda invocations over all hours in the current date for all organizations. + # Shows the sum of all AWS Lambda invocations over all hours in the current date for all organizations. attr_accessor :aws_lambda_invocations_sum - # # Shows the 99th percentile of all Azure app services over all hours in the current date for all organizations. + # Shows the 99th percentile of all Azure app services over all hours in the current date for all organizations. attr_accessor :azure_app_service_top99p - # # Shows the sum of all log bytes ingested over all hours in the current date for all organizations. + # Shows the sum of all log bytes ingested over all hours in the current date for all organizations. attr_accessor :billable_ingested_bytes_sum - # # Shows the sum of all browser lite sessions over all hours in the current date for all organizations. + # Shows the sum of all browser lite sessions over all hours in the current date for all organizations. attr_accessor :browser_rum_lite_session_count_sum - # # Shows the sum of all browser replay sessions over all hours in the current date for all organizations. + # Shows the sum of all browser replay sessions over all hours in the current date for all organizations. attr_accessor :browser_rum_replay_session_count_sum - # # Shows the sum of all browser RUM units over all hours in the current date for all organizations. + # Shows the sum of all browser RUM units over all hours in the current date for all organizations. attr_accessor :browser_rum_units_sum - # # Shows the average of all distinct containers over all hours in the current date for all organizations. + # Shows the average of all distinct containers over all hours in the current date for all organizations. attr_accessor :container_avg - # # Shows the high-water mark of all distinct containers over all hours in the current date for all organizations. + # Shows the high-water mark of all distinct containers over all hours in the current date for all organizations. attr_accessor :container_hwm - # # Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current date for all organizations. + # Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current date for all organizations. attr_accessor :cspm_aas_host_top99p - # # Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current date for all organizations. + # Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current date for all organizations. attr_accessor :cspm_azure_host_top99p - # # Shows the average number of Cloud Security Posture Management containers over all hours in the current date for all organizations. + # Shows the average number of Cloud Security Posture Management containers over all hours in the current date for all organizations. attr_accessor :cspm_container_avg - # # Shows the high-water mark of Cloud Security Posture Management containers over all hours in the current date for all organizations. + # Shows the high-water mark of Cloud Security Posture Management containers over all hours in the current date for all organizations. attr_accessor :cspm_container_hwm - # # Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current date for all organizations. + # Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current date for all organizations. attr_accessor :cspm_host_top99p - # # Shows the average number of distinct custom metrics over all hours in the current date for all organizations. + # Shows the average number of distinct custom metrics over all hours in the current date for all organizations. attr_accessor :custom_ts_avg - # # Shows the average of all distinct Cloud Workload Security containers over all hours in the current date for all organizations. + # Shows the average of all distinct Cloud Workload Security containers over all hours in the current date for all organizations. attr_accessor :cws_container_count_avg - # # Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current date for all organizations. + # Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current date for all organizations. attr_accessor :cws_host_top99p - # # The date for the usage. + # The date for the usage. attr_accessor :date - # # Shows the 99th percentile of all Database Monitoring hosts over all hours in the current date for all organizations. + # Shows the 99th percentile of all Database Monitoring hosts over all hours in the current date for all organizations. attr_accessor :dbm_host_top99p - # # Shows the average of all normalized Database Monitoring queries over all hours in the current date for all organizations. + # Shows the average of all normalized Database Monitoring queries over all hours in the current date for all organizations. attr_accessor :dbm_queries_count_avg - # # Shows the high-watermark of all Fargate tasks over all hours in the current date for all organizations. + # Shows the high-watermark of all Fargate tasks over all hours in the current date for all organizations. attr_accessor :fargate_tasks_count_avg - # # Shows the average of all Fargate tasks over all hours in the current date for all organizations. + # Shows the average of all Fargate tasks over all hours in the current date for all organizations. attr_accessor :fargate_tasks_count_hwm - # # Shows the 99th percentile of all GCP hosts over all hours in the current date for all organizations. + # Shows the 99th percentile of all GCP hosts over all hours in the current date for all organizations. attr_accessor :gcp_host_top99p - # # Shows the 99th percentile of all Heroku dynos over all hours in the current date for all organizations. + # Shows the 99th percentile of all Heroku dynos over all hours in the current date for all organizations. attr_accessor :heroku_host_top99p - # # Shows the high-water mark of incident management monthly active users over all hours in the current date for all organizations. + # Shows the high-water mark of incident management monthly active users over all hours in the current date for all organizations. attr_accessor :incident_management_monthly_active_users_hwm - # # Shows the sum of all log events indexed over all hours in the current date for all organizations. + # Shows the sum of all log events indexed over all hours in the current date for all organizations. attr_accessor :indexed_events_count_sum - # # Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current date for all organizations. + # Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current date for all organizations. attr_accessor :infra_host_top99p - # # Shows the sum of all log bytes ingested over all hours in the current date for all organizations. + # Shows the sum of all log bytes ingested over all hours in the current date for all organizations. attr_accessor :ingested_events_bytes_sum - # # Shows the sum of all IoT devices over all hours in the current date for all organizations. + # Shows the sum of all IoT devices over all hours in the current date for all organizations. attr_accessor :iot_device_sum - # # Shows the 99th percentile of all IoT devices over all hours in the current date all organizations. + # Shows the 99th percentile of all IoT devices over all hours in the current date all organizations. attr_accessor :iot_device_top99p - # # Shows the sum of all mobile lite sessions over all hours in the current date for all organizations. + # Shows the sum of all mobile lite sessions over all hours in the current date for all organizations. attr_accessor :mobile_rum_lite_session_count_sum - # # Shows the sum of all mobile RUM Sessions on Android over all hours in the current date for all organizations. + # Shows the sum of all mobile RUM Sessions on Android over all hours in the current date for all organizations. attr_accessor :mobile_rum_session_count_android_sum - # # Shows the sum of all mobile RUM Sessions on iOS over all hours in the current date for all organizations. + # Shows the sum of all mobile RUM Sessions on iOS over all hours in the current date for all organizations. attr_accessor :mobile_rum_session_count_ios_sum - # # Shows the sum of all mobile RUM Sessions over all hours in the current date for all organizations + # Shows the sum of all mobile RUM Sessions over all hours in the current date for all organizations attr_accessor :mobile_rum_session_count_sum - # # Shows the sum of all mobile RUM units over all hours in the current date for all organizations. + # Shows the sum of all mobile RUM units over all hours in the current date for all organizations. attr_accessor :mobile_rum_units_sum - # # Shows the sum of all Network flows indexed over all hours in the current date for all organizations. + # Shows the sum of all Network flows indexed over all hours in the current date for all organizations. attr_accessor :netflow_indexed_events_count_sum - # # Shows the 99th percentile of all distinct Networks hosts over all hours in the current date for all organizations. + # Shows the 99th percentile of all distinct Networks hosts over all hours in the current date for all organizations. attr_accessor :npm_host_top99p - # # Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for all organizations. + # Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for all organizations. attr_accessor :opentelemetry_host_top99p - # # Organizations associated with a user. + # Organizations associated with a user. attr_accessor :orgs - # # Shows the 99th percentile of all profiled hosts over all hours in the current date for all organizations. + # Shows the 99th percentile of all profiled hosts over all hours in the current date for all organizations. attr_accessor :profiling_host_top99p - # # Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current month for all organizations. + # Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current month for all organizations. attr_accessor :rum_browser_and_mobile_session_count - # # Shows the sum of all browser RUM Lite Sessions over all hours in the current date for all organizations + # Shows the sum of all browser RUM Lite Sessions over all hours in the current date for all organizations attr_accessor :rum_session_count_sum - # # Shows the sum of RUM Sessions (browser and mobile) over all hours in the current date for all organizations. + # Shows the sum of RUM Sessions (browser and mobile) over all hours in the current date for all organizations. attr_accessor :rum_total_session_count_sum - # # Shows the sum of all browser and mobile RUM units over all hours in the current date for all organizations. + # Shows the sum of all browser and mobile RUM units over all hours in the current date for all organizations. attr_accessor :rum_units_sum - # # Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations. + # Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations. attr_accessor :sds_logs_scanned_bytes_sum - # # Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for all organizations. + # Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for all organizations. attr_accessor :sds_total_scanned_bytes_sum - # # Shows the sum of all Synthetic browser tests over all hours in the current date for all organizations. + # Shows the sum of all Synthetic browser tests over all hours in the current date for all organizations. attr_accessor :synthetics_browser_check_calls_count_sum - # # Shows the sum of all Synthetic API tests over all hours in the current date for all organizations. + # Shows the sum of all Synthetic API tests over all hours in the current date for all organizations. attr_accessor :synthetics_check_calls_count_sum - # # Shows the sum of all Indexed Spans indexed over all hours in the current date for all organizations. + # Shows the sum of all Indexed Spans indexed over all hours in the current date for all organizations. attr_accessor :trace_search_indexed_events_count_sum - # # Shows the sum of all tracing without limits bytes ingested over all hours in the current date for all organizations. + # Shows the sum of all tracing without limits bytes ingested over all hours in the current date for all organizations. attr_accessor :twol_ingested_events_bytes_sum - # # Shows the 99th percentile of all vSphere hosts over all hours in the current date for all organizations. + # Shows the 99th percentile of all vSphere hosts over all hours in the current date for all organizations. attr_accessor :vsphere_host_top99p # Attribute mapping from ruby-style variable name to JSON key. 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 d2fff51bdef..e838b7acb88 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 @@ -23,178 +23,178 @@ class UsageSummaryDateOrg # @!visibility private attr_accessor :_unparsed - # # Shows the 99th percentile of all agent hosts over all hours in the current date for the given org. + # Shows the 99th percentile of all agent hosts over all hours in the current date for the given org. attr_accessor :agent_host_top99p - # # Shows the 99th percentile of all Azure app services using APM over all hours in the current date for the given org. + # Shows the 99th percentile of all Azure app services using APM over all hours in the current date for the given org. attr_accessor :apm_azure_app_service_host_top99p - # # Shows the 99th percentile of all distinct APM hosts over all hours in the current date for the given org. + # Shows the 99th percentile of all distinct APM hosts over all hours in the current date for the given org. attr_accessor :apm_host_top99p - # # Shows the sum of all audit logs lines indexed over all hours in the current date for the given org. + # Shows the sum of all audit logs lines indexed over all hours in the current date for the given org. attr_accessor :audit_logs_lines_indexed_sum - # # The average profiled task count for Fargate Profiling. + # The average profiled task count for Fargate Profiling. attr_accessor :avg_profiled_fargate_tasks - # # Shows the 99th percentile of all AWS hosts over all hours in the current date for the given org. + # Shows the 99th percentile of all AWS hosts over all hours in the current date for the given org. attr_accessor :aws_host_top99p - # # Shows the sum of all AWS Lambda invocations over all hours in the current date for the given org. + # Shows the sum of all AWS Lambda invocations over all hours in the current date for the given org. attr_accessor :aws_lambda_func_count - # # Shows the sum of all AWS Lambda invocations over all hours in the current date for the given org. + # Shows the sum of all AWS Lambda invocations over all hours in the current date for the given org. attr_accessor :aws_lambda_invocations_sum - # # Shows the 99th percentile of all Azure app services over all hours in the current date for the given org. + # Shows the 99th percentile of all Azure app services over all hours in the current date for the given org. attr_accessor :azure_app_service_top99p - # # Shows the sum of all log bytes ingested over all hours in the current date for the given org. + # Shows the sum of all log bytes ingested over all hours in the current date for the given org. attr_accessor :billable_ingested_bytes_sum - # # Shows the sum of all browser lite sessions over all hours in the current date for the given org. + # Shows the sum of all browser lite sessions over all hours in the current date for the given org. attr_accessor :browser_rum_lite_session_count_sum - # # Shows the sum of all browser replay sessions over all hours in the current date for the given org. + # Shows the sum of all browser replay sessions over all hours in the current date for the given org. attr_accessor :browser_rum_replay_session_count_sum - # # Shows the sum of all browser RUM units over all hours in the current date for the given org. + # Shows the sum of all browser RUM units over all hours in the current date for the given org. attr_accessor :browser_rum_units_sum - # # Shows the average of all distinct containers over all hours in the current date for the given org. + # Shows the average of all distinct containers over all hours in the current date for the given org. attr_accessor :container_avg - # # Shows the high-water mark of all distinct containers over all hours in the current date for the given org. + # Shows the high-water mark of all distinct containers over all hours in the current date for the given org. attr_accessor :container_hwm - # # Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current date for the given org. + # Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current date for the given org. attr_accessor :cspm_aas_host_top99p - # # Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current date for the given org. + # Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current date for the given org. attr_accessor :cspm_azure_host_top99p - # # Shows the average number of Cloud Security Posture Management containers over all hours in the current date for the given org. + # Shows the average number of Cloud Security Posture Management containers over all hours in the current date for the given org. attr_accessor :cspm_container_avg - # # Shows the high-water mark of Cloud Security Posture Management containers over all hours in the current date for the given org. + # Shows the high-water mark of Cloud Security Posture Management containers over all hours in the current date for the given org. attr_accessor :cspm_container_hwm - # # Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current date for the given org. + # Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current date for the given org. attr_accessor :cspm_host_top99p - # # Shows the average number of distinct custom metrics over all hours in the current date for the given org. + # Shows the average number of distinct custom metrics over all hours in the current date for the given org. attr_accessor :custom_ts_avg - # # Shows the average of all distinct Cloud Workload Security containers over all hours in the current date for the given org. + # Shows the average of all distinct Cloud Workload Security containers over all hours in the current date for the given org. attr_accessor :cws_container_count_avg - # # Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current date for the given org. + # Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current date for the given org. attr_accessor :cws_host_top99p - # # Shows the 99th percentile of all Database Monitoring hosts over all hours in the current month for the given org. + # Shows the 99th percentile of all Database Monitoring hosts over all hours in the current month for the given org. attr_accessor :dbm_host_top99p_sum - # # Shows the average of all distinct Database Monitoring normalized queries over all hours in the current month for the given org. + # Shows the average of all distinct Database Monitoring normalized queries over all hours in the current month for the given org. attr_accessor :dbm_queries_avg_sum - # # The average task count for Fargate. + # The average task count for Fargate. attr_accessor :fargate_tasks_count_avg - # # Shows the high-water mark of all Fargate tasks over all hours in the current date for the given org. + # Shows the high-water mark of all Fargate tasks over all hours in the current date for the given org. attr_accessor :fargate_tasks_count_hwm - # # Shows the 99th percentile of all GCP hosts over all hours in the current date for the given org. + # Shows the 99th percentile of all GCP hosts over all hours in the current date for the given org. attr_accessor :gcp_host_top99p - # # Shows the 99th percentile of all Heroku dynos over all hours in the current date for the given org. + # Shows the 99th percentile of all Heroku dynos over all hours in the current date for the given org. attr_accessor :heroku_host_top99p - # # The organization id. + # The organization id. attr_accessor :id - # # Shows the high-water mark of incident management monthly active users over all hours in the current date for the given org. + # Shows the high-water mark of incident management monthly active users over all hours in the current date for the given org. attr_accessor :incident_management_monthly_active_users_hwm - # # Shows the sum of all log events indexed over all hours in the current date for the given org. + # Shows the sum of all log events indexed over all hours in the current date for the given org. attr_accessor :indexed_events_count_sum - # # Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current date for the given org. + # Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current date for the given org. attr_accessor :infra_host_top99p - # # Shows the sum of all log bytes ingested over all hours in the current date for the given org. + # Shows the sum of all log bytes ingested over all hours in the current date for the given org. attr_accessor :ingested_events_bytes_sum - # # Shows the sum of all IoT devices over all hours in the current date for the given org. + # Shows the sum of all IoT devices over all hours in the current date for the given org. attr_accessor :iot_device_agg_sum - # # Shows the 99th percentile of all IoT devices over all hours in the current date for the given org. + # Shows the 99th percentile of all IoT devices over all hours in the current date for the given org. attr_accessor :iot_device_top99p_sum - # # Shows the sum of all mobile lite sessions over all hours in the current date for the given org. + # Shows the sum of all mobile lite sessions over all hours in the current date for the given org. attr_accessor :mobile_rum_lite_session_count_sum - # # Shows the sum of all mobile RUM Sessions on Android over all hours in the current date for the given org. + # Shows the sum of all mobile RUM Sessions on Android over all hours in the current date for the given org. attr_accessor :mobile_rum_session_count_android_sum - # # Shows the sum of all mobile RUM Sessions on iOS over all hours in the current date for the given org. + # Shows the sum of all mobile RUM Sessions on iOS over all hours in the current date for the given org. attr_accessor :mobile_rum_session_count_ios_sum - # # Shows the sum of all mobile RUM Sessions over all hours in the current date for the given org. + # Shows the sum of all mobile RUM Sessions over all hours in the current date for the given org. attr_accessor :mobile_rum_session_count_sum - # # Shows the sum of all mobile RUM units over all hours in the current date for the given org. + # Shows the sum of all mobile RUM units over all hours in the current date for the given org. attr_accessor :mobile_rum_units_sum - # # The organization name. + # The organization name. attr_accessor :name - # # Shows the sum of all Network flows indexed over all hours in the current date for the given org. + # Shows the sum of all Network flows indexed over all hours in the current date for the given org. attr_accessor :netflow_indexed_events_count_sum - # # Shows the 99th percentile of all distinct Networks hosts over all hours in the current date for the given org. + # Shows the 99th percentile of all distinct Networks hosts over all hours in the current date for the given org. attr_accessor :npm_host_top99p - # # Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for the given org. + # Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for the given org. attr_accessor :opentelemetry_host_top99p - # # Shows the 99th percentile of all profiled hosts over all hours in the current date for the given org. + # Shows the 99th percentile of all profiled hosts over all hours in the current date for the given org. attr_accessor :profiling_host_top99p - # # The organization public id. + # The organization public id. attr_accessor :public_id - # # Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current date for the given org. + # Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current date for the given org. attr_accessor :rum_browser_and_mobile_session_count - # # Shows the sum of all browser RUM Lite Sessions over all hours in the current date for the given org. + # Shows the sum of all browser RUM Lite Sessions over all hours in the current date for the given org. attr_accessor :rum_session_count_sum - # # Shows the sum of RUM Sessions (browser and mobile) over all hours in the current date for the given org. + # Shows the sum of RUM Sessions (browser and mobile) over all hours in the current date for the given org. attr_accessor :rum_total_session_count_sum - # # Shows the sum of all browser and mobile RUM units over all hours in the current date for the given org. + # Shows the sum of all browser and mobile RUM units over all hours in the current date for the given org. attr_accessor :rum_units_sum - # # Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for the given org. + # Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for the given org. attr_accessor :sds_logs_scanned_bytes_sum - # # Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for the given org. + # Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for the given org. attr_accessor :sds_total_scanned_bytes_sum - # # Shows the sum of all Synthetic browser tests over all hours in the current date for the given org. + # Shows the sum of all Synthetic browser tests over all hours in the current date for the given org. attr_accessor :synthetics_browser_check_calls_count_sum - # # Shows the sum of all Synthetic API tests over all hours in the current date for the given org. + # Shows the sum of all Synthetic API tests over all hours in the current date for the given org. attr_accessor :synthetics_check_calls_count_sum - # # Shows the sum of all Indexed Spans indexed over all hours in the current date for the given org. + # Shows the sum of all Indexed Spans indexed over all hours in the current date for the given org. attr_accessor :trace_search_indexed_events_count_sum - # # Shows the sum of all tracing without limits bytes ingested over all hours in the current date for the given org. + # Shows the sum of all tracing without limits bytes ingested over all hours in the current date for the given org. attr_accessor :twol_ingested_events_bytes_sum - # # Shows the 99th percentile of all vSphere hosts over all hours in the current date for the given org. + # Shows the 99th percentile of all vSphere hosts over all hours in the current date for the given org. attr_accessor :vsphere_host_top99p # Attribute mapping from ruby-style variable name to JSON key. 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 8776a327e8f..fe15d9e2adf 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_response.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_response.rb @@ -23,202 +23,202 @@ class UsageSummaryResponse # @!visibility private attr_accessor :_unparsed - # # Shows the 99th percentile of all agent hosts over all hours in the current months for all organizations. + # Shows the 99th percentile of all agent hosts over all hours in the current months for all organizations. attr_accessor :agent_host_top99p_sum - # # Shows the 99th percentile of all Azure app services using APM over all hours in the current months all organizations. + # Shows the 99th percentile of all Azure app services using APM over all hours in the current months all organizations. attr_accessor :apm_azure_app_service_host_top99p_sum - # # Shows the 99th percentile of all distinct APM hosts over all hours in the current months for all organizations. + # Shows the 99th percentile of all distinct APM hosts over all hours in the current months for all organizations. attr_accessor :apm_host_top99p_sum - # # Shows the sum of all audit logs lines indexed over all hours in the current months for all organizations. + # Shows the sum of all audit logs lines indexed over all hours in the current months for all organizations. attr_accessor :audit_logs_lines_indexed_agg_sum - # # Shows the average of all profiled Fargate tasks over all hours in the current months for all organizations. + # Shows the average of all profiled Fargate tasks over all hours in the current months for all organizations. attr_accessor :avg_profiled_fargate_tasks_sum - # # Shows the 99th percentile of all AWS hosts over all hours in the current months for all organizations. + # Shows the 99th percentile of all AWS hosts over all hours in the current months for all organizations. attr_accessor :aws_host_top99p_sum - # # Shows the average of the number of functions that executed 1 or more times each hour in the current months for all organizations. + # Shows the average of the number of functions that executed 1 or more times each hour in the current months for all organizations. attr_accessor :aws_lambda_func_count - # # Shows the sum of all AWS Lambda invocations over all hours in the current months for all organizations. + # Shows the sum of all AWS Lambda invocations over all hours in the current months for all organizations. attr_accessor :aws_lambda_invocations_sum - # # Shows the 99th percentile of all Azure app services over all hours in the current months for all organizations. + # Shows the 99th percentile of all Azure app services over all hours in the current months for all organizations. attr_accessor :azure_app_service_top99p_sum - # # Shows the 99th percentile of all Azure hosts over all hours in the current months for all organizations. + # Shows the 99th percentile of all Azure hosts over all hours in the current months for all organizations. attr_accessor :azure_host_top99p_sum - # # Shows the sum of all log bytes ingested over all hours in the current months for all organizations. + # Shows the sum of all log bytes ingested over all hours in the current months for all organizations. attr_accessor :billable_ingested_bytes_agg_sum - # # Shows the sum of all browser lite sessions over all hours in the current months for all organizations. + # Shows the sum of all browser lite sessions over all hours in the current months for all organizations. attr_accessor :browser_rum_lite_session_count_agg_sum - # # Shows the sum of all browser replay sessions over all hours in the current months for all organizations. + # Shows the sum of all browser replay sessions over all hours in the current months for all organizations. attr_accessor :browser_rum_replay_session_count_agg_sum - # # Shows the sum of all browser RUM units over all hours in the current months for all organizations. + # Shows the sum of all browser RUM units over all hours in the current months for all organizations. attr_accessor :browser_rum_units_agg_sum - # # Shows the average of all distinct containers over all hours in the current months for all organizations. + # Shows the average of all distinct containers over all hours in the current months for all organizations. attr_accessor :container_avg_sum - # # Shows the sum of the high-water marks of all distinct containers over all hours in the current months for all organizations. + # Shows the sum of the high-water marks of all distinct containers over all hours in the current months for all organizations. attr_accessor :container_hwm_sum - # # Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current months for all organizations. + # Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current months for all organizations. attr_accessor :cspm_aas_host_top99p_sum - # # Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current months for all organizations. + # Shows the 99th percentile of all Cloud Security Posture Management Azure hosts over all hours in the current months for all organizations. attr_accessor :cspm_azure_host_top99p_sum - # # Shows the average number of Cloud Security Posture Management containers over all hours in the current months for all organizations. + # Shows the average number of Cloud Security Posture Management containers over all hours in the current months for all organizations. attr_accessor :cspm_container_avg_sum - # # Shows the sum of the the high-water marks of Cloud Security Posture Management containers over all hours in the current months for all organizations. + # Shows the sum of the the high-water marks of Cloud Security Posture Management containers over all hours in the current months for all organizations. attr_accessor :cspm_container_hwm_sum - # # Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current months for all organizations. + # Shows the 99th percentile of all Cloud Security Posture Management hosts over all hours in the current months for all organizations. attr_accessor :cspm_host_top99p_sum - # # Shows the average number of distinct custom metrics over all hours in the current months for all organizations. + # Shows the average number of distinct custom metrics over all hours in the current months for all organizations. attr_accessor :custom_ts_sum - # # Shows the average of all distinct Cloud Workload Security containers over all hours in the current months for all organizations. + # Shows the average of all distinct Cloud Workload Security containers over all hours in the current months for all organizations. attr_accessor :cws_containers_avg_sum - # # Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current months for all organizations. + # Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current months for all organizations. attr_accessor :cws_host_top99p_sum - # # Shows the 99th percentile of all Database Monitoring hosts over all hours in the current month for all organizations. + # Shows the 99th percentile of all Database Monitoring hosts over all hours in the current month for all organizations. attr_accessor :dbm_host_top99p_sum - # # Shows the average of all distinct Database Monitoring Normalized Queries over all hours in the current month for all organizations. + # Shows the average of all distinct Database Monitoring Normalized Queries over all hours in the current month for all organizations. attr_accessor :dbm_queries_avg_sum - # # Shows the last date of usage in the current months for all organizations. + # Shows the last date of usage in the current months for all organizations. attr_accessor :end_date - # # Shows the average of all Fargate tasks over all hours in the current months for all organizations. + # Shows the average of all Fargate tasks over all hours in the current months for all organizations. attr_accessor :fargate_tasks_count_avg_sum - # # Shows the sum of the high-water marks of all Fargate tasks over all hours in the current months for all organizations. + # Shows the sum of the high-water marks of all Fargate tasks over all hours in the current months for all organizations. attr_accessor :fargate_tasks_count_hwm_sum - # # Shows the 99th percentile of all GCP hosts over all hours in the current months for all organizations. + # Shows the 99th percentile of all GCP hosts over all hours in the current months for all organizations. attr_accessor :gcp_host_top99p_sum - # # Shows the 99th percentile of all Heroku dynos over all hours in the current months for all organizations. + # Shows the 99th percentile of all Heroku dynos over all hours in the current months for all organizations. attr_accessor :heroku_host_top99p_sum - # # Shows sum of the the high-water marks of incident management monthly active users in the current months for all organizations. + # Shows sum of the the high-water marks of incident management monthly active users in the current months for all organizations. attr_accessor :incident_management_monthly_active_users_hwm_sum - # # Shows the sum of all log events indexed over all hours in the current months for all organizations. + # Shows the sum of all log events indexed over all hours in the current months for all organizations. attr_accessor :indexed_events_count_agg_sum - # # Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current months for all organizations. + # Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current months for all organizations. attr_accessor :infra_host_top99p_sum - # # Shows the sum of all log bytes ingested over all hours in the current months for all organizations. + # Shows the sum of all log bytes ingested over all hours in the current months for all organizations. attr_accessor :ingested_events_bytes_agg_sum - # # Shows the sum of all IoT devices over all hours in the current months for all organizations. + # Shows the sum of all IoT devices over all hours in the current months for all organizations. attr_accessor :iot_device_agg_sum - # # Shows the 99th percentile of all IoT devices over all hours in the current months of all organizations. + # Shows the 99th percentile of all IoT devices over all hours in the current months of all organizations. attr_accessor :iot_device_top99p_sum - # # Shows the the most recent hour in the current months for all organizations for which all usages were calculated. + # Shows the the most recent hour in the current months for all organizations for which all usages were calculated. attr_accessor :last_updated - # # Shows the sum of all live logs indexed over all hours in the current months for all organizations (data available as of December 1, 2020). + # Shows the sum of all live logs indexed over all hours in the current months for all organizations (data available as of December 1, 2020). attr_accessor :live_indexed_events_agg_sum - # # Shows the sum of all live logs bytes ingested over all hours in the current months for all organizations (data available as of December 1, 2020). + # Shows the sum of all live logs bytes ingested over all hours in the current months for all organizations (data available as of December 1, 2020). attr_accessor :live_ingested_bytes_agg_sum - # # Object containing logs usage data broken down by retention period. + # Object containing logs usage data broken down by retention period. attr_accessor :logs_by_retention - # # Shows the sum of all mobile lite sessions over all hours in the current months for all organizations. + # Shows the sum of all mobile lite sessions over all hours in the current months for all organizations. attr_accessor :mobile_rum_lite_session_count_agg_sum - # # Shows the sum of all mobile RUM Sessions over all hours in the current months for all organizations. + # Shows the sum of all mobile RUM Sessions over all hours in the current months for all organizations. attr_accessor :mobile_rum_session_count_agg_sum - # # Shows the sum of all mobile RUM Sessions on Android over all hours in the current months for all organizations. + # Shows the sum of all mobile RUM Sessions on Android over all hours in the current months for all organizations. attr_accessor :mobile_rum_session_count_android_agg_sum - # # Shows the sum of all mobile RUM Sessions on iOS over all hours in the current months for all organizations. + # Shows the sum of all mobile RUM Sessions on iOS over all hours in the current months for all organizations. attr_accessor :mobile_rum_session_count_ios_agg_sum - # # Shows the sum of all mobile RUM units over all hours in the current months for all organizations. + # Shows the sum of all mobile RUM units over all hours in the current months for all organizations. attr_accessor :mobile_rum_units_agg_sum - # # Shows the sum of all Network flows indexed over all hours in the current months for all organizations. + # Shows the sum of all Network flows indexed over all hours in the current months for all organizations. attr_accessor :netflow_indexed_events_count_agg_sum - # # Shows the 99th percentile of all distinct Networks hosts over all hours in the current months for all organizations. + # Shows the 99th percentile of all distinct Networks hosts over all hours in the current months for all organizations. attr_accessor :npm_host_top99p_sum - # # Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current months for all organizations. + # Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current months for all organizations. attr_accessor :opentelemetry_host_top99p_sum - # # Shows the average number of profiled containers over all hours in the current months for all organizations. + # Shows the average number of profiled containers over all hours in the current months for all organizations. attr_accessor :profiling_container_agent_count_avg - # # Shows the 99th percentile of all profiled hosts over all hours in the current months for all organizations. + # Shows the 99th percentile of all profiled hosts over all hours in the current months for all organizations. attr_accessor :profiling_host_count_top99p_sum - # # Shows the sum of all rehydrated logs indexed over all hours in the current months for all organizations (data available as of December 1, 2020). + # Shows the sum of all rehydrated logs indexed over all hours in the current months for all organizations (data available as of December 1, 2020). attr_accessor :rehydrated_indexed_events_agg_sum - # # Shows the sum of all rehydrated logs bytes ingested over all hours in the current months for all organizations (data available as of December 1, 2020). + # Shows the sum of all rehydrated logs bytes ingested over all hours in the current months for all organizations (data available as of December 1, 2020). attr_accessor :rehydrated_ingested_bytes_agg_sum - # # Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current month for all organizations. + # Shows the sum of all mobile sessions and all browser lite and legacy sessions over all hours in the current month for all organizations. attr_accessor :rum_browser_and_mobile_session_count - # # Shows the sum of all browser RUM Lite Sessions over all hours in the current months for all organizations. + # Shows the sum of all browser RUM Lite Sessions over all hours in the current months for all organizations. attr_accessor :rum_session_count_agg_sum - # # Shows the sum of RUM Sessions (browser and mobile) over all hours in the current months for all organizations. + # Shows the sum of RUM Sessions (browser and mobile) over all hours in the current months for all organizations. attr_accessor :rum_total_session_count_agg_sum - # # Shows the sum of all browser and mobile RUM units over all hours in the current months for all organizations. + # Shows the sum of all browser and mobile RUM units over all hours in the current months for all organizations. attr_accessor :rum_units_agg_sum - # # Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations. + # Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations. attr_accessor :sds_logs_scanned_bytes_sum - # # Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for all organizations. + # Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for all organizations. attr_accessor :sds_total_scanned_bytes_sum - # # Shows the first date of usage in the current months for all organizations. + # Shows the first date of usage in the current months for all organizations. attr_accessor :start_date - # # Shows the sum of all Synthetic browser tests over all hours in the current months for all organizations. + # Shows the sum of all Synthetic browser tests over all hours in the current months for all organizations. attr_accessor :synthetics_browser_check_calls_count_agg_sum - # # Shows the sum of all Synthetic API tests over all hours in the current months for all organizations. + # Shows the sum of all Synthetic API tests over all hours in the current months for all organizations. attr_accessor :synthetics_check_calls_count_agg_sum - # # Shows the sum of all Indexed Spans indexed over all hours in the current months for all organizations. + # Shows the sum of all Indexed Spans indexed over all hours in the current months for all organizations. attr_accessor :trace_search_indexed_events_count_agg_sum - # # Shows the sum of all tracing without limits bytes ingested over all hours in the current months for all organizations. + # Shows the sum of all tracing without limits bytes ingested over all hours in the current months for all organizations. attr_accessor :twol_ingested_events_bytes_agg_sum - # # An array of objects regarding hourly usage. + # An array of objects regarding hourly usage. attr_accessor :usage - # # Shows the 99th percentile of all vSphere hosts over all hours in the current months for all organizations. + # Shows the 99th percentile of all vSphere hosts over all hours in the current months for all organizations. attr_accessor :vsphere_host_top99p_sum # Attribute mapping from ruby-style variable name to JSON key. 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 38fc42feeb2..77710b492b8 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 @@ -23,10 +23,10 @@ class UsageSyntheticsAPIHour # @!visibility private attr_accessor :_unparsed - # # Contains the number of Synthetics API tests run. + # Contains the number of Synthetics API tests run. attr_accessor :check_calls_count - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour # Attribute mapping from ruby-style variable name to JSON key. 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 0b987815de1..d9069b2308e 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 @@ -23,7 +23,7 @@ class UsageSyntheticsAPIResponse # @!visibility private attr_accessor :_unparsed - # # Get hourly usage for Synthetics API tests. + # Get hourly usage for Synthetics API tests. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 ae05ab5195c..a019e2bb3d6 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 @@ -23,10 +23,10 @@ class UsageSyntheticsBrowserHour # @!visibility private attr_accessor :_unparsed - # # Contains the number of Synthetics Browser tests run. + # Contains the number of Synthetics Browser tests run. attr_accessor :browser_check_calls_count - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour # Attribute mapping from ruby-style variable name to JSON key. 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 af00584a58c..af8b522b993 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 @@ -23,7 +23,7 @@ class UsageSyntheticsBrowserResponse # @!visibility private attr_accessor :_unparsed - # # Get hourly usage for Synthetics Browser tests. + # Get hourly usage for Synthetics Browser tests. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 1bc52e025ad..ae4e894fa31 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb @@ -23,10 +23,10 @@ class UsageSyntheticsHour # @!visibility private attr_accessor :_unparsed - # # Contains the number of Synthetics API tests run. + # Contains the number of Synthetics API tests run. attr_accessor :check_calls_count - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour # Attribute mapping from ruby-style variable name to JSON key. 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 61c3443bd70..ad1210e7230 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_response.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_response.rb @@ -23,7 +23,7 @@ class UsageSyntheticsResponse # @!visibility private attr_accessor :_unparsed - # # Array with the number of hourly Synthetics test run for a given organization. + # Array with the number of hourly Synthetics test run for a given organization. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 cff325e6e0a..d438eafb06d 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb @@ -23,16 +23,16 @@ class UsageTimeseriesHour # @!visibility private attr_accessor :_unparsed - # # The hour for the usage. + # The hour for the usage. attr_accessor :hour - # # Contains the number of custom metrics that are inputs for aggregations (metric configured is custom). + # Contains the number of custom metrics that are inputs for aggregations (metric configured is custom). attr_accessor :num_custom_input_timeseries - # # Contains the number of custom metrics that are outputs for aggregations (metric configured is custom). + # Contains the number of custom metrics that are outputs for aggregations (metric configured is custom). attr_accessor :num_custom_output_timeseries - # # Contains sum of non-aggregation custom metrics and custom metrics that are outputs for aggregations. + # Contains sum of non-aggregation custom metrics and custom metrics that are outputs for aggregations. attr_accessor :num_custom_timeseries # Attribute mapping from ruby-style variable name to JSON key. 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 00d25078fe2..c24ba77fd70 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_response.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_response.rb @@ -23,7 +23,7 @@ class UsageTimeseriesResponse # @!visibility private attr_accessor :_unparsed - # # An array of objects regarding hourly usage of timeseries. + # An array of objects regarding hourly usage of timeseries. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. 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 cfb2b32a62a..d084a83e5a9 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 @@ -23,16 +23,16 @@ class UsageTopAvgMetricsHour # @!visibility private attr_accessor :_unparsed - # # Average number of timeseries per hour in which the metric occurs. + # Average number of timeseries per hour in which the metric occurs. attr_accessor :avg_metric_hour - # # Maximum number of timeseries per hour in which the metric occurs. + # Maximum number of timeseries per hour in which the metric occurs. attr_accessor :max_metric_hour - # # Contains the metric category. + # Contains the metric category. attr_accessor :metric_category - # # Contains the custom metric name. + # Contains the custom metric name. attr_accessor :metric_name # Attribute mapping from ruby-style variable name to JSON key. 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 ee1ec9c4430..f56ddce0447 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 @@ -23,13 +23,13 @@ class UsageTopAvgMetricsMetadata # @!visibility private attr_accessor :_unparsed - # # The day value from the user request that contains the returned usage data. (If day was used the request) + # The day value from the user request that contains the returned usage data. (If day was used the request) attr_accessor :day - # # The month value from the user request that contains the returned usage data. (If month was used the request) + # The month value from the user request that contains the returned usage data. (If month was used the request) attr_accessor :month - # # The metadata for the current pagination. + # The metadata for the current pagination. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. 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 83f119f3b6a..6f327601aeb 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 @@ -23,10 +23,10 @@ class UsageTopAvgMetricsResponse # @!visibility private attr_accessor :_unparsed - # # The object containing document metadata. + # The object containing document metadata. attr_accessor :metadata - # # Number of hourly recorded custom metrics for a given organization. + # Number of hourly recorded custom metrics for a given organization. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/user.rb b/lib/datadog_api_client/v1/models/user.rb index 3b8d0c550eb..f360d6d07dc 100644 --- a/lib/datadog_api_client/v1/models/user.rb +++ b/lib/datadog_api_client/v1/models/user.rb @@ -23,25 +23,25 @@ class User # @!visibility private attr_accessor :_unparsed - # # The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). + # The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). attr_accessor :access_role - # # The new disabled status of the user. + # The new disabled status of the user. attr_accessor :disabled - # # The new email of the user. + # The new email of the user. attr_accessor :email - # # The user handle, must be a valid email. + # The user handle, must be a valid email. attr_accessor :handle - # # Gravatar icon associated to the user. + # Gravatar icon associated to the user. attr_accessor :icon - # # The name of the user. + # The name of the user. attr_accessor :name - # # Whether or not the user logged in Datadog at least once. + # Whether or not the user logged in Datadog at least once. attr_accessor :verified # Attribute mapping from ruby-style variable name to JSON key. 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 73d06b74728..523e9e191d2 100644 --- a/lib/datadog_api_client/v1/models/user_disable_response.rb +++ b/lib/datadog_api_client/v1/models/user_disable_response.rb @@ -23,7 +23,7 @@ class UserDisableResponse # @!visibility private attr_accessor :_unparsed - # # Information pertaining to a user disabled for a given organization. + # Information pertaining to a user disabled for a given organization. attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. 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 c8325e1bab7..5adef74b0c5 100644 --- a/lib/datadog_api_client/v1/models/user_list_response.rb +++ b/lib/datadog_api_client/v1/models/user_list_response.rb @@ -23,7 +23,7 @@ class UserListResponse # @!visibility private attr_accessor :_unparsed - # # Array of users. + # Array of users. attr_accessor :users # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/user_response.rb b/lib/datadog_api_client/v1/models/user_response.rb index a77ce4ba62a..af6e9dd004d 100644 --- a/lib/datadog_api_client/v1/models/user_response.rb +++ b/lib/datadog_api_client/v1/models/user_response.rb @@ -23,7 +23,7 @@ class UserResponse # @!visibility private attr_accessor :_unparsed - # # Create, edit, and disable users. + # Create, edit, and disable users. attr_accessor :user # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/webhooks_integration.rb b/lib/datadog_api_client/v1/models/webhooks_integration.rb index 989d81d40ad..43b73554881 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration.rb @@ -23,25 +23,25 @@ class WebhooksIntegration # @!visibility private attr_accessor :_unparsed - # # If `null`, uses no header. + # If `null`, uses no header. # If given a JSON payload, these will be headers attached to your webhook. attr_accessor :custom_headers - # # Encoding type. Can be given either `json` or `form`. + # Encoding type. Can be given either `json` or `form`. attr_accessor :encode_as - # # The name of the webhook. It corresponds with ``. + # The name of the webhook. It corresponds with ``. # Learn more on how to use it in # [monitor notifications](https://docs.datadoghq.com/monitors/notify). attr_accessor :name - # # If `null`, uses the default payload. + # If `null`, uses the default payload. # If given a JSON payload, the webhook returns the payload # specified by the given payload. # [Webhooks variable usage](https://docs.datadoghq.com/integrations/webhooks/#usage). attr_accessor :payload - # # URL of the webhook. + # URL of the webhook. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. 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 bc6fdca9c87..808b2bbcdd2 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 @@ -23,14 +23,14 @@ class WebhooksIntegrationCustomVariable # @!visibility private attr_accessor :_unparsed - # # Make custom variable is secret or not. + # Make custom variable is secret or not. # If the custom variable is secret, the value is not returned in the response payload. attr_accessor :is_secret - # # The name of the variable. It corresponds with ``. + # The name of the variable. It corresponds with ``. attr_accessor :name - # # Value of the custom variable. + # Value of the custom variable. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 6c05eb2353f..63b406f5967 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 @@ -23,14 +23,14 @@ class WebhooksIntegrationCustomVariableResponse # @!visibility private attr_accessor :_unparsed - # # Make custom variable is secret or not. + # Make custom variable is secret or not. # If the custom variable is secret, the value is not returned in the response payload. attr_accessor :is_secret - # # The name of the variable. It corresponds with ``. It must only contains upper-case characters, integers or underscores. + # The name of the variable. It corresponds with ``. It must only contains upper-case characters, integers or underscores. attr_accessor :name - # # Value of the custom variable. It won't be returned if the variable is secret. + # Value of the custom variable. It won't be returned if the variable is secret. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 b41194175fd..b3f3673259f 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 @@ -25,14 +25,14 @@ class WebhooksIntegrationCustomVariableUpdateRequest # @!visibility private attr_accessor :_unparsed - # # Make custom variable is secret or not. + # Make custom variable is secret or not. # If the custom variable is secret, the value is not returned in the response payload. attr_accessor :is_secret - # # The name of the variable. It corresponds with ``. It must only contains upper-case characters, integers or underscores. + # The name of the variable. It corresponds with ``. It must only contains upper-case characters, integers or underscores. attr_accessor :name - # # Value of the custom variable. + # Value of the custom variable. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 2606801d411..827edfaf87c 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 @@ -25,25 +25,25 @@ class WebhooksIntegrationUpdateRequest # @!visibility private attr_accessor :_unparsed - # # If `null`, uses no header. + # If `null`, uses no header. # If given a JSON payload, these will be headers attached to your webhook. attr_accessor :custom_headers - # # Encoding type. Can be given either `json` or `form`. + # Encoding type. Can be given either `json` or `form`. attr_accessor :encode_as - # # The name of the webhook. It corresponds with ``. + # The name of the webhook. It corresponds with ``. # Learn more on how to use it in # [monitor notifications](https://docs.datadoghq.com/monitors/notify). attr_accessor :name - # # If `null`, uses the default payload. + # If `null`, uses the default payload. # If given a JSON payload, the webhook returns the payload # specified by the given payload. # [Webhooks variable usage](https://docs.datadoghq.com/integrations/webhooks/#usage). attr_accessor :payload - # # URL of the webhook. + # URL of the webhook. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/widget.rb b/lib/datadog_api_client/v1/models/widget.rb index 9155236c26e..3abcb355514 100644 --- a/lib/datadog_api_client/v1/models/widget.rb +++ b/lib/datadog_api_client/v1/models/widget.rb @@ -28,13 +28,13 @@ class Widget # @!visibility private attr_accessor :_unparsed - # # [Definition of the widget](https://docs.datadoghq.com/dashboards/widgets/). + # [Definition of the widget](https://docs.datadoghq.com/dashboards/widgets/). attr_accessor :definition - # # ID of the widget. + # ID of the widget. attr_accessor :id - # # The layout for a widget on a `free` or **new dashboard layout** dashboard. + # The layout for a widget on a `free` or **new dashboard layout** dashboard. attr_accessor :layout # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/widget_axis.rb b/lib/datadog_api_client/v1/models/widget_axis.rb index e901676a75b..58a42786d16 100644 --- a/lib/datadog_api_client/v1/models/widget_axis.rb +++ b/lib/datadog_api_client/v1/models/widget_axis.rb @@ -23,19 +23,19 @@ class WidgetAxis # @!visibility private attr_accessor :_unparsed - # # True includes zero. + # True includes zero. attr_accessor :include_zero - # # The label of the axis to display on the graph. + # The label of the axis to display on the graph. attr_accessor :label - # # Specifies the maximum value to show on the y-axis. It takes a number, or auto for default behavior. + # Specifies the maximum value to show on the y-axis. It takes a number, or auto for default behavior. attr_accessor :max - # # Specifies minimum value to show on the y-axis. It takes a number, or auto for default behavior. + # Specifies minimum value to show on the y-axis. It takes a number, or auto for default behavior. attr_accessor :min - # # Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, `pow##` (for example `pow2`, `pow0.5` etc.). + # Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, `pow##` (for example `pow2`, `pow0.5` etc.). attr_accessor :scale # Attribute mapping from ruby-style variable name to JSON key. 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 1dbce94297d..4649e1b537e 100644 --- a/lib/datadog_api_client/v1/models/widget_conditional_format.rb +++ b/lib/datadog_api_client/v1/models/widget_conditional_format.rb @@ -23,31 +23,31 @@ class WidgetConditionalFormat # @!visibility private attr_accessor :_unparsed - # # Comparator to apply. + # Comparator to apply. attr_accessor :comparator - # # Color palette to apply to the background, same values available as palette. + # Color palette to apply to the background, same values available as palette. attr_accessor :custom_bg_color - # # Color palette to apply to the foreground, same values available as palette. + # Color palette to apply to the foreground, same values available as palette. attr_accessor :custom_fg_color - # # True hides values. + # True hides values. attr_accessor :hide_value - # # Displays an image as the background. + # Displays an image as the background. attr_accessor :image_url - # # Metric from the request to correlate this conditional format with. + # Metric from the request to correlate this conditional format with. attr_accessor :metric - # # Color palette to apply. + # Color palette to apply. attr_accessor :palette - # # Defines the displayed timeframe. + # Defines the displayed timeframe. attr_accessor :timeframe - # # Value for the comparator. + # Value for the comparator. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 bcc3e77b707..1e8e63302e0 100644 --- a/lib/datadog_api_client/v1/models/widget_custom_link.rb +++ b/lib/datadog_api_client/v1/models/widget_custom_link.rb @@ -23,16 +23,16 @@ class WidgetCustomLink # @!visibility private attr_accessor :_unparsed - # # The flag for toggling context menu link visibility. + # The flag for toggling context menu link visibility. attr_accessor :is_hidden - # # The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. + # The label for the custom link URL. Keep the label short and descriptive. Use metrics and tags as variables. attr_accessor :label - # # The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. + # The URL of the custom link. URL must include `http` or `https`. A relative URL must start with `/`. attr_accessor :link - # # The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. + # The label ID that refers to a context menu link. Can be `logs`, `hosts`, `traces`, `profiles`, `processes`, `containers`, or `rum`. attr_accessor :override_label # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/widget_event.rb b/lib/datadog_api_client/v1/models/widget_event.rb index f3b2becf791..c0481be0fe2 100644 --- a/lib/datadog_api_client/v1/models/widget_event.rb +++ b/lib/datadog_api_client/v1/models/widget_event.rb @@ -26,10 +26,10 @@ class WidgetEvent # @!visibility private attr_accessor :_unparsed - # # Query definition. + # Query definition. attr_accessor :q - # # The execution method for multi-value filters. + # The execution method for multi-value filters. attr_accessor :tags_execution # Attribute mapping from ruby-style variable name to JSON key. 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 1c19344215f..1ed90d4e785 100644 --- a/lib/datadog_api_client/v1/models/widget_field_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_field_sort.rb @@ -23,10 +23,10 @@ class WidgetFieldSort # @!visibility private attr_accessor :_unparsed - # # Facet path for the column + # Facet path for the column attr_accessor :column - # # Widget sorting methods. + # Widget sorting methods. attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/widget_formula.rb b/lib/datadog_api_client/v1/models/widget_formula.rb index f79f1913791..3ac0749e9db 100644 --- a/lib/datadog_api_client/v1/models/widget_formula.rb +++ b/lib/datadog_api_client/v1/models/widget_formula.rb @@ -23,19 +23,19 @@ class WidgetFormula # @!visibility private attr_accessor :_unparsed - # # Expression alias. + # Expression alias. attr_accessor :_alias - # # Define a display mode for the table cell. + # Define a display mode for the table cell. attr_accessor :cell_display_mode - # # List of conditional formats. + # List of conditional formats. attr_accessor :conditional_formats - # # String expression built from queries, formulas, and functions. + # String expression built from queries, formulas, and functions. attr_accessor :formula - # # Options for limiting results returned. + # Options for limiting results returned. attr_accessor :limit # Attribute mapping from ruby-style variable name to JSON key. 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 a5f94c536bd..38140d60a86 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_limit.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_limit.rb @@ -23,10 +23,10 @@ class WidgetFormulaLimit # @!visibility private attr_accessor :_unparsed - # # Number of results to return. + # Number of results to return. attr_accessor :count - # # Direction of sort. + # Direction of sort. attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/widget_layout.rb b/lib/datadog_api_client/v1/models/widget_layout.rb index 866e7406311..a89cbf57597 100644 --- a/lib/datadog_api_client/v1/models/widget_layout.rb +++ b/lib/datadog_api_client/v1/models/widget_layout.rb @@ -23,20 +23,20 @@ class WidgetLayout # @!visibility private attr_accessor :_unparsed - # # The height of the widget. Should be a non-negative integer. + # The height of the widget. Should be a non-negative integer. attr_accessor :height - # # Whether the widget should be the first one on the second column in high density or not. + # Whether the widget should be the first one on the second column in high density or not. # **Note**: Only for the **new dashboard layout** and only one widget in the dashboard should have this property set to `true`. attr_accessor :is_column_break - # # The width of the widget. Should be a non-negative integer. + # The width of the widget. Should be a non-negative integer. attr_accessor :width - # # The position of the widget on the x (horizontal) axis. Should be a non-negative integer. + # The position of the widget on the x (horizontal) axis. Should be a non-negative integer. attr_accessor :x - # # The position of the widget on the y (vertical) axis. Should be a non-negative integer. + # The position of the widget on the y (vertical) axis. Should be a non-negative integer. attr_accessor :y # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/widget_marker.rb b/lib/datadog_api_client/v1/models/widget_marker.rb index 5ea571bbc03..3cd27702281 100644 --- a/lib/datadog_api_client/v1/models/widget_marker.rb +++ b/lib/datadog_api_client/v1/models/widget_marker.rb @@ -23,20 +23,20 @@ class WidgetMarker # @!visibility private attr_accessor :_unparsed - # # Combination of: + # Combination of: # - A severity error, warning, ok, or info # - A line type: dashed, solid, or bold # In this case of a Distribution widget, this can be set to be `x_axis_percentile`. # attr_accessor :display_type - # # Label to display over the marker. + # Label to display over the marker. attr_accessor :label - # # Timestamp for the widget. + # Timestamp for the widget. attr_accessor :time - # # Value to apply. Can be a single value y = 15 or a range of values 0 < y < 10. + # Value to apply. Can be a single value y = 15 or a range of values 0 < y < 10. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 78164fa3a63..08e3fdb72a1 100644 --- a/lib/datadog_api_client/v1/models/widget_request_style.rb +++ b/lib/datadog_api_client/v1/models/widget_request_style.rb @@ -23,13 +23,13 @@ class WidgetRequestStyle # @!visibility private attr_accessor :_unparsed - # # Type of lines displayed. + # Type of lines displayed. attr_accessor :line_type - # # Width of line displayed. + # Width of line displayed. attr_accessor :line_width - # # Color palette to apply to the widget. + # Color palette to apply to the widget. attr_accessor :palette # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/widget_style.rb b/lib/datadog_api_client/v1/models/widget_style.rb index 2afbd96e5c9..3ec0c0558c6 100644 --- a/lib/datadog_api_client/v1/models/widget_style.rb +++ b/lib/datadog_api_client/v1/models/widget_style.rb @@ -23,7 +23,7 @@ class WidgetStyle # @!visibility private attr_accessor :_unparsed - # # Color palette to apply to the widget. + # Color palette to apply to the widget. attr_accessor :palette # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/widget_time.rb b/lib/datadog_api_client/v1/models/widget_time.rb index 7eb82710ed6..87065849fea 100644 --- a/lib/datadog_api_client/v1/models/widget_time.rb +++ b/lib/datadog_api_client/v1/models/widget_time.rb @@ -23,7 +23,7 @@ class WidgetTime # @!visibility private attr_accessor :_unparsed - # # The available timeframes depend on the widget you are using. + # The available timeframes depend on the widget you are using. attr_accessor :live_span # Attribute mapping from ruby-style variable name to JSON key. 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 1e286f4033b..1b6a282a5c0 100644 --- a/lib/datadog_api_client/v2/models/api_error_response.rb +++ b/lib/datadog_api_client/v2/models/api_error_response.rb @@ -23,7 +23,7 @@ class APIErrorResponse # @!visibility private attr_accessor :_unparsed - # # A list of errors. + # A list of errors. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. 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 ff062f88c8d..683b7bff60f 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 @@ -23,7 +23,7 @@ class APIKeyCreateAttributes # @!visibility private attr_accessor :_unparsed - # # Name of the API key. + # Name of the API key. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 e845ebdbb15..86f33a63b57 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 @@ -23,10 +23,10 @@ class APIKeyCreateData # @!visibility private attr_accessor :_unparsed - # # Attributes used to create an API Key. + # Attributes used to create an API Key. attr_accessor :attributes - # # API Keys resource type. + # API Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 cb096d634c1..17337734a9f 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 @@ -23,7 +23,7 @@ class APIKeyCreateRequest # @!visibility private attr_accessor :_unparsed - # # Object used to create an API key. + # Object used to create an API key. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 5ea5e1097c2..7fc8a570fe7 100644 --- a/lib/datadog_api_client/v2/models/api_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/api_key_relationships.rb @@ -23,10 +23,10 @@ class APIKeyRelationships # @!visibility private attr_accessor :_unparsed - # # Relationship to user. + # Relationship to user. attr_accessor :created_by - # # Relationship to user. + # Relationship to user. attr_accessor :modified_by # Attribute mapping from ruby-style variable name to JSON key. 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 9134b9be9b6..49e801ec614 100644 --- a/lib/datadog_api_client/v2/models/api_key_response.rb +++ b/lib/datadog_api_client/v2/models/api_key_response.rb @@ -23,10 +23,10 @@ class APIKeyResponse # @!visibility private attr_accessor :_unparsed - # # Datadog API key. + # Datadog API key. attr_accessor :data - # # Array of objects related to the API key. + # Array of objects related to the API key. attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. 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 b3ef707235b..3127626aeb7 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 @@ -23,7 +23,7 @@ class APIKeyUpdateAttributes # @!visibility private attr_accessor :_unparsed - # # Name of the API key. + # Name of the API key. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 9135c355318..f22752a2cae 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 @@ -23,13 +23,13 @@ class APIKeyUpdateData # @!visibility private attr_accessor :_unparsed - # # Attributes used to update an API Key. + # Attributes used to update an API Key. attr_accessor :attributes - # # ID of the API key. + # ID of the API key. attr_accessor :id - # # API Keys resource type. + # API Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 0115b42ce5c..23cc5bfdccf 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 @@ -23,7 +23,7 @@ class APIKeyUpdateRequest # @!visibility private attr_accessor :_unparsed - # # Object used to update an API key. + # Object used to update an API key. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 e7a4f072050..d1c3c6aec66 100644 --- a/lib/datadog_api_client/v2/models/api_keys_response.rb +++ b/lib/datadog_api_client/v2/models/api_keys_response.rb @@ -23,10 +23,10 @@ class APIKeysResponse # @!visibility private attr_accessor :_unparsed - # # Array of API keys. + # Array of API keys. attr_accessor :data - # # Array of objects related to the API key. + # Array of objects related to the API key. attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. 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 b7be218168e..f3231ced41b 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 @@ -23,10 +23,10 @@ class ApplicationKeyCreateAttributes # @!visibility private attr_accessor :_unparsed - # # Name of the application key. + # Name of the application key. attr_accessor :name - # # Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys. + # Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys. attr_accessor :scopes # Attribute mapping from ruby-style variable name to JSON key. 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 554688c5b20..8e911ee7d20 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 @@ -23,10 +23,10 @@ class ApplicationKeyCreateData # @!visibility private attr_accessor :_unparsed - # # Attributes used to create an application Key. + # Attributes used to create an application Key. attr_accessor :attributes - # # Application Keys resource type. + # Application Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 999374ccbc0..e09512951d6 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 @@ -23,7 +23,7 @@ class ApplicationKeyCreateRequest # @!visibility private attr_accessor :_unparsed - # # Object used to create an application key. + # Object used to create an application key. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 66c8e57c338..66c27fc6741 100644 --- a/lib/datadog_api_client/v2/models/application_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/application_key_relationships.rb @@ -23,7 +23,7 @@ class ApplicationKeyRelationships # @!visibility private attr_accessor :_unparsed - # # Relationship to user. + # Relationship to user. attr_accessor :owned_by # Attribute mapping from ruby-style variable name to JSON key. 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 0e59d9e5c6a..900c23ee2c3 100644 --- a/lib/datadog_api_client/v2/models/application_key_response.rb +++ b/lib/datadog_api_client/v2/models/application_key_response.rb @@ -23,10 +23,10 @@ class ApplicationKeyResponse # @!visibility private attr_accessor :_unparsed - # # Datadog application key. + # Datadog application key. attr_accessor :data - # # Array of objects related to the application key. + # Array of objects related to the application key. attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. 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 22b5a056544..3e23e27191c 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 @@ -23,10 +23,10 @@ class ApplicationKeyUpdateAttributes # @!visibility private attr_accessor :_unparsed - # # Name of the application key. + # Name of the application key. attr_accessor :name - # # Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys. + # Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys. attr_accessor :scopes # Attribute mapping from ruby-style variable name to JSON key. 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 8032e82cce0..9a8389baf0f 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 @@ -23,13 +23,13 @@ class ApplicationKeyUpdateData # @!visibility private attr_accessor :_unparsed - # # Attributes used to update an application Key. + # Attributes used to update an application Key. attr_accessor :attributes - # # ID of the application key. + # ID of the application key. attr_accessor :id - # # Application Keys resource type. + # Application Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 4d9b37be6e5..c8254c7268d 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 @@ -23,7 +23,7 @@ class ApplicationKeyUpdateRequest # @!visibility private attr_accessor :_unparsed - # # Object used to update an application key. + # Object used to update an application key. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 14f0abdb4c9..a88a6e5915b 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 @@ -23,37 +23,37 @@ class CloudWorkloadSecurityAgentRuleAttributes # @!visibility private attr_accessor :_unparsed - # # The category of the Agent rule. + # The category of the Agent rule. attr_accessor :category - # # When the Agent rule was created, timestamp in milliseconds. + # When the Agent rule was created, timestamp in milliseconds. attr_accessor :creation_date - # # The attributes of the user who created the Agent rule. + # The attributes of the user who created the Agent rule. attr_accessor :creator - # # Whether the rule is included by default. + # Whether the rule is included by default. attr_accessor :default_rule - # # The description of the Agent rule. + # The description of the Agent rule. attr_accessor :description - # # Whether the Agent rule is enabled. + # Whether the Agent rule is enabled. attr_accessor :enabled - # # The SECL expression of the Agent rule. + # The SECL expression of the Agent rule. attr_accessor :expression - # # The name of the Agent rule. + # The name of the Agent rule. attr_accessor :name - # # When the Agent rule was last updated, timestamp in milliseconds. + # When the Agent rule was last updated, timestamp in milliseconds. attr_accessor :updated_at - # # The attributes of the user who last updated the Agent rule. + # The attributes of the user who last updated the Agent rule. attr_accessor :updater - # # The version of the Agent rule. + # The version of the Agent rule. attr_accessor :version # Attribute mapping from ruby-style variable name to JSON key. 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 a09092c8af1..f8df343666a 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 @@ -23,16 +23,16 @@ class CloudWorkloadSecurityAgentRuleCreateAttributes # @!visibility private attr_accessor :_unparsed - # # The description of the Agent rule. + # The description of the Agent rule. attr_accessor :description - # # Whether the Agent rule is enabled. + # Whether the Agent rule is enabled. attr_accessor :enabled - # # The SECL expression of the Agent rule. + # The SECL expression of the Agent rule. attr_accessor :expression - # # The name of the Agent rule. + # The name of the Agent rule. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 e6cd26a6c68..7cc7bc7da1a 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 @@ -23,10 +23,10 @@ class CloudWorkloadSecurityAgentRuleCreateData # @!visibility private attr_accessor :_unparsed - # # Create a new Cloud Workload Security Agent rule. + # Create a new Cloud Workload Security Agent rule. attr_accessor :attributes - # # The type of the resource. The value should always be `agent_rule`. + # The type of the resource. The value should always be `agent_rule`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 90deeecad70..b98b704c782 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 @@ -23,7 +23,7 @@ class CloudWorkloadSecurityAgentRuleCreateRequest # @!visibility private attr_accessor :_unparsed - # # Object for a single Agent rule. + # Object for a single Agent rule. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 7eff13fb6c8..76215fa175e 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 @@ -23,10 +23,10 @@ class CloudWorkloadSecurityAgentRuleCreatorAttributes # @!visibility private attr_accessor :_unparsed - # # The handle of the user. + # The handle of the user. attr_accessor :handle - # # The name of the user. + # The name of the user. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 c592c60e361..61094dc3f17 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 @@ -23,13 +23,13 @@ class CloudWorkloadSecurityAgentRuleData # @!visibility private attr_accessor :_unparsed - # # A Cloud Workload Security Agent rule returned by the API. + # A Cloud Workload Security Agent rule returned by the API. attr_accessor :attributes - # # The ID of the Agent rule. + # The ID of the Agent rule. attr_accessor :id - # # The type of the resource. The value should always be `agent_rule`. + # The type of the resource. The value should always be `agent_rule`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 31ac67b9ca8..16dcfc50242 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 @@ -23,7 +23,7 @@ class CloudWorkloadSecurityAgentRuleResponse # @!visibility private attr_accessor :_unparsed - # # Object for a single Agent rule. + # Object for a single Agent rule. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 9c9e10e4fef..c0646999a1d 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 @@ -23,13 +23,13 @@ class CloudWorkloadSecurityAgentRuleUpdateAttributes # @!visibility private attr_accessor :_unparsed - # # The description of the Agent rule. + # The description of the Agent rule. attr_accessor :description - # # Whether the Agent rule is enabled. + # Whether the Agent rule is enabled. attr_accessor :enabled - # # The SECL expression of the Agent rule. + # The SECL expression of the Agent rule. attr_accessor :expression # Attribute mapping from ruby-style variable name to JSON key. 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 bf84d794fb0..871869f7877 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 @@ -23,10 +23,10 @@ class CloudWorkloadSecurityAgentRuleUpdateData # @!visibility private attr_accessor :_unparsed - # # Update an existing Cloud Workload Security Agent rule. + # Update an existing Cloud Workload Security Agent rule. attr_accessor :attributes - # # The type of the resource. The value should always be `agent_rule`. + # The type of the resource. The value should always be `agent_rule`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 7b1630569df..ce3a0c9e95f 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 @@ -23,7 +23,7 @@ class CloudWorkloadSecurityAgentRuleUpdateRequest # @!visibility private attr_accessor :_unparsed - # # Object for a single Agent rule. + # Object for a single Agent rule. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 345139a56a0..23c6ac1c841 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 @@ -23,10 +23,10 @@ class CloudWorkloadSecurityAgentRuleUpdaterAttributes # @!visibility private attr_accessor :_unparsed - # # The handle of the user. + # The handle of the user. attr_accessor :handle - # # The name of the user. + # The name of the user. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 4d38f5be3cb..6623f85fc00 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 @@ -23,7 +23,7 @@ class CloudWorkloadSecurityAgentRulesListResponse # @!visibility private attr_accessor :_unparsed - # # A list of Agent rules objects. + # A list of Agent rules objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/creator.rb b/lib/datadog_api_client/v2/models/creator.rb index 9aaa6f5ecc4..b3fd88a33aa 100644 --- a/lib/datadog_api_client/v2/models/creator.rb +++ b/lib/datadog_api_client/v2/models/creator.rb @@ -23,13 +23,13 @@ class Creator # @!visibility private attr_accessor :_unparsed - # # Email of the creator. + # Email of the creator. attr_accessor :email - # # Handle of the creator. + # Handle of the creator. attr_accessor :handle - # # Name of the creator. + # Name of the creator. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 ff81ba40040..c28492e226b 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 @@ -23,7 +23,7 @@ class DashboardListAddItemsRequest # @!visibility private attr_accessor :_unparsed - # # List of dashboards to add the dashboard list. + # List of dashboards to add the dashboard list. attr_accessor :dashboards # Attribute mapping from ruby-style variable name to JSON key. 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 b213f3e439f..5e3f53e2f58 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 @@ -23,7 +23,7 @@ class DashboardListAddItemsResponse # @!visibility private attr_accessor :_unparsed - # # List of dashboards added to the dashboard list. + # List of dashboards added to the dashboard list. attr_accessor :added_dashboards_to_list # Attribute mapping from ruby-style variable name to JSON key. 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 25279793f9b..fa47528b3a9 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 @@ -23,7 +23,7 @@ class DashboardListDeleteItemsRequest # @!visibility private attr_accessor :_unparsed - # # List of dashboards to delete from the dashboard list. + # List of dashboards to delete from the dashboard list. attr_accessor :dashboards # Attribute mapping from ruby-style variable name to JSON key. 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 d6009dc23ce..1c6da1d376b 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 @@ -23,7 +23,7 @@ class DashboardListDeleteItemsResponse # @!visibility private attr_accessor :_unparsed - # # List of dashboards deleted from the dashboard list. + # List of dashboards deleted from the dashboard list. attr_accessor :deleted_dashboards_from_list # Attribute mapping from ruby-style variable name to JSON key. 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 7921fc85120..bd7734c8573 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item.rb @@ -23,40 +23,40 @@ class DashboardListItem # @!visibility private attr_accessor :_unparsed - # # Creator of the object. + # Creator of the object. attr_accessor :author - # # Date of creation of the dashboard. + # Date of creation of the dashboard. attr_accessor :created - # # URL to the icon of the dashboard. + # URL to the icon of the dashboard. attr_accessor :icon - # # ID of the dashboard. + # ID of the dashboard. attr_accessor :id - # # Whether or not the dashboard is in the favorites. + # Whether or not the dashboard is in the favorites. attr_accessor :is_favorite - # # Whether or not the dashboard is read only. + # Whether or not the dashboard is read only. attr_accessor :is_read_only - # # Whether the dashboard is publicly shared or not. + # Whether the dashboard is publicly shared or not. attr_accessor :is_shared - # # Date of last edition of the dashboard. + # Date of last edition of the dashboard. attr_accessor :modified - # # Popularity of the dashboard. + # Popularity of the dashboard. attr_accessor :popularity - # # Title of the dashboard. + # Title of the dashboard. attr_accessor :title - # # The type of the dashboard. + # The type of the dashboard. attr_accessor :type - # # URL path to the dashboard. + # URL path to the dashboard. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. 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 4519d481b35..a86884e6212 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 @@ -23,10 +23,10 @@ class DashboardListItemRequest # @!visibility private attr_accessor :_unparsed - # # ID of the dashboard. + # ID of the dashboard. attr_accessor :id - # # The type of the dashboard. + # The type of the dashboard. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 7d1ad673aca..9b6698b5265 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 @@ -23,10 +23,10 @@ class DashboardListItemResponse # @!visibility private attr_accessor :_unparsed - # # ID of the dashboard. + # ID of the dashboard. attr_accessor :id - # # The type of the dashboard. + # The type of the dashboard. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 c34ab6ecd99..56bc07953e0 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_items.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_items.rb @@ -23,10 +23,10 @@ class DashboardListItems # @!visibility private attr_accessor :_unparsed - # # List of dashboards in the dashboard list. + # List of dashboards in the dashboard list. attr_accessor :dashboards - # # Number of dashboards in the dashboard list. + # Number of dashboards in the dashboard list. attr_accessor :total # Attribute mapping from ruby-style variable name to JSON key. 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 a981d5096c1..6148ca617c9 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 @@ -23,7 +23,7 @@ class DashboardListUpdateItemsRequest # @!visibility private attr_accessor :_unparsed - # # List of dashboards to update the dashboard list to. + # List of dashboards to update the dashboard list to. attr_accessor :dashboards # Attribute mapping from ruby-style variable name to JSON key. 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 3a682159705..59065c27b2e 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 @@ -23,7 +23,7 @@ class DashboardListUpdateItemsResponse # @!visibility private attr_accessor :_unparsed - # # List of dashboards in the dashboard list. + # List of dashboards in the dashboard list. attr_accessor :dashboards # Attribute mapping from ruby-style variable name to JSON key. 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 eecbdfa47d7..9c4c25941bb 100644 --- a/lib/datadog_api_client/v2/models/full_api_key.rb +++ b/lib/datadog_api_client/v2/models/full_api_key.rb @@ -23,16 +23,16 @@ class FullAPIKey # @!visibility private attr_accessor :_unparsed - # # Attributes of a full API key. + # Attributes of a full API key. attr_accessor :attributes - # # ID of the API key. + # ID of the API key. attr_accessor :id - # # Resources related to the API key. + # Resources related to the API key. attr_accessor :relationships - # # API Keys resource type. + # API Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 5a13babff49..bffac009a4e 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 @@ -23,19 +23,19 @@ class FullAPIKeyAttributes # @!visibility private attr_accessor :_unparsed - # # Creation date of the API key. + # Creation date of the API key. attr_accessor :created_at - # # The API key. + # The API key. attr_accessor :key - # # The last four characters of the API key. + # The last four characters of the API key. attr_accessor :last4 - # # Date the API key was last modified. + # Date the API key was last modified. attr_accessor :modified_at - # # Name of the API key. + # Name of the API key. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 0f44c9c45e3..caa51dc55b7 100644 --- a/lib/datadog_api_client/v2/models/full_application_key.rb +++ b/lib/datadog_api_client/v2/models/full_application_key.rb @@ -23,16 +23,16 @@ class FullApplicationKey # @!visibility private attr_accessor :_unparsed - # # Attributes of a full application key. + # Attributes of a full application key. attr_accessor :attributes - # # ID of the application key. + # ID of the application key. attr_accessor :id - # # Resources related to the application key. + # Resources related to the application key. attr_accessor :relationships - # # Application Keys resource type. + # Application Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3d24b2d02cb..b1aab798565 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 @@ -23,19 +23,19 @@ class FullApplicationKeyAttributes # @!visibility private attr_accessor :_unparsed - # # Creation date of the application key. + # Creation date of the application key. attr_accessor :created_at - # # The application key. + # The application key. attr_accessor :key - # # The last four characters of the application key. + # The last four characters of the application key. attr_accessor :last4 - # # Name of the application key. + # Name of the application key. attr_accessor :name - # # Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys. + # Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys. attr_accessor :scopes # Attribute mapping from ruby-style variable name to JSON key. 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 98bcba0aa66..85ab8cdb99d 100644 --- a/lib/datadog_api_client/v2/models/http_log_error.rb +++ b/lib/datadog_api_client/v2/models/http_log_error.rb @@ -23,13 +23,13 @@ class HTTPLogError # @!visibility private attr_accessor :_unparsed - # # Error message. + # Error message. attr_accessor :detail - # # Error code. + # Error code. attr_accessor :status - # # Error title. + # Error title. attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. 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 6c7d8bfcad8..d782a2cc486 100644 --- a/lib/datadog_api_client/v2/models/http_log_errors.rb +++ b/lib/datadog_api_client/v2/models/http_log_errors.rb @@ -23,7 +23,7 @@ class HTTPLogErrors # @!visibility private attr_accessor :_unparsed - # # Structured errors. + # Structured errors. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. 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 bc438cad969..01df12d83fa 100644 --- a/lib/datadog_api_client/v2/models/http_log_item.rb +++ b/lib/datadog_api_client/v2/models/http_log_item.rb @@ -23,23 +23,23 @@ class HTTPLogItem # @!visibility private attr_accessor :_unparsed - # # The integration name associated with your log: the technology from which the log originated. + # The integration name associated with your log: the technology from which the log originated. # When it matches an integration name, Datadog automatically installs the corresponding parsers and facets. # See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes). attr_accessor :ddsource - # # Tags associated with your logs. + # Tags associated with your logs. attr_accessor :ddtags - # # The name of the originating host of the log. + # The name of the originating host of the log. attr_accessor :hostname - # # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) + # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) # of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. # That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. attr_accessor :message - # # The name of the application or service generating the log events. + # The name of the application or service generating the log events. # It is used to switch from Logs to APM, so make sure you define the same value when you use both products. # See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes). attr_accessor :service 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 496efa97a4d..a7e695c7f1f 100644 --- a/lib/datadog_api_client/v2/models/incident_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_create_attributes.rb @@ -23,19 +23,19 @@ class IncidentCreateAttributes # @!visibility private attr_accessor :_unparsed - # # A flag indicating whether the incident caused customer impact. + # A flag indicating whether the incident caused customer impact. attr_accessor :customer_impacted - # # A condensed view of the user-defined fields for which to create initial selections. + # A condensed view of the user-defined fields for which to create initial selections. attr_accessor :fields - # # An array of initial timeline cells to be placed at the beginning of the incident timeline. + # An array of initial timeline cells to be placed at the beginning of the incident timeline. attr_accessor :initial_cells - # # Notification handles that will be notified of the incident at creation. + # Notification handles that will be notified of the incident at creation. attr_accessor :notification_handles - # # The title of the incident, which summarizes what happened. + # The title of the incident, which summarizes what happened. attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. 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 463775cfe89..20ef53f9e54 100644 --- a/lib/datadog_api_client/v2/models/incident_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_create_data.rb @@ -23,13 +23,13 @@ class IncidentCreateData # @!visibility private attr_accessor :_unparsed - # # The incident's attributes for a create request. + # The incident's attributes for a create request. attr_accessor :attributes - # # The relationships the incident will have with other resources once created. + # The relationships the incident will have with other resources once created. attr_accessor :relationships - # # Incident resource type. + # Incident resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 44026288aca..8bb1bf800ad 100644 --- a/lib/datadog_api_client/v2/models/incident_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_create_relationships.rb @@ -23,7 +23,7 @@ class IncidentCreateRelationships # @!visibility private attr_accessor :_unparsed - # # Relationship to user. + # Relationship to user. attr_accessor :commander # Attribute mapping from ruby-style variable name to JSON key. 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 7c0d213c6ad..fecf57b0419 100644 --- a/lib/datadog_api_client/v2/models/incident_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_create_request.rb @@ -23,7 +23,7 @@ class IncidentCreateRequest # @!visibility private attr_accessor :_unparsed - # # Incident data for a create request. + # Incident data for a create request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 4eaa0357c99..c5581fa6341 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 @@ -23,10 +23,10 @@ class IncidentFieldAttributesMultipleValue # @!visibility private attr_accessor :_unparsed - # # Type of the multiple value field definitions. + # Type of the multiple value field definitions. attr_accessor :type - # # The multiple values selected for this field. + # The multiple values selected for this field. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 32fcb9d7b10..280f981fb90 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 @@ -23,10 +23,10 @@ class IncidentFieldAttributesSingleValue # @!visibility private attr_accessor :_unparsed - # # Type of the single value field definitions. + # Type of the single value field definitions. attr_accessor :type - # # The single value selected for this field. + # The single value selected for this field. attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 9e15144e9d8..480da22863f 100644 --- a/lib/datadog_api_client/v2/models/incident_notification_handle.rb +++ b/lib/datadog_api_client/v2/models/incident_notification_handle.rb @@ -23,10 +23,10 @@ class IncidentNotificationHandle # @!visibility private attr_accessor :_unparsed - # # The name of the notified handle. + # The name of the notified handle. attr_accessor :display_name - # # The email address used for the notification. + # The email address used for the notification. attr_accessor :handle # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/incident_response.rb b/lib/datadog_api_client/v2/models/incident_response.rb index b02e77dbb7b..e5c1091bd0a 100644 --- a/lib/datadog_api_client/v2/models/incident_response.rb +++ b/lib/datadog_api_client/v2/models/incident_response.rb @@ -23,10 +23,10 @@ class IncidentResponse # @!visibility private attr_accessor :_unparsed - # # Incident data from a response. + # Incident data from a response. attr_accessor :data - # # Included related resources that the user requested. + # Included related resources that the user requested. attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. 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 d80c06f1dd3..78b05a5d6f9 100644 --- a/lib/datadog_api_client/v2/models/incident_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_response_attributes.rb @@ -23,60 +23,60 @@ class IncidentResponseAttributes # @!visibility private attr_accessor :_unparsed - # # Timestamp when the incident was created. + # Timestamp when the incident was created. attr_accessor :created - # # Length of the incident's customer impact in seconds. + # Length of the incident's customer impact in seconds. # Equals the difference between `customer_impact_start` and `customer_impact_end`. attr_accessor :customer_impact_duration - # # Timestamp when customers were no longer impacted by the incident. + # Timestamp when customers were no longer impacted by the incident. attr_accessor :customer_impact_end - # # A summary of the impact customers experienced during the incident. + # A summary of the impact customers experienced during the incident. attr_accessor :customer_impact_scope - # # Timestamp when customers began being impacted by the incident. + # Timestamp when customers began being impacted by the incident. attr_accessor :customer_impact_start - # # A flag indicating whether the incident caused customer impact. + # A flag indicating whether the incident caused customer impact. attr_accessor :customer_impacted - # # Timestamp when the incident was detected. + # Timestamp when the incident was detected. attr_accessor :detected - # # A condensed view of the user-defined fields attached to incidents. + # A condensed view of the user-defined fields attached to incidents. attr_accessor :fields - # # Timestamp when the incident was last modified. + # Timestamp when the incident was last modified. attr_accessor :modified - # # Notification handles that will be notified of the incident during update. + # Notification handles that will be notified of the incident during update. attr_accessor :notification_handles - # # The UUID of the postmortem object attached to the incident. + # The UUID of the postmortem object attached to the incident. attr_accessor :postmortem_id - # # The monotonically increasing integer ID for the incident. + # The monotonically increasing integer ID for the incident. attr_accessor :public_id - # # Timestamp when the incident's state was set to resolved. + # Timestamp when the incident's state was set to resolved. attr_accessor :resolved - # # The amount of time in seconds to detect the incident. + # The amount of time in seconds to detect the incident. # Equals the difference between `customer_impact_start` and `detected`. attr_accessor :time_to_detect - # # The amount of time in seconds to call incident after detection. Equals the difference of `detected` and `created`. + # The amount of time in seconds to call incident after detection. Equals the difference of `detected` and `created`. attr_accessor :time_to_internal_response - # # The amount of time in seconds to resolve customer impact after detecting the issue. Equals the difference between `customer_impact_end` and `detected`. + # The amount of time in seconds to resolve customer impact after detecting the issue. Equals the difference between `customer_impact_end` and `detected`. attr_accessor :time_to_repair - # # The amount of time in seconds to resolve the incident after it was created. Equals the difference between `created` and `resolved`. + # The amount of time in seconds to resolve the incident after it was created. Equals the difference between `created` and `resolved`. attr_accessor :time_to_resolve - # # The title of the incident, which summarizes what happened. + # The title of the incident, which summarizes what happened. attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. 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 56e47f42c9c..71a16f75d4d 100644 --- a/lib/datadog_api_client/v2/models/incident_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_response_data.rb @@ -23,16 +23,16 @@ class IncidentResponseData # @!visibility private attr_accessor :_unparsed - # # The incident's attributes from a response. + # The incident's attributes from a response. attr_accessor :attributes - # # The incident's ID. + # The incident's ID. attr_accessor :id - # # The incident's relationships from a response. + # The incident's relationships from a response. attr_accessor :relationships - # # Incident resource type. + # Incident resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 50949cfa120..7d467a134f4 100644 --- a/lib/datadog_api_client/v2/models/incident_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_response_relationships.rb @@ -23,19 +23,19 @@ class IncidentResponseRelationships # @!visibility private attr_accessor :_unparsed - # # Relationship to user. + # Relationship to user. attr_accessor :commander_user - # # Relationship to user. + # Relationship to user. attr_accessor :created_by_user - # # A relationship reference for multiple integration metadata objects. + # A relationship reference for multiple integration metadata objects. attr_accessor :integrations - # # Relationship to user. + # Relationship to user. attr_accessor :last_modified_by_user - # # A relationship reference for postmortems. + # A relationship reference for postmortems. attr_accessor :postmortem # Attribute mapping from ruby-style variable name to JSON key. 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 903a775ac1e..db2730f16ce 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 @@ -23,7 +23,7 @@ class IncidentServiceCreateAttributes # @!visibility private attr_accessor :_unparsed - # # Name of the incident service. + # Name of the incident service. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 4ef049d8d18..01f1dae7d9f 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 @@ -23,13 +23,13 @@ class IncidentServiceCreateData # @!visibility private attr_accessor :_unparsed - # # The incident service's attributes for a create request. + # The incident service's attributes for a create request. attr_accessor :attributes - # # The incident service's relationships. + # The incident service's relationships. attr_accessor :relationships - # # Incident service resource type. + # Incident service resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 5ae097498b3..b6289418b41 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 @@ -23,7 +23,7 @@ class IncidentServiceCreateRequest # @!visibility private attr_accessor :_unparsed - # # Incident Service payload for create requests. + # Incident Service payload for create requests. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 3c85d7db7c7..0b9ea5465e4 100644 --- a/lib/datadog_api_client/v2/models/incident_service_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_service_relationships.rb @@ -23,10 +23,10 @@ class IncidentServiceRelationships # @!visibility private attr_accessor :_unparsed - # # Relationship to user. + # Relationship to user. attr_accessor :created_by - # # Relationship to user. + # Relationship to user. attr_accessor :last_modified_by # Attribute mapping from ruby-style variable name to JSON key. 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 d078b1a484f..7889bb667fe 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response.rb @@ -23,10 +23,10 @@ class IncidentServiceResponse # @!visibility private attr_accessor :_unparsed - # # Incident Service data from responses. + # Incident Service data from responses. attr_accessor :data - # # Included objects from relationships. + # Included objects from relationships. attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. 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 18b38acb4c2..c0bbf5182fe 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 @@ -23,13 +23,13 @@ class IncidentServiceResponseAttributes # @!visibility private attr_accessor :_unparsed - # # Timestamp of when the incident service was created. + # Timestamp of when the incident service was created. attr_accessor :created - # # Timestamp of when the incident service was modified. + # Timestamp of when the incident service was modified. attr_accessor :modified - # # Name of the incident service. + # Name of the incident service. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 85e316cfad7..4b9077d415b 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 @@ -23,16 +23,16 @@ class IncidentServiceResponseData # @!visibility private attr_accessor :_unparsed - # # The incident service's attributes from a response. + # The incident service's attributes from a response. attr_accessor :attributes - # # The incident service's ID. + # The incident service's ID. attr_accessor :id - # # The incident service's relationships. + # The incident service's relationships. attr_accessor :relationships - # # Incident service resource type. + # Incident service resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 2d535ca21b5..e111f8436bf 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 @@ -23,7 +23,7 @@ class IncidentServiceUpdateAttributes # @!visibility private attr_accessor :_unparsed - # # Name of the incident service. + # Name of the incident service. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 d46f2fa7f5d..8d6815462a0 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 @@ -23,16 +23,16 @@ class IncidentServiceUpdateData # @!visibility private attr_accessor :_unparsed - # # The incident service's attributes for an update request. + # The incident service's attributes for an update request. attr_accessor :attributes - # # The incident service's ID. + # The incident service's ID. attr_accessor :id - # # The incident service's relationships. + # The incident service's relationships. attr_accessor :relationships - # # Incident service resource type. + # Incident service resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 ffd0ab24c5c..d70ec1b3d6a 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 @@ -23,7 +23,7 @@ class IncidentServiceUpdateRequest # @!visibility private attr_accessor :_unparsed - # # Incident Service payload for update requests. + # Incident Service payload for update requests. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 215e5db9565..e73834d50e3 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response.rb @@ -23,13 +23,13 @@ class IncidentServicesResponse # @!visibility private attr_accessor :_unparsed - # # An array of incident services. + # An array of incident services. attr_accessor :data - # # Included related resources which the user requested. + # Included related resources which the user requested. attr_accessor :included - # # The metadata object containing pagination metadata. + # The metadata object containing pagination metadata. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/incident_services_response_meta.rb b/lib/datadog_api_client/v2/models/incident_services_response_meta.rb index c32fa332778..94af788b146 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response_meta.rb @@ -23,7 +23,7 @@ class IncidentServicesResponseMeta # @!visibility private attr_accessor :_unparsed - # # Pagination properties. + # Pagination properties. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb index 6879a67443a..de2a32a790a 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb @@ -23,13 +23,13 @@ class IncidentServicesResponseMetaPagination # @!visibility private attr_accessor :_unparsed - # # The index of the first element in the next page of results. Equal to page size added to the current offset. + # The index of the first element in the next page of results. Equal to page size added to the current offset. attr_accessor :next_offset - # # The index of the first element in the results. + # The index of the first element in the results. attr_accessor :offset - # # Maximum size of pages to return. + # Maximum size of pages to return. attr_accessor :size # Attribute mapping from ruby-style variable name to JSON key. 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 39cf3b9a102..6e919c0fec0 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 @@ -23,7 +23,7 @@ class IncidentTeamCreateAttributes # @!visibility private attr_accessor :_unparsed - # # Name of the incident team. + # Name of the incident team. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 7a1bb4ef459..13e7e1dcbef 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 @@ -23,13 +23,13 @@ class IncidentTeamCreateData # @!visibility private attr_accessor :_unparsed - # # The incident team's attributes for a create request. + # The incident team's attributes for a create request. attr_accessor :attributes - # # The incident team's relationships. + # The incident team's relationships. attr_accessor :relationships - # # Incident Team resource type. + # Incident Team resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 a5c60470fbb..d9eed24696b 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 @@ -23,7 +23,7 @@ class IncidentTeamCreateRequest # @!visibility private attr_accessor :_unparsed - # # Incident Team data for a create request. + # Incident Team data for a create request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 7e95913a729..e2bb56165a5 100644 --- a/lib/datadog_api_client/v2/models/incident_team_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_team_relationships.rb @@ -23,10 +23,10 @@ class IncidentTeamRelationships # @!visibility private attr_accessor :_unparsed - # # Relationship to user. + # Relationship to user. attr_accessor :created_by - # # Relationship to user. + # Relationship to user. attr_accessor :last_modified_by # Attribute mapping from ruby-style variable name to JSON key. 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 577021d2c1b..dcb1be09214 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response.rb @@ -23,10 +23,10 @@ class IncidentTeamResponse # @!visibility private attr_accessor :_unparsed - # # Incident Team data from a response. + # Incident Team data from a response. attr_accessor :data - # # Included objects from relationships. + # Included objects from relationships. attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. 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 5b1dd195836..c825f20a39c 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 @@ -23,13 +23,13 @@ class IncidentTeamResponseAttributes # @!visibility private attr_accessor :_unparsed - # # Timestamp of when the incident team was created. + # Timestamp of when the incident team was created. attr_accessor :created - # # Timestamp of when the incident team was modified. + # Timestamp of when the incident team was modified. attr_accessor :modified - # # Name of the incident team. + # Name of the incident team. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 7fd901d9030..d484b8fe0e9 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 @@ -23,16 +23,16 @@ class IncidentTeamResponseData # @!visibility private attr_accessor :_unparsed - # # The incident team's attributes from a response. + # The incident team's attributes from a response. attr_accessor :attributes - # # The incident team's ID. + # The incident team's ID. attr_accessor :id - # # The incident team's relationships. + # The incident team's relationships. attr_accessor :relationships - # # Incident Team resource type. + # Incident Team resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 d0e3715c860..9f3d6196540 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 @@ -23,7 +23,7 @@ class IncidentTeamUpdateAttributes # @!visibility private attr_accessor :_unparsed - # # Name of the incident team. + # Name of the incident team. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 7fe1d53e8d4..c12dcc88cc4 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 @@ -23,16 +23,16 @@ class IncidentTeamUpdateData # @!visibility private attr_accessor :_unparsed - # # The incident team's attributes for an update request. + # The incident team's attributes for an update request. attr_accessor :attributes - # # The incident team's ID. + # The incident team's ID. attr_accessor :id - # # The incident team's relationships. + # The incident team's relationships. attr_accessor :relationships - # # Incident Team resource type. + # Incident Team resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 476cf500bd2..3b1e3fab946 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 @@ -23,7 +23,7 @@ class IncidentTeamUpdateRequest # @!visibility private attr_accessor :_unparsed - # # Incident Team data for an update request. + # Incident Team data for an update request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 544f299c5ac..9e95523a098 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response.rb @@ -23,13 +23,13 @@ class IncidentTeamsResponse # @!visibility private attr_accessor :_unparsed - # # An array of incident teams. + # An array of incident teams. attr_accessor :data - # # Included related resources which the user requested. + # Included related resources which the user requested. attr_accessor :included - # # The metadata object containing pagination metadata. + # The metadata object containing pagination metadata. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb b/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb index 17400e1d951..99f8d14e005 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb @@ -23,7 +23,7 @@ class IncidentTeamsResponseMeta # @!visibility private attr_accessor :_unparsed - # # Pagination properties. + # Pagination properties. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb index 0d8d1846cb5..bc2705f3dfc 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb @@ -23,13 +23,13 @@ class IncidentTeamsResponseMetaPagination # @!visibility private attr_accessor :_unparsed - # # The index of the first element in the next page of results. Equal to page size added to the current offset. + # The index of the first element in the next page of results. Equal to page size added to the current offset. attr_accessor :next_offset - # # The index of the first element in the results. + # The index of the first element in the results. attr_accessor :offset - # # Maximum size of pages to return. + # Maximum size of pages to return. attr_accessor :size # Attribute mapping from ruby-style variable name to JSON key. 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 1d6d5c8cebe..58c765d1072 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 @@ -23,13 +23,13 @@ class IncidentTimelineCellMarkdownCreateAttributes # @!visibility private attr_accessor :_unparsed - # # Type of the Markdown timeline cell. + # Type of the Markdown timeline cell. attr_accessor :cell_type - # # The Markdown timeline cell contents. + # The Markdown timeline cell contents. attr_accessor :content - # # A flag indicating whether the timeline cell is important and should be highlighted. + # A flag indicating whether the timeline cell is important and should be highlighted. attr_accessor :important # Attribute mapping from ruby-style variable name to JSON key. 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 d6930f17c57..2bea024fbe9 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 @@ -23,7 +23,7 @@ class IncidentTimelineCellMarkdownCreateAttributesContent # @!visibility private attr_accessor :_unparsed - # # The Markdown content of the cell. + # The Markdown content of the cell. attr_accessor :content # Attribute mapping from ruby-style variable name to JSON key. 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 72534269116..dd6d6a8563b 100644 --- a/lib/datadog_api_client/v2/models/incident_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_update_attributes.rb @@ -23,31 +23,31 @@ class IncidentUpdateAttributes # @!visibility private attr_accessor :_unparsed - # # Timestamp when customers were no longer impacted by the incident. + # Timestamp when customers were no longer impacted by the incident. attr_accessor :customer_impact_end - # # A summary of the impact customers experienced during the incident. + # A summary of the impact customers experienced during the incident. attr_accessor :customer_impact_scope - # # Timestamp when customers began being impacted by the incident. + # Timestamp when customers began being impacted by the incident. attr_accessor :customer_impact_start - # # A flag indicating whether the incident caused customer impact. + # A flag indicating whether the incident caused customer impact. attr_accessor :customer_impacted - # # Timestamp when the incident was detected. + # Timestamp when the incident was detected. attr_accessor :detected - # # A condensed view of the user-defined fields for which to update selections. + # A condensed view of the user-defined fields for which to update selections. attr_accessor :fields - # # Notification handles that will be notified of the incident during update. + # Notification handles that will be notified of the incident during update. attr_accessor :notification_handles - # # Timestamp when the incident's state was set to resolved. + # Timestamp when the incident's state was set to resolved. attr_accessor :resolved - # # The title of the incident, which summarizes what happened. + # The title of the incident, which summarizes what happened. attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. 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 2eac3132af7..de8937c91d4 100644 --- a/lib/datadog_api_client/v2/models/incident_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_update_data.rb @@ -23,16 +23,16 @@ class IncidentUpdateData # @!visibility private attr_accessor :_unparsed - # # The incident's attributes for an update request. + # The incident's attributes for an update request. attr_accessor :attributes - # # The team's ID. + # The team's ID. attr_accessor :id - # # The incident's relationships for an update request. + # The incident's relationships for an update request. attr_accessor :relationships - # # Incident resource type. + # Incident resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 172db58f75f..330a032d56b 100644 --- a/lib/datadog_api_client/v2/models/incident_update_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_update_relationships.rb @@ -23,19 +23,19 @@ class IncidentUpdateRelationships # @!visibility private attr_accessor :_unparsed - # # Relationship to user. + # Relationship to user. attr_accessor :commander_user - # # Relationship to user. + # Relationship to user. attr_accessor :created_by_user - # # A relationship reference for multiple integration metadata objects. + # A relationship reference for multiple integration metadata objects. attr_accessor :integrations - # # Relationship to user. + # Relationship to user. attr_accessor :last_modified_by_user - # # A relationship reference for postmortems. + # A relationship reference for postmortems. attr_accessor :postmortem # Attribute mapping from ruby-style variable name to JSON key. 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 2a687beda4f..27956022d9d 100644 --- a/lib/datadog_api_client/v2/models/incident_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_update_request.rb @@ -23,7 +23,7 @@ class IncidentUpdateRequest # @!visibility private attr_accessor :_unparsed - # # Incident data for an update request. + # Incident data for an update request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/incidents_response.rb b/lib/datadog_api_client/v2/models/incidents_response.rb index 26691406446..168bb224318 100644 --- a/lib/datadog_api_client/v2/models/incidents_response.rb +++ b/lib/datadog_api_client/v2/models/incidents_response.rb @@ -23,13 +23,13 @@ class IncidentsResponse # @!visibility private attr_accessor :_unparsed - # # An array of incidents. + # An array of incidents. attr_accessor :data - # # Included related resources that the user requested. + # Included related resources that the user requested. attr_accessor :included - # # The metadata object containing pagination metadata. + # The metadata object containing pagination metadata. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/incidents_response_meta.rb b/lib/datadog_api_client/v2/models/incidents_response_meta.rb index 6c0c4bcb41f..6230e4bbc71 100644 --- a/lib/datadog_api_client/v2/models/incidents_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incidents_response_meta.rb @@ -23,7 +23,7 @@ class IncidentsResponseMeta # @!visibility private attr_accessor :_unparsed - # # Pagination properties. + # Pagination properties. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb index a78200699fb..bca22823c57 100644 --- a/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb @@ -23,13 +23,13 @@ class IncidentsResponseMetaPagination # @!visibility private attr_accessor :_unparsed - # # The index of the first element in the next page of results. Equal to page size added to the current offset. + # The index of the first element in the next page of results. Equal to page size added to the current offset. attr_accessor :next_offset - # # The index of the first element in the results. + # The index of the first element in the results. attr_accessor :offset - # # Maximum size of pages to return. + # Maximum size of pages to return. attr_accessor :size # Attribute mapping from ruby-style variable name to JSON key. 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 6c14f4bde14..0d8bcbec48c 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 @@ -23,10 +23,10 @@ class ListApplicationKeysResponse # @!visibility private attr_accessor :_unparsed - # # Array of application keys. + # Array of application keys. attr_accessor :data - # # Array of objects related to the application key. + # Array of objects related to the application key. attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/log.rb b/lib/datadog_api_client/v2/models/log.rb index b10762c6ca0..0db27f69170 100644 --- a/lib/datadog_api_client/v2/models/log.rb +++ b/lib/datadog_api_client/v2/models/log.rb @@ -23,13 +23,13 @@ class Log # @!visibility private attr_accessor :_unparsed - # # JSON object containing all log attributes and their associated values. + # JSON object containing all log attributes and their associated values. attr_accessor :attributes - # # Unique ID of the Log. + # Unique ID of the Log. attr_accessor :id - # # Type of the event. + # Type of the event. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/log_attributes.rb b/lib/datadog_api_client/v2/models/log_attributes.rb index 081513ce9e1..7569f945352 100644 --- a/lib/datadog_api_client/v2/models/log_attributes.rb +++ b/lib/datadog_api_client/v2/models/log_attributes.rb @@ -23,29 +23,29 @@ class LogAttributes # @!visibility private attr_accessor :_unparsed - # # JSON object of attributes from your log. + # JSON object of attributes from your log. attr_accessor :attributes - # # Name of the machine from where the logs are being sent. + # Name of the machine from where the logs are being sent. attr_accessor :host - # # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) + # The message [reserved attribute](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes) # of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. # That value is then highlighted and displayed in the Logstream, where it is indexed for full text search. attr_accessor :message - # # The name of the application or service generating the log events. + # The name of the application or service generating the log events. # It is used to switch from Logs to APM, so make sure you define the same # value when you use both products. attr_accessor :service - # # Status of the message associated with your log. + # Status of the message associated with your log. attr_accessor :status - # # Array of tags associated with your log. + # Array of tags associated with your log. attr_accessor :tags - # # Timestamp of your log. + # Timestamp of your log. attr_accessor :timestamp # Attribute mapping from ruby-style variable name to JSON key. 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 1748f95794c..34cd1e770c9 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb @@ -23,10 +23,10 @@ class LogsAggregateBucket # @!visibility private attr_accessor :_unparsed - # # The key, value pairs for each group by + # The key, value pairs for each group by attr_accessor :by - # # A map of the metric name -> value for regular compute or list of values for a timeseries + # A map of the metric name -> value for regular compute or list of values for a timeseries attr_accessor :computes # Attribute mapping from ruby-style variable name to JSON key. 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 9e76e3c7c22..d762f30c963 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 @@ -23,10 +23,10 @@ class LogsAggregateBucketValueTimeseriesPoint # @!visibility private attr_accessor :_unparsed - # # The time value for this point + # The time value for this point attr_accessor :time - # # The value for this point + # The value for this point attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. 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 a894db95547..bb6db1dea10 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_request.rb @@ -23,20 +23,20 @@ class LogsAggregateRequest # @!visibility private attr_accessor :_unparsed - # # The list of metrics or timeseries to compute for the retrieved buckets. + # The list of metrics or timeseries to compute for the retrieved buckets. attr_accessor :compute - # # The search and filter query settings + # The search and filter query settings attr_accessor :filter - # # The rules for the group by + # The rules for the group by attr_accessor :group_by - # # Global query options that are used during the query. + # Global query options that are used during the query. # Note: You should only supply timezone or time offset but not both otherwise the query will fail. attr_accessor :options - # # Paging settings + # Paging settings attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. 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 745e6b0784d..c3cc90ecbc0 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 @@ -23,7 +23,7 @@ class LogsAggregateRequestPage # @!visibility private attr_accessor :_unparsed - # # The returned paging point to use to get the next results + # The returned paging point to use to get the next results attr_accessor :cursor # Attribute mapping from ruby-style variable name to JSON key. 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 f8feb75b3ae..2f8d7b3c0a2 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_response.rb @@ -23,10 +23,10 @@ class LogsAggregateResponse # @!visibility private attr_accessor :_unparsed - # # The query results + # The query results attr_accessor :data - # # The metadata associated with a request + # The metadata associated with a request attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 1f5aac2e111..f34000321dd 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 @@ -23,7 +23,7 @@ class LogsAggregateResponseData # @!visibility private attr_accessor :_unparsed - # # The list of matching buckets, one item per bucket + # The list of matching buckets, one item per bucket attr_accessor :buckets # Attribute mapping from ruby-style variable name to JSON key. 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 49e37298507..8df418797e5 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb @@ -23,16 +23,16 @@ class LogsAggregateSort # @!visibility private attr_accessor :_unparsed - # # An aggregation function + # An aggregation function attr_accessor :aggregation - # # The metric to sort by (only used for `type=measure`) + # The metric to sort by (only used for `type=measure`) attr_accessor :metric - # # The order to use, ascending or descending + # The order to use, ascending or descending attr_accessor :order - # # The type of sorting algorithm + # The type of sorting algorithm attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/logs_archive.rb b/lib/datadog_api_client/v2/models/logs_archive.rb index 2b1dd113c2b..a3226b59675 100644 --- a/lib/datadog_api_client/v2/models/logs_archive.rb +++ b/lib/datadog_api_client/v2/models/logs_archive.rb @@ -23,7 +23,7 @@ class LogsArchive # @!visibility private attr_accessor :_unparsed - # # The definition of an archive. + # The definition of an archive. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 c80fe237eb7..bb0171033a6 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb @@ -23,23 +23,23 @@ class LogsArchiveAttributes # @!visibility private attr_accessor :_unparsed - # # An archive's destination. + # An archive's destination. attr_accessor :destination - # # To store the tags in the archive, set the value "true". + # To store the tags in the archive, set the value "true". # If it is set to "false", the tags will be deleted when the logs are sent to the archive. attr_accessor :include_tags - # # The archive name. + # The archive name. attr_accessor :name - # # The archive query/filter. Logs matching this query are included in the archive. + # The archive query/filter. Logs matching this query are included in the archive. attr_accessor :query - # # An array of tags to add to rehydrated logs from an archive. + # An array of tags to add to rehydrated logs from an archive. attr_accessor :rehydration_tags - # # The state of the archive. + # The state of the archive. attr_accessor :state # Attribute mapping from ruby-style variable name to JSON key. 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 9671d9cdbee..333628679a1 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 @@ -23,7 +23,7 @@ class LogsArchiveCreateRequest # @!visibility private attr_accessor :_unparsed - # # The definition of an archive. + # The definition of an archive. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 f09832e6b01..7654cd9fe84 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 @@ -23,20 +23,20 @@ class LogsArchiveCreateRequestAttributes # @!visibility private attr_accessor :_unparsed - # # An archive's destination. + # An archive's destination. attr_accessor :destination - # # To store the tags in the archive, set the value "true". + # To store the tags in the archive, set the value "true". # If it is set to "false", the tags will be deleted when the logs are sent to the archive. attr_accessor :include_tags - # # The archive name. + # The archive name. attr_accessor :name - # # The archive query/filter. Logs matching this query are included in the archive. + # The archive query/filter. Logs matching this query are included in the archive. attr_accessor :query - # # An array of tags to add to rehydrated logs from an archive. + # An array of tags to add to rehydrated logs from an archive. attr_accessor :rehydration_tags # Attribute mapping from ruby-style variable name to JSON key. 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 b9ddb525655..a9008d2248d 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 @@ -23,10 +23,10 @@ class LogsArchiveCreateRequestDefinition # @!visibility private attr_accessor :_unparsed - # # The attributes associated with the archive. + # The attributes associated with the archive. attr_accessor :attributes - # # The type of the resource. The value should always be archives. + # The type of the resource. The value should always be archives. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 4ba47a207d6..82e9ef9652a 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_definition.rb @@ -23,13 +23,13 @@ class LogsArchiveDefinition # @!visibility private attr_accessor :_unparsed - # # The attributes associated with the archive. + # The attributes associated with the archive. attr_accessor :attributes - # # The archive ID. + # The archive ID. attr_accessor :id - # # The type of the resource. The value should always be archives. + # The type of the resource. The value should always be archives. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 84469127fc9..69ec319b3be 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 @@ -23,22 +23,22 @@ class LogsArchiveDestinationAzure # @!visibility private attr_accessor :_unparsed - # # The container where the archive will be stored. + # The container where the archive will be stored. attr_accessor :container - # # The Azure archive's integration destination. + # The Azure archive's integration destination. attr_accessor :integration - # # The archive path. + # The archive path. attr_accessor :path - # # The region where the archive will be stored. + # The region where the archive will be stored. attr_accessor :region - # # The associated storage account. + # The associated storage account. attr_accessor :storage_account - # # Type of the Azure archive destination. + # Type of the Azure archive destination. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 af9d68d84e7..babd3eccb72 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 @@ -23,16 +23,16 @@ class LogsArchiveDestinationGCS # @!visibility private attr_accessor :_unparsed - # # The bucket where the archive will be stored. + # The bucket where the archive will be stored. attr_accessor :bucket - # # The GCS archive's integration destination. + # The GCS archive's integration destination. attr_accessor :integration - # # The archive path. + # The archive path. attr_accessor :path - # # Type of the GCS archive destination. + # Type of the GCS archive destination. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 b568ac022a2..a2b463fde86 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 @@ -23,16 +23,16 @@ class LogsArchiveDestinationS3 # @!visibility private attr_accessor :_unparsed - # # The bucket where the archive will be stored. + # The bucket where the archive will be stored. attr_accessor :bucket - # # The S3 Archive's integration destination. + # The S3 Archive's integration destination. attr_accessor :integration - # # The archive path. + # The archive path. attr_accessor :path - # # Type of the S3 archive destination. + # Type of the S3 archive destination. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 2c807d5cb7b..db9138bdf2a 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 @@ -23,10 +23,10 @@ class LogsArchiveIntegrationAzure # @!visibility private attr_accessor :_unparsed - # # A client ID. + # A client ID. attr_accessor :client_id - # # A tenant ID. + # A tenant ID. attr_accessor :tenant_id # Attribute mapping from ruby-style variable name to JSON key. 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 82933d089ee..f88ba39621b 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 @@ -23,10 +23,10 @@ class LogsArchiveIntegrationGCS # @!visibility private attr_accessor :_unparsed - # # A client email. + # A client email. attr_accessor :client_email - # # A project ID. + # A project ID. attr_accessor :project_id # Attribute mapping from ruby-style variable name to JSON key. 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 9469b4a8095..b2e11a5100c 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 @@ -23,10 +23,10 @@ class LogsArchiveIntegrationS3 # @!visibility private attr_accessor :_unparsed - # # The account ID for the integration. + # The account ID for the integration. attr_accessor :account_id - # # The path of the integration. + # The path of the integration. attr_accessor :role_name # Attribute mapping from ruby-style variable name to JSON key. 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 3e564e248fe..10a0712042f 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order.rb @@ -23,7 +23,7 @@ class LogsArchiveOrder # @!visibility private attr_accessor :_unparsed - # # The definition of an archive order. + # The definition of an archive order. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 3e1c9ba15e5..aa486a046d1 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 @@ -23,7 +23,7 @@ class LogsArchiveOrderAttributes # @!visibility private attr_accessor :_unparsed - # # An ordered array of `` strings, the order of archive IDs in the array + # An ordered array of `` strings, the order of archive IDs in the array # define the overall archives order for Datadog. attr_accessor :archive_ids 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 2fc8be8e3c8..17349ae12be 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 @@ -23,10 +23,10 @@ class LogsArchiveOrderDefinition # @!visibility private attr_accessor :_unparsed - # # The attributes associated with the archive order. + # The attributes associated with the archive order. attr_accessor :attributes - # # Type of the archive order definition. + # Type of the archive order definition. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/logs_archives.rb b/lib/datadog_api_client/v2/models/logs_archives.rb index 452f29d33e3..6fe6fbd02f3 100644 --- a/lib/datadog_api_client/v2/models/logs_archives.rb +++ b/lib/datadog_api_client/v2/models/logs_archives.rb @@ -23,7 +23,7 @@ class LogsArchives # @!visibility private attr_accessor :_unparsed - # # A list of archives. + # A list of archives. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/logs_compute.rb b/lib/datadog_api_client/v2/models/logs_compute.rb index 49c09768ab6..30014521ecb 100644 --- a/lib/datadog_api_client/v2/models/logs_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_compute.rb @@ -23,17 +23,17 @@ class LogsCompute # @!visibility private attr_accessor :_unparsed - # # An aggregation function + # An aggregation function attr_accessor :aggregation - # # The time buckets' size (only used for type=timeseries) + # The time buckets' size (only used for type=timeseries) # Defaults to a resolution of 150 points attr_accessor :interval - # # The metric to use + # The metric to use attr_accessor :metric - # # The type of compute + # The type of compute attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 2d98ee5619a..16a3d99b4d3 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by.rb @@ -23,23 +23,23 @@ class LogsGroupBy # @!visibility private attr_accessor :_unparsed - # # The name of the facet to use (required) + # The name of the facet to use (required) attr_accessor :facet - # # Used to perform a histogram computation (only for measure facets). + # Used to perform a histogram computation (only for measure facets). # Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval. attr_accessor :histogram - # # The maximum buckets to return for this group by + # The maximum buckets to return for this group by attr_accessor :limit - # # The value to use for logs that don't have the facet used to group by + # The value to use for logs that don't have the facet used to group by attr_accessor :missing - # # A sort rule + # A sort rule attr_accessor :sort - # # A resulting object to put the given computes in over all the matching records. + # A resulting object to put the given computes in over all the matching records. attr_accessor :total # Attribute mapping from ruby-style variable name to JSON key. 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 695c9b973e0..d94ef8ccc63 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 @@ -24,14 +24,14 @@ class LogsGroupByHistogram # @!visibility private attr_accessor :_unparsed - # # The bin size of the histogram buckets + # The bin size of the histogram buckets attr_accessor :interval - # # The maximum value for the measure used in the histogram + # The maximum value for the measure used in the histogram # (values greater than this one are filtered out) attr_accessor :max - # # The minimum value for the measure used in the histogram + # The minimum value for the measure used in the histogram # (values smaller than this one are filtered out) attr_accessor :min 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 725ced5098e..6fdc85fb860 100644 --- a/lib/datadog_api_client/v2/models/logs_list_request.rb +++ b/lib/datadog_api_client/v2/models/logs_list_request.rb @@ -23,17 +23,17 @@ class LogsListRequest # @!visibility private attr_accessor :_unparsed - # # The search and filter query settings + # The search and filter query settings attr_accessor :filter - # # Global query options that are used during the query. + # Global query options that are used during the query. # Note: You should only supply timezone or time offset but not both otherwise the query will fail. attr_accessor :options - # # Paging attributes for listing logs. + # Paging attributes for listing logs. attr_accessor :page - # # Sort parameters when querying logs. + # Sort parameters when querying logs. attr_accessor :sort # Attribute mapping from ruby-style variable name to JSON key. 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 0662e01c8d6..4c945e91f29 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 @@ -23,10 +23,10 @@ class LogsListRequestPage # @!visibility private attr_accessor :_unparsed - # # List following results with a cursor provided in the previous query. + # List following results with a cursor provided in the previous query. attr_accessor :cursor - # # Maximum number of logs in the response. + # Maximum number of logs in the response. attr_accessor :limit # Attribute mapping from ruby-style variable name to JSON key. 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 475885eb567..0fdb32f8788 100644 --- a/lib/datadog_api_client/v2/models/logs_list_response.rb +++ b/lib/datadog_api_client/v2/models/logs_list_response.rb @@ -23,13 +23,13 @@ class LogsListResponse # @!visibility private attr_accessor :_unparsed - # # Array of logs matching the request. + # Array of logs matching the request. attr_accessor :data - # # Links attributes. + # Links attributes. attr_accessor :links - # # The metadata associated with a request + # The metadata associated with a request attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 8294cb62c1c..2a63407699a 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 @@ -23,7 +23,7 @@ class LogsListResponseLinks # @!visibility private attr_accessor :_unparsed - # # Link for the next set of results. Note that the request can also be made using the + # Link for the next set of results. Note that the request can also be made using the # POST endpoint. attr_accessor :_next 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 b6fcb4b6c83..c0538a16385 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_compute.rb @@ -23,10 +23,10 @@ class LogsMetricCompute # @!visibility private attr_accessor :_unparsed - # # The type of aggregation to use. + # The type of aggregation to use. attr_accessor :aggregation_type - # # The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution"). + # The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution"). attr_accessor :path # Attribute mapping from ruby-style variable name to JSON key. 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 bf91151630e..f4ad6968ec4 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 @@ -23,13 +23,13 @@ class LogsMetricCreateAttributes # @!visibility private attr_accessor :_unparsed - # # The compute rule to compute the log-based metric. + # The compute rule to compute the log-based metric. attr_accessor :compute - # # The log-based metric filter. Logs matching this filter will be aggregated in this metric. + # The log-based metric filter. Logs matching this filter will be aggregated in this metric. attr_accessor :filter - # # The rules for the group by. + # The rules for the group by. attr_accessor :group_by # Attribute mapping from ruby-style variable name to JSON key. 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 838f89311f4..71cf2ea4e74 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 @@ -23,13 +23,13 @@ class LogsMetricCreateData # @!visibility private attr_accessor :_unparsed - # # The object describing the Datadog log-based metric to create. + # The object describing the Datadog log-based metric to create. attr_accessor :attributes - # # The name of the log-based metric. + # The name of the log-based metric. attr_accessor :id - # # The type of the resource. The value should always be logs_metrics. + # The type of the resource. The value should always be logs_metrics. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 66c7708286f..afa3b6c6d6f 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 @@ -23,7 +23,7 @@ class LogsMetricCreateRequest # @!visibility private attr_accessor :_unparsed - # # The new log-based metric properties. + # The new log-based metric properties. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 8b662559fa4..8f14d8a9e2f 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_filter.rb @@ -23,7 +23,7 @@ class LogsMetricFilter # @!visibility private attr_accessor :_unparsed - # # The search query - following the log search syntax. + # The search query - following the log search syntax. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 5a7bbc4cc83..dff050f7d35 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 @@ -23,10 +23,10 @@ class LogsMetricGroupBy # @!visibility private attr_accessor :_unparsed - # # The path to the value the log-based metric will be aggregated over. + # The path to the value the log-based metric will be aggregated over. attr_accessor :path - # # Eventual name of the tag that gets created. By default, the path attribute is used as the tag name. + # Eventual name of the tag that gets created. By default, the path attribute is used as the tag name. attr_accessor :tag_name # Attribute mapping from ruby-style variable name to JSON key. 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 d0320b52e67..bae53a2b845 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response.rb @@ -23,7 +23,7 @@ class LogsMetricResponse # @!visibility private attr_accessor :_unparsed - # # The log-based metric properties. + # The log-based metric properties. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 c21f7b4ec63..2f59ce7a4cf 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 @@ -23,13 +23,13 @@ class LogsMetricResponseAttributes # @!visibility private attr_accessor :_unparsed - # # The compute rule to compute the log-based metric. + # The compute rule to compute the log-based metric. attr_accessor :compute - # # The log-based metric filter. Logs matching this filter will be aggregated in this metric. + # The log-based metric filter. Logs matching this filter will be aggregated in this metric. attr_accessor :filter - # # The rules for the group by. + # The rules for the group by. attr_accessor :group_by # Attribute mapping from ruby-style variable name to JSON key. 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 2f254a7cd70..7fbaa967c90 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 @@ -23,10 +23,10 @@ class LogsMetricResponseCompute # @!visibility private attr_accessor :_unparsed - # # The type of aggregation to use. + # The type of aggregation to use. attr_accessor :aggregation_type - # # The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution"). + # The path to the value the log-based metric will aggregate on (only used if the aggregation type is a "distribution"). attr_accessor :path # Attribute mapping from ruby-style variable name to JSON key. 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 284e83dc663..a45370df66e 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 @@ -23,13 +23,13 @@ class LogsMetricResponseData # @!visibility private attr_accessor :_unparsed - # # The object describing a Datadog log-based metric. + # The object describing a Datadog log-based metric. attr_accessor :attributes - # # The name of the log-based metric. + # The name of the log-based metric. attr_accessor :id - # # The type of the resource. The value should always be logs_metrics. + # The type of the resource. The value should always be logs_metrics. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 ae6819b2108..96070d53a08 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 @@ -23,7 +23,7 @@ class LogsMetricResponseFilter # @!visibility private attr_accessor :_unparsed - # # The search query - following the log search syntax. + # The search query - following the log search syntax. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 a01caa7bb0a..d2ea1db3f8c 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 @@ -23,10 +23,10 @@ class LogsMetricResponseGroupBy # @!visibility private attr_accessor :_unparsed - # # The path to the value the log-based metric will be aggregated over. + # The path to the value the log-based metric will be aggregated over. attr_accessor :path - # # Eventual name of the tag that gets created. By default, the path attribute is used as the tag name. + # Eventual name of the tag that gets created. By default, the path attribute is used as the tag name. attr_accessor :tag_name # Attribute mapping from ruby-style variable name to JSON key. 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 a0f1b2caf85..bf498025227 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 @@ -23,10 +23,10 @@ class LogsMetricUpdateAttributes # @!visibility private attr_accessor :_unparsed - # # The log-based metric filter. Logs matching this filter will be aggregated in this metric. + # The log-based metric filter. Logs matching this filter will be aggregated in this metric. attr_accessor :filter - # # The rules for the group by. + # The rules for the group by. attr_accessor :group_by # Attribute mapping from ruby-style variable name to JSON key. 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 e49d08a16ed..93421fe9dd1 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 @@ -23,10 +23,10 @@ class LogsMetricUpdateData # @!visibility private attr_accessor :_unparsed - # # The log-based metric properties that will be updated. + # The log-based metric properties that will be updated. attr_accessor :attributes - # # The type of the resource. The value should always be logs_metrics. + # The type of the resource. The value should always be logs_metrics. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 71096875b60..ac7db316ede 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 @@ -23,7 +23,7 @@ class LogsMetricUpdateRequest # @!visibility private attr_accessor :_unparsed - # # The new log-based metric properties. + # The new log-based metric properties. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 ceda56d39d3..08f4cb784be 100644 --- a/lib/datadog_api_client/v2/models/logs_metrics_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metrics_response.rb @@ -23,7 +23,7 @@ class LogsMetricsResponse # @!visibility private attr_accessor :_unparsed - # # A list of log-based metric objects. + # A list of log-based metric objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 2398f991904..dbae9f5c296 100644 --- a/lib/datadog_api_client/v2/models/logs_query_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_query_filter.rb @@ -23,16 +23,16 @@ class LogsQueryFilter # @!visibility private attr_accessor :_unparsed - # # The minimum time for the requested logs, supports date math and regular timestamps (milliseconds). + # The minimum time for the requested logs, supports date math and regular timestamps (milliseconds). attr_accessor :from - # # For customers with multiple indexes, the indexes to search. Defaults to ['*'] which means all indexes. + # For customers with multiple indexes, the indexes to search. Defaults to ['*'] which means all indexes. attr_accessor :indexes - # # The search query - following the log search syntax. + # The search query - following the log search syntax. attr_accessor :query - # # The maximum time for the requested logs, supports date math and regular timestamps (milliseconds). + # The maximum time for the requested logs, supports date math and regular timestamps (milliseconds). attr_accessor :to # Attribute mapping from ruby-style variable name to JSON key. 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 e0a7ffae793..bcda4ae16c1 100644 --- a/lib/datadog_api_client/v2/models/logs_query_options.rb +++ b/lib/datadog_api_client/v2/models/logs_query_options.rb @@ -24,10 +24,10 @@ class LogsQueryOptions # @!visibility private attr_accessor :_unparsed - # # The time offset (in seconds) to apply to the query. + # The time offset (in seconds) to apply to the query. attr_accessor :time_offset - # # The timezone can be specified both as an offset, for example: "UTC+03:00". + # The timezone can be specified both as an offset, for example: "UTC+03:00". attr_accessor :timezone # Attribute mapping from ruby-style variable name to JSON key. 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 bc00f87381f..e8e0cfe0340 100644 --- a/lib/datadog_api_client/v2/models/logs_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/logs_response_metadata.rb @@ -23,19 +23,19 @@ class LogsResponseMetadata # @!visibility private attr_accessor :_unparsed - # # The time elapsed in milliseconds + # The time elapsed in milliseconds attr_accessor :elapsed - # # Paging attributes. + # Paging attributes. attr_accessor :page - # # The identifier of the request + # The identifier of the request attr_accessor :request_id - # # The status of the response + # The status of the response attr_accessor :status - # # A list of warnings (non fatal errors) encountered, partial results might be returned if + # A list of warnings (non fatal errors) encountered, partial results might be returned if # warnings are present in the response. attr_accessor :warnings 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 5d7622c1243..cd32c105036 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 @@ -23,7 +23,7 @@ class LogsResponseMetadataPage # @!visibility private attr_accessor :_unparsed - # # The cursor to use to get the next results, if any. To make the next request, use the same. + # 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 `page[cursor]`. attr_accessor :after diff --git a/lib/datadog_api_client/v2/models/logs_warning.rb b/lib/datadog_api_client/v2/models/logs_warning.rb index 78fb4fe21e2..305546b5a4b 100644 --- a/lib/datadog_api_client/v2/models/logs_warning.rb +++ b/lib/datadog_api_client/v2/models/logs_warning.rb @@ -23,13 +23,13 @@ class LogsWarning # @!visibility private attr_accessor :_unparsed - # # A unique code for this type of warning + # A unique code for this type of warning attr_accessor :code - # # A detailed explanation of this specific warning + # A detailed explanation of this specific warning attr_accessor :detail - # # A short human-readable summary of the warning + # A short human-readable summary of the warning attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/metric.rb b/lib/datadog_api_client/v2/models/metric.rb index 6170c334bf5..f358b941b6b 100644 --- a/lib/datadog_api_client/v2/models/metric.rb +++ b/lib/datadog_api_client/v2/models/metric.rb @@ -23,10 +23,10 @@ class Metric # @!visibility private attr_accessor :_unparsed - # # The metric name for this resource. + # The metric name for this resource. attr_accessor :id - # # The metric resource type. + # The metric resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 dfc00ccf1d8..43d8c518e9b 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags.rb @@ -23,13 +23,13 @@ class MetricAllTags # @!visibility private attr_accessor :_unparsed - # # Object containing the definition of a metric's tags. + # Object containing the definition of a metric's tags. attr_accessor :attributes - # # The metric name for this resource. + # The metric name for this resource. attr_accessor :id - # # The metric resource type. + # The metric resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 3e0001dc397..8b99f0445ff 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 @@ -23,7 +23,7 @@ class MetricAllTagsAttributes # @!visibility private attr_accessor :_unparsed - # # List of indexed tag value pairs. + # List of indexed tag value pairs. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 ecf9419e1a1..0e39e58dea1 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 @@ -23,7 +23,7 @@ class MetricAllTagsResponse # @!visibility private attr_accessor :_unparsed - # # Object for a single metric's indexed tags. + # Object for a single metric's indexed tags. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 a0c63ce659b..3e0e2fdb5cb 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb @@ -23,10 +23,10 @@ class MetricCustomAggregation # @!visibility private attr_accessor :_unparsed - # # A space aggregation for use in query. + # A space aggregation for use in query. attr_accessor :space - # # A time aggregation for use in query. + # A time aggregation for use in query. attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. 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 5c2774d09d1..ee1a1e9b59e 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume.rb @@ -23,13 +23,13 @@ class MetricDistinctVolume # @!visibility private attr_accessor :_unparsed - # # Object containing the definition of a metric's distinct volume. + # Object containing the definition of a metric's distinct volume. attr_accessor :attributes - # # The metric name for this resource. + # The metric name for this resource. attr_accessor :id - # # The metric distinct volume type. + # The metric distinct volume type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 1c49d92ec30..e47ddc66c1f 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 @@ -23,7 +23,7 @@ class MetricDistinctVolumeAttributes # @!visibility private attr_accessor :_unparsed - # # Distinct volume for the given metric. + # Distinct volume for the given metric. attr_accessor :distinct_volume # Attribute mapping from ruby-style variable name to JSON key. 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 470e18949c3..32993129649 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 @@ -23,13 +23,13 @@ class MetricIngestedIndexedVolume # @!visibility private attr_accessor :_unparsed - # # Object containing the definition of a metric's ingested and indexed volume. + # Object containing the definition of a metric's ingested and indexed volume. attr_accessor :attributes - # # The metric name for this resource. + # The metric name for this resource. attr_accessor :id - # # The metric ingested and indexed volume type. + # The metric ingested and indexed volume type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 44e357267df..b3f1f39b01f 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 @@ -23,10 +23,10 @@ class MetricIngestedIndexedVolumeAttributes # @!visibility private attr_accessor :_unparsed - # # Indexed volume for the given metric. + # Indexed volume for the given metric. attr_accessor :indexed_volume - # # Ingested volume for the given metric. + # Ingested volume for the given metric. attr_accessor :ingested_volume # Attribute mapping from ruby-style variable name to JSON key. 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 04e5fe08c15..42d913b485b 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration.rb @@ -23,13 +23,13 @@ class MetricTagConfiguration # @!visibility private attr_accessor :_unparsed - # # Object containing the definition of a metric tag configuration attributes. + # Object containing the definition of a metric tag configuration attributes. attr_accessor :attributes - # # The metric name for this resource. + # The metric name for this resource. attr_accessor :id - # # The metric tag configuration resource type. + # The metric tag configuration resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 b83a3ea941c..39a98a3d032 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 @@ -23,7 +23,7 @@ class MetricTagConfigurationAttributes # @!visibility private attr_accessor :_unparsed - # # A list of queryable aggregation combinations for a count, rate, or gauge metric. + # A list of queryable aggregation combinations for a count, rate, or gauge metric. # By default, count and rate metrics require the (time: sum, space: sum) aggregation and # Gauge metrics require the (time: avg, space: avg) aggregation. # Additional time & space combinations are also available: @@ -41,20 +41,20 @@ class MetricTagConfigurationAttributes # Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`. attr_accessor :aggregations - # # Timestamp when the tag configuration was created. + # Timestamp when the tag configuration was created. attr_accessor :created_at - # # Toggle to turn on/off percentile aggregations for distribution metrics. + # Toggle to turn on/off percentile aggregations for distribution metrics. # Only present when the `metric_type` is `distribution`. attr_accessor :include_percentiles - # # The metric's type. + # The metric's type. attr_accessor :metric_type - # # Timestamp when the tag configuration was last modified. + # Timestamp when the tag configuration was last modified. attr_accessor :modified_at - # # List of tag keys on which to group. + # List of tag keys on which to group. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 9cfec375060..8eae0de2cb8 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 @@ -23,7 +23,7 @@ class MetricTagConfigurationCreateAttributes # @!visibility private attr_accessor :_unparsed - # # A list of queryable aggregation combinations for a count, rate, or gauge metric. + # A list of queryable aggregation combinations for a count, rate, or gauge metric. # By default, count and rate metrics require the (time: sum, space: sum) aggregation and # Gauge metrics require the (time: avg, space: avg) aggregation. # Additional time & space combinations are also available: @@ -41,14 +41,14 @@ class MetricTagConfigurationCreateAttributes # Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`. attr_accessor :aggregations - # # Toggle to include/exclude percentiles for a distribution metric. + # Toggle to include/exclude percentiles for a distribution metric. # Defaults to false. Can only be applied to metrics that have a `metric_type` of `distribution`. attr_accessor :include_percentiles - # # The metric's type. + # The metric's type. attr_accessor :metric_type - # # A list of tag keys that will be queryable for your metric. + # A list of tag keys that will be queryable for your metric. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 dd1d9439c51..5421c55e26e 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 @@ -23,13 +23,13 @@ class MetricTagConfigurationCreateData # @!visibility private attr_accessor :_unparsed - # # Object containing the definition of a metric tag configuration to be created. + # Object containing the definition of a metric tag configuration to be created. attr_accessor :attributes - # # The metric name for this resource. + # The metric name for this resource. attr_accessor :id - # # The metric tag configuration resource type. + # The metric tag configuration resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 287a3c7927e..9f85a4c85e5 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 @@ -23,7 +23,7 @@ class MetricTagConfigurationCreateRequest # @!visibility private attr_accessor :_unparsed - # # Object for a single metric to be configure tags on. + # Object for a single metric to be configure tags on. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 2167c83bdda..a8d6bddf3ff 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 @@ -23,7 +23,7 @@ class MetricTagConfigurationResponse # @!visibility private attr_accessor :_unparsed - # # Object for a single metric tag configuration. + # Object for a single metric tag configuration. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 8cd3269ea3f..c072e3a30bc 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 @@ -23,7 +23,7 @@ class MetricTagConfigurationUpdateAttributes # @!visibility private attr_accessor :_unparsed - # # A list of queryable aggregation combinations for a count, rate, or gauge metric. + # A list of queryable aggregation combinations for a count, rate, or gauge metric. # By default, count and rate metrics require the (time: sum, space: sum) aggregation and # Gauge metrics require the (time: avg, space: avg) aggregation. # Additional time & space combinations are also available: @@ -41,11 +41,11 @@ class MetricTagConfigurationUpdateAttributes # Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`. attr_accessor :aggregations - # # Toggle to include/exclude percentiles for a distribution metric. + # Toggle to include/exclude percentiles for a distribution metric. # Defaults to false. Can only be applied to metrics that have a `metric_type` of `distribution`. attr_accessor :include_percentiles - # # A list of tag keys that will be queryable for your metric. + # A list of tag keys that will be queryable for your metric. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. 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 9fdf6008eff..cf23b0eee8d 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 @@ -23,13 +23,13 @@ class MetricTagConfigurationUpdateData # @!visibility private attr_accessor :_unparsed - # # Object containing the definition of a metric tag configuration to be updated. + # Object containing the definition of a metric tag configuration to be updated. attr_accessor :attributes - # # The metric name for this resource. + # The metric name for this resource. attr_accessor :id - # # The metric tag configuration resource type. + # The metric tag configuration resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 b29a4fecd42..f4bd78b0f96 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 @@ -23,7 +23,7 @@ class MetricTagConfigurationUpdateRequest # @!visibility private attr_accessor :_unparsed - # # Object for a single tag configuration to be edited. + # Object for a single tag configuration to be edited. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 6fa2fb45149..4dc8533a02d 100644 --- a/lib/datadog_api_client/v2/models/metric_volumes_response.rb +++ b/lib/datadog_api_client/v2/models/metric_volumes_response.rb @@ -23,7 +23,7 @@ class MetricVolumesResponse # @!visibility private attr_accessor :_unparsed - # # Possible response objects for a metric's volume. + # Possible response objects for a metric's volume. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 fad1927b66a..dbceead4706 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 @@ -23,7 +23,7 @@ class MetricsAndMetricTagConfigurationsResponse # @!visibility private attr_accessor :_unparsed - # # Array of metrics and metric tag configurations. + # Array of metrics and metric tag configurations. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/organization.rb b/lib/datadog_api_client/v2/models/organization.rb index b92447b2618..355442b83bc 100644 --- a/lib/datadog_api_client/v2/models/organization.rb +++ b/lib/datadog_api_client/v2/models/organization.rb @@ -23,13 +23,13 @@ class Organization # @!visibility private attr_accessor :_unparsed - # # Attributes of the organization. + # Attributes of the organization. attr_accessor :attributes - # # ID of the organization. + # ID of the organization. attr_accessor :id - # # Organizations resource type. + # Organizations resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/organization_attributes.rb b/lib/datadog_api_client/v2/models/organization_attributes.rb index 22e321e19cd..14fbf0febdd 100644 --- a/lib/datadog_api_client/v2/models/organization_attributes.rb +++ b/lib/datadog_api_client/v2/models/organization_attributes.rb @@ -23,28 +23,28 @@ class OrganizationAttributes # @!visibility private attr_accessor :_unparsed - # # Creation time of the organization. + # Creation time of the organization. attr_accessor :created_at - # # Description of the organization. + # Description of the organization. attr_accessor :description - # # Whether or not the organization is disabled. + # Whether or not the organization is disabled. attr_accessor :disabled - # # Time of last organization modification. + # Time of last organization modification. attr_accessor :modified_at - # # Name of the organization. + # Name of the organization. attr_accessor :name - # # Public ID of the organization. + # Public ID of the organization. attr_accessor :public_id - # # Sharing type of the organization. + # Sharing type of the organization. attr_accessor :sharing - # # URL of the site that this organization exists at. + # URL of the site that this organization exists at. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/pagination.rb b/lib/datadog_api_client/v2/models/pagination.rb index fc2b08fc7bc..ef2bf2eb040 100644 --- a/lib/datadog_api_client/v2/models/pagination.rb +++ b/lib/datadog_api_client/v2/models/pagination.rb @@ -23,10 +23,10 @@ class Pagination # @!visibility private attr_accessor :_unparsed - # # Total count. + # Total count. attr_accessor :total_count - # # Total count of elements matched by the filter. + # Total count of elements matched by the filter. attr_accessor :total_filtered_count # Attribute mapping from ruby-style variable name to JSON key. 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 9f1bcbd8e02..235f2bdd062 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key.rb @@ -23,16 +23,16 @@ class PartialAPIKey # @!visibility private attr_accessor :_unparsed - # # Attributes of a partial API key. + # Attributes of a partial API key. attr_accessor :attributes - # # ID of the API key. + # ID of the API key. attr_accessor :id - # # Resources related to the API key. + # Resources related to the API key. attr_accessor :relationships - # # API Keys resource type. + # API Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 1936203790e..7d04031dd02 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 @@ -23,16 +23,16 @@ class PartialAPIKeyAttributes # @!visibility private attr_accessor :_unparsed - # # Creation date of the API key. + # Creation date of the API key. attr_accessor :created_at - # # The last four characters of the API key. + # The last four characters of the API key. attr_accessor :last4 - # # Date the API key was last modified. + # Date the API key was last modified. attr_accessor :modified_at - # # Name of the API key. + # Name of the API key. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 4392eccbb59..d8f82f751bb 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key.rb @@ -23,16 +23,16 @@ class PartialApplicationKey # @!visibility private attr_accessor :_unparsed - # # Attributes of a partial application key. + # Attributes of a partial application key. attr_accessor :attributes - # # ID of the application key. + # ID of the application key. attr_accessor :id - # # Resources related to the application key. + # Resources related to the application key. attr_accessor :relationships - # # Application Keys resource type. + # Application Keys resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 64394e5a918..3fdd96d6a39 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 @@ -23,16 +23,16 @@ class PartialApplicationKeyAttributes # @!visibility private attr_accessor :_unparsed - # # Creation date of the application key. + # Creation date of the application key. attr_accessor :created_at - # # The last four characters of the application key. + # The last four characters of the application key. attr_accessor :last4 - # # Name of the application key. + # Name of the application key. attr_accessor :name - # # Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys. + # Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys. attr_accessor :scopes # Attribute mapping from ruby-style variable name to JSON key. 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 218c7580fa4..26fc1a64d47 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 @@ -23,10 +23,10 @@ class PartialApplicationKeyResponse # @!visibility private attr_accessor :_unparsed - # # Partial Datadog application key. + # Partial Datadog application key. attr_accessor :data - # # Array of objects related to the application key. + # Array of objects related to the application key. attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/permission.rb b/lib/datadog_api_client/v2/models/permission.rb index 7c50cd8f3a2..48744e6d6a1 100644 --- a/lib/datadog_api_client/v2/models/permission.rb +++ b/lib/datadog_api_client/v2/models/permission.rb @@ -23,13 +23,13 @@ class Permission # @!visibility private attr_accessor :_unparsed - # # Attributes of a permission. + # Attributes of a permission. attr_accessor :attributes - # # ID of the permission. + # ID of the permission. attr_accessor :id - # # Permissions resource type. + # Permissions resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/permission_attributes.rb b/lib/datadog_api_client/v2/models/permission_attributes.rb index 98843a9d127..5b6f4683949 100644 --- a/lib/datadog_api_client/v2/models/permission_attributes.rb +++ b/lib/datadog_api_client/v2/models/permission_attributes.rb @@ -23,25 +23,25 @@ class PermissionAttributes # @!visibility private attr_accessor :_unparsed - # # Creation time of the permission. + # Creation time of the permission. attr_accessor :created - # # Description of the permission. + # Description of the permission. attr_accessor :description - # # Displayed name for the permission. + # Displayed name for the permission. attr_accessor :display_name - # # Display type. + # Display type. attr_accessor :display_type - # # Name of the permission group. + # Name of the permission group. attr_accessor :group_name - # # Name of the permission. + # Name of the permission. attr_accessor :name - # # Whether or not the permission is restricted. + # Whether or not the permission is restricted. attr_accessor :restricted # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/permissions_response.rb b/lib/datadog_api_client/v2/models/permissions_response.rb index dd8f99e4d4a..e81789b678b 100644 --- a/lib/datadog_api_client/v2/models/permissions_response.rb +++ b/lib/datadog_api_client/v2/models/permissions_response.rb @@ -23,7 +23,7 @@ class PermissionsResponse # @!visibility private attr_accessor :_unparsed - # # Array of permissions. + # Array of permissions. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 cb2fb5a1267..aaeb92d975b 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_meta.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_meta.rb @@ -23,7 +23,7 @@ class ProcessSummariesMeta # @!visibility private attr_accessor :_unparsed - # # Paging attributes. + # Paging attributes. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. 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 4d69b87dfbd..e34fd87d255 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 @@ -23,11 +23,11 @@ class ProcessSummariesMetaPage # @!visibility private attr_accessor :_unparsed - # # The cursor used to get the next results, if any. To make the next request, use the same + # The cursor used to get the next results, if any. To make the next request, use the same # parameters with the addition of the `page[cursor]`. attr_accessor :after - # # Number of results returned. + # Number of results returned. attr_accessor :size # Attribute mapping from ruby-style variable name to JSON key. 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 24f53a7fec4..cecec1b0af1 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_response.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_response.rb @@ -23,10 +23,10 @@ class ProcessSummariesResponse # @!visibility private attr_accessor :_unparsed - # # Array of process summary objects. + # Array of process summary objects. attr_accessor :data - # # Response metadata object. + # Response metadata object. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/process_summary.rb b/lib/datadog_api_client/v2/models/process_summary.rb index d77044fb105..b2423082f1a 100644 --- a/lib/datadog_api_client/v2/models/process_summary.rb +++ b/lib/datadog_api_client/v2/models/process_summary.rb @@ -23,13 +23,13 @@ class ProcessSummary # @!visibility private attr_accessor :_unparsed - # # Attributes for a process summary. + # Attributes for a process summary. attr_accessor :attributes - # # Process ID. + # Process ID. attr_accessor :id - # # Type of process summary. + # Type of process summary. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 a09a32719d0..76927868546 100644 --- a/lib/datadog_api_client/v2/models/process_summary_attributes.rb +++ b/lib/datadog_api_client/v2/models/process_summary_attributes.rb @@ -23,28 +23,28 @@ class ProcessSummaryAttributes # @!visibility private attr_accessor :_unparsed - # # Process command line. + # Process command line. attr_accessor :cmdline - # # Host running the process. + # Host running the process. attr_accessor :host - # # Process ID. + # Process ID. attr_accessor :pid - # # Parent process ID. + # Parent process ID. attr_accessor :ppid - # # Time the process was started. + # Time the process was started. attr_accessor :start - # # List of tags associated with the process. + # List of tags associated with the process. attr_accessor :tags - # # Time the process was seen. + # Time the process was seen. attr_accessor :timestamp - # # Process owner. + # Process owner. attr_accessor :user # Attribute mapping from ruby-style variable name to JSON key. 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 c533675d447..5fabf0e8c3e 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 @@ -23,10 +23,10 @@ class RelationshipToIncidentIntegrationMetadataData # @!visibility private attr_accessor :_unparsed - # # A unique identifier that represents the integration metadata. + # A unique identifier that represents the integration metadata. attr_accessor :id - # # Integration metadata resource type. + # Integration metadata resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 30baf7bef62..f04f5cf1d9b 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 @@ -23,7 +23,7 @@ class RelationshipToIncidentIntegrationMetadatas # @!visibility private attr_accessor :_unparsed - # # The integration metadata relationship array + # The integration metadata relationship array attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 f80f638612a..e8d967b1ce2 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 @@ -23,7 +23,7 @@ class RelationshipToIncidentPostmortem # @!visibility private attr_accessor :_unparsed - # # The postmortem relationship data. + # The postmortem relationship data. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 d5d761275ce..f1f301b94f6 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 @@ -23,10 +23,10 @@ class RelationshipToIncidentPostmortemData # @!visibility private attr_accessor :_unparsed - # # A unique identifier that represents the postmortem. + # A unique identifier that represents the postmortem. attr_accessor :id - # # Incident postmortem resource type. + # Incident postmortem resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 097992144c8..4d39be388ba 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organization.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organization.rb @@ -23,7 +23,7 @@ class RelationshipToOrganization # @!visibility private attr_accessor :_unparsed - # # Relationship to organization object. + # Relationship to organization object. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 48e090dbab1..c24ec566c04 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 @@ -23,10 +23,10 @@ class RelationshipToOrganizationData # @!visibility private attr_accessor :_unparsed - # # ID of the organization. + # ID of the organization. attr_accessor :id - # # Organizations resource type. + # Organizations resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 8d902fa4991..90e1a005814 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organizations.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organizations.rb @@ -23,7 +23,7 @@ class RelationshipToOrganizations # @!visibility private attr_accessor :_unparsed - # # Relationships to organization objects. + # Relationships to organization objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 a5b97a9b6cc..3f3f713f4ed 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permission.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permission.rb @@ -23,7 +23,7 @@ class RelationshipToPermission # @!visibility private attr_accessor :_unparsed - # # Relationship to permission object. + # Relationship to permission object. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 d3c39dcd5e0..5fd1969194c 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 @@ -23,10 +23,10 @@ class RelationshipToPermissionData # @!visibility private attr_accessor :_unparsed - # # ID of the permission. + # ID of the permission. attr_accessor :id - # # Permissions resource type. + # Permissions resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 0a6aae042cb..82047bc35d1 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permissions.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permissions.rb @@ -23,7 +23,7 @@ class RelationshipToPermissions # @!visibility private attr_accessor :_unparsed - # # Relationships to permission objects. + # Relationships to permission objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 3f30f427a4b..fcc6af3d7e7 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_role.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_role.rb @@ -23,7 +23,7 @@ class RelationshipToRole # @!visibility private attr_accessor :_unparsed - # # Relationship to role object. + # Relationship to role object. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 a8b39f18df5..e3b60f0f3c3 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 @@ -23,10 +23,10 @@ class RelationshipToRoleData # @!visibility private attr_accessor :_unparsed - # # ID of the role. + # ID of the role. attr_accessor :id - # # Roles type. + # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 935e7801260..949380dbccf 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_roles.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_roles.rb @@ -23,7 +23,7 @@ class RelationshipToRoles # @!visibility private attr_accessor :_unparsed - # # An array containing type and ID of a role. + # An array containing type and ID of a role. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 b5b7e532982..cb1c1fdcfc0 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user.rb @@ -23,7 +23,7 @@ class RelationshipToUser # @!visibility private attr_accessor :_unparsed - # # Relationship to user object. + # Relationship to user object. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 cb52ef00403..3ab1d97abee 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 @@ -23,10 +23,10 @@ class RelationshipToUserData # @!visibility private attr_accessor :_unparsed - # # A unique identifier that represents the user. + # A unique identifier that represents the user. attr_accessor :id - # # Users resource type. + # Users resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 cb4e2132047..6586eea40cd 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_users.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_users.rb @@ -23,7 +23,7 @@ class RelationshipToUsers # @!visibility private attr_accessor :_unparsed - # # Relationships to user objects. + # Relationships to user objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 869dae6ffc1..636c2dbc5e8 100644 --- a/lib/datadog_api_client/v2/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v2/models/response_meta_attributes.rb @@ -23,7 +23,7 @@ class ResponseMetaAttributes # @!visibility private attr_accessor :_unparsed - # # Pagination object. + # Pagination object. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/role.rb b/lib/datadog_api_client/v2/models/role.rb index d7946fee05f..1aec72b1d3c 100644 --- a/lib/datadog_api_client/v2/models/role.rb +++ b/lib/datadog_api_client/v2/models/role.rb @@ -23,16 +23,16 @@ class Role # @!visibility private attr_accessor :_unparsed - # # Attributes of the role. + # Attributes of the role. attr_accessor :attributes - # # ID of the role. + # ID of the role. attr_accessor :id - # # Relationships of the role object returned by the API. + # Relationships of the role object returned by the API. attr_accessor :relationships - # # Roles type. + # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/role_attributes.rb b/lib/datadog_api_client/v2/models/role_attributes.rb index 605776fa644..360a29bafbd 100644 --- a/lib/datadog_api_client/v2/models/role_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_attributes.rb @@ -23,16 +23,16 @@ class RoleAttributes # @!visibility private attr_accessor :_unparsed - # # Creation time of the role. + # Creation time of the role. attr_accessor :created_at - # # Time of last role modification. + # Time of last role modification. attr_accessor :modified_at - # # Name of the role. + # Name of the role. attr_accessor :name - # # Number of users with that role. + # Number of users with that role. attr_accessor :user_count # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/role_clone.rb b/lib/datadog_api_client/v2/models/role_clone.rb index 3f1ebf9ea49..a090dd2f50a 100644 --- a/lib/datadog_api_client/v2/models/role_clone.rb +++ b/lib/datadog_api_client/v2/models/role_clone.rb @@ -23,10 +23,10 @@ class RoleClone # @!visibility private attr_accessor :_unparsed - # # Attributes required to create a new role by cloning an existing one. + # Attributes required to create a new role by cloning an existing one. attr_accessor :attributes - # # Roles type. + # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 d028d288536..14339345e80 100644 --- a/lib/datadog_api_client/v2/models/role_clone_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_clone_attributes.rb @@ -23,7 +23,7 @@ class RoleCloneAttributes # @!visibility private attr_accessor :_unparsed - # # Name of the new role that is cloned. + # Name of the new role that is cloned. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 4e93bb417e1..3c9eddae514 100644 --- a/lib/datadog_api_client/v2/models/role_clone_request.rb +++ b/lib/datadog_api_client/v2/models/role_clone_request.rb @@ -23,7 +23,7 @@ class RoleCloneRequest # @!visibility private attr_accessor :_unparsed - # # Data for the clone role request. + # Data for the clone role request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 3b1e7a56e2f..74188ef91a9 100644 --- a/lib/datadog_api_client/v2/models/role_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_create_attributes.rb @@ -23,13 +23,13 @@ class RoleCreateAttributes # @!visibility private attr_accessor :_unparsed - # # Creation time of the role. + # Creation time of the role. attr_accessor :created_at - # # Time of last role modification. + # Time of last role modification. attr_accessor :modified_at - # # Name of the role. + # Name of the role. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 08d051bc73a..47ff5f291bf 100644 --- a/lib/datadog_api_client/v2/models/role_create_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_data.rb @@ -23,13 +23,13 @@ class RoleCreateData # @!visibility private attr_accessor :_unparsed - # # Attributes of the created role. + # Attributes of the created role. attr_accessor :attributes - # # Relationships of the role object. + # Relationships of the role object. attr_accessor :relationships - # # Roles type. + # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 d783bbb3e9b..79fb68a3687 100644 --- a/lib/datadog_api_client/v2/models/role_create_request.rb +++ b/lib/datadog_api_client/v2/models/role_create_request.rb @@ -23,7 +23,7 @@ class RoleCreateRequest # @!visibility private attr_accessor :_unparsed - # # Data related to the creation of a role. + # Data related to the creation of a role. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 294af156aeb..85c9593825a 100644 --- a/lib/datadog_api_client/v2/models/role_create_response.rb +++ b/lib/datadog_api_client/v2/models/role_create_response.rb @@ -23,7 +23,7 @@ class RoleCreateResponse # @!visibility private attr_accessor :_unparsed - # # Role object returned by the API. + # Role object returned by the API. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 95faf9e4cab..652c14c4d25 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 @@ -23,16 +23,16 @@ class RoleCreateResponseData # @!visibility private attr_accessor :_unparsed - # # Attributes of the created role. + # Attributes of the created role. attr_accessor :attributes - # # ID of the role. + # ID of the role. attr_accessor :id - # # Relationships of the role object returned by the API. + # Relationships of the role object returned by the API. attr_accessor :relationships - # # Roles type. + # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/role_relationships.rb b/lib/datadog_api_client/v2/models/role_relationships.rb index d8ae398e732..7e7897d6cb4 100644 --- a/lib/datadog_api_client/v2/models/role_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_relationships.rb @@ -23,10 +23,10 @@ class RoleRelationships # @!visibility private attr_accessor :_unparsed - # # Relationship to multiple permissions objects. + # Relationship to multiple permissions objects. attr_accessor :permissions - # # Relationship to users. + # Relationship to users. attr_accessor :users # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/role_response.rb b/lib/datadog_api_client/v2/models/role_response.rb index 6ff9257e82f..c2aa27c9f59 100644 --- a/lib/datadog_api_client/v2/models/role_response.rb +++ b/lib/datadog_api_client/v2/models/role_response.rb @@ -23,7 +23,7 @@ class RoleResponse # @!visibility private attr_accessor :_unparsed - # # Role object returned by the API. + # Role object returned by the API. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 ef8ef47a5f8..2d5751b322c 100644 --- a/lib/datadog_api_client/v2/models/role_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_response_relationships.rb @@ -23,7 +23,7 @@ class RoleResponseRelationships # @!visibility private attr_accessor :_unparsed - # # Relationship to multiple permissions objects. + # Relationship to multiple permissions objects. attr_accessor :permissions # Attribute mapping from ruby-style variable name to JSON key. 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 2db7bcbc2bf..7076d5bdcb1 100644 --- a/lib/datadog_api_client/v2/models/role_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_update_attributes.rb @@ -23,13 +23,13 @@ class RoleUpdateAttributes # @!visibility private attr_accessor :_unparsed - # # Creation time of the role. + # Creation time of the role. attr_accessor :created_at - # # Time of last role modification. + # Time of last role modification. attr_accessor :modified_at - # # Name of the role. + # Name of the role. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 4a37c004c3d..e087aab6a6e 100644 --- a/lib/datadog_api_client/v2/models/role_update_data.rb +++ b/lib/datadog_api_client/v2/models/role_update_data.rb @@ -23,13 +23,13 @@ class RoleUpdateData # @!visibility private attr_accessor :_unparsed - # # Attributes of the role. + # Attributes of the role. attr_accessor :attributes - # # ID of the role. + # ID of the role. attr_accessor :id - # # Roles type. + # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 8e9cd4345a2..8a1fc4b2f76 100644 --- a/lib/datadog_api_client/v2/models/role_update_request.rb +++ b/lib/datadog_api_client/v2/models/role_update_request.rb @@ -23,7 +23,7 @@ class RoleUpdateRequest # @!visibility private attr_accessor :_unparsed - # # Data related to the update of a role. + # Data related to the update of a role. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 5e67e8e2bde..5f6bdeca2f7 100644 --- a/lib/datadog_api_client/v2/models/role_update_response.rb +++ b/lib/datadog_api_client/v2/models/role_update_response.rb @@ -23,7 +23,7 @@ class RoleUpdateResponse # @!visibility private attr_accessor :_unparsed - # # Role object returned by the API. + # Role object returned by the API. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 0eaaf3d83ae..d797e2fd81a 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 @@ -23,16 +23,16 @@ class RoleUpdateResponseData # @!visibility private attr_accessor :_unparsed - # # Attributes of the role. + # Attributes of the role. attr_accessor :attributes - # # ID of the role. + # ID of the role. attr_accessor :id - # # Relationships of the role object returned by the API. + # Relationships of the role object returned by the API. attr_accessor :relationships - # # Roles type. + # Roles type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/roles_response.rb b/lib/datadog_api_client/v2/models/roles_response.rb index 0273f876edd..fa9657ff2be 100644 --- a/lib/datadog_api_client/v2/models/roles_response.rb +++ b/lib/datadog_api_client/v2/models/roles_response.rb @@ -23,10 +23,10 @@ class RolesResponse # @!visibility private attr_accessor :_unparsed - # # Array of returned roles. + # Array of returned roles. attr_accessor :data - # # Object describing meta attributes of response. + # Object describing meta attributes of response. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/security_filter.rb b/lib/datadog_api_client/v2/models/security_filter.rb index a263a0e2842..7e9ca5ba2c8 100644 --- a/lib/datadog_api_client/v2/models/security_filter.rb +++ b/lib/datadog_api_client/v2/models/security_filter.rb @@ -23,13 +23,13 @@ class SecurityFilter # @!visibility private attr_accessor :_unparsed - # # The object describing a security filter. + # The object describing a security filter. attr_accessor :attributes - # # The ID of the security filter. + # The ID of the security filter. attr_accessor :id - # # The type of the resource. The value should always be `security_filters`. + # The type of the resource. The value should always be `security_filters`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 03982217334..3a43d9c378f 100644 --- a/lib/datadog_api_client/v2/models/security_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_attributes.rb @@ -23,25 +23,25 @@ class SecurityFilterAttributes # @!visibility private attr_accessor :_unparsed - # # The list of exclusion filters applied in this security filter. + # The list of exclusion filters applied in this security filter. attr_accessor :exclusion_filters - # # The filtered data type. + # The filtered data type. attr_accessor :filtered_data_type - # # Whether the security filter is the built-in filter. + # Whether the security filter is the built-in filter. attr_accessor :is_builtin - # # Whether the security filter is enabled. + # Whether the security filter is enabled. attr_accessor :is_enabled - # # The security filter name. + # The security filter name. attr_accessor :name - # # The security filter query. Logs accepted by this query will be accepted by this filter. + # The security filter query. Logs accepted by this query will be accepted by this filter. attr_accessor :query - # # The version of the security filter. + # The version of the security filter. attr_accessor :version # Attribute mapping from ruby-style variable name to JSON key. 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 dfa814814ec..22d3c73f774 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 @@ -23,19 +23,19 @@ class SecurityFilterCreateAttributes # @!visibility private attr_accessor :_unparsed - # # Exclusion filters to exclude some logs from the security filter. + # Exclusion filters to exclude some logs from the security filter. attr_accessor :exclusion_filters - # # The filtered data type. + # The filtered data type. attr_accessor :filtered_data_type - # # Whether the security filter is enabled. + # Whether the security filter is enabled. attr_accessor :is_enabled - # # The name of the security filter. + # The name of the security filter. attr_accessor :name - # # The query of the security filter. + # The query of the security filter. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 534fc56160a..855cd03f203 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 @@ -23,10 +23,10 @@ class SecurityFilterCreateData # @!visibility private attr_accessor :_unparsed - # # Object containing the attributes of the security filter to be created. + # Object containing the attributes of the security filter to be created. attr_accessor :attributes - # # The type of the resource. The value should always be `security_filters`. + # The type of the resource. The value should always be `security_filters`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 55b4aa70ff2..9c7a7025a86 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 @@ -23,7 +23,7 @@ class SecurityFilterCreateRequest # @!visibility private attr_accessor :_unparsed - # # Object for a single security filter. + # Object for a single security filter. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 f313bf7e5a0..efd7c3f2d26 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 @@ -23,10 +23,10 @@ class SecurityFilterExclusionFilter # @!visibility private attr_accessor :_unparsed - # # Exclusion filter name. + # Exclusion filter name. attr_accessor :name - # # Exclusion filter query. Logs that match this query are excluded from the security filter. + # Exclusion filter query. Logs that match this query are excluded from the security filter. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 b9f363c1908..2f07902b8ed 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 @@ -23,10 +23,10 @@ class SecurityFilterExclusionFilterResponse # @!visibility private attr_accessor :_unparsed - # # The exclusion filter name. + # The exclusion filter name. attr_accessor :name - # # The exclusion filter query. + # The exclusion filter query. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 099b91aab0f..c3431356bf7 100644 --- a/lib/datadog_api_client/v2/models/security_filter_meta.rb +++ b/lib/datadog_api_client/v2/models/security_filter_meta.rb @@ -23,7 +23,7 @@ class SecurityFilterMeta # @!visibility private attr_accessor :_unparsed - # # A warning message. + # A warning message. attr_accessor :warning # Attribute mapping from ruby-style variable name to JSON key. 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 eea3f9ec453..702564143a3 100644 --- a/lib/datadog_api_client/v2/models/security_filter_response.rb +++ b/lib/datadog_api_client/v2/models/security_filter_response.rb @@ -23,10 +23,10 @@ class SecurityFilterResponse # @!visibility private attr_accessor :_unparsed - # # The security filter's properties. + # The security filter's properties. attr_accessor :data - # # Optional metadata associated to the response. + # Optional metadata associated to the response. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 bbb0b03d1df..a4412dcf438 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 @@ -23,22 +23,22 @@ class SecurityFilterUpdateAttributes # @!visibility private attr_accessor :_unparsed - # # Exclusion filters to exclude some logs from the security filter. + # Exclusion filters to exclude some logs from the security filter. attr_accessor :exclusion_filters - # # The filtered data type. + # The filtered data type. attr_accessor :filtered_data_type - # # Whether the security filter is enabled. + # Whether the security filter is enabled. attr_accessor :is_enabled - # # The name of the security filter. + # The name of the security filter. attr_accessor :name - # # The query of the security filter. + # The query of the security filter. attr_accessor :query - # # The version of the security filter to update. + # The version of the security filter to update. attr_accessor :version # Attribute mapping from ruby-style variable name to JSON key. 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 ec4d9d14753..31064de1467 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 @@ -23,10 +23,10 @@ class SecurityFilterUpdateData # @!visibility private attr_accessor :_unparsed - # # The security filters properties to be updated. + # The security filters properties to be updated. attr_accessor :attributes - # # The type of the resource. The value should always be `security_filters`. + # The type of the resource. The value should always be `security_filters`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 5d7c07740a5..0cfb67ffd96 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 @@ -23,7 +23,7 @@ class SecurityFilterUpdateRequest # @!visibility private attr_accessor :_unparsed - # # The new security filter properties. + # The new security filter properties. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 f1289aec37f..4f94e1c41bf 100644 --- a/lib/datadog_api_client/v2/models/security_filters_response.rb +++ b/lib/datadog_api_client/v2/models/security_filters_response.rb @@ -23,10 +23,10 @@ class SecurityFiltersResponse # @!visibility private attr_accessor :_unparsed - # # A list of security filters objects. + # A list of security filters objects. attr_accessor :data - # # Optional metadata associated to the response. + # Optional metadata associated to the response. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 28eab40ee56..86ea7f9232d 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_filter.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_filter.rb @@ -23,10 +23,10 @@ class SecurityMonitoringFilter # @!visibility private attr_accessor :_unparsed - # # The type of filtering action. + # The type of filtering action. attr_accessor :action - # # Query for selecting logs to apply the filtering action. + # Query for selecting logs to apply the filtering action. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. 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 6990bb25818..3f991c088c1 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 @@ -23,10 +23,10 @@ class SecurityMonitoringListRulesResponse # @!visibility private attr_accessor :_unparsed - # # Array containing the list of rules. + # Array containing the list of rules. attr_accessor :data - # # Object describing meta attributes of response. + # Object describing meta attributes of response. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 85629539e30..ae4fe689ab0 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 @@ -23,17 +23,17 @@ class SecurityMonitoringRuleCase # @!visibility private attr_accessor :_unparsed - # # A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated + # A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated # based on the event counts in the previously defined queries. attr_accessor :condition - # # Name of the case. + # Name of the case. attr_accessor :name - # # Notification targets for each rule case. + # Notification targets for each rule case. attr_accessor :notifications - # # Severity of the Security Signal. + # Severity of the Security Signal. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. 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 dd81da2f019..6311143f2c4 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 @@ -23,17 +23,17 @@ class SecurityMonitoringRuleCaseCreate # @!visibility private attr_accessor :_unparsed - # # A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated + # A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated # based on the event counts in the previously defined queries. attr_accessor :condition - # # Name of the case. + # Name of the case. attr_accessor :name - # # Notification targets for each rule case. + # Notification targets for each rule case. attr_accessor :notifications - # # Severity of the Security Signal. + # Severity of the Security Signal. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb index 1a463ea2448..213a3033990 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb @@ -23,34 +23,34 @@ class SecurityMonitoringRuleCreatePayload # @!visibility private attr_accessor :_unparsed - # # Cases for generating signals. + # Cases for generating signals. attr_accessor :cases - # # Additional queries to filter matched events before they are processed. + # Additional queries to filter matched events before they are processed. attr_accessor :filters - # # Whether the notifications include the triggering group-by values in their title. + # Whether the notifications include the triggering group-by values in their title. attr_accessor :has_extended_title - # # Whether the rule is enabled. + # Whether the rule is enabled. attr_accessor :is_enabled - # # Message for generated signals. + # Message for generated signals. attr_accessor :message - # # The name of the rule. + # The name of the rule. attr_accessor :name - # # Options on rules. + # Options on rules. attr_accessor :options - # # Queries for selecting logs which are part of the rule. + # Queries for selecting logs which are part of the rule. attr_accessor :queries - # # Tags for generated signals. + # Tags for generated signals. attr_accessor :tags - # # The rule type. + # The rule type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 2e84ac3f837..3d95583f0a6 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 @@ -23,10 +23,10 @@ class SecurityMonitoringRuleNewValueOptions # @!visibility private attr_accessor :_unparsed - # # The duration in days after which a learned value is forgotten. + # The duration in days after which a learned value is forgotten. attr_accessor :forget_after - # # The duration in days during which values are learned, and after which signals will be generated for values that + # The duration in days during which values are learned, and after which signals will be generated for values that # weren't learned. If set to 0, a signal will be generated for all new values after the first value is learned. attr_accessor :learning_duration 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 ba2394dbb10..8cd5b6085f9 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 @@ -23,22 +23,22 @@ class SecurityMonitoringRuleOptions # @!visibility private attr_accessor :_unparsed - # # The detection method. + # The detection method. attr_accessor :detection_method - # # A time window is specified to match when at least one of the cases matches true. This is a sliding window + # A time window is specified to match when at least one of the cases matches true. This is a sliding window # and evaluates in real time. attr_accessor :evaluation_window - # # Once a signal is generated, the signal will remain “open” if a case is matched at least once within + # Once a signal is generated, the signal will remain “open” if a case is matched at least once within # this keep alive window. attr_accessor :keep_alive - # # A signal will “close” regardless of the query being matched once the time exceeds the maximum duration. + # A signal will “close” regardless of the query being matched once the time exceeds the maximum duration. # This time is calculated from the first seen timestamp. attr_accessor :max_signal_duration - # # Options on new value rules. + # Options on new value rules. attr_accessor :new_value_options # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb index 060de7597ae..2070beedc67 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb @@ -23,23 +23,23 @@ class SecurityMonitoringRuleQuery # @!visibility private attr_accessor :_unparsed - # # The aggregation type. + # The aggregation type. attr_accessor :aggregation - # # Field for which the cardinality is measured. Sent as an array. + # Field for which the cardinality is measured. Sent as an array. attr_accessor :distinct_fields - # # Fields to group by. + # Fields to group by. attr_accessor :group_by_fields - # # The target field to aggregate over when using the sum or max + # The target field to aggregate over when using the sum or max # aggregations. attr_accessor :metric - # # Name of the query. + # Name of the query. attr_accessor :name - # # Query to run on logs. + # Query to run on logs. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb index b1d356bb4be..bf82e2493b6 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb @@ -23,23 +23,23 @@ class SecurityMonitoringRuleQueryCreate # @!visibility private attr_accessor :_unparsed - # # The aggregation type. + # The aggregation type. attr_accessor :aggregation - # # Field for which the cardinality is measured. Sent as an array. + # Field for which the cardinality is measured. Sent as an array. attr_accessor :distinct_fields - # # Fields to group by. + # Fields to group by. attr_accessor :group_by_fields - # # The target field to aggregate over when using the sum or max + # The target field to aggregate over when using the sum or max # aggregations. attr_accessor :metric - # # Name of the query. + # Name of the query. attr_accessor :name - # # Query to run on logs. + # Query to run on logs. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb index 02da54125a0..913159379e9 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb @@ -23,55 +23,55 @@ class SecurityMonitoringRuleResponse # @!visibility private attr_accessor :_unparsed - # # Cases for generating signals. + # Cases for generating signals. attr_accessor :cases - # # When the rule was created, timestamp in milliseconds. + # When the rule was created, timestamp in milliseconds. attr_accessor :created_at - # # User ID of the user who created the rule. + # User ID of the user who created the rule. attr_accessor :creation_author_id - # # Additional queries to filter matched events before they are processed. + # Additional queries to filter matched events before they are processed. attr_accessor :filters - # # Whether the notifications include the triggering group-by values in their title. + # Whether the notifications include the triggering group-by values in their title. attr_accessor :has_extended_title - # # The ID of the rule. + # The ID of the rule. attr_accessor :id - # # Whether the rule is included by default. + # Whether the rule is included by default. attr_accessor :is_default - # # Whether the rule has been deleted. + # Whether the rule has been deleted. attr_accessor :is_deleted - # # Whether the rule is enabled. + # Whether the rule is enabled. attr_accessor :is_enabled - # # Message for generated signals. + # Message for generated signals. attr_accessor :message - # # The name of the rule. + # The name of the rule. attr_accessor :name - # # Options on rules. + # Options on rules. attr_accessor :options - # # Queries for selecting logs which are part of the rule. + # Queries for selecting logs which are part of the rule. attr_accessor :queries - # # Tags for generated signals. + # Tags for generated signals. attr_accessor :tags - # # The rule type. + # The rule type. attr_accessor :type - # # User ID of the user who updated the rule. + # User ID of the user who updated the rule. attr_accessor :update_author_id - # # The version of the rule. + # The version of the rule. attr_accessor :version # Attribute mapping from ruby-style variable name to JSON key. 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 86feab1e9a2..7ab9cd59aeb 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 @@ -23,34 +23,34 @@ class SecurityMonitoringRuleUpdatePayload # @!visibility private attr_accessor :_unparsed - # # Cases for generating signals. + # Cases for generating signals. attr_accessor :cases - # # Additional queries to filter matched events before they are processed. + # Additional queries to filter matched events before they are processed. attr_accessor :filters - # # Whether the notifications include the triggering group-by values in their title. + # Whether the notifications include the triggering group-by values in their title. attr_accessor :has_extended_title - # # Whether the rule is enabled. + # Whether the rule is enabled. attr_accessor :is_enabled - # # Message for generated signals. + # Message for generated signals. attr_accessor :message - # # Name of the rule. + # Name of the rule. attr_accessor :name - # # Options on rules. + # Options on rules. attr_accessor :options - # # Queries for selecting logs which are part of the rule. + # Queries for selecting logs which are part of the rule. attr_accessor :queries - # # Tags for generated signals. + # Tags for generated signals. attr_accessor :tags - # # The version of the rule being updated. + # The version of the rule being updated. attr_accessor :version # Attribute mapping from ruby-style variable name to JSON key. 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 65aab2201cc..e53d4ffa4e3 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal.rb @@ -23,14 +23,14 @@ class SecurityMonitoringSignal # @!visibility private attr_accessor :_unparsed - # # The object containing all signal attributes and their + # The object containing all signal attributes and their # associated values. attr_accessor :attributes - # # The unique ID of the security signal. + # The unique ID of the security signal. attr_accessor :id - # # The type of event. + # The type of event. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 b6767f55647..90153f08b3d 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 @@ -24,16 +24,16 @@ class SecurityMonitoringSignalAttributes # @!visibility private attr_accessor :_unparsed - # # A JSON object of attributes in the security signal. + # A JSON object of attributes in the security signal. attr_accessor :attributes - # # The message in the security signal defined by the rule that generated the signal. + # The message in the security signal defined by the rule that generated the signal. attr_accessor :message - # # An array of tags associated with the security signal. + # An array of tags associated with the security signal. attr_accessor :tags - # # The timestamp of the security signal. + # The timestamp of the security signal. attr_accessor :timestamp # Attribute mapping from ruby-style variable name to JSON key. 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 adfc86d607a..232c1403a72 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 @@ -23,13 +23,13 @@ class SecurityMonitoringSignalListRequest # @!visibility private attr_accessor :_unparsed - # # Search filters for listing security signals. + # Search filters for listing security signals. attr_accessor :filter - # # The paging attributes for listing security signals. + # The paging attributes for listing security signals. attr_accessor :page - # # The sort parameters used for querying security signals. + # The sort parameters used for querying security signals. attr_accessor :sort # Attribute mapping from ruby-style variable name to JSON key. 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 2fb1c821c6c..0563b26aacd 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 @@ -23,13 +23,13 @@ class SecurityMonitoringSignalListRequestFilter # @!visibility private attr_accessor :_unparsed - # # The minimum timestamp for requested security signals. + # The minimum timestamp for requested security signals. attr_accessor :from - # # Search query for listing security signals. + # Search query for listing security signals. attr_accessor :query - # # The maximum timestamp for requested security signals. + # The maximum timestamp for requested security signals. attr_accessor :to # Attribute mapping from ruby-style variable name to JSON key. 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 830aa6b2d9c..bfeb14e182b 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 @@ -23,10 +23,10 @@ class SecurityMonitoringSignalListRequestPage # @!visibility private attr_accessor :_unparsed - # # A list of results using the cursor provided in the previous query. + # A list of results using the cursor provided in the previous query. attr_accessor :cursor - # # The maximum number of security signals in the response. + # The maximum number of security signals in the response. attr_accessor :limit # Attribute mapping from ruby-style variable name to JSON key. 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 4f48715f6e4..eec72fec523 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 @@ -24,13 +24,13 @@ class SecurityMonitoringSignalsListResponse # @!visibility private attr_accessor :_unparsed - # # An array of security signals matching the request. + # An array of security signals matching the request. attr_accessor :data - # # Links attributes. + # Links attributes. attr_accessor :links - # # Meta attributes. + # Meta attributes. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. 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 185f785841f..bc5d4a1c389 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 @@ -23,7 +23,7 @@ class SecurityMonitoringSignalsListResponseLinks # @!visibility private attr_accessor :_unparsed - # # The link for the next set of results. **Note**: The request can also be made using the + # The link for the next set of results. **Note**: The request can also be made using the # POST endpoint. attr_accessor :_next 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 c445cf33c0d..f165a7adfc4 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 @@ -23,7 +23,7 @@ class SecurityMonitoringSignalsListResponseMeta # @!visibility private attr_accessor :_unparsed - # # Paging attributes. + # Paging attributes. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. 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 d806274bd7d..73c22a7f915 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 @@ -23,7 +23,7 @@ class SecurityMonitoringSignalsListResponseMetaPage # @!visibility private attr_accessor :_unparsed - # # The cursor used to get the next results, if any. To make the next request, use the same + # The cursor used to get the next results, if any. To make the next request, use the same # parameters with the addition of the `page[cursor]`. attr_accessor :after 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 e4cfa773046..bf16972b9bd 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 @@ -23,16 +23,16 @@ class ServiceAccountCreateAttributes # @!visibility private attr_accessor :_unparsed - # # The email of the user. + # The email of the user. attr_accessor :email - # # The name of the user. + # The name of the user. attr_accessor :name - # # Whether the user is a service account. Must be true. + # Whether the user is a service account. Must be true. attr_accessor :service_account - # # The title of the user. + # The title of the user. attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. 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 6f3d61106c4..d7b27c583b2 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 @@ -23,13 +23,13 @@ class ServiceAccountCreateData # @!visibility private attr_accessor :_unparsed - # # Attributes of the created user. + # Attributes of the created user. attr_accessor :attributes - # # Relationships of the user object. + # Relationships of the user object. attr_accessor :relationships - # # Users resource type. + # Users resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 7c957740e30..da94101f50d 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 @@ -23,7 +23,7 @@ class ServiceAccountCreateRequest # @!visibility private attr_accessor :_unparsed - # # Object to create a service account User. + # Object to create a service account User. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/user.rb b/lib/datadog_api_client/v2/models/user.rb index b4ab11438a7..94ff611a753 100644 --- a/lib/datadog_api_client/v2/models/user.rb +++ b/lib/datadog_api_client/v2/models/user.rb @@ -23,16 +23,16 @@ class User # @!visibility private attr_accessor :_unparsed - # # Attributes of user object returned by the API. + # Attributes of user object returned by the API. attr_accessor :attributes - # # ID of the user. + # ID of the user. attr_accessor :id - # # Relationships of the user object returned by the API. + # Relationships of the user object returned by the API. attr_accessor :relationships - # # Users resource type. + # Users resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/user_attributes.rb b/lib/datadog_api_client/v2/models/user_attributes.rb index 088d4afd53f..08b695cee8b 100644 --- a/lib/datadog_api_client/v2/models/user_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_attributes.rb @@ -23,37 +23,37 @@ class UserAttributes # @!visibility private attr_accessor :_unparsed - # # Creation time of the user. + # Creation time of the user. attr_accessor :created_at - # # Whether the user is disabled. + # Whether the user is disabled. attr_accessor :disabled - # # Email of the user. + # Email of the user. attr_accessor :email - # # Handle of the user. + # Handle of the user. attr_accessor :handle - # # URL of the user's icon. + # URL of the user's icon. attr_accessor :icon - # # Time that the user was last modified. + # Time that the user was last modified. attr_accessor :modified_at - # # Name of the user. + # Name of the user. attr_accessor :name - # # Whether the user is a service account. + # Whether the user is a service account. attr_accessor :service_account - # # Status of the user. + # Status of the user. attr_accessor :status - # # Title of the user. + # Title of the user. attr_accessor :title - # # Whether the user is verified. + # Whether the user is verified. attr_accessor :verified # Attribute mapping from ruby-style variable name to JSON key. 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 e8b22a66580..273bb7319cf 100644 --- a/lib/datadog_api_client/v2/models/user_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_create_attributes.rb @@ -23,13 +23,13 @@ class UserCreateAttributes # @!visibility private attr_accessor :_unparsed - # # The email of the user. + # The email of the user. attr_accessor :email - # # The name of the user. + # The name of the user. attr_accessor :name - # # The title of the user. + # The title of the user. attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. 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 ad47ace2e51..5b38f1c3258 100644 --- a/lib/datadog_api_client/v2/models/user_create_data.rb +++ b/lib/datadog_api_client/v2/models/user_create_data.rb @@ -23,13 +23,13 @@ class UserCreateData # @!visibility private attr_accessor :_unparsed - # # Attributes of the created user. + # Attributes of the created user. attr_accessor :attributes - # # Relationships of the user object. + # Relationships of the user object. attr_accessor :relationships - # # Users resource type. + # Users resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 1b1c5392f9a..38c5417e934 100644 --- a/lib/datadog_api_client/v2/models/user_create_request.rb +++ b/lib/datadog_api_client/v2/models/user_create_request.rb @@ -23,7 +23,7 @@ class UserCreateRequest # @!visibility private attr_accessor :_unparsed - # # Object to create a user. + # Object to create a user. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 258d01bac7b..253bfd6e3d0 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_data.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_data.rb @@ -23,10 +23,10 @@ class UserInvitationData # @!visibility private attr_accessor :_unparsed - # # Relationships data for user invitation. + # Relationships data for user invitation. attr_accessor :relationships - # # User invitations type. + # User invitations type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 99feb7d4318..dc07d91b801 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 @@ -23,16 +23,16 @@ class UserInvitationDataAttributes # @!visibility private attr_accessor :_unparsed - # # Creation time of the user invitation. + # Creation time of the user invitation. attr_accessor :created_at - # # Time of invitation expiration. + # Time of invitation expiration. attr_accessor :expires_at - # # Type of invitation. + # Type of invitation. attr_accessor :invite_type - # # UUID of the user invitation. + # UUID of the user invitation. attr_accessor :uuid # Attribute mapping from ruby-style variable name to JSON key. 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 6c11ba3c579..2853584f0f2 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_relationships.rb @@ -23,7 +23,7 @@ class UserInvitationRelationships # @!visibility private attr_accessor :_unparsed - # # Relationship to user. + # Relationship to user. attr_accessor :user # Attribute mapping from ruby-style variable name to JSON key. 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 48b6dd68e93..aabc2b6f18f 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_response.rb @@ -23,7 +23,7 @@ class UserInvitationResponse # @!visibility private attr_accessor :_unparsed - # # Object of a user invitation returned by the API. + # Object of a user invitation returned by the API. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 d6abeac48ec..ee4ee80a320 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 @@ -23,13 +23,13 @@ class UserInvitationResponseData # @!visibility private attr_accessor :_unparsed - # # Attributes of a user invitation. + # Attributes of a user invitation. attr_accessor :attributes - # # ID of the user invitation. + # ID of the user invitation. attr_accessor :id - # # User invitations type. + # User invitations type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 18c5fbaf3cb..603d4d82815 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_request.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_request.rb @@ -23,7 +23,7 @@ class UserInvitationsRequest # @!visibility private attr_accessor :_unparsed - # # List of user invitations. + # List of user invitations. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. 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 8ca04b28902..84a09b74226 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_response.rb @@ -23,7 +23,7 @@ class UserInvitationsResponse # @!visibility private attr_accessor :_unparsed - # # Array of user invitations. + # Array of user invitations. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/user_relationships.rb b/lib/datadog_api_client/v2/models/user_relationships.rb index 27ea4e7c8c1..8f82f1e0377 100644 --- a/lib/datadog_api_client/v2/models/user_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_relationships.rb @@ -23,7 +23,7 @@ class UserRelationships # @!visibility private attr_accessor :_unparsed - # # Relationship to roles. + # Relationship to roles. attr_accessor :roles # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/user_response.rb b/lib/datadog_api_client/v2/models/user_response.rb index ea3b7101a92..e9818b3490f 100644 --- a/lib/datadog_api_client/v2/models/user_response.rb +++ b/lib/datadog_api_client/v2/models/user_response.rb @@ -23,10 +23,10 @@ class UserResponse # @!visibility private attr_accessor :_unparsed - # # User object returned by the API. + # User object returned by the API. attr_accessor :data - # # Array of objects related to the user. + # Array of objects related to the user. attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. 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 ecda2dc5dbc..58f35504a19 100644 --- a/lib/datadog_api_client/v2/models/user_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_response_relationships.rb @@ -23,16 +23,16 @@ class UserResponseRelationships # @!visibility private attr_accessor :_unparsed - # # Relationship to an organization. + # Relationship to an organization. attr_accessor :org - # # Relationship to organizations. + # Relationship to organizations. attr_accessor :other_orgs - # # Relationship to users. + # Relationship to users. attr_accessor :other_users - # # Relationship to roles. + # Relationship to roles. attr_accessor :roles # Attribute mapping from ruby-style variable name to JSON key. 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 195cccf6f16..7d8568bd157 100644 --- a/lib/datadog_api_client/v2/models/user_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_update_attributes.rb @@ -23,13 +23,13 @@ class UserUpdateAttributes # @!visibility private attr_accessor :_unparsed - # # If the user is enabled or disabled. + # If the user is enabled or disabled. attr_accessor :disabled - # # The email of the user. + # The email of the user. attr_accessor :email - # # The name of the user. + # The name of the user. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. 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 3d01d33f448..15302478290 100644 --- a/lib/datadog_api_client/v2/models/user_update_data.rb +++ b/lib/datadog_api_client/v2/models/user_update_data.rb @@ -23,13 +23,13 @@ class UserUpdateData # @!visibility private attr_accessor :_unparsed - # # Attributes of the edited user. + # Attributes of the edited user. attr_accessor :attributes - # # ID of the user. + # ID of the user. attr_accessor :id - # # Users resource type. + # Users resource type. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. 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 12ca170b2cd..5bd73becfb9 100644 --- a/lib/datadog_api_client/v2/models/user_update_request.rb +++ b/lib/datadog_api_client/v2/models/user_update_request.rb @@ -23,7 +23,7 @@ class UserUpdateRequest # @!visibility private attr_accessor :_unparsed - # # Object to update a user. + # Object to update a user. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v2/models/users_response.rb b/lib/datadog_api_client/v2/models/users_response.rb index 38607162ee0..f7f1f59e42f 100644 --- a/lib/datadog_api_client/v2/models/users_response.rb +++ b/lib/datadog_api_client/v2/models/users_response.rb @@ -23,13 +23,13 @@ class UsersResponse # @!visibility private attr_accessor :_unparsed - # # Array of returned users. + # Array of returned users. attr_accessor :data - # # Array of objects related to the users. + # Array of objects related to the users. attr_accessor :included - # # Object describing meta attributes of response. + # Object describing meta attributes of response. attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. From 85e2e6ac55074b2cde581858319c51a0539d16c6 Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Mon, 7 Feb 2022 12:25:57 +0100 Subject: [PATCH 16/23] private setters --- .generator/src/generator/templates/model_generic.j2 | 1 + .../v1/models/alert_graph_widget_definition.rb | 4 ++++ .../v1/models/alert_value_widget_definition.rb | 4 ++++ lib/datadog_api_client/v1/models/api_error_response.rb | 1 + lib/datadog_api_client/v1/models/api_key.rb | 1 + .../v1/models/apm_stats_query_column_type.rb | 3 +++ .../v1/models/apm_stats_query_definition.rb | 5 +++++ lib/datadog_api_client/v1/models/application_key.rb | 1 + .../v1/models/aws_account_and_lambda_request.rb | 2 ++ .../v1/models/aws_logs_services_request.rb | 2 ++ lib/datadog_api_client/v1/models/aws_tag_filter.rb | 1 + .../v1/models/aws_tag_filter_create_request.rb | 1 + .../v1/models/aws_tag_filter_delete_request.rb | 1 + .../v1/models/cancel_downtimes_by_scope_request.rb | 1 + .../v1/models/change_widget_definition.rb | 3 +++ lib/datadog_api_client/v1/models/change_widget_request.rb | 5 +++++ .../v1/models/check_can_delete_monitor_response.rb | 1 + .../v1/models/check_status_widget_definition.rb | 4 ++++ lib/datadog_api_client/v1/models/dashboard.rb | 4 ++++ .../v1/models/dashboard_bulk_action_data.rb | 2 ++ .../v1/models/dashboard_bulk_delete_request.rb | 1 + lib/datadog_api_client/v1/models/dashboard_list.rb | 1 + .../v1/models/dashboard_restore_request.rb | 1 + .../v1/models/dashboard_summary_definition.rb | 1 + .../v1/models/dashboard_template_variable.rb | 1 + .../v1/models/distribution_widget_definition.rb | 3 +++ lib/datadog_api_client/v1/models/downtime.rb | 3 +++ lib/datadog_api_client/v1/models/downtime_child.rb | 3 +++ lib/datadog_api_client/v1/models/downtime_recurrence.rb | 2 ++ lib/datadog_api_client/v1/models/event.rb | 3 +++ lib/datadog_api_client/v1/models/event_create_request.rb | 5 +++++ lib/datadog_api_client/v1/models/event_create_response.rb | 4 ++++ lib/datadog_api_client/v1/models/event_query_definition.rb | 2 ++ .../v1/models/event_stream_widget_definition.rb | 4 ++++ .../v1/models/event_timeline_widget_definition.rb | 3 +++ ...a_and_function_apm_dependency_stats_query_definition.rb | 7 +++++++ ...ula_and_function_apm_resource_stats_query_definition.rb | 5 +++++ .../models/formula_and_function_event_query_definition.rb | 3 +++ .../formula_and_function_event_query_definition_compute.rb | 1 + .../formula_and_function_event_query_definition_search.rb | 1 + .../v1/models/formula_and_function_event_query_group_by.rb | 1 + .../formula_and_function_event_query_group_by_sort.rb | 2 ++ .../models/formula_and_function_metric_query_definition.rb | 4 ++++ .../formula_and_function_process_query_definition.rb | 5 +++++ .../v1/models/free_text_widget_definition.rb | 3 +++ lib/datadog_api_client/v1/models/funnel_query.rb | 3 +++ .../v1/models/funnel_query_steps_item.rb | 2 ++ .../v1/models/funnel_widget_definition.rb | 3 +++ lib/datadog_api_client/v1/models/funnel_widget_request.rb | 2 ++ .../v1/models/geomap_widget_definition.rb | 5 +++++ .../v1/models/geomap_widget_definition_style.rb | 2 ++ .../v1/models/geomap_widget_definition_view.rb | 1 + lib/datadog_api_client/v1/models/geomap_widget_request.rb | 1 + .../v1/models/group_widget_definition.rb | 4 ++++ .../v1/models/heat_map_widget_definition.rb | 3 +++ .../v1/models/host_map_widget_definition.rb | 4 ++++ .../v1/models/hourly_usage_attribution_body.rb | 1 + lib/datadog_api_client/v1/models/http_log_error.rb | 2 ++ .../v1/models/i_frame_widget_definition.rb | 2 ++ lib/datadog_api_client/v1/models/idp_form_data.rb | 1 + lib/datadog_api_client/v1/models/idp_response.rb | 1 + .../v1/models/image_widget_definition.rb | 6 ++++++ lib/datadog_api_client/v1/models/list_stream_column.rb | 2 ++ lib/datadog_api_client/v1/models/list_stream_query.rb | 2 ++ .../v1/models/list_stream_widget_definition.rb | 3 +++ .../v1/models/list_stream_widget_request.rb | 3 +++ .../v1/models/log_query_definition_group_by.rb | 1 + .../v1/models/log_query_definition_group_by_sort.rb | 2 ++ .../v1/models/log_query_definition_search.rb | 1 + .../v1/models/log_stream_widget_definition.rb | 3 +++ .../v1/models/logs_arithmetic_processor.rb | 3 +++ .../v1/models/logs_attribute_remapper.rb | 4 ++++ .../v1/models/logs_category_processor.rb | 3 +++ lib/datadog_api_client/v1/models/logs_date_remapper.rb | 2 ++ lib/datadog_api_client/v1/models/logs_exclusion.rb | 1 + lib/datadog_api_client/v1/models/logs_exclusion_filter.rb | 1 + lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb | 3 +++ lib/datadog_api_client/v1/models/logs_grok_parser.rb | 4 ++++ lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb | 1 + lib/datadog_api_client/v1/models/logs_index.rb | 2 ++ .../v1/models/logs_index_update_request.rb | 1 + lib/datadog_api_client/v1/models/logs_indexes_order.rb | 1 + lib/datadog_api_client/v1/models/logs_list_request.rb | 3 +++ lib/datadog_api_client/v1/models/logs_list_request_time.rb | 2 ++ lib/datadog_api_client/v1/models/logs_lookup_processor.rb | 4 ++++ lib/datadog_api_client/v1/models/logs_message_remapper.rb | 2 ++ lib/datadog_api_client/v1/models/logs_pipeline.rb | 1 + .../v1/models/logs_pipeline_processor.rb | 1 + lib/datadog_api_client/v1/models/logs_pipelines_order.rb | 1 + lib/datadog_api_client/v1/models/logs_query_compute.rb | 1 + lib/datadog_api_client/v1/models/logs_service_remapper.rb | 2 ++ lib/datadog_api_client/v1/models/logs_status_remapper.rb | 2 ++ .../v1/models/logs_string_builder_processor.rb | 3 +++ lib/datadog_api_client/v1/models/logs_trace_remapper.rb | 1 + lib/datadog_api_client/v1/models/logs_url_parser.rb | 3 +++ lib/datadog_api_client/v1/models/logs_user_agent_parser.rb | 3 +++ lib/datadog_api_client/v1/models/metrics_payload.rb | 1 + lib/datadog_api_client/v1/models/metrics_query_metadata.rb | 1 + lib/datadog_api_client/v1/models/monitor.rb | 4 ++++ .../monitor_formula_and_function_event_query_definition.rb | 3 +++ ..._formula_and_function_event_query_definition_compute.rb | 1 + ...r_formula_and_function_event_query_definition_search.rb | 1 + .../monitor_formula_and_function_event_query_group_by.rb | 1 + ...nitor_formula_and_function_event_query_group_by_sort.rb | 2 ++ .../v1/models/monitor_group_search_result.rb | 1 + lib/datadog_api_client/v1/models/monitor_options.rb | 1 + lib/datadog_api_client/v1/models/monitor_search_result.rb | 2 ++ lib/datadog_api_client/v1/models/monitor_state_group.rb | 1 + .../v1/models/monitor_summary_widget_definition.rb | 7 +++++++ lib/datadog_api_client/v1/models/monitor_update_request.rb | 3 +++ lib/datadog_api_client/v1/models/note_widget_definition.rb | 5 +++++ lib/datadog_api_client/v1/models/notebook_absolute_time.rb | 2 ++ .../v1/models/notebook_cell_create_request.rb | 2 ++ lib/datadog_api_client/v1/models/notebook_cell_response.rb | 3 +++ .../v1/models/notebook_cell_update_request.rb | 3 +++ lib/datadog_api_client/v1/models/notebook_create_data.rb | 2 ++ .../v1/models/notebook_create_data_attributes.rb | 4 ++++ .../v1/models/notebook_create_request.rb | 1 + .../v1/models/notebook_distribution_cell_attributes.rb | 2 ++ .../v1/models/notebook_heat_map_cell_attributes.rb | 2 ++ .../v1/models/notebook_log_stream_cell_attributes.rb | 2 ++ .../v1/models/notebook_markdown_cell_attributes.rb | 1 + .../v1/models/notebook_markdown_cell_definition.rb | 2 ++ lib/datadog_api_client/v1/models/notebook_metadata.rb | 1 + lib/datadog_api_client/v1/models/notebook_relative_time.rb | 1 + lib/datadog_api_client/v1/models/notebook_response_data.rb | 3 +++ .../v1/models/notebook_response_data_attributes.rb | 4 ++++ lib/datadog_api_client/v1/models/notebook_split_by.rb | 2 ++ .../v1/models/notebook_timeseries_cell_attributes.rb | 2 ++ .../v1/models/notebook_toplist_cell_attributes.rb | 2 ++ lib/datadog_api_client/v1/models/notebook_update_data.rb | 2 ++ .../v1/models/notebook_update_data_attributes.rb | 4 ++++ .../v1/models/notebook_update_request.rb | 1 + .../v1/models/notebooks_response_data.rb | 3 +++ .../v1/models/notebooks_response_data_attributes.rb | 2 ++ lib/datadog_api_client/v1/models/organization.rb | 1 + .../v1/models/organization_create_body.rb | 1 + lib/datadog_api_client/v1/models/organization_settings.rb | 1 + lib/datadog_api_client/v1/models/pager_duty_service.rb | 2 ++ lib/datadog_api_client/v1/models/pager_duty_service_key.rb | 1 + .../v1/models/pager_duty_service_name.rb | 1 + .../v1/models/process_query_definition.rb | 2 ++ .../v1/models/query_value_widget_definition.rb | 4 ++++ .../v1/models/query_value_widget_request.rb | 2 ++ lib/datadog_api_client/v1/models/scatter_plot_request.rb | 1 + .../v1/models/scatter_plot_widget_definition.rb | 3 +++ .../v1/models/scatterplot_table_request.rb | 1 + .../v1/models/scatterplot_widget_formula.rb | 2 ++ lib/datadog_api_client/v1/models/series.rb | 2 ++ lib/datadog_api_client/v1/models/service_check.rb | 4 ++++ .../v1/models/service_level_objective.rb | 3 +++ .../v1/models/service_level_objective_query.rb | 2 ++ .../v1/models/service_level_objective_request.rb | 3 +++ .../v1/models/service_map_widget_definition.rb | 4 ++++ .../v1/models/service_summary_widget_definition.rb | 7 +++++++ lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb | 3 +++ lib/datadog_api_client/v1/models/slo_correction.rb | 1 + .../v1/models/slo_correction_create_data.rb | 1 + .../v1/models/slo_correction_create_request_attributes.rb | 3 +++ .../v1/models/slo_correction_response_attributes.rb | 1 + .../v1/models/slo_correction_update_data.rb | 1 + .../v1/models/slo_correction_update_request_attributes.rb | 1 + lib/datadog_api_client/v1/models/slo_history_metrics.rb | 7 +++++++ .../v1/models/slo_history_metrics_series.rb | 3 +++ .../v1/models/slo_history_response_data.rb | 2 ++ .../v1/models/slo_history_response_error_with_type.rb | 2 ++ lib/datadog_api_client/v1/models/slo_response_data.rb | 1 + lib/datadog_api_client/v1/models/slo_threshold.rb | 2 ++ lib/datadog_api_client/v1/models/slo_widget_definition.rb | 4 ++++ .../v1/models/sunburst_widget_definition.rb | 3 +++ .../v1/models/sunburst_widget_legend_inline_automatic.rb | 1 + .../v1/models/sunburst_widget_legend_table.rb | 1 + .../v1/models/sunburst_widget_request.rb | 1 + lib/datadog_api_client/v1/models/synthetics_api_step.rb | 4 ++++ lib/datadog_api_client/v1/models/synthetics_api_test.rb | 7 +++++++ .../v1/models/synthetics_api_test_result_data.rb | 1 + .../v1/models/synthetics_api_test_result_failure.rb | 1 + .../v1/models/synthetics_api_test_result_full.rb | 1 + .../v1/models/synthetics_api_test_result_full_check.rb | 1 + .../v1/models/synthetics_api_test_result_short.rb | 1 + .../v1/models/synthetics_assertion_json_path_target.rb | 2 ++ .../v1/models/synthetics_assertion_target.rb | 3 +++ .../v1/models/synthetics_basic_auth_ntlm.rb | 1 + .../v1/models/synthetics_basic_auth_sigv4.rb | 3 +++ .../v1/models/synthetics_basic_auth_web.rb | 3 +++ .../v1/models/synthetics_batch_details_data.rb | 1 + .../v1/models/synthetics_batch_result.rb | 4 ++++ .../v1/models/synthetics_browser_error.rb | 3 +++ .../v1/models/synthetics_browser_test.rb | 6 ++++++ .../v1/models/synthetics_browser_test_config.rb | 2 ++ .../v1/models/synthetics_browser_test_result_failure.rb | 1 + .../v1/models/synthetics_browser_test_result_full.rb | 1 + .../v1/models/synthetics_browser_test_result_full_check.rb | 1 + .../v1/models/synthetics_browser_test_result_short.rb | 1 + .../v1/models/synthetics_browser_variable.rb | 2 ++ lib/datadog_api_client/v1/models/synthetics_ci_test.rb | 1 + .../v1/models/synthetics_config_variable.rb | 2 ++ lib/datadog_api_client/v1/models/synthetics_device.rb | 4 ++++ .../v1/models/synthetics_global_variable.rb | 4 ++++ .../synthetics_global_variable_parse_test_options.rb | 2 ++ .../v1/models/synthetics_parsing_options.rb | 1 + .../v1/models/synthetics_private_location.rb | 3 +++ lib/datadog_api_client/v1/models/synthetics_step.rb | 1 + lib/datadog_api_client/v1/models/synthetics_step_detail.rb | 3 +++ .../v1/models/synthetics_step_detail_warning.rb | 2 ++ .../v1/models/synthetics_test_details.rb | 3 +++ .../v1/models/synthetics_test_options.rb | 2 ++ .../v1/models/synthetics_test_options_monitor_options.rb | 1 + .../v1/models/synthetics_test_request.rb | 3 +++ .../v1/models/synthetics_test_request_proxy.rb | 1 + .../v1/models/synthetics_trigger_body.rb | 1 + .../v1/models/synthetics_trigger_ci_test_run_result.rb | 1 + .../v1/models/synthetics_trigger_test.rb | 1 + .../models/synthetics_update_test_pause_status_payload.rb | 1 + .../v1/models/synthetics_variable_parser.rb | 1 + .../v1/models/table_widget_definition.rb | 4 ++++ lib/datadog_api_client/v1/models/table_widget_request.rb | 3 +++ .../v1/models/timeseries_widget_definition.rb | 4 ++++ .../v1/models/timeseries_widget_expression_alias.rb | 1 + .../v1/models/timeseries_widget_request.rb | 2 ++ .../v1/models/toplist_widget_definition.rb | 3 +++ lib/datadog_api_client/v1/models/toplist_widget_request.rb | 2 ++ .../v1/models/tree_map_widget_definition.rb | 5 +++++ .../v1/models/tree_map_widget_request.rb | 1 + .../v1/models/usage_custom_reports_data.rb | 1 + .../v1/models/usage_specified_custom_reports_data.rb | 1 + .../v1/models/usage_top_avg_metrics_hour.rb | 1 + lib/datadog_api_client/v1/models/user.rb | 1 + lib/datadog_api_client/v1/models/webhooks_integration.rb | 3 +++ .../v1/models/webhooks_integration_custom_variable.rb | 3 +++ .../webhooks_integration_custom_variable_response.rb | 2 ++ .../v1/models/webhooks_integration_update_request.rb | 1 + lib/datadog_api_client/v1/models/widget.rb | 1 + .../v1/models/widget_conditional_format.rb | 3 +++ lib/datadog_api_client/v1/models/widget_event.rb | 1 + lib/datadog_api_client/v1/models/widget_field_sort.rb | 2 ++ lib/datadog_api_client/v1/models/widget_formula.rb | 2 ++ lib/datadog_api_client/v1/models/widget_formula_limit.rb | 1 + lib/datadog_api_client/v1/models/widget_layout.rb | 4 ++++ lib/datadog_api_client/v1/models/widget_marker.rb | 1 + lib/datadog_api_client/v1/models/widget_request_style.rb | 2 ++ lib/datadog_api_client/v1/models/widget_time.rb | 1 + lib/datadog_api_client/v2/models/api_error_response.rb | 1 + .../v2/models/api_key_create_attributes.rb | 1 + lib/datadog_api_client/v2/models/api_key_create_data.rb | 2 ++ lib/datadog_api_client/v2/models/api_key_create_request.rb | 1 + .../v2/models/api_key_update_attributes.rb | 1 + lib/datadog_api_client/v2/models/api_key_update_data.rb | 3 +++ lib/datadog_api_client/v2/models/api_key_update_request.rb | 1 + .../v2/models/application_key_create_attributes.rb | 1 + .../v2/models/application_key_create_data.rb | 2 ++ .../v2/models/application_key_create_request.rb | 1 + .../v2/models/application_key_update_data.rb | 3 +++ .../v2/models/application_key_update_request.rb | 1 + ...cloud_workload_security_agent_rule_create_attributes.rb | 2 ++ .../cloud_workload_security_agent_rule_create_data.rb | 2 ++ .../cloud_workload_security_agent_rule_create_request.rb | 1 + .../v2/models/cloud_workload_security_agent_rule_data.rb | 1 + .../cloud_workload_security_agent_rule_update_data.rb | 2 ++ .../cloud_workload_security_agent_rule_update_request.rb | 1 + lib/datadog_api_client/v2/models/dashboard_list_item.rb | 3 +++ .../v2/models/dashboard_list_item_request.rb | 2 ++ .../v2/models/dashboard_list_item_response.rb | 2 ++ lib/datadog_api_client/v2/models/dashboard_list_items.rb | 1 + lib/datadog_api_client/v2/models/full_api_key.rb | 1 + .../v2/models/full_api_key_attributes.rb | 1 + lib/datadog_api_client/v2/models/full_application_key.rb | 1 + .../v2/models/full_application_key_attributes.rb | 1 + .../v2/models/incident_create_attributes.rb | 2 ++ lib/datadog_api_client/v2/models/incident_create_data.rb | 2 ++ .../v2/models/incident_create_relationships.rb | 1 + .../v2/models/incident_create_request.rb | 1 + .../v2/models/incident_field_attributes_multiple_value.rb | 1 + .../v2/models/incident_field_attributes_single_value.rb | 1 + lib/datadog_api_client/v2/models/incident_response.rb | 1 + .../v2/models/incident_response_attributes.rb | 1 + lib/datadog_api_client/v2/models/incident_response_data.rb | 2 ++ .../v2/models/incident_service_create_attributes.rb | 1 + .../v2/models/incident_service_create_data.rb | 1 + .../v2/models/incident_service_create_request.rb | 1 + .../v2/models/incident_service_response.rb | 1 + .../v2/models/incident_service_response_data.rb | 2 ++ .../v2/models/incident_service_update_attributes.rb | 1 + .../v2/models/incident_service_update_data.rb | 1 + .../v2/models/incident_service_update_request.rb | 1 + .../v2/models/incident_services_response.rb | 1 + .../v2/models/incident_team_create_attributes.rb | 1 + .../v2/models/incident_team_create_data.rb | 1 + .../v2/models/incident_team_create_request.rb | 1 + lib/datadog_api_client/v2/models/incident_team_response.rb | 1 + .../v2/models/incident_team_response_data.rb | 1 + .../v2/models/incident_team_update_attributes.rb | 1 + .../v2/models/incident_team_update_data.rb | 1 + .../v2/models/incident_team_update_request.rb | 1 + .../v2/models/incident_teams_response.rb | 1 + .../incident_timeline_cell_markdown_create_attributes.rb | 2 ++ lib/datadog_api_client/v2/models/incident_update_data.rb | 2 ++ .../v2/models/incident_update_request.rb | 1 + lib/datadog_api_client/v2/models/incidents_response.rb | 1 + lib/datadog_api_client/v2/models/log.rb | 1 + lib/datadog_api_client/v2/models/logs_aggregate_sort.rb | 3 +++ .../v2/models/logs_archive_attributes.rb | 3 +++ .../v2/models/logs_archive_create_request_attributes.rb | 3 +++ .../v2/models/logs_archive_create_request_definition.rb | 1 + .../v2/models/logs_archive_definition.rb | 1 + .../v2/models/logs_archive_destination_azure.rb | 4 ++++ .../v2/models/logs_archive_destination_gcs.rb | 3 +++ .../v2/models/logs_archive_destination_s3.rb | 3 +++ .../v2/models/logs_archive_integration_azure.rb | 2 ++ .../v2/models/logs_archive_integration_gcs.rb | 2 ++ .../v2/models/logs_archive_integration_s3.rb | 2 ++ .../v2/models/logs_archive_order_attributes.rb | 1 + .../v2/models/logs_archive_order_definition.rb | 2 ++ lib/datadog_api_client/v2/models/logs_compute.rb | 2 ++ lib/datadog_api_client/v2/models/logs_group_by.rb | 1 + .../v2/models/logs_group_by_histogram.rb | 3 +++ lib/datadog_api_client/v2/models/logs_list_request.rb | 1 + lib/datadog_api_client/v2/models/logs_list_request_page.rb | 1 + lib/datadog_api_client/v2/models/logs_metric_compute.rb | 1 + .../v2/models/logs_metric_create_attributes.rb | 1 + .../v2/models/logs_metric_create_data.rb | 3 +++ .../v2/models/logs_metric_create_request.rb | 1 + lib/datadog_api_client/v2/models/logs_metric_group_by.rb | 1 + .../v2/models/logs_metric_response_compute.rb | 1 + .../v2/models/logs_metric_response_data.rb | 1 + .../v2/models/logs_metric_update_data.rb | 2 ++ .../v2/models/logs_metric_update_request.rb | 1 + lib/datadog_api_client/v2/models/logs_response_metadata.rb | 1 + lib/datadog_api_client/v2/models/metric.rb | 1 + lib/datadog_api_client/v2/models/metric_all_tags.rb | 1 + .../v2/models/metric_custom_aggregation.rb | 2 ++ lib/datadog_api_client/v2/models/metric_distinct_volume.rb | 1 + .../v2/models/metric_ingested_indexed_volume.rb | 1 + .../v2/models/metric_tag_configuration.rb | 1 + .../v2/models/metric_tag_configuration_attributes.rb | 1 + .../models/metric_tag_configuration_create_attributes.rb | 2 ++ .../v2/models/metric_tag_configuration_create_data.rb | 2 ++ .../v2/models/metric_tag_configuration_create_request.rb | 1 + .../v2/models/metric_tag_configuration_update_data.rb | 2 ++ .../v2/models/metric_tag_configuration_update_request.rb | 1 + lib/datadog_api_client/v2/models/organization.rb | 1 + lib/datadog_api_client/v2/models/partial_api_key.rb | 1 + .../v2/models/partial_api_key_attributes.rb | 1 + .../v2/models/partial_application_key.rb | 1 + .../v2/models/partial_application_key_attributes.rb | 1 + lib/datadog_api_client/v2/models/permission.rb | 1 + .../v2/models/process_summaries_meta_page.rb | 1 + lib/datadog_api_client/v2/models/process_summary.rb | 1 + .../relationship_to_incident_integration_metadata_data.rb | 2 ++ .../relationship_to_incident_integration_metadatas.rb | 1 + .../v2/models/relationship_to_incident_postmortem.rb | 1 + .../v2/models/relationship_to_incident_postmortem_data.rb | 2 ++ .../v2/models/relationship_to_organization.rb | 1 + .../v2/models/relationship_to_organization_data.rb | 2 ++ .../v2/models/relationship_to_organizations.rb | 1 + .../v2/models/relationship_to_permission_data.rb | 1 + .../v2/models/relationship_to_role_data.rb | 1 + lib/datadog_api_client/v2/models/relationship_to_user.rb | 1 + .../v2/models/relationship_to_user_data.rb | 2 ++ lib/datadog_api_client/v2/models/relationship_to_users.rb | 1 + lib/datadog_api_client/v2/models/role.rb | 1 + lib/datadog_api_client/v2/models/role_clone.rb | 2 ++ lib/datadog_api_client/v2/models/role_clone_attributes.rb | 1 + lib/datadog_api_client/v2/models/role_clone_request.rb | 1 + lib/datadog_api_client/v2/models/role_create_attributes.rb | 1 + lib/datadog_api_client/v2/models/role_create_data.rb | 2 ++ lib/datadog_api_client/v2/models/role_create_request.rb | 1 + .../v2/models/role_create_response_data.rb | 1 + lib/datadog_api_client/v2/models/role_update_data.rb | 3 +++ lib/datadog_api_client/v2/models/role_update_request.rb | 1 + .../v2/models/role_update_response_data.rb | 1 + lib/datadog_api_client/v2/models/security_filter.rb | 1 + .../v2/models/security_filter_attributes.rb | 2 ++ .../v2/models/security_filter_create_attributes.rb | 5 +++++ .../v2/models/security_filter_create_data.rb | 2 ++ .../v2/models/security_filter_create_request.rb | 1 + .../v2/models/security_filter_exclusion_filter.rb | 2 ++ .../v2/models/security_filter_update_attributes.rb | 2 ++ .../v2/models/security_filter_update_data.rb | 2 ++ .../v2/models/security_filter_update_request.rb | 1 + .../v2/models/security_monitoring_filter.rb | 1 + .../v2/models/security_monitoring_rule_case.rb | 1 + .../v2/models/security_monitoring_rule_case_create.rb | 1 + .../v2/models/security_monitoring_rule_create_payload.rb | 7 +++++++ .../models/security_monitoring_rule_new_value_options.rb | 2 ++ .../v2/models/security_monitoring_rule_options.rb | 4 ++++ .../v2/models/security_monitoring_rule_query.rb | 1 + .../v2/models/security_monitoring_rule_query_create.rb | 2 ++ .../v2/models/security_monitoring_rule_response.rb | 1 + .../v2/models/security_monitoring_rule_update_payload.rb | 1 + .../v2/models/security_monitoring_signal.rb | 1 + .../v2/models/security_monitoring_signal_list_request.rb | 1 + .../models/security_monitoring_signal_list_request_page.rb | 1 + .../v2/models/service_account_create_attributes.rb | 2 ++ .../v2/models/service_account_create_data.rb | 2 ++ .../v2/models/service_account_create_request.rb | 1 + lib/datadog_api_client/v2/models/user.rb | 1 + lib/datadog_api_client/v2/models/user_create_attributes.rb | 1 + lib/datadog_api_client/v2/models/user_create_data.rb | 2 ++ lib/datadog_api_client/v2/models/user_create_request.rb | 1 + lib/datadog_api_client/v2/models/user_invitation_data.rb | 2 ++ .../v2/models/user_invitation_relationships.rb | 1 + .../v2/models/user_invitation_response_data.rb | 1 + .../v2/models/user_invitations_request.rb | 1 + lib/datadog_api_client/v2/models/user_update_data.rb | 3 +++ lib/datadog_api_client/v2/models/user_update_request.rb | 1 + 406 files changed, 791 insertions(+) diff --git a/.generator/src/generator/templates/model_generic.j2 b/.generator/src/generator/templates/model_generic.j2 index 35fc1a63fa9..6d24e447414 100644 --- a/.generator/src/generator/templates/model_generic.j2 +++ b/.generator/src/generator/templates/model_generic.j2 @@ -182,6 +182,7 @@ # Custom attribute writer method with validation # @param {{ attr|attribute_name }} [Object] Object to be assigned + # @!visibility private def {{ attr|attribute_name }}=({{ attr|attribute_name }}) {%- if not collection and definition.enum is defined %} validator = EnumAttributeValidator.new('{{ get_name(definition) }}', [{% for value in definition.enum %}{{ value|format_value }}{%- if not loop.last %}, {% endif %}{% endfor %}]) 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 6ebb8b2fe62..3cd0578a690 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 @@ -161,6 +161,7 @@ def valid? # Custom attribute writer method with validation # @param alert_id [Object] Object to be assigned + # @!visibility private def alert_id=(alert_id) if @alert_id.nil? fail ArgumentError, 'invalid value for "alert_id", alert_id cannot be nil.' @@ -170,6 +171,7 @@ def alert_id=(alert_id) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -180,6 +182,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('AlertGraphWidgetDefinitionType', ['alert_graph']) unless validator.valid?(type) @@ -193,6 +196,7 @@ def type=(type) # Custom attribute writer method with validation # @param viz_type [Object] Object to be assigned + # @!visibility private def viz_type=(viz_type) validator = EnumAttributeValidator.new('WidgetVizType', ['timeseries', 'toplist']) unless validator.valid?(viz_type) 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 cf83a861117..3c10673feb7 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 @@ -166,6 +166,7 @@ def valid? # Custom attribute writer method with validation # @param alert_id [Object] Object to be assigned + # @!visibility private def alert_id=(alert_id) if @alert_id.nil? fail ArgumentError, 'invalid value for "alert_id", alert_id cannot be nil.' @@ -175,6 +176,7 @@ def alert_id=(alert_id) # Custom attribute writer method with validation # @param text_align [Object] Object to be assigned + # @!visibility private def text_align=(text_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(text_align) @@ -185,6 +187,7 @@ def text_align=(text_align) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -195,6 +198,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('AlertValueWidgetDefinitionType', ['alert_value']) unless validator.valid?(type) 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 2990fbca872..0722e36a006 100644 --- a/lib/datadog_api_client/v1/models/api_error_response.rb +++ b/lib/datadog_api_client/v1/models/api_error_response.rb @@ -99,6 +99,7 @@ def valid? # Custom attribute writer method with validation # @param errors [Object] Object to be assigned + # @!visibility private def errors=(errors) if @errors.nil? fail ArgumentError, 'invalid value for "errors", errors cannot be nil.' diff --git a/lib/datadog_api_client/v1/models/api_key.rb b/lib/datadog_api_client/v1/models/api_key.rb index 9790b6d3947..aa9a1430353 100644 --- a/lib/datadog_api_client/v1/models/api_key.rb +++ b/lib/datadog_api_client/v1/models/api_key.rb @@ -128,6 +128,7 @@ def valid? # Custom attribute writer method with validation # @param key [Object] Object to be assigned + # @!visibility private def key=(key) if !key.nil? && key.to_s.length > 32 fail ArgumentError, 'invalid value for "key", the character length must be smaller than or equal to 32.' 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 55ea4fdf48e..baf5635c390 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 @@ -124,6 +124,7 @@ def valid? # Custom attribute writer method with validation # @param cell_display_mode [Object] Object to be assigned + # @!visibility private def cell_display_mode=(cell_display_mode) validator = EnumAttributeValidator.new('TableWidgetCellDisplayMode', ['number', 'bar']) unless validator.valid?(cell_display_mode) @@ -134,6 +135,7 @@ def cell_display_mode=(cell_display_mode) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -143,6 +145,7 @@ def name=(name) # Custom attribute writer method with validation # @param order [Object] Object to be assigned + # @!visibility private def order=(order) validator = EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) unless validator.valid?(order) 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 f7afdf6575e..0702196befc 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 @@ -169,6 +169,7 @@ def valid? # Custom attribute writer method with validation # @param env [Object] Object to be assigned + # @!visibility private def env=(env) if @env.nil? fail ArgumentError, 'invalid value for "env", env cannot be nil.' @@ -178,6 +179,7 @@ def env=(env) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -187,6 +189,7 @@ def name=(name) # Custom attribute writer method with validation # @param primary_tag [Object] Object to be assigned + # @!visibility private def primary_tag=(primary_tag) if @primary_tag.nil? fail ArgumentError, 'invalid value for "primary_tag", primary_tag cannot be nil.' @@ -196,6 +199,7 @@ def primary_tag=(primary_tag) # Custom attribute writer method with validation # @param row_type [Object] Object to be assigned + # @!visibility private def row_type=(row_type) validator = EnumAttributeValidator.new('ApmStatsQueryRowType', ['service', 'resource', 'span']) unless validator.valid?(row_type) @@ -209,6 +213,7 @@ def row_type=(row_type) # Custom attribute writer method with validation # @param service [Object] Object to be assigned + # @!visibility private def service=(service) if @service.nil? fail ArgumentError, 'invalid value for "service", service cannot be nil.' diff --git a/lib/datadog_api_client/v1/models/application_key.rb b/lib/datadog_api_client/v1/models/application_key.rb index c8f57996185..ef439236769 100644 --- a/lib/datadog_api_client/v1/models/application_key.rb +++ b/lib/datadog_api_client/v1/models/application_key.rb @@ -119,6 +119,7 @@ def valid? # Custom attribute writer method with validation # @param hash [Object] Object to be assigned + # @!visibility private def hash=(hash) if !hash.nil? && hash.to_s.length > 40 fail ArgumentError, 'invalid value for "hash", the character length must be smaller than or equal to 40.' 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 16133ba853d..b74d1711c8d 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 @@ -110,6 +110,7 @@ def valid? # Custom attribute writer method with validation # @param account_id [Object] Object to be assigned + # @!visibility private def account_id=(account_id) if @account_id.nil? fail ArgumentError, 'invalid value for "account_id", account_id cannot be nil.' @@ -119,6 +120,7 @@ def account_id=(account_id) # Custom attribute writer method with validation # @param lambda_arn [Object] Object to be assigned + # @!visibility private def lambda_arn=(lambda_arn) if @lambda_arn.nil? fail ArgumentError, 'invalid value for "lambda_arn", lambda_arn cannot be nil.' 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 5211f6c2689..116743b5578 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 @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param account_id [Object] Object to be assigned + # @!visibility private def account_id=(account_id) if @account_id.nil? fail ArgumentError, 'invalid value for "account_id", account_id cannot be nil.' @@ -121,6 +122,7 @@ def account_id=(account_id) # Custom attribute writer method with validation # @param services [Object] Object to be assigned + # @!visibility private def services=(services) if @services.nil? fail ArgumentError, 'invalid value for "services", services cannot be nil.' 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 47057bb35dd..b9afc7e0319 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter.rb @@ -102,6 +102,7 @@ def valid? # Custom attribute writer method with validation # @param namespace [Object] Object to be assigned + # @!visibility private def namespace=(namespace) validator = EnumAttributeValidator.new('AWSNamespace', ['elb', 'application_elb', 'sqs', 'rds', 'custom', 'network_elb', 'lambda']) unless validator.valid?(namespace) 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 9895bf139b1..fd1a5723425 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 @@ -111,6 +111,7 @@ def valid? # Custom attribute writer method with validation # @param namespace [Object] Object to be assigned + # @!visibility private def namespace=(namespace) validator = EnumAttributeValidator.new('AWSNamespace', ['elb', 'application_elb', 'sqs', 'rds', 'custom', 'network_elb', 'lambda']) unless validator.valid?(namespace) 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 26a8aecff94..d851a2388db 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 @@ -102,6 +102,7 @@ def valid? # Custom attribute writer method with validation # @param namespace [Object] Object to be assigned + # @!visibility private def namespace=(namespace) validator = EnumAttributeValidator.new('AWSNamespace', ['elb', 'application_elb', 'sqs', 'rds', 'custom', 'network_elb', 'lambda']) unless validator.valid?(namespace) 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 c177bf575de..495c945ce87 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 @@ -99,6 +99,7 @@ def valid? # Custom attribute writer method with validation # @param scope [Object] Object to be assigned + # @!visibility private def scope=(scope) if @scope.nil? fail ArgumentError, 'invalid value for "scope", scope cannot be nil.' 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 0f58232fc76..3fe93e6f1a3 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition.rb @@ -172,6 +172,7 @@ def valid? # Custom attribute writer method with validation # @param requests [Object] Object to be assigned + # @!visibility private def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' @@ -187,6 +188,7 @@ def requests=(requests) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -197,6 +199,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('ChangeWidgetDefinitionType', ['change']) unless validator.valid?(type) 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 4d18b5c5d3f..c8fb13c00a0 100644 --- a/lib/datadog_api_client/v1/models/change_widget_request.rb +++ b/lib/datadog_api_client/v1/models/change_widget_request.rb @@ -250,6 +250,7 @@ def valid? # Custom attribute writer method with validation # @param change_type [Object] Object to be assigned + # @!visibility private def change_type=(change_type) validator = EnumAttributeValidator.new('WidgetChangeType', ['absolute', 'relative']) unless validator.valid?(change_type) @@ -260,6 +261,7 @@ def change_type=(change_type) # Custom attribute writer method with validation # @param compare_to [Object] Object to be assigned + # @!visibility private def compare_to=(compare_to) validator = EnumAttributeValidator.new('WidgetCompareTo', ['hour_before', 'day_before', 'week_before', 'month_before']) unless validator.valid?(compare_to) @@ -270,6 +272,7 @@ def compare_to=(compare_to) # Custom attribute writer method with validation # @param order_by [Object] Object to be assigned + # @!visibility private def order_by=(order_by) validator = EnumAttributeValidator.new('WidgetOrderBy', ['change', 'name', 'present', 'past']) unless validator.valid?(order_by) @@ -280,6 +283,7 @@ def order_by=(order_by) # Custom attribute writer method with validation # @param order_dir [Object] Object to be assigned + # @!visibility private def order_dir=(order_dir) validator = EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) unless validator.valid?(order_dir) @@ -290,6 +294,7 @@ def order_dir=(order_dir) # Custom attribute writer method with validation # @param response_format [Object] Object to be assigned + # @!visibility private def response_format=(response_format) validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) unless validator.valid?(response_format) 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 7e6656b323c..0f26e9f1ca1 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 @@ -106,6 +106,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 d31c310af1e..8836d9a3860 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 @@ -192,6 +192,7 @@ def valid? # Custom attribute writer method with validation # @param check [Object] Object to be assigned + # @!visibility private def check=(check) if @check.nil? fail ArgumentError, 'invalid value for "check", check cannot be nil.' @@ -201,6 +202,7 @@ def check=(check) # Custom attribute writer method with validation # @param grouping [Object] Object to be assigned + # @!visibility private def grouping=(grouping) validator = EnumAttributeValidator.new('WidgetGrouping', ['check', 'cluster']) unless validator.valid?(grouping) @@ -214,6 +216,7 @@ def grouping=(grouping) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -224,6 +227,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('CheckStatusWidgetDefinitionType', ['check_status']) unless validator.valid?(type) diff --git a/lib/datadog_api_client/v1/models/dashboard.rb b/lib/datadog_api_client/v1/models/dashboard.rb index 01937743049..4279fe3076b 100644 --- a/lib/datadog_api_client/v1/models/dashboard.rb +++ b/lib/datadog_api_client/v1/models/dashboard.rb @@ -260,6 +260,7 @@ def valid? # Custom attribute writer method with validation # @param layout_type [Object] Object to be assigned + # @!visibility private def layout_type=(layout_type) validator = EnumAttributeValidator.new('DashboardLayoutType', ['ordered', 'free']) unless validator.valid?(layout_type) @@ -273,6 +274,7 @@ def layout_type=(layout_type) # Custom attribute writer method with validation # @param reflow_type [Object] Object to be assigned + # @!visibility private def reflow_type=(reflow_type) validator = EnumAttributeValidator.new('DashboardReflowType', ['auto', 'fixed']) unless validator.valid?(reflow_type) @@ -283,6 +285,7 @@ def reflow_type=(reflow_type) # Custom attribute writer method with validation # @param title [Object] Object to be assigned + # @!visibility private def title=(title) if @title.nil? fail ArgumentError, 'invalid value for "title", title cannot be nil.' @@ -292,6 +295,7 @@ def title=(title) # Custom attribute writer method with validation # @param widgets [Object] Object to be assigned + # @!visibility private def widgets=(widgets) if @widgets.nil? fail ArgumentError, 'invalid value for "widgets", widgets cannot be nil.' 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 0fc1f541ce6..f1a0a1f0374 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 @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -121,6 +122,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('DashboardResourceType', ['dashboard']) unless validator.valid?(type) 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 12ffc31f59a..c6a78c11a64 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 @@ -99,6 +99,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' diff --git a/lib/datadog_api_client/v1/models/dashboard_list.rb b/lib/datadog_api_client/v1/models/dashboard_list.rb index bb9771712d0..ac5ad73612d 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list.rb @@ -160,6 +160,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' 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 6346fd4d68b..4767aa454fb 100644 --- a/lib/datadog_api_client/v1/models/dashboard_restore_request.rb +++ b/lib/datadog_api_client/v1/models/dashboard_restore_request.rb @@ -99,6 +99,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 99a5f4608db..80f6b43c9e6 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb @@ -166,6 +166,7 @@ def valid? # Custom attribute writer method with validation # @param layout_type [Object] Object to be assigned + # @!visibility private def layout_type=(layout_type) validator = EnumAttributeValidator.new('DashboardLayoutType', ['ordered', 'free']) unless validator.valid?(layout_type) 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 7f2e101be26..90315085497 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable.rb @@ -129,6 +129,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' 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 d3c049d7d55..54271297102 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb @@ -210,6 +210,7 @@ def valid? # Custom attribute writer method with validation # @param requests [Object] Object to be assigned + # @!visibility private def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' @@ -225,6 +226,7 @@ def requests=(requests) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -235,6 +237,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('DistributionWidgetDefinitionType', ['distribution']) unless validator.valid?(type) diff --git a/lib/datadog_api_client/v1/models/downtime.rb b/lib/datadog_api_client/v1/models/downtime.rb index e218d363c6c..58ed6fd1ea9 100644 --- a/lib/datadog_api_client/v1/models/downtime.rb +++ b/lib/datadog_api_client/v1/models/downtime.rb @@ -275,6 +275,7 @@ def valid? # Custom attribute writer method with validation # @param creator_id [Object] Object to be assigned + # @!visibility private def creator_id=(creator_id) if !creator_id.nil? && creator_id > 2147483647 fail ArgumentError, 'invalid value for "creator_id", must be smaller than or equal to 2147483647.' @@ -284,6 +285,7 @@ def creator_id=(creator_id) # Custom attribute writer method with validation # @param downtime_type [Object] Object to be assigned + # @!visibility private def downtime_type=(downtime_type) if !downtime_type.nil? && downtime_type > 2147483647 fail ArgumentError, 'invalid value for "downtime_type", must be smaller than or equal to 2147483647.' @@ -293,6 +295,7 @@ def downtime_type=(downtime_type) # Custom attribute writer method with validation # @param updater_id [Object] Object to be assigned + # @!visibility private def updater_id=(updater_id) if !updater_id.nil? && updater_id > 2147483647 fail ArgumentError, 'invalid value for "updater_id", must be smaller than or equal to 2147483647.' diff --git a/lib/datadog_api_client/v1/models/downtime_child.rb b/lib/datadog_api_client/v1/models/downtime_child.rb index 68f76855d20..5e33fdb670f 100644 --- a/lib/datadog_api_client/v1/models/downtime_child.rb +++ b/lib/datadog_api_client/v1/models/downtime_child.rb @@ -262,6 +262,7 @@ def valid? # Custom attribute writer method with validation # @param creator_id [Object] Object to be assigned + # @!visibility private def creator_id=(creator_id) if !creator_id.nil? && creator_id > 2147483647 fail ArgumentError, 'invalid value for "creator_id", must be smaller than or equal to 2147483647.' @@ -271,6 +272,7 @@ def creator_id=(creator_id) # Custom attribute writer method with validation # @param downtime_type [Object] Object to be assigned + # @!visibility private def downtime_type=(downtime_type) if !downtime_type.nil? && downtime_type > 2147483647 fail ArgumentError, 'invalid value for "downtime_type", must be smaller than or equal to 2147483647.' @@ -280,6 +282,7 @@ def downtime_type=(downtime_type) # Custom attribute writer method with validation # @param updater_id [Object] Object to be assigned + # @!visibility private def updater_id=(updater_id) if !updater_id.nil? && updater_id > 2147483647 fail ArgumentError, 'invalid value for "updater_id", must be smaller than or equal to 2147483647.' diff --git a/lib/datadog_api_client/v1/models/downtime_recurrence.rb b/lib/datadog_api_client/v1/models/downtime_recurrence.rb index f1ba08b4bac..9f3a99d35a2 100644 --- a/lib/datadog_api_client/v1/models/downtime_recurrence.rb +++ b/lib/datadog_api_client/v1/models/downtime_recurrence.rb @@ -160,6 +160,7 @@ def valid? # Custom attribute writer method with validation # @param period [Object] Object to be assigned + # @!visibility private def period=(period) if !period.nil? && period > 2147483647 fail ArgumentError, 'invalid value for "period", must be smaller than or equal to 2147483647.' @@ -169,6 +170,7 @@ def period=(period) # Custom attribute writer method with validation # @param until_occurrences [Object] Object to be assigned + # @!visibility private def until_occurrences=(until_occurrences) if !until_occurrences.nil? && until_occurrences > 2147483647 fail ArgumentError, 'invalid value for "until_occurrences", must be smaller than or equal to 2147483647.' diff --git a/lib/datadog_api_client/v1/models/event.rb b/lib/datadog_api_client/v1/models/event.rb index 818611fa5d2..295ac320719 100644 --- a/lib/datadog_api_client/v1/models/event.rb +++ b/lib/datadog_api_client/v1/models/event.rb @@ -215,6 +215,7 @@ def valid? # Custom attribute writer method with validation # @param alert_type [Object] Object to be assigned + # @!visibility private def alert_type=(alert_type) validator = EnumAttributeValidator.new('EventAlertType', ['error', 'warning', 'info', 'success', 'user_update', 'recommendation', 'snapshot']) unless validator.valid?(alert_type) @@ -225,6 +226,7 @@ def alert_type=(alert_type) # Custom attribute writer method with validation # @param priority [Object] Object to be assigned + # @!visibility private def priority=(priority) validator = EnumAttributeValidator.new('EventPriority', ['normal', 'low']) unless validator.valid?(priority) @@ -235,6 +237,7 @@ def priority=(priority) # Custom attribute writer method with validation # @param text [Object] Object to be assigned + # @!visibility private def text=(text) if !text.nil? && text.to_s.length > 4000 fail ArgumentError, 'invalid value for "text", the character length must be smaller than or equal to 4000.' 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 b82244d8496..84d078ef3a5 100644 --- a/lib/datadog_api_client/v1/models/event_create_request.rb +++ b/lib/datadog_api_client/v1/models/event_create_request.rb @@ -209,6 +209,7 @@ def valid? # Custom attribute writer method with validation # @param aggregation_key [Object] Object to be assigned + # @!visibility private def aggregation_key=(aggregation_key) if !aggregation_key.nil? && aggregation_key.to_s.length > 100 fail ArgumentError, 'invalid value for "aggregation_key", the character length must be smaller than or equal to 100.' @@ -218,6 +219,7 @@ def aggregation_key=(aggregation_key) # Custom attribute writer method with validation # @param alert_type [Object] Object to be assigned + # @!visibility private def alert_type=(alert_type) validator = EnumAttributeValidator.new('EventAlertType', ['error', 'warning', 'info', 'success', 'user_update', 'recommendation', 'snapshot']) unless validator.valid?(alert_type) @@ -228,6 +230,7 @@ def alert_type=(alert_type) # Custom attribute writer method with validation # @param priority [Object] Object to be assigned + # @!visibility private def priority=(priority) validator = EnumAttributeValidator.new('EventPriority', ['normal', 'low']) unless validator.valid?(priority) @@ -238,6 +241,7 @@ def priority=(priority) # Custom attribute writer method with validation # @param text [Object] Object to be assigned + # @!visibility private def text=(text) if @text.nil? fail ArgumentError, 'invalid value for "text", text cannot be nil.' @@ -250,6 +254,7 @@ def text=(text) # Custom attribute writer method with validation # @param title [Object] Object to be assigned + # @!visibility private def title=(title) if @title.nil? fail ArgumentError, 'invalid value for "title", title cannot be nil.' 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 8628f3708ae..028aa5c933d 100644 --- a/lib/datadog_api_client/v1/models/event_create_response.rb +++ b/lib/datadog_api_client/v1/models/event_create_response.rb @@ -226,6 +226,7 @@ def valid? # Custom attribute writer method with validation # @param alert_type [Object] Object to be assigned + # @!visibility private def alert_type=(alert_type) validator = EnumAttributeValidator.new('EventAlertType', ['error', 'warning', 'info', 'success', 'user_update', 'recommendation', 'snapshot']) unless validator.valid?(alert_type) @@ -236,6 +237,7 @@ def alert_type=(alert_type) # Custom attribute writer method with validation # @param priority [Object] Object to be assigned + # @!visibility private def priority=(priority) validator = EnumAttributeValidator.new('EventPriority', ['normal', 'low']) unless validator.valid?(priority) @@ -246,6 +248,7 @@ def priority=(priority) # Custom attribute writer method with validation # @param text [Object] Object to be assigned + # @!visibility private def text=(text) if !text.nil? && text.to_s.length > 4000 fail ArgumentError, 'invalid value for "text", the character length must be smaller than or equal to 4000.' @@ -255,6 +258,7 @@ def text=(text) # Custom attribute writer method with validation # @param title [Object] Object to be assigned + # @!visibility private def title=(title) if !title.nil? && title.to_s.length > 100 fail ArgumentError, 'invalid value for "title", the character length must be smaller than or equal to 100.' 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 4e9e9debaf6..307b306ef45 100644 --- a/lib/datadog_api_client/v1/models/event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/event_query_definition.rb @@ -110,6 +110,7 @@ def valid? # Custom attribute writer method with validation # @param search [Object] Object to be assigned + # @!visibility private def search=(search) if @search.nil? fail ArgumentError, 'invalid value for "search", search cannot be nil.' @@ -119,6 +120,7 @@ def search=(search) # Custom attribute writer method with validation # @param tags_execution [Object] Object to be assigned + # @!visibility private def tags_execution=(tags_execution) if @tags_execution.nil? fail ArgumentError, 'invalid value for "tags_execution", tags_execution cannot be nil.' 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 7ca149990dd..7a5de85981e 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 @@ -167,6 +167,7 @@ def valid? # Custom attribute writer method with validation # @param event_size [Object] Object to be assigned + # @!visibility private def event_size=(event_size) validator = EnumAttributeValidator.new('WidgetEventSize', ['s', 'l']) unless validator.valid?(event_size) @@ -177,6 +178,7 @@ def event_size=(event_size) # Custom attribute writer method with validation # @param query [Object] Object to be assigned + # @!visibility private def query=(query) if @query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' @@ -186,6 +188,7 @@ def query=(query) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -196,6 +199,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('EventStreamWidgetDefinitionType', ['event_stream']) unless validator.valid?(type) 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 4463230b079..3ec7efb19b3 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 @@ -157,6 +157,7 @@ def valid? # Custom attribute writer method with validation # @param query [Object] Object to be assigned + # @!visibility private def query=(query) if @query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' @@ -166,6 +167,7 @@ def query=(query) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -176,6 +178,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('EventTimelineWidgetDefinitionType', ['event_timeline']) unless validator.valid?(type) 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 278dbe660cb..2509885fd07 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 @@ -202,6 +202,7 @@ def valid? # Custom attribute writer method with validation # @param data_source [Object] Object to be assigned + # @!visibility private def data_source=(data_source) validator = EnumAttributeValidator.new('FormulaAndFunctionApmDependencyStatsDataSource', ['apm_dependency_stats']) unless validator.valid?(data_source) @@ -215,6 +216,7 @@ def data_source=(data_source) # Custom attribute writer method with validation # @param env [Object] Object to be assigned + # @!visibility private def env=(env) if @env.nil? fail ArgumentError, 'invalid value for "env", env cannot be nil.' @@ -224,6 +226,7 @@ def env=(env) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -233,6 +236,7 @@ def name=(name) # Custom attribute writer method with validation # @param operation_name [Object] Object to be assigned + # @!visibility private def operation_name=(operation_name) if @operation_name.nil? fail ArgumentError, 'invalid value for "operation_name", operation_name cannot be nil.' @@ -242,6 +246,7 @@ def operation_name=(operation_name) # Custom attribute writer method with validation # @param resource_name [Object] Object to be assigned + # @!visibility private def resource_name=(resource_name) if @resource_name.nil? fail ArgumentError, 'invalid value for "resource_name", resource_name cannot be nil.' @@ -251,6 +256,7 @@ def resource_name=(resource_name) # Custom attribute writer method with validation # @param service [Object] Object to be assigned + # @!visibility private def service=(service) if @service.nil? fail ArgumentError, 'invalid value for "service", service cannot be nil.' @@ -260,6 +266,7 @@ def service=(service) # Custom attribute writer method with validation # @param stat [Object] Object to be assigned + # @!visibility private def stat=(stat) validator = EnumAttributeValidator.new('FormulaAndFunctionApmDependencyStatName', ['avg_duration', 'avg_root_duration', 'avg_spans_per_trace', 'error_rate', 'pct_exec_time', 'pct_of_traces', 'total_traces_count']) unless validator.valid?(stat) 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 b36d7a7bd29..d65acfdd775 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 @@ -196,6 +196,7 @@ def valid? # Custom attribute writer method with validation # @param data_source [Object] Object to be assigned + # @!visibility private def data_source=(data_source) validator = EnumAttributeValidator.new('FormulaAndFunctionApmResourceStatsDataSource', ['apm_resource_stats']) unless validator.valid?(data_source) @@ -209,6 +210,7 @@ def data_source=(data_source) # Custom attribute writer method with validation # @param env [Object] Object to be assigned + # @!visibility private def env=(env) if @env.nil? fail ArgumentError, 'invalid value for "env", env cannot be nil.' @@ -218,6 +220,7 @@ def env=(env) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -227,6 +230,7 @@ def name=(name) # Custom attribute writer method with validation # @param service [Object] Object to be assigned + # @!visibility private def service=(service) if @service.nil? fail ArgumentError, 'invalid value for "service", service cannot be nil.' @@ -236,6 +240,7 @@ def service=(service) # Custom attribute writer method with validation # @param stat [Object] Object to be assigned + # @!visibility private def stat=(stat) validator = EnumAttributeValidator.new('FormulaAndFunctionApmResourceStatName', ['errors', 'error_rate', 'hits', 'latency_avg', 'latency_max', 'latency_p50', 'latency_p75', 'latency_p90', 'latency_p95', 'latency_p99']) unless validator.valid?(stat) 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 60d4dcc67d5..fb9dee8bc3a 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 @@ -154,6 +154,7 @@ def valid? # Custom attribute writer method with validation # @param compute [Object] Object to be assigned + # @!visibility private def compute=(compute) if @compute.nil? fail ArgumentError, 'invalid value for "compute", compute cannot be nil.' @@ -163,6 +164,7 @@ def compute=(compute) # Custom attribute writer method with validation # @param data_source [Object] Object to be assigned + # @!visibility private def data_source=(data_source) validator = EnumAttributeValidator.new('FormulaAndFunctionEventsDataSource', ['logs', 'spans', 'network', 'rum', 'security_signals', 'profiles', 'audit', 'events']) unless validator.valid?(data_source) @@ -176,6 +178,7 @@ def data_source=(data_source) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' 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 90845ad8bae..a05b7bcfc7f 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 @@ -115,6 +115,7 @@ def valid? # Custom attribute writer method with validation # @param aggregation [Object] Object to be assigned + # @!visibility private def aggregation=(aggregation) validator = EnumAttributeValidator.new('FormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) unless validator.valid?(aggregation) 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 d42016c5102..ff7e08a5567 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param query [Object] Object to be assigned + # @!visibility private def query=(query) if @query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' 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 865863a0b75..716fc30dc9b 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 @@ -115,6 +115,7 @@ def valid? # Custom attribute writer method with validation # @param facet [Object] Object to be assigned + # @!visibility private def facet=(facet) if @facet.nil? fail ArgumentError, 'invalid value for "facet", facet cannot be nil.' 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 2da8f8cd859..b16d97af3d8 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 @@ -117,6 +117,7 @@ def valid? # Custom attribute writer method with validation # @param aggregation [Object] Object to be assigned + # @!visibility private def aggregation=(aggregation) validator = EnumAttributeValidator.new('FormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) unless validator.valid?(aggregation) @@ -130,6 +131,7 @@ def aggregation=(aggregation) # Custom attribute writer method with validation # @param order [Object] Object to be assigned + # @!visibility private def order=(order) validator = EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) unless validator.valid?(order) 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 2bae0643120..35db20c4d62 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 @@ -132,6 +132,7 @@ def valid? # Custom attribute writer method with validation # @param aggregator [Object] Object to be assigned + # @!visibility private def aggregator=(aggregator) validator = EnumAttributeValidator.new('FormulaAndFunctionMetricAggregation', ['avg', 'min', 'max', 'sum', 'last', 'area', 'l2norm', 'percentile']) unless validator.valid?(aggregator) @@ -142,6 +143,7 @@ def aggregator=(aggregator) # Custom attribute writer method with validation # @param data_source [Object] Object to be assigned + # @!visibility private def data_source=(data_source) validator = EnumAttributeValidator.new('FormulaAndFunctionMetricDataSource', ['metrics']) unless validator.valid?(data_source) @@ -155,6 +157,7 @@ def data_source=(data_source) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -164,6 +167,7 @@ def name=(name) # Custom attribute writer method with validation # @param query [Object] Object to be assigned + # @!visibility private def query=(query) if @query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' 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 6ea796ac97c..15044e32ed9 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 @@ -181,6 +181,7 @@ def valid? # Custom attribute writer method with validation # @param aggregator [Object] Object to be assigned + # @!visibility private def aggregator=(aggregator) validator = EnumAttributeValidator.new('FormulaAndFunctionMetricAggregation', ['avg', 'min', 'max', 'sum', 'last', 'area', 'l2norm', 'percentile']) unless validator.valid?(aggregator) @@ -191,6 +192,7 @@ def aggregator=(aggregator) # Custom attribute writer method with validation # @param data_source [Object] Object to be assigned + # @!visibility private def data_source=(data_source) validator = EnumAttributeValidator.new('FormulaAndFunctionProcessQueryDataSource', ['process', 'container']) unless validator.valid?(data_source) @@ -204,6 +206,7 @@ def data_source=(data_source) # Custom attribute writer method with validation # @param metric [Object] Object to be assigned + # @!visibility private def metric=(metric) if @metric.nil? fail ArgumentError, 'invalid value for "metric", metric cannot be nil.' @@ -213,6 +216,7 @@ def metric=(metric) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -222,6 +226,7 @@ def name=(name) # Custom attribute writer method with validation # @param sort [Object] Object to be assigned + # @!visibility private def sort=(sort) validator = EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) unless validator.valid?(sort) 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 f06fcd49d65..a1c05c780fb 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 @@ -139,6 +139,7 @@ def valid? # Custom attribute writer method with validation # @param text [Object] Object to be assigned + # @!visibility private def text=(text) if @text.nil? fail ArgumentError, 'invalid value for "text", text cannot be nil.' @@ -148,6 +149,7 @@ def text=(text) # Custom attribute writer method with validation # @param text_align [Object] Object to be assigned + # @!visibility private def text_align=(text_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(text_align) @@ -158,6 +160,7 @@ def text_align=(text_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('FreeTextWidgetDefinitionType', ['free_text']) unless validator.valid?(type) diff --git a/lib/datadog_api_client/v1/models/funnel_query.rb b/lib/datadog_api_client/v1/models/funnel_query.rb index 79370660150..b3361b5cc08 100644 --- a/lib/datadog_api_client/v1/models/funnel_query.rb +++ b/lib/datadog_api_client/v1/models/funnel_query.rb @@ -127,6 +127,7 @@ def valid? # Custom attribute writer method with validation # @param data_source [Object] Object to be assigned + # @!visibility private def data_source=(data_source) validator = EnumAttributeValidator.new('FunnelSource', ['rum']) unless validator.valid?(data_source) @@ -140,6 +141,7 @@ def data_source=(data_source) # Custom attribute writer method with validation # @param query_string [Object] Object to be assigned + # @!visibility private def query_string=(query_string) if @query_string.nil? fail ArgumentError, 'invalid value for "query_string", query_string cannot be nil.' @@ -149,6 +151,7 @@ def query_string=(query_string) # Custom attribute writer method with validation # @param steps [Object] Object to be assigned + # @!visibility private def steps=(steps) if @steps.nil? fail ArgumentError, 'invalid value for "steps", steps cannot be nil.' diff --git a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb index d3ea8983012..5b7483c0dbc 100644 --- a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb +++ b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb @@ -110,6 +110,7 @@ def valid? # Custom attribute writer method with validation # @param facet [Object] Object to be assigned + # @!visibility private def facet=(facet) if @facet.nil? fail ArgumentError, 'invalid value for "facet", facet cannot be nil.' @@ -119,6 +120,7 @@ def facet=(facet) # Custom attribute writer method with validation # @param value [Object] Object to be assigned + # @!visibility private def value=(value) if @value.nil? fail ArgumentError, 'invalid value for "value", value cannot be nil.' 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 0d229cd40ed..d93cb328638 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb @@ -158,6 +158,7 @@ def valid? # Custom attribute writer method with validation # @param requests [Object] Object to be assigned + # @!visibility private def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' @@ -173,6 +174,7 @@ def requests=(requests) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -183,6 +185,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('FunnelWidgetDefinitionType', ['funnel']) unless validator.valid?(type) 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 2e9e1157050..29a08448e64 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_request.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_request.rb @@ -110,6 +110,7 @@ def valid? # Custom attribute writer method with validation # @param query [Object] Object to be assigned + # @!visibility private def query=(query) if @query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' @@ -119,6 +120,7 @@ def query=(query) # Custom attribute writer method with validation # @param request_type [Object] Object to be assigned + # @!visibility private def request_type=(request_type) validator = EnumAttributeValidator.new('FunnelRequestType', ['funnel']) unless validator.valid?(request_type) 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 a97eea9f0b0..36d0fbd0787 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb @@ -198,6 +198,7 @@ def valid? # Custom attribute writer method with validation # @param requests [Object] Object to be assigned + # @!visibility private def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' @@ -213,6 +214,7 @@ def requests=(requests) # Custom attribute writer method with validation # @param style [Object] Object to be assigned + # @!visibility private def style=(style) if @style.nil? fail ArgumentError, 'invalid value for "style", style cannot be nil.' @@ -222,6 +224,7 @@ def style=(style) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -232,6 +235,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('GeomapWidgetDefinitionType', ['geomap']) unless validator.valid?(type) @@ -245,6 +249,7 @@ def type=(type) # Custom attribute writer method with validation # @param view [Object] Object to be assigned + # @!visibility private def view=(view) if @view.nil? fail ArgumentError, 'invalid value for "view", view cannot be nil.' 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 8b8862100df..aab286e7842 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 @@ -110,6 +110,7 @@ def valid? # Custom attribute writer method with validation # @param palette [Object] Object to be assigned + # @!visibility private def palette=(palette) if @palette.nil? fail ArgumentError, 'invalid value for "palette", palette cannot be nil.' @@ -119,6 +120,7 @@ def palette=(palette) # Custom attribute writer method with validation # @param palette_flip [Object] Object to be assigned + # @!visibility private def palette_flip=(palette_flip) if @palette_flip.nil? fail ArgumentError, 'invalid value for "palette_flip", palette_flip cannot be nil.' 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 8b1daaf55ca..1199671c0fe 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param focus [Object] Object to be assigned + # @!visibility private def focus=(focus) if @focus.nil? fail ArgumentError, 'invalid value for "focus", focus cannot be nil.' 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 00420973ed2..9943f18dee4 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_request.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_request.rb @@ -151,6 +151,7 @@ def valid? # Custom attribute writer method with validation # @param response_format [Object] Object to be assigned + # @!visibility private def response_format=(response_format) validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) unless validator.valid?(response_format) 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 6f9ed058898..193d39551ab 100644 --- a/lib/datadog_api_client/v1/models/group_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/group_widget_definition.rb @@ -174,6 +174,7 @@ def valid? # Custom attribute writer method with validation # @param layout_type [Object] Object to be assigned + # @!visibility private def layout_type=(layout_type) validator = EnumAttributeValidator.new('WidgetLayoutType', ['ordered']) unless validator.valid?(layout_type) @@ -187,6 +188,7 @@ def layout_type=(layout_type) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -197,6 +199,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('GroupWidgetDefinitionType', ['group']) unless validator.valid?(type) @@ -210,6 +213,7 @@ def type=(type) # Custom attribute writer method with validation # @param widgets [Object] Object to be assigned + # @!visibility private def widgets=(widgets) if @widgets.nil? fail ArgumentError, 'invalid value for "widgets", widgets cannot be nil.' 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 3a610229e04..0176716b7ae 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 @@ -207,6 +207,7 @@ def valid? # Custom attribute writer method with validation # @param requests [Object] Object to be assigned + # @!visibility private def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' @@ -222,6 +223,7 @@ def requests=(requests) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -232,6 +234,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('HeatMapWidgetDefinitionType', ['heatmap']) unless validator.valid?(type) 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 e9d0d800c24..e39ba5a0e7f 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 @@ -217,6 +217,7 @@ def valid? # Custom attribute writer method with validation # @param node_type [Object] Object to be assigned + # @!visibility private def node_type=(node_type) validator = EnumAttributeValidator.new('WidgetNodeType', ['host', 'container']) unless validator.valid?(node_type) @@ -227,6 +228,7 @@ def node_type=(node_type) # Custom attribute writer method with validation # @param requests [Object] Object to be assigned + # @!visibility private def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' @@ -236,6 +238,7 @@ def requests=(requests) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -246,6 +249,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('HostMapWidgetDefinitionType', ['hostmap']) unless validator.valid?(type) 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 e81716c1486..17573d537d5 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 @@ -156,6 +156,7 @@ def valid? # Custom attribute writer method with validation # @param usage_type [Object] Object to be assigned + # @!visibility private def usage_type=(usage_type) validator = EnumAttributeValidator.new('HourlyUsageAttributionUsageType', ['api_usage', 'apm_host_usage', 'browser_usage', 'container_usage', 'custom_timeseries_usage', 'fargate_usage', 'functions_usage', 'indexed_logs_usage', 'infra_host_usage', 'invocations_usage', 'npm_host_usage', 'profiled_container_usage', 'profiled_host_usage', 'snmp_usage']) unless validator.valid?(usage_type) 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 cb352ff801d..e9b47737d57 100644 --- a/lib/datadog_api_client/v1/models/http_log_error.rb +++ b/lib/datadog_api_client/v1/models/http_log_error.rb @@ -114,6 +114,7 @@ def valid? # Custom attribute writer method with validation # @param code [Object] Object to be assigned + # @!visibility private def code=(code) if @code.nil? fail ArgumentError, 'invalid value for "code", code cannot be nil.' @@ -126,6 +127,7 @@ def code=(code) # Custom attribute writer method with validation # @param message [Object] Object to be assigned + # @!visibility private def message=(message) if @message.nil? fail ArgumentError, 'invalid value for "message", message cannot be nil.' 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 16acd77015b..87f4522353b 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 @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('IFrameWidgetDefinitionType', ['iframe']) unless validator.valid?(type) @@ -125,6 +126,7 @@ def type=(type) # Custom attribute writer method with validation # @param url [Object] Object to be assigned + # @!visibility private def url=(url) if @url.nil? fail ArgumentError, 'invalid value for "url", url cannot be nil.' 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 ade10b7bc96..d6533faafa1 100644 --- a/lib/datadog_api_client/v1/models/idp_form_data.rb +++ b/lib/datadog_api_client/v1/models/idp_form_data.rb @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param idp_file [Object] Object to be assigned + # @!visibility private def idp_file=(idp_file) if @idp_file.nil? fail ArgumentError, 'invalid value for "idp_file", idp_file cannot be nil.' diff --git a/lib/datadog_api_client/v1/models/idp_response.rb b/lib/datadog_api_client/v1/models/idp_response.rb index c8e319d465a..f8cd262d083 100644 --- a/lib/datadog_api_client/v1/models/idp_response.rb +++ b/lib/datadog_api_client/v1/models/idp_response.rb @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param message [Object] Object to be assigned + # @!visibility private def message=(message) if @message.nil? fail ArgumentError, 'invalid value for "message", message cannot be nil.' 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 46edfdc3299..35d8e84225a 100644 --- a/lib/datadog_api_client/v1/models/image_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/image_widget_definition.rb @@ -181,6 +181,7 @@ def valid? # Custom attribute writer method with validation # @param horizontal_align [Object] Object to be assigned + # @!visibility private def horizontal_align=(horizontal_align) validator = EnumAttributeValidator.new('WidgetHorizontalAlign', ['center', 'left', 'right']) unless validator.valid?(horizontal_align) @@ -191,6 +192,7 @@ def horizontal_align=(horizontal_align) # Custom attribute writer method with validation # @param margin [Object] Object to be assigned + # @!visibility private def margin=(margin) validator = EnumAttributeValidator.new('WidgetMargin', ['sm', 'md', 'lg', 'small', 'large']) unless validator.valid?(margin) @@ -201,6 +203,7 @@ def margin=(margin) # Custom attribute writer method with validation # @param sizing [Object] Object to be assigned + # @!visibility private def sizing=(sizing) validator = EnumAttributeValidator.new('WidgetImageSizing', ['fill', 'contain', 'cover', 'none', 'scale-down', 'zoom', 'fit', 'center']) unless validator.valid?(sizing) @@ -211,6 +214,7 @@ def sizing=(sizing) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('ImageWidgetDefinitionType', ['image']) unless validator.valid?(type) @@ -224,6 +228,7 @@ def type=(type) # Custom attribute writer method with validation # @param url [Object] Object to be assigned + # @!visibility private def url=(url) if @url.nil? fail ArgumentError, 'invalid value for "url", url cannot be nil.' @@ -233,6 +238,7 @@ def url=(url) # Custom attribute writer method with validation # @param vertical_align [Object] Object to be assigned + # @!visibility private def vertical_align=(vertical_align) validator = EnumAttributeValidator.new('WidgetVerticalAlign', ['center', 'top', 'bottom']) unless validator.valid?(vertical_align) 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 5c50f06c379..e64a25858a5 100644 --- a/lib/datadog_api_client/v1/models/list_stream_column.rb +++ b/lib/datadog_api_client/v1/models/list_stream_column.rb @@ -110,6 +110,7 @@ def valid? # Custom attribute writer method with validation # @param field [Object] Object to be assigned + # @!visibility private def field=(field) if @field.nil? fail ArgumentError, 'invalid value for "field", field cannot be nil.' @@ -119,6 +120,7 @@ def field=(field) # Custom attribute writer method with validation # @param width [Object] Object to be assigned + # @!visibility private def width=(width) validator = EnumAttributeValidator.new('ListStreamColumnWidth', ['auto', 'compact', 'full']) unless validator.valid?(width) 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 64f2ab8e69f..4e8a2a86dc3 100644 --- a/lib/datadog_api_client/v1/models/list_stream_query.rb +++ b/lib/datadog_api_client/v1/models/list_stream_query.rb @@ -123,6 +123,7 @@ def valid? # Custom attribute writer method with validation # @param data_source [Object] Object to be assigned + # @!visibility private def data_source=(data_source) validator = EnumAttributeValidator.new('ListStreamSource', ['issue_stream', 'logs_stream', 'audit_stream']) unless validator.valid?(data_source) @@ -136,6 +137,7 @@ def data_source=(data_source) # Custom attribute writer method with validation # @param query_string [Object] Object to be assigned + # @!visibility private def query_string=(query_string) if @query_string.nil? fail ArgumentError, 'invalid value for "query_string", query_string cannot be nil.' 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 cd6f4bc6bf9..4c9d5149e74 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 @@ -177,6 +177,7 @@ def valid? # Custom attribute writer method with validation # @param requests [Object] Object to be assigned + # @!visibility private def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' @@ -192,6 +193,7 @@ def requests=(requests) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -202,6 +204,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('ListStreamWidgetDefinitionType', ['list_stream']) unless validator.valid?(type) 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 89323f30aed..8bb65ab9669 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,7 @@ def valid? # Custom attribute writer method with validation # @param columns [Object] Object to be assigned + # @!visibility private def columns=(columns) if @columns.nil? fail ArgumentError, 'invalid value for "columns", columns cannot be nil.' @@ -134,6 +135,7 @@ def columns=(columns) # Custom attribute writer method with validation # @param query [Object] Object to be assigned + # @!visibility private def query=(query) if @query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' @@ -143,6 +145,7 @@ def query=(query) # Custom attribute writer method with validation # @param response_format [Object] Object to be assigned + # @!visibility private def response_format=(response_format) validator = EnumAttributeValidator.new('ListStreamResponseFormat', ['event_list']) unless validator.valid?(response_format) 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 d1f4a496e3f..b38e12d8c4d 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 @@ -115,6 +115,7 @@ def valid? # Custom attribute writer method with validation # @param facet [Object] Object to be assigned + # @!visibility private def facet=(facet) if @facet.nil? fail ArgumentError, 'invalid value for "facet", facet cannot be nil.' 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 69c831037a5..7a99025cdbc 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 @@ -119,6 +119,7 @@ def valid? # Custom attribute writer method with validation # @param aggregation [Object] Object to be assigned + # @!visibility private def aggregation=(aggregation) if @aggregation.nil? fail ArgumentError, 'invalid value for "aggregation", aggregation cannot be nil.' @@ -128,6 +129,7 @@ def aggregation=(aggregation) # Custom attribute writer method with validation # @param order [Object] Object to be assigned + # @!visibility private def order=(order) validator = EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) unless validator.valid?(order) 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 20caa7cb445..d73c9657361 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param query [Object] Object to be assigned + # @!visibility private def query=(query) if @query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' 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 fe4c879ecb6..5282f917cf9 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 @@ -211,6 +211,7 @@ def valid? # Custom attribute writer method with validation # @param message_display [Object] Object to be assigned + # @!visibility private def message_display=(message_display) validator = EnumAttributeValidator.new('WidgetMessageDisplay', ['inline', 'expanded-md', 'expanded-lg']) unless validator.valid?(message_display) @@ -221,6 +222,7 @@ def message_display=(message_display) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -231,6 +233,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogStreamWidgetDefinitionType', ['log_stream']) unless validator.valid?(type) 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 29a33e8ece9..69086b7724d 100644 --- a/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb @@ -177,6 +177,7 @@ def valid? # Custom attribute writer method with validation # @param expression [Object] Object to be assigned + # @!visibility private def expression=(expression) if @expression.nil? fail ArgumentError, 'invalid value for "expression", expression cannot be nil.' @@ -186,6 +187,7 @@ def expression=(expression) # Custom attribute writer method with validation # @param target [Object] Object to be assigned + # @!visibility private def target=(target) if @target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' @@ -195,6 +197,7 @@ def target=(target) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsArithmeticProcessorType', ['arithmetic-processor']) unless validator.valid?(type) 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 cebe32651f1..71015daf56f 100644 --- a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb @@ -204,6 +204,7 @@ def valid? # Custom attribute writer method with validation # @param sources [Object] Object to be assigned + # @!visibility private def sources=(sources) if @sources.nil? fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' @@ -213,6 +214,7 @@ def sources=(sources) # Custom attribute writer method with validation # @param target [Object] Object to be assigned + # @!visibility private def target=(target) if @target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' @@ -222,6 +224,7 @@ def target=(target) # Custom attribute writer method with validation # @param target_format [Object] Object to be assigned + # @!visibility private def target_format=(target_format) validator = EnumAttributeValidator.new('TargetFormatType', ['auto', 'string', 'integer', 'double']) unless validator.valid?(target_format) @@ -232,6 +235,7 @@ def target_format=(target_format) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsAttributeRemapperType', ['attribute-remapper']) unless validator.valid?(type) 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 529087da17c..46356be790d 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor.rb @@ -160,6 +160,7 @@ def valid? # Custom attribute writer method with validation # @param categories [Object] Object to be assigned + # @!visibility private def categories=(categories) if @categories.nil? fail ArgumentError, 'invalid value for "categories", categories cannot be nil.' @@ -169,6 +170,7 @@ def categories=(categories) # Custom attribute writer method with validation # @param target [Object] Object to be assigned + # @!visibility private def target=(target) if @target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' @@ -178,6 +180,7 @@ def target=(target) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsCategoryProcessorType', ['category-processor']) unless validator.valid?(type) 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 6092bedabdc..5a40c652734 100644 --- a/lib/datadog_api_client/v1/models/logs_date_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_date_remapper.rb @@ -152,6 +152,7 @@ def valid? # Custom attribute writer method with validation # @param sources [Object] Object to be assigned + # @!visibility private def sources=(sources) if @sources.nil? fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' @@ -161,6 +162,7 @@ def sources=(sources) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsDateRemapperType', ['date-remapper']) unless validator.valid?(type) diff --git a/lib/datadog_api_client/v1/models/logs_exclusion.rb b/lib/datadog_api_client/v1/models/logs_exclusion.rb index 1dafbba9584..1ac14e96dfe 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion.rb @@ -115,6 +115,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' 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 177ac8d78b8..ed2692835c6 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb @@ -108,6 +108,7 @@ def valid? # Custom attribute writer method with validation # @param sample_rate [Object] Object to be assigned + # @!visibility private def sample_rate=(sample_rate) if @sample_rate.nil? fail ArgumentError, 'invalid value for "sample_rate", sample_rate cannot be nil.' 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 f54be14db16..7f851492f63 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 @@ -152,6 +152,7 @@ def valid? # Custom attribute writer method with validation # @param sources [Object] Object to be assigned + # @!visibility private def sources=(sources) if @sources.nil? fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' @@ -161,6 +162,7 @@ def sources=(sources) # Custom attribute writer method with validation # @param target [Object] Object to be assigned + # @!visibility private def target=(target) if @target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' @@ -170,6 +172,7 @@ def target=(target) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsGeoIPParserType', ['geo-ip-parser']) unless validator.valid?(type) 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 bddd044bd5d..441eaffbcf9 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser.rb @@ -163,6 +163,7 @@ def valid? # Custom attribute writer method with validation # @param grok [Object] Object to be assigned + # @!visibility private def grok=(grok) if @grok.nil? fail ArgumentError, 'invalid value for "grok", grok cannot be nil.' @@ -172,6 +173,7 @@ def grok=(grok) # Custom attribute writer method with validation # @param samples [Object] Object to be assigned + # @!visibility private def samples=(samples) if !samples.nil? && samples.length > 5 fail ArgumentError, 'invalid value for "samples", number of items must be less than or equal to 5.' @@ -181,6 +183,7 @@ def samples=(samples) # Custom attribute writer method with validation # @param source [Object] Object to be assigned + # @!visibility private def source=(source) if @source.nil? fail ArgumentError, 'invalid value for "source", source cannot be nil.' @@ -190,6 +193,7 @@ def source=(source) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsGrokParserType', ['grok-parser']) unless validator.valid?(type) 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 27125d32973..89a71fe7143 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 @@ -108,6 +108,7 @@ def valid? # Custom attribute writer method with validation # @param match_rules [Object] Object to be assigned + # @!visibility private def match_rules=(match_rules) if @match_rules.nil? fail ArgumentError, 'invalid value for "match_rules", match_rules cannot be nil.' diff --git a/lib/datadog_api_client/v1/models/logs_index.rb b/lib/datadog_api_client/v1/models/logs_index.rb index 81e39b89561..e3f78513121 100644 --- a/lib/datadog_api_client/v1/models/logs_index.rb +++ b/lib/datadog_api_client/v1/models/logs_index.rb @@ -152,6 +152,7 @@ def valid? # Custom attribute writer method with validation # @param filter [Object] Object to be assigned + # @!visibility private def filter=(filter) if @filter.nil? fail ArgumentError, 'invalid value for "filter", filter cannot be nil.' @@ -161,6 +162,7 @@ def filter=(filter) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' 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 dc531e5152f..fb4d47ade15 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 @@ -143,6 +143,7 @@ def valid? # Custom attribute writer method with validation # @param filter [Object] Object to be assigned + # @!visibility private def filter=(filter) if @filter.nil? fail ArgumentError, 'invalid value for "filter", filter cannot be nil.' 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 239c2c4d5c6..b9a3b1ce1d3 100644 --- a/lib/datadog_api_client/v1/models/logs_indexes_order.rb +++ b/lib/datadog_api_client/v1/models/logs_indexes_order.rb @@ -101,6 +101,7 @@ def valid? # Custom attribute writer method with validation # @param index_names [Object] Object to be assigned + # @!visibility private def index_names=(index_names) if @index_names.nil? fail ArgumentError, 'invalid value for "index_names", index_names cannot be nil.' 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 85f376a2c72..d22166b22ac 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request.rb @@ -151,6 +151,7 @@ def valid? # Custom attribute writer method with validation # @param limit [Object] Object to be assigned + # @!visibility private def limit=(limit) if !limit.nil? && limit > 1000 fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 1000.' @@ -160,6 +161,7 @@ def limit=(limit) # Custom attribute writer method with validation # @param sort [Object] Object to be assigned + # @!visibility private def sort=(sort) validator = EnumAttributeValidator.new('LogsSort', ['asc', 'desc']) unless validator.valid?(sort) @@ -170,6 +172,7 @@ def sort=(sort) # Custom attribute writer method with validation # @param time [Object] Object to be assigned + # @!visibility private def time=(time) if @time.nil? fail ArgumentError, 'invalid value for "time", time cannot be nil.' 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 e22be2af29b..514828ed7eb 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 @@ -120,6 +120,7 @@ def valid? # Custom attribute writer method with validation # @param from [Object] Object to be assigned + # @!visibility private def from=(from) if @from.nil? fail ArgumentError, 'invalid value for "from", from cannot be nil.' @@ -129,6 +130,7 @@ def from=(from) # Custom attribute writer method with validation # @param to [Object] Object to be assigned + # @!visibility private def to=(to) if @to.nil? fail ArgumentError, 'invalid value for "to", to cannot be nil.' 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 539e44b5388..039d7ddd02f 100644 --- a/lib/datadog_api_client/v1/models/logs_lookup_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_lookup_processor.rb @@ -176,6 +176,7 @@ def valid? # Custom attribute writer method with validation # @param lookup_table [Object] Object to be assigned + # @!visibility private def lookup_table=(lookup_table) if @lookup_table.nil? fail ArgumentError, 'invalid value for "lookup_table", lookup_table cannot be nil.' @@ -185,6 +186,7 @@ def lookup_table=(lookup_table) # Custom attribute writer method with validation # @param source [Object] Object to be assigned + # @!visibility private def source=(source) if @source.nil? fail ArgumentError, 'invalid value for "source", source cannot be nil.' @@ -194,6 +196,7 @@ def source=(source) # Custom attribute writer method with validation # @param target [Object] Object to be assigned + # @!visibility private def target=(target) if @target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' @@ -203,6 +206,7 @@ def target=(target) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsLookupProcessorType', ['lookup-processor']) unless validator.valid?(type) 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 ce4b1186340..633f992f7fd 100644 --- a/lib/datadog_api_client/v1/models/logs_message_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_message_remapper.rb @@ -141,6 +141,7 @@ def valid? # Custom attribute writer method with validation # @param sources [Object] Object to be assigned + # @!visibility private def sources=(sources) if @sources.nil? fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' @@ -150,6 +151,7 @@ def sources=(sources) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsMessageRemapperType', ['message-remapper']) unless validator.valid?(type) diff --git a/lib/datadog_api_client/v1/models/logs_pipeline.rb b/lib/datadog_api_client/v1/models/logs_pipeline.rb index f0de6ab5c6e..8eb459f2f27 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline.rb @@ -157,6 +157,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' 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 fbce659f0d6..2b05d50a369 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb @@ -143,6 +143,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsPipelineProcessorType', ['pipeline']) unless validator.valid?(type) 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 f669795e0d6..803f07d12a4 100644 --- a/lib/datadog_api_client/v1/models/logs_pipelines_order.rb +++ b/lib/datadog_api_client/v1/models/logs_pipelines_order.rb @@ -100,6 +100,7 @@ def valid? # Custom attribute writer method with validation # @param pipeline_ids [Object] Object to be assigned + # @!visibility private def pipeline_ids=(pipeline_ids) if @pipeline_ids.nil? fail ArgumentError, 'invalid value for "pipeline_ids", pipeline_ids cannot be nil.' 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 3c0a76935c7..52dbe6a24a6 100644 --- a/lib/datadog_api_client/v1/models/logs_query_compute.rb +++ b/lib/datadog_api_client/v1/models/logs_query_compute.rb @@ -115,6 +115,7 @@ def valid? # Custom attribute writer method with validation # @param aggregation [Object] Object to be assigned + # @!visibility private def aggregation=(aggregation) if @aggregation.nil? fail ArgumentError, 'invalid value for "aggregation", aggregation cannot be nil.' 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 2b071bacf0e..a6df22f4bb6 100644 --- a/lib/datadog_api_client/v1/models/logs_service_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_service_remapper.rb @@ -137,6 +137,7 @@ def valid? # Custom attribute writer method with validation # @param sources [Object] Object to be assigned + # @!visibility private def sources=(sources) if @sources.nil? fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' @@ -146,6 +147,7 @@ def sources=(sources) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsServiceRemapperType', ['service-remapper']) unless validator.valid?(type) 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 d18420d0a93..ec4bb510c39 100644 --- a/lib/datadog_api_client/v1/models/logs_status_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_status_remapper.rb @@ -151,6 +151,7 @@ def valid? # Custom attribute writer method with validation # @param sources [Object] Object to be assigned + # @!visibility private def sources=(sources) if @sources.nil? fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' @@ -160,6 +161,7 @@ def sources=(sources) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsStatusRemapperType', ['status-remapper']) unless validator.valid?(type) 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 1e8f1accf8a..c0bb99de422 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 @@ -169,6 +169,7 @@ def valid? # Custom attribute writer method with validation # @param target [Object] Object to be assigned + # @!visibility private def target=(target) if @target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' @@ -178,6 +179,7 @@ def target=(target) # Custom attribute writer method with validation # @param template [Object] Object to be assigned + # @!visibility private def template=(template) if @template.nil? fail ArgumentError, 'invalid value for "template", template cannot be nil.' @@ -187,6 +189,7 @@ def template=(template) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsStringBuilderProcessorType', ['string-builder-processor']) unless validator.valid?(type) 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 3ae1fbbc3b9..56c2ece564b 100644 --- a/lib/datadog_api_client/v1/models/logs_trace_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_trace_remapper.rb @@ -137,6 +137,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsTraceRemapperType', ['trace-id-remapper']) unless validator.valid?(type) 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 d1f7241c7a5..408ac97950d 100644 --- a/lib/datadog_api_client/v1/models/logs_url_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_url_parser.rb @@ -163,6 +163,7 @@ def valid? # Custom attribute writer method with validation # @param sources [Object] Object to be assigned + # @!visibility private def sources=(sources) if @sources.nil? fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' @@ -172,6 +173,7 @@ def sources=(sources) # Custom attribute writer method with validation # @param target [Object] Object to be assigned + # @!visibility private def target=(target) if @target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' @@ -181,6 +183,7 @@ def target=(target) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsURLParserType', ['url-parser']) unless validator.valid?(type) 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 94d9dd24beb..9ea406544fe 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 @@ -163,6 +163,7 @@ def valid? # Custom attribute writer method with validation # @param sources [Object] Object to be assigned + # @!visibility private def sources=(sources) if @sources.nil? fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' @@ -172,6 +173,7 @@ def sources=(sources) # Custom attribute writer method with validation # @param target [Object] Object to be assigned + # @!visibility private def target=(target) if @target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' @@ -181,6 +183,7 @@ def target=(target) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsUserAgentParserType', ['user-agent-parser']) unless validator.valid?(type) diff --git a/lib/datadog_api_client/v1/models/metrics_payload.rb b/lib/datadog_api_client/v1/models/metrics_payload.rb index 988dbcc427c..65c7b702546 100644 --- a/lib/datadog_api_client/v1/models/metrics_payload.rb +++ b/lib/datadog_api_client/v1/models/metrics_payload.rb @@ -99,6 +99,7 @@ def valid? # Custom attribute writer method with validation # @param series [Object] Object to be assigned + # @!visibility private def series=(series) if @series.nil? fail ArgumentError, 'invalid value for "series", series cannot be nil.' 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 519efd37d10..a2f1d71d941 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_metadata.rb @@ -218,6 +218,7 @@ def valid? # Custom attribute writer method with validation # @param unit [Object] Object to be assigned + # @!visibility private def unit=(unit) if !unit.nil? && unit.length > 2 fail ArgumentError, 'invalid value for "unit", number of items must be less than or equal to 2.' diff --git a/lib/datadog_api_client/v1/models/monitor.rb b/lib/datadog_api_client/v1/models/monitor.rb index c2577e683c5..37bf986fe00 100644 --- a/lib/datadog_api_client/v1/models/monitor.rb +++ b/lib/datadog_api_client/v1/models/monitor.rb @@ -251,6 +251,7 @@ def valid? # Custom attribute writer method with validation # @param overall_state [Object] Object to be assigned + # @!visibility private def overall_state=(overall_state) validator = EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) unless validator.valid?(overall_state) @@ -261,6 +262,7 @@ def overall_state=(overall_state) # Custom attribute writer method with validation # @param priority [Object] Object to be assigned + # @!visibility private def priority=(priority) if !priority.nil? && priority > 5 fail ArgumentError, 'invalid value for "priority", must be smaller than or equal to 5.' @@ -273,6 +275,7 @@ def priority=(priority) # Custom attribute writer method with validation # @param query [Object] Object to be assigned + # @!visibility private def query=(query) if @query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' @@ -282,6 +285,7 @@ def query=(query) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('MonitorType', ['composite', 'event alert', 'log alert', 'metric alert', 'process alert', 'query alert', 'rum alert', 'service check', 'synthetics alert', 'trace-analytics alert', 'slo alert', 'event-v2 alert', 'audit alert', 'ci-pipelines alert']) unless validator.valid?(type) 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 eef1588768c..aa655565821 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,7 @@ def valid? # Custom attribute writer method with validation # @param compute [Object] Object to be assigned + # @!visibility private def compute=(compute) if @compute.nil? fail ArgumentError, 'invalid value for "compute", compute cannot be nil.' @@ -163,6 +164,7 @@ def compute=(compute) # Custom attribute writer method with validation # @param data_source [Object] Object to be assigned + # @!visibility private def data_source=(data_source) validator = EnumAttributeValidator.new('MonitorFormulaAndFunctionEventsDataSource', ['rum']) unless validator.valid?(data_source) @@ -176,6 +178,7 @@ def data_source=(data_source) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' 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 1f17bebd1dd..82c64583136 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 @@ -115,6 +115,7 @@ def valid? # Custom attribute writer method with validation # @param aggregation [Object] Object to be assigned + # @!visibility private def aggregation=(aggregation) validator = EnumAttributeValidator.new('MonitorFormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) unless validator.valid?(aggregation) 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 a815a86f8e7..03fc1c8d5c4 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param query [Object] Object to be assigned + # @!visibility private def query=(query) if @query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' 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 aa553fde769..56c7aef263d 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 @@ -115,6 +115,7 @@ def valid? # Custom attribute writer method with validation # @param facet [Object] Object to be assigned + # @!visibility private def facet=(facet) if @facet.nil? fail ArgumentError, 'invalid value for "facet", facet cannot be nil.' 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 361d23f0b03..c60bf9836e3 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 @@ -117,6 +117,7 @@ def valid? # Custom attribute writer method with validation # @param aggregation [Object] Object to be assigned + # @!visibility private def aggregation=(aggregation) validator = EnumAttributeValidator.new('MonitorFormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) unless validator.valid?(aggregation) @@ -130,6 +131,7 @@ def aggregation=(aggregation) # Custom attribute writer method with validation # @param order [Object] Object to be assigned + # @!visibility private def order=(order) validator = EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) unless validator.valid?(order) 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 c922a4a0e4e..a14304bdaab 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 @@ -150,6 +150,7 @@ def valid? # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) unless validator.valid?(status) diff --git a/lib/datadog_api_client/v1/models/monitor_options.rb b/lib/datadog_api_client/v1/models/monitor_options.rb index a1f96a8fbe2..8b589ef9419 100644 --- a/lib/datadog_api_client/v1/models/monitor_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_options.rb @@ -376,6 +376,7 @@ def valid? # Custom attribute writer method with validation # @param min_failure_duration [Object] Object to be assigned + # @!visibility private def min_failure_duration=(min_failure_duration) if !min_failure_duration.nil? && min_failure_duration > 7200 fail ArgumentError, 'invalid value for "min_failure_duration", must be smaller than or equal to 7200.' 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 73758e42db0..fde3ef27cf0 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_result.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_result.rb @@ -213,6 +213,7 @@ def valid? # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) unless validator.valid?(status) @@ -223,6 +224,7 @@ def status=(status) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('MonitorType', ['composite', 'event alert', 'log alert', 'metric alert', 'process alert', 'query alert', 'rum alert', 'service check', 'synthetics alert', 'trace-analytics alert', 'slo alert', 'event-v2 alert', 'audit alert', 'ci-pipelines alert']) unless validator.valid?(type) 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 70fde80ca18..e842afbf79f 100644 --- a/lib/datadog_api_client/v1/models/monitor_state_group.rb +++ b/lib/datadog_api_client/v1/models/monitor_state_group.rb @@ -138,6 +138,7 @@ def valid? # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) unless validator.valid?(status) 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 31f3d8084d3..ef6452a31e4 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,7 @@ def valid? # Custom attribute writer method with validation # @param color_preference [Object] Object to be assigned + # @!visibility private def color_preference=(color_preference) validator = EnumAttributeValidator.new('WidgetColorPreference', ['background', 'text']) unless validator.valid?(color_preference) @@ -221,6 +222,7 @@ def color_preference=(color_preference) # Custom attribute writer method with validation # @param display_format [Object] Object to be assigned + # @!visibility private def display_format=(display_format) validator = EnumAttributeValidator.new('WidgetMonitorSummaryDisplayFormat', ['counts', 'countsAndList', 'list']) unless validator.valid?(display_format) @@ -231,6 +233,7 @@ def display_format=(display_format) # Custom attribute writer method with validation # @param query [Object] Object to be assigned + # @!visibility private def query=(query) if @query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' @@ -240,6 +243,7 @@ def query=(query) # Custom attribute writer method with validation # @param sort [Object] Object to be assigned + # @!visibility private def sort=(sort) validator = EnumAttributeValidator.new('WidgetMonitorSummarySort', ['name', 'group', 'status', 'tags', 'triggered', 'group,asc', 'group,desc', 'name,asc', 'name,desc', 'status,asc', 'status,desc', 'tags,asc', 'tags,desc', 'triggered,asc', 'triggered,desc']) unless validator.valid?(sort) @@ -250,6 +254,7 @@ def sort=(sort) # Custom attribute writer method with validation # @param summary_type [Object] Object to be assigned + # @!visibility private def summary_type=(summary_type) validator = EnumAttributeValidator.new('WidgetSummaryType', ['monitors', 'groups', 'combined']) unless validator.valid?(summary_type) @@ -260,6 +265,7 @@ def summary_type=(summary_type) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -270,6 +276,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('MonitorSummaryWidgetDefinitionType', ['manage_status']) unless validator.valid?(type) 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 0f503c164e8..731fee87fa2 100644 --- a/lib/datadog_api_client/v1/models/monitor_update_request.rb +++ b/lib/datadog_api_client/v1/models/monitor_update_request.rb @@ -241,6 +241,7 @@ def valid? # Custom attribute writer method with validation # @param overall_state [Object] Object to be assigned + # @!visibility private def overall_state=(overall_state) validator = EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) unless validator.valid?(overall_state) @@ -251,6 +252,7 @@ def overall_state=(overall_state) # Custom attribute writer method with validation # @param priority [Object] Object to be assigned + # @!visibility private def priority=(priority) if !priority.nil? && priority > 5 fail ArgumentError, 'invalid value for "priority", must be smaller than or equal to 5.' @@ -263,6 +265,7 @@ def priority=(priority) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('MonitorType', ['composite', 'event alert', 'log alert', 'metric alert', 'process alert', 'query alert', 'rum alert', 'service check', 'synthetics alert', 'trace-analytics alert', 'slo alert', 'event-v2 alert', 'audit alert', 'ci-pipelines alert']) unless validator.valid?(type) 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 f70d8e9577f..7ce249fcde1 100644 --- a/lib/datadog_api_client/v1/models/note_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/note_widget_definition.rb @@ -186,6 +186,7 @@ def valid? # Custom attribute writer method with validation # @param content [Object] Object to be assigned + # @!visibility private def content=(content) if @content.nil? fail ArgumentError, 'invalid value for "content", content cannot be nil.' @@ -195,6 +196,7 @@ def content=(content) # Custom attribute writer method with validation # @param text_align [Object] Object to be assigned + # @!visibility private def text_align=(text_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(text_align) @@ -205,6 +207,7 @@ def text_align=(text_align) # Custom attribute writer method with validation # @param tick_edge [Object] Object to be assigned + # @!visibility private def tick_edge=(tick_edge) validator = EnumAttributeValidator.new('WidgetTickEdge', ['bottom', 'left', 'right', 'top']) unless validator.valid?(tick_edge) @@ -215,6 +218,7 @@ def tick_edge=(tick_edge) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('NoteWidgetDefinitionType', ['note']) unless validator.valid?(type) @@ -228,6 +232,7 @@ def type=(type) # Custom attribute writer method with validation # @param vertical_align [Object] Object to be assigned + # @!visibility private def vertical_align=(vertical_align) validator = EnumAttributeValidator.new('WidgetVerticalAlign', ['center', 'top', 'bottom']) unless validator.valid?(vertical_align) 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 7cc860400d7..a520d2bfbca 100644 --- a/lib/datadog_api_client/v1/models/notebook_absolute_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_absolute_time.rb @@ -119,6 +119,7 @@ def valid? # Custom attribute writer method with validation # @param _end [Object] Object to be assigned + # @!visibility private def _end=(_end) if @_end.nil? fail ArgumentError, 'invalid value for "_end", _end cannot be nil.' @@ -128,6 +129,7 @@ def _end=(_end) # Custom attribute writer method with validation # @param start [Object] Object to be assigned + # @!visibility private def start=(start) if @start.nil? fail ArgumentError, 'invalid value for "start", start cannot be nil.' 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 9db736d78e1..f13139e1480 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 @@ -113,6 +113,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -122,6 +123,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('NotebookCellResourceType', ['notebook_cells']) unless validator.valid?(type) 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 480f74a3743..19c0fe6aeab 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_response.rb @@ -126,6 +126,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -135,6 +136,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -144,6 +146,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('NotebookCellResourceType', ['notebook_cells']) unless validator.valid?(type) 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 ba2e18ea1dc..dc4f02cb653 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 @@ -126,6 +126,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -135,6 +136,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -144,6 +146,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('NotebookCellResourceType', ['notebook_cells']) unless validator.valid?(type) 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 2ed4b4fd0ee..d83257161de 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_data.rb @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -121,6 +122,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) unless validator.valid?(type) 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 0266887dbc9..cf48ca5bc66 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 @@ -153,6 +153,7 @@ def valid? # Custom attribute writer method with validation # @param cells [Object] Object to be assigned + # @!visibility private def cells=(cells) if @cells.nil? fail ArgumentError, 'invalid value for "cells", cells cannot be nil.' @@ -162,6 +163,7 @@ def cells=(cells) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -177,6 +179,7 @@ def name=(name) # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('NotebookStatus', ['published']) unless validator.valid?(status) @@ -187,6 +190,7 @@ def status=(status) # Custom attribute writer method with validation # @param time [Object] Object to be assigned + # @!visibility private def time=(time) if @time.nil? fail ArgumentError, 'invalid value for "time", time cannot be nil.' 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 5014f8f7d6e..1549be72ccc 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_request.rb @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 2c48aab24a4..23b7a071746 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 @@ -127,6 +127,7 @@ def valid? # Custom attribute writer method with validation # @param definition [Object] Object to be assigned + # @!visibility private def definition=(definition) if @definition.nil? fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' @@ -136,6 +137,7 @@ def definition=(definition) # Custom attribute writer method with validation # @param graph_size [Object] Object to be assigned + # @!visibility private def graph_size=(graph_size) validator = EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) unless validator.valid?(graph_size) 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 7eda77b5e50..f2824476ddc 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 @@ -125,6 +125,7 @@ def valid? # Custom attribute writer method with validation # @param definition [Object] Object to be assigned + # @!visibility private def definition=(definition) if @definition.nil? fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' @@ -134,6 +135,7 @@ def definition=(definition) # Custom attribute writer method with validation # @param graph_size [Object] Object to be assigned + # @!visibility private def graph_size=(graph_size) validator = EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) unless validator.valid?(graph_size) 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 49b2f7b0794..fd4883a993e 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 @@ -116,6 +116,7 @@ def valid? # Custom attribute writer method with validation # @param definition [Object] Object to be assigned + # @!visibility private def definition=(definition) if @definition.nil? fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' @@ -125,6 +126,7 @@ def definition=(definition) # Custom attribute writer method with validation # @param graph_size [Object] Object to be assigned + # @!visibility private def graph_size=(graph_size) validator = EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) unless validator.valid?(graph_size) 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 965802e4d5c..a912eaefc08 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param definition [Object] Object to be assigned + # @!visibility private def definition=(definition) if @definition.nil? fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' 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 dbc4af9a6b7..20728f90e5b 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 @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param text [Object] Object to be assigned + # @!visibility private def text=(text) if @text.nil? fail ArgumentError, 'invalid value for "text", text cannot be nil.' @@ -121,6 +122,7 @@ def text=(text) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('NotebookMarkdownCellDefinitionType', ['markdown']) unless validator.valid?(type) diff --git a/lib/datadog_api_client/v1/models/notebook_metadata.rb b/lib/datadog_api_client/v1/models/notebook_metadata.rb index fba9df8d987..6b0f2cb0e0b 100644 --- a/lib/datadog_api_client/v1/models/notebook_metadata.rb +++ b/lib/datadog_api_client/v1/models/notebook_metadata.rb @@ -116,6 +116,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('NotebookMetadataType', ['postmortem', 'runbook', 'investigation', 'documentation', 'report']) unless validator.valid?(type) 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 579a211a771..9b45c7bc214 100644 --- a/lib/datadog_api_client/v1/models/notebook_relative_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_relative_time.rb @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param live_span [Object] Object to be assigned + # @!visibility private def live_span=(live_span) validator = EnumAttributeValidator.new('WidgetLiveSpan', ['1m', '5m', '10m', '15m', '30m', '1h', '4h', '1d', '2d', '1w', '1mo', '3mo', '6mo', '1y', 'alert']) unless validator.valid?(live_span) 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 3f23acbd219..cda675819fb 100644 --- a/lib/datadog_api_client/v1/models/notebook_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_response_data.rb @@ -125,6 +125,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -134,6 +135,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -143,6 +145,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) unless validator.valid?(type) 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 65c9797beda..54d7f8733ac 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 @@ -180,6 +180,7 @@ def valid? # Custom attribute writer method with validation # @param cells [Object] Object to be assigned + # @!visibility private def cells=(cells) if @cells.nil? fail ArgumentError, 'invalid value for "cells", cells cannot be nil.' @@ -189,6 +190,7 @@ def cells=(cells) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -204,6 +206,7 @@ def name=(name) # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('NotebookStatus', ['published']) unless validator.valid?(status) @@ -214,6 +217,7 @@ def status=(status) # Custom attribute writer method with validation # @param time [Object] Object to be assigned + # @!visibility private def time=(time) if @time.nil? fail ArgumentError, 'invalid value for "time", time cannot be nil.' 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 dbbff5b3933..0deeb1bcade 100644 --- a/lib/datadog_api_client/v1/models/notebook_split_by.rb +++ b/lib/datadog_api_client/v1/models/notebook_split_by.rb @@ -114,6 +114,7 @@ def valid? # Custom attribute writer method with validation # @param keys [Object] Object to be assigned + # @!visibility private def keys=(keys) if @keys.nil? fail ArgumentError, 'invalid value for "keys", keys cannot be nil.' @@ -123,6 +124,7 @@ def keys=(keys) # Custom attribute writer method with validation # @param tags [Object] Object to be assigned + # @!visibility private def tags=(tags) if @tags.nil? fail ArgumentError, 'invalid value for "tags", tags cannot be nil.' 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 3f5af12c54e..5ad4af76874 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 @@ -125,6 +125,7 @@ def valid? # Custom attribute writer method with validation # @param definition [Object] Object to be assigned + # @!visibility private def definition=(definition) if @definition.nil? fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' @@ -134,6 +135,7 @@ def definition=(definition) # Custom attribute writer method with validation # @param graph_size [Object] Object to be assigned + # @!visibility private def graph_size=(graph_size) validator = EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) unless validator.valid?(graph_size) 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 1ecdb79b8ba..5e228fc3408 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 @@ -125,6 +125,7 @@ def valid? # Custom attribute writer method with validation # @param definition [Object] Object to be assigned + # @!visibility private def definition=(definition) if @definition.nil? fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' @@ -134,6 +135,7 @@ def definition=(definition) # Custom attribute writer method with validation # @param graph_size [Object] Object to be assigned + # @!visibility private def graph_size=(graph_size) validator = EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) unless validator.valid?(graph_size) 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 949571647d3..eb54383ccb0 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_data.rb @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -121,6 +122,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) unless validator.valid?(type) 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 d47ed404815..c8423ca4862 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 @@ -153,6 +153,7 @@ def valid? # Custom attribute writer method with validation # @param cells [Object] Object to be assigned + # @!visibility private def cells=(cells) if @cells.nil? fail ArgumentError, 'invalid value for "cells", cells cannot be nil.' @@ -162,6 +163,7 @@ def cells=(cells) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -177,6 +179,7 @@ def name=(name) # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('NotebookStatus', ['published']) unless validator.valid?(status) @@ -187,6 +190,7 @@ def status=(status) # Custom attribute writer method with validation # @param time [Object] Object to be assigned + # @!visibility private def time=(time) if @time.nil? fail ArgumentError, 'invalid value for "time", time cannot be nil.' 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 44beee14fd2..4e9c82811b2 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_request.rb @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 f5fdc53a118..8a04807de96 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_data.rb @@ -125,6 +125,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -134,6 +135,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -143,6 +145,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) unless validator.valid?(type) 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 919973a2a71..aea5805ab44 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 @@ -172,6 +172,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -187,6 +188,7 @@ def name=(name) # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('NotebookStatus', ['published']) unless validator.valid?(status) diff --git a/lib/datadog_api_client/v1/models/organization.rb b/lib/datadog_api_client/v1/models/organization.rb index 41b42bb69a4..64f5de83c55 100644 --- a/lib/datadog_api_client/v1/models/organization.rb +++ b/lib/datadog_api_client/v1/models/organization.rb @@ -151,6 +151,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if !name.nil? && name > 32 fail ArgumentError, 'invalid value for "name", must be smaller than or equal to 32.' 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 ad7ea6d2be6..6e2f8a79509 100644 --- a/lib/datadog_api_client/v1/models/organization_create_body.rb +++ b/lib/datadog_api_client/v1/models/organization_create_body.rb @@ -119,6 +119,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' diff --git a/lib/datadog_api_client/v1/models/organization_settings.rb b/lib/datadog_api_client/v1/models/organization_settings.rb index 13dffe1ee43..e72134b05ed 100644 --- a/lib/datadog_api_client/v1/models/organization_settings.rb +++ b/lib/datadog_api_client/v1/models/organization_settings.rb @@ -177,6 +177,7 @@ def valid? # Custom attribute writer method with validation # @param saml_autocreate_access_role [Object] Object to be assigned + # @!visibility private def saml_autocreate_access_role=(saml_autocreate_access_role) validator = EnumAttributeValidator.new('AccessRole', ['st', 'adm', 'ro', 'ERROR']) unless validator.valid?(saml_autocreate_access_role) 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 6a9f4d0c8c7..6ed8f8e37fc 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service.rb @@ -110,6 +110,7 @@ def valid? # Custom attribute writer method with validation # @param service_key [Object] Object to be assigned + # @!visibility private def service_key=(service_key) if @service_key.nil? fail ArgumentError, 'invalid value for "service_key", service_key cannot be nil.' @@ -119,6 +120,7 @@ def service_key=(service_key) # Custom attribute writer method with validation # @param service_name [Object] Object to be assigned + # @!visibility private def service_name=(service_name) if @service_name.nil? fail ArgumentError, 'invalid value for "service_name", service_name cannot be nil.' 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 e68b6f60275..63bd24165f8 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param service_key [Object] Object to be assigned + # @!visibility private def service_key=(service_key) if @service_key.nil? fail ArgumentError, 'invalid value for "service_key", service_key cannot be nil.' 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 357d6b4b4ab..e3ff313c59e 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param service_name [Object] Object to be assigned + # @!visibility private def service_name=(service_name) if @service_name.nil? fail ArgumentError, 'invalid value for "service_name", service_name cannot be nil.' 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 30c3cfaf3e3..997fb3f1f84 100644 --- a/lib/datadog_api_client/v1/models/process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/process_query_definition.rb @@ -130,6 +130,7 @@ def valid? # Custom attribute writer method with validation # @param limit [Object] Object to be assigned + # @!visibility private def limit=(limit) if !limit.nil? && limit < 0 fail ArgumentError, 'invalid value for "limit", must be greater than or equal to 0.' @@ -139,6 +140,7 @@ def limit=(limit) # Custom attribute writer method with validation # @param metric [Object] Object to be assigned + # @!visibility private def metric=(metric) if @metric.nil? fail ArgumentError, 'invalid value for "metric", metric cannot be nil.' 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 7673cf0116d..4bf1c996c3a 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,7 @@ def valid? # Custom attribute writer method with validation # @param requests [Object] Object to be assigned + # @!visibility private def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' @@ -220,6 +221,7 @@ def requests=(requests) # Custom attribute writer method with validation # @param text_align [Object] Object to be assigned + # @!visibility private def text_align=(text_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(text_align) @@ -230,6 +232,7 @@ def text_align=(text_align) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -240,6 +243,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('QueryValueWidgetDefinitionType', ['query_value']) unless validator.valid?(type) 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 8b326512b41..8233799c9f5 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 @@ -225,6 +225,7 @@ def valid? # Custom attribute writer method with validation # @param aggregator [Object] Object to be assigned + # @!visibility private def aggregator=(aggregator) validator = EnumAttributeValidator.new('WidgetAggregator', ['avg', 'last', 'max', 'min', 'sum', 'percentile']) unless validator.valid?(aggregator) @@ -235,6 +236,7 @@ def aggregator=(aggregator) # Custom attribute writer method with validation # @param response_format [Object] Object to be assigned + # @!visibility private def response_format=(response_format) validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) unless validator.valid?(response_format) 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 38f95b6132d..dd899fedef7 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_request.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_request.rb @@ -174,6 +174,7 @@ def valid? # Custom attribute writer method with validation # @param aggregator [Object] Object to be assigned + # @!visibility private def aggregator=(aggregator) validator = EnumAttributeValidator.new('ScatterplotWidgetAggregator', ['avg', 'last', 'max', 'min', 'sum']) unless validator.valid?(aggregator) 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 70190da754e..e4fd8c14b7b 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 @@ -188,6 +188,7 @@ def valid? # Custom attribute writer method with validation # @param requests [Object] Object to be assigned + # @!visibility private def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' @@ -197,6 +198,7 @@ def requests=(requests) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -207,6 +209,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('ScatterPlotWidgetDefinitionType', ['scatterplot']) unless validator.valid?(type) 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 bf4e3a7fb80..99b2f53e82a 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_table_request.rb @@ -115,6 +115,7 @@ def valid? # Custom attribute writer method with validation # @param response_format [Object] Object to be assigned + # @!visibility private def response_format=(response_format) validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) unless validator.valid?(response_format) 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 bff0510f242..3acfd718b16 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb @@ -119,6 +119,7 @@ def valid? # Custom attribute writer method with validation # @param dimension [Object] Object to be assigned + # @!visibility private def dimension=(dimension) validator = EnumAttributeValidator.new('ScatterplotDimension', ['x', 'y', 'radius', 'color']) unless validator.valid?(dimension) @@ -132,6 +133,7 @@ def dimension=(dimension) # Custom attribute writer method with validation # @param formula [Object] Object to be assigned + # @!visibility private def formula=(formula) if @formula.nil? fail ArgumentError, 'invalid value for "formula", formula cannot be nil.' diff --git a/lib/datadog_api_client/v1/models/series.rb b/lib/datadog_api_client/v1/models/series.rb index c7141085aab..b39885dcbb4 100644 --- a/lib/datadog_api_client/v1/models/series.rb +++ b/lib/datadog_api_client/v1/models/series.rb @@ -154,6 +154,7 @@ def valid? # Custom attribute writer method with validation # @param metric [Object] Object to be assigned + # @!visibility private def metric=(metric) if @metric.nil? fail ArgumentError, 'invalid value for "metric", metric cannot be nil.' @@ -163,6 +164,7 @@ def metric=(metric) # Custom attribute writer method with validation # @param points [Object] Object to be assigned + # @!visibility private def points=(points) if @points.nil? fail ArgumentError, 'invalid value for "points", points cannot be nil.' diff --git a/lib/datadog_api_client/v1/models/service_check.rb b/lib/datadog_api_client/v1/models/service_check.rb index 63084f3c48a..c9092615b4e 100644 --- a/lib/datadog_api_client/v1/models/service_check.rb +++ b/lib/datadog_api_client/v1/models/service_check.rb @@ -156,6 +156,7 @@ def valid? # Custom attribute writer method with validation # @param check [Object] Object to be assigned + # @!visibility private def check=(check) if @check.nil? fail ArgumentError, 'invalid value for "check", check cannot be nil.' @@ -165,6 +166,7 @@ def check=(check) # Custom attribute writer method with validation # @param host_name [Object] Object to be assigned + # @!visibility private def host_name=(host_name) if @host_name.nil? fail ArgumentError, 'invalid value for "host_name", host_name cannot be nil.' @@ -174,6 +176,7 @@ def host_name=(host_name) # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('ServiceCheckStatus', [0, 1, 2, 3]) unless validator.valid?(status) @@ -187,6 +190,7 @@ def status=(status) # Custom attribute writer method with validation # @param tags [Object] Object to be assigned + # @!visibility private def tags=(tags) if @tags.nil? fail ArgumentError, 'invalid value for "tags", tags cannot be nil.' 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 fd5bd628e5a..0ca63bc39f7 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective.rb @@ -249,6 +249,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -258,6 +259,7 @@ def name=(name) # Custom attribute writer method with validation # @param thresholds [Object] Object to be assigned + # @!visibility private def thresholds=(thresholds) if @thresholds.nil? fail ArgumentError, 'invalid value for "thresholds", thresholds cannot be nil.' @@ -267,6 +269,7 @@ def thresholds=(thresholds) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) unless validator.valid?(type) 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 a46d4951267..c1b7551a818 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 @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param denominator [Object] Object to be assigned + # @!visibility private def denominator=(denominator) if @denominator.nil? fail ArgumentError, 'invalid value for "denominator", denominator cannot be nil.' @@ -121,6 +122,7 @@ def denominator=(denominator) # Custom attribute writer method with validation # @param numerator [Object] Object to be assigned + # @!visibility private def numerator=(numerator) if @numerator.nil? fail ArgumentError, 'invalid value for "numerator", numerator cannot be nil.' 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 3074a7d240e..9cf6077799b 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 @@ -191,6 +191,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -200,6 +201,7 @@ def name=(name) # Custom attribute writer method with validation # @param thresholds [Object] Object to be assigned + # @!visibility private def thresholds=(thresholds) if @thresholds.nil? fail ArgumentError, 'invalid value for "thresholds", thresholds cannot be nil.' @@ -209,6 +211,7 @@ def thresholds=(thresholds) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) unless validator.valid?(type) 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 bf4d646e0e2..8b014810cff 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 @@ -169,6 +169,7 @@ def valid? # Custom attribute writer method with validation # @param filters [Object] Object to be assigned + # @!visibility private def filters=(filters) if @filters.nil? fail ArgumentError, 'invalid value for "filters", filters cannot be nil.' @@ -181,6 +182,7 @@ def filters=(filters) # Custom attribute writer method with validation # @param service [Object] Object to be assigned + # @!visibility private def service=(service) if @service.nil? fail ArgumentError, 'invalid value for "service", service cannot be nil.' @@ -190,6 +192,7 @@ def service=(service) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -200,6 +203,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('ServiceMapWidgetDefinitionType', ['servicemap']) unless validator.valid?(type) 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 b6a8251a662..25ab3d43e1c 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 @@ -246,6 +246,7 @@ def valid? # Custom attribute writer method with validation # @param display_format [Object] Object to be assigned + # @!visibility private def display_format=(display_format) validator = EnumAttributeValidator.new('WidgetServiceSummaryDisplayFormat', ['one_column', 'two_column', 'three_column']) unless validator.valid?(display_format) @@ -256,6 +257,7 @@ def display_format=(display_format) # Custom attribute writer method with validation # @param env [Object] Object to be assigned + # @!visibility private def env=(env) if @env.nil? fail ArgumentError, 'invalid value for "env", env cannot be nil.' @@ -265,6 +267,7 @@ def env=(env) # Custom attribute writer method with validation # @param service [Object] Object to be assigned + # @!visibility private def service=(service) if @service.nil? fail ArgumentError, 'invalid value for "service", service cannot be nil.' @@ -274,6 +277,7 @@ def service=(service) # Custom attribute writer method with validation # @param size_format [Object] Object to be assigned + # @!visibility private def size_format=(size_format) validator = EnumAttributeValidator.new('WidgetSizeFormat', ['small', 'medium', 'large']) unless validator.valid?(size_format) @@ -284,6 +288,7 @@ def size_format=(size_format) # Custom attribute writer method with validation # @param span_name [Object] Object to be assigned + # @!visibility private def span_name=(span_name) if @span_name.nil? fail ArgumentError, 'invalid value for "span_name", span_name cannot be nil.' @@ -293,6 +298,7 @@ def span_name=(span_name) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -303,6 +309,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('ServiceSummaryWidgetDefinitionType', ['trace_service']) unless validator.valid?(type) 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 68a9cac35d6..494aedd83f3 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,7 @@ def valid? # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -134,6 +135,7 @@ def id=(id) # Custom attribute writer method with validation # @param message [Object] Object to be assigned + # @!visibility private def message=(message) if @message.nil? fail ArgumentError, 'invalid value for "message", message cannot be nil.' @@ -143,6 +145,7 @@ def message=(message) # Custom attribute writer method with validation # @param timeframe [Object] Object to be assigned + # @!visibility private def timeframe=(timeframe) validator = EnumAttributeValidator.new('SLOErrorTimeframe', ['7d', '30d', '90d', 'all']) unless validator.valid?(timeframe) diff --git a/lib/datadog_api_client/v1/models/slo_correction.rb b/lib/datadog_api_client/v1/models/slo_correction.rb index 566b29ecf43..a2f0d1a6549 100644 --- a/lib/datadog_api_client/v1/models/slo_correction.rb +++ b/lib/datadog_api_client/v1/models/slo_correction.rb @@ -113,6 +113,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SLOCorrectionType', ['correction']) unless validator.valid?(type) 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 7f4a669278d..535f3fb9399 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 @@ -108,6 +108,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SLOCorrectionType', ['correction']) unless validator.valid?(type) 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 ec9e47f88b1..7a689e0fd18 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,7 @@ def valid? # Custom attribute writer method with validation # @param category [Object] Object to be assigned + # @!visibility private def category=(category) validator = EnumAttributeValidator.new('SLOCorrectionCategory', ['Scheduled Maintenance', 'Outside Business Hours', 'Deployment', 'Other']) unless validator.valid?(category) @@ -182,6 +183,7 @@ def category=(category) # Custom attribute writer method with validation # @param slo_id [Object] Object to be assigned + # @!visibility private def slo_id=(slo_id) if @slo_id.nil? fail ArgumentError, 'invalid value for "slo_id", slo_id cannot be nil.' @@ -191,6 +193,7 @@ def slo_id=(slo_id) # Custom attribute writer method with validation # @param start [Object] Object to be assigned + # @!visibility private def start=(start) if @start.nil? fail ArgumentError, 'invalid value for "start", start cannot be nil.' 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 cfbdb6d572a..7fd18d972a8 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 @@ -196,6 +196,7 @@ def valid? # Custom attribute writer method with validation # @param category [Object] Object to be assigned + # @!visibility private def category=(category) validator = EnumAttributeValidator.new('SLOCorrectionCategory', ['Scheduled Maintenance', 'Outside Business Hours', 'Deployment', 'Other']) unless validator.valid?(category) 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 44b52e67f7b..50a07797c66 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 @@ -104,6 +104,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SLOCorrectionType', ['correction']) unless validator.valid?(type) 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 d3bbe180310..e48a05d8e3f 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 @@ -148,6 +148,7 @@ def valid? # Custom attribute writer method with validation # @param category [Object] Object to be assigned + # @!visibility private def category=(category) validator = EnumAttributeValidator.new('SLOCorrectionCategory', ['Scheduled Maintenance', 'Outside Business Hours', 'Deployment', 'Other']) unless validator.valid?(category) 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 1ff9f94c7b9..59aff361fe5 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics.rb @@ -190,6 +190,7 @@ def valid? # Custom attribute writer method with validation # @param denominator [Object] Object to be assigned + # @!visibility private def denominator=(denominator) if @denominator.nil? fail ArgumentError, 'invalid value for "denominator", denominator cannot be nil.' @@ -199,6 +200,7 @@ def denominator=(denominator) # Custom attribute writer method with validation # @param interval [Object] Object to be assigned + # @!visibility private def interval=(interval) if @interval.nil? fail ArgumentError, 'invalid value for "interval", interval cannot be nil.' @@ -208,6 +210,7 @@ def interval=(interval) # Custom attribute writer method with validation # @param numerator [Object] Object to be assigned + # @!visibility private def numerator=(numerator) if @numerator.nil? fail ArgumentError, 'invalid value for "numerator", numerator cannot be nil.' @@ -217,6 +220,7 @@ def numerator=(numerator) # Custom attribute writer method with validation # @param query [Object] Object to be assigned + # @!visibility private def query=(query) if @query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' @@ -226,6 +230,7 @@ def query=(query) # Custom attribute writer method with validation # @param res_type [Object] Object to be assigned + # @!visibility private def res_type=(res_type) if @res_type.nil? fail ArgumentError, 'invalid value for "res_type", res_type cannot be nil.' @@ -235,6 +240,7 @@ def res_type=(res_type) # Custom attribute writer method with validation # @param resp_version [Object] Object to be assigned + # @!visibility private def resp_version=(resp_version) if @resp_version.nil? fail ArgumentError, 'invalid value for "resp_version", resp_version cannot be nil.' @@ -244,6 +250,7 @@ def resp_version=(resp_version) # Custom attribute writer method with validation # @param times [Object] Object to be assigned + # @!visibility private def times=(times) if @times.nil? fail ArgumentError, 'invalid value for "times", times cannot be nil.' 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 47de94dc74e..af21f543b9e 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,7 @@ def valid? # Custom attribute writer method with validation # @param count [Object] Object to be assigned + # @!visibility private def count=(count) if @count.nil? fail ArgumentError, 'invalid value for "count", count cannot be nil.' @@ -144,6 +145,7 @@ def count=(count) # Custom attribute writer method with validation # @param sum [Object] Object to be assigned + # @!visibility private def sum=(sum) if @sum.nil? fail ArgumentError, 'invalid value for "sum", sum cannot be nil.' @@ -153,6 +155,7 @@ def sum=(sum) # Custom attribute writer method with validation # @param values [Object] Object to be assigned + # @!visibility private def values=(values) if @values.nil? fail ArgumentError, 'invalid value for "values", values cannot be nil.' 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 e3c86780a98..32e8677f418 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 @@ -191,6 +191,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) unless validator.valid?(type) @@ -201,6 +202,7 @@ def type=(type) # Custom attribute writer method with validation # @param type_id [Object] Object to be assigned + # @!visibility private def type_id=(type_id) validator = EnumAttributeValidator.new('SLOTypeNumeric', [0, 1]) unless validator.valid?(type_id) 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 0d73f2dd958..5071c2d31ae 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 @@ -110,6 +110,7 @@ def valid? # Custom attribute writer method with validation # @param error_message [Object] Object to be assigned + # @!visibility private def error_message=(error_message) if @error_message.nil? fail ArgumentError, 'invalid value for "error_message", error_message cannot be nil.' @@ -119,6 +120,7 @@ def error_message=(error_message) # Custom attribute writer method with validation # @param error_type [Object] Object to be assigned + # @!visibility private def error_type=(error_type) if @error_type.nil? fail ArgumentError, 'invalid value for "error_type", error_type cannot be nil.' 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 458b6191727..0da0fc675a0 100644 --- a/lib/datadog_api_client/v1/models/slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_response_data.rb @@ -248,6 +248,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) unless validator.valid?(type) diff --git a/lib/datadog_api_client/v1/models/slo_threshold.rb b/lib/datadog_api_client/v1/models/slo_threshold.rb index 1b964c5d6cb..00bfffe168d 100644 --- a/lib/datadog_api_client/v1/models/slo_threshold.rb +++ b/lib/datadog_api_client/v1/models/slo_threshold.rb @@ -146,6 +146,7 @@ def valid? # Custom attribute writer method with validation # @param target [Object] Object to be assigned + # @!visibility private def target=(target) if @target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' @@ -155,6 +156,7 @@ def target=(target) # Custom attribute writer method with validation # @param timeframe [Object] Object to be assigned + # @!visibility private def timeframe=(timeframe) validator = EnumAttributeValidator.new('SLOTimeframe', ['7d', '30d', '90d', 'custom']) unless validator.valid?(timeframe) 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 ae9b06d3cca..2ddf7bfd7f0 100644 --- a/lib/datadog_api_client/v1/models/slo_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/slo_widget_definition.rb @@ -188,6 +188,7 @@ def valid? # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -198,6 +199,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SLOWidgetDefinitionType', ['slo']) unless validator.valid?(type) @@ -211,6 +213,7 @@ def type=(type) # Custom attribute writer method with validation # @param view_mode [Object] Object to be assigned + # @!visibility private def view_mode=(view_mode) validator = EnumAttributeValidator.new('WidgetViewMode', ['overall', 'component', 'both']) unless validator.valid?(view_mode) @@ -221,6 +224,7 @@ def view_mode=(view_mode) # Custom attribute writer method with validation # @param view_type [Object] Object to be assigned + # @!visibility private def view_type=(view_type) if @view_type.nil? fail ArgumentError, 'invalid value for "view_type", view_type cannot be nil.' 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 96baa09462a..cccfbbbb54c 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb @@ -183,6 +183,7 @@ def valid? # Custom attribute writer method with validation # @param requests [Object] Object to be assigned + # @!visibility private def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' @@ -195,6 +196,7 @@ def requests=(requests) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -205,6 +207,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SunburstWidgetDefinitionType', ['sunburst']) unless validator.valid?(type) 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 578ebc342ac..48de6282f47 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 @@ -115,6 +115,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SunburstWidgetLegendInlineAutomaticType', ['inline', 'automatic']) unless validator.valid?(type) 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 08f7b3d60cd..c7ea3ea4e60 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SunburstWidgetLegendTableType', ['table', 'none']) unless validator.valid?(type) 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 a1ecac6527d..1b7ae4181e2 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_request.rb @@ -205,6 +205,7 @@ def valid? # Custom attribute writer method with validation # @param response_format [Object] Object to be assigned + # @!visibility private def response_format=(response_format) validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) unless validator.valid?(response_format) diff --git a/lib/datadog_api_client/v1/models/synthetics_api_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_step.rb index 68ebde8095f..cad6becd175 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_step.rb @@ -179,6 +179,7 @@ def valid? # Custom attribute writer method with validation # @param assertions [Object] Object to be assigned + # @!visibility private def assertions=(assertions) if @assertions.nil? fail ArgumentError, 'invalid value for "assertions", assertions cannot be nil.' @@ -188,6 +189,7 @@ def assertions=(assertions) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -197,6 +199,7 @@ def name=(name) # Custom attribute writer method with validation # @param request [Object] Object to be assigned + # @!visibility private def request=(request) if @request.nil? fail ArgumentError, 'invalid value for "request", request cannot be nil.' @@ -206,6 +209,7 @@ def request=(request) # Custom attribute writer method with validation # @param subtype [Object] Object to be assigned + # @!visibility private def subtype=(subtype) validator = EnumAttributeValidator.new('SyntheticsAPIStepSubtype', ['http']) unless validator.valid?(subtype) 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 7d6f410d212..77d3aec2119 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test.rb @@ -211,6 +211,7 @@ def valid? # Custom attribute writer method with validation # @param config [Object] Object to be assigned + # @!visibility private def config=(config) if @config.nil? fail ArgumentError, 'invalid value for "config", config cannot be nil.' @@ -220,6 +221,7 @@ def config=(config) # Custom attribute writer method with validation # @param locations [Object] Object to be assigned + # @!visibility private def locations=(locations) if @locations.nil? fail ArgumentError, 'invalid value for "locations", locations cannot be nil.' @@ -229,6 +231,7 @@ def locations=(locations) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -238,6 +241,7 @@ def name=(name) # Custom attribute writer method with validation # @param options [Object] Object to be assigned + # @!visibility private def options=(options) if @options.nil? fail ArgumentError, 'invalid value for "options", options cannot be nil.' @@ -247,6 +251,7 @@ def options=(options) # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) unless validator.valid?(status) @@ -257,6 +262,7 @@ def status=(status) # Custom attribute writer method with validation # @param subtype [Object] Object to be assigned + # @!visibility private def subtype=(subtype) validator = EnumAttributeValidator.new('SyntheticsTestDetailsSubType', ['http', 'ssl', 'tcp', 'dns', 'multi', 'icmp', 'udp', 'websocket']) unless validator.valid?(subtype) @@ -267,6 +273,7 @@ def subtype=(subtype) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SyntheticsAPITestType', ['api']) unless validator.valid?(type) 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 5d5ece4fd16..2de718ad705 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 @@ -166,6 +166,7 @@ def valid? # Custom attribute writer method with validation # @param event_type [Object] Object to be assigned + # @!visibility private def event_type=(event_type) validator = EnumAttributeValidator.new('SyntheticsTestProcessStatus', ['not_scheduled', 'scheduled', 'started', 'finished', 'finished_with_error']) unless validator.valid?(event_type) 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 01c3c20b092..0e040e1bc8e 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 @@ -102,6 +102,7 @@ def valid? # Custom attribute writer method with validation # @param code [Object] Object to be assigned + # @!visibility private def code=(code) validator = EnumAttributeValidator.new('SyntheticsApiTestFailureCode', ['BODY_TOO_LARGE', 'DENIED', 'TOO_MANY_REDIRECTS', 'AUTHENTICATION_ERROR', 'DECRYPTION', 'INVALID_CHAR_IN_HEADER', 'HEADER_TOO_LARGE', 'HEADERS_INCOMPATIBLE_CONTENT_LENGTH', 'INVALID_REQUEST', 'REQUIRES_UPDATE', 'UNESCAPED_CHARACTERS_IN_REQUEST_PATH', 'MALFORMED_RESPONSE', 'INCORRECT_ASSERTION', 'CONNREFUSED', 'CONNRESET', 'DNS', 'HOSTUNREACH', 'NETUNREACH', 'TIMEOUT', 'SSL', 'OCSP', 'INVALID_TEST', 'TUNNEL', 'WEBSOCKET', 'UNKNOWN', 'INTERNAL_ERROR']) unless validator.valid?(code) 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 ac6c731f69f..4f4c368d858 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 @@ -150,6 +150,7 @@ def valid? # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) unless validator.valid?(status) 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 adf839dcf89..b18bf29120f 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param config [Object] Object to be assigned + # @!visibility private def config=(config) if @config.nil? fail ArgumentError, 'invalid value for "config", config cannot be nil.' 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 41c6d5425dc..7de5a49cd9f 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 @@ -132,6 +132,7 @@ def valid? # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) unless validator.valid?(status) 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 628baf94f63..f0ed6f96d97 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 @@ -128,6 +128,7 @@ def valid? # Custom attribute writer method with validation # @param operator [Object] Object to be assigned + # @!visibility private def operator=(operator) validator = EnumAttributeValidator.new('SyntheticsAssertionJSONPathOperator', ['validatesJSONPath']) unless validator.valid?(operator) @@ -141,6 +142,7 @@ def operator=(operator) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SyntheticsAssertionType', ['body', 'header', 'statusCode', 'certificate', 'responseTime', 'property', 'recordEvery', 'recordSome', 'tlsVersion', 'minTlsVersion', 'latency', 'packetLossPercentage', 'packetsReceived', 'networkHop', 'receivedMessage']) unless validator.valid?(type) 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 df16395e72d..2a5c30ffdb5 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb @@ -132,6 +132,7 @@ def valid? # Custom attribute writer method with validation # @param operator [Object] Object to be assigned + # @!visibility private def operator=(operator) validator = EnumAttributeValidator.new('SyntheticsAssertionOperator', ['contains', 'doesNotContain', 'is', 'isNot', 'lessThan', 'lessThanOrEqual', 'moreThan', 'moreThanOrEqual', 'matches', 'doesNotMatch', 'validates', 'isInMoreThan', 'isInLessThan']) unless validator.valid?(operator) @@ -145,6 +146,7 @@ def operator=(operator) # Custom attribute writer method with validation # @param target [Object] Object to be assigned + # @!visibility private def target=(target) if @target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' @@ -154,6 +156,7 @@ def target=(target) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SyntheticsAssertionType', ['body', 'header', 'statusCode', 'certificate', 'responseTime', 'property', 'recordEvery', 'recordSome', 'tlsVersion', 'minTlsVersion', 'latency', 'packetLossPercentage', 'packetsReceived', 'networkHop', 'receivedMessage']) unless validator.valid?(type) 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 675357de521..030e4862cdd 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 @@ -135,6 +135,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SyntheticsBasicAuthNTLMType', ['ntlm']) unless validator.valid?(type) 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 97cb8bd66c2..875793b2cad 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 @@ -152,6 +152,7 @@ def valid? # Custom attribute writer method with validation # @param access_key [Object] Object to be assigned + # @!visibility private def access_key=(access_key) if @access_key.nil? fail ArgumentError, 'invalid value for "access_key", access_key cannot be nil.' @@ -161,6 +162,7 @@ def access_key=(access_key) # Custom attribute writer method with validation # @param secret_key [Object] Object to be assigned + # @!visibility private def secret_key=(secret_key) if @secret_key.nil? fail ArgumentError, 'invalid value for "secret_key", secret_key cannot be nil.' @@ -170,6 +172,7 @@ def secret_key=(secret_key) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SyntheticsBasicAuthSigv4Type', ['sigv4']) unless validator.valid?(type) 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 c8a59e38483..0a5ab759625 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 @@ -125,6 +125,7 @@ def valid? # Custom attribute writer method with validation # @param password [Object] Object to be assigned + # @!visibility private def password=(password) if @password.nil? fail ArgumentError, 'invalid value for "password", password cannot be nil.' @@ -134,6 +135,7 @@ def password=(password) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SyntheticsBasicAuthWebType', ['web']) unless validator.valid?(type) @@ -147,6 +149,7 @@ def type=(type) # Custom attribute writer method with validation # @param username [Object] Object to be assigned + # @!visibility private def username=(username) if @username.nil? fail ArgumentError, 'invalid value for "username", username cannot be nil.' 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 155de247a78..1f4cd08851c 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 @@ -113,6 +113,7 @@ def valid? # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('SyntheticsStatus', ['passed', 'skipped', 'failed']) unless validator.valid?(status) 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 6ebf8b67798..e97e72908c0 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb @@ -174,6 +174,7 @@ def valid? # Custom attribute writer method with validation # @param device [Object] Object to be assigned + # @!visibility private def device=(device) validator = EnumAttributeValidator.new('SyntheticsDeviceID', ['laptop_large', 'tablet', 'mobile_small', 'chrome.laptop_large', 'chrome.tablet', 'chrome.mobile_small', 'firefox.laptop_large', 'firefox.tablet', 'firefox.mobile_small', 'edge.laptop_large', 'edge.tablet', 'edge.mobile_small']) unless validator.valid?(device) @@ -184,6 +185,7 @@ def device=(device) # Custom attribute writer method with validation # @param execution_rule [Object] Object to be assigned + # @!visibility private def execution_rule=(execution_rule) validator = EnumAttributeValidator.new('SyntheticsTestExecutionRule', ['blocking', 'non_blocking', 'skipped']) unless validator.valid?(execution_rule) @@ -194,6 +196,7 @@ def execution_rule=(execution_rule) # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('SyntheticsStatus', ['passed', 'skipped', 'failed']) unless validator.valid?(status) @@ -204,6 +207,7 @@ def status=(status) # Custom attribute writer method with validation # @param test_type [Object] Object to be assigned + # @!visibility private def test_type=(test_type) validator = EnumAttributeValidator.new('SyntheticsTestDetailsType', ['api', 'browser']) unless validator.valid?(test_type) 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 5465c7f4d3a..d5881eaf387 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,7 @@ def valid? # Custom attribute writer method with validation # @param description [Object] Object to be assigned + # @!visibility private def description=(description) if @description.nil? fail ArgumentError, 'invalid value for "description", description cannot be nil.' @@ -141,6 +142,7 @@ def description=(description) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -150,6 +152,7 @@ def name=(name) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SyntheticsBrowserErrorType', ['network', 'js']) unless validator.valid?(type) 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 071ef51d7ea..714aeceb399 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb @@ -212,6 +212,7 @@ def valid? # Custom attribute writer method with validation # @param config [Object] Object to be assigned + # @!visibility private def config=(config) if @config.nil? fail ArgumentError, 'invalid value for "config", config cannot be nil.' @@ -221,6 +222,7 @@ def config=(config) # Custom attribute writer method with validation # @param locations [Object] Object to be assigned + # @!visibility private def locations=(locations) if @locations.nil? fail ArgumentError, 'invalid value for "locations", locations cannot be nil.' @@ -230,6 +232,7 @@ def locations=(locations) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -239,6 +242,7 @@ def name=(name) # Custom attribute writer method with validation # @param options [Object] Object to be assigned + # @!visibility private def options=(options) if @options.nil? fail ArgumentError, 'invalid value for "options", options cannot be nil.' @@ -248,6 +252,7 @@ def options=(options) # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) unless validator.valid?(status) @@ -258,6 +263,7 @@ def status=(status) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SyntheticsBrowserTestType', ['browser']) unless validator.valid?(type) 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 620f854c734..117570d7ca6 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 @@ -145,6 +145,7 @@ def valid? # Custom attribute writer method with validation # @param assertions [Object] Object to be assigned + # @!visibility private def assertions=(assertions) if @assertions.nil? fail ArgumentError, 'invalid value for "assertions", assertions cannot be nil.' @@ -154,6 +155,7 @@ def assertions=(assertions) # Custom attribute writer method with validation # @param request [Object] Object to be assigned + # @!visibility private def request=(request) if @request.nil? fail ArgumentError, 'invalid value for "request", request cannot be nil.' 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 676bf08f318..05d16468678 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 @@ -102,6 +102,7 @@ def valid? # Custom attribute writer method with validation # @param code [Object] Object to be assigned + # @!visibility private def code=(code) validator = EnumAttributeValidator.new('SyntheticsBrowserTestFailureCode', ['API_REQUEST_FAILURE', 'ASSERTION_FAILURE', 'DOWNLOAD_FILE_TOO_LARGE', 'ELEMENT_NOT_INTERACTABLE', 'EMAIL_VARIABLE_NOT_DEFINED', 'EVALUATE_JAVASCRIPT', 'EVALUATE_JAVASCRIPT_CONTEXT', 'EXTRACT_VARIABLE', 'FORBIDDEN_URL', 'FRAME_DETACHED', 'INCONSISTENCIES', 'INTERNAL_ERROR', 'INVALID_TYPE_TEXT_DELAY', 'INVALID_URL', 'INVALID_VARIABLE_PATTERN', 'INVISIBLE_ELEMENT', 'LOCATE_ELEMENT', 'NAVIGATE_TO_LINK', 'OPEN_URL', 'PRESS_KEY', 'SERVER_CERTIFICATE', 'SELECT_OPTION', 'STEP_TIMEOUT', 'SUB_TEST_NOT_PASSED', 'TEST_TIMEOUT', 'TOO_MANY_HTTP_REQUESTS', 'UNAVAILABLE_BROWSER', 'UNKNOWN', 'UNSUPPORTED_AUTH_SCHEMA', 'UPLOAD_FILES_ELEMENT_TYPE', 'UPLOAD_FILES_DIALOG', 'UPLOAD_FILES_DYNAMIC_ELEMENT', 'UPLOAD_FILES_NAME']) unless validator.valid?(code) 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 2d7be43327d..6bcbcf8b1ca 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 @@ -150,6 +150,7 @@ def valid? # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) unless validator.valid?(status) 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 a305a27378f..0258c00a3cd 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param config [Object] Object to be assigned + # @!visibility private def config=(config) if @config.nil? fail ArgumentError, 'invalid value for "config", config cannot be nil.' 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 f62a2bd7b29..94f17cdfc1c 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 @@ -132,6 +132,7 @@ def valid? # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) unless validator.valid?(status) 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 360db25b7aa..4551ab68041 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb @@ -138,6 +138,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -147,6 +148,7 @@ def name=(name) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SyntheticsBrowserVariableType', ['element', 'email', 'global', 'javascript', 'text']) unless validator.valid?(type) 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 fc1b30cb6b8..52c0b7e4691 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_test.rb @@ -218,6 +218,7 @@ def valid? # Custom attribute writer method with validation # @param public_id [Object] Object to be assigned + # @!visibility private def public_id=(public_id) if @public_id.nil? fail ArgumentError, 'invalid value for "public_id", public_id cannot be nil.' 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 2a96af9f3e6..d436e1ca857 100644 --- a/lib/datadog_api_client/v1/models/synthetics_config_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_config_variable.rb @@ -137,6 +137,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -146,6 +147,7 @@ def name=(name) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SyntheticsConfigVariableType', ['global', 'text']) unless validator.valid?(type) diff --git a/lib/datadog_api_client/v1/models/synthetics_device.rb b/lib/datadog_api_client/v1/models/synthetics_device.rb index 30d1737e68a..eafd4292ca3 100644 --- a/lib/datadog_api_client/v1/models/synthetics_device.rb +++ b/lib/datadog_api_client/v1/models/synthetics_device.rb @@ -145,6 +145,7 @@ def valid? # Custom attribute writer method with validation # @param height [Object] Object to be assigned + # @!visibility private def height=(height) if @height.nil? fail ArgumentError, 'invalid value for "height", height cannot be nil.' @@ -154,6 +155,7 @@ def height=(height) # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) validator = EnumAttributeValidator.new('SyntheticsDeviceID', ['laptop_large', 'tablet', 'mobile_small', 'chrome.laptop_large', 'chrome.tablet', 'chrome.mobile_small', 'firefox.laptop_large', 'firefox.tablet', 'firefox.mobile_small', 'edge.laptop_large', 'edge.tablet', 'edge.mobile_small']) unless validator.valid?(id) @@ -167,6 +169,7 @@ def id=(id) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -176,6 +179,7 @@ def name=(name) # Custom attribute writer method with validation # @param width [Object] Object to be assigned + # @!visibility private def width=(width) if @width.nil? fail ArgumentError, 'invalid value for "width", width cannot be nil.' 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 5ef56e42833..df76ad706e5 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable.rb @@ -174,6 +174,7 @@ def valid? # Custom attribute writer method with validation # @param description [Object] Object to be assigned + # @!visibility private def description=(description) if @description.nil? fail ArgumentError, 'invalid value for "description", description cannot be nil.' @@ -183,6 +184,7 @@ def description=(description) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -192,6 +194,7 @@ def name=(name) # Custom attribute writer method with validation # @param tags [Object] Object to be assigned + # @!visibility private def tags=(tags) if @tags.nil? fail ArgumentError, 'invalid value for "tags", tags cannot be nil.' @@ -201,6 +204,7 @@ def tags=(tags) # Custom attribute writer method with validation # @param value [Object] Object to be assigned + # @!visibility private def value=(value) if @value.nil? fail ArgumentError, 'invalid value for "value", value cannot be nil.' 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 4009198c976..ae46cb89409 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 @@ -119,6 +119,7 @@ def valid? # Custom attribute writer method with validation # @param parser [Object] Object to be assigned + # @!visibility private def parser=(parser) if @parser.nil? fail ArgumentError, 'invalid value for "parser", parser cannot be nil.' @@ -128,6 +129,7 @@ def parser=(parser) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SyntheticsGlobalVariableParseTestOptionsType', ['http_body', 'http_header']) unless validator.valid?(type) 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 adbb47fe305..4449de204b3 100644 --- a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb @@ -120,6 +120,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SyntheticsGlobalVariableParseTestOptionsType', ['http_body', 'http_header']) unless validator.valid?(type) 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 e1c7eb33ff0..6bb90239f9c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location.rb @@ -143,6 +143,7 @@ def valid? # Custom attribute writer method with validation # @param description [Object] Object to be assigned + # @!visibility private def description=(description) if @description.nil? fail ArgumentError, 'invalid value for "description", description cannot be nil.' @@ -152,6 +153,7 @@ def description=(description) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -161,6 +163,7 @@ def name=(name) # Custom attribute writer method with validation # @param tags [Object] Object to be assigned + # @!visibility private def tags=(tags) if @tags.nil? fail ArgumentError, 'invalid value for "tags", tags cannot be nil.' diff --git a/lib/datadog_api_client/v1/models/synthetics_step.rb b/lib/datadog_api_client/v1/models/synthetics_step.rb index 4967f8138c0..5125a5be78c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step.rb @@ -129,6 +129,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SyntheticsStepType', ['assertCurrentUrl', 'assertElementAttribute', 'assertElementContent', 'assertElementPresent', 'assertEmail', 'assertFileDownload', 'assertFromJavascript', 'assertPageContains', 'assertPageLacks', 'click', 'extractFromJavascript', 'extractVariable', 'goToEmailLink', 'goToUrl', 'goToUrlAndMeasureTti', 'hover', 'playSubTest', 'pressKey', 'refresh', 'runApiTest', 'scroll', 'selectOption', 'typeText', 'uploadFiles', 'wait']) unless validator.valid?(type) 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 a030068a5c7..71e3dd49694 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_detail.rb @@ -246,6 +246,7 @@ def valid? # Custom attribute writer method with validation # @param check_type [Object] Object to be assigned + # @!visibility private def check_type=(check_type) validator = EnumAttributeValidator.new('SyntheticsCheckType', ['equals', 'notEquals', 'contains', 'notContains', 'startsWith', 'notStartsWith', 'greater', 'lower', 'greaterEquals', 'lowerEquals', 'matchRegex', 'between', 'isEmpty', 'notIsEmpty']) unless validator.valid?(check_type) @@ -256,6 +257,7 @@ def check_type=(check_type) # Custom attribute writer method with validation # @param playing_tab [Object] Object to be assigned + # @!visibility private def playing_tab=(playing_tab) validator = EnumAttributeValidator.new('SyntheticsPlayingTab', [-1, 0, 1, 2, 3]) unless validator.valid?(playing_tab) @@ -266,6 +268,7 @@ def playing_tab=(playing_tab) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SyntheticsStepType', ['assertCurrentUrl', 'assertElementAttribute', 'assertElementContent', 'assertElementPresent', 'assertEmail', 'assertFileDownload', 'assertFromJavascript', 'assertPageContains', 'assertPageLacks', 'click', 'extractFromJavascript', 'extractVariable', 'goToEmailLink', 'goToUrl', 'goToUrlAndMeasureTti', 'hover', 'playSubTest', 'pressKey', 'refresh', 'runApiTest', 'scroll', 'selectOption', 'typeText', 'uploadFiles', 'wait']) unless validator.valid?(type) 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 abe331038a3..d20a330f395 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 @@ -110,6 +110,7 @@ def valid? # Custom attribute writer method with validation # @param message [Object] Object to be assigned + # @!visibility private def message=(message) if @message.nil? fail ArgumentError, 'invalid value for "message", message cannot be nil.' @@ -119,6 +120,7 @@ def message=(message) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SyntheticsWarningType', ['user_locator']) unless validator.valid?(type) 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 3f79d0a2e2c..4a6dd28dde6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details.rb @@ -209,6 +209,7 @@ def valid? # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) unless validator.valid?(status) @@ -219,6 +220,7 @@ def status=(status) # Custom attribute writer method with validation # @param subtype [Object] Object to be assigned + # @!visibility private def subtype=(subtype) validator = EnumAttributeValidator.new('SyntheticsTestDetailsSubType', ['http', 'ssl', 'tcp', 'dns', 'multi', 'icmp', 'udp', 'websocket']) unless validator.valid?(subtype) @@ -229,6 +231,7 @@ def subtype=(subtype) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SyntheticsTestDetailsType', ['api', 'browser']) unless validator.valid?(type) 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 88bd9fb2f31..de9c55159a5 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options.rb @@ -222,6 +222,7 @@ def valid? # Custom attribute writer method with validation # @param monitor_priority [Object] Object to be assigned + # @!visibility private def monitor_priority=(monitor_priority) if !monitor_priority.nil? && monitor_priority > 5 fail ArgumentError, 'invalid value for "monitor_priority", must be smaller than or equal to 5.' @@ -234,6 +235,7 @@ def monitor_priority=(monitor_priority) # Custom attribute writer method with validation # @param tick_every [Object] Object to be assigned + # @!visibility private def tick_every=(tick_every) if !tick_every.nil? && tick_every > 604800 fail ArgumentError, 'invalid value for "tick_every", must be smaller than or equal to 604800.' 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 0d4e2c7aa70..7ea61c58569 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 @@ -103,6 +103,7 @@ def valid? # Custom attribute writer method with validation # @param renotify_interval [Object] Object to be assigned + # @!visibility private def renotify_interval=(renotify_interval) if !renotify_interval.nil? && renotify_interval > 1440 fail ArgumentError, 'invalid value for "renotify_interval", must be smaller than or equal to 1440.' 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 b385c57c08b..9fe2b239a67 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request.rb @@ -282,6 +282,7 @@ def valid? # Custom attribute writer method with validation # @param dns_server_port [Object] Object to be assigned + # @!visibility private def dns_server_port=(dns_server_port) if !dns_server_port.nil? && dns_server_port > 65535 fail ArgumentError, 'invalid value for "dns_server_port", must be smaller than or equal to 65535.' @@ -294,6 +295,7 @@ def dns_server_port=(dns_server_port) # Custom attribute writer method with validation # @param method [Object] Object to be assigned + # @!visibility private def method=(method) validator = EnumAttributeValidator.new('HTTPMethod', ['GET', 'POST', 'PATCH', 'PUT', 'DELETE', 'HEAD', 'OPTIONS']) unless validator.valid?(method) @@ -304,6 +306,7 @@ def method=(method) # Custom attribute writer method with validation # @param number_of_packets [Object] Object to be assigned + # @!visibility private def number_of_packets=(number_of_packets) if !number_of_packets.nil? && number_of_packets > 10 fail ArgumentError, 'invalid value for "number_of_packets", must be smaller than or equal to 10.' 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 ffe650a2241..cbc4a408333 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 @@ -106,6 +106,7 @@ def valid? # Custom attribute writer method with validation # @param url [Object] Object to be assigned + # @!visibility private def url=(url) if @url.nil? fail ArgumentError, 'invalid value for "url", url cannot be nil.' 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 cb2508366c4..f61ae7f289e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb @@ -99,6 +99,7 @@ def valid? # Custom attribute writer method with validation # @param tests [Object] Object to be assigned + # @!visibility private def tests=(tests) if @tests.nil? fail ArgumentError, 'invalid value for "tests", tests cannot be nil.' 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 41bdf5d1384..c8d9f646d58 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 @@ -120,6 +120,7 @@ def valid? # Custom attribute writer method with validation # @param device [Object] Object to be assigned + # @!visibility private def device=(device) validator = EnumAttributeValidator.new('SyntheticsDeviceID', ['laptop_large', 'tablet', 'mobile_small', 'chrome.laptop_large', 'chrome.tablet', 'chrome.mobile_small', 'firefox.laptop_large', 'firefox.tablet', 'firefox.mobile_small', 'edge.laptop_large', 'edge.tablet', 'edge.mobile_small']) unless validator.valid?(device) 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 c4abf3070a4..6459099ff12 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb @@ -106,6 +106,7 @@ def valid? # Custom attribute writer method with validation # @param public_id [Object] Object to be assigned + # @!visibility private def public_id=(public_id) if @public_id.nil? fail ArgumentError, 'invalid value for "public_id", public_id cannot be nil.' 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 7e7bde69d4d..d092f8823c2 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 @@ -94,6 +94,7 @@ def valid? # Custom attribute writer method with validation # @param new_status [Object] Object to be assigned + # @!visibility private def new_status=(new_status) validator = EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) unless validator.valid?(new_status) 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 9388700146f..003811302ac 100644 --- a/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb +++ b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb @@ -106,6 +106,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SyntheticsGlobalVariableParserType', ['raw', 'json_path', 'regex', 'x_path']) unless validator.valid?(type) 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 aa20fed364d..fee0c274895 100644 --- a/lib/datadog_api_client/v1/models/table_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/table_widget_definition.rb @@ -170,6 +170,7 @@ def valid? # Custom attribute writer method with validation # @param has_search_bar [Object] Object to be assigned + # @!visibility private def has_search_bar=(has_search_bar) validator = EnumAttributeValidator.new('TableWidgetHasSearchBar', ['always', 'never', 'auto']) unless validator.valid?(has_search_bar) @@ -180,6 +181,7 @@ def has_search_bar=(has_search_bar) # Custom attribute writer method with validation # @param requests [Object] Object to be assigned + # @!visibility private def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' @@ -189,6 +191,7 @@ def requests=(requests) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -199,6 +202,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('TableWidgetDefinitionType', ['query_table']) unless validator.valid?(type) 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 814ccb537fd..c35e09fc4e6 100644 --- a/lib/datadog_api_client/v1/models/table_widget_request.rb +++ b/lib/datadog_api_client/v1/models/table_widget_request.rb @@ -263,6 +263,7 @@ def valid? # Custom attribute writer method with validation # @param aggregator [Object] Object to be assigned + # @!visibility private def aggregator=(aggregator) validator = EnumAttributeValidator.new('WidgetAggregator', ['avg', 'last', 'max', 'min', 'sum', 'percentile']) unless validator.valid?(aggregator) @@ -273,6 +274,7 @@ def aggregator=(aggregator) # Custom attribute writer method with validation # @param order [Object] Object to be assigned + # @!visibility private def order=(order) validator = EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) unless validator.valid?(order) @@ -283,6 +285,7 @@ def order=(order) # Custom attribute writer method with validation # @param response_format [Object] Object to be assigned + # @!visibility private def response_format=(response_format) validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) unless validator.valid?(response_format) 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 c543c3bf6a2..90d268d24b6 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb @@ -243,6 +243,7 @@ def valid? # Custom attribute writer method with validation # @param legend_layout [Object] Object to be assigned + # @!visibility private def legend_layout=(legend_layout) validator = EnumAttributeValidator.new('TimeseriesWidgetLegendLayout', ['auto', 'horizontal', 'vertical']) unless validator.valid?(legend_layout) @@ -253,6 +254,7 @@ def legend_layout=(legend_layout) # Custom attribute writer method with validation # @param requests [Object] Object to be assigned + # @!visibility private def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' @@ -265,6 +267,7 @@ def requests=(requests) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -275,6 +278,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('TimeseriesWidgetDefinitionType', ['timeseries']) unless validator.valid?(type) 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 0e4f3f8a0ac..fc7bc7d61de 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 @@ -106,6 +106,7 @@ def valid? # Custom attribute writer method with validation # @param expression [Object] Object to be assigned + # @!visibility private def expression=(expression) if @expression.nil? fail ArgumentError, 'invalid value for "expression", expression cannot be nil.' 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 7864f98a527..1b887031630 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb @@ -243,6 +243,7 @@ def valid? # Custom attribute writer method with validation # @param display_type [Object] Object to be assigned + # @!visibility private def display_type=(display_type) validator = EnumAttributeValidator.new('WidgetDisplayType', ['area', 'bars', 'line']) unless validator.valid?(display_type) @@ -253,6 +254,7 @@ def display_type=(display_type) # Custom attribute writer method with validation # @param response_format [Object] Object to be assigned + # @!visibility private def response_format=(response_format) validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) unless validator.valid?(response_format) 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 4088a58b8b8..b5301ed8f02 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,7 @@ def valid? # Custom attribute writer method with validation # @param requests [Object] Object to be assigned + # @!visibility private def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' @@ -170,6 +171,7 @@ def requests=(requests) # Custom attribute writer method with validation # @param title_align [Object] Object to be assigned + # @!visibility private def title_align=(title_align) validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) @@ -180,6 +182,7 @@ def title_align=(title_align) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('ToplistWidgetDefinitionType', ['toplist']) unless validator.valid?(type) 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 3a6c2d4cb5d..fe4548fe088 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_request.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_request.rb @@ -229,6 +229,7 @@ def valid? # Custom attribute writer method with validation # @param conditional_formats [Object] Object to be assigned + # @!visibility private def conditional_formats=(conditional_formats) if !conditional_formats.nil? && conditional_formats.length < 1 fail ArgumentError, 'invalid value for "conditional_formats", number of items must be greater than or equal to 1.' @@ -238,6 +239,7 @@ def conditional_formats=(conditional_formats) # Custom attribute writer method with validation # @param response_format [Object] Object to be assigned + # @!visibility private def response_format=(response_format) validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) unless validator.valid?(response_format) 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 056121c22ec..ab438971be3 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 @@ -160,6 +160,7 @@ def valid? # Custom attribute writer method with validation # @param color_by [Object] Object to be assigned + # @!visibility private def color_by=(color_by) validator = EnumAttributeValidator.new('TreeMapColorBy', ['user']) unless validator.valid?(color_by) @@ -170,6 +171,7 @@ def color_by=(color_by) # Custom attribute writer method with validation # @param group_by [Object] Object to be assigned + # @!visibility private def group_by=(group_by) validator = EnumAttributeValidator.new('TreeMapGroupBy', ['user', 'family', 'process']) unless validator.valid?(group_by) @@ -180,6 +182,7 @@ def group_by=(group_by) # Custom attribute writer method with validation # @param requests [Object] Object to be assigned + # @!visibility private def requests=(requests) if @requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' @@ -195,6 +198,7 @@ def requests=(requests) # Custom attribute writer method with validation # @param size_by [Object] Object to be assigned + # @!visibility private def size_by=(size_by) validator = EnumAttributeValidator.new('TreeMapSizeBy', ['pct_cpu', 'pct_mem']) unless validator.valid?(size_by) @@ -205,6 +209,7 @@ def size_by=(size_by) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('TreeMapWidgetDefinitionType', ['treemap']) unless validator.valid?(type) 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 9c9c28f3db0..950b28e7e41 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 @@ -124,6 +124,7 @@ def valid? # Custom attribute writer method with validation # @param response_format [Object] Object to be assigned + # @!visibility private def response_format=(response_format) validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) unless validator.valid?(response_format) 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 55cb14045f7..91e8a3e3505 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 @@ -113,6 +113,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('UsageReportsType', ['reports']) unless validator.valid?(type) 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 37e321ac9d7..fd512423735 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 @@ -113,6 +113,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('UsageReportsType', ['reports']) unless validator.valid?(type) 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 d084a83e5a9..764b6f3891f 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 @@ -120,6 +120,7 @@ def valid? # Custom attribute writer method with validation # @param metric_category [Object] Object to be assigned + # @!visibility private def metric_category=(metric_category) validator = EnumAttributeValidator.new('UsageMetricCategory', ['standard', 'custom']) unless validator.valid?(metric_category) diff --git a/lib/datadog_api_client/v1/models/user.rb b/lib/datadog_api_client/v1/models/user.rb index f360d6d07dc..ed03bf40564 100644 --- a/lib/datadog_api_client/v1/models/user.rb +++ b/lib/datadog_api_client/v1/models/user.rb @@ -149,6 +149,7 @@ def valid? # Custom attribute writer method with validation # @param access_role [Object] Object to be assigned + # @!visibility private def access_role=(access_role) validator = EnumAttributeValidator.new('AccessRole', ['st', 'adm', 'ro', 'ERROR']) unless validator.valid?(access_role) diff --git a/lib/datadog_api_client/v1/models/webhooks_integration.rb b/lib/datadog_api_client/v1/models/webhooks_integration.rb index 43b73554881..232f13cc6c2 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration.rb @@ -147,6 +147,7 @@ def valid? # Custom attribute writer method with validation # @param encode_as [Object] Object to be assigned + # @!visibility private def encode_as=(encode_as) validator = EnumAttributeValidator.new('WebhooksIntegrationEncoding', ['json', 'form']) unless validator.valid?(encode_as) @@ -157,6 +158,7 @@ def encode_as=(encode_as) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -166,6 +168,7 @@ def name=(name) # Custom attribute writer method with validation # @param url [Object] Object to be assigned + # @!visibility private def url=(url) if @url.nil? fail ArgumentError, 'invalid value for "url", url cannot be nil.' 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 808b2bbcdd2..2232315bbbb 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,7 @@ def valid? # Custom attribute writer method with validation # @param is_secret [Object] Object to be assigned + # @!visibility private def is_secret=(is_secret) if @is_secret.nil? fail ArgumentError, 'invalid value for "is_secret", is_secret cannot be nil.' @@ -133,6 +134,7 @@ def is_secret=(is_secret) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -142,6 +144,7 @@ def name=(name) # Custom attribute writer method with validation # @param value [Object] Object to be assigned + # @!visibility private def value=(value) if @value.nil? fail ArgumentError, 'invalid value for "value", value cannot be nil.' 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 63b406f5967..f9fca1ac16e 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 @@ -120,6 +120,7 @@ def valid? # Custom attribute writer method with validation # @param is_secret [Object] Object to be assigned + # @!visibility private def is_secret=(is_secret) if @is_secret.nil? fail ArgumentError, 'invalid value for "is_secret", is_secret cannot be nil.' @@ -129,6 +130,7 @@ def is_secret=(is_secret) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' 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 827edfaf87c..9df35fb7681 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 @@ -140,6 +140,7 @@ def valid? # Custom attribute writer method with validation # @param encode_as [Object] Object to be assigned + # @!visibility private def encode_as=(encode_as) validator = EnumAttributeValidator.new('WebhooksIntegrationEncoding', ['json', 'form']) unless validator.valid?(encode_as) diff --git a/lib/datadog_api_client/v1/models/widget.rb b/lib/datadog_api_client/v1/models/widget.rb index 3abcb355514..9ac46671696 100644 --- a/lib/datadog_api_client/v1/models/widget.rb +++ b/lib/datadog_api_client/v1/models/widget.rb @@ -120,6 +120,7 @@ def valid? # Custom attribute writer method with validation # @param definition [Object] Object to be assigned + # @!visibility private def definition=(definition) if @definition.nil? fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' 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 4649e1b537e..adbca2c0633 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,7 @@ def valid? # Custom attribute writer method with validation # @param comparator [Object] Object to be assigned + # @!visibility private def comparator=(comparator) validator = EnumAttributeValidator.new('WidgetComparator', ['>', '>=', '<', '<=']) unless validator.valid?(comparator) @@ -190,6 +191,7 @@ def comparator=(comparator) # Custom attribute writer method with validation # @param palette [Object] Object to be assigned + # @!visibility private def palette=(palette) validator = EnumAttributeValidator.new('WidgetPalette', ['blue', 'custom_bg', 'custom_image', 'custom_text', 'gray_on_white', 'grey', 'green', 'orange', 'red', 'red_on_white', 'white_on_gray', 'white_on_green', 'green_on_white', 'white_on_red', 'white_on_yellow', 'yellow_on_white', 'black_on_light_yellow', 'black_on_light_green', 'black_on_light_red']) unless validator.valid?(palette) @@ -203,6 +205,7 @@ def palette=(palette) # Custom attribute writer method with validation # @param value [Object] Object to be assigned + # @!visibility private def value=(value) if @value.nil? fail ArgumentError, 'invalid value for "value", value cannot be nil.' diff --git a/lib/datadog_api_client/v1/models/widget_event.rb b/lib/datadog_api_client/v1/models/widget_event.rb index c0481be0fe2..f3089fab6fe 100644 --- a/lib/datadog_api_client/v1/models/widget_event.rb +++ b/lib/datadog_api_client/v1/models/widget_event.rb @@ -109,6 +109,7 @@ def valid? # Custom attribute writer method with validation # @param q [Object] Object to be assigned + # @!visibility private def q=(q) if @q.nil? fail ArgumentError, 'invalid value for "q", q cannot be nil.' 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 1ed90d4e785..82bfaf07251 100644 --- a/lib/datadog_api_client/v1/models/widget_field_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_field_sort.rb @@ -110,6 +110,7 @@ def valid? # Custom attribute writer method with validation # @param column [Object] Object to be assigned + # @!visibility private def column=(column) if @column.nil? fail ArgumentError, 'invalid value for "column", column cannot be nil.' @@ -119,6 +120,7 @@ def column=(column) # Custom attribute writer method with validation # @param order [Object] Object to be assigned + # @!visibility private def order=(order) validator = EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) unless validator.valid?(order) diff --git a/lib/datadog_api_client/v1/models/widget_formula.rb b/lib/datadog_api_client/v1/models/widget_formula.rb index 3ac0749e9db..1fc89240cac 100644 --- a/lib/datadog_api_client/v1/models/widget_formula.rb +++ b/lib/datadog_api_client/v1/models/widget_formula.rb @@ -135,6 +135,7 @@ def valid? # Custom attribute writer method with validation # @param cell_display_mode [Object] Object to be assigned + # @!visibility private def cell_display_mode=(cell_display_mode) validator = EnumAttributeValidator.new('TableWidgetCellDisplayMode', ['number', 'bar']) unless validator.valid?(cell_display_mode) @@ -145,6 +146,7 @@ def cell_display_mode=(cell_display_mode) # Custom attribute writer method with validation # @param formula [Object] Object to be assigned + # @!visibility private def formula=(formula) if @formula.nil? fail ArgumentError, 'invalid value for "formula", formula cannot be nil.' 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 38140d60a86..89bb93057c4 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_limit.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_limit.rb @@ -104,6 +104,7 @@ def valid? # Custom attribute writer method with validation # @param order [Object] Object to be assigned + # @!visibility private def order=(order) validator = EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) unless validator.valid?(order) diff --git a/lib/datadog_api_client/v1/models/widget_layout.rb b/lib/datadog_api_client/v1/models/widget_layout.rb index a89cbf57597..574926bedc6 100644 --- a/lib/datadog_api_client/v1/models/widget_layout.rb +++ b/lib/datadog_api_client/v1/models/widget_layout.rb @@ -162,6 +162,7 @@ def valid? # Custom attribute writer method with validation # @param height [Object] Object to be assigned + # @!visibility private def height=(height) if @height.nil? fail ArgumentError, 'invalid value for "height", height cannot be nil.' @@ -174,6 +175,7 @@ def height=(height) # Custom attribute writer method with validation # @param width [Object] Object to be assigned + # @!visibility private def width=(width) if @width.nil? fail ArgumentError, 'invalid value for "width", width cannot be nil.' @@ -186,6 +188,7 @@ def width=(width) # Custom attribute writer method with validation # @param x [Object] Object to be assigned + # @!visibility private def x=(x) if @x.nil? fail ArgumentError, 'invalid value for "x", x cannot be nil.' @@ -198,6 +201,7 @@ def x=(x) # Custom attribute writer method with validation # @param y [Object] Object to be assigned + # @!visibility private def y=(y) if @y.nil? fail ArgumentError, 'invalid value for "y", y cannot be nil.' diff --git a/lib/datadog_api_client/v1/models/widget_marker.rb b/lib/datadog_api_client/v1/models/widget_marker.rb index 3cd27702281..8017c873fee 100644 --- a/lib/datadog_api_client/v1/models/widget_marker.rb +++ b/lib/datadog_api_client/v1/models/widget_marker.rb @@ -128,6 +128,7 @@ def valid? # Custom attribute writer method with validation # @param value [Object] Object to be assigned + # @!visibility private def value=(value) if @value.nil? fail ArgumentError, 'invalid value for "value", value cannot be nil.' 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 08e3fdb72a1..57977baae1f 100644 --- a/lib/datadog_api_client/v1/models/widget_request_style.rb +++ b/lib/datadog_api_client/v1/models/widget_request_style.rb @@ -111,6 +111,7 @@ def valid? # Custom attribute writer method with validation # @param line_type [Object] Object to be assigned + # @!visibility private def line_type=(line_type) validator = EnumAttributeValidator.new('WidgetLineType', ['dashed', 'dotted', 'solid']) unless validator.valid?(line_type) @@ -121,6 +122,7 @@ def line_type=(line_type) # Custom attribute writer method with validation # @param line_width [Object] Object to be assigned + # @!visibility private def line_width=(line_width) validator = EnumAttributeValidator.new('WidgetLineWidth', ['normal', 'thick', 'thin']) unless validator.valid?(line_width) diff --git a/lib/datadog_api_client/v1/models/widget_time.rb b/lib/datadog_api_client/v1/models/widget_time.rb index 87065849fea..78577d6dc88 100644 --- a/lib/datadog_api_client/v1/models/widget_time.rb +++ b/lib/datadog_api_client/v1/models/widget_time.rb @@ -93,6 +93,7 @@ def valid? # Custom attribute writer method with validation # @param live_span [Object] Object to be assigned + # @!visibility private def live_span=(live_span) validator = EnumAttributeValidator.new('WidgetLiveSpan', ['1m', '5m', '10m', '15m', '30m', '1h', '4h', '1d', '2d', '1w', '1mo', '3mo', '6mo', '1y', 'alert']) unless validator.valid?(live_span) 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 1b6a282a5c0..eb97066e548 100644 --- a/lib/datadog_api_client/v2/models/api_error_response.rb +++ b/lib/datadog_api_client/v2/models/api_error_response.rb @@ -99,6 +99,7 @@ def valid? # Custom attribute writer method with validation # @param errors [Object] Object to be assigned + # @!visibility private def errors=(errors) if @errors.nil? fail ArgumentError, 'invalid value for "errors", errors cannot be nil.' 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 683b7bff60f..34e87b564ee 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' 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 86f33a63b57..fec52364ad8 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 @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -121,6 +122,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('APIKeysType', ['api_keys']) unless validator.valid?(type) 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 17337734a9f..9297b0d50b0 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 3127626aeb7..d60b6598469 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' 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 f22752a2cae..00e5f02f29a 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 @@ -125,6 +125,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -134,6 +135,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -143,6 +145,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('APIKeysType', ['api_keys']) unless validator.valid?(type) 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 23cc5bfdccf..06dbdb58860 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 f3231ced41b..86f459f2d3e 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 @@ -109,6 +109,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' 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 8e911ee7d20..9c5b57a49cd 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 @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -121,6 +122,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) unless validator.valid?(type) 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 e09512951d6..3a0cd33c16a 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 9a8389baf0f..787d5e726c5 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 @@ -125,6 +125,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -134,6 +135,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -143,6 +145,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) unless validator.valid?(type) 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 c8254c7268d..1367c8b15a4 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 f8df343666a..fe07fe2da5c 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 @@ -128,6 +128,7 @@ def valid? # Custom attribute writer method with validation # @param expression [Object] Object to be assigned + # @!visibility private def expression=(expression) if @expression.nil? fail ArgumentError, 'invalid value for "expression", expression cannot be nil.' @@ -137,6 +138,7 @@ def expression=(expression) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' 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 7cc7bc7da1a..51d64bc95e6 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 @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -121,6 +122,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('CloudWorkloadSecurityAgentRuleType', ['agent_rule']) unless validator.valid?(type) 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 b98b704c782..f2d3395be23 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 61094dc3f17..0534745ec81 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 @@ -113,6 +113,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('CloudWorkloadSecurityAgentRuleType', ['agent_rule']) unless validator.valid?(type) 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 871869f7877..d71bdb81ac2 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,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -121,6 +122,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('CloudWorkloadSecurityAgentRuleType', ['agent_rule']) unless validator.valid?(type) 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 ce3a0c9e95f..73962e9e216 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 bd7734c8573..1c614f18089 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item.rb @@ -204,6 +204,7 @@ def valid? # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -213,6 +214,7 @@ def id=(id) # Custom attribute writer method with validation # @param popularity [Object] Object to be assigned + # @!visibility private def popularity=(popularity) if !popularity.nil? && popularity > 5 fail ArgumentError, 'invalid value for "popularity", must be smaller than or equal to 5.' @@ -222,6 +224,7 @@ def popularity=(popularity) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('DashboardType', ['custom_timeboard', 'custom_screenboard', 'integration_screenboard', 'integration_timeboard', 'host_timeboard']) unless validator.valid?(type) 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 a86884e6212..3ea246a79c2 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 @@ -110,6 +110,7 @@ def valid? # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -119,6 +120,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('DashboardType', ['custom_timeboard', 'custom_screenboard', 'integration_screenboard', 'integration_timeboard', 'host_timeboard']) unless validator.valid?(type) 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 9b6698b5265..96a7e004853 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 @@ -110,6 +110,7 @@ def valid? # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -119,6 +120,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('DashboardType', ['custom_timeboard', 'custom_screenboard', 'integration_screenboard', 'integration_timeboard', 'host_timeboard']) unless validator.valid?(type) 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 56bc07953e0..c5e895942b7 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_items.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_items.rb @@ -108,6 +108,7 @@ def valid? # Custom attribute writer method with validation # @param dashboards [Object] Object to be assigned + # @!visibility private def dashboards=(dashboards) if @dashboards.nil? fail ArgumentError, 'invalid value for "dashboards", dashboards cannot be nil.' 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 9c4c25941bb..60115797501 100644 --- a/lib/datadog_api_client/v2/models/full_api_key.rb +++ b/lib/datadog_api_client/v2/models/full_api_key.rb @@ -122,6 +122,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('APIKeysType', ['api_keys']) unless validator.valid?(type) 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 bffac009a4e..226b3e89d41 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 @@ -137,6 +137,7 @@ def valid? # Custom attribute writer method with validation # @param last4 [Object] Object to be assigned + # @!visibility private def last4=(last4) if !last4.nil? && last4.to_s.length > 4 fail ArgumentError, 'invalid value for "last4", the character length must be smaller than or equal to 4.' 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 caa51dc55b7..b4c1a61d4e3 100644 --- a/lib/datadog_api_client/v2/models/full_application_key.rb +++ b/lib/datadog_api_client/v2/models/full_application_key.rb @@ -122,6 +122,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) unless validator.valid?(type) 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 b1aab798565..bb08fb1bc93 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 @@ -140,6 +140,7 @@ def valid? # Custom attribute writer method with validation # @param last4 [Object] Object to be assigned + # @!visibility private def last4=(last4) if !last4.nil? && last4.to_s.length > 4 fail ArgumentError, 'invalid value for "last4", the character length must be smaller than or equal to 4.' 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 a7e695c7f1f..9a23ca20d98 100644 --- a/lib/datadog_api_client/v2/models/incident_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_create_attributes.rb @@ -141,6 +141,7 @@ def valid? # Custom attribute writer method with validation # @param customer_impacted [Object] Object to be assigned + # @!visibility private def customer_impacted=(customer_impacted) if @customer_impacted.nil? fail ArgumentError, 'invalid value for "customer_impacted", customer_impacted cannot be nil.' @@ -150,6 +151,7 @@ def customer_impacted=(customer_impacted) # Custom attribute writer method with validation # @param title [Object] Object to be assigned + # @!visibility private def title=(title) if @title.nil? fail ArgumentError, 'invalid value for "title", title cannot be nil.' 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 20ef53f9e54..e5d0083fb3c 100644 --- a/lib/datadog_api_client/v2/models/incident_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_create_data.rb @@ -121,6 +121,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -130,6 +131,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('IncidentType', ['incidents']) unless validator.valid?(type) 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 8bb1bf800ad..4789ce9e06b 100644 --- a/lib/datadog_api_client/v2/models/incident_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_create_relationships.rb @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param commander [Object] Object to be assigned + # @!visibility private def commander=(commander) if @commander.nil? fail ArgumentError, 'invalid value for "commander", commander cannot be nil.' 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 fecf57b0419..f1a46782adc 100644 --- a/lib/datadog_api_client/v2/models/incident_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_create_request.rb @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 c5581fa6341..98604f5ca56 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 @@ -107,6 +107,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('IncidentFieldAttributesValueType', ['multiselect', 'textarray', 'metrictag', 'autocomplete']) unless validator.valid?(type) 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 280f981fb90..2d5517ad86b 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 @@ -105,6 +105,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('IncidentFieldAttributesSingleValueType', ['dropdown', 'textbox']) unless validator.valid?(type) diff --git a/lib/datadog_api_client/v2/models/incident_response.rb b/lib/datadog_api_client/v2/models/incident_response.rb index e5c1091bd0a..ce30f1d8da5 100644 --- a/lib/datadog_api_client/v2/models/incident_response.rb +++ b/lib/datadog_api_client/v2/models/incident_response.rb @@ -108,6 +108,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 78b05a5d6f9..5ec8636484f 100644 --- a/lib/datadog_api_client/v2/models/incident_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_response_attributes.rb @@ -260,6 +260,7 @@ def valid? # Custom attribute writer method with validation # @param title [Object] Object to be assigned + # @!visibility private def title=(title) if @title.nil? fail ArgumentError, 'invalid value for "title", title cannot be nil.' 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 71a16f75d4d..0160429f692 100644 --- a/lib/datadog_api_client/v2/models/incident_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_response_data.rb @@ -130,6 +130,7 @@ def valid? # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -139,6 +140,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('IncidentType', ['incidents']) unless validator.valid?(type) 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 db2730f16ce..8c3d4406e16 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' 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 01f1dae7d9f..78744f0f52e 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 @@ -117,6 +117,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('IncidentServiceType', ['services']) unless validator.valid?(type) 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 b6289418b41..0bbb5c97b57 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 7889bb667fe..c08211bfab9 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response.rb @@ -108,6 +108,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 4b9077d415b..b2a9625e489 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 @@ -130,6 +130,7 @@ def valid? # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -139,6 +140,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('IncidentServiceType', ['services']) unless validator.valid?(type) 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 e111f8436bf..d4bbc001d96 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' 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 8d6815462a0..927f8288a36 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 @@ -126,6 +126,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('IncidentServiceType', ['services']) unless validator.valid?(type) 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 d70ec1b3d6a..a923dd8a591 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 e73834d50e3..c727565d162 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response.rb @@ -119,6 +119,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 6e919c0fec0..06afcdd3aea 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' 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 13e7e1dcbef..ff25ca6a465 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 @@ -117,6 +117,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('IncidentTeamType', ['teams']) unless validator.valid?(type) 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 d9eed24696b..0ebd3999478 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 dcb1be09214..903b838d96d 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response.rb @@ -108,6 +108,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 d484b8fe0e9..0c3f90e0f3b 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 @@ -122,6 +122,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('IncidentTeamType', ['teams']) unless validator.valid?(type) 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 9f3d6196540..b90640750e8 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' 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 c12dcc88cc4..87e5b5358e2 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 @@ -126,6 +126,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('IncidentTeamType', ['teams']) unless validator.valid?(type) 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 3b1e3fab946..5c570b26028 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 9e95523a098..6bdea77ab0a 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response.rb @@ -119,6 +119,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 58c765d1072..b6c0895b3bb 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 @@ -123,6 +123,7 @@ def valid? # Custom attribute writer method with validation # @param cell_type [Object] Object to be assigned + # @!visibility private def cell_type=(cell_type) validator = EnumAttributeValidator.new('IncidentTimelineCellMarkdownContentType', ['markdown']) unless validator.valid?(cell_type) @@ -136,6 +137,7 @@ def cell_type=(cell_type) # Custom attribute writer method with validation # @param content [Object] Object to be assigned + # @!visibility private def content=(content) if @content.nil? fail ArgumentError, 'invalid value for "content", content cannot be nil.' 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 de8937c91d4..fe8b481750f 100644 --- a/lib/datadog_api_client/v2/models/incident_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_update_data.rb @@ -130,6 +130,7 @@ def valid? # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -139,6 +140,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('IncidentType', ['incidents']) unless validator.valid?(type) 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 27956022d9d..a37972dcd02 100644 --- a/lib/datadog_api_client/v2/models/incident_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_update_request.rb @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' diff --git a/lib/datadog_api_client/v2/models/incidents_response.rb b/lib/datadog_api_client/v2/models/incidents_response.rb index 168bb224318..a46350cff64 100644 --- a/lib/datadog_api_client/v2/models/incidents_response.rb +++ b/lib/datadog_api_client/v2/models/incidents_response.rb @@ -119,6 +119,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' diff --git a/lib/datadog_api_client/v2/models/log.rb b/lib/datadog_api_client/v2/models/log.rb index 0db27f69170..0312220b60c 100644 --- a/lib/datadog_api_client/v2/models/log.rb +++ b/lib/datadog_api_client/v2/models/log.rb @@ -113,6 +113,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogType', ['log']) unless validator.valid?(type) 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 8df418797e5..eec36a41057 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb @@ -122,6 +122,7 @@ def valid? # Custom attribute writer method with validation # @param aggregation [Object] Object to be assigned + # @!visibility private def aggregation=(aggregation) validator = EnumAttributeValidator.new('LogsAggregationFunction', ['count', 'cardinality', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) unless validator.valid?(aggregation) @@ -132,6 +133,7 @@ def aggregation=(aggregation) # Custom attribute writer method with validation # @param order [Object] Object to be assigned + # @!visibility private def order=(order) validator = EnumAttributeValidator.new('LogsSortOrder', ['asc', 'desc']) unless validator.valid?(order) @@ -142,6 +144,7 @@ def order=(order) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsAggregateSortType', ['alphabetical', 'measure']) unless validator.valid?(type) 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 bb0171033a6..4de3042b397 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb @@ -152,6 +152,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -161,6 +162,7 @@ def name=(name) # Custom attribute writer method with validation # @param query [Object] Object to be assigned + # @!visibility private def query=(query) if @query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' @@ -170,6 +172,7 @@ def query=(query) # Custom attribute writer method with validation # @param state [Object] Object to be assigned + # @!visibility private def state=(state) validator = EnumAttributeValidator.new('LogsArchiveState', ['UNKNOWN', 'WORKING', 'FAILING', 'WORKING_AUTH_LEGACY']) unless validator.valid?(state) 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 7654cd9fe84..1ec9ab075e7 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 @@ -146,6 +146,7 @@ def valid? # Custom attribute writer method with validation # @param destination [Object] Object to be assigned + # @!visibility private def destination=(destination) if @destination.nil? fail ArgumentError, 'invalid value for "destination", destination cannot be nil.' @@ -155,6 +156,7 @@ def destination=(destination) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -164,6 +166,7 @@ def name=(name) # Custom attribute writer method with validation # @param query [Object] Object to be assigned + # @!visibility private def query=(query) if @query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' 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 a9008d2248d..996701eeffb 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 @@ -108,6 +108,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) if @type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' 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 82e9ef9652a..88a75f89a75 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_definition.rb @@ -117,6 +117,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) if @type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' 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 69ec319b3be..d849a125c6b 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 @@ -156,6 +156,7 @@ def valid? # Custom attribute writer method with validation # @param container [Object] Object to be assigned + # @!visibility private def container=(container) if @container.nil? fail ArgumentError, 'invalid value for "container", container cannot be nil.' @@ -165,6 +166,7 @@ def container=(container) # Custom attribute writer method with validation # @param integration [Object] Object to be assigned + # @!visibility private def integration=(integration) if @integration.nil? fail ArgumentError, 'invalid value for "integration", integration cannot be nil.' @@ -174,6 +176,7 @@ def integration=(integration) # Custom attribute writer method with validation # @param storage_account [Object] Object to be assigned + # @!visibility private def storage_account=(storage_account) if @storage_account.nil? fail ArgumentError, 'invalid value for "storage_account", storage_account cannot be nil.' @@ -183,6 +186,7 @@ def storage_account=(storage_account) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsArchiveDestinationAzureType', ['azure']) unless validator.valid?(type) 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 babd3eccb72..49d018c2acd 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 @@ -134,6 +134,7 @@ def valid? # Custom attribute writer method with validation # @param bucket [Object] Object to be assigned + # @!visibility private def bucket=(bucket) if @bucket.nil? fail ArgumentError, 'invalid value for "bucket", bucket cannot be nil.' @@ -143,6 +144,7 @@ def bucket=(bucket) # Custom attribute writer method with validation # @param integration [Object] Object to be assigned + # @!visibility private def integration=(integration) if @integration.nil? fail ArgumentError, 'invalid value for "integration", integration cannot be nil.' @@ -152,6 +154,7 @@ def integration=(integration) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsArchiveDestinationGCSType', ['gcs']) unless validator.valid?(type) 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 a2b463fde86..6ab1cbe47af 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 @@ -134,6 +134,7 @@ def valid? # Custom attribute writer method with validation # @param bucket [Object] Object to be assigned + # @!visibility private def bucket=(bucket) if @bucket.nil? fail ArgumentError, 'invalid value for "bucket", bucket cannot be nil.' @@ -143,6 +144,7 @@ def bucket=(bucket) # Custom attribute writer method with validation # @param integration [Object] Object to be assigned + # @!visibility private def integration=(integration) if @integration.nil? fail ArgumentError, 'invalid value for "integration", integration cannot be nil.' @@ -152,6 +154,7 @@ def integration=(integration) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsArchiveDestinationS3Type', ['s3']) unless validator.valid?(type) 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 db9138bdf2a..529050a8502 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 @@ -110,6 +110,7 @@ def valid? # Custom attribute writer method with validation # @param client_id [Object] Object to be assigned + # @!visibility private def client_id=(client_id) if @client_id.nil? fail ArgumentError, 'invalid value for "client_id", client_id cannot be nil.' @@ -119,6 +120,7 @@ def client_id=(client_id) # Custom attribute writer method with validation # @param tenant_id [Object] Object to be assigned + # @!visibility private def tenant_id=(tenant_id) if @tenant_id.nil? fail ArgumentError, 'invalid value for "tenant_id", tenant_id cannot be nil.' 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 f88ba39621b..4946f862904 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 @@ -110,6 +110,7 @@ def valid? # Custom attribute writer method with validation # @param client_email [Object] Object to be assigned + # @!visibility private def client_email=(client_email) if @client_email.nil? fail ArgumentError, 'invalid value for "client_email", client_email cannot be nil.' @@ -119,6 +120,7 @@ def client_email=(client_email) # Custom attribute writer method with validation # @param project_id [Object] Object to be assigned + # @!visibility private def project_id=(project_id) if @project_id.nil? fail ArgumentError, 'invalid value for "project_id", project_id cannot be nil.' 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 b2e11a5100c..ad40854db05 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 @@ -110,6 +110,7 @@ def valid? # Custom attribute writer method with validation # @param account_id [Object] Object to be assigned + # @!visibility private def account_id=(account_id) if @account_id.nil? fail ArgumentError, 'invalid value for "account_id", account_id cannot be nil.' @@ -119,6 +120,7 @@ def account_id=(account_id) # Custom attribute writer method with validation # @param role_name [Object] Object to be assigned + # @!visibility private def role_name=(role_name) if @role_name.nil? fail ArgumentError, 'invalid value for "role_name", role_name cannot be nil.' 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 aa486a046d1..2290a1faa60 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 @@ -100,6 +100,7 @@ def valid? # Custom attribute writer method with validation # @param archive_ids [Object] Object to be assigned + # @!visibility private def archive_ids=(archive_ids) if @archive_ids.nil? fail ArgumentError, 'invalid value for "archive_ids", archive_ids cannot be nil.' 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 17349ae12be..5cc7473f9f3 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 @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -121,6 +122,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsArchiveOrderDefinitionType', ['archive_order']) unless validator.valid?(type) diff --git a/lib/datadog_api_client/v2/models/logs_compute.rb b/lib/datadog_api_client/v2/models/logs_compute.rb index 30014521ecb..b4c12b02a3c 100644 --- a/lib/datadog_api_client/v2/models/logs_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_compute.rb @@ -127,6 +127,7 @@ def valid? # Custom attribute writer method with validation # @param aggregation [Object] Object to be assigned + # @!visibility private def aggregation=(aggregation) validator = EnumAttributeValidator.new('LogsAggregationFunction', ['count', 'cardinality', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) unless validator.valid?(aggregation) @@ -140,6 +141,7 @@ def aggregation=(aggregation) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsComputeType', ['timeseries', 'total']) unless validator.valid?(type) 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 16a3d99b4d3..26863f36e34 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by.rb @@ -147,6 +147,7 @@ def valid? # Custom attribute writer method with validation # @param facet [Object] Object to be assigned + # @!visibility private def facet=(facet) if @facet.nil? fail ArgumentError, 'invalid value for "facet", facet cannot be nil.' 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 d94ef8ccc63..78fd1c1c824 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,7 @@ def valid? # Custom attribute writer method with validation # @param interval [Object] Object to be assigned + # @!visibility private def interval=(interval) if @interval.nil? fail ArgumentError, 'invalid value for "interval", interval cannot be nil.' @@ -135,6 +136,7 @@ def interval=(interval) # Custom attribute writer method with validation # @param max [Object] Object to be assigned + # @!visibility private def max=(max) if @max.nil? fail ArgumentError, 'invalid value for "max", max cannot be nil.' @@ -144,6 +146,7 @@ def max=(max) # Custom attribute writer method with validation # @param min [Object] Object to be assigned + # @!visibility private def min=(min) if @min.nil? fail ArgumentError, 'invalid value for "min", min cannot be nil.' 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 6fdc85fb860..37bd28f2226 100644 --- a/lib/datadog_api_client/v2/models/logs_list_request.rb +++ b/lib/datadog_api_client/v2/models/logs_list_request.rb @@ -121,6 +121,7 @@ def valid? # Custom attribute writer method with validation # @param sort [Object] Object to be assigned + # @!visibility private def sort=(sort) validator = EnumAttributeValidator.new('LogsSort', ['timestamp', '-timestamp']) unless validator.valid?(sort) 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 4c945e91f29..0e70c3b0e1d 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 @@ -108,6 +108,7 @@ def valid? # Custom attribute writer method with validation # @param limit [Object] Object to be assigned + # @!visibility private def limit=(limit) if !limit.nil? && limit > 1000 fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 1000.' 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 c0538a16385..a2649ce1ea6 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_compute.rb @@ -106,6 +106,7 @@ def valid? # Custom attribute writer method with validation # @param aggregation_type [Object] Object to be assigned + # @!visibility private def aggregation_type=(aggregation_type) validator = EnumAttributeValidator.new('LogsMetricComputeAggregationType', ['count', 'distribution']) unless validator.valid?(aggregation_type) 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 f4ad6968ec4..b47f79df9de 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 @@ -117,6 +117,7 @@ def valid? # Custom attribute writer method with validation # @param compute [Object] Object to be assigned + # @!visibility private def compute=(compute) if @compute.nil? fail ArgumentError, 'invalid value for "compute", compute cannot be nil.' 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 71cf2ea4e74..3d7de3f1a0f 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 @@ -125,6 +125,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -134,6 +135,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -143,6 +145,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsMetricType', ['logs_metrics']) unless validator.valid?(type) 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 afa3b6c6d6f..4ace4c00844 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 dff050f7d35..484297caf86 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 @@ -106,6 +106,7 @@ def valid? # Custom attribute writer method with validation # @param path [Object] Object to be assigned + # @!visibility private def path=(path) if @path.nil? fail ArgumentError, 'invalid value for "path", path cannot be nil.' 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 7fbaa967c90..250709e0814 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 @@ -102,6 +102,7 @@ def valid? # Custom attribute writer method with validation # @param aggregation_type [Object] Object to be assigned + # @!visibility private def aggregation_type=(aggregation_type) validator = EnumAttributeValidator.new('LogsMetricResponseComputeAggregationType', ['count', 'distribution']) unless validator.valid?(aggregation_type) 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 a45370df66e..c153c49409c 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 @@ -113,6 +113,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsMetricType', ['logs_metrics']) unless validator.valid?(type) 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 93421fe9dd1..eb89154cafc 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 @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -121,6 +122,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('LogsMetricType', ['logs_metrics']) unless validator.valid?(type) 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 ac7db316ede..31c9cd63950 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 e8e0cfe0340..86c60f97823 100644 --- a/lib/datadog_api_client/v2/models/logs_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/logs_response_metadata.rb @@ -132,6 +132,7 @@ def valid? # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('LogsAggregateResponseStatus', ['done', 'timeout']) unless validator.valid?(status) diff --git a/lib/datadog_api_client/v2/models/metric.rb b/lib/datadog_api_client/v2/models/metric.rb index f358b941b6b..8cf54e8e5fc 100644 --- a/lib/datadog_api_client/v2/models/metric.rb +++ b/lib/datadog_api_client/v2/models/metric.rb @@ -104,6 +104,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('MetricType', ['metrics']) unless validator.valid?(type) 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 43d8c518e9b..8e3e0d17696 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags.rb @@ -113,6 +113,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('MetricType', ['metrics']) unless validator.valid?(type) 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 3e0e2fdb5cb..54c75aeba80 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb @@ -110,6 +110,7 @@ def valid? # Custom attribute writer method with validation # @param space [Object] Object to be assigned + # @!visibility private def space=(space) validator = EnumAttributeValidator.new('MetricCustomSpaceAggregation', ['avg', 'max', 'min', 'sum']) unless validator.valid?(space) @@ -123,6 +124,7 @@ def space=(space) # Custom attribute writer method with validation # @param time [Object] Object to be assigned + # @!visibility private def time=(time) validator = EnumAttributeValidator.new('MetricCustomTimeAggregation', ['avg', 'count', 'max', 'min', 'sum']) unless validator.valid?(time) 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 ee1a1e9b59e..831d59ef134 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume.rb @@ -113,6 +113,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('MetricDistinctVolumeType', ['distinct_metric_volumes']) unless validator.valid?(type) 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 32993129649..4226d157818 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 @@ -113,6 +113,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('MetricIngestedIndexedVolumeType', ['metric_volumes']) unless validator.valid?(type) 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 42d913b485b..cfd0e1d5ca5 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration.rb @@ -113,6 +113,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('MetricTagConfigurationType', ['manage_tags']) unless validator.valid?(type) 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 39a98a3d032..303871fd72c 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 @@ -160,6 +160,7 @@ def valid? # Custom attribute writer method with validation # @param metric_type [Object] Object to be assigned + # @!visibility private def metric_type=(metric_type) validator = EnumAttributeValidator.new('MetricTagConfigurationMetricTypes', ['gauge', 'count', 'rate', 'distribution']) unless validator.valid?(metric_type) 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 8eae0de2cb8..d9563e71abb 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 @@ -154,6 +154,7 @@ def valid? # Custom attribute writer method with validation # @param metric_type [Object] Object to be assigned + # @!visibility private def metric_type=(metric_type) validator = EnumAttributeValidator.new('MetricTagConfigurationMetricTypes', ['gauge', 'count', 'rate', 'distribution']) unless validator.valid?(metric_type) @@ -167,6 +168,7 @@ def metric_type=(metric_type) # Custom attribute writer method with validation # @param tags [Object] Object to be assigned + # @!visibility private def tags=(tags) if @tags.nil? fail ArgumentError, 'invalid value for "tags", tags cannot be nil.' 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 5421c55e26e..5c80765a22f 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 @@ -121,6 +121,7 @@ def valid? # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -130,6 +131,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('MetricTagConfigurationType', ['manage_tags']) unless validator.valid?(type) 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 9f85a4c85e5..74c952bc493 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 cf23b0eee8d..d0a2c071c54 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 @@ -121,6 +121,7 @@ def valid? # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -130,6 +131,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('MetricTagConfigurationType', ['manage_tags']) unless validator.valid?(type) 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 f4bd78b0f96..c2ee7f35b30 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' diff --git a/lib/datadog_api_client/v2/models/organization.rb b/lib/datadog_api_client/v2/models/organization.rb index 355442b83bc..898c24ae9de 100644 --- a/lib/datadog_api_client/v2/models/organization.rb +++ b/lib/datadog_api_client/v2/models/organization.rb @@ -117,6 +117,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('OrganizationsType', ['orgs']) unless validator.valid?(type) 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 235f2bdd062..f37134dcc47 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key.rb @@ -122,6 +122,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('APIKeysType', ['api_keys']) unless validator.valid?(type) 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 7d04031dd02..857f00c260d 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 @@ -128,6 +128,7 @@ def valid? # Custom attribute writer method with validation # @param last4 [Object] Object to be assigned + # @!visibility private def last4=(last4) if !last4.nil? && last4.to_s.length > 4 fail ArgumentError, 'invalid value for "last4", the character length must be smaller than or equal to 4.' 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 d8f82f751bb..e9102175507 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key.rb @@ -122,6 +122,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) unless validator.valid?(type) 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 3fdd96d6a39..7bf0e1307c1 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 @@ -131,6 +131,7 @@ def valid? # Custom attribute writer method with validation # @param last4 [Object] Object to be assigned + # @!visibility private def last4=(last4) if !last4.nil? && last4.to_s.length > 4 fail ArgumentError, 'invalid value for "last4", the character length must be smaller than or equal to 4.' diff --git a/lib/datadog_api_client/v2/models/permission.rb b/lib/datadog_api_client/v2/models/permission.rb index 48744e6d6a1..d03cda5dc1d 100644 --- a/lib/datadog_api_client/v2/models/permission.rb +++ b/lib/datadog_api_client/v2/models/permission.rb @@ -117,6 +117,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('PermissionsType', ['permissions']) unless validator.valid?(type) 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 e34fd87d255..657513f8b73 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 @@ -111,6 +111,7 @@ def valid? # Custom attribute writer method with validation # @param size [Object] Object to be assigned + # @!visibility private def size=(size) if !size.nil? && size > 10000 fail ArgumentError, 'invalid value for "size", must be smaller than or equal to 10000.' diff --git a/lib/datadog_api_client/v2/models/process_summary.rb b/lib/datadog_api_client/v2/models/process_summary.rb index b2423082f1a..b2172866487 100644 --- a/lib/datadog_api_client/v2/models/process_summary.rb +++ b/lib/datadog_api_client/v2/models/process_summary.rb @@ -113,6 +113,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('ProcessSummaryType', ['process']) unless validator.valid?(type) 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 5fabf0e8c3e..6b38c324a74 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 @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -121,6 +122,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('IncidentIntegrationMetadataType', ['incident_integrations']) unless validator.valid?(type) 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 f04f5cf1d9b..ec3fc774ea0 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 @@ -99,6 +99,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 e8d967b1ce2..1e38564b6ce 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 f1f301b94f6..04d8cd54154 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 @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -121,6 +122,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('IncidentPostmortemType', ['incident_postmortems']) unless validator.valid?(type) 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 4d39be388ba..c3322df56f8 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organization.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organization.rb @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 c24ec566c04..7b2f76d91f1 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 @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -121,6 +122,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('OrganizationsType', ['orgs']) unless validator.valid?(type) 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 90e1a005814..1a96e81d938 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organizations.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organizations.rb @@ -99,6 +99,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 5fd1969194c..ec2571b6983 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 @@ -104,6 +104,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('PermissionsType', ['permissions']) unless validator.valid?(type) 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 e3b60f0f3c3..70c2712c016 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 @@ -104,6 +104,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('RolesType', ['roles']) unless validator.valid?(type) 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 cb1c1fdcfc0..6eb7742e284 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user.rb @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 3ab1d97abee..8d38bea1ab2 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 @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -121,6 +122,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('UsersType', ['users']) unless validator.valid?(type) 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 6586eea40cd..74c23693cb6 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_users.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_users.rb @@ -99,6 +99,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' diff --git a/lib/datadog_api_client/v2/models/role.rb b/lib/datadog_api_client/v2/models/role.rb index 1aec72b1d3c..67e4ef0742f 100644 --- a/lib/datadog_api_client/v2/models/role.rb +++ b/lib/datadog_api_client/v2/models/role.rb @@ -126,6 +126,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('RolesType', ['roles']) unless validator.valid?(type) diff --git a/lib/datadog_api_client/v2/models/role_clone.rb b/lib/datadog_api_client/v2/models/role_clone.rb index a090dd2f50a..e55ddeb32e3 100644 --- a/lib/datadog_api_client/v2/models/role_clone.rb +++ b/lib/datadog_api_client/v2/models/role_clone.rb @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -121,6 +122,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('RolesType', ['roles']) unless validator.valid?(type) 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 14339345e80..f47b56096bd 100644 --- a/lib/datadog_api_client/v2/models/role_clone_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_clone_attributes.rb @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' 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 3c9eddae514..18858121f9a 100644 --- a/lib/datadog_api_client/v2/models/role_clone_request.rb +++ b/lib/datadog_api_client/v2/models/role_clone_request.rb @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 74188ef91a9..2d67f003368 100644 --- a/lib/datadog_api_client/v2/models/role_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_create_attributes.rb @@ -115,6 +115,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' 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 47ff5f291bf..e970e0b2093 100644 --- a/lib/datadog_api_client/v2/models/role_create_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_data.rb @@ -117,6 +117,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -126,6 +127,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('RolesType', ['roles']) unless validator.valid?(type) 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 79fb68a3687..d373a27002a 100644 --- a/lib/datadog_api_client/v2/models/role_create_request.rb +++ b/lib/datadog_api_client/v2/models/role_create_request.rb @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 652c14c4d25..1681aa35019 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 @@ -126,6 +126,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('RolesType', ['roles']) unless validator.valid?(type) 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 e087aab6a6e..4414d883a87 100644 --- a/lib/datadog_api_client/v2/models/role_update_data.rb +++ b/lib/datadog_api_client/v2/models/role_update_data.rb @@ -125,6 +125,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -134,6 +135,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -143,6 +145,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('RolesType', ['roles']) unless validator.valid?(type) 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 8a1fc4b2f76..376b73c81d9 100644 --- a/lib/datadog_api_client/v2/models/role_update_request.rb +++ b/lib/datadog_api_client/v2/models/role_update_request.rb @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 d797e2fd81a..959e8cd527c 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 @@ -126,6 +126,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('RolesType', ['roles']) unless validator.valid?(type) diff --git a/lib/datadog_api_client/v2/models/security_filter.rb b/lib/datadog_api_client/v2/models/security_filter.rb index 7e9ca5ba2c8..712530b3de4 100644 --- a/lib/datadog_api_client/v2/models/security_filter.rb +++ b/lib/datadog_api_client/v2/models/security_filter.rb @@ -113,6 +113,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SecurityFilterType', ['security_filters']) unless validator.valid?(type) 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 3a43d9c378f..e515aebaad3 100644 --- a/lib/datadog_api_client/v2/models/security_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_attributes.rb @@ -153,6 +153,7 @@ def valid? # Custom attribute writer method with validation # @param filtered_data_type [Object] Object to be assigned + # @!visibility private def filtered_data_type=(filtered_data_type) validator = EnumAttributeValidator.new('SecurityFilterFilteredDataType', ['logs']) unless validator.valid?(filtered_data_type) @@ -163,6 +164,7 @@ def filtered_data_type=(filtered_data_type) # Custom attribute writer method with validation # @param version [Object] Object to be assigned + # @!visibility private def version=(version) if !version.nil? && version > 2147483647 fail ArgumentError, 'invalid value for "version", must be smaller than or equal to 2147483647.' 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 22d3c73f774..5d4f3fdfda4 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 @@ -151,6 +151,7 @@ def valid? # Custom attribute writer method with validation # @param exclusion_filters [Object] Object to be assigned + # @!visibility private def exclusion_filters=(exclusion_filters) if @exclusion_filters.nil? fail ArgumentError, 'invalid value for "exclusion_filters", exclusion_filters cannot be nil.' @@ -160,6 +161,7 @@ def exclusion_filters=(exclusion_filters) # Custom attribute writer method with validation # @param filtered_data_type [Object] Object to be assigned + # @!visibility private def filtered_data_type=(filtered_data_type) validator = EnumAttributeValidator.new('SecurityFilterFilteredDataType', ['logs']) unless validator.valid?(filtered_data_type) @@ -173,6 +175,7 @@ def filtered_data_type=(filtered_data_type) # Custom attribute writer method with validation # @param is_enabled [Object] Object to be assigned + # @!visibility private def is_enabled=(is_enabled) if @is_enabled.nil? fail ArgumentError, 'invalid value for "is_enabled", is_enabled cannot be nil.' @@ -182,6 +185,7 @@ def is_enabled=(is_enabled) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -191,6 +195,7 @@ def name=(name) # Custom attribute writer method with validation # @param query [Object] Object to be assigned + # @!visibility private def query=(query) if @query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' 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 855cd03f203..6ca44960120 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 @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -121,6 +122,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SecurityFilterType', ['security_filters']) unless validator.valid?(type) 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 9c7a7025a86..f4efece46a3 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 efd7c3f2d26..88aa304a2cb 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 @@ -110,6 +110,7 @@ def valid? # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -119,6 +120,7 @@ def name=(name) # Custom attribute writer method with validation # @param query [Object] Object to be assigned + # @!visibility private def query=(query) if @query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' 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 a4412dcf438..8b21ebe6d3c 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 @@ -144,6 +144,7 @@ def valid? # Custom attribute writer method with validation # @param filtered_data_type [Object] Object to be assigned + # @!visibility private def filtered_data_type=(filtered_data_type) validator = EnumAttributeValidator.new('SecurityFilterFilteredDataType', ['logs']) unless validator.valid?(filtered_data_type) @@ -154,6 +155,7 @@ def filtered_data_type=(filtered_data_type) # Custom attribute writer method with validation # @param version [Object] Object to be assigned + # @!visibility private def version=(version) if !version.nil? && version > 2147483647 fail ArgumentError, 'invalid value for "version", must be smaller than or equal to 2147483647.' 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 31064de1467..b400bbb6498 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 @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -121,6 +122,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SecurityFilterType', ['security_filters']) unless validator.valid?(type) 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 0cfb67ffd96..6f5cbc398c7 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 86ea7f9232d..86200f33b99 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_filter.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_filter.rb @@ -102,6 +102,7 @@ def valid? # Custom attribute writer method with validation # @param action [Object] Object to be assigned + # @!visibility private def action=(action) validator = EnumAttributeValidator.new('SecurityMonitoringFilterAction', ['require', 'suppress']) unless validator.valid?(action) 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 ae4fe689ab0..c6395d4ca1b 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 @@ -123,6 +123,7 @@ def valid? # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('SecurityMonitoringRuleSeverity', ['info', 'low', 'medium', 'high', 'critical']) unless validator.valid?(status) 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 6311143f2c4..62e728d73f9 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 @@ -127,6 +127,7 @@ def valid? # Custom attribute writer method with validation # @param status [Object] Object to be assigned + # @!visibility private def status=(status) validator = EnumAttributeValidator.new('SecurityMonitoringRuleSeverity', ['info', 'low', 'medium', 'high', 'critical']) unless validator.valid?(status) diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb index 213a3033990..6cea404b0ea 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb @@ -206,6 +206,7 @@ def valid? # Custom attribute writer method with validation # @param cases [Object] Object to be assigned + # @!visibility private def cases=(cases) if @cases.nil? fail ArgumentError, 'invalid value for "cases", cases cannot be nil.' @@ -215,6 +216,7 @@ def cases=(cases) # Custom attribute writer method with validation # @param is_enabled [Object] Object to be assigned + # @!visibility private def is_enabled=(is_enabled) if @is_enabled.nil? fail ArgumentError, 'invalid value for "is_enabled", is_enabled cannot be nil.' @@ -224,6 +226,7 @@ def is_enabled=(is_enabled) # Custom attribute writer method with validation # @param message [Object] Object to be assigned + # @!visibility private def message=(message) if @message.nil? fail ArgumentError, 'invalid value for "message", message cannot be nil.' @@ -233,6 +236,7 @@ def message=(message) # Custom attribute writer method with validation # @param name [Object] Object to be assigned + # @!visibility private def name=(name) if @name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' @@ -242,6 +246,7 @@ def name=(name) # Custom attribute writer method with validation # @param options [Object] Object to be assigned + # @!visibility private def options=(options) if @options.nil? fail ArgumentError, 'invalid value for "options", options cannot be nil.' @@ -251,6 +256,7 @@ def options=(options) # Custom attribute writer method with validation # @param queries [Object] Object to be assigned + # @!visibility private def queries=(queries) if @queries.nil? fail ArgumentError, 'invalid value for "queries", queries cannot be nil.' @@ -260,6 +266,7 @@ def queries=(queries) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SecurityMonitoringRuleTypeCreate', ['log_detection', 'workload_security']) unless validator.valid?(type) 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 3d95583f0a6..ca9e73391dd 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 @@ -103,6 +103,7 @@ def valid? # Custom attribute writer method with validation # @param forget_after [Object] Object to be assigned + # @!visibility private def forget_after=(forget_after) validator = EnumAttributeValidator.new('SecurityMonitoringRuleNewValueOptionsForgetAfter', [1, 2, 7, 14, 21, 28]) unless validator.valid?(forget_after) @@ -113,6 +114,7 @@ def forget_after=(forget_after) # Custom attribute writer method with validation # @param learning_duration [Object] Object to be assigned + # @!visibility private def learning_duration=(learning_duration) validator = EnumAttributeValidator.new('SecurityMonitoringRuleNewValueOptionsLearningDuration', [0, 1, 7]) unless validator.valid?(learning_duration) 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 8cd5b6085f9..2c43e3396bb 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 @@ -132,6 +132,7 @@ def valid? # Custom attribute writer method with validation # @param detection_method [Object] Object to be assigned + # @!visibility private def detection_method=(detection_method) validator = EnumAttributeValidator.new('SecurityMonitoringRuleDetectionMethod', ['threshold', 'new_value', 'anomaly_detection']) unless validator.valid?(detection_method) @@ -142,6 +143,7 @@ def detection_method=(detection_method) # Custom attribute writer method with validation # @param evaluation_window [Object] Object to be assigned + # @!visibility private def evaluation_window=(evaluation_window) validator = EnumAttributeValidator.new('SecurityMonitoringRuleEvaluationWindow', [0, 60, 300, 600, 900, 1800, 3600, 7200]) unless validator.valid?(evaluation_window) @@ -152,6 +154,7 @@ def evaluation_window=(evaluation_window) # Custom attribute writer method with validation # @param keep_alive [Object] Object to be assigned + # @!visibility private def keep_alive=(keep_alive) validator = EnumAttributeValidator.new('SecurityMonitoringRuleKeepAlive', [0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600]) unless validator.valid?(keep_alive) @@ -162,6 +165,7 @@ def keep_alive=(keep_alive) # Custom attribute writer method with validation # @param max_signal_duration [Object] Object to be assigned + # @!visibility private def max_signal_duration=(max_signal_duration) validator = EnumAttributeValidator.new('SecurityMonitoringRuleMaxSignalDuration', [0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400]) unless validator.valid?(max_signal_duration) diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb index 2070beedc67..1c7fb7e8779 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb @@ -143,6 +143,7 @@ def valid? # Custom attribute writer method with validation # @param aggregation [Object] Object to be assigned + # @!visibility private def aggregation=(aggregation) validator = EnumAttributeValidator.new('SecurityMonitoringRuleQueryAggregation', ['count', 'cardinality', 'sum', 'max', 'new_value']) unless validator.valid?(aggregation) diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb index bf82e2493b6..d673cbdbec6 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb @@ -147,6 +147,7 @@ def valid? # Custom attribute writer method with validation # @param aggregation [Object] Object to be assigned + # @!visibility private def aggregation=(aggregation) validator = EnumAttributeValidator.new('SecurityMonitoringRuleQueryAggregation', ['count', 'cardinality', 'sum', 'max', 'new_value']) unless validator.valid?(aggregation) @@ -157,6 +158,7 @@ def aggregation=(aggregation) # Custom attribute writer method with validation # @param query [Object] Object to be assigned + # @!visibility private def query=(query) if @query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb index 913159379e9..01fec78fdf1 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb @@ -245,6 +245,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SecurityMonitoringRuleTypeRead', ['log_detection', 'infrastructure_configuration', 'workload_security', 'cloud_configuration']) unless validator.valid?(type) 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 7ab9cd59aeb..013117e4a7b 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 @@ -186,6 +186,7 @@ def valid? # Custom attribute writer method with validation # @param version [Object] Object to be assigned + # @!visibility private def version=(version) if !version.nil? && version > 2147483647 fail ArgumentError, 'invalid value for "version", must be smaller than or equal to 2147483647.' 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 e53d4ffa4e3..bb82d5d2e2f 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal.rb @@ -114,6 +114,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('SecurityMonitoringSignalType', ['signal']) unless validator.valid?(type) 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 232c1403a72..1e7c056f9ef 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 @@ -111,6 +111,7 @@ def valid? # Custom attribute writer method with validation # @param sort [Object] Object to be assigned + # @!visibility private def sort=(sort) validator = EnumAttributeValidator.new('SecurityMonitoringSignalsSort', ['timestamp', '-timestamp']) unless validator.valid?(sort) 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 bfeb14e182b..3e8876e2215 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 @@ -108,6 +108,7 @@ def valid? # Custom attribute writer method with validation # @param limit [Object] Object to be assigned + # @!visibility private def limit=(limit) if !limit.nil? && limit > 1000 fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 1000.' 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 bf16972b9bd..bc552712827 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 @@ -128,6 +128,7 @@ def valid? # Custom attribute writer method with validation # @param email [Object] Object to be assigned + # @!visibility private def email=(email) if @email.nil? fail ArgumentError, 'invalid value for "email", email cannot be nil.' @@ -137,6 +138,7 @@ def email=(email) # Custom attribute writer method with validation # @param service_account [Object] Object to be assigned + # @!visibility private def service_account=(service_account) if @service_account.nil? fail ArgumentError, 'invalid value for "service_account", service_account cannot be nil.' 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 d7b27c583b2..0b6a5d9b389 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 @@ -121,6 +121,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -130,6 +131,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('UsersType', ['users']) unless validator.valid?(type) 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 da94101f50d..e8ac23d3c0e 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 @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' diff --git a/lib/datadog_api_client/v2/models/user.rb b/lib/datadog_api_client/v2/models/user.rb index 94ff611a753..fc710c15d26 100644 --- a/lib/datadog_api_client/v2/models/user.rb +++ b/lib/datadog_api_client/v2/models/user.rb @@ -122,6 +122,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('UsersType', ['users']) unless validator.valid?(type) 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 273bb7319cf..dd59bff477f 100644 --- a/lib/datadog_api_client/v2/models/user_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_create_attributes.rb @@ -115,6 +115,7 @@ def valid? # Custom attribute writer method with validation # @param email [Object] Object to be assigned + # @!visibility private def email=(email) if @email.nil? fail ArgumentError, 'invalid value for "email", email cannot be nil.' 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 5b38f1c3258..219784aecad 100644 --- a/lib/datadog_api_client/v2/models/user_create_data.rb +++ b/lib/datadog_api_client/v2/models/user_create_data.rb @@ -121,6 +121,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -130,6 +131,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('UsersType', ['users']) unless validator.valid?(type) 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 38c5417e934..1ae8eb7602d 100644 --- a/lib/datadog_api_client/v2/models/user_create_request.rb +++ b/lib/datadog_api_client/v2/models/user_create_request.rb @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 253bfd6e3d0..906b5121248 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_data.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_data.rb @@ -112,6 +112,7 @@ def valid? # Custom attribute writer method with validation # @param relationships [Object] Object to be assigned + # @!visibility private def relationships=(relationships) if @relationships.nil? fail ArgumentError, 'invalid value for "relationships", relationships cannot be nil.' @@ -121,6 +122,7 @@ def relationships=(relationships) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('UserInvitationsType', ['user_invitations']) unless validator.valid?(type) 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 2853584f0f2..fda90ea5ed0 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_relationships.rb @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param user [Object] Object to be assigned + # @!visibility private def user=(user) if @user.nil? fail ArgumentError, 'invalid value for "user", user cannot be nil.' 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 ee4ee80a320..6bcf79f3771 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 @@ -113,6 +113,7 @@ def valid? # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('UserInvitationsType', ['user_invitations']) unless validator.valid?(type) 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 603d4d82815..1cbffc32b61 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_request.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_request.rb @@ -99,6 +99,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' 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 15302478290..1bbaa23e8b1 100644 --- a/lib/datadog_api_client/v2/models/user_update_data.rb +++ b/lib/datadog_api_client/v2/models/user_update_data.rb @@ -125,6 +125,7 @@ def valid? # Custom attribute writer method with validation # @param attributes [Object] Object to be assigned + # @!visibility private def attributes=(attributes) if @attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' @@ -134,6 +135,7 @@ def attributes=(attributes) # Custom attribute writer method with validation # @param id [Object] Object to be assigned + # @!visibility private def id=(id) if @id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' @@ -143,6 +145,7 @@ def id=(id) # Custom attribute writer method with validation # @param type [Object] Object to be assigned + # @!visibility private def type=(type) validator = EnumAttributeValidator.new('UsersType', ['users']) unless validator.valid?(type) 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 5bd73becfb9..5ce378fb3be 100644 --- a/lib/datadog_api_client/v2/models/user_update_request.rb +++ b/lib/datadog_api_client/v2/models/user_update_request.rb @@ -97,6 +97,7 @@ def valid? # Custom attribute writer method with validation # @param data [Object] Object to be assigned + # @!visibility private def data=(data) if @data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' From fa4e9e8fc896e53675a63c3814310d4635244bf2 Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Mon, 7 Feb 2022 12:45:37 +0100 Subject: [PATCH 17/23] enum --- .../src/generator/templates/model_generic.j2 | 2 +- .generator/src/generator/templates/package.j2 | 22 +++++++++++++++++++ lib/datadog_api_client/v1.rb | 22 +++++++++++++++++++ .../models/alert_graph_widget_definition.rb | 6 ++--- .../models/alert_value_widget_definition.rb | 6 ++--- .../v1/models/apm_stats_query_column_type.rb | 4 ++-- .../v1/models/apm_stats_query_definition.rb | 2 +- .../v1/models/aws_tag_filter.rb | 2 +- .../models/aws_tag_filter_create_request.rb | 2 +- .../models/aws_tag_filter_delete_request.rb | 2 +- .../v1/models/change_widget_definition.rb | 4 ++-- .../v1/models/change_widget_request.rb | 10 ++++----- .../models/check_status_widget_definition.rb | 6 ++--- lib/datadog_api_client/v1/models/dashboard.rb | 4 ++-- .../v1/models/dashboard_bulk_action_data.rb | 2 +- .../v1/models/dashboard_summary_definition.rb | 2 +- .../models/distribution_widget_definition.rb | 4 ++-- lib/datadog_api_client/v1/models/event.rb | 4 ++-- .../v1/models/event_create_request.rb | 4 ++-- .../v1/models/event_create_response.rb | 4 ++-- .../models/event_stream_widget_definition.rb | 6 ++--- .../event_timeline_widget_definition.rb | 4 ++-- ...n_apm_dependency_stats_query_definition.rb | 4 ++-- ...ion_apm_resource_stats_query_definition.rb | 4 ++-- ...ula_and_function_event_query_definition.rb | 2 +- ...function_event_query_definition_compute.rb | 2 +- ..._and_function_event_query_group_by_sort.rb | 4 ++-- ...la_and_function_metric_query_definition.rb | 4 ++-- ...a_and_function_process_query_definition.rb | 6 ++--- .../v1/models/free_text_widget_definition.rb | 4 ++-- .../v1/models/funnel_query.rb | 2 +- .../v1/models/funnel_widget_definition.rb | 4 ++-- .../v1/models/funnel_widget_request.rb | 2 +- .../v1/models/geomap_widget_definition.rb | 4 ++-- .../v1/models/geomap_widget_request.rb | 2 +- .../v1/models/group_widget_definition.rb | 6 ++--- .../v1/models/heat_map_widget_definition.rb | 4 ++-- .../v1/models/host_map_widget_definition.rb | 6 ++--- .../models/hourly_usage_attribution_body.rb | 2 +- .../v1/models/i_frame_widget_definition.rb | 2 +- .../v1/models/image_widget_definition.rb | 10 ++++----- .../v1/models/list_stream_column.rb | 2 +- .../v1/models/list_stream_query.rb | 2 +- .../models/list_stream_widget_definition.rb | 4 ++-- .../v1/models/list_stream_widget_request.rb | 2 +- .../log_query_definition_group_by_sort.rb | 2 +- .../v1/models/log_stream_widget_definition.rb | 6 ++--- .../v1/models/logs_arithmetic_processor.rb | 2 +- .../v1/models/logs_attribute_remapper.rb | 4 ++-- .../v1/models/logs_category_processor.rb | 2 +- .../v1/models/logs_date_remapper.rb | 2 +- .../v1/models/logs_geo_ip_parser.rb | 2 +- .../v1/models/logs_grok_parser.rb | 2 +- .../v1/models/logs_list_request.rb | 2 +- .../v1/models/logs_lookup_processor.rb | 2 +- .../v1/models/logs_message_remapper.rb | 2 +- .../v1/models/logs_pipeline_processor.rb | 2 +- .../v1/models/logs_service_remapper.rb | 2 +- .../v1/models/logs_status_remapper.rb | 2 +- .../models/logs_string_builder_processor.rb | 2 +- .../v1/models/logs_trace_remapper.rb | 2 +- .../v1/models/logs_url_parser.rb | 2 +- .../v1/models/logs_user_agent_parser.rb | 2 +- lib/datadog_api_client/v1/models/monitor.rb | 4 ++-- ...ula_and_function_event_query_definition.rb | 2 +- ...function_event_query_definition_compute.rb | 2 +- ..._and_function_event_query_group_by_sort.rb | 4 ++-- .../v1/models/monitor_group_search_result.rb | 2 +- .../v1/models/monitor_search_result.rb | 4 ++-- .../v1/models/monitor_state_group.rb | 2 +- .../monitor_summary_widget_definition.rb | 12 +++++----- .../v1/models/monitor_update_request.rb | 4 ++-- .../v1/models/note_widget_definition.rb | 8 +++---- .../v1/models/notebook_cell_create_request.rb | 2 +- .../v1/models/notebook_cell_response.rb | 2 +- .../v1/models/notebook_cell_update_request.rb | 2 +- .../v1/models/notebook_create_data.rb | 2 +- .../models/notebook_create_data_attributes.rb | 2 +- .../notebook_distribution_cell_attributes.rb | 2 +- .../notebook_heat_map_cell_attributes.rb | 2 +- .../notebook_log_stream_cell_attributes.rb | 2 +- .../notebook_markdown_cell_definition.rb | 2 +- .../v1/models/notebook_metadata.rb | 2 +- .../v1/models/notebook_relative_time.rb | 2 +- .../v1/models/notebook_response_data.rb | 2 +- .../notebook_response_data_attributes.rb | 2 +- .../notebook_timeseries_cell_attributes.rb | 2 +- .../notebook_toplist_cell_attributes.rb | 2 +- .../v1/models/notebook_update_data.rb | 2 +- .../models/notebook_update_data_attributes.rb | 2 +- .../v1/models/notebooks_response_data.rb | 2 +- .../notebooks_response_data_attributes.rb | 2 +- .../v1/models/organization_settings.rb | 2 +- .../models/query_value_widget_definition.rb | 6 ++--- .../v1/models/query_value_widget_request.rb | 4 ++-- .../v1/models/scatter_plot_request.rb | 2 +- .../models/scatter_plot_widget_definition.rb | 4 ++-- .../v1/models/scatterplot_table_request.rb | 2 +- .../v1/models/scatterplot_widget_formula.rb | 2 +- .../v1/models/service_check.rb | 2 +- .../v1/models/service_level_objective.rb | 2 +- .../models/service_level_objective_request.rb | 2 +- .../models/service_map_widget_definition.rb | 4 ++-- .../service_summary_widget_definition.rb | 8 +++---- .../v1/models/slo_bulk_delete_error.rb | 2 +- .../v1/models/slo_correction.rb | 2 +- .../v1/models/slo_correction_create_data.rb | 2 +- ...lo_correction_create_request_attributes.rb | 2 +- .../slo_correction_response_attributes.rb | 2 +- .../v1/models/slo_correction_update_data.rb | 2 +- ...lo_correction_update_request_attributes.rb | 2 +- .../v1/models/slo_history_response_data.rb | 4 ++-- .../v1/models/slo_response_data.rb | 2 +- .../v1/models/slo_threshold.rb | 2 +- .../v1/models/slo_widget_definition.rb | 6 ++--- .../v1/models/sunburst_widget_definition.rb | 4 ++-- ...sunburst_widget_legend_inline_automatic.rb | 2 +- .../v1/models/sunburst_widget_legend_table.rb | 2 +- .../v1/models/sunburst_widget_request.rb | 2 +- .../v1/models/synthetics_api_step.rb | 2 +- .../v1/models/synthetics_api_test.rb | 6 ++--- .../models/synthetics_api_test_result_data.rb | 2 +- .../synthetics_api_test_result_failure.rb | 2 +- .../models/synthetics_api_test_result_full.rb | 2 +- .../synthetics_api_test_result_short.rb | 2 +- .../synthetics_assertion_json_path_target.rb | 4 ++-- .../v1/models/synthetics_assertion_target.rb | 4 ++-- .../v1/models/synthetics_basic_auth_ntlm.rb | 2 +- .../v1/models/synthetics_basic_auth_sigv4.rb | 2 +- .../v1/models/synthetics_basic_auth_web.rb | 2 +- .../models/synthetics_batch_details_data.rb | 2 +- .../v1/models/synthetics_batch_result.rb | 8 +++---- .../v1/models/synthetics_browser_error.rb | 2 +- .../v1/models/synthetics_browser_test.rb | 4 ++-- .../synthetics_browser_test_result_failure.rb | 2 +- .../synthetics_browser_test_result_full.rb | 2 +- .../synthetics_browser_test_result_short.rb | 2 +- .../v1/models/synthetics_browser_variable.rb | 2 +- .../v1/models/synthetics_config_variable.rb | 2 +- .../v1/models/synthetics_device.rb | 2 +- ...tics_global_variable_parse_test_options.rb | 2 +- .../v1/models/synthetics_parsing_options.rb | 2 +- .../v1/models/synthetics_step.rb | 2 +- .../v1/models/synthetics_step_detail.rb | 6 ++--- .../models/synthetics_step_detail_warning.rb | 2 +- .../v1/models/synthetics_test_details.rb | 6 ++--- .../v1/models/synthetics_test_request.rb | 2 +- .../synthetics_trigger_ci_test_run_result.rb | 2 +- ...hetics_update_test_pause_status_payload.rb | 2 +- .../v1/models/synthetics_variable_parser.rb | 2 +- .../v1/models/table_widget_definition.rb | 6 ++--- .../v1/models/table_widget_request.rb | 6 ++--- .../v1/models/timeseries_widget_definition.rb | 6 ++--- .../v1/models/timeseries_widget_request.rb | 4 ++-- .../v1/models/toplist_widget_definition.rb | 4 ++-- .../v1/models/toplist_widget_request.rb | 2 +- .../v1/models/tree_map_widget_definition.rb | 8 +++---- .../v1/models/tree_map_widget_request.rb | 2 +- .../v1/models/usage_custom_reports_data.rb | 2 +- .../usage_specified_custom_reports_data.rb | 2 +- .../v1/models/usage_top_avg_metrics_hour.rb | 2 +- lib/datadog_api_client/v1/models/user.rb | 2 +- .../v1/models/webhooks_integration.rb | 2 +- .../webhooks_integration_update_request.rb | 2 +- .../v1/models/widget_conditional_format.rb | 4 ++-- .../v1/models/widget_field_sort.rb | 2 +- .../v1/models/widget_formula.rb | 2 +- .../v1/models/widget_formula_limit.rb | 2 +- .../v1/models/widget_request_style.rb | 4 ++-- .../v1/models/widget_time.rb | 2 +- lib/datadog_api_client/v2.rb | 22 +++++++++++++++++++ .../v2/models/api_key_create_data.rb | 2 +- .../v2/models/api_key_update_data.rb | 2 +- .../v2/models/application_key_create_data.rb | 2 +- .../v2/models/application_key_update_data.rb | 2 +- ...orkload_security_agent_rule_create_data.rb | 2 +- ...cloud_workload_security_agent_rule_data.rb | 2 +- ...orkload_security_agent_rule_update_data.rb | 2 +- .../v2/models/dashboard_list_item.rb | 2 +- .../v2/models/dashboard_list_item_request.rb | 2 +- .../v2/models/dashboard_list_item_response.rb | 2 +- .../v2/models/full_api_key.rb | 2 +- .../v2/models/full_application_key.rb | 2 +- .../v2/models/incident_create_data.rb | 2 +- ...ncident_field_attributes_multiple_value.rb | 2 +- .../incident_field_attributes_single_value.rb | 2 +- .../v2/models/incident_response_data.rb | 2 +- .../v2/models/incident_service_create_data.rb | 2 +- .../models/incident_service_response_data.rb | 2 +- .../v2/models/incident_service_update_data.rb | 2 +- .../v2/models/incident_team_create_data.rb | 2 +- .../v2/models/incident_team_response_data.rb | 2 +- .../v2/models/incident_team_update_data.rb | 2 +- ...imeline_cell_markdown_create_attributes.rb | 2 +- .../v2/models/incident_update_data.rb | 2 +- lib/datadog_api_client/v2/models/log.rb | 2 +- .../v2/models/logs_aggregate_sort.rb | 6 ++--- .../v2/models/logs_archive_attributes.rb | 2 +- .../models/logs_archive_destination_azure.rb | 2 +- .../v2/models/logs_archive_destination_gcs.rb | 2 +- .../v2/models/logs_archive_destination_s3.rb | 2 +- .../models/logs_archive_order_definition.rb | 2 +- .../v2/models/logs_compute.rb | 4 ++-- .../v2/models/logs_list_request.rb | 2 +- .../v2/models/logs_metric_compute.rb | 2 +- .../v2/models/logs_metric_create_data.rb | 2 +- .../v2/models/logs_metric_response_compute.rb | 2 +- .../v2/models/logs_metric_response_data.rb | 2 +- .../v2/models/logs_metric_update_data.rb | 2 +- .../v2/models/logs_response_metadata.rb | 2 +- lib/datadog_api_client/v2/models/metric.rb | 2 +- .../v2/models/metric_all_tags.rb | 2 +- .../v2/models/metric_custom_aggregation.rb | 4 ++-- .../v2/models/metric_distinct_volume.rb | 2 +- .../models/metric_ingested_indexed_volume.rb | 2 +- .../v2/models/metric_tag_configuration.rb | 2 +- .../metric_tag_configuration_attributes.rb | 2 +- ...ric_tag_configuration_create_attributes.rb | 2 +- .../metric_tag_configuration_create_data.rb | 2 +- .../metric_tag_configuration_update_data.rb | 2 +- .../v2/models/organization.rb | 2 +- .../v2/models/partial_api_key.rb | 2 +- .../v2/models/partial_application_key.rb | 2 +- .../v2/models/permission.rb | 2 +- .../v2/models/process_summary.rb | 2 +- ...p_to_incident_integration_metadata_data.rb | 2 +- ...elationship_to_incident_postmortem_data.rb | 2 +- .../relationship_to_organization_data.rb | 2 +- .../models/relationship_to_permission_data.rb | 2 +- .../v2/models/relationship_to_role_data.rb | 2 +- .../v2/models/relationship_to_user_data.rb | 2 +- lib/datadog_api_client/v2/models/role.rb | 2 +- .../v2/models/role_clone.rb | 2 +- .../v2/models/role_create_data.rb | 2 +- .../v2/models/role_create_response_data.rb | 2 +- .../v2/models/role_update_data.rb | 2 +- .../v2/models/role_update_response_data.rb | 2 +- .../v2/models/security_filter.rb | 2 +- .../v2/models/security_filter_attributes.rb | 2 +- .../security_filter_create_attributes.rb | 2 +- .../v2/models/security_filter_create_data.rb | 2 +- .../security_filter_update_attributes.rb | 2 +- .../v2/models/security_filter_update_data.rb | 2 +- .../v2/models/security_monitoring_filter.rb | 2 +- .../models/security_monitoring_rule_case.rb | 2 +- .../security_monitoring_rule_case_create.rb | 2 +- ...security_monitoring_rule_create_payload.rb | 2 +- ...urity_monitoring_rule_new_value_options.rb | 4 ++-- .../security_monitoring_rule_options.rb | 8 +++---- .../models/security_monitoring_rule_query.rb | 2 +- .../security_monitoring_rule_query_create.rb | 2 +- .../security_monitoring_rule_response.rb | 2 +- .../v2/models/security_monitoring_signal.rb | 2 +- ...security_monitoring_signal_list_request.rb | 2 +- .../v2/models/service_account_create_data.rb | 2 +- lib/datadog_api_client/v2/models/user.rb | 2 +- .../v2/models/user_create_data.rb | 2 +- .../v2/models/user_invitation_data.rb | 2 +- .../models/user_invitation_response_data.rb | 2 +- .../v2/models/user_update_data.rb | 2 +- 260 files changed, 422 insertions(+), 356 deletions(-) diff --git a/.generator/src/generator/templates/model_generic.j2 b/.generator/src/generator/templates/model_generic.j2 index 6d24e447414..29c429e037c 100644 --- a/.generator/src/generator/templates/model_generic.j2 +++ b/.generator/src/generator/templates/model_generic.j2 @@ -185,7 +185,7 @@ # @!visibility private def {{ attr|attribute_name }}=({{ attr|attribute_name }}) {%- if not collection and definition.enum is defined %} - validator = EnumAttributeValidator.new('{{ get_name(definition) }}', [{% for value in definition.enum %}{{ value|format_value }}{%- if not loop.last %}, {% endif %}{% endfor %}]) + validator = {{ config.moduleName }}::EnumAttributeValidator.new('{{ get_name(definition) }}', [{% for value in definition.enum %}{{ value|format_value }}{%- if not loop.last %}, {% endif %}{% endfor %}]) unless validator.valid?({{ attr|attribute_name }}) fail ArgumentError, "invalid value for \"{{ attr|attribute_name }}\", must be one of #{validator.allowable_values}." end diff --git a/.generator/src/generator/templates/package.j2 b/.generator/src/generator/templates/package.j2 index 11b1f88ae5d..7c16da0a7e3 100644 --- a/.generator/src/generator/templates/package.j2 +++ b/.generator/src/generator/templates/package.j2 @@ -34,4 +34,26 @@ module {{ config.moduleName}} end end end + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end end diff --git a/lib/datadog_api_client/v1.rb b/lib/datadog_api_client/v1.rb index 19a3a87675d..dca87a5bda0 100644 --- a/lib/datadog_api_client/v1.rb +++ b/lib/datadog_api_client/v1.rb @@ -756,4 +756,26 @@ def configure end end end + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end end \ No newline at end of file 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 3cd0578a690..48759fd1ec8 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 @@ -173,7 +173,7 @@ def alert_id=(alert_id) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -184,7 +184,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('AlertGraphWidgetDefinitionType', ['alert_graph']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('AlertGraphWidgetDefinitionType', ['alert_graph']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end @@ -198,7 +198,7 @@ def type=(type) # @param viz_type [Object] Object to be assigned # @!visibility private def viz_type=(viz_type) - validator = EnumAttributeValidator.new('WidgetVizType', ['timeseries', 'toplist']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetVizType', ['timeseries', 'toplist']) unless validator.valid?(viz_type) fail ArgumentError, "invalid value for \"viz_type\", must be one of #{validator.allowable_values}." end 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 3c10673feb7..8dc9abc4482 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 @@ -178,7 +178,7 @@ def alert_id=(alert_id) # @param text_align [Object] Object to be assigned # @!visibility private def text_align=(text_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(text_align) fail ArgumentError, "invalid value for \"text_align\", must be one of #{validator.allowable_values}." end @@ -189,7 +189,7 @@ def text_align=(text_align) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -200,7 +200,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('AlertValueWidgetDefinitionType', ['alert_value']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('AlertValueWidgetDefinitionType', ['alert_value']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 baf5635c390..dadec373fe2 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 @@ -126,7 +126,7 @@ def valid? # @param cell_display_mode [Object] Object to be assigned # @!visibility private def cell_display_mode=(cell_display_mode) - validator = EnumAttributeValidator.new('TableWidgetCellDisplayMode', ['number', 'bar']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TableWidgetCellDisplayMode', ['number', 'bar']) unless validator.valid?(cell_display_mode) fail ArgumentError, "invalid value for \"cell_display_mode\", must be one of #{validator.allowable_values}." end @@ -147,7 +147,7 @@ def name=(name) # @param order [Object] Object to be assigned # @!visibility private def order=(order) - validator = EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) unless validator.valid?(order) fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." end 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 0702196befc..42271cea797 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 @@ -201,7 +201,7 @@ def primary_tag=(primary_tag) # @param row_type [Object] Object to be assigned # @!visibility private def row_type=(row_type) - validator = EnumAttributeValidator.new('ApmStatsQueryRowType', ['service', 'resource', 'span']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ApmStatsQueryRowType', ['service', 'resource', 'span']) unless validator.valid?(row_type) fail ArgumentError, "invalid value for \"row_type\", must be one of #{validator.allowable_values}." end 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 b9afc7e0319..76e5a6dd87e 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter.rb @@ -104,7 +104,7 @@ def valid? # @param namespace [Object] Object to be assigned # @!visibility private def namespace=(namespace) - validator = EnumAttributeValidator.new('AWSNamespace', ['elb', 'application_elb', 'sqs', 'rds', 'custom', 'network_elb', 'lambda']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('AWSNamespace', ['elb', 'application_elb', 'sqs', 'rds', 'custom', 'network_elb', 'lambda']) unless validator.valid?(namespace) fail ArgumentError, "invalid value for \"namespace\", must be one of #{validator.allowable_values}." end 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 fd1a5723425..86c78bffca0 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 @@ -113,7 +113,7 @@ def valid? # @param namespace [Object] Object to be assigned # @!visibility private def namespace=(namespace) - validator = EnumAttributeValidator.new('AWSNamespace', ['elb', 'application_elb', 'sqs', 'rds', 'custom', 'network_elb', 'lambda']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('AWSNamespace', ['elb', 'application_elb', 'sqs', 'rds', 'custom', 'network_elb', 'lambda']) unless validator.valid?(namespace) fail ArgumentError, "invalid value for \"namespace\", must be one of #{validator.allowable_values}." end 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 d851a2388db..4c76ef7d7f2 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 @@ -104,7 +104,7 @@ def valid? # @param namespace [Object] Object to be assigned # @!visibility private def namespace=(namespace) - validator = EnumAttributeValidator.new('AWSNamespace', ['elb', 'application_elb', 'sqs', 'rds', 'custom', 'network_elb', 'lambda']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('AWSNamespace', ['elb', 'application_elb', 'sqs', 'rds', 'custom', 'network_elb', 'lambda']) unless validator.valid?(namespace) fail ArgumentError, "invalid value for \"namespace\", must be one of #{validator.allowable_values}." end 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 3fe93e6f1a3..5852277c409 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition.rb @@ -190,7 +190,7 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -201,7 +201,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('ChangeWidgetDefinitionType', ['change']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ChangeWidgetDefinitionType', ['change']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 c8fb13c00a0..4d2d251b818 100644 --- a/lib/datadog_api_client/v1/models/change_widget_request.rb +++ b/lib/datadog_api_client/v1/models/change_widget_request.rb @@ -252,7 +252,7 @@ def valid? # @param change_type [Object] Object to be assigned # @!visibility private def change_type=(change_type) - validator = EnumAttributeValidator.new('WidgetChangeType', ['absolute', 'relative']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetChangeType', ['absolute', 'relative']) unless validator.valid?(change_type) fail ArgumentError, "invalid value for \"change_type\", must be one of #{validator.allowable_values}." end @@ -263,7 +263,7 @@ def change_type=(change_type) # @param compare_to [Object] Object to be assigned # @!visibility private def compare_to=(compare_to) - validator = EnumAttributeValidator.new('WidgetCompareTo', ['hour_before', 'day_before', 'week_before', 'month_before']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetCompareTo', ['hour_before', 'day_before', 'week_before', 'month_before']) unless validator.valid?(compare_to) fail ArgumentError, "invalid value for \"compare_to\", must be one of #{validator.allowable_values}." end @@ -274,7 +274,7 @@ def compare_to=(compare_to) # @param order_by [Object] Object to be assigned # @!visibility private def order_by=(order_by) - validator = EnumAttributeValidator.new('WidgetOrderBy', ['change', 'name', 'present', 'past']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetOrderBy', ['change', 'name', 'present', 'past']) unless validator.valid?(order_by) fail ArgumentError, "invalid value for \"order_by\", must be one of #{validator.allowable_values}." end @@ -285,7 +285,7 @@ def order_by=(order_by) # @param order_dir [Object] Object to be assigned # @!visibility private def order_dir=(order_dir) - validator = EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) unless validator.valid?(order_dir) fail ArgumentError, "invalid value for \"order_dir\", must be one of #{validator.allowable_values}." end @@ -296,7 +296,7 @@ def order_dir=(order_dir) # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) unless validator.valid?(response_format) fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." end 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 8836d9a3860..d200df2c3b2 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 @@ -204,7 +204,7 @@ def check=(check) # @param grouping [Object] Object to be assigned # @!visibility private def grouping=(grouping) - validator = EnumAttributeValidator.new('WidgetGrouping', ['check', 'cluster']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetGrouping', ['check', 'cluster']) unless validator.valid?(grouping) fail ArgumentError, "invalid value for \"grouping\", must be one of #{validator.allowable_values}." end @@ -218,7 +218,7 @@ def grouping=(grouping) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -229,7 +229,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('CheckStatusWidgetDefinitionType', ['check_status']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('CheckStatusWidgetDefinitionType', ['check_status']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v1/models/dashboard.rb b/lib/datadog_api_client/v1/models/dashboard.rb index 4279fe3076b..4b76f0e809a 100644 --- a/lib/datadog_api_client/v1/models/dashboard.rb +++ b/lib/datadog_api_client/v1/models/dashboard.rb @@ -262,7 +262,7 @@ def valid? # @param layout_type [Object] Object to be assigned # @!visibility private def layout_type=(layout_type) - validator = EnumAttributeValidator.new('DashboardLayoutType', ['ordered', 'free']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('DashboardLayoutType', ['ordered', 'free']) unless validator.valid?(layout_type) fail ArgumentError, "invalid value for \"layout_type\", must be one of #{validator.allowable_values}." end @@ -276,7 +276,7 @@ def layout_type=(layout_type) # @param reflow_type [Object] Object to be assigned # @!visibility private def reflow_type=(reflow_type) - validator = EnumAttributeValidator.new('DashboardReflowType', ['auto', 'fixed']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('DashboardReflowType', ['auto', 'fixed']) unless validator.valid?(reflow_type) fail ArgumentError, "invalid value for \"reflow_type\", must be one of #{validator.allowable_values}." end 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 f1a0a1f0374..c2fc5950ccc 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 @@ -124,7 +124,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('DashboardResourceType', ['dashboard']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('DashboardResourceType', ['dashboard']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 80f6b43c9e6..dac115f7f01 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb @@ -168,7 +168,7 @@ def valid? # @param layout_type [Object] Object to be assigned # @!visibility private def layout_type=(layout_type) - validator = EnumAttributeValidator.new('DashboardLayoutType', ['ordered', 'free']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('DashboardLayoutType', ['ordered', 'free']) unless validator.valid?(layout_type) fail ArgumentError, "invalid value for \"layout_type\", must be one of #{validator.allowable_values}." end 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 54271297102..b3e33615817 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb @@ -228,7 +228,7 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -239,7 +239,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('DistributionWidgetDefinitionType', ['distribution']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('DistributionWidgetDefinitionType', ['distribution']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v1/models/event.rb b/lib/datadog_api_client/v1/models/event.rb index 295ac320719..98d40f97585 100644 --- a/lib/datadog_api_client/v1/models/event.rb +++ b/lib/datadog_api_client/v1/models/event.rb @@ -217,7 +217,7 @@ def valid? # @param alert_type [Object] Object to be assigned # @!visibility private def alert_type=(alert_type) - validator = EnumAttributeValidator.new('EventAlertType', ['error', 'warning', 'info', 'success', 'user_update', 'recommendation', 'snapshot']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('EventAlertType', ['error', 'warning', 'info', 'success', 'user_update', 'recommendation', 'snapshot']) unless validator.valid?(alert_type) fail ArgumentError, "invalid value for \"alert_type\", must be one of #{validator.allowable_values}." end @@ -228,7 +228,7 @@ def alert_type=(alert_type) # @param priority [Object] Object to be assigned # @!visibility private def priority=(priority) - validator = EnumAttributeValidator.new('EventPriority', ['normal', 'low']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('EventPriority', ['normal', 'low']) unless validator.valid?(priority) fail ArgumentError, "invalid value for \"priority\", must be one of #{validator.allowable_values}." end 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 84d078ef3a5..974a4a49a14 100644 --- a/lib/datadog_api_client/v1/models/event_create_request.rb +++ b/lib/datadog_api_client/v1/models/event_create_request.rb @@ -221,7 +221,7 @@ def aggregation_key=(aggregation_key) # @param alert_type [Object] Object to be assigned # @!visibility private def alert_type=(alert_type) - validator = EnumAttributeValidator.new('EventAlertType', ['error', 'warning', 'info', 'success', 'user_update', 'recommendation', 'snapshot']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('EventAlertType', ['error', 'warning', 'info', 'success', 'user_update', 'recommendation', 'snapshot']) unless validator.valid?(alert_type) fail ArgumentError, "invalid value for \"alert_type\", must be one of #{validator.allowable_values}." end @@ -232,7 +232,7 @@ def alert_type=(alert_type) # @param priority [Object] Object to be assigned # @!visibility private def priority=(priority) - validator = EnumAttributeValidator.new('EventPriority', ['normal', 'low']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('EventPriority', ['normal', 'low']) unless validator.valid?(priority) fail ArgumentError, "invalid value for \"priority\", must be one of #{validator.allowable_values}." end 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 028aa5c933d..a9c563070be 100644 --- a/lib/datadog_api_client/v1/models/event_create_response.rb +++ b/lib/datadog_api_client/v1/models/event_create_response.rb @@ -228,7 +228,7 @@ def valid? # @param alert_type [Object] Object to be assigned # @!visibility private def alert_type=(alert_type) - validator = EnumAttributeValidator.new('EventAlertType', ['error', 'warning', 'info', 'success', 'user_update', 'recommendation', 'snapshot']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('EventAlertType', ['error', 'warning', 'info', 'success', 'user_update', 'recommendation', 'snapshot']) unless validator.valid?(alert_type) fail ArgumentError, "invalid value for \"alert_type\", must be one of #{validator.allowable_values}." end @@ -239,7 +239,7 @@ def alert_type=(alert_type) # @param priority [Object] Object to be assigned # @!visibility private def priority=(priority) - validator = EnumAttributeValidator.new('EventPriority', ['normal', 'low']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('EventPriority', ['normal', 'low']) unless validator.valid?(priority) fail ArgumentError, "invalid value for \"priority\", must be one of #{validator.allowable_values}." end 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 7a5de85981e..512f576710b 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 @@ -169,7 +169,7 @@ def valid? # @param event_size [Object] Object to be assigned # @!visibility private def event_size=(event_size) - validator = EnumAttributeValidator.new('WidgetEventSize', ['s', 'l']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetEventSize', ['s', 'l']) unless validator.valid?(event_size) fail ArgumentError, "invalid value for \"event_size\", must be one of #{validator.allowable_values}." end @@ -190,7 +190,7 @@ def query=(query) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -201,7 +201,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('EventStreamWidgetDefinitionType', ['event_stream']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('EventStreamWidgetDefinitionType', ['event_stream']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 3ec7efb19b3..7bded24b43e 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 @@ -169,7 +169,7 @@ def query=(query) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -180,7 +180,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('EventTimelineWidgetDefinitionType', ['event_timeline']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('EventTimelineWidgetDefinitionType', ['event_timeline']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 2509885fd07..1576748fdfa 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 @@ -204,7 +204,7 @@ def valid? # @param data_source [Object] Object to be assigned # @!visibility private def data_source=(data_source) - validator = EnumAttributeValidator.new('FormulaAndFunctionApmDependencyStatsDataSource', ['apm_dependency_stats']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionApmDependencyStatsDataSource', ['apm_dependency_stats']) unless validator.valid?(data_source) fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." end @@ -268,7 +268,7 @@ def service=(service) # @param stat [Object] Object to be assigned # @!visibility private def stat=(stat) - validator = EnumAttributeValidator.new('FormulaAndFunctionApmDependencyStatName', ['avg_duration', 'avg_root_duration', 'avg_spans_per_trace', 'error_rate', 'pct_exec_time', 'pct_of_traces', 'total_traces_count']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionApmDependencyStatName', ['avg_duration', 'avg_root_duration', 'avg_spans_per_trace', 'error_rate', 'pct_exec_time', 'pct_of_traces', 'total_traces_count']) unless validator.valid?(stat) fail ArgumentError, "invalid value for \"stat\", must be one of #{validator.allowable_values}." end 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 d65acfdd775..b85419dc71f 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 @@ -198,7 +198,7 @@ def valid? # @param data_source [Object] Object to be assigned # @!visibility private def data_source=(data_source) - validator = EnumAttributeValidator.new('FormulaAndFunctionApmResourceStatsDataSource', ['apm_resource_stats']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionApmResourceStatsDataSource', ['apm_resource_stats']) unless validator.valid?(data_source) fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." end @@ -242,7 +242,7 @@ def service=(service) # @param stat [Object] Object to be assigned # @!visibility private def stat=(stat) - validator = EnumAttributeValidator.new('FormulaAndFunctionApmResourceStatName', ['errors', 'error_rate', 'hits', 'latency_avg', 'latency_max', 'latency_p50', 'latency_p75', 'latency_p90', 'latency_p95', 'latency_p99']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionApmResourceStatName', ['errors', 'error_rate', 'hits', 'latency_avg', 'latency_max', 'latency_p50', 'latency_p75', 'latency_p90', 'latency_p95', 'latency_p99']) unless validator.valid?(stat) fail ArgumentError, "invalid value for \"stat\", must be one of #{validator.allowable_values}." end 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 fb9dee8bc3a..90c5cf550d1 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 @@ -166,7 +166,7 @@ def compute=(compute) # @param data_source [Object] Object to be assigned # @!visibility private def data_source=(data_source) - validator = EnumAttributeValidator.new('FormulaAndFunctionEventsDataSource', ['logs', 'spans', 'network', 'rum', 'security_signals', 'profiles', 'audit', 'events']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionEventsDataSource', ['logs', 'spans', 'network', 'rum', 'security_signals', 'profiles', 'audit', 'events']) unless validator.valid?(data_source) fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." end 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 a05b7bcfc7f..7f30b68708b 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 @@ -117,7 +117,7 @@ def valid? # @param aggregation [Object] Object to be assigned # @!visibility private def aggregation=(aggregation) - validator = EnumAttributeValidator.new('FormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) unless validator.valid?(aggregation) fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." end 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 b16d97af3d8..cae25ea29b1 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 @@ -119,7 +119,7 @@ def valid? # @param aggregation [Object] Object to be assigned # @!visibility private def aggregation=(aggregation) - validator = EnumAttributeValidator.new('FormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) unless validator.valid?(aggregation) fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." end @@ -133,7 +133,7 @@ def aggregation=(aggregation) # @param order [Object] Object to be assigned # @!visibility private def order=(order) - validator = EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) unless validator.valid?(order) fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." end 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 35db20c4d62..af0ee1396b6 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 @@ -134,7 +134,7 @@ def valid? # @param aggregator [Object] Object to be assigned # @!visibility private def aggregator=(aggregator) - validator = EnumAttributeValidator.new('FormulaAndFunctionMetricAggregation', ['avg', 'min', 'max', 'sum', 'last', 'area', 'l2norm', 'percentile']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionMetricAggregation', ['avg', 'min', 'max', 'sum', 'last', 'area', 'l2norm', 'percentile']) unless validator.valid?(aggregator) fail ArgumentError, "invalid value for \"aggregator\", must be one of #{validator.allowable_values}." end @@ -145,7 +145,7 @@ def aggregator=(aggregator) # @param data_source [Object] Object to be assigned # @!visibility private def data_source=(data_source) - validator = EnumAttributeValidator.new('FormulaAndFunctionMetricDataSource', ['metrics']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionMetricDataSource', ['metrics']) unless validator.valid?(data_source) fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." end 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 15044e32ed9..5a3e73ae3b0 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 @@ -183,7 +183,7 @@ def valid? # @param aggregator [Object] Object to be assigned # @!visibility private def aggregator=(aggregator) - validator = EnumAttributeValidator.new('FormulaAndFunctionMetricAggregation', ['avg', 'min', 'max', 'sum', 'last', 'area', 'l2norm', 'percentile']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionMetricAggregation', ['avg', 'min', 'max', 'sum', 'last', 'area', 'l2norm', 'percentile']) unless validator.valid?(aggregator) fail ArgumentError, "invalid value for \"aggregator\", must be one of #{validator.allowable_values}." end @@ -194,7 +194,7 @@ def aggregator=(aggregator) # @param data_source [Object] Object to be assigned # @!visibility private def data_source=(data_source) - validator = EnumAttributeValidator.new('FormulaAndFunctionProcessQueryDataSource', ['process', 'container']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionProcessQueryDataSource', ['process', 'container']) unless validator.valid?(data_source) fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." end @@ -228,7 +228,7 @@ def name=(name) # @param sort [Object] Object to be assigned # @!visibility private def sort=(sort) - validator = EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) unless validator.valid?(sort) fail ArgumentError, "invalid value for \"sort\", must be one of #{validator.allowable_values}." end 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 a1c05c780fb..8cc42f0c43b 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 @@ -151,7 +151,7 @@ def text=(text) # @param text_align [Object] Object to be assigned # @!visibility private def text_align=(text_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(text_align) fail ArgumentError, "invalid value for \"text_align\", must be one of #{validator.allowable_values}." end @@ -162,7 +162,7 @@ def text_align=(text_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('FreeTextWidgetDefinitionType', ['free_text']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FreeTextWidgetDefinitionType', ['free_text']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v1/models/funnel_query.rb b/lib/datadog_api_client/v1/models/funnel_query.rb index b3361b5cc08..891f391e978 100644 --- a/lib/datadog_api_client/v1/models/funnel_query.rb +++ b/lib/datadog_api_client/v1/models/funnel_query.rb @@ -129,7 +129,7 @@ def valid? # @param data_source [Object] Object to be assigned # @!visibility private def data_source=(data_source) - validator = EnumAttributeValidator.new('FunnelSource', ['rum']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FunnelSource', ['rum']) unless validator.valid?(data_source) fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." end 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 d93cb328638..995f3928345 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb @@ -176,7 +176,7 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -187,7 +187,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('FunnelWidgetDefinitionType', ['funnel']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FunnelWidgetDefinitionType', ['funnel']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 29a08448e64..fa2b6509e63 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_request.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_request.rb @@ -122,7 +122,7 @@ def query=(query) # @param request_type [Object] Object to be assigned # @!visibility private def request_type=(request_type) - validator = EnumAttributeValidator.new('FunnelRequestType', ['funnel']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FunnelRequestType', ['funnel']) unless validator.valid?(request_type) fail ArgumentError, "invalid value for \"request_type\", must be one of #{validator.allowable_values}." end 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 36d0fbd0787..d7761ba5a12 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb @@ -226,7 +226,7 @@ def style=(style) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -237,7 +237,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('GeomapWidgetDefinitionType', ['geomap']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('GeomapWidgetDefinitionType', ['geomap']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 9943f18dee4..c791e7a77ed 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_request.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_request.rb @@ -153,7 +153,7 @@ def valid? # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) unless validator.valid?(response_format) fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." end 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 193d39551ab..fe1de2b81d6 100644 --- a/lib/datadog_api_client/v1/models/group_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/group_widget_definition.rb @@ -176,7 +176,7 @@ def valid? # @param layout_type [Object] Object to be assigned # @!visibility private def layout_type=(layout_type) - validator = EnumAttributeValidator.new('WidgetLayoutType', ['ordered']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetLayoutType', ['ordered']) unless validator.valid?(layout_type) fail ArgumentError, "invalid value for \"layout_type\", must be one of #{validator.allowable_values}." end @@ -190,7 +190,7 @@ def layout_type=(layout_type) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -201,7 +201,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('GroupWidgetDefinitionType', ['group']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('GroupWidgetDefinitionType', ['group']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 0176716b7ae..158219f458d 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 @@ -225,7 +225,7 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -236,7 +236,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('HeatMapWidgetDefinitionType', ['heatmap']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('HeatMapWidgetDefinitionType', ['heatmap']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 e39ba5a0e7f..d61cde057fe 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 @@ -219,7 +219,7 @@ def valid? # @param node_type [Object] Object to be assigned # @!visibility private def node_type=(node_type) - validator = EnumAttributeValidator.new('WidgetNodeType', ['host', 'container']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetNodeType', ['host', 'container']) unless validator.valid?(node_type) fail ArgumentError, "invalid value for \"node_type\", must be one of #{validator.allowable_values}." end @@ -240,7 +240,7 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -251,7 +251,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('HostMapWidgetDefinitionType', ['hostmap']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('HostMapWidgetDefinitionType', ['hostmap']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 17573d537d5..7f439ccc5e8 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 @@ -158,7 +158,7 @@ def valid? # @param usage_type [Object] Object to be assigned # @!visibility private def usage_type=(usage_type) - validator = EnumAttributeValidator.new('HourlyUsageAttributionUsageType', ['api_usage', 'apm_host_usage', 'browser_usage', 'container_usage', 'custom_timeseries_usage', 'fargate_usage', 'functions_usage', 'indexed_logs_usage', 'infra_host_usage', 'invocations_usage', 'npm_host_usage', 'profiled_container_usage', 'profiled_host_usage', 'snmp_usage']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('HourlyUsageAttributionUsageType', ['api_usage', 'apm_host_usage', 'browser_usage', 'container_usage', 'custom_timeseries_usage', 'fargate_usage', 'functions_usage', 'indexed_logs_usage', 'infra_host_usage', 'invocations_usage', 'npm_host_usage', 'profiled_container_usage', 'profiled_host_usage', 'snmp_usage']) unless validator.valid?(usage_type) fail ArgumentError, "invalid value for \"usage_type\", must be one of #{validator.allowable_values}." end 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 87f4522353b..0255e5d61d9 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 @@ -114,7 +114,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('IFrameWidgetDefinitionType', ['iframe']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('IFrameWidgetDefinitionType', ['iframe']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 35d8e84225a..0aca1276ada 100644 --- a/lib/datadog_api_client/v1/models/image_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/image_widget_definition.rb @@ -183,7 +183,7 @@ def valid? # @param horizontal_align [Object] Object to be assigned # @!visibility private def horizontal_align=(horizontal_align) - validator = EnumAttributeValidator.new('WidgetHorizontalAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetHorizontalAlign', ['center', 'left', 'right']) unless validator.valid?(horizontal_align) fail ArgumentError, "invalid value for \"horizontal_align\", must be one of #{validator.allowable_values}." end @@ -194,7 +194,7 @@ def horizontal_align=(horizontal_align) # @param margin [Object] Object to be assigned # @!visibility private def margin=(margin) - validator = EnumAttributeValidator.new('WidgetMargin', ['sm', 'md', 'lg', 'small', 'large']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetMargin', ['sm', 'md', 'lg', 'small', 'large']) unless validator.valid?(margin) fail ArgumentError, "invalid value for \"margin\", must be one of #{validator.allowable_values}." end @@ -205,7 +205,7 @@ def margin=(margin) # @param sizing [Object] Object to be assigned # @!visibility private def sizing=(sizing) - validator = EnumAttributeValidator.new('WidgetImageSizing', ['fill', 'contain', 'cover', 'none', 'scale-down', 'zoom', 'fit', 'center']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetImageSizing', ['fill', 'contain', 'cover', 'none', 'scale-down', 'zoom', 'fit', 'center']) unless validator.valid?(sizing) fail ArgumentError, "invalid value for \"sizing\", must be one of #{validator.allowable_values}." end @@ -216,7 +216,7 @@ def sizing=(sizing) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('ImageWidgetDefinitionType', ['image']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ImageWidgetDefinitionType', ['image']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end @@ -240,7 +240,7 @@ def url=(url) # @param vertical_align [Object] Object to be assigned # @!visibility private def vertical_align=(vertical_align) - validator = EnumAttributeValidator.new('WidgetVerticalAlign', ['center', 'top', 'bottom']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetVerticalAlign', ['center', 'top', 'bottom']) unless validator.valid?(vertical_align) fail ArgumentError, "invalid value for \"vertical_align\", must be one of #{validator.allowable_values}." end 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 e64a25858a5..80cb1bf7bc3 100644 --- a/lib/datadog_api_client/v1/models/list_stream_column.rb +++ b/lib/datadog_api_client/v1/models/list_stream_column.rb @@ -122,7 +122,7 @@ def field=(field) # @param width [Object] Object to be assigned # @!visibility private def width=(width) - validator = EnumAttributeValidator.new('ListStreamColumnWidth', ['auto', 'compact', 'full']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ListStreamColumnWidth', ['auto', 'compact', 'full']) unless validator.valid?(width) fail ArgumentError, "invalid value for \"width\", must be one of #{validator.allowable_values}." end 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 4e8a2a86dc3..d41b1e297ea 100644 --- a/lib/datadog_api_client/v1/models/list_stream_query.rb +++ b/lib/datadog_api_client/v1/models/list_stream_query.rb @@ -125,7 +125,7 @@ def valid? # @param data_source [Object] Object to be assigned # @!visibility private def data_source=(data_source) - validator = EnumAttributeValidator.new('ListStreamSource', ['issue_stream', 'logs_stream', 'audit_stream']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ListStreamSource', ['issue_stream', 'logs_stream', 'audit_stream']) unless validator.valid?(data_source) fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." end 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 4c9d5149e74..2c7c4020a7a 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 @@ -195,7 +195,7 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -206,7 +206,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('ListStreamWidgetDefinitionType', ['list_stream']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ListStreamWidgetDefinitionType', ['list_stream']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 8bb65ab9669..02726c38fe3 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 @@ -147,7 +147,7 @@ def query=(query) # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = EnumAttributeValidator.new('ListStreamResponseFormat', ['event_list']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ListStreamResponseFormat', ['event_list']) unless validator.valid?(response_format) fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." end 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 7a99025cdbc..37f87b10c77 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 @@ -131,7 +131,7 @@ def aggregation=(aggregation) # @param order [Object] Object to be assigned # @!visibility private def order=(order) - validator = EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) unless validator.valid?(order) fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." end 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 5282f917cf9..57db367389c 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 @@ -213,7 +213,7 @@ def valid? # @param message_display [Object] Object to be assigned # @!visibility private def message_display=(message_display) - validator = EnumAttributeValidator.new('WidgetMessageDisplay', ['inline', 'expanded-md', 'expanded-lg']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetMessageDisplay', ['inline', 'expanded-md', 'expanded-lg']) unless validator.valid?(message_display) fail ArgumentError, "invalid value for \"message_display\", must be one of #{validator.allowable_values}." end @@ -224,7 +224,7 @@ def message_display=(message_display) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -235,7 +235,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogStreamWidgetDefinitionType', ['log_stream']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogStreamWidgetDefinitionType', ['log_stream']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 69086b7724d..796b9e459bc 100644 --- a/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb @@ -199,7 +199,7 @@ def target=(target) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsArithmeticProcessorType', ['arithmetic-processor']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsArithmeticProcessorType', ['arithmetic-processor']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 71015daf56f..955538bcf58 100644 --- a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb @@ -226,7 +226,7 @@ def target=(target) # @param target_format [Object] Object to be assigned # @!visibility private def target_format=(target_format) - validator = EnumAttributeValidator.new('TargetFormatType', ['auto', 'string', 'integer', 'double']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TargetFormatType', ['auto', 'string', 'integer', 'double']) unless validator.valid?(target_format) fail ArgumentError, "invalid value for \"target_format\", must be one of #{validator.allowable_values}." end @@ -237,7 +237,7 @@ def target_format=(target_format) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsAttributeRemapperType', ['attribute-remapper']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsAttributeRemapperType', ['attribute-remapper']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 46356be790d..8a90ba6f78b 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor.rb @@ -182,7 +182,7 @@ def target=(target) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsCategoryProcessorType', ['category-processor']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsCategoryProcessorType', ['category-processor']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 5a40c652734..26947a55335 100644 --- a/lib/datadog_api_client/v1/models/logs_date_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_date_remapper.rb @@ -164,7 +164,7 @@ def sources=(sources) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsDateRemapperType', ['date-remapper']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsDateRemapperType', ['date-remapper']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 7f851492f63..09e629e4e26 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 @@ -174,7 +174,7 @@ def target=(target) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsGeoIPParserType', ['geo-ip-parser']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsGeoIPParserType', ['geo-ip-parser']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 441eaffbcf9..9e06ad0080f 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser.rb @@ -195,7 +195,7 @@ def source=(source) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsGrokParserType', ['grok-parser']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsGrokParserType', ['grok-parser']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 d22166b22ac..f6a4d7a1a22 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request.rb @@ -163,7 +163,7 @@ def limit=(limit) # @param sort [Object] Object to be assigned # @!visibility private def sort=(sort) - validator = EnumAttributeValidator.new('LogsSort', ['asc', 'desc']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsSort', ['asc', 'desc']) unless validator.valid?(sort) fail ArgumentError, "invalid value for \"sort\", must be one of #{validator.allowable_values}." end 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 039d7ddd02f..e70215ac183 100644 --- a/lib/datadog_api_client/v1/models/logs_lookup_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_lookup_processor.rb @@ -208,7 +208,7 @@ def target=(target) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsLookupProcessorType', ['lookup-processor']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsLookupProcessorType', ['lookup-processor']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 633f992f7fd..ba216217003 100644 --- a/lib/datadog_api_client/v1/models/logs_message_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_message_remapper.rb @@ -153,7 +153,7 @@ def sources=(sources) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsMessageRemapperType', ['message-remapper']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsMessageRemapperType', ['message-remapper']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 2b05d50a369..345ba249aab 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb @@ -145,7 +145,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsPipelineProcessorType', ['pipeline']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsPipelineProcessorType', ['pipeline']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 a6df22f4bb6..794228dcb9c 100644 --- a/lib/datadog_api_client/v1/models/logs_service_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_service_remapper.rb @@ -149,7 +149,7 @@ def sources=(sources) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsServiceRemapperType', ['service-remapper']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsServiceRemapperType', ['service-remapper']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 ec4bb510c39..77710ac3304 100644 --- a/lib/datadog_api_client/v1/models/logs_status_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_status_remapper.rb @@ -163,7 +163,7 @@ def sources=(sources) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsStatusRemapperType', ['status-remapper']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsStatusRemapperType', ['status-remapper']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 c0bb99de422..67fa54823ea 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 @@ -191,7 +191,7 @@ def template=(template) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsStringBuilderProcessorType', ['string-builder-processor']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsStringBuilderProcessorType', ['string-builder-processor']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 56c2ece564b..a46d92b6fa4 100644 --- a/lib/datadog_api_client/v1/models/logs_trace_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_trace_remapper.rb @@ -139,7 +139,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsTraceRemapperType', ['trace-id-remapper']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsTraceRemapperType', ['trace-id-remapper']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 408ac97950d..e5de6895f52 100644 --- a/lib/datadog_api_client/v1/models/logs_url_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_url_parser.rb @@ -185,7 +185,7 @@ def target=(target) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsURLParserType', ['url-parser']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsURLParserType', ['url-parser']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 9ea406544fe..d98e86dbc6f 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 @@ -185,7 +185,7 @@ def target=(target) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsUserAgentParserType', ['user-agent-parser']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsUserAgentParserType', ['user-agent-parser']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v1/models/monitor.rb b/lib/datadog_api_client/v1/models/monitor.rb index 37bf986fe00..3fcebfba7dd 100644 --- a/lib/datadog_api_client/v1/models/monitor.rb +++ b/lib/datadog_api_client/v1/models/monitor.rb @@ -253,7 +253,7 @@ def valid? # @param overall_state [Object] Object to be assigned # @!visibility private def overall_state=(overall_state) - validator = EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) unless validator.valid?(overall_state) fail ArgumentError, "invalid value for \"overall_state\", must be one of #{validator.allowable_values}." end @@ -287,7 +287,7 @@ def query=(query) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('MonitorType', ['composite', 'event alert', 'log alert', 'metric alert', 'process alert', 'query alert', 'rum alert', 'service check', 'synthetics alert', 'trace-analytics alert', 'slo alert', 'event-v2 alert', 'audit alert', 'ci-pipelines alert']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorType', ['composite', 'event alert', 'log alert', 'metric alert', 'process alert', 'query alert', 'rum alert', 'service check', 'synthetics alert', 'trace-analytics alert', 'slo alert', 'event-v2 alert', 'audit alert', 'ci-pipelines alert']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 aa655565821..1d43dfca6ad 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 @@ -166,7 +166,7 @@ def compute=(compute) # @param data_source [Object] Object to be assigned # @!visibility private def data_source=(data_source) - validator = EnumAttributeValidator.new('MonitorFormulaAndFunctionEventsDataSource', ['rum']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorFormulaAndFunctionEventsDataSource', ['rum']) unless validator.valid?(data_source) fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." end 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 82c64583136..f2aa9a8a32a 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 @@ -117,7 +117,7 @@ def valid? # @param aggregation [Object] Object to be assigned # @!visibility private def aggregation=(aggregation) - validator = EnumAttributeValidator.new('MonitorFormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorFormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) unless validator.valid?(aggregation) fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." end 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 c60bf9836e3..accbdee8f92 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 @@ -119,7 +119,7 @@ def valid? # @param aggregation [Object] Object to be assigned # @!visibility private def aggregation=(aggregation) - validator = EnumAttributeValidator.new('MonitorFormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorFormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) unless validator.valid?(aggregation) fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." end @@ -133,7 +133,7 @@ def aggregation=(aggregation) # @param order [Object] Object to be assigned # @!visibility private def order=(order) - validator = EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) unless validator.valid?(order) fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." end 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 a14304bdaab..634e976b817 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 @@ -152,7 +152,7 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end 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 fde3ef27cf0..77fa60c56d5 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_result.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_result.rb @@ -215,7 +215,7 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end @@ -226,7 +226,7 @@ def status=(status) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('MonitorType', ['composite', 'event alert', 'log alert', 'metric alert', 'process alert', 'query alert', 'rum alert', 'service check', 'synthetics alert', 'trace-analytics alert', 'slo alert', 'event-v2 alert', 'audit alert', 'ci-pipelines alert']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorType', ['composite', 'event alert', 'log alert', 'metric alert', 'process alert', 'query alert', 'rum alert', 'service check', 'synthetics alert', 'trace-analytics alert', 'slo alert', 'event-v2 alert', 'audit alert', 'ci-pipelines alert']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 e842afbf79f..9586bcf04ef 100644 --- a/lib/datadog_api_client/v1/models/monitor_state_group.rb +++ b/lib/datadog_api_client/v1/models/monitor_state_group.rb @@ -140,7 +140,7 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end 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 ef6452a31e4..a482266b927 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 @@ -213,7 +213,7 @@ def valid? # @param color_preference [Object] Object to be assigned # @!visibility private def color_preference=(color_preference) - validator = EnumAttributeValidator.new('WidgetColorPreference', ['background', 'text']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetColorPreference', ['background', 'text']) unless validator.valid?(color_preference) fail ArgumentError, "invalid value for \"color_preference\", must be one of #{validator.allowable_values}." end @@ -224,7 +224,7 @@ def color_preference=(color_preference) # @param display_format [Object] Object to be assigned # @!visibility private def display_format=(display_format) - validator = EnumAttributeValidator.new('WidgetMonitorSummaryDisplayFormat', ['counts', 'countsAndList', 'list']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetMonitorSummaryDisplayFormat', ['counts', 'countsAndList', 'list']) unless validator.valid?(display_format) fail ArgumentError, "invalid value for \"display_format\", must be one of #{validator.allowable_values}." end @@ -245,7 +245,7 @@ def query=(query) # @param sort [Object] Object to be assigned # @!visibility private def sort=(sort) - validator = EnumAttributeValidator.new('WidgetMonitorSummarySort', ['name', 'group', 'status', 'tags', 'triggered', 'group,asc', 'group,desc', 'name,asc', 'name,desc', 'status,asc', 'status,desc', 'tags,asc', 'tags,desc', 'triggered,asc', 'triggered,desc']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetMonitorSummarySort', ['name', 'group', 'status', 'tags', 'triggered', 'group,asc', 'group,desc', 'name,asc', 'name,desc', 'status,asc', 'status,desc', 'tags,asc', 'tags,desc', 'triggered,asc', 'triggered,desc']) unless validator.valid?(sort) fail ArgumentError, "invalid value for \"sort\", must be one of #{validator.allowable_values}." end @@ -256,7 +256,7 @@ def sort=(sort) # @param summary_type [Object] Object to be assigned # @!visibility private def summary_type=(summary_type) - validator = EnumAttributeValidator.new('WidgetSummaryType', ['monitors', 'groups', 'combined']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetSummaryType', ['monitors', 'groups', 'combined']) unless validator.valid?(summary_type) fail ArgumentError, "invalid value for \"summary_type\", must be one of #{validator.allowable_values}." end @@ -267,7 +267,7 @@ def summary_type=(summary_type) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -278,7 +278,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('MonitorSummaryWidgetDefinitionType', ['manage_status']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorSummaryWidgetDefinitionType', ['manage_status']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 731fee87fa2..ddeaeb521ab 100644 --- a/lib/datadog_api_client/v1/models/monitor_update_request.rb +++ b/lib/datadog_api_client/v1/models/monitor_update_request.rb @@ -243,7 +243,7 @@ def valid? # @param overall_state [Object] Object to be assigned # @!visibility private def overall_state=(overall_state) - validator = EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) unless validator.valid?(overall_state) fail ArgumentError, "invalid value for \"overall_state\", must be one of #{validator.allowable_values}." end @@ -267,7 +267,7 @@ def priority=(priority) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('MonitorType', ['composite', 'event alert', 'log alert', 'metric alert', 'process alert', 'query alert', 'rum alert', 'service check', 'synthetics alert', 'trace-analytics alert', 'slo alert', 'event-v2 alert', 'audit alert', 'ci-pipelines alert']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorType', ['composite', 'event alert', 'log alert', 'metric alert', 'process alert', 'query alert', 'rum alert', 'service check', 'synthetics alert', 'trace-analytics alert', 'slo alert', 'event-v2 alert', 'audit alert', 'ci-pipelines alert']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 7ce249fcde1..ccacc2d3828 100644 --- a/lib/datadog_api_client/v1/models/note_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/note_widget_definition.rb @@ -198,7 +198,7 @@ def content=(content) # @param text_align [Object] Object to be assigned # @!visibility private def text_align=(text_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(text_align) fail ArgumentError, "invalid value for \"text_align\", must be one of #{validator.allowable_values}." end @@ -209,7 +209,7 @@ def text_align=(text_align) # @param tick_edge [Object] Object to be assigned # @!visibility private def tick_edge=(tick_edge) - validator = EnumAttributeValidator.new('WidgetTickEdge', ['bottom', 'left', 'right', 'top']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTickEdge', ['bottom', 'left', 'right', 'top']) unless validator.valid?(tick_edge) fail ArgumentError, "invalid value for \"tick_edge\", must be one of #{validator.allowable_values}." end @@ -220,7 +220,7 @@ def tick_edge=(tick_edge) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('NoteWidgetDefinitionType', ['note']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NoteWidgetDefinitionType', ['note']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end @@ -234,7 +234,7 @@ def type=(type) # @param vertical_align [Object] Object to be assigned # @!visibility private def vertical_align=(vertical_align) - validator = EnumAttributeValidator.new('WidgetVerticalAlign', ['center', 'top', 'bottom']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetVerticalAlign', ['center', 'top', 'bottom']) unless validator.valid?(vertical_align) fail ArgumentError, "invalid value for \"vertical_align\", must be one of #{validator.allowable_values}." end 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 f13139e1480..a68f6483d3f 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 @@ -125,7 +125,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('NotebookCellResourceType', ['notebook_cells']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookCellResourceType', ['notebook_cells']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 19c0fe6aeab..dff650b7634 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_response.rb @@ -148,7 +148,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('NotebookCellResourceType', ['notebook_cells']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookCellResourceType', ['notebook_cells']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 dc4f02cb653..9452119713f 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 @@ -148,7 +148,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('NotebookCellResourceType', ['notebook_cells']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookCellResourceType', ['notebook_cells']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 d83257161de..f46b21671da 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_data.rb @@ -124,7 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 cf48ca5bc66..a31a111ee7b 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 @@ -181,7 +181,7 @@ def name=(name) # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('NotebookStatus', ['published']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookStatus', ['published']) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end 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 23b7a071746..c34571b6ae3 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 @@ -139,7 +139,7 @@ def definition=(definition) # @param graph_size [Object] Object to be assigned # @!visibility private def graph_size=(graph_size) - validator = EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) unless validator.valid?(graph_size) fail ArgumentError, "invalid value for \"graph_size\", must be one of #{validator.allowable_values}." end 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 f2824476ddc..6e3cc154872 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 @@ -137,7 +137,7 @@ def definition=(definition) # @param graph_size [Object] Object to be assigned # @!visibility private def graph_size=(graph_size) - validator = EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) unless validator.valid?(graph_size) fail ArgumentError, "invalid value for \"graph_size\", must be one of #{validator.allowable_values}." end 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 fd4883a993e..5d2b7a66d70 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 @@ -128,7 +128,7 @@ def definition=(definition) # @param graph_size [Object] Object to be assigned # @!visibility private def graph_size=(graph_size) - validator = EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) unless validator.valid?(graph_size) fail ArgumentError, "invalid value for \"graph_size\", must be one of #{validator.allowable_values}." end 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 20728f90e5b..bfba6ab0f92 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 @@ -124,7 +124,7 @@ def text=(text) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('NotebookMarkdownCellDefinitionType', ['markdown']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookMarkdownCellDefinitionType', ['markdown']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v1/models/notebook_metadata.rb b/lib/datadog_api_client/v1/models/notebook_metadata.rb index 6b0f2cb0e0b..a79dbefe927 100644 --- a/lib/datadog_api_client/v1/models/notebook_metadata.rb +++ b/lib/datadog_api_client/v1/models/notebook_metadata.rb @@ -118,7 +118,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('NotebookMetadataType', ['postmortem', 'runbook', 'investigation', 'documentation', 'report']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookMetadataType', ['postmortem', 'runbook', 'investigation', 'documentation', 'report']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 9b45c7bc214..92af63afe1a 100644 --- a/lib/datadog_api_client/v1/models/notebook_relative_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_relative_time.rb @@ -99,7 +99,7 @@ def valid? # @param live_span [Object] Object to be assigned # @!visibility private def live_span=(live_span) - validator = EnumAttributeValidator.new('WidgetLiveSpan', ['1m', '5m', '10m', '15m', '30m', '1h', '4h', '1d', '2d', '1w', '1mo', '3mo', '6mo', '1y', 'alert']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetLiveSpan', ['1m', '5m', '10m', '15m', '30m', '1h', '4h', '1d', '2d', '1w', '1mo', '3mo', '6mo', '1y', 'alert']) unless validator.valid?(live_span) fail ArgumentError, "invalid value for \"live_span\", must be one of #{validator.allowable_values}." end 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 cda675819fb..59c2983186a 100644 --- a/lib/datadog_api_client/v1/models/notebook_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_response_data.rb @@ -147,7 +147,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 54d7f8733ac..f7251be295d 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 @@ -208,7 +208,7 @@ def name=(name) # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('NotebookStatus', ['published']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookStatus', ['published']) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end 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 5ad4af76874..a1e9e36dfed 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 @@ -137,7 +137,7 @@ def definition=(definition) # @param graph_size [Object] Object to be assigned # @!visibility private def graph_size=(graph_size) - validator = EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) unless validator.valid?(graph_size) fail ArgumentError, "invalid value for \"graph_size\", must be one of #{validator.allowable_values}." end 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 5e228fc3408..576e608e85c 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 @@ -137,7 +137,7 @@ def definition=(definition) # @param graph_size [Object] Object to be assigned # @!visibility private def graph_size=(graph_size) - validator = EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) unless validator.valid?(graph_size) fail ArgumentError, "invalid value for \"graph_size\", must be one of #{validator.allowable_values}." end 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 eb54383ccb0..c54f6a1f0e1 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_data.rb @@ -124,7 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 c8423ca4862..d381a99d31d 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 @@ -181,7 +181,7 @@ def name=(name) # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('NotebookStatus', ['published']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookStatus', ['published']) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end 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 8a04807de96..73ce9cf7ccd 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_data.rb @@ -147,7 +147,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 aea5805ab44..d7fd2bfb69b 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 @@ -190,7 +190,7 @@ def name=(name) # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('NotebookStatus', ['published']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookStatus', ['published']) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v1/models/organization_settings.rb b/lib/datadog_api_client/v1/models/organization_settings.rb index e72134b05ed..4b0efc5f3d0 100644 --- a/lib/datadog_api_client/v1/models/organization_settings.rb +++ b/lib/datadog_api_client/v1/models/organization_settings.rb @@ -179,7 +179,7 @@ def valid? # @param saml_autocreate_access_role [Object] Object to be assigned # @!visibility private def saml_autocreate_access_role=(saml_autocreate_access_role) - validator = EnumAttributeValidator.new('AccessRole', ['st', 'adm', 'ro', 'ERROR']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('AccessRole', ['st', 'adm', 'ro', 'ERROR']) unless validator.valid?(saml_autocreate_access_role) fail ArgumentError, "invalid value for \"saml_autocreate_access_role\", must be one of #{validator.allowable_values}." end 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 4bf1c996c3a..bede168ad68 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 @@ -223,7 +223,7 @@ def requests=(requests) # @param text_align [Object] Object to be assigned # @!visibility private def text_align=(text_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(text_align) fail ArgumentError, "invalid value for \"text_align\", must be one of #{validator.allowable_values}." end @@ -234,7 +234,7 @@ def text_align=(text_align) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -245,7 +245,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('QueryValueWidgetDefinitionType', ['query_value']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('QueryValueWidgetDefinitionType', ['query_value']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 8233799c9f5..b7b72cf5682 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 @@ -227,7 +227,7 @@ def valid? # @param aggregator [Object] Object to be assigned # @!visibility private def aggregator=(aggregator) - validator = EnumAttributeValidator.new('WidgetAggregator', ['avg', 'last', 'max', 'min', 'sum', 'percentile']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetAggregator', ['avg', 'last', 'max', 'min', 'sum', 'percentile']) unless validator.valid?(aggregator) fail ArgumentError, "invalid value for \"aggregator\", must be one of #{validator.allowable_values}." end @@ -238,7 +238,7 @@ def aggregator=(aggregator) # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) unless validator.valid?(response_format) fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." end 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 dd899fedef7..ab3647910a0 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_request.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_request.rb @@ -176,7 +176,7 @@ def valid? # @param aggregator [Object] Object to be assigned # @!visibility private def aggregator=(aggregator) - validator = EnumAttributeValidator.new('ScatterplotWidgetAggregator', ['avg', 'last', 'max', 'min', 'sum']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ScatterplotWidgetAggregator', ['avg', 'last', 'max', 'min', 'sum']) unless validator.valid?(aggregator) fail ArgumentError, "invalid value for \"aggregator\", must be one of #{validator.allowable_values}." end 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 e4fd8c14b7b..befe99fc189 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 @@ -200,7 +200,7 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -211,7 +211,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('ScatterPlotWidgetDefinitionType', ['scatterplot']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ScatterPlotWidgetDefinitionType', ['scatterplot']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 99b2f53e82a..50f8c296d81 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_table_request.rb @@ -117,7 +117,7 @@ def valid? # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) unless validator.valid?(response_format) fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." end 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 3acfd718b16..72646fe6d66 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb @@ -121,7 +121,7 @@ def valid? # @param dimension [Object] Object to be assigned # @!visibility private def dimension=(dimension) - validator = EnumAttributeValidator.new('ScatterplotDimension', ['x', 'y', 'radius', 'color']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ScatterplotDimension', ['x', 'y', 'radius', 'color']) unless validator.valid?(dimension) fail ArgumentError, "invalid value for \"dimension\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v1/models/service_check.rb b/lib/datadog_api_client/v1/models/service_check.rb index c9092615b4e..bdf75e52c00 100644 --- a/lib/datadog_api_client/v1/models/service_check.rb +++ b/lib/datadog_api_client/v1/models/service_check.rb @@ -178,7 +178,7 @@ def host_name=(host_name) # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('ServiceCheckStatus', [0, 1, 2, 3]) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ServiceCheckStatus', [0, 1, 2, 3]) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end 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 0ca63bc39f7..8d37e2e40ed 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective.rb @@ -271,7 +271,7 @@ def thresholds=(thresholds) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 9cf6077799b..cf602a29a3d 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 @@ -213,7 +213,7 @@ def thresholds=(thresholds) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 8b014810cff..107e0607aaf 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 @@ -194,7 +194,7 @@ def service=(service) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -205,7 +205,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('ServiceMapWidgetDefinitionType', ['servicemap']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ServiceMapWidgetDefinitionType', ['servicemap']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 25ab3d43e1c..8115f27c9d7 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 @@ -248,7 +248,7 @@ def valid? # @param display_format [Object] Object to be assigned # @!visibility private def display_format=(display_format) - validator = EnumAttributeValidator.new('WidgetServiceSummaryDisplayFormat', ['one_column', 'two_column', 'three_column']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetServiceSummaryDisplayFormat', ['one_column', 'two_column', 'three_column']) unless validator.valid?(display_format) fail ArgumentError, "invalid value for \"display_format\", must be one of #{validator.allowable_values}." end @@ -279,7 +279,7 @@ def service=(service) # @param size_format [Object] Object to be assigned # @!visibility private def size_format=(size_format) - validator = EnumAttributeValidator.new('WidgetSizeFormat', ['small', 'medium', 'large']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetSizeFormat', ['small', 'medium', 'large']) unless validator.valid?(size_format) fail ArgumentError, "invalid value for \"size_format\", must be one of #{validator.allowable_values}." end @@ -300,7 +300,7 @@ def span_name=(span_name) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -311,7 +311,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('ServiceSummaryWidgetDefinitionType', ['trace_service']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ServiceSummaryWidgetDefinitionType', ['trace_service']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 494aedd83f3..fd9497a697b 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 @@ -147,7 +147,7 @@ def message=(message) # @param timeframe [Object] Object to be assigned # @!visibility private def timeframe=(timeframe) - validator = EnumAttributeValidator.new('SLOErrorTimeframe', ['7d', '30d', '90d', 'all']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOErrorTimeframe', ['7d', '30d', '90d', 'all']) unless validator.valid?(timeframe) fail ArgumentError, "invalid value for \"timeframe\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v1/models/slo_correction.rb b/lib/datadog_api_client/v1/models/slo_correction.rb index a2f0d1a6549..8328b490657 100644 --- a/lib/datadog_api_client/v1/models/slo_correction.rb +++ b/lib/datadog_api_client/v1/models/slo_correction.rb @@ -115,7 +115,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SLOCorrectionType', ['correction']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOCorrectionType', ['correction']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 535f3fb9399..afbfb3af3fe 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 @@ -110,7 +110,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SLOCorrectionType', ['correction']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOCorrectionType', ['correction']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 7a689e0fd18..2eb18d47efb 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 @@ -171,7 +171,7 @@ def valid? # @param category [Object] Object to be assigned # @!visibility private def category=(category) - validator = EnumAttributeValidator.new('SLOCorrectionCategory', ['Scheduled Maintenance', 'Outside Business Hours', 'Deployment', 'Other']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOCorrectionCategory', ['Scheduled Maintenance', 'Outside Business Hours', 'Deployment', 'Other']) unless validator.valid?(category) fail ArgumentError, "invalid value for \"category\", must be one of #{validator.allowable_values}." end 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 7fd18d972a8..56b0c2cb658 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 @@ -198,7 +198,7 @@ def valid? # @param category [Object] Object to be assigned # @!visibility private def category=(category) - validator = EnumAttributeValidator.new('SLOCorrectionCategory', ['Scheduled Maintenance', 'Outside Business Hours', 'Deployment', 'Other']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOCorrectionCategory', ['Scheduled Maintenance', 'Outside Business Hours', 'Deployment', 'Other']) unless validator.valid?(category) fail ArgumentError, "invalid value for \"category\", must be one of #{validator.allowable_values}." end 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 50a07797c66..ef83ed783c4 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 @@ -106,7 +106,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SLOCorrectionType', ['correction']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOCorrectionType', ['correction']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 e48a05d8e3f..b6cad6a85e4 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 @@ -150,7 +150,7 @@ def valid? # @param category [Object] Object to be assigned # @!visibility private def category=(category) - validator = EnumAttributeValidator.new('SLOCorrectionCategory', ['Scheduled Maintenance', 'Outside Business Hours', 'Deployment', 'Other']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOCorrectionCategory', ['Scheduled Maintenance', 'Outside Business Hours', 'Deployment', 'Other']) unless validator.valid?(category) fail ArgumentError, "invalid value for \"category\", must be one of #{validator.allowable_values}." end 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 32e8677f418..fd2c801f161 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 @@ -193,7 +193,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end @@ -204,7 +204,7 @@ def type=(type) # @param type_id [Object] Object to be assigned # @!visibility private def type_id=(type_id) - validator = EnumAttributeValidator.new('SLOTypeNumeric', [0, 1]) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOTypeNumeric', [0, 1]) unless validator.valid?(type_id) fail ArgumentError, "invalid value for \"type_id\", must be one of #{validator.allowable_values}." end 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 0da0fc675a0..eb0ceb8ab68 100644 --- a/lib/datadog_api_client/v1/models/slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_response_data.rb @@ -250,7 +250,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v1/models/slo_threshold.rb b/lib/datadog_api_client/v1/models/slo_threshold.rb index 00bfffe168d..4b76a4c7d3d 100644 --- a/lib/datadog_api_client/v1/models/slo_threshold.rb +++ b/lib/datadog_api_client/v1/models/slo_threshold.rb @@ -158,7 +158,7 @@ def target=(target) # @param timeframe [Object] Object to be assigned # @!visibility private def timeframe=(timeframe) - validator = EnumAttributeValidator.new('SLOTimeframe', ['7d', '30d', '90d', 'custom']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOTimeframe', ['7d', '30d', '90d', 'custom']) unless validator.valid?(timeframe) fail ArgumentError, "invalid value for \"timeframe\", must be one of #{validator.allowable_values}." end 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 2ddf7bfd7f0..9be7df082ee 100644 --- a/lib/datadog_api_client/v1/models/slo_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/slo_widget_definition.rb @@ -190,7 +190,7 @@ def valid? # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -201,7 +201,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SLOWidgetDefinitionType', ['slo']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOWidgetDefinitionType', ['slo']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end @@ -215,7 +215,7 @@ def type=(type) # @param view_mode [Object] Object to be assigned # @!visibility private def view_mode=(view_mode) - validator = EnumAttributeValidator.new('WidgetViewMode', ['overall', 'component', 'both']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetViewMode', ['overall', 'component', 'both']) unless validator.valid?(view_mode) fail ArgumentError, "invalid value for \"view_mode\", must be one of #{validator.allowable_values}." end 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 cccfbbbb54c..0c345b07231 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb @@ -198,7 +198,7 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -209,7 +209,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SunburstWidgetDefinitionType', ['sunburst']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SunburstWidgetDefinitionType', ['sunburst']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 48de6282f47..644306905ac 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 @@ -117,7 +117,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SunburstWidgetLegendInlineAutomaticType', ['inline', 'automatic']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SunburstWidgetLegendInlineAutomaticType', ['inline', 'automatic']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 c7ea3ea4e60..7e747423031 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 @@ -99,7 +99,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SunburstWidgetLegendTableType', ['table', 'none']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SunburstWidgetLegendTableType', ['table', 'none']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 1b7ae4181e2..9a90bd28b67 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_request.rb @@ -207,7 +207,7 @@ def valid? # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) unless validator.valid?(response_format) fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v1/models/synthetics_api_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_step.rb index cad6becd175..06e6642f943 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_step.rb @@ -211,7 +211,7 @@ def request=(request) # @param subtype [Object] Object to be assigned # @!visibility private def subtype=(subtype) - validator = EnumAttributeValidator.new('SyntheticsAPIStepSubtype', ['http']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsAPIStepSubtype', ['http']) unless validator.valid?(subtype) fail ArgumentError, "invalid value for \"subtype\", must be one of #{validator.allowable_values}." end 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 77d3aec2119..bccd7a92401 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test.rb @@ -253,7 +253,7 @@ def options=(options) # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end @@ -264,7 +264,7 @@ def status=(status) # @param subtype [Object] Object to be assigned # @!visibility private def subtype=(subtype) - validator = EnumAttributeValidator.new('SyntheticsTestDetailsSubType', ['http', 'ssl', 'tcp', 'dns', 'multi', 'icmp', 'udp', 'websocket']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestDetailsSubType', ['http', 'ssl', 'tcp', 'dns', 'multi', 'icmp', 'udp', 'websocket']) unless validator.valid?(subtype) fail ArgumentError, "invalid value for \"subtype\", must be one of #{validator.allowable_values}." end @@ -275,7 +275,7 @@ def subtype=(subtype) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SyntheticsAPITestType', ['api']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsAPITestType', ['api']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 2de718ad705..a43dd6299d0 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 @@ -168,7 +168,7 @@ def valid? # @param event_type [Object] Object to be assigned # @!visibility private def event_type=(event_type) - validator = EnumAttributeValidator.new('SyntheticsTestProcessStatus', ['not_scheduled', 'scheduled', 'started', 'finished', 'finished_with_error']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestProcessStatus', ['not_scheduled', 'scheduled', 'started', 'finished', 'finished_with_error']) unless validator.valid?(event_type) fail ArgumentError, "invalid value for \"event_type\", must be one of #{validator.allowable_values}." end 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 0e040e1bc8e..978d82bf5b6 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 @@ -104,7 +104,7 @@ def valid? # @param code [Object] Object to be assigned # @!visibility private def code=(code) - validator = EnumAttributeValidator.new('SyntheticsApiTestFailureCode', ['BODY_TOO_LARGE', 'DENIED', 'TOO_MANY_REDIRECTS', 'AUTHENTICATION_ERROR', 'DECRYPTION', 'INVALID_CHAR_IN_HEADER', 'HEADER_TOO_LARGE', 'HEADERS_INCOMPATIBLE_CONTENT_LENGTH', 'INVALID_REQUEST', 'REQUIRES_UPDATE', 'UNESCAPED_CHARACTERS_IN_REQUEST_PATH', 'MALFORMED_RESPONSE', 'INCORRECT_ASSERTION', 'CONNREFUSED', 'CONNRESET', 'DNS', 'HOSTUNREACH', 'NETUNREACH', 'TIMEOUT', 'SSL', 'OCSP', 'INVALID_TEST', 'TUNNEL', 'WEBSOCKET', 'UNKNOWN', 'INTERNAL_ERROR']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsApiTestFailureCode', ['BODY_TOO_LARGE', 'DENIED', 'TOO_MANY_REDIRECTS', 'AUTHENTICATION_ERROR', 'DECRYPTION', 'INVALID_CHAR_IN_HEADER', 'HEADER_TOO_LARGE', 'HEADERS_INCOMPATIBLE_CONTENT_LENGTH', 'INVALID_REQUEST', 'REQUIRES_UPDATE', 'UNESCAPED_CHARACTERS_IN_REQUEST_PATH', 'MALFORMED_RESPONSE', 'INCORRECT_ASSERTION', 'CONNREFUSED', 'CONNRESET', 'DNS', 'HOSTUNREACH', 'NETUNREACH', 'TIMEOUT', 'SSL', 'OCSP', 'INVALID_TEST', 'TUNNEL', 'WEBSOCKET', 'UNKNOWN', 'INTERNAL_ERROR']) unless validator.valid?(code) fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}." end 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 4f4c368d858..5c6813be6c5 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 @@ -152,7 +152,7 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end 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 7de5a49cd9f..313492093a1 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 @@ -134,7 +134,7 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end 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 f0ed6f96d97..44373658995 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 @@ -130,7 +130,7 @@ def valid? # @param operator [Object] Object to be assigned # @!visibility private def operator=(operator) - validator = EnumAttributeValidator.new('SyntheticsAssertionJSONPathOperator', ['validatesJSONPath']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsAssertionJSONPathOperator', ['validatesJSONPath']) unless validator.valid?(operator) fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}." end @@ -144,7 +144,7 @@ def operator=(operator) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SyntheticsAssertionType', ['body', 'header', 'statusCode', 'certificate', 'responseTime', 'property', 'recordEvery', 'recordSome', 'tlsVersion', 'minTlsVersion', 'latency', 'packetLossPercentage', 'packetsReceived', 'networkHop', 'receivedMessage']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsAssertionType', ['body', 'header', 'statusCode', 'certificate', 'responseTime', 'property', 'recordEvery', 'recordSome', 'tlsVersion', 'minTlsVersion', 'latency', 'packetLossPercentage', 'packetsReceived', 'networkHop', 'receivedMessage']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 2a5c30ffdb5..811ee912142 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb @@ -134,7 +134,7 @@ def valid? # @param operator [Object] Object to be assigned # @!visibility private def operator=(operator) - validator = EnumAttributeValidator.new('SyntheticsAssertionOperator', ['contains', 'doesNotContain', 'is', 'isNot', 'lessThan', 'lessThanOrEqual', 'moreThan', 'moreThanOrEqual', 'matches', 'doesNotMatch', 'validates', 'isInMoreThan', 'isInLessThan']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsAssertionOperator', ['contains', 'doesNotContain', 'is', 'isNot', 'lessThan', 'lessThanOrEqual', 'moreThan', 'moreThanOrEqual', 'matches', 'doesNotMatch', 'validates', 'isInMoreThan', 'isInLessThan']) unless validator.valid?(operator) fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}." end @@ -158,7 +158,7 @@ def target=(target) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SyntheticsAssertionType', ['body', 'header', 'statusCode', 'certificate', 'responseTime', 'property', 'recordEvery', 'recordSome', 'tlsVersion', 'minTlsVersion', 'latency', 'packetLossPercentage', 'packetsReceived', 'networkHop', 'receivedMessage']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsAssertionType', ['body', 'header', 'statusCode', 'certificate', 'responseTime', 'property', 'recordEvery', 'recordSome', 'tlsVersion', 'minTlsVersion', 'latency', 'packetLossPercentage', 'packetsReceived', 'networkHop', 'receivedMessage']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 030e4862cdd..c296ae046c9 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 @@ -137,7 +137,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SyntheticsBasicAuthNTLMType', ['ntlm']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsBasicAuthNTLMType', ['ntlm']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 875793b2cad..f2da613cd57 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 @@ -174,7 +174,7 @@ def secret_key=(secret_key) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SyntheticsBasicAuthSigv4Type', ['sigv4']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsBasicAuthSigv4Type', ['sigv4']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 0a5ab759625..7674eff301b 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 @@ -137,7 +137,7 @@ def password=(password) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SyntheticsBasicAuthWebType', ['web']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsBasicAuthWebType', ['web']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 1f4cd08851c..4b6e7ab2018 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 @@ -115,7 +115,7 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('SyntheticsStatus', ['passed', 'skipped', 'failed']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsStatus', ['passed', 'skipped', 'failed']) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end 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 e97e72908c0..0d6575da49e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb @@ -176,7 +176,7 @@ def valid? # @param device [Object] Object to be assigned # @!visibility private def device=(device) - validator = EnumAttributeValidator.new('SyntheticsDeviceID', ['laptop_large', 'tablet', 'mobile_small', 'chrome.laptop_large', 'chrome.tablet', 'chrome.mobile_small', 'firefox.laptop_large', 'firefox.tablet', 'firefox.mobile_small', 'edge.laptop_large', 'edge.tablet', 'edge.mobile_small']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsDeviceID', ['laptop_large', 'tablet', 'mobile_small', 'chrome.laptop_large', 'chrome.tablet', 'chrome.mobile_small', 'firefox.laptop_large', 'firefox.tablet', 'firefox.mobile_small', 'edge.laptop_large', 'edge.tablet', 'edge.mobile_small']) unless validator.valid?(device) fail ArgumentError, "invalid value for \"device\", must be one of #{validator.allowable_values}." end @@ -187,7 +187,7 @@ def device=(device) # @param execution_rule [Object] Object to be assigned # @!visibility private def execution_rule=(execution_rule) - validator = EnumAttributeValidator.new('SyntheticsTestExecutionRule', ['blocking', 'non_blocking', 'skipped']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestExecutionRule', ['blocking', 'non_blocking', 'skipped']) unless validator.valid?(execution_rule) fail ArgumentError, "invalid value for \"execution_rule\", must be one of #{validator.allowable_values}." end @@ -198,7 +198,7 @@ def execution_rule=(execution_rule) # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('SyntheticsStatus', ['passed', 'skipped', 'failed']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsStatus', ['passed', 'skipped', 'failed']) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end @@ -209,7 +209,7 @@ def status=(status) # @param test_type [Object] Object to be assigned # @!visibility private def test_type=(test_type) - validator = EnumAttributeValidator.new('SyntheticsTestDetailsType', ['api', 'browser']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestDetailsType', ['api', 'browser']) unless validator.valid?(test_type) fail ArgumentError, "invalid value for \"test_type\", must be one of #{validator.allowable_values}." end 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 d5881eaf387..ab72016a3e1 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_error.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_error.rb @@ -154,7 +154,7 @@ def name=(name) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SyntheticsBrowserErrorType', ['network', 'js']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsBrowserErrorType', ['network', 'js']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 714aeceb399..0f215e405bb 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb @@ -254,7 +254,7 @@ def options=(options) # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end @@ -265,7 +265,7 @@ def status=(status) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SyntheticsBrowserTestType', ['browser']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsBrowserTestType', ['browser']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 05d16468678..ac841b24210 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 @@ -104,7 +104,7 @@ def valid? # @param code [Object] Object to be assigned # @!visibility private def code=(code) - validator = EnumAttributeValidator.new('SyntheticsBrowserTestFailureCode', ['API_REQUEST_FAILURE', 'ASSERTION_FAILURE', 'DOWNLOAD_FILE_TOO_LARGE', 'ELEMENT_NOT_INTERACTABLE', 'EMAIL_VARIABLE_NOT_DEFINED', 'EVALUATE_JAVASCRIPT', 'EVALUATE_JAVASCRIPT_CONTEXT', 'EXTRACT_VARIABLE', 'FORBIDDEN_URL', 'FRAME_DETACHED', 'INCONSISTENCIES', 'INTERNAL_ERROR', 'INVALID_TYPE_TEXT_DELAY', 'INVALID_URL', 'INVALID_VARIABLE_PATTERN', 'INVISIBLE_ELEMENT', 'LOCATE_ELEMENT', 'NAVIGATE_TO_LINK', 'OPEN_URL', 'PRESS_KEY', 'SERVER_CERTIFICATE', 'SELECT_OPTION', 'STEP_TIMEOUT', 'SUB_TEST_NOT_PASSED', 'TEST_TIMEOUT', 'TOO_MANY_HTTP_REQUESTS', 'UNAVAILABLE_BROWSER', 'UNKNOWN', 'UNSUPPORTED_AUTH_SCHEMA', 'UPLOAD_FILES_ELEMENT_TYPE', 'UPLOAD_FILES_DIALOG', 'UPLOAD_FILES_DYNAMIC_ELEMENT', 'UPLOAD_FILES_NAME']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsBrowserTestFailureCode', ['API_REQUEST_FAILURE', 'ASSERTION_FAILURE', 'DOWNLOAD_FILE_TOO_LARGE', 'ELEMENT_NOT_INTERACTABLE', 'EMAIL_VARIABLE_NOT_DEFINED', 'EVALUATE_JAVASCRIPT', 'EVALUATE_JAVASCRIPT_CONTEXT', 'EXTRACT_VARIABLE', 'FORBIDDEN_URL', 'FRAME_DETACHED', 'INCONSISTENCIES', 'INTERNAL_ERROR', 'INVALID_TYPE_TEXT_DELAY', 'INVALID_URL', 'INVALID_VARIABLE_PATTERN', 'INVISIBLE_ELEMENT', 'LOCATE_ELEMENT', 'NAVIGATE_TO_LINK', 'OPEN_URL', 'PRESS_KEY', 'SERVER_CERTIFICATE', 'SELECT_OPTION', 'STEP_TIMEOUT', 'SUB_TEST_NOT_PASSED', 'TEST_TIMEOUT', 'TOO_MANY_HTTP_REQUESTS', 'UNAVAILABLE_BROWSER', 'UNKNOWN', 'UNSUPPORTED_AUTH_SCHEMA', 'UPLOAD_FILES_ELEMENT_TYPE', 'UPLOAD_FILES_DIALOG', 'UPLOAD_FILES_DYNAMIC_ELEMENT', 'UPLOAD_FILES_NAME']) unless validator.valid?(code) fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}." end 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 6bcbcf8b1ca..6eeac79e0d9 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 @@ -152,7 +152,7 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end 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 94f17cdfc1c..225808641e1 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 @@ -134,7 +134,7 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end 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 4551ab68041..e00b4b51863 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb @@ -150,7 +150,7 @@ def name=(name) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SyntheticsBrowserVariableType', ['element', 'email', 'global', 'javascript', 'text']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsBrowserVariableType', ['element', 'email', 'global', 'javascript', 'text']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 d436e1ca857..70395b0c577 100644 --- a/lib/datadog_api_client/v1/models/synthetics_config_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_config_variable.rb @@ -149,7 +149,7 @@ def name=(name) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SyntheticsConfigVariableType', ['global', 'text']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsConfigVariableType', ['global', 'text']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v1/models/synthetics_device.rb b/lib/datadog_api_client/v1/models/synthetics_device.rb index eafd4292ca3..a7915e6e37c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_device.rb +++ b/lib/datadog_api_client/v1/models/synthetics_device.rb @@ -157,7 +157,7 @@ def height=(height) # @param id [Object] Object to be assigned # @!visibility private def id=(id) - validator = EnumAttributeValidator.new('SyntheticsDeviceID', ['laptop_large', 'tablet', 'mobile_small', 'chrome.laptop_large', 'chrome.tablet', 'chrome.mobile_small', 'firefox.laptop_large', 'firefox.tablet', 'firefox.mobile_small', 'edge.laptop_large', 'edge.tablet', 'edge.mobile_small']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsDeviceID', ['laptop_large', 'tablet', 'mobile_small', 'chrome.laptop_large', 'chrome.tablet', 'chrome.mobile_small', 'firefox.laptop_large', 'firefox.tablet', 'firefox.mobile_small', 'edge.laptop_large', 'edge.tablet', 'edge.mobile_small']) unless validator.valid?(id) fail ArgumentError, "invalid value for \"id\", must be one of #{validator.allowable_values}." end 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 ae46cb89409..4f7673a2c08 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 @@ -131,7 +131,7 @@ def parser=(parser) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SyntheticsGlobalVariableParseTestOptionsType', ['http_body', 'http_header']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsGlobalVariableParseTestOptionsType', ['http_body', 'http_header']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 4449de204b3..c0cbf7616cc 100644 --- a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb @@ -122,7 +122,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SyntheticsGlobalVariableParseTestOptionsType', ['http_body', 'http_header']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsGlobalVariableParseTestOptionsType', ['http_body', 'http_header']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v1/models/synthetics_step.rb b/lib/datadog_api_client/v1/models/synthetics_step.rb index 5125a5be78c..a6609b549a9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step.rb @@ -131,7 +131,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SyntheticsStepType', ['assertCurrentUrl', 'assertElementAttribute', 'assertElementContent', 'assertElementPresent', 'assertEmail', 'assertFileDownload', 'assertFromJavascript', 'assertPageContains', 'assertPageLacks', 'click', 'extractFromJavascript', 'extractVariable', 'goToEmailLink', 'goToUrl', 'goToUrlAndMeasureTti', 'hover', 'playSubTest', 'pressKey', 'refresh', 'runApiTest', 'scroll', 'selectOption', 'typeText', 'uploadFiles', 'wait']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsStepType', ['assertCurrentUrl', 'assertElementAttribute', 'assertElementContent', 'assertElementPresent', 'assertEmail', 'assertFileDownload', 'assertFromJavascript', 'assertPageContains', 'assertPageLacks', 'click', 'extractFromJavascript', 'extractVariable', 'goToEmailLink', 'goToUrl', 'goToUrlAndMeasureTti', 'hover', 'playSubTest', 'pressKey', 'refresh', 'runApiTest', 'scroll', 'selectOption', 'typeText', 'uploadFiles', 'wait']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 71e3dd49694..34b080dde35 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_detail.rb @@ -248,7 +248,7 @@ def valid? # @param check_type [Object] Object to be assigned # @!visibility private def check_type=(check_type) - validator = EnumAttributeValidator.new('SyntheticsCheckType', ['equals', 'notEquals', 'contains', 'notContains', 'startsWith', 'notStartsWith', 'greater', 'lower', 'greaterEquals', 'lowerEquals', 'matchRegex', 'between', 'isEmpty', 'notIsEmpty']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsCheckType', ['equals', 'notEquals', 'contains', 'notContains', 'startsWith', 'notStartsWith', 'greater', 'lower', 'greaterEquals', 'lowerEquals', 'matchRegex', 'between', 'isEmpty', 'notIsEmpty']) unless validator.valid?(check_type) fail ArgumentError, "invalid value for \"check_type\", must be one of #{validator.allowable_values}." end @@ -259,7 +259,7 @@ def check_type=(check_type) # @param playing_tab [Object] Object to be assigned # @!visibility private def playing_tab=(playing_tab) - validator = EnumAttributeValidator.new('SyntheticsPlayingTab', [-1, 0, 1, 2, 3]) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsPlayingTab', [-1, 0, 1, 2, 3]) unless validator.valid?(playing_tab) fail ArgumentError, "invalid value for \"playing_tab\", must be one of #{validator.allowable_values}." end @@ -270,7 +270,7 @@ def playing_tab=(playing_tab) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SyntheticsStepType', ['assertCurrentUrl', 'assertElementAttribute', 'assertElementContent', 'assertElementPresent', 'assertEmail', 'assertFileDownload', 'assertFromJavascript', 'assertPageContains', 'assertPageLacks', 'click', 'extractFromJavascript', 'extractVariable', 'goToEmailLink', 'goToUrl', 'goToUrlAndMeasureTti', 'hover', 'playSubTest', 'pressKey', 'refresh', 'runApiTest', 'scroll', 'selectOption', 'typeText', 'uploadFiles', 'wait']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsStepType', ['assertCurrentUrl', 'assertElementAttribute', 'assertElementContent', 'assertElementPresent', 'assertEmail', 'assertFileDownload', 'assertFromJavascript', 'assertPageContains', 'assertPageLacks', 'click', 'extractFromJavascript', 'extractVariable', 'goToEmailLink', 'goToUrl', 'goToUrlAndMeasureTti', 'hover', 'playSubTest', 'pressKey', 'refresh', 'runApiTest', 'scroll', 'selectOption', 'typeText', 'uploadFiles', 'wait']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 d20a330f395..069829e1c66 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 @@ -122,7 +122,7 @@ def message=(message) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SyntheticsWarningType', ['user_locator']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsWarningType', ['user_locator']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 4a6dd28dde6..6ea14937f46 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details.rb @@ -211,7 +211,7 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end @@ -222,7 +222,7 @@ def status=(status) # @param subtype [Object] Object to be assigned # @!visibility private def subtype=(subtype) - validator = EnumAttributeValidator.new('SyntheticsTestDetailsSubType', ['http', 'ssl', 'tcp', 'dns', 'multi', 'icmp', 'udp', 'websocket']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestDetailsSubType', ['http', 'ssl', 'tcp', 'dns', 'multi', 'icmp', 'udp', 'websocket']) unless validator.valid?(subtype) fail ArgumentError, "invalid value for \"subtype\", must be one of #{validator.allowable_values}." end @@ -233,7 +233,7 @@ def subtype=(subtype) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SyntheticsTestDetailsType', ['api', 'browser']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestDetailsType', ['api', 'browser']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 9fe2b239a67..7b7867f2e16 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request.rb @@ -297,7 +297,7 @@ def dns_server_port=(dns_server_port) # @param method [Object] Object to be assigned # @!visibility private def method=(method) - validator = EnumAttributeValidator.new('HTTPMethod', ['GET', 'POST', 'PATCH', 'PUT', 'DELETE', 'HEAD', 'OPTIONS']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('HTTPMethod', ['GET', 'POST', 'PATCH', 'PUT', 'DELETE', 'HEAD', 'OPTIONS']) unless validator.valid?(method) fail ArgumentError, "invalid value for \"method\", must be one of #{validator.allowable_values}." end 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 c8d9f646d58..c2e7000be63 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 @@ -122,7 +122,7 @@ def valid? # @param device [Object] Object to be assigned # @!visibility private def device=(device) - validator = EnumAttributeValidator.new('SyntheticsDeviceID', ['laptop_large', 'tablet', 'mobile_small', 'chrome.laptop_large', 'chrome.tablet', 'chrome.mobile_small', 'firefox.laptop_large', 'firefox.tablet', 'firefox.mobile_small', 'edge.laptop_large', 'edge.tablet', 'edge.mobile_small']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsDeviceID', ['laptop_large', 'tablet', 'mobile_small', 'chrome.laptop_large', 'chrome.tablet', 'chrome.mobile_small', 'firefox.laptop_large', 'firefox.tablet', 'firefox.mobile_small', 'edge.laptop_large', 'edge.tablet', 'edge.mobile_small']) unless validator.valid?(device) fail ArgumentError, "invalid value for \"device\", must be one of #{validator.allowable_values}." end 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 d092f8823c2..bc409e8bd2d 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 @@ -96,7 +96,7 @@ def valid? # @param new_status [Object] Object to be assigned # @!visibility private def new_status=(new_status) - validator = EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) unless validator.valid?(new_status) fail ArgumentError, "invalid value for \"new_status\", must be one of #{validator.allowable_values}." end 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 003811302ac..85eac37e833 100644 --- a/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb +++ b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb @@ -108,7 +108,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SyntheticsGlobalVariableParserType', ['raw', 'json_path', 'regex', 'x_path']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsGlobalVariableParserType', ['raw', 'json_path', 'regex', 'x_path']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 fee0c274895..9414646141c 100644 --- a/lib/datadog_api_client/v1/models/table_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/table_widget_definition.rb @@ -172,7 +172,7 @@ def valid? # @param has_search_bar [Object] Object to be assigned # @!visibility private def has_search_bar=(has_search_bar) - validator = EnumAttributeValidator.new('TableWidgetHasSearchBar', ['always', 'never', 'auto']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TableWidgetHasSearchBar', ['always', 'never', 'auto']) unless validator.valid?(has_search_bar) fail ArgumentError, "invalid value for \"has_search_bar\", must be one of #{validator.allowable_values}." end @@ -193,7 +193,7 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -204,7 +204,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('TableWidgetDefinitionType', ['query_table']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TableWidgetDefinitionType', ['query_table']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 c35e09fc4e6..559efb1c894 100644 --- a/lib/datadog_api_client/v1/models/table_widget_request.rb +++ b/lib/datadog_api_client/v1/models/table_widget_request.rb @@ -265,7 +265,7 @@ def valid? # @param aggregator [Object] Object to be assigned # @!visibility private def aggregator=(aggregator) - validator = EnumAttributeValidator.new('WidgetAggregator', ['avg', 'last', 'max', 'min', 'sum', 'percentile']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetAggregator', ['avg', 'last', 'max', 'min', 'sum', 'percentile']) unless validator.valid?(aggregator) fail ArgumentError, "invalid value for \"aggregator\", must be one of #{validator.allowable_values}." end @@ -276,7 +276,7 @@ def aggregator=(aggregator) # @param order [Object] Object to be assigned # @!visibility private def order=(order) - validator = EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) unless validator.valid?(order) fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." end @@ -287,7 +287,7 @@ def order=(order) # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) unless validator.valid?(response_format) fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." end 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 90d268d24b6..ca73d55d13f 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb @@ -245,7 +245,7 @@ def valid? # @param legend_layout [Object] Object to be assigned # @!visibility private def legend_layout=(legend_layout) - validator = EnumAttributeValidator.new('TimeseriesWidgetLegendLayout', ['auto', 'horizontal', 'vertical']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TimeseriesWidgetLegendLayout', ['auto', 'horizontal', 'vertical']) unless validator.valid?(legend_layout) fail ArgumentError, "invalid value for \"legend_layout\", must be one of #{validator.allowable_values}." end @@ -269,7 +269,7 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -280,7 +280,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('TimeseriesWidgetDefinitionType', ['timeseries']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TimeseriesWidgetDefinitionType', ['timeseries']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 1b887031630..d30719328dc 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb @@ -245,7 +245,7 @@ def valid? # @param display_type [Object] Object to be assigned # @!visibility private def display_type=(display_type) - validator = EnumAttributeValidator.new('WidgetDisplayType', ['area', 'bars', 'line']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetDisplayType', ['area', 'bars', 'line']) unless validator.valid?(display_type) fail ArgumentError, "invalid value for \"display_type\", must be one of #{validator.allowable_values}." end @@ -256,7 +256,7 @@ def display_type=(display_type) # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) unless validator.valid?(response_format) fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." end 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 b5301ed8f02..50cb51b088e 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_definition.rb @@ -173,7 +173,7 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) unless validator.valid?(title_align) fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." end @@ -184,7 +184,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('ToplistWidgetDefinitionType', ['toplist']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ToplistWidgetDefinitionType', ['toplist']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 fe4548fe088..2a34d564edc 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_request.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_request.rb @@ -241,7 +241,7 @@ def conditional_formats=(conditional_formats) # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) unless validator.valid?(response_format) fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." end 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 ab438971be3..1f25ee5f797 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 @@ -162,7 +162,7 @@ def valid? # @param color_by [Object] Object to be assigned # @!visibility private def color_by=(color_by) - validator = EnumAttributeValidator.new('TreeMapColorBy', ['user']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TreeMapColorBy', ['user']) unless validator.valid?(color_by) fail ArgumentError, "invalid value for \"color_by\", must be one of #{validator.allowable_values}." end @@ -173,7 +173,7 @@ def color_by=(color_by) # @param group_by [Object] Object to be assigned # @!visibility private def group_by=(group_by) - validator = EnumAttributeValidator.new('TreeMapGroupBy', ['user', 'family', 'process']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TreeMapGroupBy', ['user', 'family', 'process']) unless validator.valid?(group_by) fail ArgumentError, "invalid value for \"group_by\", must be one of #{validator.allowable_values}." end @@ -200,7 +200,7 @@ def requests=(requests) # @param size_by [Object] Object to be assigned # @!visibility private def size_by=(size_by) - validator = EnumAttributeValidator.new('TreeMapSizeBy', ['pct_cpu', 'pct_mem']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TreeMapSizeBy', ['pct_cpu', 'pct_mem']) unless validator.valid?(size_by) fail ArgumentError, "invalid value for \"size_by\", must be one of #{validator.allowable_values}." end @@ -211,7 +211,7 @@ def size_by=(size_by) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('TreeMapWidgetDefinitionType', ['treemap']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TreeMapWidgetDefinitionType', ['treemap']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 950b28e7e41..94ed2de00f8 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 @@ -126,7 +126,7 @@ def valid? # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) unless validator.valid?(response_format) fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." end 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 91e8a3e3505..d5006471d2c 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 @@ -115,7 +115,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('UsageReportsType', ['reports']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('UsageReportsType', ['reports']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 fd512423735..87172437db7 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 @@ -115,7 +115,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('UsageReportsType', ['reports']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('UsageReportsType', ['reports']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 764b6f3891f..3fb3d28166d 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 @@ -122,7 +122,7 @@ def valid? # @param metric_category [Object] Object to be assigned # @!visibility private def metric_category=(metric_category) - validator = EnumAttributeValidator.new('UsageMetricCategory', ['standard', 'custom']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('UsageMetricCategory', ['standard', 'custom']) unless validator.valid?(metric_category) fail ArgumentError, "invalid value for \"metric_category\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v1/models/user.rb b/lib/datadog_api_client/v1/models/user.rb index ed03bf40564..3aff86234bb 100644 --- a/lib/datadog_api_client/v1/models/user.rb +++ b/lib/datadog_api_client/v1/models/user.rb @@ -151,7 +151,7 @@ def valid? # @param access_role [Object] Object to be assigned # @!visibility private def access_role=(access_role) - validator = EnumAttributeValidator.new('AccessRole', ['st', 'adm', 'ro', 'ERROR']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('AccessRole', ['st', 'adm', 'ro', 'ERROR']) unless validator.valid?(access_role) fail ArgumentError, "invalid value for \"access_role\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v1/models/webhooks_integration.rb b/lib/datadog_api_client/v1/models/webhooks_integration.rb index 232f13cc6c2..b5f9840aa81 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration.rb @@ -149,7 +149,7 @@ def valid? # @param encode_as [Object] Object to be assigned # @!visibility private def encode_as=(encode_as) - validator = EnumAttributeValidator.new('WebhooksIntegrationEncoding', ['json', 'form']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WebhooksIntegrationEncoding', ['json', 'form']) unless validator.valid?(encode_as) fail ArgumentError, "invalid value for \"encode_as\", must be one of #{validator.allowable_values}." end 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 9df35fb7681..ae39a4c3917 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 @@ -142,7 +142,7 @@ def valid? # @param encode_as [Object] Object to be assigned # @!visibility private def encode_as=(encode_as) - validator = EnumAttributeValidator.new('WebhooksIntegrationEncoding', ['json', 'form']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WebhooksIntegrationEncoding', ['json', 'form']) unless validator.valid?(encode_as) fail ArgumentError, "invalid value for \"encode_as\", must be one of #{validator.allowable_values}." end 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 adbca2c0633..b70eac2921b 100644 --- a/lib/datadog_api_client/v1/models/widget_conditional_format.rb +++ b/lib/datadog_api_client/v1/models/widget_conditional_format.rb @@ -179,7 +179,7 @@ def valid? # @param comparator [Object] Object to be assigned # @!visibility private def comparator=(comparator) - validator = EnumAttributeValidator.new('WidgetComparator', ['>', '>=', '<', '<=']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetComparator', ['>', '>=', '<', '<=']) unless validator.valid?(comparator) fail ArgumentError, "invalid value for \"comparator\", must be one of #{validator.allowable_values}." end @@ -193,7 +193,7 @@ def comparator=(comparator) # @param palette [Object] Object to be assigned # @!visibility private def palette=(palette) - validator = EnumAttributeValidator.new('WidgetPalette', ['blue', 'custom_bg', 'custom_image', 'custom_text', 'gray_on_white', 'grey', 'green', 'orange', 'red', 'red_on_white', 'white_on_gray', 'white_on_green', 'green_on_white', 'white_on_red', 'white_on_yellow', 'yellow_on_white', 'black_on_light_yellow', 'black_on_light_green', 'black_on_light_red']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetPalette', ['blue', 'custom_bg', 'custom_image', 'custom_text', 'gray_on_white', 'grey', 'green', 'orange', 'red', 'red_on_white', 'white_on_gray', 'white_on_green', 'green_on_white', 'white_on_red', 'white_on_yellow', 'yellow_on_white', 'black_on_light_yellow', 'black_on_light_green', 'black_on_light_red']) unless validator.valid?(palette) fail ArgumentError, "invalid value for \"palette\", must be one of #{validator.allowable_values}." end 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 82bfaf07251..ca15a84f072 100644 --- a/lib/datadog_api_client/v1/models/widget_field_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_field_sort.rb @@ -122,7 +122,7 @@ def column=(column) # @param order [Object] Object to be assigned # @!visibility private def order=(order) - validator = EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) unless validator.valid?(order) fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v1/models/widget_formula.rb b/lib/datadog_api_client/v1/models/widget_formula.rb index 1fc89240cac..18ce942309c 100644 --- a/lib/datadog_api_client/v1/models/widget_formula.rb +++ b/lib/datadog_api_client/v1/models/widget_formula.rb @@ -137,7 +137,7 @@ def valid? # @param cell_display_mode [Object] Object to be assigned # @!visibility private def cell_display_mode=(cell_display_mode) - validator = EnumAttributeValidator.new('TableWidgetCellDisplayMode', ['number', 'bar']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TableWidgetCellDisplayMode', ['number', 'bar']) unless validator.valid?(cell_display_mode) fail ArgumentError, "invalid value for \"cell_display_mode\", must be one of #{validator.allowable_values}." end 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 89bb93057c4..81610d67ec3 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_limit.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_limit.rb @@ -106,7 +106,7 @@ def valid? # @param order [Object] Object to be assigned # @!visibility private def order=(order) - validator = EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) unless validator.valid?(order) fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." end 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 57977baae1f..c912849c487 100644 --- a/lib/datadog_api_client/v1/models/widget_request_style.rb +++ b/lib/datadog_api_client/v1/models/widget_request_style.rb @@ -113,7 +113,7 @@ def valid? # @param line_type [Object] Object to be assigned # @!visibility private def line_type=(line_type) - validator = EnumAttributeValidator.new('WidgetLineType', ['dashed', 'dotted', 'solid']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetLineType', ['dashed', 'dotted', 'solid']) unless validator.valid?(line_type) fail ArgumentError, "invalid value for \"line_type\", must be one of #{validator.allowable_values}." end @@ -124,7 +124,7 @@ def line_type=(line_type) # @param line_width [Object] Object to be assigned # @!visibility private def line_width=(line_width) - validator = EnumAttributeValidator.new('WidgetLineWidth', ['normal', 'thick', 'thin']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetLineWidth', ['normal', 'thick', 'thin']) unless validator.valid?(line_width) fail ArgumentError, "invalid value for \"line_width\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v1/models/widget_time.rb b/lib/datadog_api_client/v1/models/widget_time.rb index 78577d6dc88..6770d41a191 100644 --- a/lib/datadog_api_client/v1/models/widget_time.rb +++ b/lib/datadog_api_client/v1/models/widget_time.rb @@ -95,7 +95,7 @@ def valid? # @param live_span [Object] Object to be assigned # @!visibility private def live_span=(live_span) - validator = EnumAttributeValidator.new('WidgetLiveSpan', ['1m', '5m', '10m', '15m', '30m', '1h', '4h', '1d', '2d', '1w', '1mo', '3mo', '6mo', '1y', 'alert']) + validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetLiveSpan', ['1m', '5m', '10m', '15m', '30m', '1h', '4h', '1d', '2d', '1w', '1mo', '3mo', '6mo', '1y', 'alert']) unless validator.valid?(live_span) fail ArgumentError, "invalid value for \"live_span\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v2.rb b/lib/datadog_api_client/v2.rb index c60e6e05386..aada8cef610 100644 --- a/lib/datadog_api_client/v2.rb +++ b/lib/datadog_api_client/v2.rb @@ -405,4 +405,26 @@ def configure end end end + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end end \ No newline at end of file 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 fec52364ad8..871b3bd6443 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 @@ -124,7 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('APIKeysType', ['api_keys']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('APIKeysType', ['api_keys']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 00e5f02f29a..df3ebb99fc6 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 @@ -147,7 +147,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('APIKeysType', ['api_keys']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('APIKeysType', ['api_keys']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 9c5b57a49cd..fd4c11ea36a 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 @@ -124,7 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 787d5e726c5..8b173bf1de7 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 @@ -147,7 +147,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 51d64bc95e6..03ba9a7c8eb 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 @@ -124,7 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('CloudWorkloadSecurityAgentRuleType', ['agent_rule']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('CloudWorkloadSecurityAgentRuleType', ['agent_rule']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 0534745ec81..14998a49a9f 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 @@ -115,7 +115,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('CloudWorkloadSecurityAgentRuleType', ['agent_rule']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('CloudWorkloadSecurityAgentRuleType', ['agent_rule']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 d71bdb81ac2..5c8d26b4394 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 @@ -124,7 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('CloudWorkloadSecurityAgentRuleType', ['agent_rule']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('CloudWorkloadSecurityAgentRuleType', ['agent_rule']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 1c614f18089..194d153ba94 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item.rb @@ -226,7 +226,7 @@ def popularity=(popularity) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('DashboardType', ['custom_timeboard', 'custom_screenboard', 'integration_screenboard', 'integration_timeboard', 'host_timeboard']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('DashboardType', ['custom_timeboard', 'custom_screenboard', 'integration_screenboard', 'integration_timeboard', 'host_timeboard']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 3ea246a79c2..efe8f471a68 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 @@ -122,7 +122,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('DashboardType', ['custom_timeboard', 'custom_screenboard', 'integration_screenboard', 'integration_timeboard', 'host_timeboard']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('DashboardType', ['custom_timeboard', 'custom_screenboard', 'integration_screenboard', 'integration_timeboard', 'host_timeboard']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 96a7e004853..3a81fb48a98 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 @@ -122,7 +122,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('DashboardType', ['custom_timeboard', 'custom_screenboard', 'integration_screenboard', 'integration_timeboard', 'host_timeboard']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('DashboardType', ['custom_timeboard', 'custom_screenboard', 'integration_screenboard', 'integration_timeboard', 'host_timeboard']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 60115797501..83bd903d15c 100644 --- a/lib/datadog_api_client/v2/models/full_api_key.rb +++ b/lib/datadog_api_client/v2/models/full_api_key.rb @@ -124,7 +124,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('APIKeysType', ['api_keys']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('APIKeysType', ['api_keys']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 b4c1a61d4e3..84718776f9a 100644 --- a/lib/datadog_api_client/v2/models/full_application_key.rb +++ b/lib/datadog_api_client/v2/models/full_application_key.rb @@ -124,7 +124,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 e5d0083fb3c..f3b2cab4762 100644 --- a/lib/datadog_api_client/v2/models/incident_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_create_data.rb @@ -133,7 +133,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('IncidentType', ['incidents']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentType', ['incidents']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 98604f5ca56..75525dbe016 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 @@ -109,7 +109,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('IncidentFieldAttributesValueType', ['multiselect', 'textarray', 'metrictag', 'autocomplete']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentFieldAttributesValueType', ['multiselect', 'textarray', 'metrictag', 'autocomplete']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 2d5517ad86b..0ffac008068 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 @@ -107,7 +107,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('IncidentFieldAttributesSingleValueType', ['dropdown', 'textbox']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentFieldAttributesSingleValueType', ['dropdown', 'textbox']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 0160429f692..fa5c62a15d0 100644 --- a/lib/datadog_api_client/v2/models/incident_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_response_data.rb @@ -142,7 +142,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('IncidentType', ['incidents']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentType', ['incidents']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 78744f0f52e..d1b10ff1242 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 @@ -119,7 +119,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('IncidentServiceType', ['services']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentServiceType', ['services']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 b2a9625e489..a3f21eb7270 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 @@ -142,7 +142,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('IncidentServiceType', ['services']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentServiceType', ['services']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 927f8288a36..a443efcfc45 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 @@ -128,7 +128,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('IncidentServiceType', ['services']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentServiceType', ['services']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 ff25ca6a465..848b6a28346 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 @@ -119,7 +119,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('IncidentTeamType', ['teams']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentTeamType', ['teams']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 0c3f90e0f3b..95e77c528fd 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 @@ -124,7 +124,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('IncidentTeamType', ['teams']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentTeamType', ['teams']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 87e5b5358e2..b64058bb7c2 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 @@ -128,7 +128,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('IncidentTeamType', ['teams']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentTeamType', ['teams']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 b6c0895b3bb..48ce94090b8 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 @@ -125,7 +125,7 @@ def valid? # @param cell_type [Object] Object to be assigned # @!visibility private def cell_type=(cell_type) - validator = EnumAttributeValidator.new('IncidentTimelineCellMarkdownContentType', ['markdown']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentTimelineCellMarkdownContentType', ['markdown']) unless validator.valid?(cell_type) fail ArgumentError, "invalid value for \"cell_type\", must be one of #{validator.allowable_values}." end 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 fe8b481750f..7c07df5bc1d 100644 --- a/lib/datadog_api_client/v2/models/incident_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_update_data.rb @@ -142,7 +142,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('IncidentType', ['incidents']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentType', ['incidents']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v2/models/log.rb b/lib/datadog_api_client/v2/models/log.rb index 0312220b60c..f58dbb19623 100644 --- a/lib/datadog_api_client/v2/models/log.rb +++ b/lib/datadog_api_client/v2/models/log.rb @@ -115,7 +115,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogType', ['log']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogType', ['log']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 eec36a41057..3a76b539d2b 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb @@ -124,7 +124,7 @@ def valid? # @param aggregation [Object] Object to be assigned # @!visibility private def aggregation=(aggregation) - validator = EnumAttributeValidator.new('LogsAggregationFunction', ['count', 'cardinality', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsAggregationFunction', ['count', 'cardinality', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) unless validator.valid?(aggregation) fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." end @@ -135,7 +135,7 @@ def aggregation=(aggregation) # @param order [Object] Object to be assigned # @!visibility private def order=(order) - validator = EnumAttributeValidator.new('LogsSortOrder', ['asc', 'desc']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsSortOrder', ['asc', 'desc']) unless validator.valid?(order) fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." end @@ -146,7 +146,7 @@ def order=(order) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsAggregateSortType', ['alphabetical', 'measure']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsAggregateSortType', ['alphabetical', 'measure']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 4de3042b397..1f890100d8b 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb @@ -174,7 +174,7 @@ def query=(query) # @param state [Object] Object to be assigned # @!visibility private def state=(state) - validator = EnumAttributeValidator.new('LogsArchiveState', ['UNKNOWN', 'WORKING', 'FAILING', 'WORKING_AUTH_LEGACY']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsArchiveState', ['UNKNOWN', 'WORKING', 'FAILING', 'WORKING_AUTH_LEGACY']) unless validator.valid?(state) fail ArgumentError, "invalid value for \"state\", must be one of #{validator.allowable_values}." end 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 d849a125c6b..f0c31cab861 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 @@ -188,7 +188,7 @@ def storage_account=(storage_account) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsArchiveDestinationAzureType', ['azure']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsArchiveDestinationAzureType', ['azure']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 49d018c2acd..251884b974d 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 @@ -156,7 +156,7 @@ def integration=(integration) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsArchiveDestinationGCSType', ['gcs']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsArchiveDestinationGCSType', ['gcs']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 6ab1cbe47af..07795d836b2 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 @@ -156,7 +156,7 @@ def integration=(integration) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsArchiveDestinationS3Type', ['s3']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsArchiveDestinationS3Type', ['s3']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 5cc7473f9f3..4d5ee914359 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 @@ -124,7 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsArchiveOrderDefinitionType', ['archive_order']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsArchiveOrderDefinitionType', ['archive_order']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v2/models/logs_compute.rb b/lib/datadog_api_client/v2/models/logs_compute.rb index b4c12b02a3c..66608c9ed73 100644 --- a/lib/datadog_api_client/v2/models/logs_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_compute.rb @@ -129,7 +129,7 @@ def valid? # @param aggregation [Object] Object to be assigned # @!visibility private def aggregation=(aggregation) - validator = EnumAttributeValidator.new('LogsAggregationFunction', ['count', 'cardinality', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsAggregationFunction', ['count', 'cardinality', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) unless validator.valid?(aggregation) fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." end @@ -143,7 +143,7 @@ def aggregation=(aggregation) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsComputeType', ['timeseries', 'total']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsComputeType', ['timeseries', 'total']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 37bd28f2226..e5d7c2b6d45 100644 --- a/lib/datadog_api_client/v2/models/logs_list_request.rb +++ b/lib/datadog_api_client/v2/models/logs_list_request.rb @@ -123,7 +123,7 @@ def valid? # @param sort [Object] Object to be assigned # @!visibility private def sort=(sort) - validator = EnumAttributeValidator.new('LogsSort', ['timestamp', '-timestamp']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsSort', ['timestamp', '-timestamp']) unless validator.valid?(sort) fail ArgumentError, "invalid value for \"sort\", must be one of #{validator.allowable_values}." end 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 a2649ce1ea6..9de7fa16826 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_compute.rb @@ -108,7 +108,7 @@ def valid? # @param aggregation_type [Object] Object to be assigned # @!visibility private def aggregation_type=(aggregation_type) - validator = EnumAttributeValidator.new('LogsMetricComputeAggregationType', ['count', 'distribution']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsMetricComputeAggregationType', ['count', 'distribution']) unless validator.valid?(aggregation_type) fail ArgumentError, "invalid value for \"aggregation_type\", must be one of #{validator.allowable_values}." end 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 3d7de3f1a0f..fdf976f902a 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 @@ -147,7 +147,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsMetricType', ['logs_metrics']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsMetricType', ['logs_metrics']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 250709e0814..ab72f1de792 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 @@ -104,7 +104,7 @@ def valid? # @param aggregation_type [Object] Object to be assigned # @!visibility private def aggregation_type=(aggregation_type) - validator = EnumAttributeValidator.new('LogsMetricResponseComputeAggregationType', ['count', 'distribution']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsMetricResponseComputeAggregationType', ['count', 'distribution']) unless validator.valid?(aggregation_type) fail ArgumentError, "invalid value for \"aggregation_type\", must be one of #{validator.allowable_values}." end 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 c153c49409c..00dcd9e8f85 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 @@ -115,7 +115,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsMetricType', ['logs_metrics']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsMetricType', ['logs_metrics']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 eb89154cafc..e25f53caede 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 @@ -124,7 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('LogsMetricType', ['logs_metrics']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsMetricType', ['logs_metrics']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 86c60f97823..843b83704cd 100644 --- a/lib/datadog_api_client/v2/models/logs_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/logs_response_metadata.rb @@ -134,7 +134,7 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('LogsAggregateResponseStatus', ['done', 'timeout']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsAggregateResponseStatus', ['done', 'timeout']) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v2/models/metric.rb b/lib/datadog_api_client/v2/models/metric.rb index 8cf54e8e5fc..e73ab553948 100644 --- a/lib/datadog_api_client/v2/models/metric.rb +++ b/lib/datadog_api_client/v2/models/metric.rb @@ -106,7 +106,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('MetricType', ['metrics']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricType', ['metrics']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 8e3e0d17696..e2255426058 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags.rb @@ -115,7 +115,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('MetricType', ['metrics']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricType', ['metrics']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 54c75aeba80..4a69e4c5906 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb @@ -112,7 +112,7 @@ def valid? # @param space [Object] Object to be assigned # @!visibility private def space=(space) - validator = EnumAttributeValidator.new('MetricCustomSpaceAggregation', ['avg', 'max', 'min', 'sum']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricCustomSpaceAggregation', ['avg', 'max', 'min', 'sum']) unless validator.valid?(space) fail ArgumentError, "invalid value for \"space\", must be one of #{validator.allowable_values}." end @@ -126,7 +126,7 @@ def space=(space) # @param time [Object] Object to be assigned # @!visibility private def time=(time) - validator = EnumAttributeValidator.new('MetricCustomTimeAggregation', ['avg', 'count', 'max', 'min', 'sum']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricCustomTimeAggregation', ['avg', 'count', 'max', 'min', 'sum']) unless validator.valid?(time) fail ArgumentError, "invalid value for \"time\", must be one of #{validator.allowable_values}." end 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 831d59ef134..8c544bfe12c 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume.rb @@ -115,7 +115,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('MetricDistinctVolumeType', ['distinct_metric_volumes']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricDistinctVolumeType', ['distinct_metric_volumes']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 4226d157818..a6e2b0dca8b 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 @@ -115,7 +115,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('MetricIngestedIndexedVolumeType', ['metric_volumes']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricIngestedIndexedVolumeType', ['metric_volumes']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 cfd0e1d5ca5..973a03cfd10 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration.rb @@ -115,7 +115,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('MetricTagConfigurationType', ['manage_tags']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricTagConfigurationType', ['manage_tags']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 303871fd72c..6d4905e42f4 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 @@ -162,7 +162,7 @@ def valid? # @param metric_type [Object] Object to be assigned # @!visibility private def metric_type=(metric_type) - validator = EnumAttributeValidator.new('MetricTagConfigurationMetricTypes', ['gauge', 'count', 'rate', 'distribution']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricTagConfigurationMetricTypes', ['gauge', 'count', 'rate', 'distribution']) unless validator.valid?(metric_type) fail ArgumentError, "invalid value for \"metric_type\", must be one of #{validator.allowable_values}." end 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 d9563e71abb..0e2822e3b54 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 @@ -156,7 +156,7 @@ def valid? # @param metric_type [Object] Object to be assigned # @!visibility private def metric_type=(metric_type) - validator = EnumAttributeValidator.new('MetricTagConfigurationMetricTypes', ['gauge', 'count', 'rate', 'distribution']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricTagConfigurationMetricTypes', ['gauge', 'count', 'rate', 'distribution']) unless validator.valid?(metric_type) fail ArgumentError, "invalid value for \"metric_type\", must be one of #{validator.allowable_values}." end 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 5c80765a22f..3ab28ad41c9 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 @@ -133,7 +133,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('MetricTagConfigurationType', ['manage_tags']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricTagConfigurationType', ['manage_tags']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 d0a2c071c54..f5df765370c 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 @@ -133,7 +133,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('MetricTagConfigurationType', ['manage_tags']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricTagConfigurationType', ['manage_tags']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v2/models/organization.rb b/lib/datadog_api_client/v2/models/organization.rb index 898c24ae9de..94269253f86 100644 --- a/lib/datadog_api_client/v2/models/organization.rb +++ b/lib/datadog_api_client/v2/models/organization.rb @@ -119,7 +119,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('OrganizationsType', ['orgs']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('OrganizationsType', ['orgs']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 f37134dcc47..dce85302fdf 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key.rb @@ -124,7 +124,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('APIKeysType', ['api_keys']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('APIKeysType', ['api_keys']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 e9102175507..e29add98ffd 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key.rb @@ -124,7 +124,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v2/models/permission.rb b/lib/datadog_api_client/v2/models/permission.rb index d03cda5dc1d..6c9eb6adb1f 100644 --- a/lib/datadog_api_client/v2/models/permission.rb +++ b/lib/datadog_api_client/v2/models/permission.rb @@ -119,7 +119,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('PermissionsType', ['permissions']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('PermissionsType', ['permissions']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v2/models/process_summary.rb b/lib/datadog_api_client/v2/models/process_summary.rb index b2172866487..f043f1c645a 100644 --- a/lib/datadog_api_client/v2/models/process_summary.rb +++ b/lib/datadog_api_client/v2/models/process_summary.rb @@ -115,7 +115,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('ProcessSummaryType', ['process']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('ProcessSummaryType', ['process']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 6b38c324a74..c98e6f8b514 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 @@ -124,7 +124,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('IncidentIntegrationMetadataType', ['incident_integrations']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentIntegrationMetadataType', ['incident_integrations']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 04d8cd54154..68e58ccebd4 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 @@ -124,7 +124,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('IncidentPostmortemType', ['incident_postmortems']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentPostmortemType', ['incident_postmortems']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 7b2f76d91f1..fb819b5e360 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 @@ -124,7 +124,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('OrganizationsType', ['orgs']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('OrganizationsType', ['orgs']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 ec2571b6983..27130f8a9d6 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 @@ -106,7 +106,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('PermissionsType', ['permissions']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('PermissionsType', ['permissions']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 70c2712c016..8ffc7f179c4 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 @@ -106,7 +106,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('RolesType', ['roles']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('RolesType', ['roles']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 8d38bea1ab2..bd4d267699e 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 @@ -124,7 +124,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('UsersType', ['users']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('UsersType', ['users']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v2/models/role.rb b/lib/datadog_api_client/v2/models/role.rb index 67e4ef0742f..dcb8e5b0168 100644 --- a/lib/datadog_api_client/v2/models/role.rb +++ b/lib/datadog_api_client/v2/models/role.rb @@ -128,7 +128,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('RolesType', ['roles']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('RolesType', ['roles']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v2/models/role_clone.rb b/lib/datadog_api_client/v2/models/role_clone.rb index e55ddeb32e3..573f097a76c 100644 --- a/lib/datadog_api_client/v2/models/role_clone.rb +++ b/lib/datadog_api_client/v2/models/role_clone.rb @@ -124,7 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('RolesType', ['roles']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('RolesType', ['roles']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 e970e0b2093..8d81c2dccd7 100644 --- a/lib/datadog_api_client/v2/models/role_create_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_data.rb @@ -129,7 +129,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('RolesType', ['roles']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('RolesType', ['roles']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 1681aa35019..bc41c247db6 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 @@ -128,7 +128,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('RolesType', ['roles']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('RolesType', ['roles']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 4414d883a87..76f7f8f1de5 100644 --- a/lib/datadog_api_client/v2/models/role_update_data.rb +++ b/lib/datadog_api_client/v2/models/role_update_data.rb @@ -147,7 +147,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('RolesType', ['roles']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('RolesType', ['roles']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 959e8cd527c..d5ba05404a4 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 @@ -128,7 +128,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('RolesType', ['roles']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('RolesType', ['roles']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v2/models/security_filter.rb b/lib/datadog_api_client/v2/models/security_filter.rb index 712530b3de4..c0ac177c522 100644 --- a/lib/datadog_api_client/v2/models/security_filter.rb +++ b/lib/datadog_api_client/v2/models/security_filter.rb @@ -115,7 +115,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SecurityFilterType', ['security_filters']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityFilterType', ['security_filters']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 e515aebaad3..9b9ab4c5cd9 100644 --- a/lib/datadog_api_client/v2/models/security_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_attributes.rb @@ -155,7 +155,7 @@ def valid? # @param filtered_data_type [Object] Object to be assigned # @!visibility private def filtered_data_type=(filtered_data_type) - validator = EnumAttributeValidator.new('SecurityFilterFilteredDataType', ['logs']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityFilterFilteredDataType', ['logs']) unless validator.valid?(filtered_data_type) fail ArgumentError, "invalid value for \"filtered_data_type\", must be one of #{validator.allowable_values}." end 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 5d4f3fdfda4..ef03f01812c 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 @@ -163,7 +163,7 @@ def exclusion_filters=(exclusion_filters) # @param filtered_data_type [Object] Object to be assigned # @!visibility private def filtered_data_type=(filtered_data_type) - validator = EnumAttributeValidator.new('SecurityFilterFilteredDataType', ['logs']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityFilterFilteredDataType', ['logs']) unless validator.valid?(filtered_data_type) fail ArgumentError, "invalid value for \"filtered_data_type\", must be one of #{validator.allowable_values}." end 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 6ca44960120..3cb05c152a8 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 @@ -124,7 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SecurityFilterType', ['security_filters']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityFilterType', ['security_filters']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 8b21ebe6d3c..c70480e2f28 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 @@ -146,7 +146,7 @@ def valid? # @param filtered_data_type [Object] Object to be assigned # @!visibility private def filtered_data_type=(filtered_data_type) - validator = EnumAttributeValidator.new('SecurityFilterFilteredDataType', ['logs']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityFilterFilteredDataType', ['logs']) unless validator.valid?(filtered_data_type) fail ArgumentError, "invalid value for \"filtered_data_type\", must be one of #{validator.allowable_values}." end 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 b400bbb6498..7947b7e057b 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 @@ -124,7 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SecurityFilterType', ['security_filters']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityFilterType', ['security_filters']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 86200f33b99..ff41dbda30e 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_filter.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_filter.rb @@ -104,7 +104,7 @@ def valid? # @param action [Object] Object to be assigned # @!visibility private def action=(action) - validator = EnumAttributeValidator.new('SecurityMonitoringFilterAction', ['require', 'suppress']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringFilterAction', ['require', 'suppress']) unless validator.valid?(action) fail ArgumentError, "invalid value for \"action\", must be one of #{validator.allowable_values}." end 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 c6395d4ca1b..c48e9917751 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 @@ -125,7 +125,7 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('SecurityMonitoringRuleSeverity', ['info', 'low', 'medium', 'high', 'critical']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleSeverity', ['info', 'low', 'medium', 'high', 'critical']) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end 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 62e728d73f9..23aa86eaa4b 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 @@ -129,7 +129,7 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = EnumAttributeValidator.new('SecurityMonitoringRuleSeverity', ['info', 'low', 'medium', 'high', 'critical']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleSeverity', ['info', 'low', 'medium', 'high', 'critical']) unless validator.valid?(status) fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb index 6cea404b0ea..31eabb7f616 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb @@ -268,7 +268,7 @@ def queries=(queries) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SecurityMonitoringRuleTypeCreate', ['log_detection', 'workload_security']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleTypeCreate', ['log_detection', 'workload_security']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 ca9e73391dd..ed178085e56 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 @@ -105,7 +105,7 @@ def valid? # @param forget_after [Object] Object to be assigned # @!visibility private def forget_after=(forget_after) - validator = EnumAttributeValidator.new('SecurityMonitoringRuleNewValueOptionsForgetAfter', [1, 2, 7, 14, 21, 28]) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleNewValueOptionsForgetAfter', [1, 2, 7, 14, 21, 28]) unless validator.valid?(forget_after) fail ArgumentError, "invalid value for \"forget_after\", must be one of #{validator.allowable_values}." end @@ -116,7 +116,7 @@ def forget_after=(forget_after) # @param learning_duration [Object] Object to be assigned # @!visibility private def learning_duration=(learning_duration) - validator = EnumAttributeValidator.new('SecurityMonitoringRuleNewValueOptionsLearningDuration', [0, 1, 7]) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleNewValueOptionsLearningDuration', [0, 1, 7]) unless validator.valid?(learning_duration) fail ArgumentError, "invalid value for \"learning_duration\", must be one of #{validator.allowable_values}." end 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 2c43e3396bb..5ad4a5c9664 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 @@ -134,7 +134,7 @@ def valid? # @param detection_method [Object] Object to be assigned # @!visibility private def detection_method=(detection_method) - validator = EnumAttributeValidator.new('SecurityMonitoringRuleDetectionMethod', ['threshold', 'new_value', 'anomaly_detection']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleDetectionMethod', ['threshold', 'new_value', 'anomaly_detection']) unless validator.valid?(detection_method) fail ArgumentError, "invalid value for \"detection_method\", must be one of #{validator.allowable_values}." end @@ -145,7 +145,7 @@ def detection_method=(detection_method) # @param evaluation_window [Object] Object to be assigned # @!visibility private def evaluation_window=(evaluation_window) - validator = EnumAttributeValidator.new('SecurityMonitoringRuleEvaluationWindow', [0, 60, 300, 600, 900, 1800, 3600, 7200]) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleEvaluationWindow', [0, 60, 300, 600, 900, 1800, 3600, 7200]) unless validator.valid?(evaluation_window) fail ArgumentError, "invalid value for \"evaluation_window\", must be one of #{validator.allowable_values}." end @@ -156,7 +156,7 @@ def evaluation_window=(evaluation_window) # @param keep_alive [Object] Object to be assigned # @!visibility private def keep_alive=(keep_alive) - validator = EnumAttributeValidator.new('SecurityMonitoringRuleKeepAlive', [0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600]) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleKeepAlive', [0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600]) unless validator.valid?(keep_alive) fail ArgumentError, "invalid value for \"keep_alive\", must be one of #{validator.allowable_values}." end @@ -167,7 +167,7 @@ def keep_alive=(keep_alive) # @param max_signal_duration [Object] Object to be assigned # @!visibility private def max_signal_duration=(max_signal_duration) - validator = EnumAttributeValidator.new('SecurityMonitoringRuleMaxSignalDuration', [0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400]) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleMaxSignalDuration', [0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400]) unless validator.valid?(max_signal_duration) fail ArgumentError, "invalid value for \"max_signal_duration\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb index 1c7fb7e8779..d1b1a0d0a0b 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb @@ -145,7 +145,7 @@ def valid? # @param aggregation [Object] Object to be assigned # @!visibility private def aggregation=(aggregation) - validator = EnumAttributeValidator.new('SecurityMonitoringRuleQueryAggregation', ['count', 'cardinality', 'sum', 'max', 'new_value']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleQueryAggregation', ['count', 'cardinality', 'sum', 'max', 'new_value']) unless validator.valid?(aggregation) fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb index d673cbdbec6..821e2692700 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb @@ -149,7 +149,7 @@ def valid? # @param aggregation [Object] Object to be assigned # @!visibility private def aggregation=(aggregation) - validator = EnumAttributeValidator.new('SecurityMonitoringRuleQueryAggregation', ['count', 'cardinality', 'sum', 'max', 'new_value']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleQueryAggregation', ['count', 'cardinality', 'sum', 'max', 'new_value']) unless validator.valid?(aggregation) fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb index 01fec78fdf1..94de6117d68 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb @@ -247,7 +247,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SecurityMonitoringRuleTypeRead', ['log_detection', 'infrastructure_configuration', 'workload_security', 'cloud_configuration']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleTypeRead', ['log_detection', 'infrastructure_configuration', 'workload_security', 'cloud_configuration']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 bb82d5d2e2f..d2b22ec6c80 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal.rb @@ -116,7 +116,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('SecurityMonitoringSignalType', ['signal']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringSignalType', ['signal']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 1e7c056f9ef..337b92eb634 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 @@ -113,7 +113,7 @@ def valid? # @param sort [Object] Object to be assigned # @!visibility private def sort=(sort) - validator = EnumAttributeValidator.new('SecurityMonitoringSignalsSort', ['timestamp', '-timestamp']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringSignalsSort', ['timestamp', '-timestamp']) unless validator.valid?(sort) fail ArgumentError, "invalid value for \"sort\", must be one of #{validator.allowable_values}." end 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 0b6a5d9b389..3c09180dfbb 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 @@ -133,7 +133,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('UsersType', ['users']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('UsersType', ['users']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end diff --git a/lib/datadog_api_client/v2/models/user.rb b/lib/datadog_api_client/v2/models/user.rb index fc710c15d26..9c7f9221371 100644 --- a/lib/datadog_api_client/v2/models/user.rb +++ b/lib/datadog_api_client/v2/models/user.rb @@ -124,7 +124,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('UsersType', ['users']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('UsersType', ['users']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 219784aecad..f1b16c25b0f 100644 --- a/lib/datadog_api_client/v2/models/user_create_data.rb +++ b/lib/datadog_api_client/v2/models/user_create_data.rb @@ -133,7 +133,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('UsersType', ['users']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('UsersType', ['users']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 906b5121248..5789b0bec90 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_data.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_data.rb @@ -124,7 +124,7 @@ def relationships=(relationships) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('UserInvitationsType', ['user_invitations']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('UserInvitationsType', ['user_invitations']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 6bcf79f3771..33112c578be 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 @@ -115,7 +115,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('UserInvitationsType', ['user_invitations']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('UserInvitationsType', ['user_invitations']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end 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 1bbaa23e8b1..b7781cd6606 100644 --- a/lib/datadog_api_client/v2/models/user_update_data.rb +++ b/lib/datadog_api_client/v2/models/user_update_data.rb @@ -147,7 +147,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = EnumAttributeValidator.new('UsersType', ['users']) + validator = DatadogAPIClient::V2::EnumAttributeValidator.new('UsersType', ['users']) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end From 22fdad8c0294394a9a364eec418bbee497f53294 Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Mon, 7 Feb 2022 13:11:39 +0100 Subject: [PATCH 18/23] setter --- .../src/generator/templates/model_generic.j2 | 7 ++--- .../models/alert_graph_widget_definition.rb | 18 ++---------- .../models/alert_value_widget_definition.rb | 16 ++--------- .../v1/models/api_error_response.rb | 2 +- .../v1/models/apm_stats_query_column_type.rb | 10 +------ .../v1/models/apm_stats_query_definition.rb | 14 ++++------ .../models/aws_account_and_lambda_request.rb | 4 +-- .../v1/models/aws_logs_services_request.rb | 4 +-- .../v1/models/aws_tag_filter.rb | 4 --- .../models/aws_tag_filter_create_request.rb | 4 --- .../models/aws_tag_filter_delete_request.rb | 4 --- .../cancel_downtimes_by_scope_request.rb | 2 +- .../v1/models/change_widget_definition.rb | 12 ++------ .../v1/models/change_widget_request.rb | 20 ------------- .../check_can_delete_monitor_response.rb | 2 +- .../models/check_status_widget_definition.rb | 18 ++---------- lib/datadog_api_client/v1/models/dashboard.rb | 14 ++-------- .../v1/models/dashboard_bulk_action_data.rb | 8 ++---- .../models/dashboard_bulk_delete_request.rb | 2 +- .../v1/models/dashboard_list.rb | 2 +- .../v1/models/dashboard_restore_request.rb | 2 +- .../v1/models/dashboard_summary_definition.rb | 4 --- .../v1/models/dashboard_template_variable.rb | 2 +- .../models/distribution_widget_definition.rb | 12 ++------ lib/datadog_api_client/v1/models/event.rb | 8 ------ .../v1/models/event_create_request.rb | 12 ++------ .../v1/models/event_create_response.rb | 8 ------ .../v1/models/event_query_definition.rb | 4 +-- .../models/event_stream_widget_definition.rb | 16 ++--------- .../event_timeline_widget_definition.rb | 12 ++------ ...n_apm_dependency_stats_query_definition.rb | 22 +++++---------- ...ion_apm_resource_stats_query_definition.rb | 18 ++++-------- ...ula_and_function_event_query_definition.rb | 10 ++----- ...function_event_query_definition_compute.rb | 6 +--- ..._function_event_query_definition_search.rb | 2 +- ...rmula_and_function_event_query_group_by.rb | 2 +- ..._and_function_event_query_group_by_sort.rb | 10 +------ ...la_and_function_metric_query_definition.rb | 14 ++-------- ...a_and_function_process_query_definition.rb | 18 ++---------- .../v1/models/free_text_widget_definition.rb | 12 ++------ .../v1/models/funnel_query.rb | 10 ++----- .../v1/models/funnel_query_steps_item.rb | 4 +-- .../v1/models/funnel_widget_definition.rb | 12 ++------ .../v1/models/funnel_widget_request.rb | 8 ++---- .../v1/models/geomap_widget_definition.rb | 16 +++-------- .../models/geomap_widget_definition_style.rb | 4 +-- .../models/geomap_widget_definition_view.rb | 2 +- .../v1/models/geomap_widget_request.rb | 4 --- .../v1/models/group_widget_definition.rb | 18 ++---------- .../v1/models/heat_map_widget_definition.rb | 12 ++------ .../v1/models/host_map_widget_definition.rb | 16 ++--------- .../models/hourly_usage_attribution_body.rb | 4 --- .../v1/models/http_log_error.rb | 4 +-- .../v1/models/i_frame_widget_definition.rb | 8 ++---- .../v1/models/idp_form_data.rb | 2 +- .../v1/models/idp_response.rb | 2 +- .../v1/models/image_widget_definition.rb | 24 ++-------------- .../v1/models/list_stream_column.rb | 8 ++---- .../v1/models/list_stream_query.rb | 8 ++---- .../models/list_stream_widget_definition.rb | 12 ++------ .../v1/models/list_stream_widget_request.rb | 10 ++----- .../models/log_query_definition_group_by.rb | 2 +- .../log_query_definition_group_by_sort.rb | 8 ++---- .../v1/models/log_query_definition_search.rb | 2 +- .../v1/models/log_stream_widget_definition.rb | 14 +--------- .../v1/models/logs_arithmetic_processor.rb | 10 ++----- .../v1/models/logs_attribute_remapper.rb | 14 ++-------- .../v1/models/logs_category_processor.rb | 10 ++----- .../v1/models/logs_date_remapper.rb | 8 ++---- .../v1/models/logs_exclusion.rb | 2 +- .../v1/models/logs_exclusion_filter.rb | 2 +- .../v1/models/logs_geo_ip_parser.rb | 10 ++----- .../v1/models/logs_grok_parser.rb | 10 ++----- .../v1/models/logs_grok_parser_rules.rb | 2 +- .../v1/models/logs_index.rb | 4 +-- .../v1/models/logs_index_update_request.rb | 2 +- .../v1/models/logs_indexes_order.rb | 2 +- .../v1/models/logs_list_request.rb | 6 +--- .../v1/models/logs_list_request_time.rb | 4 +-- .../v1/models/logs_lookup_processor.rb | 12 +++----- .../v1/models/logs_message_remapper.rb | 8 ++---- .../v1/models/logs_pipeline.rb | 2 +- .../v1/models/logs_pipeline_processor.rb | 6 +--- .../v1/models/logs_pipelines_order.rb | 2 +- .../v1/models/logs_query_compute.rb | 2 +- .../v1/models/logs_service_remapper.rb | 8 ++---- .../v1/models/logs_status_remapper.rb | 8 ++---- .../models/logs_string_builder_processor.rb | 10 ++----- .../v1/models/logs_trace_remapper.rb | 6 +--- .../v1/models/logs_url_parser.rb | 10 ++----- .../v1/models/logs_user_agent_parser.rb | 10 ++----- .../v1/models/metrics_payload.rb | 2 +- lib/datadog_api_client/v1/models/monitor.rb | 12 ++------ ...ula_and_function_event_query_definition.rb | 10 ++----- ...function_event_query_definition_compute.rb | 6 +--- ..._function_event_query_definition_search.rb | 2 +- ...rmula_and_function_event_query_group_by.rb | 2 +- ..._and_function_event_query_group_by_sort.rb | 10 +------ .../v1/models/monitor_group_search_result.rb | 4 --- .../v1/models/monitor_search_result.rb | 8 ------ .../v1/models/monitor_state_group.rb | 4 --- .../monitor_summary_widget_definition.rb | 28 ++----------------- .../v1/models/monitor_update_request.rb | 8 ------ .../v1/models/note_widget_definition.rb | 20 ++----------- .../v1/models/notebook_absolute_time.rb | 4 +-- .../v1/models/notebook_cell_create_request.rb | 8 ++---- .../v1/models/notebook_cell_response.rb | 10 ++----- .../v1/models/notebook_cell_update_request.rb | 10 ++----- .../v1/models/notebook_create_data.rb | 8 ++---- .../models/notebook_create_data_attributes.rb | 10 ++----- .../v1/models/notebook_create_request.rb | 2 +- .../notebook_distribution_cell_attributes.rb | 6 +--- .../notebook_heat_map_cell_attributes.rb | 6 +--- .../notebook_log_stream_cell_attributes.rb | 6 +--- .../notebook_markdown_cell_attributes.rb | 2 +- .../notebook_markdown_cell_definition.rb | 8 ++---- .../v1/models/notebook_metadata.rb | 4 --- .../v1/models/notebook_relative_time.rb | 6 +--- .../v1/models/notebook_response_data.rb | 10 ++----- .../notebook_response_data_attributes.rb | 10 ++----- .../v1/models/notebook_split_by.rb | 4 +-- .../notebook_timeseries_cell_attributes.rb | 6 +--- .../notebook_toplist_cell_attributes.rb | 6 +--- .../v1/models/notebook_update_data.rb | 8 ++---- .../models/notebook_update_data_attributes.rb | 10 ++----- .../v1/models/notebook_update_request.rb | 2 +- .../v1/models/notebooks_response_data.rb | 10 ++----- .../notebooks_response_data_attributes.rb | 6 +--- .../v1/models/organization_create_body.rb | 2 +- .../v1/models/organization_settings.rb | 4 --- .../v1/models/pager_duty_service.rb | 4 +-- .../v1/models/pager_duty_service_key.rb | 2 +- .../v1/models/pager_duty_service_name.rb | 2 +- .../v1/models/process_query_definition.rb | 2 +- .../models/query_value_widget_definition.rb | 16 ++--------- .../v1/models/query_value_widget_request.rb | 8 ------ .../v1/models/scatter_plot_request.rb | 4 --- .../models/scatter_plot_widget_definition.rb | 12 ++------ .../v1/models/scatterplot_table_request.rb | 4 --- .../v1/models/scatterplot_widget_formula.rb | 8 ++---- lib/datadog_api_client/v1/models/series.rb | 4 +-- .../v1/models/service_check.rb | 12 +++----- .../v1/models/service_level_objective.rb | 10 ++----- .../models/service_level_objective_query.rb | 4 +-- .../models/service_level_objective_request.rb | 10 ++----- .../models/service_map_widget_definition.rb | 14 ++-------- .../service_summary_widget_definition.rb | 24 +++------------- .../v1/models/slo_bulk_delete_error.rb | 10 ++----- .../v1/models/slo_correction.rb | 4 --- .../v1/models/slo_correction_create_data.rb | 6 +--- ...lo_correction_create_request_attributes.rb | 10 ++----- .../slo_correction_response_attributes.rb | 4 --- .../v1/models/slo_correction_update_data.rb | 4 --- ...lo_correction_update_request_attributes.rb | 4 --- .../v1/models/slo_history_metrics.rb | 14 +++++----- .../v1/models/slo_history_metrics_series.rb | 6 ++-- .../v1/models/slo_history_response_data.rb | 8 ------ .../slo_history_response_error_with_type.rb | 4 +-- .../v1/models/slo_response_data.rb | 4 --- .../v1/models/slo_threshold.rb | 8 ++---- .../v1/models/slo_widget_definition.rb | 16 ++--------- .../v1/models/sunburst_widget_definition.rb | 12 ++------ ...sunburst_widget_legend_inline_automatic.rb | 6 +--- .../v1/models/sunburst_widget_legend_table.rb | 6 +--- .../v1/models/sunburst_widget_request.rb | 4 --- .../v1/models/synthetics_api_step.rb | 12 +++----- .../v1/models/synthetics_api_test.rb | 22 ++++----------- .../models/synthetics_api_test_result_data.rb | 4 --- .../synthetics_api_test_result_failure.rb | 4 --- .../models/synthetics_api_test_result_full.rb | 4 --- .../synthetics_api_test_result_full_check.rb | 2 +- .../synthetics_api_test_result_short.rb | 4 --- .../synthetics_assertion_json_path_target.rb | 12 ++------ .../v1/models/synthetics_assertion_target.rb | 14 ++-------- .../v1/models/synthetics_basic_auth_ntlm.rb | 6 +--- .../v1/models/synthetics_basic_auth_sigv4.rb | 10 ++----- .../v1/models/synthetics_basic_auth_web.rb | 10 ++----- .../models/synthetics_batch_details_data.rb | 4 --- .../v1/models/synthetics_batch_result.rb | 16 ----------- .../v1/models/synthetics_browser_error.rb | 10 ++----- .../v1/models/synthetics_browser_test.rb | 18 ++++-------- .../models/synthetics_browser_test_config.rb | 4 +-- .../synthetics_browser_test_result_failure.rb | 4 --- .../synthetics_browser_test_result_full.rb | 4 --- ...nthetics_browser_test_result_full_check.rb | 2 +- .../synthetics_browser_test_result_short.rb | 4 --- .../v1/models/synthetics_browser_variable.rb | 8 ++---- .../v1/models/synthetics_ci_test.rb | 2 +- .../v1/models/synthetics_config_variable.rb | 8 ++---- .../v1/models/synthetics_device.rb | 12 +++----- .../v1/models/synthetics_global_variable.rb | 8 +++--- ...tics_global_variable_parse_test_options.rb | 8 ++---- .../v1/models/synthetics_parsing_options.rb | 4 --- .../v1/models/synthetics_private_location.rb | 6 ++-- .../v1/models/synthetics_step.rb | 4 --- .../v1/models/synthetics_step_detail.rb | 12 -------- .../models/synthetics_step_detail_warning.rb | 8 ++---- .../v1/models/synthetics_test_details.rb | 12 -------- .../v1/models/synthetics_test_request.rb | 4 --- .../models/synthetics_test_request_proxy.rb | 2 +- .../v1/models/synthetics_trigger_body.rb | 2 +- .../synthetics_trigger_ci_test_run_result.rb | 4 --- .../v1/models/synthetics_trigger_test.rb | 2 +- ...hetics_update_test_pause_status_payload.rb | 4 --- .../v1/models/synthetics_variable_parser.rb | 6 +--- .../v1/models/table_widget_definition.rb | 16 ++--------- .../v1/models/table_widget_request.rb | 12 -------- .../v1/models/timeseries_widget_definition.rb | 16 ++--------- .../timeseries_widget_expression_alias.rb | 2 +- .../v1/models/timeseries_widget_request.rb | 8 ------ .../v1/models/toplist_widget_definition.rb | 12 ++------ .../v1/models/toplist_widget_request.rb | 4 --- .../v1/models/tree_map_widget_definition.rb | 20 ++----------- .../v1/models/tree_map_widget_request.rb | 4 --- .../v1/models/usage_custom_reports_data.rb | 4 --- .../usage_specified_custom_reports_data.rb | 4 --- .../v1/models/usage_top_avg_metrics_hour.rb | 4 --- lib/datadog_api_client/v1/models/user.rb | 4 --- .../v1/models/webhooks_integration.rb | 8 ++---- .../webhooks_integration_custom_variable.rb | 6 ++-- ...ks_integration_custom_variable_response.rb | 4 +-- .../webhooks_integration_update_request.rb | 4 --- lib/datadog_api_client/v1/models/widget.rb | 2 +- .../v1/models/widget_conditional_format.rb | 14 ++-------- .../v1/models/widget_event.rb | 2 +- .../v1/models/widget_field_sort.rb | 8 ++---- .../v1/models/widget_formula.rb | 6 +--- .../v1/models/widget_formula_limit.rb | 4 --- .../v1/models/widget_layout.rb | 8 +++--- .../v1/models/widget_marker.rb | 2 +- .../v1/models/widget_request_style.rb | 8 ------ .../v1/models/widget_time.rb | 4 --- .../v2/models/api_error_response.rb | 2 +- .../v2/models/api_key_create_attributes.rb | 2 +- .../v2/models/api_key_create_data.rb | 8 ++---- .../v2/models/api_key_create_request.rb | 2 +- .../v2/models/api_key_update_attributes.rb | 2 +- .../v2/models/api_key_update_data.rb | 10 ++----- .../v2/models/api_key_update_request.rb | 2 +- .../application_key_create_attributes.rb | 2 +- .../v2/models/application_key_create_data.rb | 8 ++---- .../models/application_key_create_request.rb | 2 +- .../v2/models/application_key_update_data.rb | 10 ++----- .../models/application_key_update_request.rb | 2 +- ...d_security_agent_rule_create_attributes.rb | 4 +-- ...orkload_security_agent_rule_create_data.rb | 8 ++---- ...load_security_agent_rule_create_request.rb | 2 +- ...cloud_workload_security_agent_rule_data.rb | 4 --- ...orkload_security_agent_rule_update_data.rb | 8 ++---- ...load_security_agent_rule_update_request.rb | 2 +- .../v2/models/dashboard_list_item.rb | 8 ++---- .../v2/models/dashboard_list_item_request.rb | 8 ++---- .../v2/models/dashboard_list_item_response.rb | 8 ++---- .../v2/models/dashboard_list_items.rb | 2 +- .../v2/models/full_api_key.rb | 4 --- .../v2/models/full_application_key.rb | 4 --- .../v2/models/incident_create_attributes.rb | 4 +-- .../v2/models/incident_create_data.rb | 8 ++---- .../models/incident_create_relationships.rb | 2 +- .../v2/models/incident_create_request.rb | 2 +- ...ncident_field_attributes_multiple_value.rb | 4 --- .../incident_field_attributes_single_value.rb | 4 --- .../v2/models/incident_response.rb | 2 +- .../v2/models/incident_response_attributes.rb | 2 +- .../v2/models/incident_response_data.rb | 8 ++---- .../incident_service_create_attributes.rb | 2 +- .../v2/models/incident_service_create_data.rb | 6 +--- .../models/incident_service_create_request.rb | 2 +- .../v2/models/incident_service_response.rb | 2 +- .../models/incident_service_response_data.rb | 8 ++---- .../incident_service_update_attributes.rb | 2 +- .../v2/models/incident_service_update_data.rb | 6 +--- .../models/incident_service_update_request.rb | 2 +- .../v2/models/incident_services_response.rb | 2 +- .../models/incident_team_create_attributes.rb | 2 +- .../v2/models/incident_team_create_data.rb | 6 +--- .../v2/models/incident_team_create_request.rb | 2 +- .../v2/models/incident_team_response.rb | 2 +- .../v2/models/incident_team_response_data.rb | 4 --- .../models/incident_team_update_attributes.rb | 2 +- .../v2/models/incident_team_update_data.rb | 6 +--- .../v2/models/incident_team_update_request.rb | 2 +- .../v2/models/incident_teams_response.rb | 2 +- ...imeline_cell_markdown_create_attributes.rb | 8 ++---- .../v2/models/incident_update_data.rb | 8 ++---- .../v2/models/incident_update_request.rb | 2 +- .../v2/models/incidents_response.rb | 2 +- lib/datadog_api_client/v2/models/log.rb | 4 --- .../v2/models/logs_aggregate_sort.rb | 12 -------- .../v2/models/logs_archive_attributes.rb | 8 ++---- .../logs_archive_create_request_attributes.rb | 6 ++-- .../logs_archive_create_request_definition.rb | 2 +- .../v2/models/logs_archive_definition.rb | 2 +- .../models/logs_archive_destination_azure.rb | 12 +++----- .../v2/models/logs_archive_destination_gcs.rb | 10 ++----- .../v2/models/logs_archive_destination_s3.rb | 10 ++----- .../models/logs_archive_integration_azure.rb | 4 +-- .../v2/models/logs_archive_integration_gcs.rb | 4 +-- .../v2/models/logs_archive_integration_s3.rb | 4 +-- .../models/logs_archive_order_attributes.rb | 2 +- .../models/logs_archive_order_definition.rb | 8 ++---- .../v2/models/logs_compute.rb | 10 +------ .../v2/models/logs_group_by.rb | 2 +- .../v2/models/logs_group_by_histogram.rb | 6 ++-- .../v2/models/logs_list_request.rb | 4 --- .../v2/models/logs_metric_compute.rb | 6 +--- .../models/logs_metric_create_attributes.rb | 2 +- .../v2/models/logs_metric_create_data.rb | 10 ++----- .../v2/models/logs_metric_create_request.rb | 2 +- .../v2/models/logs_metric_group_by.rb | 2 +- .../v2/models/logs_metric_response_compute.rb | 4 --- .../v2/models/logs_metric_response_data.rb | 4 --- .../v2/models/logs_metric_update_data.rb | 8 ++---- .../v2/models/logs_metric_update_request.rb | 2 +- .../v2/models/logs_response_metadata.rb | 4 --- lib/datadog_api_client/v2/models/metric.rb | 4 --- .../v2/models/metric_all_tags.rb | 4 --- .../v2/models/metric_custom_aggregation.rb | 12 ++------ .../v2/models/metric_distinct_volume.rb | 4 --- .../models/metric_ingested_indexed_volume.rb | 4 --- .../v2/models/metric_tag_configuration.rb | 4 --- .../metric_tag_configuration_attributes.rb | 4 --- ...ric_tag_configuration_create_attributes.rb | 8 ++---- .../metric_tag_configuration_create_data.rb | 8 ++---- ...metric_tag_configuration_create_request.rb | 2 +- .../metric_tag_configuration_update_data.rb | 8 ++---- ...metric_tag_configuration_update_request.rb | 2 +- .../v2/models/organization.rb | 6 +--- .../v2/models/partial_api_key.rb | 4 --- .../v2/models/partial_application_key.rb | 4 --- .../v2/models/permission.rb | 6 +--- .../v2/models/process_summary.rb | 4 --- ...p_to_incident_integration_metadata_data.rb | 8 ++---- ...nship_to_incident_integration_metadatas.rb | 2 +- .../relationship_to_incident_postmortem.rb | 2 +- ...elationship_to_incident_postmortem_data.rb | 8 ++---- .../v2/models/relationship_to_organization.rb | 2 +- .../relationship_to_organization_data.rb | 8 ++---- .../models/relationship_to_organizations.rb | 2 +- .../models/relationship_to_permission_data.rb | 4 --- .../v2/models/relationship_to_role_data.rb | 4 --- .../v2/models/relationship_to_user.rb | 2 +- .../v2/models/relationship_to_user_data.rb | 8 ++---- .../v2/models/relationship_to_users.rb | 2 +- lib/datadog_api_client/v2/models/role.rb | 6 +--- .../v2/models/role_clone.rb | 8 ++---- .../v2/models/role_clone_attributes.rb | 2 +- .../v2/models/role_clone_request.rb | 2 +- .../v2/models/role_create_attributes.rb | 2 +- .../v2/models/role_create_data.rb | 6 +--- .../v2/models/role_create_request.rb | 2 +- .../v2/models/role_create_response_data.rb | 6 +--- .../v2/models/role_update_data.rb | 10 ++----- .../v2/models/role_update_request.rb | 2 +- .../v2/models/role_update_response_data.rb | 6 +--- .../v2/models/security_filter.rb | 4 --- .../v2/models/security_filter_attributes.rb | 4 --- .../security_filter_create_attributes.rb | 14 ++++------ .../v2/models/security_filter_create_data.rb | 8 ++---- .../models/security_filter_create_request.rb | 2 +- .../security_filter_exclusion_filter.rb | 4 +-- .../security_filter_update_attributes.rb | 4 --- .../v2/models/security_filter_update_data.rb | 8 ++---- .../models/security_filter_update_request.rb | 2 +- .../v2/models/security_monitoring_filter.rb | 4 --- .../models/security_monitoring_rule_case.rb | 4 --- .../security_monitoring_rule_case_create.rb | 6 +--- ...security_monitoring_rule_create_payload.rb | 16 ++++------- ...urity_monitoring_rule_new_value_options.rb | 8 ------ .../security_monitoring_rule_options.rb | 16 ----------- .../models/security_monitoring_rule_query.rb | 4 --- .../security_monitoring_rule_query_create.rb | 6 +--- .../security_monitoring_rule_response.rb | 4 --- .../v2/models/security_monitoring_signal.rb | 4 --- ...security_monitoring_signal_list_request.rb | 4 --- .../service_account_create_attributes.rb | 4 +-- .../v2/models/service_account_create_data.rb | 8 ++---- .../models/service_account_create_request.rb | 2 +- lib/datadog_api_client/v2/models/user.rb | 4 --- .../v2/models/user_create_attributes.rb | 2 +- .../v2/models/user_create_data.rb | 8 ++---- .../v2/models/user_create_request.rb | 2 +- .../v2/models/user_invitation_data.rb | 8 ++---- .../models/user_invitation_relationships.rb | 2 +- .../models/user_invitation_response_data.rb | 4 --- .../v2/models/user_invitations_request.rb | 2 +- .../v2/models/user_update_data.rb | 10 ++----- .../v2/models/user_update_request.rb | 2 +- 388 files changed, 557 insertions(+), 1978 deletions(-) diff --git a/.generator/src/generator/templates/model_generic.j2 b/.generator/src/generator/templates/model_generic.j2 index 29c429e037c..39aaf123515 100644 --- a/.generator/src/generator/templates/model_generic.j2 +++ b/.generator/src/generator/templates/model_generic.j2 @@ -166,7 +166,6 @@ {%- for attr, definition in model.get("properties", {}).items() %} {%- set required = attr in model.get("required", []) %} - {%- set collection = definition.get("type") == "array" or "items" in definition %} {%- set has_validation = ( (not definition.nullable and required) or definition.maxLength is defined or @@ -176,7 +175,7 @@ definition.pattern is defined or definition.maxItems is defined or definition.minItems is defined or - (not collection and definition.enum is defined) + definition.enum is defined ) %} {%- if has_validation %} @@ -184,14 +183,14 @@ # @param {{ attr|attribute_name }} [Object] Object to be assigned # @!visibility private def {{ attr|attribute_name }}=({{ attr|attribute_name }}) - {%- if not collection and definition.enum is defined %} + {%- if False and definition.enum is defined %} validator = {{ config.moduleName }}::EnumAttributeValidator.new('{{ get_name(definition) }}', [{% for value in definition.enum %}{{ value|format_value }}{%- if not loop.last %}, {% endif %}{% endfor %}]) unless validator.valid?({{ attr|attribute_name }}) fail ArgumentError, "invalid value for \"{{ attr|attribute_name }}\", must be one of #{validator.allowable_values}." end {%- endif %} {%- if not definition.nullable and required %} - if @{{ attr|attribute_name }}.nil? + if {{ attr|attribute_name }}.nil? fail ArgumentError, 'invalid value for "{{ attr|attribute_name }}", {{ attr|attribute_name }} cannot be nil.' end {%- endif %} 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 48759fd1ec8..56ad7017340 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 @@ -163,7 +163,7 @@ def valid? # @param alert_id [Object] Object to be assigned # @!visibility private def alert_id=(alert_id) - if @alert_id.nil? + if alert_id.nil? fail ArgumentError, 'invalid value for "alert_id", alert_id cannot be nil.' end @alert_id = alert_id @@ -173,10 +173,6 @@ def alert_id=(alert_id) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -184,11 +180,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('AlertGraphWidgetDefinitionType', ['alert_graph']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type @@ -198,11 +190,7 @@ def type=(type) # @param viz_type [Object] Object to be assigned # @!visibility private def viz_type=(viz_type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetVizType', ['timeseries', 'toplist']) - unless validator.valid?(viz_type) - fail ArgumentError, "invalid value for \"viz_type\", must be one of #{validator.allowable_values}." - end - if @viz_type.nil? + if viz_type.nil? fail ArgumentError, 'invalid value for "viz_type", viz_type cannot be nil.' end @viz_type = viz_type 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 8dc9abc4482..c4099973c9d 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 @@ -168,7 +168,7 @@ def valid? # @param alert_id [Object] Object to be assigned # @!visibility private def alert_id=(alert_id) - if @alert_id.nil? + if alert_id.nil? fail ArgumentError, 'invalid value for "alert_id", alert_id cannot be nil.' end @alert_id = alert_id @@ -178,10 +178,6 @@ def alert_id=(alert_id) # @param text_align [Object] Object to be assigned # @!visibility private def text_align=(text_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(text_align) - fail ArgumentError, "invalid value for \"text_align\", must be one of #{validator.allowable_values}." - end @text_align = text_align end @@ -189,10 +185,6 @@ def text_align=(text_align) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -200,11 +192,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('AlertValueWidgetDefinitionType', ['alert_value']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 0722e36a006..fa5f36532ff 100644 --- a/lib/datadog_api_client/v1/models/api_error_response.rb +++ b/lib/datadog_api_client/v1/models/api_error_response.rb @@ -101,7 +101,7 @@ def valid? # @param errors [Object] Object to be assigned # @!visibility private def errors=(errors) - if @errors.nil? + if errors.nil? fail ArgumentError, 'invalid value for "errors", errors cannot be nil.' end @errors = errors 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 dadec373fe2..30f48cd83f7 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 @@ -126,10 +126,6 @@ def valid? # @param cell_display_mode [Object] Object to be assigned # @!visibility private def cell_display_mode=(cell_display_mode) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TableWidgetCellDisplayMode', ['number', 'bar']) - unless validator.valid?(cell_display_mode) - fail ArgumentError, "invalid value for \"cell_display_mode\", must be one of #{validator.allowable_values}." - end @cell_display_mode = cell_display_mode end @@ -137,7 +133,7 @@ def cell_display_mode=(cell_display_mode) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -147,10 +143,6 @@ def name=(name) # @param order [Object] Object to be assigned # @!visibility private def order=(order) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) - unless validator.valid?(order) - fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." - end @order = order end 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 42271cea797..6563452f404 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 @@ -171,7 +171,7 @@ def valid? # @param env [Object] Object to be assigned # @!visibility private def env=(env) - if @env.nil? + if env.nil? fail ArgumentError, 'invalid value for "env", env cannot be nil.' end @env = env @@ -181,7 +181,7 @@ def env=(env) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -191,7 +191,7 @@ def name=(name) # @param primary_tag [Object] Object to be assigned # @!visibility private def primary_tag=(primary_tag) - if @primary_tag.nil? + if primary_tag.nil? fail ArgumentError, 'invalid value for "primary_tag", primary_tag cannot be nil.' end @primary_tag = primary_tag @@ -201,11 +201,7 @@ def primary_tag=(primary_tag) # @param row_type [Object] Object to be assigned # @!visibility private def row_type=(row_type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ApmStatsQueryRowType', ['service', 'resource', 'span']) - unless validator.valid?(row_type) - fail ArgumentError, "invalid value for \"row_type\", must be one of #{validator.allowable_values}." - end - if @row_type.nil? + if row_type.nil? fail ArgumentError, 'invalid value for "row_type", row_type cannot be nil.' end @row_type = row_type @@ -215,7 +211,7 @@ def row_type=(row_type) # @param service [Object] Object to be assigned # @!visibility private def service=(service) - if @service.nil? + if service.nil? fail ArgumentError, 'invalid value for "service", service cannot be nil.' end @service = service 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 b74d1711c8d..cb2c21b8ea8 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 @@ -112,7 +112,7 @@ def valid? # @param account_id [Object] Object to be assigned # @!visibility private def account_id=(account_id) - if @account_id.nil? + if account_id.nil? fail ArgumentError, 'invalid value for "account_id", account_id cannot be nil.' end @account_id = account_id @@ -122,7 +122,7 @@ def account_id=(account_id) # @param lambda_arn [Object] Object to be assigned # @!visibility private def lambda_arn=(lambda_arn) - if @lambda_arn.nil? + if lambda_arn.nil? fail ArgumentError, 'invalid value for "lambda_arn", lambda_arn cannot be nil.' end @lambda_arn = lambda_arn 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 116743b5578..79cca4790d9 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 @@ -114,7 +114,7 @@ def valid? # @param account_id [Object] Object to be assigned # @!visibility private def account_id=(account_id) - if @account_id.nil? + if account_id.nil? fail ArgumentError, 'invalid value for "account_id", account_id cannot be nil.' end @account_id = account_id @@ -124,7 +124,7 @@ def account_id=(account_id) # @param services [Object] Object to be assigned # @!visibility private def services=(services) - if @services.nil? + if services.nil? fail ArgumentError, 'invalid value for "services", services cannot be nil.' end @services = services 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 76e5a6dd87e..652d16263ae 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter.rb @@ -104,10 +104,6 @@ def valid? # @param namespace [Object] Object to be assigned # @!visibility private def namespace=(namespace) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('AWSNamespace', ['elb', 'application_elb', 'sqs', 'rds', 'custom', 'network_elb', 'lambda']) - unless validator.valid?(namespace) - fail ArgumentError, "invalid value for \"namespace\", must be one of #{validator.allowable_values}." - end @namespace = namespace end 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 86c78bffca0..5d46eb2dc24 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 @@ -113,10 +113,6 @@ def valid? # @param namespace [Object] Object to be assigned # @!visibility private def namespace=(namespace) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('AWSNamespace', ['elb', 'application_elb', 'sqs', 'rds', 'custom', 'network_elb', 'lambda']) - unless validator.valid?(namespace) - fail ArgumentError, "invalid value for \"namespace\", must be one of #{validator.allowable_values}." - end @namespace = namespace end 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 4c76ef7d7f2..017c7157800 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 @@ -104,10 +104,6 @@ def valid? # @param namespace [Object] Object to be assigned # @!visibility private def namespace=(namespace) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('AWSNamespace', ['elb', 'application_elb', 'sqs', 'rds', 'custom', 'network_elb', 'lambda']) - unless validator.valid?(namespace) - fail ArgumentError, "invalid value for \"namespace\", must be one of #{validator.allowable_values}." - end @namespace = namespace end 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 495c945ce87..723df80550a 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 @@ -101,7 +101,7 @@ def valid? # @param scope [Object] Object to be assigned # @!visibility private def scope=(scope) - if @scope.nil? + if scope.nil? fail ArgumentError, 'invalid value for "scope", scope cannot be nil.' end @scope = scope 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 5852277c409..3426b219de9 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition.rb @@ -174,7 +174,7 @@ def valid? # @param requests [Object] Object to be assigned # @!visibility private def requests=(requests) - if @requests.nil? + if requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end if requests.length > 1 @@ -190,10 +190,6 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -201,11 +197,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ChangeWidgetDefinitionType', ['change']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 4d2d251b818..118168e6cd2 100644 --- a/lib/datadog_api_client/v1/models/change_widget_request.rb +++ b/lib/datadog_api_client/v1/models/change_widget_request.rb @@ -252,10 +252,6 @@ def valid? # @param change_type [Object] Object to be assigned # @!visibility private def change_type=(change_type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetChangeType', ['absolute', 'relative']) - unless validator.valid?(change_type) - fail ArgumentError, "invalid value for \"change_type\", must be one of #{validator.allowable_values}." - end @change_type = change_type end @@ -263,10 +259,6 @@ def change_type=(change_type) # @param compare_to [Object] Object to be assigned # @!visibility private def compare_to=(compare_to) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetCompareTo', ['hour_before', 'day_before', 'week_before', 'month_before']) - unless validator.valid?(compare_to) - fail ArgumentError, "invalid value for \"compare_to\", must be one of #{validator.allowable_values}." - end @compare_to = compare_to end @@ -274,10 +266,6 @@ def compare_to=(compare_to) # @param order_by [Object] Object to be assigned # @!visibility private def order_by=(order_by) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetOrderBy', ['change', 'name', 'present', 'past']) - unless validator.valid?(order_by) - fail ArgumentError, "invalid value for \"order_by\", must be one of #{validator.allowable_values}." - end @order_by = order_by end @@ -285,10 +273,6 @@ def order_by=(order_by) # @param order_dir [Object] Object to be assigned # @!visibility private def order_dir=(order_dir) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) - unless validator.valid?(order_dir) - fail ArgumentError, "invalid value for \"order_dir\", must be one of #{validator.allowable_values}." - end @order_dir = order_dir end @@ -296,10 +280,6 @@ def order_dir=(order_dir) # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) - unless validator.valid?(response_format) - fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." - end @response_format = response_format end 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 0f26e9f1ca1..b099482072f 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 @@ -108,7 +108,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 d200df2c3b2..8098976dd13 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 @@ -194,7 +194,7 @@ def valid? # @param check [Object] Object to be assigned # @!visibility private def check=(check) - if @check.nil? + if check.nil? fail ArgumentError, 'invalid value for "check", check cannot be nil.' end @check = check @@ -204,11 +204,7 @@ def check=(check) # @param grouping [Object] Object to be assigned # @!visibility private def grouping=(grouping) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetGrouping', ['check', 'cluster']) - unless validator.valid?(grouping) - fail ArgumentError, "invalid value for \"grouping\", must be one of #{validator.allowable_values}." - end - if @grouping.nil? + if grouping.nil? fail ArgumentError, 'invalid value for "grouping", grouping cannot be nil.' end @grouping = grouping @@ -218,10 +214,6 @@ def grouping=(grouping) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -229,11 +221,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('CheckStatusWidgetDefinitionType', ['check_status']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type diff --git a/lib/datadog_api_client/v1/models/dashboard.rb b/lib/datadog_api_client/v1/models/dashboard.rb index 4b76f0e809a..930840c0f7f 100644 --- a/lib/datadog_api_client/v1/models/dashboard.rb +++ b/lib/datadog_api_client/v1/models/dashboard.rb @@ -262,11 +262,7 @@ def valid? # @param layout_type [Object] Object to be assigned # @!visibility private def layout_type=(layout_type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('DashboardLayoutType', ['ordered', 'free']) - unless validator.valid?(layout_type) - fail ArgumentError, "invalid value for \"layout_type\", must be one of #{validator.allowable_values}." - end - if @layout_type.nil? + if layout_type.nil? fail ArgumentError, 'invalid value for "layout_type", layout_type cannot be nil.' end @layout_type = layout_type @@ -276,10 +272,6 @@ def layout_type=(layout_type) # @param reflow_type [Object] Object to be assigned # @!visibility private def reflow_type=(reflow_type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('DashboardReflowType', ['auto', 'fixed']) - unless validator.valid?(reflow_type) - fail ArgumentError, "invalid value for \"reflow_type\", must be one of #{validator.allowable_values}." - end @reflow_type = reflow_type end @@ -287,7 +279,7 @@ def reflow_type=(reflow_type) # @param title [Object] Object to be assigned # @!visibility private def title=(title) - if @title.nil? + if title.nil? fail ArgumentError, 'invalid value for "title", title cannot be nil.' end @title = title @@ -297,7 +289,7 @@ def title=(title) # @param widgets [Object] Object to be assigned # @!visibility private def widgets=(widgets) - if @widgets.nil? + if widgets.nil? fail ArgumentError, 'invalid value for "widgets", widgets cannot be nil.' end @widgets = widgets 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 c2fc5950ccc..6d07310b6f3 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 @@ -114,7 +114,7 @@ def valid? # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -124,11 +124,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('DashboardResourceType', ['dashboard']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 c6a78c11a64..646718fbb6b 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 @@ -101,7 +101,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data diff --git a/lib/datadog_api_client/v1/models/dashboard_list.rb b/lib/datadog_api_client/v1/models/dashboard_list.rb index ac5ad73612d..44e16105838 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list.rb @@ -162,7 +162,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name 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 4767aa454fb..e092a6628a5 100644 --- a/lib/datadog_api_client/v1/models/dashboard_restore_request.rb +++ b/lib/datadog_api_client/v1/models/dashboard_restore_request.rb @@ -101,7 +101,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 dac115f7f01..80805606108 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb @@ -168,10 +168,6 @@ def valid? # @param layout_type [Object] Object to be assigned # @!visibility private def layout_type=(layout_type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('DashboardLayoutType', ['ordered', 'free']) - unless validator.valid?(layout_type) - fail ArgumentError, "invalid value for \"layout_type\", must be one of #{validator.allowable_values}." - end @layout_type = layout_type end 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 90315085497..9aca9d0bd96 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable.rb @@ -131,7 +131,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name 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 b3e33615817..e24c1a77a90 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb @@ -212,7 +212,7 @@ def valid? # @param requests [Object] Object to be assigned # @!visibility private def requests=(requests) - if @requests.nil? + if requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end if requests.length > 1 @@ -228,10 +228,6 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -239,11 +235,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('DistributionWidgetDefinitionType', ['distribution']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type diff --git a/lib/datadog_api_client/v1/models/event.rb b/lib/datadog_api_client/v1/models/event.rb index 98d40f97585..3d5c5632bc5 100644 --- a/lib/datadog_api_client/v1/models/event.rb +++ b/lib/datadog_api_client/v1/models/event.rb @@ -217,10 +217,6 @@ def valid? # @param alert_type [Object] Object to be assigned # @!visibility private def alert_type=(alert_type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('EventAlertType', ['error', 'warning', 'info', 'success', 'user_update', 'recommendation', 'snapshot']) - unless validator.valid?(alert_type) - fail ArgumentError, "invalid value for \"alert_type\", must be one of #{validator.allowable_values}." - end @alert_type = alert_type end @@ -228,10 +224,6 @@ def alert_type=(alert_type) # @param priority [Object] Object to be assigned # @!visibility private def priority=(priority) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('EventPriority', ['normal', 'low']) - unless validator.valid?(priority) - fail ArgumentError, "invalid value for \"priority\", must be one of #{validator.allowable_values}." - end @priority = priority end 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 974a4a49a14..1a564aedccb 100644 --- a/lib/datadog_api_client/v1/models/event_create_request.rb +++ b/lib/datadog_api_client/v1/models/event_create_request.rb @@ -221,10 +221,6 @@ def aggregation_key=(aggregation_key) # @param alert_type [Object] Object to be assigned # @!visibility private def alert_type=(alert_type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('EventAlertType', ['error', 'warning', 'info', 'success', 'user_update', 'recommendation', 'snapshot']) - unless validator.valid?(alert_type) - fail ArgumentError, "invalid value for \"alert_type\", must be one of #{validator.allowable_values}." - end @alert_type = alert_type end @@ -232,10 +228,6 @@ def alert_type=(alert_type) # @param priority [Object] Object to be assigned # @!visibility private def priority=(priority) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('EventPriority', ['normal', 'low']) - unless validator.valid?(priority) - fail ArgumentError, "invalid value for \"priority\", must be one of #{validator.allowable_values}." - end @priority = priority end @@ -243,7 +235,7 @@ def priority=(priority) # @param text [Object] Object to be assigned # @!visibility private def text=(text) - if @text.nil? + if text.nil? fail ArgumentError, 'invalid value for "text", text cannot be nil.' end if text.to_s.length > 4000 @@ -256,7 +248,7 @@ def text=(text) # @param title [Object] Object to be assigned # @!visibility private def title=(title) - if @title.nil? + if title.nil? fail ArgumentError, 'invalid value for "title", title cannot be nil.' end @title = title 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 a9c563070be..9671400fb08 100644 --- a/lib/datadog_api_client/v1/models/event_create_response.rb +++ b/lib/datadog_api_client/v1/models/event_create_response.rb @@ -228,10 +228,6 @@ def valid? # @param alert_type [Object] Object to be assigned # @!visibility private def alert_type=(alert_type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('EventAlertType', ['error', 'warning', 'info', 'success', 'user_update', 'recommendation', 'snapshot']) - unless validator.valid?(alert_type) - fail ArgumentError, "invalid value for \"alert_type\", must be one of #{validator.allowable_values}." - end @alert_type = alert_type end @@ -239,10 +235,6 @@ def alert_type=(alert_type) # @param priority [Object] Object to be assigned # @!visibility private def priority=(priority) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('EventPriority', ['normal', 'low']) - unless validator.valid?(priority) - fail ArgumentError, "invalid value for \"priority\", must be one of #{validator.allowable_values}." - end @priority = priority end 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 307b306ef45..43ba9c287ed 100644 --- a/lib/datadog_api_client/v1/models/event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/event_query_definition.rb @@ -112,7 +112,7 @@ def valid? # @param search [Object] Object to be assigned # @!visibility private def search=(search) - if @search.nil? + if search.nil? fail ArgumentError, 'invalid value for "search", search cannot be nil.' end @search = search @@ -122,7 +122,7 @@ def search=(search) # @param tags_execution [Object] Object to be assigned # @!visibility private def tags_execution=(tags_execution) - if @tags_execution.nil? + if tags_execution.nil? fail ArgumentError, 'invalid value for "tags_execution", tags_execution cannot be nil.' end @tags_execution = tags_execution 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 512f576710b..f0d3e070b80 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 @@ -169,10 +169,6 @@ def valid? # @param event_size [Object] Object to be assigned # @!visibility private def event_size=(event_size) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetEventSize', ['s', 'l']) - unless validator.valid?(event_size) - fail ArgumentError, "invalid value for \"event_size\", must be one of #{validator.allowable_values}." - end @event_size = event_size end @@ -180,7 +176,7 @@ def event_size=(event_size) # @param query [Object] Object to be assigned # @!visibility private def query=(query) - if @query.nil? + if query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' end @query = query @@ -190,10 +186,6 @@ def query=(query) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -201,11 +193,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('EventStreamWidgetDefinitionType', ['event_stream']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 7bded24b43e..b9b5a37173b 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 @@ -159,7 +159,7 @@ def valid? # @param query [Object] Object to be assigned # @!visibility private def query=(query) - if @query.nil? + if query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' end @query = query @@ -169,10 +169,6 @@ def query=(query) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -180,11 +176,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('EventTimelineWidgetDefinitionType', ['event_timeline']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 1576748fdfa..9483282b46a 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 @@ -204,11 +204,7 @@ def valid? # @param data_source [Object] Object to be assigned # @!visibility private def data_source=(data_source) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionApmDependencyStatsDataSource', ['apm_dependency_stats']) - unless validator.valid?(data_source) - fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." - end - if @data_source.nil? + if data_source.nil? fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.' end @data_source = data_source @@ -218,7 +214,7 @@ def data_source=(data_source) # @param env [Object] Object to be assigned # @!visibility private def env=(env) - if @env.nil? + if env.nil? fail ArgumentError, 'invalid value for "env", env cannot be nil.' end @env = env @@ -228,7 +224,7 @@ def env=(env) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -238,7 +234,7 @@ def name=(name) # @param operation_name [Object] Object to be assigned # @!visibility private def operation_name=(operation_name) - if @operation_name.nil? + if operation_name.nil? fail ArgumentError, 'invalid value for "operation_name", operation_name cannot be nil.' end @operation_name = operation_name @@ -248,7 +244,7 @@ def operation_name=(operation_name) # @param resource_name [Object] Object to be assigned # @!visibility private def resource_name=(resource_name) - if @resource_name.nil? + if resource_name.nil? fail ArgumentError, 'invalid value for "resource_name", resource_name cannot be nil.' end @resource_name = resource_name @@ -258,7 +254,7 @@ def resource_name=(resource_name) # @param service [Object] Object to be assigned # @!visibility private def service=(service) - if @service.nil? + if service.nil? fail ArgumentError, 'invalid value for "service", service cannot be nil.' end @service = service @@ -268,11 +264,7 @@ def service=(service) # @param stat [Object] Object to be assigned # @!visibility private def stat=(stat) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionApmDependencyStatName', ['avg_duration', 'avg_root_duration', 'avg_spans_per_trace', 'error_rate', 'pct_exec_time', 'pct_of_traces', 'total_traces_count']) - unless validator.valid?(stat) - fail ArgumentError, "invalid value for \"stat\", must be one of #{validator.allowable_values}." - end - if @stat.nil? + if stat.nil? fail ArgumentError, 'invalid value for "stat", stat cannot be nil.' end @stat = stat 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 b85419dc71f..e2fa92b9117 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 @@ -198,11 +198,7 @@ def valid? # @param data_source [Object] Object to be assigned # @!visibility private def data_source=(data_source) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionApmResourceStatsDataSource', ['apm_resource_stats']) - unless validator.valid?(data_source) - fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." - end - if @data_source.nil? + if data_source.nil? fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.' end @data_source = data_source @@ -212,7 +208,7 @@ def data_source=(data_source) # @param env [Object] Object to be assigned # @!visibility private def env=(env) - if @env.nil? + if env.nil? fail ArgumentError, 'invalid value for "env", env cannot be nil.' end @env = env @@ -222,7 +218,7 @@ def env=(env) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -232,7 +228,7 @@ def name=(name) # @param service [Object] Object to be assigned # @!visibility private def service=(service) - if @service.nil? + if service.nil? fail ArgumentError, 'invalid value for "service", service cannot be nil.' end @service = service @@ -242,11 +238,7 @@ def service=(service) # @param stat [Object] Object to be assigned # @!visibility private def stat=(stat) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionApmResourceStatName', ['errors', 'error_rate', 'hits', 'latency_avg', 'latency_max', 'latency_p50', 'latency_p75', 'latency_p90', 'latency_p95', 'latency_p99']) - unless validator.valid?(stat) - fail ArgumentError, "invalid value for \"stat\", must be one of #{validator.allowable_values}." - end - if @stat.nil? + if stat.nil? fail ArgumentError, 'invalid value for "stat", stat cannot be nil.' end @stat = stat 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 90c5cf550d1..0fd7eb15a3b 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 @@ -156,7 +156,7 @@ def valid? # @param compute [Object] Object to be assigned # @!visibility private def compute=(compute) - if @compute.nil? + if compute.nil? fail ArgumentError, 'invalid value for "compute", compute cannot be nil.' end @compute = compute @@ -166,11 +166,7 @@ def compute=(compute) # @param data_source [Object] Object to be assigned # @!visibility private def data_source=(data_source) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionEventsDataSource', ['logs', 'spans', 'network', 'rum', 'security_signals', 'profiles', 'audit', 'events']) - unless validator.valid?(data_source) - fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." - end - if @data_source.nil? + if data_source.nil? fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.' end @data_source = data_source @@ -180,7 +176,7 @@ def data_source=(data_source) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name 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 7f30b68708b..4f692be3e68 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 @@ -117,11 +117,7 @@ def valid? # @param aggregation [Object] Object to be assigned # @!visibility private def aggregation=(aggregation) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) - unless validator.valid?(aggregation) - fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." - end - if @aggregation.nil? + if aggregation.nil? fail ArgumentError, 'invalid value for "aggregation", aggregation cannot be nil.' end @aggregation = aggregation 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 ff7e08a5567..cae63ea2a95 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 @@ -99,7 +99,7 @@ def valid? # @param query [Object] Object to be assigned # @!visibility private def query=(query) - if @query.nil? + if query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' end @query = query 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 716fc30dc9b..a4a3aa884b0 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 @@ -117,7 +117,7 @@ def valid? # @param facet [Object] Object to be assigned # @!visibility private def facet=(facet) - if @facet.nil? + if facet.nil? fail ArgumentError, 'invalid value for "facet", facet cannot be nil.' end @facet = facet 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 cae25ea29b1..f22e988f474 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 @@ -119,11 +119,7 @@ def valid? # @param aggregation [Object] Object to be assigned # @!visibility private def aggregation=(aggregation) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) - unless validator.valid?(aggregation) - fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." - end - if @aggregation.nil? + if aggregation.nil? fail ArgumentError, 'invalid value for "aggregation", aggregation cannot be nil.' end @aggregation = aggregation @@ -133,10 +129,6 @@ def aggregation=(aggregation) # @param order [Object] Object to be assigned # @!visibility private def order=(order) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) - unless validator.valid?(order) - fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." - end @order = order end 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 af0ee1396b6..e5c7969a19d 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 @@ -134,10 +134,6 @@ def valid? # @param aggregator [Object] Object to be assigned # @!visibility private def aggregator=(aggregator) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionMetricAggregation', ['avg', 'min', 'max', 'sum', 'last', 'area', 'l2norm', 'percentile']) - unless validator.valid?(aggregator) - fail ArgumentError, "invalid value for \"aggregator\", must be one of #{validator.allowable_values}." - end @aggregator = aggregator end @@ -145,11 +141,7 @@ def aggregator=(aggregator) # @param data_source [Object] Object to be assigned # @!visibility private def data_source=(data_source) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionMetricDataSource', ['metrics']) - unless validator.valid?(data_source) - fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." - end - if @data_source.nil? + if data_source.nil? fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.' end @data_source = data_source @@ -159,7 +151,7 @@ def data_source=(data_source) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -169,7 +161,7 @@ def name=(name) # @param query [Object] Object to be assigned # @!visibility private def query=(query) - if @query.nil? + if query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' end @query = query 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 5a3e73ae3b0..cb3cf60b24f 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 @@ -183,10 +183,6 @@ def valid? # @param aggregator [Object] Object to be assigned # @!visibility private def aggregator=(aggregator) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionMetricAggregation', ['avg', 'min', 'max', 'sum', 'last', 'area', 'l2norm', 'percentile']) - unless validator.valid?(aggregator) - fail ArgumentError, "invalid value for \"aggregator\", must be one of #{validator.allowable_values}." - end @aggregator = aggregator end @@ -194,11 +190,7 @@ def aggregator=(aggregator) # @param data_source [Object] Object to be assigned # @!visibility private def data_source=(data_source) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionProcessQueryDataSource', ['process', 'container']) - unless validator.valid?(data_source) - fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." - end - if @data_source.nil? + if data_source.nil? fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.' end @data_source = data_source @@ -208,7 +200,7 @@ def data_source=(data_source) # @param metric [Object] Object to be assigned # @!visibility private def metric=(metric) - if @metric.nil? + if metric.nil? fail ArgumentError, 'invalid value for "metric", metric cannot be nil.' end @metric = metric @@ -218,7 +210,7 @@ def metric=(metric) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -228,10 +220,6 @@ def name=(name) # @param sort [Object] Object to be assigned # @!visibility private def sort=(sort) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) - unless validator.valid?(sort) - fail ArgumentError, "invalid value for \"sort\", must be one of #{validator.allowable_values}." - end @sort = sort end 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 8cc42f0c43b..49038f050b0 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 @@ -141,7 +141,7 @@ def valid? # @param text [Object] Object to be assigned # @!visibility private def text=(text) - if @text.nil? + if text.nil? fail ArgumentError, 'invalid value for "text", text cannot be nil.' end @text = text @@ -151,10 +151,6 @@ def text=(text) # @param text_align [Object] Object to be assigned # @!visibility private def text_align=(text_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(text_align) - fail ArgumentError, "invalid value for \"text_align\", must be one of #{validator.allowable_values}." - end @text_align = text_align end @@ -162,11 +158,7 @@ def text_align=(text_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FreeTextWidgetDefinitionType', ['free_text']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type diff --git a/lib/datadog_api_client/v1/models/funnel_query.rb b/lib/datadog_api_client/v1/models/funnel_query.rb index 891f391e978..7dd4aeb2751 100644 --- a/lib/datadog_api_client/v1/models/funnel_query.rb +++ b/lib/datadog_api_client/v1/models/funnel_query.rb @@ -129,11 +129,7 @@ def valid? # @param data_source [Object] Object to be assigned # @!visibility private def data_source=(data_source) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FunnelSource', ['rum']) - unless validator.valid?(data_source) - fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." - end - if @data_source.nil? + if data_source.nil? fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.' end @data_source = data_source @@ -143,7 +139,7 @@ def data_source=(data_source) # @param query_string [Object] Object to be assigned # @!visibility private def query_string=(query_string) - if @query_string.nil? + if query_string.nil? fail ArgumentError, 'invalid value for "query_string", query_string cannot be nil.' end @query_string = query_string @@ -153,7 +149,7 @@ def query_string=(query_string) # @param steps [Object] Object to be assigned # @!visibility private def steps=(steps) - if @steps.nil? + if steps.nil? fail ArgumentError, 'invalid value for "steps", steps cannot be nil.' end @steps = steps diff --git a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb index 5b7483c0dbc..c796891f528 100644 --- a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb +++ b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb @@ -112,7 +112,7 @@ def valid? # @param facet [Object] Object to be assigned # @!visibility private def facet=(facet) - if @facet.nil? + if facet.nil? fail ArgumentError, 'invalid value for "facet", facet cannot be nil.' end @facet = facet @@ -122,7 +122,7 @@ def facet=(facet) # @param value [Object] Object to be assigned # @!visibility private def value=(value) - if @value.nil? + if value.nil? fail ArgumentError, 'invalid value for "value", value cannot be nil.' end @value = value 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 995f3928345..3b8fd0d0478 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb @@ -160,7 +160,7 @@ def valid? # @param requests [Object] Object to be assigned # @!visibility private def requests=(requests) - if @requests.nil? + if requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end if requests.length > 1 @@ -176,10 +176,6 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -187,11 +183,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FunnelWidgetDefinitionType', ['funnel']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 fa2b6509e63..b4d1dfe4fd5 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_request.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_request.rb @@ -112,7 +112,7 @@ def valid? # @param query [Object] Object to be assigned # @!visibility private def query=(query) - if @query.nil? + if query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' end @query = query @@ -122,11 +122,7 @@ def query=(query) # @param request_type [Object] Object to be assigned # @!visibility private def request_type=(request_type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FunnelRequestType', ['funnel']) - unless validator.valid?(request_type) - fail ArgumentError, "invalid value for \"request_type\", must be one of #{validator.allowable_values}." - end - if @request_type.nil? + if request_type.nil? fail ArgumentError, 'invalid value for "request_type", request_type cannot be nil.' end @request_type = request_type 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 d7761ba5a12..79fa4b1c0ff 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb @@ -200,7 +200,7 @@ def valid? # @param requests [Object] Object to be assigned # @!visibility private def requests=(requests) - if @requests.nil? + if requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end if requests.length > 1 @@ -216,7 +216,7 @@ def requests=(requests) # @param style [Object] Object to be assigned # @!visibility private def style=(style) - if @style.nil? + if style.nil? fail ArgumentError, 'invalid value for "style", style cannot be nil.' end @style = style @@ -226,10 +226,6 @@ def style=(style) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -237,11 +233,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('GeomapWidgetDefinitionType', ['geomap']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type @@ -251,7 +243,7 @@ def type=(type) # @param view [Object] Object to be assigned # @!visibility private def view=(view) - if @view.nil? + if view.nil? fail ArgumentError, 'invalid value for "view", view cannot be nil.' end @view = view 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 aab286e7842..576a77278ad 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 @@ -112,7 +112,7 @@ def valid? # @param palette [Object] Object to be assigned # @!visibility private def palette=(palette) - if @palette.nil? + if palette.nil? fail ArgumentError, 'invalid value for "palette", palette cannot be nil.' end @palette = palette @@ -122,7 +122,7 @@ def palette=(palette) # @param palette_flip [Object] Object to be assigned # @!visibility private def palette_flip=(palette_flip) - if @palette_flip.nil? + if palette_flip.nil? fail ArgumentError, 'invalid value for "palette_flip", palette_flip cannot be nil.' end @palette_flip = palette_flip 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 1199671c0fe..4eee9a5e818 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 @@ -99,7 +99,7 @@ def valid? # @param focus [Object] Object to be assigned # @!visibility private def focus=(focus) - if @focus.nil? + if focus.nil? fail ArgumentError, 'invalid value for "focus", focus cannot be nil.' end @focus = focus 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 c791e7a77ed..983efb5761e 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_request.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_request.rb @@ -153,10 +153,6 @@ def valid? # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) - unless validator.valid?(response_format) - fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." - end @response_format = response_format end 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 fe1de2b81d6..0bbb172ed29 100644 --- a/lib/datadog_api_client/v1/models/group_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/group_widget_definition.rb @@ -176,11 +176,7 @@ def valid? # @param layout_type [Object] Object to be assigned # @!visibility private def layout_type=(layout_type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetLayoutType', ['ordered']) - unless validator.valid?(layout_type) - fail ArgumentError, "invalid value for \"layout_type\", must be one of #{validator.allowable_values}." - end - if @layout_type.nil? + if layout_type.nil? fail ArgumentError, 'invalid value for "layout_type", layout_type cannot be nil.' end @layout_type = layout_type @@ -190,10 +186,6 @@ def layout_type=(layout_type) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -201,11 +193,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('GroupWidgetDefinitionType', ['group']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type @@ -215,7 +203,7 @@ def type=(type) # @param widgets [Object] Object to be assigned # @!visibility private def widgets=(widgets) - if @widgets.nil? + if widgets.nil? fail ArgumentError, 'invalid value for "widgets", widgets cannot be nil.' end @widgets = widgets 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 158219f458d..93a8b35990d 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 @@ -209,7 +209,7 @@ def valid? # @param requests [Object] Object to be assigned # @!visibility private def requests=(requests) - if @requests.nil? + if requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end if requests.length > 1 @@ -225,10 +225,6 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -236,11 +232,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('HeatMapWidgetDefinitionType', ['heatmap']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 d61cde057fe..bff3e986ca1 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 @@ -219,10 +219,6 @@ def valid? # @param node_type [Object] Object to be assigned # @!visibility private def node_type=(node_type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetNodeType', ['host', 'container']) - unless validator.valid?(node_type) - fail ArgumentError, "invalid value for \"node_type\", must be one of #{validator.allowable_values}." - end @node_type = node_type end @@ -230,7 +226,7 @@ def node_type=(node_type) # @param requests [Object] Object to be assigned # @!visibility private def requests=(requests) - if @requests.nil? + if requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end @requests = requests @@ -240,10 +236,6 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -251,11 +243,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('HostMapWidgetDefinitionType', ['hostmap']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 7f439ccc5e8..5760311e9f8 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 @@ -158,10 +158,6 @@ def valid? # @param usage_type [Object] Object to be assigned # @!visibility private def usage_type=(usage_type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('HourlyUsageAttributionUsageType', ['api_usage', 'apm_host_usage', 'browser_usage', 'container_usage', 'custom_timeseries_usage', 'fargate_usage', 'functions_usage', 'indexed_logs_usage', 'infra_host_usage', 'invocations_usage', 'npm_host_usage', 'profiled_container_usage', 'profiled_host_usage', 'snmp_usage']) - unless validator.valid?(usage_type) - fail ArgumentError, "invalid value for \"usage_type\", must be one of #{validator.allowable_values}." - end @usage_type = usage_type end 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 e9b47737d57..4c0f1d41372 100644 --- a/lib/datadog_api_client/v1/models/http_log_error.rb +++ b/lib/datadog_api_client/v1/models/http_log_error.rb @@ -116,7 +116,7 @@ def valid? # @param code [Object] Object to be assigned # @!visibility private def code=(code) - if @code.nil? + if code.nil? fail ArgumentError, 'invalid value for "code", code cannot be nil.' end if code > 2147483647 @@ -129,7 +129,7 @@ def code=(code) # @param message [Object] Object to be assigned # @!visibility private def message=(message) - if @message.nil? + if message.nil? fail ArgumentError, 'invalid value for "message", message cannot be nil.' end @message = message 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 0255e5d61d9..930ee8cc09f 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 @@ -114,11 +114,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('IFrameWidgetDefinitionType', ['iframe']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type @@ -128,7 +124,7 @@ def type=(type) # @param url [Object] Object to be assigned # @!visibility private def url=(url) - if @url.nil? + if url.nil? fail ArgumentError, 'invalid value for "url", url cannot be nil.' end @url = url 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 d6533faafa1..748ea5cb3bc 100644 --- a/lib/datadog_api_client/v1/models/idp_form_data.rb +++ b/lib/datadog_api_client/v1/models/idp_form_data.rb @@ -99,7 +99,7 @@ def valid? # @param idp_file [Object] Object to be assigned # @!visibility private def idp_file=(idp_file) - if @idp_file.nil? + if idp_file.nil? fail ArgumentError, 'invalid value for "idp_file", idp_file cannot be nil.' end @idp_file = idp_file diff --git a/lib/datadog_api_client/v1/models/idp_response.rb b/lib/datadog_api_client/v1/models/idp_response.rb index f8cd262d083..98990238605 100644 --- a/lib/datadog_api_client/v1/models/idp_response.rb +++ b/lib/datadog_api_client/v1/models/idp_response.rb @@ -99,7 +99,7 @@ def valid? # @param message [Object] Object to be assigned # @!visibility private def message=(message) - if @message.nil? + if message.nil? fail ArgumentError, 'invalid value for "message", message cannot be nil.' end @message = message 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 0aca1276ada..b1b578a6289 100644 --- a/lib/datadog_api_client/v1/models/image_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/image_widget_definition.rb @@ -183,10 +183,6 @@ def valid? # @param horizontal_align [Object] Object to be assigned # @!visibility private def horizontal_align=(horizontal_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetHorizontalAlign', ['center', 'left', 'right']) - unless validator.valid?(horizontal_align) - fail ArgumentError, "invalid value for \"horizontal_align\", must be one of #{validator.allowable_values}." - end @horizontal_align = horizontal_align end @@ -194,10 +190,6 @@ def horizontal_align=(horizontal_align) # @param margin [Object] Object to be assigned # @!visibility private def margin=(margin) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetMargin', ['sm', 'md', 'lg', 'small', 'large']) - unless validator.valid?(margin) - fail ArgumentError, "invalid value for \"margin\", must be one of #{validator.allowable_values}." - end @margin = margin end @@ -205,10 +197,6 @@ def margin=(margin) # @param sizing [Object] Object to be assigned # @!visibility private def sizing=(sizing) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetImageSizing', ['fill', 'contain', 'cover', 'none', 'scale-down', 'zoom', 'fit', 'center']) - unless validator.valid?(sizing) - fail ArgumentError, "invalid value for \"sizing\", must be one of #{validator.allowable_values}." - end @sizing = sizing end @@ -216,11 +204,7 @@ def sizing=(sizing) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ImageWidgetDefinitionType', ['image']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type @@ -230,7 +214,7 @@ def type=(type) # @param url [Object] Object to be assigned # @!visibility private def url=(url) - if @url.nil? + if url.nil? fail ArgumentError, 'invalid value for "url", url cannot be nil.' end @url = url @@ -240,10 +224,6 @@ def url=(url) # @param vertical_align [Object] Object to be assigned # @!visibility private def vertical_align=(vertical_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetVerticalAlign', ['center', 'top', 'bottom']) - unless validator.valid?(vertical_align) - fail ArgumentError, "invalid value for \"vertical_align\", must be one of #{validator.allowable_values}." - end @vertical_align = vertical_align end 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 80cb1bf7bc3..294a8184bc3 100644 --- a/lib/datadog_api_client/v1/models/list_stream_column.rb +++ b/lib/datadog_api_client/v1/models/list_stream_column.rb @@ -112,7 +112,7 @@ def valid? # @param field [Object] Object to be assigned # @!visibility private def field=(field) - if @field.nil? + if field.nil? fail ArgumentError, 'invalid value for "field", field cannot be nil.' end @field = field @@ -122,11 +122,7 @@ def field=(field) # @param width [Object] Object to be assigned # @!visibility private def width=(width) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ListStreamColumnWidth', ['auto', 'compact', 'full']) - unless validator.valid?(width) - fail ArgumentError, "invalid value for \"width\", must be one of #{validator.allowable_values}." - end - if @width.nil? + if width.nil? fail ArgumentError, 'invalid value for "width", width cannot be nil.' end @width = width 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 d41b1e297ea..c2c9dcb9713 100644 --- a/lib/datadog_api_client/v1/models/list_stream_query.rb +++ b/lib/datadog_api_client/v1/models/list_stream_query.rb @@ -125,11 +125,7 @@ def valid? # @param data_source [Object] Object to be assigned # @!visibility private def data_source=(data_source) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ListStreamSource', ['issue_stream', 'logs_stream', 'audit_stream']) - unless validator.valid?(data_source) - fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." - end - if @data_source.nil? + if data_source.nil? fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.' end @data_source = data_source @@ -139,7 +135,7 @@ def data_source=(data_source) # @param query_string [Object] Object to be assigned # @!visibility private def query_string=(query_string) - if @query_string.nil? + if query_string.nil? fail ArgumentError, 'invalid value for "query_string", query_string cannot be nil.' end @query_string = query_string 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 2c7c4020a7a..76167dbb96c 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 @@ -179,7 +179,7 @@ def valid? # @param requests [Object] Object to be assigned # @!visibility private def requests=(requests) - if @requests.nil? + if requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end if requests.length > 1 @@ -195,10 +195,6 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -206,11 +202,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ListStreamWidgetDefinitionType', ['list_stream']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 02726c38fe3..7d11dea138c 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 @@ -127,7 +127,7 @@ def valid? # @param columns [Object] Object to be assigned # @!visibility private def columns=(columns) - if @columns.nil? + if columns.nil? fail ArgumentError, 'invalid value for "columns", columns cannot be nil.' end @columns = columns @@ -137,7 +137,7 @@ def columns=(columns) # @param query [Object] Object to be assigned # @!visibility private def query=(query) - if @query.nil? + if query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' end @query = query @@ -147,11 +147,7 @@ def query=(query) # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ListStreamResponseFormat', ['event_list']) - unless validator.valid?(response_format) - fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." - end - if @response_format.nil? + if response_format.nil? fail ArgumentError, 'invalid value for "response_format", response_format cannot be nil.' end @response_format = response_format 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 b38e12d8c4d..2a78f45e352 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 @@ -117,7 +117,7 @@ def valid? # @param facet [Object] Object to be assigned # @!visibility private def facet=(facet) - if @facet.nil? + if facet.nil? fail ArgumentError, 'invalid value for "facet", facet cannot be nil.' end @facet = facet 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 37f87b10c77..8ec6cfb0a8a 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 @@ -121,7 +121,7 @@ def valid? # @param aggregation [Object] Object to be assigned # @!visibility private def aggregation=(aggregation) - if @aggregation.nil? + if aggregation.nil? fail ArgumentError, 'invalid value for "aggregation", aggregation cannot be nil.' end @aggregation = aggregation @@ -131,11 +131,7 @@ def aggregation=(aggregation) # @param order [Object] Object to be assigned # @!visibility private def order=(order) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) - unless validator.valid?(order) - fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." - end - if @order.nil? + if order.nil? fail ArgumentError, 'invalid value for "order", order cannot be nil.' end @order = order 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 d73c9657361..b459ed094a4 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 @@ -99,7 +99,7 @@ def valid? # @param query [Object] Object to be assigned # @!visibility private def query=(query) - if @query.nil? + if query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' end @query = query 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 57db367389c..6d6144d12c7 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 @@ -213,10 +213,6 @@ def valid? # @param message_display [Object] Object to be assigned # @!visibility private def message_display=(message_display) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetMessageDisplay', ['inline', 'expanded-md', 'expanded-lg']) - unless validator.valid?(message_display) - fail ArgumentError, "invalid value for \"message_display\", must be one of #{validator.allowable_values}." - end @message_display = message_display end @@ -224,10 +220,6 @@ def message_display=(message_display) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -235,11 +227,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogStreamWidgetDefinitionType', ['log_stream']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 796b9e459bc..b67b486ab8c 100644 --- a/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb @@ -179,7 +179,7 @@ def valid? # @param expression [Object] Object to be assigned # @!visibility private def expression=(expression) - if @expression.nil? + if expression.nil? fail ArgumentError, 'invalid value for "expression", expression cannot be nil.' end @expression = expression @@ -189,7 +189,7 @@ def expression=(expression) # @param target [Object] Object to be assigned # @!visibility private def target=(target) - if @target.nil? + if target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' end @target = target @@ -199,11 +199,7 @@ def target=(target) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsArithmeticProcessorType', ['arithmetic-processor']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 955538bcf58..91420ca7fb9 100644 --- a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb @@ -206,7 +206,7 @@ def valid? # @param sources [Object] Object to be assigned # @!visibility private def sources=(sources) - if @sources.nil? + if sources.nil? fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' end @sources = sources @@ -216,7 +216,7 @@ def sources=(sources) # @param target [Object] Object to be assigned # @!visibility private def target=(target) - if @target.nil? + if target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' end @target = target @@ -226,10 +226,6 @@ def target=(target) # @param target_format [Object] Object to be assigned # @!visibility private def target_format=(target_format) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TargetFormatType', ['auto', 'string', 'integer', 'double']) - unless validator.valid?(target_format) - fail ArgumentError, "invalid value for \"target_format\", must be one of #{validator.allowable_values}." - end @target_format = target_format end @@ -237,11 +233,7 @@ def target_format=(target_format) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsAttributeRemapperType', ['attribute-remapper']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 8a90ba6f78b..a469a7e625c 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor.rb @@ -162,7 +162,7 @@ def valid? # @param categories [Object] Object to be assigned # @!visibility private def categories=(categories) - if @categories.nil? + if categories.nil? fail ArgumentError, 'invalid value for "categories", categories cannot be nil.' end @categories = categories @@ -172,7 +172,7 @@ def categories=(categories) # @param target [Object] Object to be assigned # @!visibility private def target=(target) - if @target.nil? + if target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' end @target = target @@ -182,11 +182,7 @@ def target=(target) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsCategoryProcessorType', ['category-processor']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 26947a55335..a3ddca877eb 100644 --- a/lib/datadog_api_client/v1/models/logs_date_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_date_remapper.rb @@ -154,7 +154,7 @@ def valid? # @param sources [Object] Object to be assigned # @!visibility private def sources=(sources) - if @sources.nil? + if sources.nil? fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' end @sources = sources @@ -164,11 +164,7 @@ def sources=(sources) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsDateRemapperType', ['date-remapper']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type diff --git a/lib/datadog_api_client/v1/models/logs_exclusion.rb b/lib/datadog_api_client/v1/models/logs_exclusion.rb index 1ac14e96dfe..549721a8ac4 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion.rb @@ -117,7 +117,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name 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 ed2692835c6..00beae7122c 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb @@ -110,7 +110,7 @@ def valid? # @param sample_rate [Object] Object to be assigned # @!visibility private def sample_rate=(sample_rate) - if @sample_rate.nil? + if sample_rate.nil? fail ArgumentError, 'invalid value for "sample_rate", sample_rate cannot be nil.' end @sample_rate = sample_rate 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 09e629e4e26..5b929ae1ccc 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 @@ -154,7 +154,7 @@ def valid? # @param sources [Object] Object to be assigned # @!visibility private def sources=(sources) - if @sources.nil? + if sources.nil? fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' end @sources = sources @@ -164,7 +164,7 @@ def sources=(sources) # @param target [Object] Object to be assigned # @!visibility private def target=(target) - if @target.nil? + if target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' end @target = target @@ -174,11 +174,7 @@ def target=(target) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsGeoIPParserType', ['geo-ip-parser']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 9e06ad0080f..ba2472cbb18 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser.rb @@ -165,7 +165,7 @@ def valid? # @param grok [Object] Object to be assigned # @!visibility private def grok=(grok) - if @grok.nil? + if grok.nil? fail ArgumentError, 'invalid value for "grok", grok cannot be nil.' end @grok = grok @@ -185,7 +185,7 @@ def samples=(samples) # @param source [Object] Object to be assigned # @!visibility private def source=(source) - if @source.nil? + if source.nil? fail ArgumentError, 'invalid value for "source", source cannot be nil.' end @source = source @@ -195,11 +195,7 @@ def source=(source) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsGrokParserType', ['grok-parser']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 89a71fe7143..639bb3c0881 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 @@ -110,7 +110,7 @@ def valid? # @param match_rules [Object] Object to be assigned # @!visibility private def match_rules=(match_rules) - if @match_rules.nil? + if match_rules.nil? fail ArgumentError, 'invalid value for "match_rules", match_rules cannot be nil.' end @match_rules = match_rules diff --git a/lib/datadog_api_client/v1/models/logs_index.rb b/lib/datadog_api_client/v1/models/logs_index.rb index e3f78513121..e636bf4bd32 100644 --- a/lib/datadog_api_client/v1/models/logs_index.rb +++ b/lib/datadog_api_client/v1/models/logs_index.rb @@ -154,7 +154,7 @@ def valid? # @param filter [Object] Object to be assigned # @!visibility private def filter=(filter) - if @filter.nil? + if filter.nil? fail ArgumentError, 'invalid value for "filter", filter cannot be nil.' end @filter = filter @@ -164,7 +164,7 @@ def filter=(filter) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name 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 fb4d47ade15..341299ffbfd 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 @@ -145,7 +145,7 @@ def valid? # @param filter [Object] Object to be assigned # @!visibility private def filter=(filter) - if @filter.nil? + if filter.nil? fail ArgumentError, 'invalid value for "filter", filter cannot be nil.' end @filter = filter 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 b9a3b1ce1d3..ede0e0e767e 100644 --- a/lib/datadog_api_client/v1/models/logs_indexes_order.rb +++ b/lib/datadog_api_client/v1/models/logs_indexes_order.rb @@ -103,7 +103,7 @@ def valid? # @param index_names [Object] Object to be assigned # @!visibility private def index_names=(index_names) - if @index_names.nil? + if index_names.nil? fail ArgumentError, 'invalid value for "index_names", index_names cannot be nil.' end @index_names = index_names 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 f6a4d7a1a22..9266c8f380d 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request.rb @@ -163,10 +163,6 @@ def limit=(limit) # @param sort [Object] Object to be assigned # @!visibility private def sort=(sort) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsSort', ['asc', 'desc']) - unless validator.valid?(sort) - fail ArgumentError, "invalid value for \"sort\", must be one of #{validator.allowable_values}." - end @sort = sort end @@ -174,7 +170,7 @@ def sort=(sort) # @param time [Object] Object to be assigned # @!visibility private def time=(time) - if @time.nil? + if time.nil? fail ArgumentError, 'invalid value for "time", time cannot be nil.' end @time = time 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 514828ed7eb..5ab694bf4d7 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 @@ -122,7 +122,7 @@ def valid? # @param from [Object] Object to be assigned # @!visibility private def from=(from) - if @from.nil? + if from.nil? fail ArgumentError, 'invalid value for "from", from cannot be nil.' end @from = from @@ -132,7 +132,7 @@ def from=(from) # @param to [Object] Object to be assigned # @!visibility private def to=(to) - if @to.nil? + if to.nil? fail ArgumentError, 'invalid value for "to", to cannot be nil.' end @to = to 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 e70215ac183..c1e418c304a 100644 --- a/lib/datadog_api_client/v1/models/logs_lookup_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_lookup_processor.rb @@ -178,7 +178,7 @@ def valid? # @param lookup_table [Object] Object to be assigned # @!visibility private def lookup_table=(lookup_table) - if @lookup_table.nil? + if lookup_table.nil? fail ArgumentError, 'invalid value for "lookup_table", lookup_table cannot be nil.' end @lookup_table = lookup_table @@ -188,7 +188,7 @@ def lookup_table=(lookup_table) # @param source [Object] Object to be assigned # @!visibility private def source=(source) - if @source.nil? + if source.nil? fail ArgumentError, 'invalid value for "source", source cannot be nil.' end @source = source @@ -198,7 +198,7 @@ def source=(source) # @param target [Object] Object to be assigned # @!visibility private def target=(target) - if @target.nil? + if target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' end @target = target @@ -208,11 +208,7 @@ def target=(target) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsLookupProcessorType', ['lookup-processor']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 ba216217003..16d2c3c9883 100644 --- a/lib/datadog_api_client/v1/models/logs_message_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_message_remapper.rb @@ -143,7 +143,7 @@ def valid? # @param sources [Object] Object to be assigned # @!visibility private def sources=(sources) - if @sources.nil? + if sources.nil? fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' end @sources = sources @@ -153,11 +153,7 @@ def sources=(sources) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsMessageRemapperType', ['message-remapper']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type diff --git a/lib/datadog_api_client/v1/models/logs_pipeline.rb b/lib/datadog_api_client/v1/models/logs_pipeline.rb index 8eb459f2f27..81021bc2b1a 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline.rb @@ -159,7 +159,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name 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 345ba249aab..423051b9e89 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb @@ -145,11 +145,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsPipelineProcessorType', ['pipeline']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 803f07d12a4..623d6e8e4a7 100644 --- a/lib/datadog_api_client/v1/models/logs_pipelines_order.rb +++ b/lib/datadog_api_client/v1/models/logs_pipelines_order.rb @@ -102,7 +102,7 @@ def valid? # @param pipeline_ids [Object] Object to be assigned # @!visibility private def pipeline_ids=(pipeline_ids) - if @pipeline_ids.nil? + if pipeline_ids.nil? fail ArgumentError, 'invalid value for "pipeline_ids", pipeline_ids cannot be nil.' end @pipeline_ids = pipeline_ids 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 52dbe6a24a6..15da8389229 100644 --- a/lib/datadog_api_client/v1/models/logs_query_compute.rb +++ b/lib/datadog_api_client/v1/models/logs_query_compute.rb @@ -117,7 +117,7 @@ def valid? # @param aggregation [Object] Object to be assigned # @!visibility private def aggregation=(aggregation) - if @aggregation.nil? + if aggregation.nil? fail ArgumentError, 'invalid value for "aggregation", aggregation cannot be nil.' end @aggregation = aggregation 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 794228dcb9c..40103353e8a 100644 --- a/lib/datadog_api_client/v1/models/logs_service_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_service_remapper.rb @@ -139,7 +139,7 @@ def valid? # @param sources [Object] Object to be assigned # @!visibility private def sources=(sources) - if @sources.nil? + if sources.nil? fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' end @sources = sources @@ -149,11 +149,7 @@ def sources=(sources) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsServiceRemapperType', ['service-remapper']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 77710ac3304..c3a1737e930 100644 --- a/lib/datadog_api_client/v1/models/logs_status_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_status_remapper.rb @@ -153,7 +153,7 @@ def valid? # @param sources [Object] Object to be assigned # @!visibility private def sources=(sources) - if @sources.nil? + if sources.nil? fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' end @sources = sources @@ -163,11 +163,7 @@ def sources=(sources) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsStatusRemapperType', ['status-remapper']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 67fa54823ea..a99cae4e4a4 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 @@ -171,7 +171,7 @@ def valid? # @param target [Object] Object to be assigned # @!visibility private def target=(target) - if @target.nil? + if target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' end @target = target @@ -181,7 +181,7 @@ def target=(target) # @param template [Object] Object to be assigned # @!visibility private def template=(template) - if @template.nil? + if template.nil? fail ArgumentError, 'invalid value for "template", template cannot be nil.' end @template = template @@ -191,11 +191,7 @@ def template=(template) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsStringBuilderProcessorType', ['string-builder-processor']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 a46d92b6fa4..f58c30d3258 100644 --- a/lib/datadog_api_client/v1/models/logs_trace_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_trace_remapper.rb @@ -139,11 +139,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsTraceRemapperType', ['trace-id-remapper']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 e5de6895f52..bc768135826 100644 --- a/lib/datadog_api_client/v1/models/logs_url_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_url_parser.rb @@ -165,7 +165,7 @@ def valid? # @param sources [Object] Object to be assigned # @!visibility private def sources=(sources) - if @sources.nil? + if sources.nil? fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' end @sources = sources @@ -175,7 +175,7 @@ def sources=(sources) # @param target [Object] Object to be assigned # @!visibility private def target=(target) - if @target.nil? + if target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' end @target = target @@ -185,11 +185,7 @@ def target=(target) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsURLParserType', ['url-parser']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 d98e86dbc6f..588d5aa4de8 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 @@ -165,7 +165,7 @@ def valid? # @param sources [Object] Object to be assigned # @!visibility private def sources=(sources) - if @sources.nil? + if sources.nil? fail ArgumentError, 'invalid value for "sources", sources cannot be nil.' end @sources = sources @@ -175,7 +175,7 @@ def sources=(sources) # @param target [Object] Object to be assigned # @!visibility private def target=(target) - if @target.nil? + if target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' end @target = target @@ -185,11 +185,7 @@ def target=(target) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('LogsUserAgentParserType', ['user-agent-parser']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type diff --git a/lib/datadog_api_client/v1/models/metrics_payload.rb b/lib/datadog_api_client/v1/models/metrics_payload.rb index 65c7b702546..92d53a64190 100644 --- a/lib/datadog_api_client/v1/models/metrics_payload.rb +++ b/lib/datadog_api_client/v1/models/metrics_payload.rb @@ -101,7 +101,7 @@ def valid? # @param series [Object] Object to be assigned # @!visibility private def series=(series) - if @series.nil? + if series.nil? fail ArgumentError, 'invalid value for "series", series cannot be nil.' end @series = series diff --git a/lib/datadog_api_client/v1/models/monitor.rb b/lib/datadog_api_client/v1/models/monitor.rb index 3fcebfba7dd..9d3b565d53a 100644 --- a/lib/datadog_api_client/v1/models/monitor.rb +++ b/lib/datadog_api_client/v1/models/monitor.rb @@ -253,10 +253,6 @@ def valid? # @param overall_state [Object] Object to be assigned # @!visibility private def overall_state=(overall_state) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) - unless validator.valid?(overall_state) - fail ArgumentError, "invalid value for \"overall_state\", must be one of #{validator.allowable_values}." - end @overall_state = overall_state end @@ -277,7 +273,7 @@ def priority=(priority) # @param query [Object] Object to be assigned # @!visibility private def query=(query) - if @query.nil? + if query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' end @query = query @@ -287,11 +283,7 @@ def query=(query) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorType', ['composite', 'event alert', 'log alert', 'metric alert', 'process alert', 'query alert', 'rum alert', 'service check', 'synthetics alert', 'trace-analytics alert', 'slo alert', 'event-v2 alert', 'audit alert', 'ci-pipelines alert']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 1d43dfca6ad..ad90e0d35bb 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 @@ -156,7 +156,7 @@ def valid? # @param compute [Object] Object to be assigned # @!visibility private def compute=(compute) - if @compute.nil? + if compute.nil? fail ArgumentError, 'invalid value for "compute", compute cannot be nil.' end @compute = compute @@ -166,11 +166,7 @@ def compute=(compute) # @param data_source [Object] Object to be assigned # @!visibility private def data_source=(data_source) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorFormulaAndFunctionEventsDataSource', ['rum']) - unless validator.valid?(data_source) - fail ArgumentError, "invalid value for \"data_source\", must be one of #{validator.allowable_values}." - end - if @data_source.nil? + if data_source.nil? fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.' end @data_source = data_source @@ -180,7 +176,7 @@ def data_source=(data_source) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name 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 f2aa9a8a32a..4af77e45f63 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 @@ -117,11 +117,7 @@ def valid? # @param aggregation [Object] Object to be assigned # @!visibility private def aggregation=(aggregation) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorFormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) - unless validator.valid?(aggregation) - fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." - end - if @aggregation.nil? + if aggregation.nil? fail ArgumentError, 'invalid value for "aggregation", aggregation cannot be nil.' end @aggregation = aggregation 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 03fc1c8d5c4..0f236e2ca3b 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 @@ -99,7 +99,7 @@ def valid? # @param query [Object] Object to be assigned # @!visibility private def query=(query) - if @query.nil? + if query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' end @query = query 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 56c7aef263d..c07396cabe2 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 @@ -117,7 +117,7 @@ def valid? # @param facet [Object] Object to be assigned # @!visibility private def facet=(facet) - if @facet.nil? + if facet.nil? fail ArgumentError, 'invalid value for "facet", facet cannot be nil.' end @facet = facet 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 accbdee8f92..6d2fcb79629 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 @@ -119,11 +119,7 @@ def valid? # @param aggregation [Object] Object to be assigned # @!visibility private def aggregation=(aggregation) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorFormulaAndFunctionEventAggregation', ['count', 'cardinality', 'median', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) - unless validator.valid?(aggregation) - fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." - end - if @aggregation.nil? + if aggregation.nil? fail ArgumentError, 'invalid value for "aggregation", aggregation cannot be nil.' end @aggregation = aggregation @@ -133,10 +129,6 @@ def aggregation=(aggregation) # @param order [Object] Object to be assigned # @!visibility private def order=(order) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) - unless validator.valid?(order) - fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." - end @order = order end 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 634e976b817..2d42c427bad 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 @@ -152,10 +152,6 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end @status = status end 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 77fa60c56d5..04948647e63 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_result.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_result.rb @@ -215,10 +215,6 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end @status = status end @@ -226,10 +222,6 @@ def status=(status) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorType', ['composite', 'event alert', 'log alert', 'metric alert', 'process alert', 'query alert', 'rum alert', 'service check', 'synthetics alert', 'trace-analytics alert', 'slo alert', 'event-v2 alert', 'audit alert', 'ci-pipelines alert']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 9586bcf04ef..1a9849f8cd9 100644 --- a/lib/datadog_api_client/v1/models/monitor_state_group.rb +++ b/lib/datadog_api_client/v1/models/monitor_state_group.rb @@ -140,10 +140,6 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end @status = status end 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 a482266b927..1fbab9ab1ba 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 @@ -213,10 +213,6 @@ def valid? # @param color_preference [Object] Object to be assigned # @!visibility private def color_preference=(color_preference) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetColorPreference', ['background', 'text']) - unless validator.valid?(color_preference) - fail ArgumentError, "invalid value for \"color_preference\", must be one of #{validator.allowable_values}." - end @color_preference = color_preference end @@ -224,10 +220,6 @@ def color_preference=(color_preference) # @param display_format [Object] Object to be assigned # @!visibility private def display_format=(display_format) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetMonitorSummaryDisplayFormat', ['counts', 'countsAndList', 'list']) - unless validator.valid?(display_format) - fail ArgumentError, "invalid value for \"display_format\", must be one of #{validator.allowable_values}." - end @display_format = display_format end @@ -235,7 +227,7 @@ def display_format=(display_format) # @param query [Object] Object to be assigned # @!visibility private def query=(query) - if @query.nil? + if query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' end @query = query @@ -245,10 +237,6 @@ def query=(query) # @param sort [Object] Object to be assigned # @!visibility private def sort=(sort) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetMonitorSummarySort', ['name', 'group', 'status', 'tags', 'triggered', 'group,asc', 'group,desc', 'name,asc', 'name,desc', 'status,asc', 'status,desc', 'tags,asc', 'tags,desc', 'triggered,asc', 'triggered,desc']) - unless validator.valid?(sort) - fail ArgumentError, "invalid value for \"sort\", must be one of #{validator.allowable_values}." - end @sort = sort end @@ -256,10 +244,6 @@ def sort=(sort) # @param summary_type [Object] Object to be assigned # @!visibility private def summary_type=(summary_type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetSummaryType', ['monitors', 'groups', 'combined']) - unless validator.valid?(summary_type) - fail ArgumentError, "invalid value for \"summary_type\", must be one of #{validator.allowable_values}." - end @summary_type = summary_type end @@ -267,10 +251,6 @@ def summary_type=(summary_type) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -278,11 +258,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorSummaryWidgetDefinitionType', ['manage_status']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 ddeaeb521ab..74a724950df 100644 --- a/lib/datadog_api_client/v1/models/monitor_update_request.rb +++ b/lib/datadog_api_client/v1/models/monitor_update_request.rb @@ -243,10 +243,6 @@ def valid? # @param overall_state [Object] Object to be assigned # @!visibility private def overall_state=(overall_state) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorOverallStates', ['Alert', 'Ignored', 'No Data', 'OK', 'Skipped', 'Unknown', 'Warn']) - unless validator.valid?(overall_state) - fail ArgumentError, "invalid value for \"overall_state\", must be one of #{validator.allowable_values}." - end @overall_state = overall_state end @@ -267,10 +263,6 @@ def priority=(priority) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('MonitorType', ['composite', 'event alert', 'log alert', 'metric alert', 'process alert', 'query alert', 'rum alert', 'service check', 'synthetics alert', 'trace-analytics alert', 'slo alert', 'event-v2 alert', 'audit alert', 'ci-pipelines alert']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 ccacc2d3828..f200f852800 100644 --- a/lib/datadog_api_client/v1/models/note_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/note_widget_definition.rb @@ -188,7 +188,7 @@ def valid? # @param content [Object] Object to be assigned # @!visibility private def content=(content) - if @content.nil? + if content.nil? fail ArgumentError, 'invalid value for "content", content cannot be nil.' end @content = content @@ -198,10 +198,6 @@ def content=(content) # @param text_align [Object] Object to be assigned # @!visibility private def text_align=(text_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(text_align) - fail ArgumentError, "invalid value for \"text_align\", must be one of #{validator.allowable_values}." - end @text_align = text_align end @@ -209,10 +205,6 @@ def text_align=(text_align) # @param tick_edge [Object] Object to be assigned # @!visibility private def tick_edge=(tick_edge) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTickEdge', ['bottom', 'left', 'right', 'top']) - unless validator.valid?(tick_edge) - fail ArgumentError, "invalid value for \"tick_edge\", must be one of #{validator.allowable_values}." - end @tick_edge = tick_edge end @@ -220,11 +212,7 @@ def tick_edge=(tick_edge) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NoteWidgetDefinitionType', ['note']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type @@ -234,10 +222,6 @@ def type=(type) # @param vertical_align [Object] Object to be assigned # @!visibility private def vertical_align=(vertical_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetVerticalAlign', ['center', 'top', 'bottom']) - unless validator.valid?(vertical_align) - fail ArgumentError, "invalid value for \"vertical_align\", must be one of #{validator.allowable_values}." - end @vertical_align = vertical_align end 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 a520d2bfbca..4d926b9b226 100644 --- a/lib/datadog_api_client/v1/models/notebook_absolute_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_absolute_time.rb @@ -121,7 +121,7 @@ def valid? # @param _end [Object] Object to be assigned # @!visibility private def _end=(_end) - if @_end.nil? + if _end.nil? fail ArgumentError, 'invalid value for "_end", _end cannot be nil.' end @_end = _end @@ -131,7 +131,7 @@ def _end=(_end) # @param start [Object] Object to be assigned # @!visibility private def start=(start) - if @start.nil? + if start.nil? fail ArgumentError, 'invalid value for "start", start cannot be nil.' end @start = start 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 a68f6483d3f..8b0e5ad0131 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 @@ -115,7 +115,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -125,11 +125,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookCellResourceType', ['notebook_cells']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 dff650b7634..b46cc8adb39 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_response.rb @@ -128,7 +128,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -138,7 +138,7 @@ def attributes=(attributes) # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -148,11 +148,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookCellResourceType', ['notebook_cells']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 9452119713f..a530c72e426 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 @@ -128,7 +128,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -138,7 +138,7 @@ def attributes=(attributes) # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -148,11 +148,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookCellResourceType', ['notebook_cells']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 f46b21671da..559b2d98389 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_data.rb @@ -114,7 +114,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -124,11 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 a31a111ee7b..8453459bde5 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 @@ -155,7 +155,7 @@ def valid? # @param cells [Object] Object to be assigned # @!visibility private def cells=(cells) - if @cells.nil? + if cells.nil? fail ArgumentError, 'invalid value for "cells", cells cannot be nil.' end @cells = cells @@ -165,7 +165,7 @@ def cells=(cells) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end if name.to_s.length > 80 @@ -181,10 +181,6 @@ def name=(name) # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookStatus', ['published']) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end @status = status end @@ -192,7 +188,7 @@ def status=(status) # @param time [Object] Object to be assigned # @!visibility private def time=(time) - if @time.nil? + if time.nil? fail ArgumentError, 'invalid value for "time", time cannot be nil.' end @time = time 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 1549be72ccc..c1e55a7dda8 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_request.rb @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 c34571b6ae3..634e5578ab9 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 @@ -129,7 +129,7 @@ def valid? # @param definition [Object] Object to be assigned # @!visibility private def definition=(definition) - if @definition.nil? + if definition.nil? fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' end @definition = definition @@ -139,10 +139,6 @@ def definition=(definition) # @param graph_size [Object] Object to be assigned # @!visibility private def graph_size=(graph_size) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) - unless validator.valid?(graph_size) - fail ArgumentError, "invalid value for \"graph_size\", must be one of #{validator.allowable_values}." - end @graph_size = graph_size end 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 6e3cc154872..c3cdc9f31b0 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 @@ -127,7 +127,7 @@ def valid? # @param definition [Object] Object to be assigned # @!visibility private def definition=(definition) - if @definition.nil? + if definition.nil? fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' end @definition = definition @@ -137,10 +137,6 @@ def definition=(definition) # @param graph_size [Object] Object to be assigned # @!visibility private def graph_size=(graph_size) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) - unless validator.valid?(graph_size) - fail ArgumentError, "invalid value for \"graph_size\", must be one of #{validator.allowable_values}." - end @graph_size = graph_size end 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 5d2b7a66d70..ec8ae8c1bf0 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 @@ -118,7 +118,7 @@ def valid? # @param definition [Object] Object to be assigned # @!visibility private def definition=(definition) - if @definition.nil? + if definition.nil? fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' end @definition = definition @@ -128,10 +128,6 @@ def definition=(definition) # @param graph_size [Object] Object to be assigned # @!visibility private def graph_size=(graph_size) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) - unless validator.valid?(graph_size) - fail ArgumentError, "invalid value for \"graph_size\", must be one of #{validator.allowable_values}." - end @graph_size = graph_size end 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 a912eaefc08..b5eee0db06c 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 @@ -99,7 +99,7 @@ def valid? # @param definition [Object] Object to be assigned # @!visibility private def definition=(definition) - if @definition.nil? + if definition.nil? fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' end @definition = definition 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 bfba6ab0f92..5276f4b72f7 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 @@ -114,7 +114,7 @@ def valid? # @param text [Object] Object to be assigned # @!visibility private def text=(text) - if @text.nil? + if text.nil? fail ArgumentError, 'invalid value for "text", text cannot be nil.' end @text = text @@ -124,11 +124,7 @@ def text=(text) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookMarkdownCellDefinitionType', ['markdown']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type diff --git a/lib/datadog_api_client/v1/models/notebook_metadata.rb b/lib/datadog_api_client/v1/models/notebook_metadata.rb index a79dbefe927..7e26e71ceb6 100644 --- a/lib/datadog_api_client/v1/models/notebook_metadata.rb +++ b/lib/datadog_api_client/v1/models/notebook_metadata.rb @@ -118,10 +118,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookMetadataType', ['postmortem', 'runbook', 'investigation', 'documentation', 'report']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 92af63afe1a..568f5363a70 100644 --- a/lib/datadog_api_client/v1/models/notebook_relative_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_relative_time.rb @@ -99,11 +99,7 @@ def valid? # @param live_span [Object] Object to be assigned # @!visibility private def live_span=(live_span) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetLiveSpan', ['1m', '5m', '10m', '15m', '30m', '1h', '4h', '1d', '2d', '1w', '1mo', '3mo', '6mo', '1y', 'alert']) - unless validator.valid?(live_span) - fail ArgumentError, "invalid value for \"live_span\", must be one of #{validator.allowable_values}." - end - if @live_span.nil? + if live_span.nil? fail ArgumentError, 'invalid value for "live_span", live_span cannot be nil.' end @live_span = live_span 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 59c2983186a..e12a73ecd8f 100644 --- a/lib/datadog_api_client/v1/models/notebook_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_response_data.rb @@ -127,7 +127,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -137,7 +137,7 @@ def attributes=(attributes) # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -147,11 +147,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 f7251be295d..ee502f8e9f6 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 @@ -182,7 +182,7 @@ def valid? # @param cells [Object] Object to be assigned # @!visibility private def cells=(cells) - if @cells.nil? + if cells.nil? fail ArgumentError, 'invalid value for "cells", cells cannot be nil.' end @cells = cells @@ -192,7 +192,7 @@ def cells=(cells) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end if name.to_s.length > 80 @@ -208,10 +208,6 @@ def name=(name) # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookStatus', ['published']) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end @status = status end @@ -219,7 +215,7 @@ def status=(status) # @param time [Object] Object to be assigned # @!visibility private def time=(time) - if @time.nil? + if time.nil? fail ArgumentError, 'invalid value for "time", time cannot be nil.' end @time = time 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 0deeb1bcade..b45f6ef04e0 100644 --- a/lib/datadog_api_client/v1/models/notebook_split_by.rb +++ b/lib/datadog_api_client/v1/models/notebook_split_by.rb @@ -116,7 +116,7 @@ def valid? # @param keys [Object] Object to be assigned # @!visibility private def keys=(keys) - if @keys.nil? + if keys.nil? fail ArgumentError, 'invalid value for "keys", keys cannot be nil.' end @keys = keys @@ -126,7 +126,7 @@ def keys=(keys) # @param tags [Object] Object to be assigned # @!visibility private def tags=(tags) - if @tags.nil? + if tags.nil? fail ArgumentError, 'invalid value for "tags", tags cannot be nil.' end @tags = tags 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 a1e9e36dfed..33c4158d5d1 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 @@ -127,7 +127,7 @@ def valid? # @param definition [Object] Object to be assigned # @!visibility private def definition=(definition) - if @definition.nil? + if definition.nil? fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' end @definition = definition @@ -137,10 +137,6 @@ def definition=(definition) # @param graph_size [Object] Object to be assigned # @!visibility private def graph_size=(graph_size) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) - unless validator.valid?(graph_size) - fail ArgumentError, "invalid value for \"graph_size\", must be one of #{validator.allowable_values}." - end @graph_size = graph_size end 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 576e608e85c..b66ba01f545 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 @@ -127,7 +127,7 @@ def valid? # @param definition [Object] Object to be assigned # @!visibility private def definition=(definition) - if @definition.nil? + if definition.nil? fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' end @definition = definition @@ -137,10 +137,6 @@ def definition=(definition) # @param graph_size [Object] Object to be assigned # @!visibility private def graph_size=(graph_size) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookGraphSize', ['xs', 's', 'm', 'l', 'xl']) - unless validator.valid?(graph_size) - fail ArgumentError, "invalid value for \"graph_size\", must be one of #{validator.allowable_values}." - end @graph_size = graph_size end 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 c54f6a1f0e1..17246c598c9 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_data.rb @@ -114,7 +114,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -124,11 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 d381a99d31d..7f9edea3df3 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 @@ -155,7 +155,7 @@ def valid? # @param cells [Object] Object to be assigned # @!visibility private def cells=(cells) - if @cells.nil? + if cells.nil? fail ArgumentError, 'invalid value for "cells", cells cannot be nil.' end @cells = cells @@ -165,7 +165,7 @@ def cells=(cells) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end if name.to_s.length > 80 @@ -181,10 +181,6 @@ def name=(name) # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookStatus', ['published']) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end @status = status end @@ -192,7 +188,7 @@ def status=(status) # @param time [Object] Object to be assigned # @!visibility private def time=(time) - if @time.nil? + if time.nil? fail ArgumentError, 'invalid value for "time", time cannot be nil.' end @time = time 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 4e9c82811b2..e33f574c24e 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_request.rb @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 73ce9cf7ccd..f98c00f8e24 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_data.rb @@ -127,7 +127,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -137,7 +137,7 @@ def attributes=(attributes) # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -147,11 +147,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookResourceType', ['notebooks']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 d7fd2bfb69b..f76115c63c0 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 @@ -174,7 +174,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end if name.to_s.length > 80 @@ -190,10 +190,6 @@ def name=(name) # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('NotebookStatus', ['published']) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end @status = status end 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 6e2f8a79509..500a800d2e0 100644 --- a/lib/datadog_api_client/v1/models/organization_create_body.rb +++ b/lib/datadog_api_client/v1/models/organization_create_body.rb @@ -121,7 +121,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end if name > 32 diff --git a/lib/datadog_api_client/v1/models/organization_settings.rb b/lib/datadog_api_client/v1/models/organization_settings.rb index 4b0efc5f3d0..216bd42eb5b 100644 --- a/lib/datadog_api_client/v1/models/organization_settings.rb +++ b/lib/datadog_api_client/v1/models/organization_settings.rb @@ -179,10 +179,6 @@ def valid? # @param saml_autocreate_access_role [Object] Object to be assigned # @!visibility private def saml_autocreate_access_role=(saml_autocreate_access_role) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('AccessRole', ['st', 'adm', 'ro', 'ERROR']) - unless validator.valid?(saml_autocreate_access_role) - fail ArgumentError, "invalid value for \"saml_autocreate_access_role\", must be one of #{validator.allowable_values}." - end @saml_autocreate_access_role = saml_autocreate_access_role end 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 6ed8f8e37fc..0251eaed073 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service.rb @@ -112,7 +112,7 @@ def valid? # @param service_key [Object] Object to be assigned # @!visibility private def service_key=(service_key) - if @service_key.nil? + if service_key.nil? fail ArgumentError, 'invalid value for "service_key", service_key cannot be nil.' end @service_key = service_key @@ -122,7 +122,7 @@ def service_key=(service_key) # @param service_name [Object] Object to be assigned # @!visibility private def service_name=(service_name) - if @service_name.nil? + if service_name.nil? fail ArgumentError, 'invalid value for "service_name", service_name cannot be nil.' end @service_name = service_name 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 63bd24165f8..d624ec3e3fb 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 @@ -99,7 +99,7 @@ def valid? # @param service_key [Object] Object to be assigned # @!visibility private def service_key=(service_key) - if @service_key.nil? + if service_key.nil? fail ArgumentError, 'invalid value for "service_key", service_key cannot be nil.' end @service_key = service_key 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 e3ff313c59e..f7bcbc8c342 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 @@ -99,7 +99,7 @@ def valid? # @param service_name [Object] Object to be assigned # @!visibility private def service_name=(service_name) - if @service_name.nil? + if service_name.nil? fail ArgumentError, 'invalid value for "service_name", service_name cannot be nil.' end @service_name = service_name 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 997fb3f1f84..ba76c814323 100644 --- a/lib/datadog_api_client/v1/models/process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/process_query_definition.rb @@ -142,7 +142,7 @@ def limit=(limit) # @param metric [Object] Object to be assigned # @!visibility private def metric=(metric) - if @metric.nil? + if metric.nil? fail ArgumentError, 'invalid value for "metric", metric cannot be nil.' end @metric = metric 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 bede168ad68..653af10940b 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 @@ -207,7 +207,7 @@ def valid? # @param requests [Object] Object to be assigned # @!visibility private def requests=(requests) - if @requests.nil? + if requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end if requests.length > 1 @@ -223,10 +223,6 @@ def requests=(requests) # @param text_align [Object] Object to be assigned # @!visibility private def text_align=(text_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(text_align) - fail ArgumentError, "invalid value for \"text_align\", must be one of #{validator.allowable_values}." - end @text_align = text_align end @@ -234,10 +230,6 @@ def text_align=(text_align) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -245,11 +237,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('QueryValueWidgetDefinitionType', ['query_value']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 b7b72cf5682..5b1728c22d0 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 @@ -227,10 +227,6 @@ def valid? # @param aggregator [Object] Object to be assigned # @!visibility private def aggregator=(aggregator) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetAggregator', ['avg', 'last', 'max', 'min', 'sum', 'percentile']) - unless validator.valid?(aggregator) - fail ArgumentError, "invalid value for \"aggregator\", must be one of #{validator.allowable_values}." - end @aggregator = aggregator end @@ -238,10 +234,6 @@ def aggregator=(aggregator) # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) - unless validator.valid?(response_format) - fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." - end @response_format = response_format end 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 ab3647910a0..ae9cd9a8733 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_request.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_request.rb @@ -176,10 +176,6 @@ def valid? # @param aggregator [Object] Object to be assigned # @!visibility private def aggregator=(aggregator) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ScatterplotWidgetAggregator', ['avg', 'last', 'max', 'min', 'sum']) - unless validator.valid?(aggregator) - fail ArgumentError, "invalid value for \"aggregator\", must be one of #{validator.allowable_values}." - end @aggregator = aggregator end 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 befe99fc189..89b1d50b9fb 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 @@ -190,7 +190,7 @@ def valid? # @param requests [Object] Object to be assigned # @!visibility private def requests=(requests) - if @requests.nil? + if requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end @requests = requests @@ -200,10 +200,6 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -211,11 +207,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ScatterPlotWidgetDefinitionType', ['scatterplot']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 50f8c296d81..2afb49e14c7 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_table_request.rb @@ -117,10 +117,6 @@ def valid? # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) - unless validator.valid?(response_format) - fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." - end @response_format = response_format end 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 72646fe6d66..96a0e50047c 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb @@ -121,11 +121,7 @@ def valid? # @param dimension [Object] Object to be assigned # @!visibility private def dimension=(dimension) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ScatterplotDimension', ['x', 'y', 'radius', 'color']) - unless validator.valid?(dimension) - fail ArgumentError, "invalid value for \"dimension\", must be one of #{validator.allowable_values}." - end - if @dimension.nil? + if dimension.nil? fail ArgumentError, 'invalid value for "dimension", dimension cannot be nil.' end @dimension = dimension @@ -135,7 +131,7 @@ def dimension=(dimension) # @param formula [Object] Object to be assigned # @!visibility private def formula=(formula) - if @formula.nil? + if formula.nil? fail ArgumentError, 'invalid value for "formula", formula cannot be nil.' end @formula = formula diff --git a/lib/datadog_api_client/v1/models/series.rb b/lib/datadog_api_client/v1/models/series.rb index b39885dcbb4..61070e4f88d 100644 --- a/lib/datadog_api_client/v1/models/series.rb +++ b/lib/datadog_api_client/v1/models/series.rb @@ -156,7 +156,7 @@ def valid? # @param metric [Object] Object to be assigned # @!visibility private def metric=(metric) - if @metric.nil? + if metric.nil? fail ArgumentError, 'invalid value for "metric", metric cannot be nil.' end @metric = metric @@ -166,7 +166,7 @@ def metric=(metric) # @param points [Object] Object to be assigned # @!visibility private def points=(points) - if @points.nil? + if points.nil? fail ArgumentError, 'invalid value for "points", points cannot be nil.' end @points = points diff --git a/lib/datadog_api_client/v1/models/service_check.rb b/lib/datadog_api_client/v1/models/service_check.rb index bdf75e52c00..63549e2f869 100644 --- a/lib/datadog_api_client/v1/models/service_check.rb +++ b/lib/datadog_api_client/v1/models/service_check.rb @@ -158,7 +158,7 @@ def valid? # @param check [Object] Object to be assigned # @!visibility private def check=(check) - if @check.nil? + if check.nil? fail ArgumentError, 'invalid value for "check", check cannot be nil.' end @check = check @@ -168,7 +168,7 @@ def check=(check) # @param host_name [Object] Object to be assigned # @!visibility private def host_name=(host_name) - if @host_name.nil? + if host_name.nil? fail ArgumentError, 'invalid value for "host_name", host_name cannot be nil.' end @host_name = host_name @@ -178,11 +178,7 @@ def host_name=(host_name) # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ServiceCheckStatus', [0, 1, 2, 3]) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end - if @status.nil? + if status.nil? fail ArgumentError, 'invalid value for "status", status cannot be nil.' end @status = status @@ -192,7 +188,7 @@ def status=(status) # @param tags [Object] Object to be assigned # @!visibility private def tags=(tags) - if @tags.nil? + if tags.nil? fail ArgumentError, 'invalid value for "tags", tags cannot be nil.' end @tags = tags 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 8d37e2e40ed..faecf670955 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective.rb @@ -251,7 +251,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -261,7 +261,7 @@ def name=(name) # @param thresholds [Object] Object to be assigned # @!visibility private def thresholds=(thresholds) - if @thresholds.nil? + if thresholds.nil? fail ArgumentError, 'invalid value for "thresholds", thresholds cannot be nil.' end @thresholds = thresholds @@ -271,11 +271,7 @@ def thresholds=(thresholds) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 c1b7551a818..6d95af6d3d7 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 @@ -114,7 +114,7 @@ def valid? # @param denominator [Object] Object to be assigned # @!visibility private def denominator=(denominator) - if @denominator.nil? + if denominator.nil? fail ArgumentError, 'invalid value for "denominator", denominator cannot be nil.' end @denominator = denominator @@ -124,7 +124,7 @@ def denominator=(denominator) # @param numerator [Object] Object to be assigned # @!visibility private def numerator=(numerator) - if @numerator.nil? + if numerator.nil? fail ArgumentError, 'invalid value for "numerator", numerator cannot be nil.' end @numerator = numerator 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 cf602a29a3d..a62195eb612 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 @@ -193,7 +193,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -203,7 +203,7 @@ def name=(name) # @param thresholds [Object] Object to be assigned # @!visibility private def thresholds=(thresholds) - if @thresholds.nil? + if thresholds.nil? fail ArgumentError, 'invalid value for "thresholds", thresholds cannot be nil.' end @thresholds = thresholds @@ -213,11 +213,7 @@ def thresholds=(thresholds) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 107e0607aaf..501d4a4a945 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 @@ -171,7 +171,7 @@ def valid? # @param filters [Object] Object to be assigned # @!visibility private def filters=(filters) - if @filters.nil? + if filters.nil? fail ArgumentError, 'invalid value for "filters", filters cannot be nil.' end if filters.length < 1 @@ -184,7 +184,7 @@ def filters=(filters) # @param service [Object] Object to be assigned # @!visibility private def service=(service) - if @service.nil? + if service.nil? fail ArgumentError, 'invalid value for "service", service cannot be nil.' end @service = service @@ -194,10 +194,6 @@ def service=(service) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -205,11 +201,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ServiceMapWidgetDefinitionType', ['servicemap']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 8115f27c9d7..81a7e8be9d8 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 @@ -248,10 +248,6 @@ def valid? # @param display_format [Object] Object to be assigned # @!visibility private def display_format=(display_format) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetServiceSummaryDisplayFormat', ['one_column', 'two_column', 'three_column']) - unless validator.valid?(display_format) - fail ArgumentError, "invalid value for \"display_format\", must be one of #{validator.allowable_values}." - end @display_format = display_format end @@ -259,7 +255,7 @@ def display_format=(display_format) # @param env [Object] Object to be assigned # @!visibility private def env=(env) - if @env.nil? + if env.nil? fail ArgumentError, 'invalid value for "env", env cannot be nil.' end @env = env @@ -269,7 +265,7 @@ def env=(env) # @param service [Object] Object to be assigned # @!visibility private def service=(service) - if @service.nil? + if service.nil? fail ArgumentError, 'invalid value for "service", service cannot be nil.' end @service = service @@ -279,10 +275,6 @@ def service=(service) # @param size_format [Object] Object to be assigned # @!visibility private def size_format=(size_format) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetSizeFormat', ['small', 'medium', 'large']) - unless validator.valid?(size_format) - fail ArgumentError, "invalid value for \"size_format\", must be one of #{validator.allowable_values}." - end @size_format = size_format end @@ -290,7 +282,7 @@ def size_format=(size_format) # @param span_name [Object] Object to be assigned # @!visibility private def span_name=(span_name) - if @span_name.nil? + if span_name.nil? fail ArgumentError, 'invalid value for "span_name", span_name cannot be nil.' end @span_name = span_name @@ -300,10 +292,6 @@ def span_name=(span_name) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -311,11 +299,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ServiceSummaryWidgetDefinitionType', ['trace_service']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 fd9497a697b..d5f12755284 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 @@ -127,7 +127,7 @@ def valid? # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -137,7 +137,7 @@ def id=(id) # @param message [Object] Object to be assigned # @!visibility private def message=(message) - if @message.nil? + if message.nil? fail ArgumentError, 'invalid value for "message", message cannot be nil.' end @message = message @@ -147,11 +147,7 @@ def message=(message) # @param timeframe [Object] Object to be assigned # @!visibility private def timeframe=(timeframe) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOErrorTimeframe', ['7d', '30d', '90d', 'all']) - unless validator.valid?(timeframe) - fail ArgumentError, "invalid value for \"timeframe\", must be one of #{validator.allowable_values}." - end - if @timeframe.nil? + if timeframe.nil? fail ArgumentError, 'invalid value for "timeframe", timeframe cannot be nil.' end @timeframe = timeframe diff --git a/lib/datadog_api_client/v1/models/slo_correction.rb b/lib/datadog_api_client/v1/models/slo_correction.rb index 8328b490657..1765ebb8edb 100644 --- a/lib/datadog_api_client/v1/models/slo_correction.rb +++ b/lib/datadog_api_client/v1/models/slo_correction.rb @@ -115,10 +115,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOCorrectionType', ['correction']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 afbfb3af3fe..0787a0644f1 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 @@ -110,11 +110,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOCorrectionType', ['correction']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 2eb18d47efb..4b7247744e4 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 @@ -171,11 +171,7 @@ def valid? # @param category [Object] Object to be assigned # @!visibility private def category=(category) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOCorrectionCategory', ['Scheduled Maintenance', 'Outside Business Hours', 'Deployment', 'Other']) - unless validator.valid?(category) - fail ArgumentError, "invalid value for \"category\", must be one of #{validator.allowable_values}." - end - if @category.nil? + if category.nil? fail ArgumentError, 'invalid value for "category", category cannot be nil.' end @category = category @@ -185,7 +181,7 @@ def category=(category) # @param slo_id [Object] Object to be assigned # @!visibility private def slo_id=(slo_id) - if @slo_id.nil? + if slo_id.nil? fail ArgumentError, 'invalid value for "slo_id", slo_id cannot be nil.' end @slo_id = slo_id @@ -195,7 +191,7 @@ def slo_id=(slo_id) # @param start [Object] Object to be assigned # @!visibility private def start=(start) - if @start.nil? + if start.nil? fail ArgumentError, 'invalid value for "start", start cannot be nil.' end @start = start 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 56b0c2cb658..a91895158c6 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 @@ -198,10 +198,6 @@ def valid? # @param category [Object] Object to be assigned # @!visibility private def category=(category) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOCorrectionCategory', ['Scheduled Maintenance', 'Outside Business Hours', 'Deployment', 'Other']) - unless validator.valid?(category) - fail ArgumentError, "invalid value for \"category\", must be one of #{validator.allowable_values}." - end @category = category end 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 ef83ed783c4..51a74898747 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 @@ -106,10 +106,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOCorrectionType', ['correction']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 b6cad6a85e4..8e882f20281 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 @@ -150,10 +150,6 @@ def valid? # @param category [Object] Object to be assigned # @!visibility private def category=(category) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOCorrectionCategory', ['Scheduled Maintenance', 'Outside Business Hours', 'Deployment', 'Other']) - unless validator.valid?(category) - fail ArgumentError, "invalid value for \"category\", must be one of #{validator.allowable_values}." - end @category = category end 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 59aff361fe5..cc0453d38e9 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics.rb @@ -192,7 +192,7 @@ def valid? # @param denominator [Object] Object to be assigned # @!visibility private def denominator=(denominator) - if @denominator.nil? + if denominator.nil? fail ArgumentError, 'invalid value for "denominator", denominator cannot be nil.' end @denominator = denominator @@ -202,7 +202,7 @@ def denominator=(denominator) # @param interval [Object] Object to be assigned # @!visibility private def interval=(interval) - if @interval.nil? + if interval.nil? fail ArgumentError, 'invalid value for "interval", interval cannot be nil.' end @interval = interval @@ -212,7 +212,7 @@ def interval=(interval) # @param numerator [Object] Object to be assigned # @!visibility private def numerator=(numerator) - if @numerator.nil? + if numerator.nil? fail ArgumentError, 'invalid value for "numerator", numerator cannot be nil.' end @numerator = numerator @@ -222,7 +222,7 @@ def numerator=(numerator) # @param query [Object] Object to be assigned # @!visibility private def query=(query) - if @query.nil? + if query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' end @query = query @@ -232,7 +232,7 @@ def query=(query) # @param res_type [Object] Object to be assigned # @!visibility private def res_type=(res_type) - if @res_type.nil? + if res_type.nil? fail ArgumentError, 'invalid value for "res_type", res_type cannot be nil.' end @res_type = res_type @@ -242,7 +242,7 @@ def res_type=(res_type) # @param resp_version [Object] Object to be assigned # @!visibility private def resp_version=(resp_version) - if @resp_version.nil? + if resp_version.nil? fail ArgumentError, 'invalid value for "resp_version", resp_version cannot be nil.' end @resp_version = resp_version @@ -252,7 +252,7 @@ def resp_version=(resp_version) # @param times [Object] Object to be assigned # @!visibility private def times=(times) - if @times.nil? + if times.nil? fail ArgumentError, 'invalid value for "times", times cannot be nil.' end @times = times 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 af21f543b9e..c6c8bf140cb 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 @@ -137,7 +137,7 @@ def valid? # @param count [Object] Object to be assigned # @!visibility private def count=(count) - if @count.nil? + if count.nil? fail ArgumentError, 'invalid value for "count", count cannot be nil.' end @count = count @@ -147,7 +147,7 @@ def count=(count) # @param sum [Object] Object to be assigned # @!visibility private def sum=(sum) - if @sum.nil? + if sum.nil? fail ArgumentError, 'invalid value for "sum", sum cannot be nil.' end @sum = sum @@ -157,7 +157,7 @@ def sum=(sum) # @param values [Object] Object to be assigned # @!visibility private def values=(values) - if @values.nil? + if values.nil? fail ArgumentError, 'invalid value for "values", values cannot be nil.' end @values = values 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 fd2c801f161..65a2634cc37 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 @@ -193,10 +193,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end @@ -204,10 +200,6 @@ def type=(type) # @param type_id [Object] Object to be assigned # @!visibility private def type_id=(type_id) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOTypeNumeric', [0, 1]) - unless validator.valid?(type_id) - fail ArgumentError, "invalid value for \"type_id\", must be one of #{validator.allowable_values}." - end @type_id = type_id end 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 5071c2d31ae..6d763c3ae85 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 @@ -112,7 +112,7 @@ def valid? # @param error_message [Object] Object to be assigned # @!visibility private def error_message=(error_message) - if @error_message.nil? + if error_message.nil? fail ArgumentError, 'invalid value for "error_message", error_message cannot be nil.' end @error_message = error_message @@ -122,7 +122,7 @@ def error_message=(error_message) # @param error_type [Object] Object to be assigned # @!visibility private def error_type=(error_type) - if @error_type.nil? + if error_type.nil? fail ArgumentError, 'invalid value for "error_type", error_type cannot be nil.' end @error_type = error_type 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 eb0ceb8ab68..23c6982f7ff 100644 --- a/lib/datadog_api_client/v1/models/slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_response_data.rb @@ -250,10 +250,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOType', ['metric', 'monitor']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end diff --git a/lib/datadog_api_client/v1/models/slo_threshold.rb b/lib/datadog_api_client/v1/models/slo_threshold.rb index 4b76a4c7d3d..4dd96bc7085 100644 --- a/lib/datadog_api_client/v1/models/slo_threshold.rb +++ b/lib/datadog_api_client/v1/models/slo_threshold.rb @@ -148,7 +148,7 @@ def valid? # @param target [Object] Object to be assigned # @!visibility private def target=(target) - if @target.nil? + if target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' end @target = target @@ -158,11 +158,7 @@ def target=(target) # @param timeframe [Object] Object to be assigned # @!visibility private def timeframe=(timeframe) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOTimeframe', ['7d', '30d', '90d', 'custom']) - unless validator.valid?(timeframe) - fail ArgumentError, "invalid value for \"timeframe\", must be one of #{validator.allowable_values}." - end - if @timeframe.nil? + if timeframe.nil? fail ArgumentError, 'invalid value for "timeframe", timeframe cannot be nil.' end @timeframe = timeframe 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 9be7df082ee..199dca3b8bd 100644 --- a/lib/datadog_api_client/v1/models/slo_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/slo_widget_definition.rb @@ -190,10 +190,6 @@ def valid? # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -201,11 +197,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SLOWidgetDefinitionType', ['slo']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type @@ -215,10 +207,6 @@ def type=(type) # @param view_mode [Object] Object to be assigned # @!visibility private def view_mode=(view_mode) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetViewMode', ['overall', 'component', 'both']) - unless validator.valid?(view_mode) - fail ArgumentError, "invalid value for \"view_mode\", must be one of #{validator.allowable_values}." - end @view_mode = view_mode end @@ -226,7 +214,7 @@ def view_mode=(view_mode) # @param view_type [Object] Object to be assigned # @!visibility private def view_type=(view_type) - if @view_type.nil? + if view_type.nil? fail ArgumentError, 'invalid value for "view_type", view_type cannot be nil.' end @view_type = view_type 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 0c345b07231..751b8ad959b 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb @@ -185,7 +185,7 @@ def valid? # @param requests [Object] Object to be assigned # @!visibility private def requests=(requests) - if @requests.nil? + if requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end if requests.length < 1 @@ -198,10 +198,6 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -209,11 +205,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SunburstWidgetDefinitionType', ['sunburst']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 644306905ac..f6b95882d46 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 @@ -117,11 +117,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SunburstWidgetLegendInlineAutomaticType', ['inline', 'automatic']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 7e747423031..22b502387b6 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 @@ -99,11 +99,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SunburstWidgetLegendTableType', ['table', 'none']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 9a90bd28b67..2976f3ed8e5 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_request.rb @@ -207,10 +207,6 @@ def valid? # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) - unless validator.valid?(response_format) - fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." - end @response_format = response_format end diff --git a/lib/datadog_api_client/v1/models/synthetics_api_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_step.rb index 06e6642f943..1b33935af04 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_step.rb @@ -181,7 +181,7 @@ def valid? # @param assertions [Object] Object to be assigned # @!visibility private def assertions=(assertions) - if @assertions.nil? + if assertions.nil? fail ArgumentError, 'invalid value for "assertions", assertions cannot be nil.' end @assertions = assertions @@ -191,7 +191,7 @@ def assertions=(assertions) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -201,7 +201,7 @@ def name=(name) # @param request [Object] Object to be assigned # @!visibility private def request=(request) - if @request.nil? + if request.nil? fail ArgumentError, 'invalid value for "request", request cannot be nil.' end @request = request @@ -211,11 +211,7 @@ def request=(request) # @param subtype [Object] Object to be assigned # @!visibility private def subtype=(subtype) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsAPIStepSubtype', ['http']) - unless validator.valid?(subtype) - fail ArgumentError, "invalid value for \"subtype\", must be one of #{validator.allowable_values}." - end - if @subtype.nil? + if subtype.nil? fail ArgumentError, 'invalid value for "subtype", subtype cannot be nil.' end @subtype = subtype 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 bccd7a92401..7d7c4bdb933 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test.rb @@ -213,7 +213,7 @@ def valid? # @param config [Object] Object to be assigned # @!visibility private def config=(config) - if @config.nil? + if config.nil? fail ArgumentError, 'invalid value for "config", config cannot be nil.' end @config = config @@ -223,7 +223,7 @@ def config=(config) # @param locations [Object] Object to be assigned # @!visibility private def locations=(locations) - if @locations.nil? + if locations.nil? fail ArgumentError, 'invalid value for "locations", locations cannot be nil.' end @locations = locations @@ -233,7 +233,7 @@ def locations=(locations) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -243,7 +243,7 @@ def name=(name) # @param options [Object] Object to be assigned # @!visibility private def options=(options) - if @options.nil? + if options.nil? fail ArgumentError, 'invalid value for "options", options cannot be nil.' end @options = options @@ -253,10 +253,6 @@ def options=(options) # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end @status = status end @@ -264,10 +260,6 @@ def status=(status) # @param subtype [Object] Object to be assigned # @!visibility private def subtype=(subtype) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestDetailsSubType', ['http', 'ssl', 'tcp', 'dns', 'multi', 'icmp', 'udp', 'websocket']) - unless validator.valid?(subtype) - fail ArgumentError, "invalid value for \"subtype\", must be one of #{validator.allowable_values}." - end @subtype = subtype end @@ -275,11 +267,7 @@ def subtype=(subtype) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsAPITestType', ['api']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 a43dd6299d0..31d5c6fe0ce 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 @@ -168,10 +168,6 @@ def valid? # @param event_type [Object] Object to be assigned # @!visibility private def event_type=(event_type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestProcessStatus', ['not_scheduled', 'scheduled', 'started', 'finished', 'finished_with_error']) - unless validator.valid?(event_type) - fail ArgumentError, "invalid value for \"event_type\", must be one of #{validator.allowable_values}." - end @event_type = event_type end 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 978d82bf5b6..9ca9455b60b 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 @@ -104,10 +104,6 @@ def valid? # @param code [Object] Object to be assigned # @!visibility private def code=(code) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsApiTestFailureCode', ['BODY_TOO_LARGE', 'DENIED', 'TOO_MANY_REDIRECTS', 'AUTHENTICATION_ERROR', 'DECRYPTION', 'INVALID_CHAR_IN_HEADER', 'HEADER_TOO_LARGE', 'HEADERS_INCOMPATIBLE_CONTENT_LENGTH', 'INVALID_REQUEST', 'REQUIRES_UPDATE', 'UNESCAPED_CHARACTERS_IN_REQUEST_PATH', 'MALFORMED_RESPONSE', 'INCORRECT_ASSERTION', 'CONNREFUSED', 'CONNRESET', 'DNS', 'HOSTUNREACH', 'NETUNREACH', 'TIMEOUT', 'SSL', 'OCSP', 'INVALID_TEST', 'TUNNEL', 'WEBSOCKET', 'UNKNOWN', 'INTERNAL_ERROR']) - unless validator.valid?(code) - fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}." - end @code = code end 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 5c6813be6c5..140a18f64dc 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 @@ -152,10 +152,6 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end @status = status end 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 b18bf29120f..ebbfb1dab70 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 @@ -99,7 +99,7 @@ def valid? # @param config [Object] Object to be assigned # @!visibility private def config=(config) - if @config.nil? + if config.nil? fail ArgumentError, 'invalid value for "config", config cannot be nil.' end @config = config 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 313492093a1..5069b873100 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 @@ -134,10 +134,6 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end @status = status end 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 44373658995..b68afcaf940 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 @@ -130,11 +130,7 @@ def valid? # @param operator [Object] Object to be assigned # @!visibility private def operator=(operator) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsAssertionJSONPathOperator', ['validatesJSONPath']) - unless validator.valid?(operator) - fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}." - end - if @operator.nil? + if operator.nil? fail ArgumentError, 'invalid value for "operator", operator cannot be nil.' end @operator = operator @@ -144,11 +140,7 @@ def operator=(operator) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsAssertionType', ['body', 'header', 'statusCode', 'certificate', 'responseTime', 'property', 'recordEvery', 'recordSome', 'tlsVersion', 'minTlsVersion', 'latency', 'packetLossPercentage', 'packetsReceived', 'networkHop', 'receivedMessage']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 811ee912142..0391340c4e0 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb @@ -134,11 +134,7 @@ def valid? # @param operator [Object] Object to be assigned # @!visibility private def operator=(operator) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsAssertionOperator', ['contains', 'doesNotContain', 'is', 'isNot', 'lessThan', 'lessThanOrEqual', 'moreThan', 'moreThanOrEqual', 'matches', 'doesNotMatch', 'validates', 'isInMoreThan', 'isInLessThan']) - unless validator.valid?(operator) - fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}." - end - if @operator.nil? + if operator.nil? fail ArgumentError, 'invalid value for "operator", operator cannot be nil.' end @operator = operator @@ -148,7 +144,7 @@ def operator=(operator) # @param target [Object] Object to be assigned # @!visibility private def target=(target) - if @target.nil? + if target.nil? fail ArgumentError, 'invalid value for "target", target cannot be nil.' end @target = target @@ -158,11 +154,7 @@ def target=(target) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsAssertionType', ['body', 'header', 'statusCode', 'certificate', 'responseTime', 'property', 'recordEvery', 'recordSome', 'tlsVersion', 'minTlsVersion', 'latency', 'packetLossPercentage', 'packetsReceived', 'networkHop', 'receivedMessage']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 c296ae046c9..de6d08066b6 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 @@ -137,11 +137,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsBasicAuthNTLMType', ['ntlm']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 f2da613cd57..62d6ed94047 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 @@ -154,7 +154,7 @@ def valid? # @param access_key [Object] Object to be assigned # @!visibility private def access_key=(access_key) - if @access_key.nil? + if access_key.nil? fail ArgumentError, 'invalid value for "access_key", access_key cannot be nil.' end @access_key = access_key @@ -164,7 +164,7 @@ def access_key=(access_key) # @param secret_key [Object] Object to be assigned # @!visibility private def secret_key=(secret_key) - if @secret_key.nil? + if secret_key.nil? fail ArgumentError, 'invalid value for "secret_key", secret_key cannot be nil.' end @secret_key = secret_key @@ -174,11 +174,7 @@ def secret_key=(secret_key) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsBasicAuthSigv4Type', ['sigv4']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 7674eff301b..5676d5b543b 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 @@ -127,7 +127,7 @@ def valid? # @param password [Object] Object to be assigned # @!visibility private def password=(password) - if @password.nil? + if password.nil? fail ArgumentError, 'invalid value for "password", password cannot be nil.' end @password = password @@ -137,11 +137,7 @@ def password=(password) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsBasicAuthWebType', ['web']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type @@ -151,7 +147,7 @@ def type=(type) # @param username [Object] Object to be assigned # @!visibility private def username=(username) - if @username.nil? + if username.nil? fail ArgumentError, 'invalid value for "username", username cannot be nil.' end @username = username 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 4b6e7ab2018..8eddead7148 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 @@ -115,10 +115,6 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsStatus', ['passed', 'skipped', 'failed']) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end @status = status end 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 0d6575da49e..8a5a3feab3c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb @@ -176,10 +176,6 @@ def valid? # @param device [Object] Object to be assigned # @!visibility private def device=(device) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsDeviceID', ['laptop_large', 'tablet', 'mobile_small', 'chrome.laptop_large', 'chrome.tablet', 'chrome.mobile_small', 'firefox.laptop_large', 'firefox.tablet', 'firefox.mobile_small', 'edge.laptop_large', 'edge.tablet', 'edge.mobile_small']) - unless validator.valid?(device) - fail ArgumentError, "invalid value for \"device\", must be one of #{validator.allowable_values}." - end @device = device end @@ -187,10 +183,6 @@ def device=(device) # @param execution_rule [Object] Object to be assigned # @!visibility private def execution_rule=(execution_rule) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestExecutionRule', ['blocking', 'non_blocking', 'skipped']) - unless validator.valid?(execution_rule) - fail ArgumentError, "invalid value for \"execution_rule\", must be one of #{validator.allowable_values}." - end @execution_rule = execution_rule end @@ -198,10 +190,6 @@ def execution_rule=(execution_rule) # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsStatus', ['passed', 'skipped', 'failed']) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end @status = status end @@ -209,10 +197,6 @@ def status=(status) # @param test_type [Object] Object to be assigned # @!visibility private def test_type=(test_type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestDetailsType', ['api', 'browser']) - unless validator.valid?(test_type) - fail ArgumentError, "invalid value for \"test_type\", must be one of #{validator.allowable_values}." - end @test_type = test_type end 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 ab72016a3e1..01878699e7f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_error.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_error.rb @@ -134,7 +134,7 @@ def valid? # @param description [Object] Object to be assigned # @!visibility private def description=(description) - if @description.nil? + if description.nil? fail ArgumentError, 'invalid value for "description", description cannot be nil.' end @description = description @@ -144,7 +144,7 @@ def description=(description) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -154,11 +154,7 @@ def name=(name) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsBrowserErrorType', ['network', 'js']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 0f215e405bb..0d3175b32a6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb @@ -214,7 +214,7 @@ def valid? # @param config [Object] Object to be assigned # @!visibility private def config=(config) - if @config.nil? + if config.nil? fail ArgumentError, 'invalid value for "config", config cannot be nil.' end @config = config @@ -224,7 +224,7 @@ def config=(config) # @param locations [Object] Object to be assigned # @!visibility private def locations=(locations) - if @locations.nil? + if locations.nil? fail ArgumentError, 'invalid value for "locations", locations cannot be nil.' end @locations = locations @@ -234,7 +234,7 @@ def locations=(locations) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -244,7 +244,7 @@ def name=(name) # @param options [Object] Object to be assigned # @!visibility private def options=(options) - if @options.nil? + if options.nil? fail ArgumentError, 'invalid value for "options", options cannot be nil.' end @options = options @@ -254,10 +254,6 @@ def options=(options) # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end @status = status end @@ -265,11 +261,7 @@ def status=(status) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsBrowserTestType', ['browser']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 117570d7ca6..9dacb51a05c 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 @@ -147,7 +147,7 @@ def valid? # @param assertions [Object] Object to be assigned # @!visibility private def assertions=(assertions) - if @assertions.nil? + if assertions.nil? fail ArgumentError, 'invalid value for "assertions", assertions cannot be nil.' end @assertions = assertions @@ -157,7 +157,7 @@ def assertions=(assertions) # @param request [Object] Object to be assigned # @!visibility private def request=(request) - if @request.nil? + if request.nil? fail ArgumentError, 'invalid value for "request", request cannot be nil.' end @request = request 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 ac841b24210..ed4e64f3299 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 @@ -104,10 +104,6 @@ def valid? # @param code [Object] Object to be assigned # @!visibility private def code=(code) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsBrowserTestFailureCode', ['API_REQUEST_FAILURE', 'ASSERTION_FAILURE', 'DOWNLOAD_FILE_TOO_LARGE', 'ELEMENT_NOT_INTERACTABLE', 'EMAIL_VARIABLE_NOT_DEFINED', 'EVALUATE_JAVASCRIPT', 'EVALUATE_JAVASCRIPT_CONTEXT', 'EXTRACT_VARIABLE', 'FORBIDDEN_URL', 'FRAME_DETACHED', 'INCONSISTENCIES', 'INTERNAL_ERROR', 'INVALID_TYPE_TEXT_DELAY', 'INVALID_URL', 'INVALID_VARIABLE_PATTERN', 'INVISIBLE_ELEMENT', 'LOCATE_ELEMENT', 'NAVIGATE_TO_LINK', 'OPEN_URL', 'PRESS_KEY', 'SERVER_CERTIFICATE', 'SELECT_OPTION', 'STEP_TIMEOUT', 'SUB_TEST_NOT_PASSED', 'TEST_TIMEOUT', 'TOO_MANY_HTTP_REQUESTS', 'UNAVAILABLE_BROWSER', 'UNKNOWN', 'UNSUPPORTED_AUTH_SCHEMA', 'UPLOAD_FILES_ELEMENT_TYPE', 'UPLOAD_FILES_DIALOG', 'UPLOAD_FILES_DYNAMIC_ELEMENT', 'UPLOAD_FILES_NAME']) - unless validator.valid?(code) - fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}." - end @code = code end 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 6eeac79e0d9..484e2c3d577 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 @@ -152,10 +152,6 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end @status = status end 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 0258c00a3cd..20296e1b6d5 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 @@ -99,7 +99,7 @@ def valid? # @param config [Object] Object to be assigned # @!visibility private def config=(config) - if @config.nil? + if config.nil? fail ArgumentError, 'invalid value for "config", config cannot be nil.' end @config = config 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 225808641e1..a54bc25cb25 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 @@ -134,10 +134,6 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestMonitorStatus', [0, 1, 2]) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end @status = status end 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 e00b4b51863..2da2de5fd0f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb @@ -140,7 +140,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -150,11 +150,7 @@ def name=(name) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsBrowserVariableType', ['element', 'email', 'global', 'javascript', 'text']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 52c0b7e4691..b93fce1ad8e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_test.rb @@ -220,7 +220,7 @@ def valid? # @param public_id [Object] Object to be assigned # @!visibility private def public_id=(public_id) - if @public_id.nil? + if public_id.nil? fail ArgumentError, 'invalid value for "public_id", public_id cannot be nil.' end @public_id = public_id 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 70395b0c577..7c5a1ce33db 100644 --- a/lib/datadog_api_client/v1/models/synthetics_config_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_config_variable.rb @@ -139,7 +139,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -149,11 +149,7 @@ def name=(name) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsConfigVariableType', ['global', 'text']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type diff --git a/lib/datadog_api_client/v1/models/synthetics_device.rb b/lib/datadog_api_client/v1/models/synthetics_device.rb index a7915e6e37c..bc4672b1eff 100644 --- a/lib/datadog_api_client/v1/models/synthetics_device.rb +++ b/lib/datadog_api_client/v1/models/synthetics_device.rb @@ -147,7 +147,7 @@ def valid? # @param height [Object] Object to be assigned # @!visibility private def height=(height) - if @height.nil? + if height.nil? fail ArgumentError, 'invalid value for "height", height cannot be nil.' end @height = height @@ -157,11 +157,7 @@ def height=(height) # @param id [Object] Object to be assigned # @!visibility private def id=(id) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsDeviceID', ['laptop_large', 'tablet', 'mobile_small', 'chrome.laptop_large', 'chrome.tablet', 'chrome.mobile_small', 'firefox.laptop_large', 'firefox.tablet', 'firefox.mobile_small', 'edge.laptop_large', 'edge.tablet', 'edge.mobile_small']) - unless validator.valid?(id) - fail ArgumentError, "invalid value for \"id\", must be one of #{validator.allowable_values}." - end - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -171,7 +167,7 @@ def id=(id) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -181,7 +177,7 @@ def name=(name) # @param width [Object] Object to be assigned # @!visibility private def width=(width) - if @width.nil? + if width.nil? fail ArgumentError, 'invalid value for "width", width cannot be nil.' end @width = width 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 df76ad706e5..b0cad925ff0 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable.rb @@ -176,7 +176,7 @@ def valid? # @param description [Object] Object to be assigned # @!visibility private def description=(description) - if @description.nil? + if description.nil? fail ArgumentError, 'invalid value for "description", description cannot be nil.' end @description = description @@ -186,7 +186,7 @@ def description=(description) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -196,7 +196,7 @@ def name=(name) # @param tags [Object] Object to be assigned # @!visibility private def tags=(tags) - if @tags.nil? + if tags.nil? fail ArgumentError, 'invalid value for "tags", tags cannot be nil.' end @tags = tags @@ -206,7 +206,7 @@ def tags=(tags) # @param value [Object] Object to be assigned # @!visibility private def value=(value) - if @value.nil? + if value.nil? fail ArgumentError, 'invalid value for "value", value cannot be nil.' end @value = value 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 4f7673a2c08..536b86a1813 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 @@ -121,7 +121,7 @@ def valid? # @param parser [Object] Object to be assigned # @!visibility private def parser=(parser) - if @parser.nil? + if parser.nil? fail ArgumentError, 'invalid value for "parser", parser cannot be nil.' end @parser = parser @@ -131,11 +131,7 @@ def parser=(parser) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsGlobalVariableParseTestOptionsType', ['http_body', 'http_header']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 c0cbf7616cc..16d8df57dc9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb @@ -122,10 +122,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsGlobalVariableParseTestOptionsType', ['http_body', 'http_header']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 6bb90239f9c..464fe30ab09 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location.rb @@ -145,7 +145,7 @@ def valid? # @param description [Object] Object to be assigned # @!visibility private def description=(description) - if @description.nil? + if description.nil? fail ArgumentError, 'invalid value for "description", description cannot be nil.' end @description = description @@ -155,7 +155,7 @@ def description=(description) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -165,7 +165,7 @@ def name=(name) # @param tags [Object] Object to be assigned # @!visibility private def tags=(tags) - if @tags.nil? + if tags.nil? fail ArgumentError, 'invalid value for "tags", tags cannot be nil.' end @tags = tags diff --git a/lib/datadog_api_client/v1/models/synthetics_step.rb b/lib/datadog_api_client/v1/models/synthetics_step.rb index a6609b549a9..eea8dadb8b9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step.rb @@ -131,10 +131,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsStepType', ['assertCurrentUrl', 'assertElementAttribute', 'assertElementContent', 'assertElementPresent', 'assertEmail', 'assertFileDownload', 'assertFromJavascript', 'assertPageContains', 'assertPageLacks', 'click', 'extractFromJavascript', 'extractVariable', 'goToEmailLink', 'goToUrl', 'goToUrlAndMeasureTti', 'hover', 'playSubTest', 'pressKey', 'refresh', 'runApiTest', 'scroll', 'selectOption', 'typeText', 'uploadFiles', 'wait']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 34b080dde35..1f89b59cac7 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_detail.rb @@ -248,10 +248,6 @@ def valid? # @param check_type [Object] Object to be assigned # @!visibility private def check_type=(check_type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsCheckType', ['equals', 'notEquals', 'contains', 'notContains', 'startsWith', 'notStartsWith', 'greater', 'lower', 'greaterEquals', 'lowerEquals', 'matchRegex', 'between', 'isEmpty', 'notIsEmpty']) - unless validator.valid?(check_type) - fail ArgumentError, "invalid value for \"check_type\", must be one of #{validator.allowable_values}." - end @check_type = check_type end @@ -259,10 +255,6 @@ def check_type=(check_type) # @param playing_tab [Object] Object to be assigned # @!visibility private def playing_tab=(playing_tab) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsPlayingTab', [-1, 0, 1, 2, 3]) - unless validator.valid?(playing_tab) - fail ArgumentError, "invalid value for \"playing_tab\", must be one of #{validator.allowable_values}." - end @playing_tab = playing_tab end @@ -270,10 +262,6 @@ def playing_tab=(playing_tab) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsStepType', ['assertCurrentUrl', 'assertElementAttribute', 'assertElementContent', 'assertElementPresent', 'assertEmail', 'assertFileDownload', 'assertFromJavascript', 'assertPageContains', 'assertPageLacks', 'click', 'extractFromJavascript', 'extractVariable', 'goToEmailLink', 'goToUrl', 'goToUrlAndMeasureTti', 'hover', 'playSubTest', 'pressKey', 'refresh', 'runApiTest', 'scroll', 'selectOption', 'typeText', 'uploadFiles', 'wait']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 069829e1c66..ecc981baa73 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 @@ -112,7 +112,7 @@ def valid? # @param message [Object] Object to be assigned # @!visibility private def message=(message) - if @message.nil? + if message.nil? fail ArgumentError, 'invalid value for "message", message cannot be nil.' end @message = message @@ -122,11 +122,7 @@ def message=(message) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsWarningType', ['user_locator']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 6ea14937f46..4bfaccc9b8e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details.rb @@ -211,10 +211,6 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end @status = status end @@ -222,10 +218,6 @@ def status=(status) # @param subtype [Object] Object to be assigned # @!visibility private def subtype=(subtype) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestDetailsSubType', ['http', 'ssl', 'tcp', 'dns', 'multi', 'icmp', 'udp', 'websocket']) - unless validator.valid?(subtype) - fail ArgumentError, "invalid value for \"subtype\", must be one of #{validator.allowable_values}." - end @subtype = subtype end @@ -233,10 +225,6 @@ def subtype=(subtype) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestDetailsType', ['api', 'browser']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 7b7867f2e16..28e075674c2 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request.rb @@ -297,10 +297,6 @@ def dns_server_port=(dns_server_port) # @param method [Object] Object to be assigned # @!visibility private def method=(method) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('HTTPMethod', ['GET', 'POST', 'PATCH', 'PUT', 'DELETE', 'HEAD', 'OPTIONS']) - unless validator.valid?(method) - fail ArgumentError, "invalid value for \"method\", must be one of #{validator.allowable_values}." - end @method = method end 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 cbc4a408333..5723d41a48e 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 @@ -108,7 +108,7 @@ def valid? # @param url [Object] Object to be assigned # @!visibility private def url=(url) - if @url.nil? + if url.nil? fail ArgumentError, 'invalid value for "url", url cannot be nil.' end @url = url 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 f61ae7f289e..4894f08e7c2 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb @@ -101,7 +101,7 @@ def valid? # @param tests [Object] Object to be assigned # @!visibility private def tests=(tests) - if @tests.nil? + if tests.nil? fail ArgumentError, 'invalid value for "tests", tests cannot be nil.' end @tests = tests 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 c2e7000be63..709f31ac55f 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 @@ -122,10 +122,6 @@ def valid? # @param device [Object] Object to be assigned # @!visibility private def device=(device) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsDeviceID', ['laptop_large', 'tablet', 'mobile_small', 'chrome.laptop_large', 'chrome.tablet', 'chrome.mobile_small', 'firefox.laptop_large', 'firefox.tablet', 'firefox.mobile_small', 'edge.laptop_large', 'edge.tablet', 'edge.mobile_small']) - unless validator.valid?(device) - fail ArgumentError, "invalid value for \"device\", must be one of #{validator.allowable_values}." - end @device = device end 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 6459099ff12..62c3ddae9a9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb @@ -108,7 +108,7 @@ def valid? # @param public_id [Object] Object to be assigned # @!visibility private def public_id=(public_id) - if @public_id.nil? + if public_id.nil? fail ArgumentError, 'invalid value for "public_id", public_id cannot be nil.' end @public_id = public_id 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 bc409e8bd2d..3a5dd189dfb 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 @@ -96,10 +96,6 @@ def valid? # @param new_status [Object] Object to be assigned # @!visibility private def new_status=(new_status) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsTestPauseStatus', ['live', 'paused']) - unless validator.valid?(new_status) - fail ArgumentError, "invalid value for \"new_status\", must be one of #{validator.allowable_values}." - end @new_status = new_status end 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 85eac37e833..3ac2c1a0bae 100644 --- a/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb +++ b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb @@ -108,11 +108,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('SyntheticsGlobalVariableParserType', ['raw', 'json_path', 'regex', 'x_path']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 9414646141c..4fdf6bc9ce5 100644 --- a/lib/datadog_api_client/v1/models/table_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/table_widget_definition.rb @@ -172,10 +172,6 @@ def valid? # @param has_search_bar [Object] Object to be assigned # @!visibility private def has_search_bar=(has_search_bar) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TableWidgetHasSearchBar', ['always', 'never', 'auto']) - unless validator.valid?(has_search_bar) - fail ArgumentError, "invalid value for \"has_search_bar\", must be one of #{validator.allowable_values}." - end @has_search_bar = has_search_bar end @@ -183,7 +179,7 @@ def has_search_bar=(has_search_bar) # @param requests [Object] Object to be assigned # @!visibility private def requests=(requests) - if @requests.nil? + if requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end @requests = requests @@ -193,10 +189,6 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -204,11 +196,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TableWidgetDefinitionType', ['query_table']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 559efb1c894..af2b620cfa8 100644 --- a/lib/datadog_api_client/v1/models/table_widget_request.rb +++ b/lib/datadog_api_client/v1/models/table_widget_request.rb @@ -265,10 +265,6 @@ def valid? # @param aggregator [Object] Object to be assigned # @!visibility private def aggregator=(aggregator) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetAggregator', ['avg', 'last', 'max', 'min', 'sum', 'percentile']) - unless validator.valid?(aggregator) - fail ArgumentError, "invalid value for \"aggregator\", must be one of #{validator.allowable_values}." - end @aggregator = aggregator end @@ -276,10 +272,6 @@ def aggregator=(aggregator) # @param order [Object] Object to be assigned # @!visibility private def order=(order) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) - unless validator.valid?(order) - fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." - end @order = order end @@ -287,10 +279,6 @@ def order=(order) # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) - unless validator.valid?(response_format) - fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." - end @response_format = response_format end 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 ca73d55d13f..f2ce0a11e99 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb @@ -245,10 +245,6 @@ def valid? # @param legend_layout [Object] Object to be assigned # @!visibility private def legend_layout=(legend_layout) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TimeseriesWidgetLegendLayout', ['auto', 'horizontal', 'vertical']) - unless validator.valid?(legend_layout) - fail ArgumentError, "invalid value for \"legend_layout\", must be one of #{validator.allowable_values}." - end @legend_layout = legend_layout end @@ -256,7 +252,7 @@ def legend_layout=(legend_layout) # @param requests [Object] Object to be assigned # @!visibility private def requests=(requests) - if @requests.nil? + if requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end if requests.length < 1 @@ -269,10 +265,6 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -280,11 +272,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TimeseriesWidgetDefinitionType', ['timeseries']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 fc7bc7d61de..1e4bf6cc1d0 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 @@ -108,7 +108,7 @@ def valid? # @param expression [Object] Object to be assigned # @!visibility private def expression=(expression) - if @expression.nil? + if expression.nil? fail ArgumentError, 'invalid value for "expression", expression cannot be nil.' end @expression = expression 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 d30719328dc..b4168eb4b0b 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb @@ -245,10 +245,6 @@ def valid? # @param display_type [Object] Object to be assigned # @!visibility private def display_type=(display_type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetDisplayType', ['area', 'bars', 'line']) - unless validator.valid?(display_type) - fail ArgumentError, "invalid value for \"display_type\", must be one of #{validator.allowable_values}." - end @display_type = display_type end @@ -256,10 +252,6 @@ def display_type=(display_type) # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) - unless validator.valid?(response_format) - fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." - end @response_format = response_format end 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 50cb51b088e..6f18286bb50 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_definition.rb @@ -163,7 +163,7 @@ def valid? # @param requests [Object] Object to be assigned # @!visibility private def requests=(requests) - if @requests.nil? + if requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end @requests = requests @@ -173,10 +173,6 @@ def requests=(requests) # @param title_align [Object] Object to be assigned # @!visibility private def title_align=(title_align) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetTextAlign', ['center', 'left', 'right']) - unless validator.valid?(title_align) - fail ArgumentError, "invalid value for \"title_align\", must be one of #{validator.allowable_values}." - end @title_align = title_align end @@ -184,11 +180,7 @@ def title_align=(title_align) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('ToplistWidgetDefinitionType', ['toplist']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 2a34d564edc..dcea0b129b9 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_request.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_request.rb @@ -241,10 +241,6 @@ def conditional_formats=(conditional_formats) # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) - unless validator.valid?(response_format) - fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." - end @response_format = response_format end 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 1f25ee5f797..a65477b40ea 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 @@ -162,10 +162,6 @@ def valid? # @param color_by [Object] Object to be assigned # @!visibility private def color_by=(color_by) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TreeMapColorBy', ['user']) - unless validator.valid?(color_by) - fail ArgumentError, "invalid value for \"color_by\", must be one of #{validator.allowable_values}." - end @color_by = color_by end @@ -173,10 +169,6 @@ def color_by=(color_by) # @param group_by [Object] Object to be assigned # @!visibility private def group_by=(group_by) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TreeMapGroupBy', ['user', 'family', 'process']) - unless validator.valid?(group_by) - fail ArgumentError, "invalid value for \"group_by\", must be one of #{validator.allowable_values}." - end @group_by = group_by end @@ -184,7 +176,7 @@ def group_by=(group_by) # @param requests [Object] Object to be assigned # @!visibility private def requests=(requests) - if @requests.nil? + if requests.nil? fail ArgumentError, 'invalid value for "requests", requests cannot be nil.' end if requests.length > 1 @@ -200,10 +192,6 @@ def requests=(requests) # @param size_by [Object] Object to be assigned # @!visibility private def size_by=(size_by) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TreeMapSizeBy', ['pct_cpu', 'pct_mem']) - unless validator.valid?(size_by) - fail ArgumentError, "invalid value for \"size_by\", must be one of #{validator.allowable_values}." - end @size_by = size_by end @@ -211,11 +199,7 @@ def size_by=(size_by) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TreeMapWidgetDefinitionType', ['treemap']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 94ed2de00f8..303cc7d4a56 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 @@ -126,10 +126,6 @@ def valid? # @param response_format [Object] Object to be assigned # @!visibility private def response_format=(response_format) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('FormulaAndFunctionResponseFormat', ['timeseries', 'scalar']) - unless validator.valid?(response_format) - fail ArgumentError, "invalid value for \"response_format\", must be one of #{validator.allowable_values}." - end @response_format = response_format end 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 d5006471d2c..6ec3fec46d8 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 @@ -115,10 +115,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('UsageReportsType', ['reports']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 87172437db7..409f74eb0d3 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 @@ -115,10 +115,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('UsageReportsType', ['reports']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 3fb3d28166d..b66f822b5a6 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 @@ -122,10 +122,6 @@ def valid? # @param metric_category [Object] Object to be assigned # @!visibility private def metric_category=(metric_category) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('UsageMetricCategory', ['standard', 'custom']) - unless validator.valid?(metric_category) - fail ArgumentError, "invalid value for \"metric_category\", must be one of #{validator.allowable_values}." - end @metric_category = metric_category end diff --git a/lib/datadog_api_client/v1/models/user.rb b/lib/datadog_api_client/v1/models/user.rb index 3aff86234bb..7f29ba0dbc0 100644 --- a/lib/datadog_api_client/v1/models/user.rb +++ b/lib/datadog_api_client/v1/models/user.rb @@ -151,10 +151,6 @@ def valid? # @param access_role [Object] Object to be assigned # @!visibility private def access_role=(access_role) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('AccessRole', ['st', 'adm', 'ro', 'ERROR']) - unless validator.valid?(access_role) - fail ArgumentError, "invalid value for \"access_role\", must be one of #{validator.allowable_values}." - end @access_role = access_role end diff --git a/lib/datadog_api_client/v1/models/webhooks_integration.rb b/lib/datadog_api_client/v1/models/webhooks_integration.rb index b5f9840aa81..eacfd7e7c4c 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration.rb @@ -149,10 +149,6 @@ def valid? # @param encode_as [Object] Object to be assigned # @!visibility private def encode_as=(encode_as) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WebhooksIntegrationEncoding', ['json', 'form']) - unless validator.valid?(encode_as) - fail ArgumentError, "invalid value for \"encode_as\", must be one of #{validator.allowable_values}." - end @encode_as = encode_as end @@ -160,7 +156,7 @@ def encode_as=(encode_as) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -170,7 +166,7 @@ def name=(name) # @param url [Object] Object to be assigned # @!visibility private def url=(url) - if @url.nil? + if url.nil? fail ArgumentError, 'invalid value for "url", url cannot be nil.' end @url = url 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 2232315bbbb..ea98839128c 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 @@ -126,7 +126,7 @@ def valid? # @param is_secret [Object] Object to be assigned # @!visibility private def is_secret=(is_secret) - if @is_secret.nil? + if is_secret.nil? fail ArgumentError, 'invalid value for "is_secret", is_secret cannot be nil.' end @is_secret = is_secret @@ -136,7 +136,7 @@ def is_secret=(is_secret) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -146,7 +146,7 @@ def name=(name) # @param value [Object] Object to be assigned # @!visibility private def value=(value) - if @value.nil? + if value.nil? fail ArgumentError, 'invalid value for "value", value cannot be nil.' end @value = value 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 f9fca1ac16e..41fd1f3528f 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 @@ -122,7 +122,7 @@ def valid? # @param is_secret [Object] Object to be assigned # @!visibility private def is_secret=(is_secret) - if @is_secret.nil? + if is_secret.nil? fail ArgumentError, 'invalid value for "is_secret", is_secret cannot be nil.' end @is_secret = is_secret @@ -132,7 +132,7 @@ def is_secret=(is_secret) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name 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 ae39a4c3917..2381b0f57b2 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 @@ -142,10 +142,6 @@ def valid? # @param encode_as [Object] Object to be assigned # @!visibility private def encode_as=(encode_as) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WebhooksIntegrationEncoding', ['json', 'form']) - unless validator.valid?(encode_as) - fail ArgumentError, "invalid value for \"encode_as\", must be one of #{validator.allowable_values}." - end @encode_as = encode_as end diff --git a/lib/datadog_api_client/v1/models/widget.rb b/lib/datadog_api_client/v1/models/widget.rb index 9ac46671696..46752869cf8 100644 --- a/lib/datadog_api_client/v1/models/widget.rb +++ b/lib/datadog_api_client/v1/models/widget.rb @@ -122,7 +122,7 @@ def valid? # @param definition [Object] Object to be assigned # @!visibility private def definition=(definition) - if @definition.nil? + if definition.nil? fail ArgumentError, 'invalid value for "definition", definition cannot be nil.' end @definition = definition 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 b70eac2921b..436de988f2c 100644 --- a/lib/datadog_api_client/v1/models/widget_conditional_format.rb +++ b/lib/datadog_api_client/v1/models/widget_conditional_format.rb @@ -179,11 +179,7 @@ def valid? # @param comparator [Object] Object to be assigned # @!visibility private def comparator=(comparator) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetComparator', ['>', '>=', '<', '<=']) - unless validator.valid?(comparator) - fail ArgumentError, "invalid value for \"comparator\", must be one of #{validator.allowable_values}." - end - if @comparator.nil? + if comparator.nil? fail ArgumentError, 'invalid value for "comparator", comparator cannot be nil.' end @comparator = comparator @@ -193,11 +189,7 @@ def comparator=(comparator) # @param palette [Object] Object to be assigned # @!visibility private def palette=(palette) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetPalette', ['blue', 'custom_bg', 'custom_image', 'custom_text', 'gray_on_white', 'grey', 'green', 'orange', 'red', 'red_on_white', 'white_on_gray', 'white_on_green', 'green_on_white', 'white_on_red', 'white_on_yellow', 'yellow_on_white', 'black_on_light_yellow', 'black_on_light_green', 'black_on_light_red']) - unless validator.valid?(palette) - fail ArgumentError, "invalid value for \"palette\", must be one of #{validator.allowable_values}." - end - if @palette.nil? + if palette.nil? fail ArgumentError, 'invalid value for "palette", palette cannot be nil.' end @palette = palette @@ -207,7 +199,7 @@ def palette=(palette) # @param value [Object] Object to be assigned # @!visibility private def value=(value) - if @value.nil? + if value.nil? fail ArgumentError, 'invalid value for "value", value cannot be nil.' end @value = value diff --git a/lib/datadog_api_client/v1/models/widget_event.rb b/lib/datadog_api_client/v1/models/widget_event.rb index f3089fab6fe..5a1354ee42d 100644 --- a/lib/datadog_api_client/v1/models/widget_event.rb +++ b/lib/datadog_api_client/v1/models/widget_event.rb @@ -111,7 +111,7 @@ def valid? # @param q [Object] Object to be assigned # @!visibility private def q=(q) - if @q.nil? + if q.nil? fail ArgumentError, 'invalid value for "q", q cannot be nil.' end @q = q 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 ca15a84f072..fc69db4bd0c 100644 --- a/lib/datadog_api_client/v1/models/widget_field_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_field_sort.rb @@ -112,7 +112,7 @@ def valid? # @param column [Object] Object to be assigned # @!visibility private def column=(column) - if @column.nil? + if column.nil? fail ArgumentError, 'invalid value for "column", column cannot be nil.' end @column = column @@ -122,11 +122,7 @@ def column=(column) # @param order [Object] Object to be assigned # @!visibility private def order=(order) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetSort', ['asc', 'desc']) - unless validator.valid?(order) - fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." - end - if @order.nil? + if order.nil? fail ArgumentError, 'invalid value for "order", order cannot be nil.' end @order = order diff --git a/lib/datadog_api_client/v1/models/widget_formula.rb b/lib/datadog_api_client/v1/models/widget_formula.rb index 18ce942309c..fa29c3502bc 100644 --- a/lib/datadog_api_client/v1/models/widget_formula.rb +++ b/lib/datadog_api_client/v1/models/widget_formula.rb @@ -137,10 +137,6 @@ def valid? # @param cell_display_mode [Object] Object to be assigned # @!visibility private def cell_display_mode=(cell_display_mode) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('TableWidgetCellDisplayMode', ['number', 'bar']) - unless validator.valid?(cell_display_mode) - fail ArgumentError, "invalid value for \"cell_display_mode\", must be one of #{validator.allowable_values}." - end @cell_display_mode = cell_display_mode end @@ -148,7 +144,7 @@ def cell_display_mode=(cell_display_mode) # @param formula [Object] Object to be assigned # @!visibility private def formula=(formula) - if @formula.nil? + if formula.nil? fail ArgumentError, 'invalid value for "formula", formula cannot be nil.' end @formula = formula 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 81610d67ec3..7beb7563227 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_limit.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_limit.rb @@ -106,10 +106,6 @@ def valid? # @param order [Object] Object to be assigned # @!visibility private def order=(order) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('QuerySortOrder', ['asc', 'desc']) - unless validator.valid?(order) - fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." - end @order = order end diff --git a/lib/datadog_api_client/v1/models/widget_layout.rb b/lib/datadog_api_client/v1/models/widget_layout.rb index 574926bedc6..845e9ede01f 100644 --- a/lib/datadog_api_client/v1/models/widget_layout.rb +++ b/lib/datadog_api_client/v1/models/widget_layout.rb @@ -164,7 +164,7 @@ def valid? # @param height [Object] Object to be assigned # @!visibility private def height=(height) - if @height.nil? + if height.nil? fail ArgumentError, 'invalid value for "height", height cannot be nil.' end if height < 0 @@ -177,7 +177,7 @@ def height=(height) # @param width [Object] Object to be assigned # @!visibility private def width=(width) - if @width.nil? + if width.nil? fail ArgumentError, 'invalid value for "width", width cannot be nil.' end if width < 0 @@ -190,7 +190,7 @@ def width=(width) # @param x [Object] Object to be assigned # @!visibility private def x=(x) - if @x.nil? + if x.nil? fail ArgumentError, 'invalid value for "x", x cannot be nil.' end if x < 0 @@ -203,7 +203,7 @@ def x=(x) # @param y [Object] Object to be assigned # @!visibility private def y=(y) - if @y.nil? + if y.nil? fail ArgumentError, 'invalid value for "y", y cannot be nil.' end if y < 0 diff --git a/lib/datadog_api_client/v1/models/widget_marker.rb b/lib/datadog_api_client/v1/models/widget_marker.rb index 8017c873fee..a6c77b22695 100644 --- a/lib/datadog_api_client/v1/models/widget_marker.rb +++ b/lib/datadog_api_client/v1/models/widget_marker.rb @@ -130,7 +130,7 @@ def valid? # @param value [Object] Object to be assigned # @!visibility private def value=(value) - if @value.nil? + if value.nil? fail ArgumentError, 'invalid value for "value", value cannot be nil.' end @value = value 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 c912849c487..66797bea2dd 100644 --- a/lib/datadog_api_client/v1/models/widget_request_style.rb +++ b/lib/datadog_api_client/v1/models/widget_request_style.rb @@ -113,10 +113,6 @@ def valid? # @param line_type [Object] Object to be assigned # @!visibility private def line_type=(line_type) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetLineType', ['dashed', 'dotted', 'solid']) - unless validator.valid?(line_type) - fail ArgumentError, "invalid value for \"line_type\", must be one of #{validator.allowable_values}." - end @line_type = line_type end @@ -124,10 +120,6 @@ def line_type=(line_type) # @param line_width [Object] Object to be assigned # @!visibility private def line_width=(line_width) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetLineWidth', ['normal', 'thick', 'thin']) - unless validator.valid?(line_width) - fail ArgumentError, "invalid value for \"line_width\", must be one of #{validator.allowable_values}." - end @line_width = line_width end diff --git a/lib/datadog_api_client/v1/models/widget_time.rb b/lib/datadog_api_client/v1/models/widget_time.rb index 6770d41a191..6d5340b486a 100644 --- a/lib/datadog_api_client/v1/models/widget_time.rb +++ b/lib/datadog_api_client/v1/models/widget_time.rb @@ -95,10 +95,6 @@ def valid? # @param live_span [Object] Object to be assigned # @!visibility private def live_span=(live_span) - validator = DatadogAPIClient::V1::EnumAttributeValidator.new('WidgetLiveSpan', ['1m', '5m', '10m', '15m', '30m', '1h', '4h', '1d', '2d', '1w', '1mo', '3mo', '6mo', '1y', 'alert']) - unless validator.valid?(live_span) - fail ArgumentError, "invalid value for \"live_span\", must be one of #{validator.allowable_values}." - end @live_span = live_span end 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 eb97066e548..4df9690cb42 100644 --- a/lib/datadog_api_client/v2/models/api_error_response.rb +++ b/lib/datadog_api_client/v2/models/api_error_response.rb @@ -101,7 +101,7 @@ def valid? # @param errors [Object] Object to be assigned # @!visibility private def errors=(errors) - if @errors.nil? + if errors.nil? fail ArgumentError, 'invalid value for "errors", errors cannot be nil.' end @errors = errors 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 34e87b564ee..50d155cdcee 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 @@ -99,7 +99,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name 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 871b3bd6443..30ebb161f09 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 @@ -114,7 +114,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -124,11 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('APIKeysType', ['api_keys']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 9297b0d50b0..98a5e5d4773 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 @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 d60b6598469..072b1afcac5 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 @@ -99,7 +99,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name 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 df3ebb99fc6..a8391178b7a 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 @@ -127,7 +127,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -137,7 +137,7 @@ def attributes=(attributes) # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -147,11 +147,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('APIKeysType', ['api_keys']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 06dbdb58860..1dd0305f35a 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 @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 86f459f2d3e..bfc2aabcaec 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 @@ -111,7 +111,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name 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 fd4c11ea36a..efc85b46c85 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 @@ -114,7 +114,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -124,11 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 3a0cd33c16a..d4aa915726d 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 @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 8b173bf1de7..f772913169d 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 @@ -127,7 +127,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -137,7 +137,7 @@ def attributes=(attributes) # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -147,11 +147,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 1367c8b15a4..f7af1f415e4 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 @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 fe07fe2da5c..ae532f7ff44 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 @@ -130,7 +130,7 @@ def valid? # @param expression [Object] Object to be assigned # @!visibility private def expression=(expression) - if @expression.nil? + if expression.nil? fail ArgumentError, 'invalid value for "expression", expression cannot be nil.' end @expression = expression @@ -140,7 +140,7 @@ def expression=(expression) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name 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 03ba9a7c8eb..28948306ec7 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 @@ -114,7 +114,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -124,11 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('CloudWorkloadSecurityAgentRuleType', ['agent_rule']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 f2d3395be23..7fc2c48d0f0 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 @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 14998a49a9f..f007a9696f0 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 @@ -115,10 +115,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('CloudWorkloadSecurityAgentRuleType', ['agent_rule']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 5c8d26b4394..39bb5f69790 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 @@ -114,7 +114,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -124,11 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('CloudWorkloadSecurityAgentRuleType', ['agent_rule']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 73962e9e216..87aa17aa3b5 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 @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 194d153ba94..4c526f4ab72 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item.rb @@ -206,7 +206,7 @@ def valid? # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -226,11 +226,7 @@ def popularity=(popularity) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('DashboardType', ['custom_timeboard', 'custom_screenboard', 'integration_screenboard', 'integration_timeboard', 'host_timeboard']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 efe8f471a68..5e9473ed17d 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 @@ -112,7 +112,7 @@ def valid? # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -122,11 +122,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('DashboardType', ['custom_timeboard', 'custom_screenboard', 'integration_screenboard', 'integration_timeboard', 'host_timeboard']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 3a81fb48a98..6686aea9a68 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 @@ -112,7 +112,7 @@ def valid? # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -122,11 +122,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('DashboardType', ['custom_timeboard', 'custom_screenboard', 'integration_screenboard', 'integration_timeboard', 'host_timeboard']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 c5e895942b7..3ec80a1df8d 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_items.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_items.rb @@ -110,7 +110,7 @@ def valid? # @param dashboards [Object] Object to be assigned # @!visibility private def dashboards=(dashboards) - if @dashboards.nil? + if dashboards.nil? fail ArgumentError, 'invalid value for "dashboards", dashboards cannot be nil.' end @dashboards = dashboards 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 83bd903d15c..a7287cc4b0f 100644 --- a/lib/datadog_api_client/v2/models/full_api_key.rb +++ b/lib/datadog_api_client/v2/models/full_api_key.rb @@ -124,10 +124,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('APIKeysType', ['api_keys']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 84718776f9a..e3b9a054397 100644 --- a/lib/datadog_api_client/v2/models/full_application_key.rb +++ b/lib/datadog_api_client/v2/models/full_application_key.rb @@ -124,10 +124,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 9a23ca20d98..0da480b70ee 100644 --- a/lib/datadog_api_client/v2/models/incident_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_create_attributes.rb @@ -143,7 +143,7 @@ def valid? # @param customer_impacted [Object] Object to be assigned # @!visibility private def customer_impacted=(customer_impacted) - if @customer_impacted.nil? + if customer_impacted.nil? fail ArgumentError, 'invalid value for "customer_impacted", customer_impacted cannot be nil.' end @customer_impacted = customer_impacted @@ -153,7 +153,7 @@ def customer_impacted=(customer_impacted) # @param title [Object] Object to be assigned # @!visibility private def title=(title) - if @title.nil? + if title.nil? fail ArgumentError, 'invalid value for "title", title cannot be nil.' end @title = title 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 f3b2cab4762..c691716d716 100644 --- a/lib/datadog_api_client/v2/models/incident_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_create_data.rb @@ -123,7 +123,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -133,11 +133,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentType', ['incidents']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 4789ce9e06b..8ec3caab8cd 100644 --- a/lib/datadog_api_client/v2/models/incident_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_create_relationships.rb @@ -99,7 +99,7 @@ def valid? # @param commander [Object] Object to be assigned # @!visibility private def commander=(commander) - if @commander.nil? + if commander.nil? fail ArgumentError, 'invalid value for "commander", commander cannot be nil.' end @commander = commander 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 f1a46782adc..5413154d751 100644 --- a/lib/datadog_api_client/v2/models/incident_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_create_request.rb @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 75525dbe016..762ef73cf57 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 @@ -109,10 +109,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentFieldAttributesValueType', ['multiselect', 'textarray', 'metrictag', 'autocomplete']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 0ffac008068..b5736b31c9a 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 @@ -107,10 +107,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentFieldAttributesSingleValueType', ['dropdown', 'textbox']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end diff --git a/lib/datadog_api_client/v2/models/incident_response.rb b/lib/datadog_api_client/v2/models/incident_response.rb index ce30f1d8da5..fa5e93cf4d6 100644 --- a/lib/datadog_api_client/v2/models/incident_response.rb +++ b/lib/datadog_api_client/v2/models/incident_response.rb @@ -110,7 +110,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 5ec8636484f..d78f9467f55 100644 --- a/lib/datadog_api_client/v2/models/incident_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_response_attributes.rb @@ -262,7 +262,7 @@ def valid? # @param title [Object] Object to be assigned # @!visibility private def title=(title) - if @title.nil? + if title.nil? fail ArgumentError, 'invalid value for "title", title cannot be nil.' end @title = title 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 fa5c62a15d0..12ea0d7809c 100644 --- a/lib/datadog_api_client/v2/models/incident_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_response_data.rb @@ -132,7 +132,7 @@ def valid? # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -142,11 +142,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentType', ['incidents']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 8c3d4406e16..b87832810ee 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 @@ -99,7 +99,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name 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 d1b10ff1242..73f06886e5f 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 @@ -119,11 +119,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentServiceType', ['services']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 0bbb5c97b57..3adfc6281f5 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 @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 c08211bfab9..13db4d2c3ee 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response.rb @@ -110,7 +110,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 a3f21eb7270..f88ef75180f 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 @@ -132,7 +132,7 @@ def valid? # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -142,11 +142,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentServiceType', ['services']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 d4bbc001d96..40c3d632222 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 @@ -99,7 +99,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name 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 a443efcfc45..bebaa49e3ca 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 @@ -128,11 +128,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentServiceType', ['services']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 a923dd8a591..39ba33dafd9 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 @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 c727565d162..e86d2926370 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response.rb @@ -121,7 +121,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 06afcdd3aea..ebfee3e0e8b 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 @@ -99,7 +99,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name 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 848b6a28346..6f10aa2da21 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 @@ -119,11 +119,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentTeamType', ['teams']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 0ebd3999478..88eaebb3263 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 @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 903b838d96d..de114dcd8d5 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response.rb @@ -110,7 +110,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 95e77c528fd..c281e003b0e 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 @@ -124,10 +124,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentTeamType', ['teams']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 b90640750e8..ed60f3c58d6 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 @@ -99,7 +99,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name 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 b64058bb7c2..714780284b8 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 @@ -128,11 +128,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentTeamType', ['teams']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 5c570b26028..282baa6b25a 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 @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 6bdea77ab0a..500c3179e30 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response.rb @@ -121,7 +121,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 48ce94090b8..c5c90dd7e84 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 @@ -125,11 +125,7 @@ def valid? # @param cell_type [Object] Object to be assigned # @!visibility private def cell_type=(cell_type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentTimelineCellMarkdownContentType', ['markdown']) - unless validator.valid?(cell_type) - fail ArgumentError, "invalid value for \"cell_type\", must be one of #{validator.allowable_values}." - end - if @cell_type.nil? + if cell_type.nil? fail ArgumentError, 'invalid value for "cell_type", cell_type cannot be nil.' end @cell_type = cell_type @@ -139,7 +135,7 @@ def cell_type=(cell_type) # @param content [Object] Object to be assigned # @!visibility private def content=(content) - if @content.nil? + if content.nil? fail ArgumentError, 'invalid value for "content", content cannot be nil.' end @content = content 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 7c07df5bc1d..42a93c43913 100644 --- a/lib/datadog_api_client/v2/models/incident_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_update_data.rb @@ -132,7 +132,7 @@ def valid? # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -142,11 +142,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentType', ['incidents']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 a37972dcd02..8e5004ec215 100644 --- a/lib/datadog_api_client/v2/models/incident_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_update_request.rb @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data diff --git a/lib/datadog_api_client/v2/models/incidents_response.rb b/lib/datadog_api_client/v2/models/incidents_response.rb index a46350cff64..79c86d53983 100644 --- a/lib/datadog_api_client/v2/models/incidents_response.rb +++ b/lib/datadog_api_client/v2/models/incidents_response.rb @@ -121,7 +121,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data diff --git a/lib/datadog_api_client/v2/models/log.rb b/lib/datadog_api_client/v2/models/log.rb index f58dbb19623..b68bb509614 100644 --- a/lib/datadog_api_client/v2/models/log.rb +++ b/lib/datadog_api_client/v2/models/log.rb @@ -115,10 +115,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogType', ['log']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 3a76b539d2b..29d9665f93e 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb @@ -124,10 +124,6 @@ def valid? # @param aggregation [Object] Object to be assigned # @!visibility private def aggregation=(aggregation) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsAggregationFunction', ['count', 'cardinality', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) - unless validator.valid?(aggregation) - fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." - end @aggregation = aggregation end @@ -135,10 +131,6 @@ def aggregation=(aggregation) # @param order [Object] Object to be assigned # @!visibility private def order=(order) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsSortOrder', ['asc', 'desc']) - unless validator.valid?(order) - fail ArgumentError, "invalid value for \"order\", must be one of #{validator.allowable_values}." - end @order = order end @@ -146,10 +138,6 @@ def order=(order) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsAggregateSortType', ['alphabetical', 'measure']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 1f890100d8b..55ee97ea94c 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb @@ -154,7 +154,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -164,7 +164,7 @@ def name=(name) # @param query [Object] Object to be assigned # @!visibility private def query=(query) - if @query.nil? + if query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' end @query = query @@ -174,10 +174,6 @@ def query=(query) # @param state [Object] Object to be assigned # @!visibility private def state=(state) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsArchiveState', ['UNKNOWN', 'WORKING', 'FAILING', 'WORKING_AUTH_LEGACY']) - unless validator.valid?(state) - fail ArgumentError, "invalid value for \"state\", must be one of #{validator.allowable_values}." - end @state = state end 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 1ec9ab075e7..4d49cf6a9f5 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 @@ -148,7 +148,7 @@ def valid? # @param destination [Object] Object to be assigned # @!visibility private def destination=(destination) - if @destination.nil? + if destination.nil? fail ArgumentError, 'invalid value for "destination", destination cannot be nil.' end @destination = destination @@ -158,7 +158,7 @@ def destination=(destination) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -168,7 +168,7 @@ def name=(name) # @param query [Object] Object to be assigned # @!visibility private def query=(query) - if @query.nil? + if query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' end @query = query 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 996701eeffb..06db72765f9 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 @@ -110,7 +110,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 88a75f89a75..80838fe6d4f 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_definition.rb @@ -119,7 +119,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 f0c31cab861..cb74ebc4434 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 @@ -158,7 +158,7 @@ def valid? # @param container [Object] Object to be assigned # @!visibility private def container=(container) - if @container.nil? + if container.nil? fail ArgumentError, 'invalid value for "container", container cannot be nil.' end @container = container @@ -168,7 +168,7 @@ def container=(container) # @param integration [Object] Object to be assigned # @!visibility private def integration=(integration) - if @integration.nil? + if integration.nil? fail ArgumentError, 'invalid value for "integration", integration cannot be nil.' end @integration = integration @@ -178,7 +178,7 @@ def integration=(integration) # @param storage_account [Object] Object to be assigned # @!visibility private def storage_account=(storage_account) - if @storage_account.nil? + if storage_account.nil? fail ArgumentError, 'invalid value for "storage_account", storage_account cannot be nil.' end @storage_account = storage_account @@ -188,11 +188,7 @@ def storage_account=(storage_account) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsArchiveDestinationAzureType', ['azure']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 251884b974d..b85ae738284 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 @@ -136,7 +136,7 @@ def valid? # @param bucket [Object] Object to be assigned # @!visibility private def bucket=(bucket) - if @bucket.nil? + if bucket.nil? fail ArgumentError, 'invalid value for "bucket", bucket cannot be nil.' end @bucket = bucket @@ -146,7 +146,7 @@ def bucket=(bucket) # @param integration [Object] Object to be assigned # @!visibility private def integration=(integration) - if @integration.nil? + if integration.nil? fail ArgumentError, 'invalid value for "integration", integration cannot be nil.' end @integration = integration @@ -156,11 +156,7 @@ def integration=(integration) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsArchiveDestinationGCSType', ['gcs']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 07795d836b2..da97a4d95ac 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 @@ -136,7 +136,7 @@ def valid? # @param bucket [Object] Object to be assigned # @!visibility private def bucket=(bucket) - if @bucket.nil? + if bucket.nil? fail ArgumentError, 'invalid value for "bucket", bucket cannot be nil.' end @bucket = bucket @@ -146,7 +146,7 @@ def bucket=(bucket) # @param integration [Object] Object to be assigned # @!visibility private def integration=(integration) - if @integration.nil? + if integration.nil? fail ArgumentError, 'invalid value for "integration", integration cannot be nil.' end @integration = integration @@ -156,11 +156,7 @@ def integration=(integration) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsArchiveDestinationS3Type', ['s3']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 529050a8502..e4addaee362 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 @@ -112,7 +112,7 @@ def valid? # @param client_id [Object] Object to be assigned # @!visibility private def client_id=(client_id) - if @client_id.nil? + if client_id.nil? fail ArgumentError, 'invalid value for "client_id", client_id cannot be nil.' end @client_id = client_id @@ -122,7 +122,7 @@ def client_id=(client_id) # @param tenant_id [Object] Object to be assigned # @!visibility private def tenant_id=(tenant_id) - if @tenant_id.nil? + if tenant_id.nil? fail ArgumentError, 'invalid value for "tenant_id", tenant_id cannot be nil.' end @tenant_id = tenant_id 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 4946f862904..2985816b54e 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 @@ -112,7 +112,7 @@ def valid? # @param client_email [Object] Object to be assigned # @!visibility private def client_email=(client_email) - if @client_email.nil? + if client_email.nil? fail ArgumentError, 'invalid value for "client_email", client_email cannot be nil.' end @client_email = client_email @@ -122,7 +122,7 @@ def client_email=(client_email) # @param project_id [Object] Object to be assigned # @!visibility private def project_id=(project_id) - if @project_id.nil? + if project_id.nil? fail ArgumentError, 'invalid value for "project_id", project_id cannot be nil.' end @project_id = project_id 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 ad40854db05..20ceab983ee 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 @@ -112,7 +112,7 @@ def valid? # @param account_id [Object] Object to be assigned # @!visibility private def account_id=(account_id) - if @account_id.nil? + if account_id.nil? fail ArgumentError, 'invalid value for "account_id", account_id cannot be nil.' end @account_id = account_id @@ -122,7 +122,7 @@ def account_id=(account_id) # @param role_name [Object] Object to be assigned # @!visibility private def role_name=(role_name) - if @role_name.nil? + if role_name.nil? fail ArgumentError, 'invalid value for "role_name", role_name cannot be nil.' end @role_name = role_name 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 2290a1faa60..53ed533ab23 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 @@ -102,7 +102,7 @@ def valid? # @param archive_ids [Object] Object to be assigned # @!visibility private def archive_ids=(archive_ids) - if @archive_ids.nil? + if archive_ids.nil? fail ArgumentError, 'invalid value for "archive_ids", archive_ids cannot be nil.' end @archive_ids = archive_ids 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 4d5ee914359..dcfa0f4e892 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 @@ -114,7 +114,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -124,11 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsArchiveOrderDefinitionType', ['archive_order']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type diff --git a/lib/datadog_api_client/v2/models/logs_compute.rb b/lib/datadog_api_client/v2/models/logs_compute.rb index 66608c9ed73..4a81a64a1c3 100644 --- a/lib/datadog_api_client/v2/models/logs_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_compute.rb @@ -129,11 +129,7 @@ def valid? # @param aggregation [Object] Object to be assigned # @!visibility private def aggregation=(aggregation) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsAggregationFunction', ['count', 'cardinality', 'pc75', 'pc90', 'pc95', 'pc98', 'pc99', 'sum', 'min', 'max', 'avg']) - unless validator.valid?(aggregation) - fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." - end - if @aggregation.nil? + if aggregation.nil? fail ArgumentError, 'invalid value for "aggregation", aggregation cannot be nil.' end @aggregation = aggregation @@ -143,10 +139,6 @@ def aggregation=(aggregation) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsComputeType', ['timeseries', 'total']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 26863f36e34..06b18f7809b 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by.rb @@ -149,7 +149,7 @@ def valid? # @param facet [Object] Object to be assigned # @!visibility private def facet=(facet) - if @facet.nil? + if facet.nil? fail ArgumentError, 'invalid value for "facet", facet cannot be nil.' end @facet = facet 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 78fd1c1c824..5a2c6562807 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 @@ -128,7 +128,7 @@ def valid? # @param interval [Object] Object to be assigned # @!visibility private def interval=(interval) - if @interval.nil? + if interval.nil? fail ArgumentError, 'invalid value for "interval", interval cannot be nil.' end @interval = interval @@ -138,7 +138,7 @@ def interval=(interval) # @param max [Object] Object to be assigned # @!visibility private def max=(max) - if @max.nil? + if max.nil? fail ArgumentError, 'invalid value for "max", max cannot be nil.' end @max = max @@ -148,7 +148,7 @@ def max=(max) # @param min [Object] Object to be assigned # @!visibility private def min=(min) - if @min.nil? + if min.nil? fail ArgumentError, 'invalid value for "min", min cannot be nil.' end @min = min 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 e5d7c2b6d45..5b89f9332cd 100644 --- a/lib/datadog_api_client/v2/models/logs_list_request.rb +++ b/lib/datadog_api_client/v2/models/logs_list_request.rb @@ -123,10 +123,6 @@ def valid? # @param sort [Object] Object to be assigned # @!visibility private def sort=(sort) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsSort', ['timestamp', '-timestamp']) - unless validator.valid?(sort) - fail ArgumentError, "invalid value for \"sort\", must be one of #{validator.allowable_values}." - end @sort = sort end 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 9de7fa16826..57b03b42d27 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_compute.rb @@ -108,11 +108,7 @@ def valid? # @param aggregation_type [Object] Object to be assigned # @!visibility private def aggregation_type=(aggregation_type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsMetricComputeAggregationType', ['count', 'distribution']) - unless validator.valid?(aggregation_type) - fail ArgumentError, "invalid value for \"aggregation_type\", must be one of #{validator.allowable_values}." - end - if @aggregation_type.nil? + if aggregation_type.nil? fail ArgumentError, 'invalid value for "aggregation_type", aggregation_type cannot be nil.' end @aggregation_type = aggregation_type 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 b47f79df9de..44d4aa61f40 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 @@ -119,7 +119,7 @@ def valid? # @param compute [Object] Object to be assigned # @!visibility private def compute=(compute) - if @compute.nil? + if compute.nil? fail ArgumentError, 'invalid value for "compute", compute cannot be nil.' end @compute = compute 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 fdf976f902a..47c95e9ee7b 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 @@ -127,7 +127,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -137,7 +137,7 @@ def attributes=(attributes) # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -147,11 +147,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsMetricType', ['logs_metrics']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 4ace4c00844..2c65742ae11 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 @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 484297caf86..6cb52896af9 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 @@ -108,7 +108,7 @@ def valid? # @param path [Object] Object to be assigned # @!visibility private def path=(path) - if @path.nil? + if path.nil? fail ArgumentError, 'invalid value for "path", path cannot be nil.' end @path = path 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 ab72f1de792..cf59d601bf2 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 @@ -104,10 +104,6 @@ def valid? # @param aggregation_type [Object] Object to be assigned # @!visibility private def aggregation_type=(aggregation_type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsMetricResponseComputeAggregationType', ['count', 'distribution']) - unless validator.valid?(aggregation_type) - fail ArgumentError, "invalid value for \"aggregation_type\", must be one of #{validator.allowable_values}." - end @aggregation_type = aggregation_type end 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 00dcd9e8f85..2292c71a82c 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 @@ -115,10 +115,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsMetricType', ['logs_metrics']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 e25f53caede..6546e7f48f0 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 @@ -114,7 +114,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -124,11 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsMetricType', ['logs_metrics']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 31c9cd63950..f0a28a13fbe 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 @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 843b83704cd..d9ed1fa2b3d 100644 --- a/lib/datadog_api_client/v2/models/logs_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/logs_response_metadata.rb @@ -134,10 +134,6 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('LogsAggregateResponseStatus', ['done', 'timeout']) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end @status = status end diff --git a/lib/datadog_api_client/v2/models/metric.rb b/lib/datadog_api_client/v2/models/metric.rb index e73ab553948..63ecdcba5ad 100644 --- a/lib/datadog_api_client/v2/models/metric.rb +++ b/lib/datadog_api_client/v2/models/metric.rb @@ -106,10 +106,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricType', ['metrics']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 e2255426058..e77688559dc 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags.rb @@ -115,10 +115,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricType', ['metrics']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 4a69e4c5906..9151e717c46 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb @@ -112,11 +112,7 @@ def valid? # @param space [Object] Object to be assigned # @!visibility private def space=(space) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricCustomSpaceAggregation', ['avg', 'max', 'min', 'sum']) - unless validator.valid?(space) - fail ArgumentError, "invalid value for \"space\", must be one of #{validator.allowable_values}." - end - if @space.nil? + if space.nil? fail ArgumentError, 'invalid value for "space", space cannot be nil.' end @space = space @@ -126,11 +122,7 @@ def space=(space) # @param time [Object] Object to be assigned # @!visibility private def time=(time) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricCustomTimeAggregation', ['avg', 'count', 'max', 'min', 'sum']) - unless validator.valid?(time) - fail ArgumentError, "invalid value for \"time\", must be one of #{validator.allowable_values}." - end - if @time.nil? + if time.nil? fail ArgumentError, 'invalid value for "time", time cannot be nil.' end @time = time 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 8c544bfe12c..a9988414af6 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume.rb @@ -115,10 +115,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricDistinctVolumeType', ['distinct_metric_volumes']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 a6e2b0dca8b..d80c7127463 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 @@ -115,10 +115,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricIngestedIndexedVolumeType', ['metric_volumes']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 973a03cfd10..e76fcdb17f9 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration.rb @@ -115,10 +115,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricTagConfigurationType', ['manage_tags']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 6d4905e42f4..7f3f63936e3 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 @@ -162,10 +162,6 @@ def valid? # @param metric_type [Object] Object to be assigned # @!visibility private def metric_type=(metric_type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricTagConfigurationMetricTypes', ['gauge', 'count', 'rate', 'distribution']) - unless validator.valid?(metric_type) - fail ArgumentError, "invalid value for \"metric_type\", must be one of #{validator.allowable_values}." - end @metric_type = metric_type end 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 0e2822e3b54..0b50b9a8e36 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 @@ -156,11 +156,7 @@ def valid? # @param metric_type [Object] Object to be assigned # @!visibility private def metric_type=(metric_type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricTagConfigurationMetricTypes', ['gauge', 'count', 'rate', 'distribution']) - unless validator.valid?(metric_type) - fail ArgumentError, "invalid value for \"metric_type\", must be one of #{validator.allowable_values}." - end - if @metric_type.nil? + if metric_type.nil? fail ArgumentError, 'invalid value for "metric_type", metric_type cannot be nil.' end @metric_type = metric_type @@ -170,7 +166,7 @@ def metric_type=(metric_type) # @param tags [Object] Object to be assigned # @!visibility private def tags=(tags) - if @tags.nil? + if tags.nil? fail ArgumentError, 'invalid value for "tags", tags cannot be nil.' end @tags = tags 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 3ab28ad41c9..84382e6fb4d 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 @@ -123,7 +123,7 @@ def valid? # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -133,11 +133,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricTagConfigurationType', ['manage_tags']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 74c952bc493..c0e0af93461 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 @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 f5df765370c..2a7ae95f16e 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 @@ -123,7 +123,7 @@ def valid? # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -133,11 +133,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('MetricTagConfigurationType', ['manage_tags']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 c2ee7f35b30..79fece868bd 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 @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data diff --git a/lib/datadog_api_client/v2/models/organization.rb b/lib/datadog_api_client/v2/models/organization.rb index 94269253f86..38fd58d7b5e 100644 --- a/lib/datadog_api_client/v2/models/organization.rb +++ b/lib/datadog_api_client/v2/models/organization.rb @@ -119,11 +119,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('OrganizationsType', ['orgs']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 dce85302fdf..520d764d46a 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key.rb @@ -124,10 +124,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('APIKeysType', ['api_keys']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 e29add98ffd..beed3f89d9a 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key.rb @@ -124,10 +124,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('ApplicationKeysType', ['application_keys']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end diff --git a/lib/datadog_api_client/v2/models/permission.rb b/lib/datadog_api_client/v2/models/permission.rb index 6c9eb6adb1f..78a51bb14d1 100644 --- a/lib/datadog_api_client/v2/models/permission.rb +++ b/lib/datadog_api_client/v2/models/permission.rb @@ -119,11 +119,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('PermissionsType', ['permissions']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type diff --git a/lib/datadog_api_client/v2/models/process_summary.rb b/lib/datadog_api_client/v2/models/process_summary.rb index f043f1c645a..534772a5b14 100644 --- a/lib/datadog_api_client/v2/models/process_summary.rb +++ b/lib/datadog_api_client/v2/models/process_summary.rb @@ -115,10 +115,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('ProcessSummaryType', ['process']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 c98e6f8b514..d6522dbab94 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 @@ -114,7 +114,7 @@ def valid? # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -124,11 +124,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentIntegrationMetadataType', ['incident_integrations']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 ec3fc774ea0..32c5011121e 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 @@ -101,7 +101,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 1e38564b6ce..f2c23405b0b 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 @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 68e58ccebd4..d8ccd7a0d32 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 @@ -114,7 +114,7 @@ def valid? # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -124,11 +124,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('IncidentPostmortemType', ['incident_postmortems']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 c3322df56f8..49a48707664 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organization.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organization.rb @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 fb819b5e360..1a87f959fcb 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 @@ -114,7 +114,7 @@ def valid? # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -124,11 +124,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('OrganizationsType', ['orgs']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 1a96e81d938..b18fbeee3e8 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organizations.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organizations.rb @@ -101,7 +101,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 27130f8a9d6..5d08b08b503 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 @@ -106,10 +106,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('PermissionsType', ['permissions']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 8ffc7f179c4..4181a0ec219 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 @@ -106,10 +106,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('RolesType', ['roles']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 6eb7742e284..2f801e0aab4 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user.rb @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 bd4d267699e..b3c0f0494ce 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 @@ -114,7 +114,7 @@ def valid? # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -124,11 +124,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('UsersType', ['users']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 74c23693cb6..73c235089d3 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_users.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_users.rb @@ -101,7 +101,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data diff --git a/lib/datadog_api_client/v2/models/role.rb b/lib/datadog_api_client/v2/models/role.rb index dcb8e5b0168..8d2dbb38b9e 100644 --- a/lib/datadog_api_client/v2/models/role.rb +++ b/lib/datadog_api_client/v2/models/role.rb @@ -128,11 +128,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('RolesType', ['roles']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type diff --git a/lib/datadog_api_client/v2/models/role_clone.rb b/lib/datadog_api_client/v2/models/role_clone.rb index 573f097a76c..074375edb5e 100644 --- a/lib/datadog_api_client/v2/models/role_clone.rb +++ b/lib/datadog_api_client/v2/models/role_clone.rb @@ -114,7 +114,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -124,11 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('RolesType', ['roles']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 f47b56096bd..0298fd0c68b 100644 --- a/lib/datadog_api_client/v2/models/role_clone_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_clone_attributes.rb @@ -99,7 +99,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name 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 18858121f9a..f496c341647 100644 --- a/lib/datadog_api_client/v2/models/role_clone_request.rb +++ b/lib/datadog_api_client/v2/models/role_clone_request.rb @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 2d67f003368..0d5ef196d11 100644 --- a/lib/datadog_api_client/v2/models/role_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_create_attributes.rb @@ -117,7 +117,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name 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 8d81c2dccd7..336ac5c1c66 100644 --- a/lib/datadog_api_client/v2/models/role_create_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_data.rb @@ -119,7 +119,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -129,10 +129,6 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('RolesType', ['roles']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 d373a27002a..3b8a40965b5 100644 --- a/lib/datadog_api_client/v2/models/role_create_request.rb +++ b/lib/datadog_api_client/v2/models/role_create_request.rb @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 bc41c247db6..13cb2bcaeba 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 @@ -128,11 +128,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('RolesType', ['roles']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 76f7f8f1de5..c600c9861de 100644 --- a/lib/datadog_api_client/v2/models/role_update_data.rb +++ b/lib/datadog_api_client/v2/models/role_update_data.rb @@ -127,7 +127,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -137,7 +137,7 @@ def attributes=(attributes) # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -147,11 +147,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('RolesType', ['roles']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 376b73c81d9..63740bf5dcf 100644 --- a/lib/datadog_api_client/v2/models/role_update_request.rb +++ b/lib/datadog_api_client/v2/models/role_update_request.rb @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 d5ba05404a4..fa3a3ed5370 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 @@ -128,11 +128,7 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('RolesType', ['roles']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type diff --git a/lib/datadog_api_client/v2/models/security_filter.rb b/lib/datadog_api_client/v2/models/security_filter.rb index c0ac177c522..26317cfb524 100644 --- a/lib/datadog_api_client/v2/models/security_filter.rb +++ b/lib/datadog_api_client/v2/models/security_filter.rb @@ -115,10 +115,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityFilterType', ['security_filters']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 9b9ab4c5cd9..496470d02e7 100644 --- a/lib/datadog_api_client/v2/models/security_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_attributes.rb @@ -155,10 +155,6 @@ def valid? # @param filtered_data_type [Object] Object to be assigned # @!visibility private def filtered_data_type=(filtered_data_type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityFilterFilteredDataType', ['logs']) - unless validator.valid?(filtered_data_type) - fail ArgumentError, "invalid value for \"filtered_data_type\", must be one of #{validator.allowable_values}." - end @filtered_data_type = filtered_data_type end 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 ef03f01812c..8ffe8d8bdd2 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 @@ -153,7 +153,7 @@ def valid? # @param exclusion_filters [Object] Object to be assigned # @!visibility private def exclusion_filters=(exclusion_filters) - if @exclusion_filters.nil? + if exclusion_filters.nil? fail ArgumentError, 'invalid value for "exclusion_filters", exclusion_filters cannot be nil.' end @exclusion_filters = exclusion_filters @@ -163,11 +163,7 @@ def exclusion_filters=(exclusion_filters) # @param filtered_data_type [Object] Object to be assigned # @!visibility private def filtered_data_type=(filtered_data_type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityFilterFilteredDataType', ['logs']) - unless validator.valid?(filtered_data_type) - fail ArgumentError, "invalid value for \"filtered_data_type\", must be one of #{validator.allowable_values}." - end - if @filtered_data_type.nil? + if filtered_data_type.nil? fail ArgumentError, 'invalid value for "filtered_data_type", filtered_data_type cannot be nil.' end @filtered_data_type = filtered_data_type @@ -177,7 +173,7 @@ def filtered_data_type=(filtered_data_type) # @param is_enabled [Object] Object to be assigned # @!visibility private def is_enabled=(is_enabled) - if @is_enabled.nil? + if is_enabled.nil? fail ArgumentError, 'invalid value for "is_enabled", is_enabled cannot be nil.' end @is_enabled = is_enabled @@ -187,7 +183,7 @@ def is_enabled=(is_enabled) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -197,7 +193,7 @@ def name=(name) # @param query [Object] Object to be assigned # @!visibility private def query=(query) - if @query.nil? + if query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' end @query = query 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 3cb05c152a8..703194967e4 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 @@ -114,7 +114,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -124,11 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityFilterType', ['security_filters']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 f4efece46a3..2c3b12f89ea 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 @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 88aa304a2cb..8eea479fee8 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 @@ -112,7 +112,7 @@ def valid? # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -122,7 +122,7 @@ def name=(name) # @param query [Object] Object to be assigned # @!visibility private def query=(query) - if @query.nil? + if query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' end @query = query 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 c70480e2f28..0218912e505 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 @@ -146,10 +146,6 @@ def valid? # @param filtered_data_type [Object] Object to be assigned # @!visibility private def filtered_data_type=(filtered_data_type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityFilterFilteredDataType', ['logs']) - unless validator.valid?(filtered_data_type) - fail ArgumentError, "invalid value for \"filtered_data_type\", must be one of #{validator.allowable_values}." - end @filtered_data_type = filtered_data_type end 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 7947b7e057b..84828509505 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 @@ -114,7 +114,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -124,11 +124,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityFilterType', ['security_filters']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 6f5cbc398c7..08a34a05fd9 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 @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 ff41dbda30e..3cedad195a6 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_filter.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_filter.rb @@ -104,10 +104,6 @@ def valid? # @param action [Object] Object to be assigned # @!visibility private def action=(action) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringFilterAction', ['require', 'suppress']) - unless validator.valid?(action) - fail ArgumentError, "invalid value for \"action\", must be one of #{validator.allowable_values}." - end @action = action end 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 c48e9917751..9f71725672b 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 @@ -125,10 +125,6 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleSeverity', ['info', 'low', 'medium', 'high', 'critical']) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end @status = status end 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 23aa86eaa4b..8bc91392076 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 @@ -129,11 +129,7 @@ def valid? # @param status [Object] Object to be assigned # @!visibility private def status=(status) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleSeverity', ['info', 'low', 'medium', 'high', 'critical']) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end - if @status.nil? + if status.nil? fail ArgumentError, 'invalid value for "status", status cannot be nil.' end @status = status diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb index 31eabb7f616..12279ad108b 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb @@ -208,7 +208,7 @@ def valid? # @param cases [Object] Object to be assigned # @!visibility private def cases=(cases) - if @cases.nil? + if cases.nil? fail ArgumentError, 'invalid value for "cases", cases cannot be nil.' end @cases = cases @@ -218,7 +218,7 @@ def cases=(cases) # @param is_enabled [Object] Object to be assigned # @!visibility private def is_enabled=(is_enabled) - if @is_enabled.nil? + if is_enabled.nil? fail ArgumentError, 'invalid value for "is_enabled", is_enabled cannot be nil.' end @is_enabled = is_enabled @@ -228,7 +228,7 @@ def is_enabled=(is_enabled) # @param message [Object] Object to be assigned # @!visibility private def message=(message) - if @message.nil? + if message.nil? fail ArgumentError, 'invalid value for "message", message cannot be nil.' end @message = message @@ -238,7 +238,7 @@ def message=(message) # @param name [Object] Object to be assigned # @!visibility private def name=(name) - if @name.nil? + if name.nil? fail ArgumentError, 'invalid value for "name", name cannot be nil.' end @name = name @@ -248,7 +248,7 @@ def name=(name) # @param options [Object] Object to be assigned # @!visibility private def options=(options) - if @options.nil? + if options.nil? fail ArgumentError, 'invalid value for "options", options cannot be nil.' end @options = options @@ -258,7 +258,7 @@ def options=(options) # @param queries [Object] Object to be assigned # @!visibility private def queries=(queries) - if @queries.nil? + if queries.nil? fail ArgumentError, 'invalid value for "queries", queries cannot be nil.' end @queries = queries @@ -268,10 +268,6 @@ def queries=(queries) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleTypeCreate', ['log_detection', 'workload_security']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 ed178085e56..acd11306895 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 @@ -105,10 +105,6 @@ def valid? # @param forget_after [Object] Object to be assigned # @!visibility private def forget_after=(forget_after) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleNewValueOptionsForgetAfter', [1, 2, 7, 14, 21, 28]) - unless validator.valid?(forget_after) - fail ArgumentError, "invalid value for \"forget_after\", must be one of #{validator.allowable_values}." - end @forget_after = forget_after end @@ -116,10 +112,6 @@ def forget_after=(forget_after) # @param learning_duration [Object] Object to be assigned # @!visibility private def learning_duration=(learning_duration) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleNewValueOptionsLearningDuration', [0, 1, 7]) - unless validator.valid?(learning_duration) - fail ArgumentError, "invalid value for \"learning_duration\", must be one of #{validator.allowable_values}." - end @learning_duration = learning_duration end 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 5ad4a5c9664..876a3e7d284 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 @@ -134,10 +134,6 @@ def valid? # @param detection_method [Object] Object to be assigned # @!visibility private def detection_method=(detection_method) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleDetectionMethod', ['threshold', 'new_value', 'anomaly_detection']) - unless validator.valid?(detection_method) - fail ArgumentError, "invalid value for \"detection_method\", must be one of #{validator.allowable_values}." - end @detection_method = detection_method end @@ -145,10 +141,6 @@ def detection_method=(detection_method) # @param evaluation_window [Object] Object to be assigned # @!visibility private def evaluation_window=(evaluation_window) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleEvaluationWindow', [0, 60, 300, 600, 900, 1800, 3600, 7200]) - unless validator.valid?(evaluation_window) - fail ArgumentError, "invalid value for \"evaluation_window\", must be one of #{validator.allowable_values}." - end @evaluation_window = evaluation_window end @@ -156,10 +148,6 @@ def evaluation_window=(evaluation_window) # @param keep_alive [Object] Object to be assigned # @!visibility private def keep_alive=(keep_alive) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleKeepAlive', [0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600]) - unless validator.valid?(keep_alive) - fail ArgumentError, "invalid value for \"keep_alive\", must be one of #{validator.allowable_values}." - end @keep_alive = keep_alive end @@ -167,10 +155,6 @@ def keep_alive=(keep_alive) # @param max_signal_duration [Object] Object to be assigned # @!visibility private def max_signal_duration=(max_signal_duration) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleMaxSignalDuration', [0, 60, 300, 600, 900, 1800, 3600, 7200, 10800, 21600, 43200, 86400]) - unless validator.valid?(max_signal_duration) - fail ArgumentError, "invalid value for \"max_signal_duration\", must be one of #{validator.allowable_values}." - end @max_signal_duration = max_signal_duration end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb index d1b1a0d0a0b..7e33969e428 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb @@ -145,10 +145,6 @@ def valid? # @param aggregation [Object] Object to be assigned # @!visibility private def aggregation=(aggregation) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleQueryAggregation', ['count', 'cardinality', 'sum', 'max', 'new_value']) - unless validator.valid?(aggregation) - fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." - end @aggregation = aggregation end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb index 821e2692700..69081b4286a 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb @@ -149,10 +149,6 @@ def valid? # @param aggregation [Object] Object to be assigned # @!visibility private def aggregation=(aggregation) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleQueryAggregation', ['count', 'cardinality', 'sum', 'max', 'new_value']) - unless validator.valid?(aggregation) - fail ArgumentError, "invalid value for \"aggregation\", must be one of #{validator.allowable_values}." - end @aggregation = aggregation end @@ -160,7 +156,7 @@ def aggregation=(aggregation) # @param query [Object] Object to be assigned # @!visibility private def query=(query) - if @query.nil? + if query.nil? fail ArgumentError, 'invalid value for "query", query cannot be nil.' end @query = query diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb index 94de6117d68..5b41feed8e9 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb @@ -247,10 +247,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringRuleTypeRead', ['log_detection', 'infrastructure_configuration', 'workload_security', 'cloud_configuration']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 d2b22ec6c80..f10c4868ca9 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal.rb @@ -116,10 +116,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringSignalType', ['signal']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 337b92eb634..89a6fe704aa 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 @@ -113,10 +113,6 @@ def valid? # @param sort [Object] Object to be assigned # @!visibility private def sort=(sort) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('SecurityMonitoringSignalsSort', ['timestamp', '-timestamp']) - unless validator.valid?(sort) - fail ArgumentError, "invalid value for \"sort\", must be one of #{validator.allowable_values}." - end @sort = sort end 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 bc552712827..9301ba4a01b 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 @@ -130,7 +130,7 @@ def valid? # @param email [Object] Object to be assigned # @!visibility private def email=(email) - if @email.nil? + if email.nil? fail ArgumentError, 'invalid value for "email", email cannot be nil.' end @email = email @@ -140,7 +140,7 @@ def email=(email) # @param service_account [Object] Object to be assigned # @!visibility private def service_account=(service_account) - if @service_account.nil? + if service_account.nil? fail ArgumentError, 'invalid value for "service_account", service_account cannot be nil.' end @service_account = service_account 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 3c09180dfbb..ef0f40e13c6 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 @@ -123,7 +123,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -133,11 +133,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('UsersType', ['users']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 e8ac23d3c0e..03c78b55863 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 @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data diff --git a/lib/datadog_api_client/v2/models/user.rb b/lib/datadog_api_client/v2/models/user.rb index 9c7f9221371..34163f0fc1c 100644 --- a/lib/datadog_api_client/v2/models/user.rb +++ b/lib/datadog_api_client/v2/models/user.rb @@ -124,10 +124,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('UsersType', ['users']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 dd59bff477f..0b3bd7ff30f 100644 --- a/lib/datadog_api_client/v2/models/user_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_create_attributes.rb @@ -117,7 +117,7 @@ def valid? # @param email [Object] Object to be assigned # @!visibility private def email=(email) - if @email.nil? + if email.nil? fail ArgumentError, 'invalid value for "email", email cannot be nil.' end @email = email 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 f1b16c25b0f..2ddfde3d49e 100644 --- a/lib/datadog_api_client/v2/models/user_create_data.rb +++ b/lib/datadog_api_client/v2/models/user_create_data.rb @@ -123,7 +123,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -133,11 +133,7 @@ def attributes=(attributes) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('UsersType', ['users']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 1ae8eb7602d..b6c71e07090 100644 --- a/lib/datadog_api_client/v2/models/user_create_request.rb +++ b/lib/datadog_api_client/v2/models/user_create_request.rb @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 5789b0bec90..7d29e2f0c85 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_data.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_data.rb @@ -114,7 +114,7 @@ def valid? # @param relationships [Object] Object to be assigned # @!visibility private def relationships=(relationships) - if @relationships.nil? + if relationships.nil? fail ArgumentError, 'invalid value for "relationships", relationships cannot be nil.' end @relationships = relationships @@ -124,11 +124,7 @@ def relationships=(relationships) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('UserInvitationsType', ['user_invitations']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 fda90ea5ed0..299ea2c45f1 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_relationships.rb @@ -99,7 +99,7 @@ def valid? # @param user [Object] Object to be assigned # @!visibility private def user=(user) - if @user.nil? + if user.nil? fail ArgumentError, 'invalid value for "user", user cannot be nil.' end @user = user 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 33112c578be..b358463d1cd 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 @@ -115,10 +115,6 @@ def valid? # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('UserInvitationsType', ['user_invitations']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end @type = type end 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 1cbffc32b61..1ad0cfb66b3 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_request.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_request.rb @@ -101,7 +101,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data 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 b7781cd6606..90442d94f78 100644 --- a/lib/datadog_api_client/v2/models/user_update_data.rb +++ b/lib/datadog_api_client/v2/models/user_update_data.rb @@ -127,7 +127,7 @@ def valid? # @param attributes [Object] Object to be assigned # @!visibility private def attributes=(attributes) - if @attributes.nil? + if attributes.nil? fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' end @attributes = attributes @@ -137,7 +137,7 @@ def attributes=(attributes) # @param id [Object] Object to be assigned # @!visibility private def id=(id) - if @id.nil? + if id.nil? fail ArgumentError, 'invalid value for "id", id cannot be nil.' end @id = id @@ -147,11 +147,7 @@ def id=(id) # @param type [Object] Object to be assigned # @!visibility private def type=(type) - validator = DatadogAPIClient::V2::EnumAttributeValidator.new('UsersType', ['users']) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - if @type.nil? + if type.nil? fail ArgumentError, 'invalid value for "type", type cannot be nil.' end @type = type 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 5ce378fb3be..4c096184018 100644 --- a/lib/datadog_api_client/v2/models/user_update_request.rb +++ b/lib/datadog_api_client/v2/models/user_update_request.rb @@ -99,7 +99,7 @@ def valid? # @param data [Object] Object to be assigned # @!visibility private def data=(data) - if @data.nil? + if data.nil? fail ArgumentError, 'invalid value for "data", data cannot be nil.' end @data = data From cf89c337981cb6f6f7d54c6d8667a0f8c6f9bd65 Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Mon, 7 Feb 2022 13:12:36 +0100 Subject: [PATCH 19/23] setter --- .../src/generator/templates/model_generic.j2 | 7 ++-- .../models/alert_graph_widget_definition.rb | 7 ---- .../models/alert_value_widget_definition.rb | 14 -------- .../v1/models/apm_stats_query_column_type.rb | 14 -------- .../v1/models/aws_tag_filter.rb | 7 ---- .../models/aws_tag_filter_create_request.rb | 7 ---- .../models/aws_tag_filter_delete_request.rb | 7 ---- .../v1/models/change_widget_definition.rb | 7 ---- .../v1/models/change_widget_request.rb | 35 ------------------- .../models/check_status_widget_definition.rb | 7 ---- lib/datadog_api_client/v1/models/dashboard.rb | 7 ---- .../v1/models/dashboard_summary_definition.rb | 7 ---- .../models/distribution_widget_definition.rb | 7 ---- lib/datadog_api_client/v1/models/event.rb | 14 -------- .../v1/models/event_create_request.rb | 14 -------- .../v1/models/event_create_response.rb | 14 -------- .../models/event_stream_widget_definition.rb | 14 -------- .../event_timeline_widget_definition.rb | 7 ---- ..._and_function_event_query_group_by_sort.rb | 7 ---- ...la_and_function_metric_query_definition.rb | 7 ---- ...a_and_function_process_query_definition.rb | 14 -------- .../v1/models/free_text_widget_definition.rb | 7 ---- .../v1/models/funnel_widget_definition.rb | 7 ---- .../v1/models/geomap_widget_definition.rb | 7 ---- .../v1/models/geomap_widget_request.rb | 7 ---- .../v1/models/group_widget_definition.rb | 7 ---- .../v1/models/heat_map_widget_definition.rb | 7 ---- .../v1/models/host_map_widget_definition.rb | 14 -------- .../models/hourly_usage_attribution_body.rb | 7 ---- .../v1/models/image_widget_definition.rb | 28 --------------- .../models/list_stream_widget_definition.rb | 7 ---- .../v1/models/log_stream_widget_definition.rb | 14 -------- .../v1/models/logs_attribute_remapper.rb | 7 ---- .../v1/models/logs_list_request.rb | 7 ---- lib/datadog_api_client/v1/models/monitor.rb | 7 ---- ..._and_function_event_query_group_by_sort.rb | 7 ---- .../v1/models/monitor_group_search_result.rb | 7 ---- .../v1/models/monitor_search_result.rb | 14 -------- .../v1/models/monitor_state_group.rb | 7 ---- .../monitor_summary_widget_definition.rb | 35 ------------------- .../v1/models/monitor_update_request.rb | 14 -------- .../v1/models/note_widget_definition.rb | 21 ----------- .../models/notebook_create_data_attributes.rb | 7 ---- .../notebook_distribution_cell_attributes.rb | 7 ---- .../notebook_heat_map_cell_attributes.rb | 7 ---- .../notebook_log_stream_cell_attributes.rb | 7 ---- .../v1/models/notebook_metadata.rb | 7 ---- .../notebook_response_data_attributes.rb | 7 ---- .../notebook_timeseries_cell_attributes.rb | 7 ---- .../notebook_toplist_cell_attributes.rb | 7 ---- .../models/notebook_update_data_attributes.rb | 7 ---- .../notebooks_response_data_attributes.rb | 7 ---- .../v1/models/organization_settings.rb | 7 ---- .../models/query_value_widget_definition.rb | 14 -------- .../v1/models/query_value_widget_request.rb | 14 -------- .../v1/models/scatter_plot_request.rb | 7 ---- .../models/scatter_plot_widget_definition.rb | 7 ---- .../v1/models/scatterplot_table_request.rb | 7 ---- .../models/service_map_widget_definition.rb | 7 ---- .../service_summary_widget_definition.rb | 21 ----------- .../v1/models/slo_correction.rb | 7 ---- .../slo_correction_response_attributes.rb | 7 ---- .../v1/models/slo_correction_update_data.rb | 7 ---- ...lo_correction_update_request_attributes.rb | 7 ---- .../v1/models/slo_history_response_data.rb | 14 -------- .../v1/models/slo_response_data.rb | 7 ---- .../v1/models/slo_widget_definition.rb | 14 -------- .../v1/models/sunburst_widget_definition.rb | 7 ---- .../v1/models/sunburst_widget_request.rb | 7 ---- .../v1/models/synthetics_api_test.rb | 14 -------- .../models/synthetics_api_test_result_data.rb | 7 ---- .../synthetics_api_test_result_failure.rb | 7 ---- .../models/synthetics_api_test_result_full.rb | 7 ---- .../synthetics_api_test_result_short.rb | 7 ---- .../models/synthetics_batch_details_data.rb | 7 ---- .../v1/models/synthetics_batch_result.rb | 28 --------------- .../v1/models/synthetics_browser_test.rb | 7 ---- .../synthetics_browser_test_result_failure.rb | 7 ---- .../synthetics_browser_test_result_full.rb | 7 ---- .../synthetics_browser_test_result_short.rb | 7 ---- .../v1/models/synthetics_parsing_options.rb | 7 ---- .../v1/models/synthetics_step.rb | 7 ---- .../v1/models/synthetics_step_detail.rb | 21 ----------- .../v1/models/synthetics_test_details.rb | 21 ----------- .../v1/models/synthetics_test_request.rb | 7 ---- .../synthetics_trigger_ci_test_run_result.rb | 7 ---- ...hetics_update_test_pause_status_payload.rb | 7 ---- .../v1/models/table_widget_definition.rb | 14 -------- .../v1/models/table_widget_request.rb | 21 ----------- .../v1/models/timeseries_widget_definition.rb | 14 -------- .../v1/models/timeseries_widget_request.rb | 14 -------- .../v1/models/toplist_widget_definition.rb | 7 ---- .../v1/models/toplist_widget_request.rb | 7 ---- .../v1/models/tree_map_widget_definition.rb | 21 ----------- .../v1/models/tree_map_widget_request.rb | 7 ---- .../v1/models/usage_custom_reports_data.rb | 7 ---- .../usage_specified_custom_reports_data.rb | 7 ---- .../v1/models/usage_top_avg_metrics_hour.rb | 7 ---- lib/datadog_api_client/v1/models/user.rb | 7 ---- .../v1/models/webhooks_integration.rb | 7 ---- .../webhooks_integration_update_request.rb | 7 ---- .../v1/models/widget_formula.rb | 7 ---- .../v1/models/widget_formula_limit.rb | 7 ---- .../v1/models/widget_request_style.rb | 14 -------- .../v1/models/widget_time.rb | 7 ---- ...cloud_workload_security_agent_rule_data.rb | 7 ---- .../v2/models/full_api_key.rb | 7 ---- .../v2/models/full_application_key.rb | 7 ---- ...ncident_field_attributes_multiple_value.rb | 7 ---- .../incident_field_attributes_single_value.rb | 7 ---- .../v2/models/incident_team_response_data.rb | 7 ---- lib/datadog_api_client/v2/models/log.rb | 7 ---- .../v2/models/logs_aggregate_sort.rb | 21 ----------- .../v2/models/logs_archive_attributes.rb | 7 ---- .../v2/models/logs_compute.rb | 7 ---- .../v2/models/logs_list_request.rb | 7 ---- .../v2/models/logs_metric_response_compute.rb | 7 ---- .../v2/models/logs_metric_response_data.rb | 7 ---- .../v2/models/logs_response_metadata.rb | 7 ---- lib/datadog_api_client/v2/models/metric.rb | 7 ---- .../v2/models/metric_all_tags.rb | 7 ---- .../v2/models/metric_distinct_volume.rb | 7 ---- .../models/metric_ingested_indexed_volume.rb | 7 ---- .../v2/models/metric_tag_configuration.rb | 7 ---- .../metric_tag_configuration_attributes.rb | 7 ---- .../v2/models/partial_api_key.rb | 7 ---- .../v2/models/partial_application_key.rb | 7 ---- .../v2/models/process_summary.rb | 7 ---- .../models/relationship_to_permission_data.rb | 7 ---- .../v2/models/relationship_to_role_data.rb | 7 ---- .../v2/models/role_create_data.rb | 7 ---- .../v2/models/security_filter.rb | 7 ---- .../v2/models/security_filter_attributes.rb | 7 ---- .../security_filter_update_attributes.rb | 7 ---- .../v2/models/security_monitoring_filter.rb | 7 ---- .../models/security_monitoring_rule_case.rb | 7 ---- ...security_monitoring_rule_create_payload.rb | 7 ---- ...urity_monitoring_rule_new_value_options.rb | 14 -------- .../security_monitoring_rule_options.rb | 28 --------------- .../models/security_monitoring_rule_query.rb | 7 ---- .../security_monitoring_rule_query_create.rb | 7 ---- .../security_monitoring_rule_response.rb | 7 ---- .../v2/models/security_monitoring_signal.rb | 7 ---- ...security_monitoring_signal_list_request.rb | 7 ---- lib/datadog_api_client/v2/models/user.rb | 7 ---- .../models/user_invitation_response_data.rb | 7 ---- 146 files changed, 4 insertions(+), 1382 deletions(-) diff --git a/.generator/src/generator/templates/model_generic.j2 b/.generator/src/generator/templates/model_generic.j2 index 39aaf123515..0258ea0f8e5 100644 --- a/.generator/src/generator/templates/model_generic.j2 +++ b/.generator/src/generator/templates/model_generic.j2 @@ -174,9 +174,10 @@ definition.minimum is defined or definition.pattern is defined or definition.maxItems is defined or - definition.minItems is defined or - definition.enum is defined - ) %} + definition.minItems is defined + ) %}{# FIXME add validation for enum + or + definition.enum is defined #} {%- if has_validation %} # Custom attribute writer method with validation 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 56ad7017340..b2715b8682a 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 @@ -169,13 +169,6 @@ def alert_id=(alert_id) @alert_id = alert_id end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 c4099973c9d..db5d81b1e16 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 @@ -174,20 +174,6 @@ def alert_id=(alert_id) @alert_id = alert_id end - # Custom attribute writer method with validation - # @param text_align [Object] Object to be assigned - # @!visibility private - def text_align=(text_align) - @text_align = text_align - end - - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 30f48cd83f7..0642564c6f5 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 @@ -122,13 +122,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param cell_display_mode [Object] Object to be assigned - # @!visibility private - def cell_display_mode=(cell_display_mode) - @cell_display_mode = cell_display_mode - end - # Custom attribute writer method with validation # @param name [Object] Object to be assigned # @!visibility private @@ -139,13 +132,6 @@ def name=(name) @name = name end - # Custom attribute writer method with validation - # @param order [Object] Object to be assigned - # @!visibility private - def order=(order) - @order = order - end - # 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 652d16263ae..3750296d96e 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter.rb @@ -100,13 +100,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param namespace [Object] Object to be assigned - # @!visibility private - def namespace=(namespace) - @namespace = namespace - end - # 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 5d46eb2dc24..8ba7db5a42f 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 @@ -109,13 +109,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param namespace [Object] Object to be assigned - # @!visibility private - def namespace=(namespace) - @namespace = namespace - end - # 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 017c7157800..5db75d502f8 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 @@ -100,13 +100,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param namespace [Object] Object to be assigned - # @!visibility private - def namespace=(namespace) - @namespace = namespace - end - # 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 3426b219de9..f93b9389747 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition.rb @@ -186,13 +186,6 @@ def requests=(requests) @requests = requests end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 118168e6cd2..538e70a84e2 100644 --- a/lib/datadog_api_client/v1/models/change_widget_request.rb +++ b/lib/datadog_api_client/v1/models/change_widget_request.rb @@ -248,41 +248,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param change_type [Object] Object to be assigned - # @!visibility private - def change_type=(change_type) - @change_type = change_type - end - - # Custom attribute writer method with validation - # @param compare_to [Object] Object to be assigned - # @!visibility private - def compare_to=(compare_to) - @compare_to = compare_to - end - - # Custom attribute writer method with validation - # @param order_by [Object] Object to be assigned - # @!visibility private - def order_by=(order_by) - @order_by = order_by - end - - # Custom attribute writer method with validation - # @param order_dir [Object] Object to be assigned - # @!visibility private - def order_dir=(order_dir) - @order_dir = order_dir - end - - # Custom attribute writer method with validation - # @param response_format [Object] Object to be assigned - # @!visibility private - def response_format=(response_format) - @response_format = response_format - end - # 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 8098976dd13..bdf092ea44a 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 @@ -210,13 +210,6 @@ def grouping=(grouping) @grouping = grouping end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!visibility private diff --git a/lib/datadog_api_client/v1/models/dashboard.rb b/lib/datadog_api_client/v1/models/dashboard.rb index 930840c0f7f..6e081cd432f 100644 --- a/lib/datadog_api_client/v1/models/dashboard.rb +++ b/lib/datadog_api_client/v1/models/dashboard.rb @@ -268,13 +268,6 @@ def layout_type=(layout_type) @layout_type = layout_type end - # Custom attribute writer method with validation - # @param reflow_type [Object] Object to be assigned - # @!visibility private - def reflow_type=(reflow_type) - @reflow_type = reflow_type - end - # Custom attribute writer method with validation # @param title [Object] Object to be assigned # @!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 80805606108..881304801ac 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb @@ -164,13 +164,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param layout_type [Object] Object to be assigned - # @!visibility private - def layout_type=(layout_type) - @layout_type = layout_type - end - # 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 e24c1a77a90..dcfc11e7599 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb @@ -224,13 +224,6 @@ def requests=(requests) @requests = requests end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!visibility private diff --git a/lib/datadog_api_client/v1/models/event.rb b/lib/datadog_api_client/v1/models/event.rb index 3d5c5632bc5..2f663cbd882 100644 --- a/lib/datadog_api_client/v1/models/event.rb +++ b/lib/datadog_api_client/v1/models/event.rb @@ -213,20 +213,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param alert_type [Object] Object to be assigned - # @!visibility private - def alert_type=(alert_type) - @alert_type = alert_type - end - - # Custom attribute writer method with validation - # @param priority [Object] Object to be assigned - # @!visibility private - def priority=(priority) - @priority = priority - end - # Custom attribute writer method with validation # @param text [Object] Object to be assigned # @!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 1a564aedccb..aaa03e4ffe4 100644 --- a/lib/datadog_api_client/v1/models/event_create_request.rb +++ b/lib/datadog_api_client/v1/models/event_create_request.rb @@ -217,20 +217,6 @@ def aggregation_key=(aggregation_key) @aggregation_key = aggregation_key end - # Custom attribute writer method with validation - # @param alert_type [Object] Object to be assigned - # @!visibility private - def alert_type=(alert_type) - @alert_type = alert_type - end - - # Custom attribute writer method with validation - # @param priority [Object] Object to be assigned - # @!visibility private - def priority=(priority) - @priority = priority - end - # Custom attribute writer method with validation # @param text [Object] Object to be assigned # @!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 9671400fb08..136cd13e22e 100644 --- a/lib/datadog_api_client/v1/models/event_create_response.rb +++ b/lib/datadog_api_client/v1/models/event_create_response.rb @@ -224,20 +224,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param alert_type [Object] Object to be assigned - # @!visibility private - def alert_type=(alert_type) - @alert_type = alert_type - end - - # Custom attribute writer method with validation - # @param priority [Object] Object to be assigned - # @!visibility private - def priority=(priority) - @priority = priority - end - # Custom attribute writer method with validation # @param text [Object] Object to be assigned # @!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 f0d3e070b80..af0f7243594 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 @@ -165,13 +165,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param event_size [Object] Object to be assigned - # @!visibility private - def event_size=(event_size) - @event_size = event_size - end - # Custom attribute writer method with validation # @param query [Object] Object to be assigned # @!visibility private @@ -182,13 +175,6 @@ def query=(query) @query = query end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 b9b5a37173b..b0274970ada 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 @@ -165,13 +165,6 @@ def query=(query) @query = query end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 f22e988f474..dbdec976d5c 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 @@ -125,13 +125,6 @@ def aggregation=(aggregation) @aggregation = aggregation end - # Custom attribute writer method with validation - # @param order [Object] Object to be assigned - # @!visibility private - def order=(order) - @order = order - end - # 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 e5c7969a19d..419835730d6 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 @@ -130,13 +130,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param aggregator [Object] Object to be assigned - # @!visibility private - def aggregator=(aggregator) - @aggregator = aggregator - end - # Custom attribute writer method with validation # @param data_source [Object] Object to be assigned # @!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 cb3cf60b24f..244e44875fc 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 @@ -179,13 +179,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param aggregator [Object] Object to be assigned - # @!visibility private - def aggregator=(aggregator) - @aggregator = aggregator - end - # Custom attribute writer method with validation # @param data_source [Object] Object to be assigned # @!visibility private @@ -216,13 +209,6 @@ def name=(name) @name = name end - # Custom attribute writer method with validation - # @param sort [Object] Object to be assigned - # @!visibility private - def sort=(sort) - @sort = sort - end - # 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 49038f050b0..9ab1a2eaf89 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 @@ -147,13 +147,6 @@ def text=(text) @text = text end - # Custom attribute writer method with validation - # @param text_align [Object] Object to be assigned - # @!visibility private - def text_align=(text_align) - @text_align = text_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 3b8fd0d0478..5b7aabaa87c 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb @@ -172,13 +172,6 @@ def requests=(requests) @requests = requests end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 79fa4b1c0ff..489a903df34 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb @@ -222,13 +222,6 @@ def style=(style) @style = style end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 983efb5761e..407a09a051c 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_request.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_request.rb @@ -149,13 +149,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param response_format [Object] Object to be assigned - # @!visibility private - def response_format=(response_format) - @response_format = response_format - end - # 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 0bbb172ed29..957ee6fe36f 100644 --- a/lib/datadog_api_client/v1/models/group_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/group_widget_definition.rb @@ -182,13 +182,6 @@ def layout_type=(layout_type) @layout_type = layout_type end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 93a8b35990d..7ec4fd91b94 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 @@ -221,13 +221,6 @@ def requests=(requests) @requests = requests end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 bff3e986ca1..0aea96ae447 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 @@ -215,13 +215,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param node_type [Object] Object to be assigned - # @!visibility private - def node_type=(node_type) - @node_type = node_type - end - # Custom attribute writer method with validation # @param requests [Object] Object to be assigned # @!visibility private @@ -232,13 +225,6 @@ def requests=(requests) @requests = requests end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 5760311e9f8..891b2e249c7 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 @@ -154,13 +154,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param usage_type [Object] Object to be assigned - # @!visibility private - def usage_type=(usage_type) - @usage_type = usage_type - end - # 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 b1b578a6289..3916c279a4b 100644 --- a/lib/datadog_api_client/v1/models/image_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/image_widget_definition.rb @@ -179,27 +179,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param horizontal_align [Object] Object to be assigned - # @!visibility private - def horizontal_align=(horizontal_align) - @horizontal_align = horizontal_align - end - - # Custom attribute writer method with validation - # @param margin [Object] Object to be assigned - # @!visibility private - def margin=(margin) - @margin = margin - end - - # Custom attribute writer method with validation - # @param sizing [Object] Object to be assigned - # @!visibility private - def sizing=(sizing) - @sizing = sizing - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!visibility private @@ -220,13 +199,6 @@ def url=(url) @url = url end - # Custom attribute writer method with validation - # @param vertical_align [Object] Object to be assigned - # @!visibility private - def vertical_align=(vertical_align) - @vertical_align = vertical_align - end - # 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 76167dbb96c..e60daffcbf1 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 @@ -191,13 +191,6 @@ def requests=(requests) @requests = requests end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 6d6144d12c7..e33a9e4890c 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 @@ -209,20 +209,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param message_display [Object] Object to be assigned - # @!visibility private - def message_display=(message_display) - @message_display = message_display - end - - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 91420ca7fb9..33d88f0ca2b 100644 --- a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb @@ -222,13 +222,6 @@ def target=(target) @target = target end - # Custom attribute writer method with validation - # @param target_format [Object] Object to be assigned - # @!visibility private - def target_format=(target_format) - @target_format = target_format - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 9266c8f380d..a5664317a9d 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request.rb @@ -159,13 +159,6 @@ def limit=(limit) @limit = limit end - # Custom attribute writer method with validation - # @param sort [Object] Object to be assigned - # @!visibility private - def sort=(sort) - @sort = sort - end - # Custom attribute writer method with validation # @param time [Object] Object to be assigned # @!visibility private diff --git a/lib/datadog_api_client/v1/models/monitor.rb b/lib/datadog_api_client/v1/models/monitor.rb index 9d3b565d53a..5e1985b97b4 100644 --- a/lib/datadog_api_client/v1/models/monitor.rb +++ b/lib/datadog_api_client/v1/models/monitor.rb @@ -249,13 +249,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param overall_state [Object] Object to be assigned - # @!visibility private - def overall_state=(overall_state) - @overall_state = overall_state - end - # Custom attribute writer method with validation # @param priority [Object] Object to be assigned # @!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 6d2fcb79629..5f071db8930 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 @@ -125,13 +125,6 @@ def aggregation=(aggregation) @aggregation = aggregation end - # Custom attribute writer method with validation - # @param order [Object] Object to be assigned - # @!visibility private - def order=(order) - @order = order - end - # 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 2d42c427bad..6c87ab487de 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 @@ -148,13 +148,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param status [Object] Object to be assigned - # @!visibility private - def status=(status) - @status = status - end - # 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 04948647e63..c6a9d6bd22e 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_result.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_result.rb @@ -211,20 +211,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param status [Object] Object to be assigned - # @!visibility private - def status=(status) - @status = status - end - - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 1a9849f8cd9..91e1a9fb126 100644 --- a/lib/datadog_api_client/v1/models/monitor_state_group.rb +++ b/lib/datadog_api_client/v1/models/monitor_state_group.rb @@ -136,13 +136,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param status [Object] Object to be assigned - # @!visibility private - def status=(status) - @status = status - end - # 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 1fbab9ab1ba..074152627be 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 @@ -209,20 +209,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param color_preference [Object] Object to be assigned - # @!visibility private - def color_preference=(color_preference) - @color_preference = color_preference - end - - # Custom attribute writer method with validation - # @param display_format [Object] Object to be assigned - # @!visibility private - def display_format=(display_format) - @display_format = display_format - end - # Custom attribute writer method with validation # @param query [Object] Object to be assigned # @!visibility private @@ -233,27 +219,6 @@ def query=(query) @query = query end - # Custom attribute writer method with validation - # @param sort [Object] Object to be assigned - # @!visibility private - def sort=(sort) - @sort = sort - end - - # Custom attribute writer method with validation - # @param summary_type [Object] Object to be assigned - # @!visibility private - def summary_type=(summary_type) - @summary_type = summary_type - end - - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 74a724950df..47c820e7640 100644 --- a/lib/datadog_api_client/v1/models/monitor_update_request.rb +++ b/lib/datadog_api_client/v1/models/monitor_update_request.rb @@ -239,13 +239,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param overall_state [Object] Object to be assigned - # @!visibility private - def overall_state=(overall_state) - @overall_state = overall_state - end - # Custom attribute writer method with validation # @param priority [Object] Object to be assigned # @!visibility private @@ -259,13 +252,6 @@ def priority=(priority) @priority = priority end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 f200f852800..350fc764980 100644 --- a/lib/datadog_api_client/v1/models/note_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/note_widget_definition.rb @@ -194,20 +194,6 @@ def content=(content) @content = content end - # Custom attribute writer method with validation - # @param text_align [Object] Object to be assigned - # @!visibility private - def text_align=(text_align) - @text_align = text_align - end - - # Custom attribute writer method with validation - # @param tick_edge [Object] Object to be assigned - # @!visibility private - def tick_edge=(tick_edge) - @tick_edge = tick_edge - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!visibility private @@ -218,13 +204,6 @@ def type=(type) @type = type end - # Custom attribute writer method with validation - # @param vertical_align [Object] Object to be assigned - # @!visibility private - def vertical_align=(vertical_align) - @vertical_align = vertical_align - end - # 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 8453459bde5..702e77b5777 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 @@ -177,13 +177,6 @@ def name=(name) @name = name end - # Custom attribute writer method with validation - # @param status [Object] Object to be assigned - # @!visibility private - def status=(status) - @status = status - end - # Custom attribute writer method with validation # @param time [Object] Object to be assigned # @!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 634e5578ab9..4082e164636 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 @@ -135,13 +135,6 @@ def definition=(definition) @definition = definition end - # Custom attribute writer method with validation - # @param graph_size [Object] Object to be assigned - # @!visibility private - def graph_size=(graph_size) - @graph_size = graph_size - end - # 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 c3cdc9f31b0..ba221cccb46 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 @@ -133,13 +133,6 @@ def definition=(definition) @definition = definition end - # Custom attribute writer method with validation - # @param graph_size [Object] Object to be assigned - # @!visibility private - def graph_size=(graph_size) - @graph_size = graph_size - end - # 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 ec8ae8c1bf0..584ba1d2f93 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 @@ -124,13 +124,6 @@ def definition=(definition) @definition = definition end - # Custom attribute writer method with validation - # @param graph_size [Object] Object to be assigned - # @!visibility private - def graph_size=(graph_size) - @graph_size = graph_size - end - # 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 7e26e71ceb6..8840dc924d7 100644 --- a/lib/datadog_api_client/v1/models/notebook_metadata.rb +++ b/lib/datadog_api_client/v1/models/notebook_metadata.rb @@ -114,13 +114,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 ee502f8e9f6..0f92abfc0bf 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 @@ -204,13 +204,6 @@ def name=(name) @name = name end - # Custom attribute writer method with validation - # @param status [Object] Object to be assigned - # @!visibility private - def status=(status) - @status = status - end - # Custom attribute writer method with validation # @param time [Object] Object to be assigned # @!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 33c4158d5d1..9563fece4cd 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 @@ -133,13 +133,6 @@ def definition=(definition) @definition = definition end - # Custom attribute writer method with validation - # @param graph_size [Object] Object to be assigned - # @!visibility private - def graph_size=(graph_size) - @graph_size = graph_size - end - # 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 b66ba01f545..aa1581a909f 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 @@ -133,13 +133,6 @@ def definition=(definition) @definition = definition end - # Custom attribute writer method with validation - # @param graph_size [Object] Object to be assigned - # @!visibility private - def graph_size=(graph_size) - @graph_size = graph_size - end - # 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 7f9edea3df3..c91abc4ecd1 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 @@ -177,13 +177,6 @@ def name=(name) @name = name end - # Custom attribute writer method with validation - # @param status [Object] Object to be assigned - # @!visibility private - def status=(status) - @status = status - end - # Custom attribute writer method with validation # @param time [Object] Object to be assigned # @!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 f76115c63c0..aedb16df2a9 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 @@ -186,13 +186,6 @@ def name=(name) @name = name end - # Custom attribute writer method with validation - # @param status [Object] Object to be assigned - # @!visibility private - def status=(status) - @status = status - end - # 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 216bd42eb5b..3aec6e8ef40 100644 --- a/lib/datadog_api_client/v1/models/organization_settings.rb +++ b/lib/datadog_api_client/v1/models/organization_settings.rb @@ -175,13 +175,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param saml_autocreate_access_role [Object] Object to be assigned - # @!visibility private - def saml_autocreate_access_role=(saml_autocreate_access_role) - @saml_autocreate_access_role = saml_autocreate_access_role - end - # 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 653af10940b..353831c4cc5 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 @@ -219,20 +219,6 @@ def requests=(requests) @requests = requests end - # Custom attribute writer method with validation - # @param text_align [Object] Object to be assigned - # @!visibility private - def text_align=(text_align) - @text_align = text_align - end - - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 5b1728c22d0..c94d5e04557 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 @@ -223,20 +223,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param aggregator [Object] Object to be assigned - # @!visibility private - def aggregator=(aggregator) - @aggregator = aggregator - end - - # Custom attribute writer method with validation - # @param response_format [Object] Object to be assigned - # @!visibility private - def response_format=(response_format) - @response_format = response_format - end - # 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 ae9cd9a8733..61d46738fc6 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_request.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_request.rb @@ -172,13 +172,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param aggregator [Object] Object to be assigned - # @!visibility private - def aggregator=(aggregator) - @aggregator = aggregator - end - # 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 89b1d50b9fb..d9aceab46c9 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 @@ -196,13 +196,6 @@ def requests=(requests) @requests = requests end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 2afb49e14c7..12f00c43a7d 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_table_request.rb @@ -113,13 +113,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param response_format [Object] Object to be assigned - # @!visibility private - def response_format=(response_format) - @response_format = response_format - end - # 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 501d4a4a945..29af211fcb0 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 @@ -190,13 +190,6 @@ def service=(service) @service = service end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 81a7e8be9d8..aa09f3b79ac 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 @@ -244,13 +244,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param display_format [Object] Object to be assigned - # @!visibility private - def display_format=(display_format) - @display_format = display_format - end - # Custom attribute writer method with validation # @param env [Object] Object to be assigned # @!visibility private @@ -271,13 +264,6 @@ def service=(service) @service = service end - # Custom attribute writer method with validation - # @param size_format [Object] Object to be assigned - # @!visibility private - def size_format=(size_format) - @size_format = size_format - end - # Custom attribute writer method with validation # @param span_name [Object] Object to be assigned # @!visibility private @@ -288,13 +274,6 @@ def span_name=(span_name) @span_name = span_name end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 1765ebb8edb..1ab0cbc7743 100644 --- a/lib/datadog_api_client/v1/models/slo_correction.rb +++ b/lib/datadog_api_client/v1/models/slo_correction.rb @@ -111,13 +111,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 a91895158c6..a69fe7587f6 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 @@ -194,13 +194,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param category [Object] Object to be assigned - # @!visibility private - def category=(category) - @category = category - end - # 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 51a74898747..5db86b0092a 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 @@ -102,13 +102,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 8e882f20281..67ef75cf7fd 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 @@ -146,13 +146,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param category [Object] Object to be assigned - # @!visibility private - def category=(category) - @category = category - end - # 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 65a2634cc37..42096a3f68b 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 @@ -189,20 +189,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - - # Custom attribute writer method with validation - # @param type_id [Object] Object to be assigned - # @!visibility private - def type_id=(type_id) - @type_id = type_id - end - # 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 23c6982f7ff..2ffd18e2104 100644 --- a/lib/datadog_api_client/v1/models/slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_response_data.rb @@ -246,13 +246,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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_widget_definition.rb b/lib/datadog_api_client/v1/models/slo_widget_definition.rb index 199dca3b8bd..74e2fbf7135 100644 --- a/lib/datadog_api_client/v1/models/slo_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/slo_widget_definition.rb @@ -186,13 +186,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!visibility private @@ -203,13 +196,6 @@ def type=(type) @type = type end - # Custom attribute writer method with validation - # @param view_mode [Object] Object to be assigned - # @!visibility private - def view_mode=(view_mode) - @view_mode = view_mode - end - # Custom attribute writer method with validation # @param view_type [Object] Object to be assigned # @!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 751b8ad959b..638057252da 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb @@ -194,13 +194,6 @@ def requests=(requests) @requests = requests end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 2976f3ed8e5..6e713a7196f 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_request.rb @@ -203,13 +203,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param response_format [Object] Object to be assigned - # @!visibility private - def response_format=(response_format) - @response_format = response_format - end - # 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 7d7c4bdb933..0388009d573 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test.rb @@ -249,20 +249,6 @@ def options=(options) @options = options end - # Custom attribute writer method with validation - # @param status [Object] Object to be assigned - # @!visibility private - def status=(status) - @status = status - end - - # Custom attribute writer method with validation - # @param subtype [Object] Object to be assigned - # @!visibility private - def subtype=(subtype) - @subtype = subtype - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 31d5c6fe0ce..8f9910a84bc 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 @@ -164,13 +164,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param event_type [Object] Object to be assigned - # @!visibility private - def event_type=(event_type) - @event_type = event_type - end - # 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 9ca9455b60b..8e8bd33ac53 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 @@ -100,13 +100,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param code [Object] Object to be assigned - # @!visibility private - def code=(code) - @code = code - end - # 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 140a18f64dc..ea4f0d9fc53 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 @@ -148,13 +148,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param status [Object] Object to be assigned - # @!visibility private - def status=(status) - @status = status - end - # 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 5069b873100..7a2188ed851 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 @@ -130,13 +130,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param status [Object] Object to be assigned - # @!visibility private - def status=(status) - @status = status - end - # 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 8eddead7148..2bced7264e9 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 @@ -111,13 +111,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param status [Object] Object to be assigned - # @!visibility private - def status=(status) - @status = status - end - # 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 8a5a3feab3c..426bd47fd7e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb @@ -172,34 +172,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param device [Object] Object to be assigned - # @!visibility private - def device=(device) - @device = device - end - - # Custom attribute writer method with validation - # @param execution_rule [Object] Object to be assigned - # @!visibility private - def execution_rule=(execution_rule) - @execution_rule = execution_rule - end - - # Custom attribute writer method with validation - # @param status [Object] Object to be assigned - # @!visibility private - def status=(status) - @status = status - end - - # Custom attribute writer method with validation - # @param test_type [Object] Object to be assigned - # @!visibility private - def test_type=(test_type) - @test_type = test_type - end - # 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 0d3175b32a6..adf22a3dc6d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb @@ -250,13 +250,6 @@ def options=(options) @options = options end - # Custom attribute writer method with validation - # @param status [Object] Object to be assigned - # @!visibility private - def status=(status) - @status = status - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 ed4e64f3299..a935aa50e64 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 @@ -100,13 +100,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param code [Object] Object to be assigned - # @!visibility private - def code=(code) - @code = code - end - # 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 484e2c3d577..574469b6440 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 @@ -148,13 +148,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param status [Object] Object to be assigned - # @!visibility private - def status=(status) - @status = status - end - # 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 a54bc25cb25..70229dc5edc 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 @@ -130,13 +130,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param status [Object] Object to be assigned - # @!visibility private - def status=(status) - @status = status - end - # 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 16d8df57dc9..c98b76689f3 100644 --- a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb @@ -118,13 +118,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 eea8dadb8b9..b529ec74dde 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step.rb @@ -127,13 +127,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 1f89b59cac7..30bea905a10 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_detail.rb @@ -244,27 +244,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param check_type [Object] Object to be assigned - # @!visibility private - def check_type=(check_type) - @check_type = check_type - end - - # Custom attribute writer method with validation - # @param playing_tab [Object] Object to be assigned - # @!visibility private - def playing_tab=(playing_tab) - @playing_tab = playing_tab - end - - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 4bfaccc9b8e..a48c1223b45 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details.rb @@ -207,27 +207,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param status [Object] Object to be assigned - # @!visibility private - def status=(status) - @status = status - end - - # Custom attribute writer method with validation - # @param subtype [Object] Object to be assigned - # @!visibility private - def subtype=(subtype) - @subtype = subtype - end - - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 28e075674c2..3b564d624c3 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request.rb @@ -293,13 +293,6 @@ def dns_server_port=(dns_server_port) @dns_server_port = dns_server_port end - # Custom attribute writer method with validation - # @param method [Object] Object to be assigned - # @!visibility private - def method=(method) - @method = method - end - # Custom attribute writer method with validation # @param number_of_packets [Object] Object to be assigned # @!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 709f31ac55f..37dfec9a861 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 @@ -118,13 +118,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param device [Object] Object to be assigned - # @!visibility private - def device=(device) - @device = device - end - # 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 3a5dd189dfb..3b244d72a16 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 @@ -92,13 +92,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param new_status [Object] Object to be assigned - # @!visibility private - def new_status=(new_status) - @new_status = new_status - end - # 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 4fdf6bc9ce5..59916b96309 100644 --- a/lib/datadog_api_client/v1/models/table_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/table_widget_definition.rb @@ -168,13 +168,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param has_search_bar [Object] Object to be assigned - # @!visibility private - def has_search_bar=(has_search_bar) - @has_search_bar = has_search_bar - end - # Custom attribute writer method with validation # @param requests [Object] Object to be assigned # @!visibility private @@ -185,13 +178,6 @@ def requests=(requests) @requests = requests end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 af2b620cfa8..fa9f25a4875 100644 --- a/lib/datadog_api_client/v1/models/table_widget_request.rb +++ b/lib/datadog_api_client/v1/models/table_widget_request.rb @@ -261,27 +261,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param aggregator [Object] Object to be assigned - # @!visibility private - def aggregator=(aggregator) - @aggregator = aggregator - end - - # Custom attribute writer method with validation - # @param order [Object] Object to be assigned - # @!visibility private - def order=(order) - @order = order - end - - # Custom attribute writer method with validation - # @param response_format [Object] Object to be assigned - # @!visibility private - def response_format=(response_format) - @response_format = response_format - end - # 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 f2ce0a11e99..c279b17d83d 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb @@ -241,13 +241,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param legend_layout [Object] Object to be assigned - # @!visibility private - def legend_layout=(legend_layout) - @legend_layout = legend_layout - end - # Custom attribute writer method with validation # @param requests [Object] Object to be assigned # @!visibility private @@ -261,13 +254,6 @@ def requests=(requests) @requests = requests end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 b4168eb4b0b..35ca00ebd4f 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb @@ -241,20 +241,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param display_type [Object] Object to be assigned - # @!visibility private - def display_type=(display_type) - @display_type = display_type - end - - # Custom attribute writer method with validation - # @param response_format [Object] Object to be assigned - # @!visibility private - def response_format=(response_format) - @response_format = response_format - end - # 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 6f18286bb50..2f9bdc3b62e 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_definition.rb @@ -169,13 +169,6 @@ def requests=(requests) @requests = requests end - # Custom attribute writer method with validation - # @param title_align [Object] Object to be assigned - # @!visibility private - def title_align=(title_align) - @title_align = title_align - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 dcea0b129b9..602b3659281 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_request.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_request.rb @@ -237,13 +237,6 @@ def conditional_formats=(conditional_formats) @conditional_formats = conditional_formats end - # Custom attribute writer method with validation - # @param response_format [Object] Object to be assigned - # @!visibility private - def response_format=(response_format) - @response_format = response_format - end - # 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 a65477b40ea..eb97e18e729 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 @@ -158,20 +158,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param color_by [Object] Object to be assigned - # @!visibility private - def color_by=(color_by) - @color_by = color_by - end - - # Custom attribute writer method with validation - # @param group_by [Object] Object to be assigned - # @!visibility private - def group_by=(group_by) - @group_by = group_by - end - # Custom attribute writer method with validation # @param requests [Object] Object to be assigned # @!visibility private @@ -188,13 +174,6 @@ def requests=(requests) @requests = requests end - # Custom attribute writer method with validation - # @param size_by [Object] Object to be assigned - # @!visibility private - def size_by=(size_by) - @size_by = size_by - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!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 303cc7d4a56..acefcfedc66 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 @@ -122,13 +122,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param response_format [Object] Object to be assigned - # @!visibility private - def response_format=(response_format) - @response_format = response_format - end - # 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 6ec3fec46d8..ddc87ae95e1 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 @@ -111,13 +111,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 409f74eb0d3..f49cfe5515d 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 @@ -111,13 +111,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 b66f822b5a6..8e3500ce836 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 @@ -118,13 +118,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param metric_category [Object] Object to be assigned - # @!visibility private - def metric_category=(metric_category) - @metric_category = metric_category - end - # 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 7f29ba0dbc0..6f27f0018cf 100644 --- a/lib/datadog_api_client/v1/models/user.rb +++ b/lib/datadog_api_client/v1/models/user.rb @@ -147,13 +147,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param access_role [Object] Object to be assigned - # @!visibility private - def access_role=(access_role) - @access_role = access_role - end - # 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 eacfd7e7c4c..9a9fc4ce7fe 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration.rb @@ -145,13 +145,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param encode_as [Object] Object to be assigned - # @!visibility private - def encode_as=(encode_as) - @encode_as = encode_as - end - # Custom attribute writer method with validation # @param name [Object] Object to be assigned # @!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 2381b0f57b2..0018b78b958 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 @@ -138,13 +138,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param encode_as [Object] Object to be assigned - # @!visibility private - def encode_as=(encode_as) - @encode_as = encode_as - end - # 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 fa29c3502bc..593b27a36bd 100644 --- a/lib/datadog_api_client/v1/models/widget_formula.rb +++ b/lib/datadog_api_client/v1/models/widget_formula.rb @@ -133,13 +133,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param cell_display_mode [Object] Object to be assigned - # @!visibility private - def cell_display_mode=(cell_display_mode) - @cell_display_mode = cell_display_mode - end - # Custom attribute writer method with validation # @param formula [Object] Object to be assigned # @!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 7beb7563227..dcafc8753f4 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_limit.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_limit.rb @@ -102,13 +102,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param order [Object] Object to be assigned - # @!visibility private - def order=(order) - @order = order - end - # 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 66797bea2dd..70e50f845a2 100644 --- a/lib/datadog_api_client/v1/models/widget_request_style.rb +++ b/lib/datadog_api_client/v1/models/widget_request_style.rb @@ -109,20 +109,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param line_type [Object] Object to be assigned - # @!visibility private - def line_type=(line_type) - @line_type = line_type - end - - # Custom attribute writer method with validation - # @param line_width [Object] Object to be assigned - # @!visibility private - def line_width=(line_width) - @line_width = line_width - end - # 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 6d5340b486a..fd9b5dc6f3a 100644 --- a/lib/datadog_api_client/v1/models/widget_time.rb +++ b/lib/datadog_api_client/v1/models/widget_time.rb @@ -91,13 +91,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param live_span [Object] Object to be assigned - # @!visibility private - def live_span=(live_span) - @live_span = live_span - end - # 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 f007a9696f0..c952b6134a8 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 @@ -111,13 +111,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 a7287cc4b0f..f48bf9f934e 100644 --- a/lib/datadog_api_client/v2/models/full_api_key.rb +++ b/lib/datadog_api_client/v2/models/full_api_key.rb @@ -120,13 +120,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 e3b9a054397..26ea6bc8ddc 100644 --- a/lib/datadog_api_client/v2/models/full_application_key.rb +++ b/lib/datadog_api_client/v2/models/full_application_key.rb @@ -120,13 +120,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 762ef73cf57..3301c8bf58f 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 @@ -105,13 +105,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 b5736b31c9a..ec2373dd969 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 @@ -103,13 +103,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 c281e003b0e..ba7699d0ca1 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 @@ -120,13 +120,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 b68bb509614..c8ad5541d76 100644 --- a/lib/datadog_api_client/v2/models/log.rb +++ b/lib/datadog_api_client/v2/models/log.rb @@ -111,13 +111,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 29d9665f93e..d4811cab9f6 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb @@ -120,27 +120,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param aggregation [Object] Object to be assigned - # @!visibility private - def aggregation=(aggregation) - @aggregation = aggregation - end - - # Custom attribute writer method with validation - # @param order [Object] Object to be assigned - # @!visibility private - def order=(order) - @order = order - end - - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 55ee97ea94c..caa861b6bdd 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb @@ -170,13 +170,6 @@ def query=(query) @query = query end - # Custom attribute writer method with validation - # @param state [Object] Object to be assigned - # @!visibility private - def state=(state) - @state = state - end - # 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 4a81a64a1c3..6c2b2cc9168 100644 --- a/lib/datadog_api_client/v2/models/logs_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_compute.rb @@ -135,13 +135,6 @@ def aggregation=(aggregation) @aggregation = aggregation end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 5b89f9332cd..300fedb967a 100644 --- a/lib/datadog_api_client/v2/models/logs_list_request.rb +++ b/lib/datadog_api_client/v2/models/logs_list_request.rb @@ -119,13 +119,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param sort [Object] Object to be assigned - # @!visibility private - def sort=(sort) - @sort = sort - end - # 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 cf59d601bf2..d8d694fc047 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 @@ -100,13 +100,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param aggregation_type [Object] Object to be assigned - # @!visibility private - def aggregation_type=(aggregation_type) - @aggregation_type = aggregation_type - end - # 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 2292c71a82c..45c674229fb 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 @@ -111,13 +111,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 d9ed1fa2b3d..bd8f39a2aa3 100644 --- a/lib/datadog_api_client/v2/models/logs_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/logs_response_metadata.rb @@ -130,13 +130,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param status [Object] Object to be assigned - # @!visibility private - def status=(status) - @status = status - end - # 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 63ecdcba5ad..e9b48e24520 100644 --- a/lib/datadog_api_client/v2/models/metric.rb +++ b/lib/datadog_api_client/v2/models/metric.rb @@ -102,13 +102,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 e77688559dc..410fefd9639 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags.rb @@ -111,13 +111,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 a9988414af6..69314866af0 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume.rb @@ -111,13 +111,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 d80c7127463..f2cba42b410 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 @@ -111,13 +111,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 e76fcdb17f9..15a84986e5d 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration.rb @@ -111,13 +111,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 7f3f63936e3..ef430f315f3 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 @@ -158,13 +158,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param metric_type [Object] Object to be assigned - # @!visibility private - def metric_type=(metric_type) - @metric_type = metric_type - end - # 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 520d764d46a..a32ddec48d9 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key.rb @@ -120,13 +120,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 beed3f89d9a..4aa9164c272 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key.rb @@ -120,13 +120,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 534772a5b14..dc98569a608 100644 --- a/lib/datadog_api_client/v2/models/process_summary.rb +++ b/lib/datadog_api_client/v2/models/process_summary.rb @@ -111,13 +111,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 5d08b08b503..17945c14630 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 @@ -102,13 +102,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 4181a0ec219..a0bb7dc09b9 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 @@ -102,13 +102,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 336ac5c1c66..c0550934684 100644 --- a/lib/datadog_api_client/v2/models/role_create_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_data.rb @@ -125,13 +125,6 @@ def attributes=(attributes) @attributes = attributes end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 26317cfb524..3d8f7e3f2e8 100644 --- a/lib/datadog_api_client/v2/models/security_filter.rb +++ b/lib/datadog_api_client/v2/models/security_filter.rb @@ -111,13 +111,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 496470d02e7..1cb22b79668 100644 --- a/lib/datadog_api_client/v2/models/security_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_attributes.rb @@ -151,13 +151,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param filtered_data_type [Object] Object to be assigned - # @!visibility private - def filtered_data_type=(filtered_data_type) - @filtered_data_type = filtered_data_type - end - # Custom attribute writer method with validation # @param version [Object] Object to be assigned # @!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 0218912e505..97aeacfabd2 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 @@ -142,13 +142,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param filtered_data_type [Object] Object to be assigned - # @!visibility private - def filtered_data_type=(filtered_data_type) - @filtered_data_type = filtered_data_type - end - # Custom attribute writer method with validation # @param version [Object] Object to be assigned # @!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 3cedad195a6..f501e9ac611 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_filter.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_filter.rb @@ -100,13 +100,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param action [Object] Object to be assigned - # @!visibility private - def action=(action) - @action = action - end - # 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 9f71725672b..4386ea90c5b 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 @@ -121,13 +121,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param status [Object] Object to be assigned - # @!visibility private - def status=(status) - @status = status - end - # 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_create_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb index 12279ad108b..30739642096 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb @@ -264,13 +264,6 @@ def queries=(queries) @queries = queries end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 acd11306895..3d0d3cfe169 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 @@ -101,20 +101,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param forget_after [Object] Object to be assigned - # @!visibility private - def forget_after=(forget_after) - @forget_after = forget_after - end - - # Custom attribute writer method with validation - # @param learning_duration [Object] Object to be assigned - # @!visibility private - def learning_duration=(learning_duration) - @learning_duration = learning_duration - end - # 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 876a3e7d284..f1d3f5cddf5 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 @@ -130,34 +130,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param detection_method [Object] Object to be assigned - # @!visibility private - def detection_method=(detection_method) - @detection_method = detection_method - end - - # Custom attribute writer method with validation - # @param evaluation_window [Object] Object to be assigned - # @!visibility private - def evaluation_window=(evaluation_window) - @evaluation_window = evaluation_window - end - - # Custom attribute writer method with validation - # @param keep_alive [Object] Object to be assigned - # @!visibility private - def keep_alive=(keep_alive) - @keep_alive = keep_alive - end - - # Custom attribute writer method with validation - # @param max_signal_duration [Object] Object to be assigned - # @!visibility private - def max_signal_duration=(max_signal_duration) - @max_signal_duration = max_signal_duration - end - # 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.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb index 7e33969e428..31ced7e16c8 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb @@ -141,13 +141,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param aggregation [Object] Object to be assigned - # @!visibility private - def aggregation=(aggregation) - @aggregation = aggregation - end - # 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_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb index 69081b4286a..94791402cae 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb @@ -145,13 +145,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param aggregation [Object] Object to be assigned - # @!visibility private - def aggregation=(aggregation) - @aggregation = aggregation - end - # Custom attribute writer method with validation # @param query [Object] Object to be assigned # @!visibility private diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb index 5b41feed8e9..42905e79770 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb @@ -243,13 +243,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 f10c4868ca9..97230fa1842 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal.rb @@ -112,13 +112,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 89a6fe704aa..2d498ec8977 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 @@ -109,13 +109,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param sort [Object] Object to be assigned - # @!visibility private - def sort=(sort) - @sort = sort - end - # 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 34163f0fc1c..061e3b73ea9 100644 --- a/lib/datadog_api_client/v2/models/user.rb +++ b/lib/datadog_api_client/v2/models/user.rb @@ -120,13 +120,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # 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 b358463d1cd..98f182d81d1 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 @@ -111,13 +111,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param type [Object] Object to be assigned - # @!visibility private - def type=(type) - @type = type - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private From e181276b062adc6e92236bd6bbd4d4a1a665f28c Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Mon, 7 Feb 2022 13:25:55 +0100 Subject: [PATCH 20/23] use pip to install --- .pre-commit-config.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7d5195558a7..f773a42729d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,9 +23,7 @@ repos: - id: generator name: generator language: python - entry: bash -c "cd .generator && poetry install && poetry run python -m generator -i ./schemas/v1/openapi.yaml -o ../lib/ && poetry run python -m generator -i schemas/v2/openapi.yaml -o ../lib/" + entry: bash -c "cd .generator && python -m pip install . && python -m generator -i ./schemas/v1/openapi.yaml -o ../lib/ && poetry run python -m generator -i schemas/v2/openapi.yaml -o ../lib/" files: "^.generator/.*" stages: [manual] pass_filenames: false - additional_dependencies: - - "poetry" From cca4bcacda9de437f50aef68d84d0f13cab8b44d Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Thu, 17 Feb 2022 15:54:57 +0100 Subject: [PATCH 21/23] use python always --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 05d9904dc48..d783dc9b4f0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,7 +31,7 @@ repos: - id: generator name: generator language: python - entry: bash -c "cd .generator && python -m pip install . && python -m generator -i ./schemas/v1/openapi.yaml -o ../lib/ && poetry run python -m generator -i schemas/v2/openapi.yaml -o ../lib/" + entry: bash -c "cd .generator && python -m pip install . && python -m generator -i ./schemas/v1/openapi.yaml -o ../lib/ && python -m generator -i schemas/v2/openapi.yaml -o ../lib/" files: "^.generator/.*" stages: [manual] pass_filenames: false From a21cd45e7f9844a6e8076bf3d95a1c401461d4e1 Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Thu, 17 Feb 2022 16:04:49 +0100 Subject: [PATCH 22/23] split generation --- .pre-commit-config.yaml | 15 +++++++++++---- Makefile | 3 ++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d783dc9b4f0..dc954fca726 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,10 +28,17 @@ repos: # When updating the version of prettier, make sure to check the pre-commit file # And keep the `entry` here up to date https://github.com/pre-commit/mirrors-prettier/blob/master/.pre-commit-hooks.yaml - prettier@2.5.1 - - id: generator - name: generator + - id: generator-v1 + name: generator-v1 language: python - entry: bash -c "cd .generator && python -m pip install . && python -m generator -i ./schemas/v1/openapi.yaml -o ../lib/ && python -m generator -i schemas/v2/openapi.yaml -o ../lib/" - files: "^.generator/.*" + entry: bash -c "cd .generator && python -m pip install . && python -m generator -i ./schemas/v1/openapi.yaml -o ../lib/" + files: "^.generator/(config|schemas/v1|src|poetry.lock|pyproject.toml)" + stages: [manual] + pass_filenames: false + - id: generator-v2 + name: generator-v2 + language: python + entry: bash -c "cd .generator && python -m pip install . && python -m generator -i schemas/v2/openapi.yaml -o ../lib/" + files: "^.generator/(config|schemas/v2|src|poetry.lock|pyproject.toml)" stages: [manual] pass_filenames: false diff --git a/Makefile b/Makefile index 966147e7709..c6f66d59616 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ .PHONY: all all: @rm -rf ./lib/v1 ./lib/v2 - @pre-commit run --all-files --hook-stage=manual generator || true + @pre-commit run --all-files --hook-stage=manual generator-v1 || true + @pre-commit run --all-files --hook-stage=manual generator-v2 || true @pre-commit run --all-files --hook-stage=manual docs || echo "modified files" From a8078c5ffa919219e8285366d6be27dde69a576a Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Thu, 17 Feb 2022 16:38:40 +0100 Subject: [PATCH 23/23] simplified pre-commit configuration --- .pre-commit-config.yaml | 4 ++-- pyproject.toml | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 pyproject.toml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dc954fca726..725827f349e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,14 +31,14 @@ repos: - id: generator-v1 name: generator-v1 language: python - entry: bash -c "cd .generator && python -m pip install . && python -m generator -i ./schemas/v1/openapi.yaml -o ../lib/" + entry: python -m generator -i ./.generator/schemas/v1/openapi.yaml -o ./lib/ files: "^.generator/(config|schemas/v1|src|poetry.lock|pyproject.toml)" stages: [manual] pass_filenames: false - id: generator-v2 name: generator-v2 language: python - entry: bash -c "cd .generator && python -m pip install . && python -m generator -i schemas/v2/openapi.yaml -o ../lib/" + entry: python -m generator -i ./.generator/schemas/v2/openapi.yaml -o ./lib/ files: "^.generator/(config|schemas/v2|src|poetry.lock|pyproject.toml)" stages: [manual] pass_filenames: false diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000000..aff070c256a --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[tool.poetry.dependencies] +generator = { path = "./generator/", develop = false } + +[build-system] +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api" \ No newline at end of file