From eecaa4e03efc6298c083a0e69a7acb735a1531c3 Mon Sep 17 00:00:00 2001
From: Kevin Zou <17015060+nkzou@users.noreply.github.com>
Date: Fri, 9 Feb 2024 11:19:36 -0500
Subject: [PATCH] Add builder-like pattern to API instances and models (#9)
---
.generator/src/generator/cli.py | 1 +
.generator/src/generator/openapi.py | 13 +-
.generator/src/generator/templates/api.j2 | 58 +-
.../generator/templates/function_mappings.j2 | 22 +-
.../src/generator/templates/model_oneof.j2 | 2 +-
.../src/generator/templates/model_simple.j2 | 22 +-
src/datadogV1/api/api_authentication.rs | 2 -
src/datadogV1/api/api_aws_integration.rs | 228 +-
src/datadogV1/api/api_aws_logs_integration.rs | 87 +-
src/datadogV1/api/api_azure_integration.rs | 66 +-
src/datadogV1/api/api_dashboard_lists.rs | 74 +-
src/datadogV1/api/api_dashboards.rs | 311 +-
src/datadogV1/api/api_downtimes.rs | 130 +-
src/datadogV1/api/api_events.rs | 121 +-
src/datadogV1/api/api_gcp_integration.rs | 50 +-
src/datadogV1/api/api_hosts.rs | 155 +-
src/datadogV1/api/api_ip_ranges.rs | 2 -
src/datadogV1/api/api_key_management.rs | 138 +-
src/datadogV1/api/api_logs.rs | 56 +-
src/datadogV1/api/api_logs_indexes.rs | 73 +-
src/datadogV1/api/api_logs_pipelines.rs | 92 +-
src/datadogV1/api/api_metrics.rs | 177 +-
src/datadogV1/api/api_monitors.rs | 391 ++-
src/datadogV1/api/api_notebooks.rs | 179 +-
src/datadogV1/api/api_organizations.rs | 94 +-
.../api/api_pager_duty_integration.rs | 69 +-
src/datadogV1/api/api_security_monitoring.rs | 63 +-
src/datadogV1/api/api_service_checks.rs | 16 +-
...api_service_level_objective_corrections.rs | 109 +-
.../api/api_service_level_objectives.rs | 324 +-
src/datadogV1/api/api_slack_integration.rs | 105 +-
src/datadogV1/api/api_snapshots.rs | 91 +-
src/datadogV1/api/api_synthetics.rs | 561 ++-
src/datadogV1/api/api_tags.rs | 175 +-
src/datadogV1/api/api_usage_metering.rs | 1491 +++++---
src/datadogV1/api/api_users.rs | 71 +-
src/datadogV1/api/api_webhooks_integration.rs | 144 +-
.../model_add_signal_to_incident_request.rs | 10 +
.../model_alert_graph_widget_definition.rs | 22 +-
.../model_alert_value_widget_definition.rs | 30 +
src/datadogV1/model/model_api_key.rs | 21 +
.../model/model_api_key_list_response.rs | 6 +
src/datadogV1/model/model_api_key_response.rs | 8 +-
.../model_apm_stats_query_column_type.rs | 18 +
.../model/model_apm_stats_query_definition.rs | 13 +
src/datadogV1/model/model_application_key.rs | 16 +
.../model_application_key_list_response.rs | 9 +
.../model/model_application_key_response.rs | 8 +-
...odel_authentication_validation_response.rs | 6 +
src/datadogV1/model/model_aws_account.rs | 59 +
.../model_aws_account_create_response.rs | 6 +
.../model/model_aws_account_delete_request.rs | 16 +
.../model/model_aws_account_list_response.rs | 6 +
..._aws_event_bridge_account_configuration.rs | 19 +
.../model_aws_event_bridge_create_request.rs | 21 +
.../model_aws_event_bridge_create_response.rs | 24 +
.../model_aws_event_bridge_delete_request.rs | 16 +
.../model_aws_event_bridge_delete_response.rs | 9 +
.../model_aws_event_bridge_list_response.rs | 14 +
.../model/model_aws_event_bridge_source.rs | 11 +
.../model/model_aws_logs_async_error.rs | 11 +
.../model/model_aws_logs_async_response.rs | 11 +
src/datadogV1/model/model_aws_logs_lambda.rs | 6 +
.../model/model_aws_logs_list_response.rs | 16 +
.../model_aws_logs_list_services_response.rs | 11 +
src/datadogV1/model/model_aws_tag_filter.rs | 11 +
.../model_aws_tag_filter_create_request.rs | 16 +
.../model_aws_tag_filter_delete_request.rs | 11 +
.../model_aws_tag_filter_list_response.rs | 6 +
src/datadogV1/model/model_azure_account.rs | 66 +
.../model/model_canceled_downtimes_ids.rs | 6 +
.../model/model_change_widget_definition.rs | 30 +-
.../model/model_change_widget_request.rs | 125 +-
...model_check_can_delete_monitor_response.rs | 12 +-
..._check_can_delete_monitor_response_data.rs | 6 +
.../model_check_can_delete_slo_response.rs | 16 +-
...odel_check_can_delete_slo_response_data.rs | 6 +
.../model_check_status_widget_definition.rs | 37 +-
src/datadogV1/model/model_creator.rs | 16 +
src/datadogV1/model/model_dashboard.rs | 93 +
.../model/model_dashboard_delete_response.rs | 6 +
.../model/model_dashboard_global_time.rs | 9 +
src/datadogV1/model/model_dashboard_list.rs | 37 +-
.../model_dashboard_list_delete_response.rs | 6 +
.../model_dashboard_list_list_response.rs | 9 +
.../model/model_dashboard_summary.rs | 9 +
.../model_dashboard_summary_definition.rs | 49 +
.../model_dashboard_template_variable.rs | 24 +
...odel_dashboard_template_variable_preset.rs | 14 +
...ashboard_template_variable_preset_value.rs | 19 +
.../model_delete_shared_dashboard_response.rs | 6 +
src/datadogV1/model/model_deleted_monitor.rs | 6 +
.../model/model_distribution_points_series.rs | 15 +
.../model_distribution_widget_definition.rs | 69 +-
.../model_distribution_widget_request.rs | 109 +-
.../model/model_distribution_widget_x_axis.rs | 21 +
.../model/model_distribution_widget_y_axis.rs | 26 +
src/datadogV1/model/model_downtime.rs | 117 +-
src/datadogV1/model/model_downtime_child.rs | 107 +-
.../model/model_downtime_recurrence.rs | 31 +
src/datadogV1/model/model_event.rs | 66 +
.../model/model_event_create_request.rs | 45 +
.../model/model_event_create_response.rs | 13 +-
.../model/model_event_list_response.rs | 11 +
src/datadogV1/model/model_event_response.rs | 13 +-
.../model_event_stream_widget_definition.rs | 32 +-
.../model_event_timeline_widget_definition.rs | 27 +-
...n_apm_dependency_stats_query_definition.rs | 15 +
...ion_apm_resource_stats_query_definition.rs | 25 +
...nd_function_cloud_cost_query_definition.rs | 5 +
...ula_and_function_event_query_definition.rs | 32 +-
...function_event_query_definition_compute.rs | 10 +
...rmula_and_function_event_query_group_by.rs | 15 +-
..._and_function_event_query_group_by_sort.rs | 10 +
...la_and_function_metric_query_definition.rs | 8 +
...a_and_function_process_query_definition.rs | 33 +
...rmula_and_function_slo_query_definition.rs | 26 +
.../model_free_text_widget_definition.rs | 15 +
.../model/model_funnel_widget_definition.rs | 22 +-
.../model/model_funnel_widget_request.rs | 4 +-
src/datadogV1/model/model_gcp_account.rs | 81 +
.../model/model_geomap_widget_definition.rs | 38 +-
.../model/model_geomap_widget_request.rs | 63 +-
src/datadogV1/model/model_graph_snapshot.rs | 16 +
.../model/model_group_widget_definition.rs | 25 +
.../model/model_heat_map_widget_definition.rs | 52 +-
.../model/model_heat_map_widget_request.rs | 105 +-
src/datadogV1/model/model_host.rs | 78 +-
.../model/model_host_list_response.rs | 16 +
src/datadogV1/model/model_host_map_request.rs | 74 +-
.../model/model_host_map_widget_definition.rs | 67 +-
...del_host_map_widget_definition_requests.rs | 15 +-
.../model_host_map_widget_definition_style.rs | 21 +
src/datadogV1/model/model_host_meta.rs | 81 +-
.../model/model_host_meta_install_method.rs | 16 +
src/datadogV1/model/model_host_metrics.rs | 16 +
.../model/model_host_mute_response.rs | 21 +
.../model/model_host_mute_settings.rs | 16 +
src/datadogV1/model/model_host_tags.rs | 11 +
src/datadogV1/model/model_host_totals.rs | 11 +
.../model_hourly_usage_attribution_body.rs | 52 +
...model_hourly_usage_attribution_metadata.rs | 11 +-
...del_hourly_usage_attribution_pagination.rs | 6 +
...model_hourly_usage_attribution_response.rs | 19 +-
src/datadogV1/model/model_http_log_item.rs | 20 +
.../model/model_image_widget_definition.rs | 41 +
.../model/model_intake_payload_accepted.rs | 6 +
.../model/model_ip_prefixes_agents.rs | 11 +
src/datadogV1/model/model_ip_prefixes_api.rs | 11 +
src/datadogV1/model/model_ip_prefixes_apm.rs | 11 +
.../model/model_ip_prefixes_global.rs | 11 +
src/datadogV1/model/model_ip_prefixes_logs.rs | 11 +
.../model/model_ip_prefixes_orchestrator.rs | 11 +
.../model/model_ip_prefixes_process.rs | 11 +
.../model_ip_prefixes_remote_configuration.rs | 11 +
.../model/model_ip_prefixes_synthetics.rs | 27 +
...p_prefixes_synthetics_private_locations.rs | 11 +
.../model/model_ip_prefixes_webhooks.rs | 11 +
src/datadogV1/model/model_ip_ranges.rs | 100 +-
.../model/model_list_stream_compute_items.rs | 5 +
.../model/model_list_stream_query.rs | 38 +-
.../model_list_stream_widget_definition.rs | 32 +-
.../model/model_list_stream_widget_request.rs | 4 +-
src/datadogV1/model/model_log.rs | 13 +-
src/datadogV1/model/model_log_content.rs | 34 +
.../model/model_log_query_definition.rs | 39 +-
.../model_log_query_definition_group_by.rs | 15 +-
...odel_log_query_definition_group_by_sort.rs | 5 +
.../model_log_stream_widget_definition.rs | 79 +-
src/datadogV1/model/model_logs_api_error.rs | 16 +
.../model/model_logs_api_error_response.rs | 8 +-
.../model/model_logs_arithmetic_processor.rs | 15 +
.../model/model_logs_attribute_remapper.rs | 35 +
.../model/model_logs_by_retention.rs | 26 +-
.../model_logs_by_retention_monthly_usage.rs | 14 +
.../model_logs_by_retention_org_usage.rs | 9 +
.../model/model_logs_by_retention_orgs.rs | 9 +
.../model/model_logs_category_processor.rs | 10 +
.../model_logs_category_processor_category.rs | 13 +-
.../model/model_logs_date_remapper.rs | 10 +
src/datadogV1/model/model_logs_exclusion.rs | 12 +-
.../model/model_logs_exclusion_filter.rs | 5 +
src/datadogV1/model/model_logs_filter.rs | 6 +
.../model/model_logs_geo_ip_parser.rs | 10 +
src/datadogV1/model/model_logs_grok_parser.rs | 19 +-
.../model/model_logs_grok_parser_rules.rs | 5 +
src/datadogV1/model/model_logs_index.rs | 27 +-
.../model/model_logs_index_list_response.rs | 6 +
.../model/model_logs_index_update_request.rs | 27 +-
.../model/model_logs_list_request.rs | 29 +-
.../model/model_logs_list_request_time.rs | 5 +
.../model/model_logs_list_response.rs | 16 +
.../model/model_logs_lookup_processor.rs | 15 +
.../model/model_logs_message_remapper.rs | 10 +
src/datadogV1/model/model_logs_pipeline.rs | 32 +-
.../model/model_logs_pipeline_processor.rs | 22 +-
.../model/model_logs_query_compute.rs | 10 +
.../model_logs_retention_agg_sum_usage.rs | 21 +
.../model/model_logs_retention_sum_usage.rs | 21 +
.../model/model_logs_service_remapper.rs | 10 +
.../model/model_logs_status_remapper.rs | 10 +
.../model_logs_string_builder_processor.rs | 15 +
.../model/model_logs_trace_remapper.rs | 15 +
src/datadogV1/model/model_logs_url_parser.rs | 15 +
.../model/model_logs_user_agent_parser.rs | 15 +
.../model/model_matching_downtime.rs | 15 +
src/datadogV1/model/model_metric_metadata.rs | 36 +
.../model/model_metric_search_response.rs | 11 +-
.../model_metric_search_response_results.rs | 6 +
.../model/model_metrics_list_response.rs | 11 +
.../model/model_metrics_query_metadata.rs | 69 +
.../model/model_metrics_query_response.rs | 49 +
.../model/model_metrics_query_unit.rs | 26 +
src/datadogV1/model/model_monitor.rs | 87 +-
...ula_and_function_event_query_definition.rs | 27 +-
...function_event_query_definition_compute.rs | 10 +
...rmula_and_function_event_query_group_by.rs | 15 +-
..._and_function_event_query_group_by_sort.rs | 10 +
.../model_monitor_group_search_response.rs | 29 +-
...el_monitor_group_search_response_counts.rs | 17 +
.../model_monitor_group_search_result.rs | 36 +
src/datadogV1/model/model_monitor_options.rs | 219 +-
.../model_monitor_options_aggregation.rs | 16 +
.../model_monitor_options_custom_schedule.rs | 9 +
...itor_options_custom_schedule_recurrence.rs | 16 +
...odel_monitor_options_scheduling_options.rs | 21 +-
...ns_scheduling_options_evaluation_window.rs | 16 +
.../model/model_monitor_search_count_item.rs | 11 +
.../model/model_monitor_search_response.rs | 29 +-
.../model_monitor_search_response_counts.rs | 33 +
.../model_monitor_search_response_metadata.rs | 21 +
.../model/model_monitor_search_result.rs | 71 +-
...odel_monitor_search_result_notification.rs | 11 +
src/datadogV1/model/model_monitor_state.rs | 9 +
.../model/model_monitor_state_group.rs | 31 +
...model_monitor_summary_widget_definition.rs | 78 +
.../model_monitor_threshold_window_options.rs | 11 +
.../model/model_monitor_thresholds.rs | 31 +
.../model/model_monitor_update_request.rs | 90 +-
.../model_monthly_usage_attribution_body.rs | 49 +-
...odel_monthly_usage_attribution_metadata.rs | 19 +-
...el_monthly_usage_attribution_pagination.rs | 6 +
...odel_monthly_usage_attribution_response.rs | 19 +-
.../model_monthly_usage_attribution_values.rs | 601 ++++
.../model/model_note_widget_definition.rs | 43 +
.../model/model_notebook_absolute_time.rs | 5 +
src/datadogV1/model/model_notebook_author.rs | 46 +
.../model_notebook_cell_create_request.rs | 4 +-
.../model/model_notebook_cell_response.rs | 4 +-
.../model_notebook_cell_update_request.rs | 4 +-
.../model/model_notebook_create_data.rs | 4 +-
.../model_notebook_create_data_attributes.rs | 16 +-
.../model/model_notebook_create_request.rs | 4 +-
...l_notebook_distribution_cell_attributes.rs | 23 +-
...model_notebook_heat_map_cell_attributes.rs | 23 +-
...del_notebook_log_stream_cell_attributes.rs | 16 +-
...model_notebook_markdown_cell_attributes.rs | 4 +-
.../model/model_notebook_metadata.rs | 19 +
.../model/model_notebook_response.rs | 8 +-
.../model/model_notebook_response_data.rs | 4 +-
...model_notebook_response_data_attributes.rs | 33 +-
...del_notebook_timeseries_cell_attributes.rs | 23 +-
.../model_notebook_toplist_cell_attributes.rs | 23 +-
.../model/model_notebook_update_data.rs | 4 +-
.../model_notebook_update_data_attributes.rs | 16 +-
.../model/model_notebook_update_request.rs | 4 +-
.../model/model_notebooks_response.rs | 16 +-
.../model/model_notebooks_response_data.rs | 4 +-
...odel_notebooks_response_data_attributes.rs | 44 +-
.../model/model_notebooks_response_meta.rs | 8 +-
.../model/model_notebooks_response_page.rs | 11 +
.../model/model_org_downgraded_response.rs | 6 +
src/datadogV1/model/model_organization.rs | 58 +-
.../model/model_organization_billing.rs | 6 +
.../model/model_organization_create_body.rs | 19 +-
.../model_organization_create_response.rs | 29 +-
.../model/model_organization_list_response.rs | 6 +
.../model/model_organization_response.rs | 8 +-
.../model/model_organization_settings.rs | 71 +-
.../model/model_organization_settings_saml.rs | 6 +
..._settings_saml_autocreate_users_domains.rs | 11 +
...ation_settings_saml_idp_initiated_login.rs | 6 +
..._organization_settings_saml_strict_mode.rs | 6 +
.../model/model_organization_subscription.rs | 6 +
src/datadogV1/model/model_pagination.rs | 11 +
...el_powerpack_template_variable_contents.rs | 5 +
.../model_powerpack_template_variables.rs | 17 +
.../model_powerpack_widget_definition.rs | 30 +-
.../model/model_process_query_definition.rs | 15 +
.../model_query_value_widget_definition.rs | 60 +-
.../model/model_query_value_widget_request.rs | 115 +-
...l_reference_table_logs_lookup_processor.rs | 10 +
.../model/model_response_meta_attributes.rs | 8 +-
.../model_run_workflow_widget_definition.rs | 38 +-
.../model/model_scatter_plot_request.rs | 82 +-
.../model_scatter_plot_widget_definition.rs | 53 +-
...scatter_plot_widget_definition_requests.rs | 22 +-
.../model/model_scatterplot_table_request.rs | 25 +
.../model/model_scatterplot_widget_formula.rs | 5 +
.../model_search_service_level_objective.rs | 11 +-
...arch_service_level_objective_attributes.rs | 93 +-
...del_search_service_level_objective_data.rs | 21 +-
src/datadogV1/model/model_search_slo_query.rs | 16 +
.../model/model_search_slo_response.rs | 22 +-
.../model/model_search_slo_response_data.rs | 16 +-
...del_search_slo_response_data_attributes.rs | 19 +-
...rch_slo_response_data_attributes_facets.rs | 65 +
...ponse_data_attributes_facets_object_int.rs | 11 +
...se_data_attributes_facets_object_string.rs | 11 +
.../model/model_search_slo_response_links.rs | 26 +
.../model/model_search_slo_response_meta.rs | 11 +-
.../model_search_slo_response_meta_page.rs | 41 +
.../model/model_search_slo_threshold.rs | 15 +
...odel_selectable_template_variable_items.rs | 21 +
src/datadogV1/model/model_series.rs | 20 +
src/datadogV1/model/model_service_check.rs | 10 +
.../model/model_service_level_objective.rs | 72 +-
.../model_service_level_objective_request.rs | 45 +-
.../model_service_map_widget_definition.rs | 23 +
...model_service_summary_widget_definition.rs | 65 +-
src/datadogV1/model/model_shared_dashboard.rs | 58 +-
.../model/model_shared_dashboard_author.rs | 11 +
.../model/model_shared_dashboard_invites.rs | 14 +-
...el_shared_dashboard_invites_data_object.rs | 4 +-
...ashboard_invites_data_object_attributes.rs | 31 +
.../model_shared_dashboard_invites_meta.rs | 11 +-
...odel_shared_dashboard_invites_meta_page.rs | 6 +
.../model_shared_dashboard_update_request.rs | 30 +-
...ed_dashboard_update_request_global_time.rs | 9 +
.../model_signal_assignee_update_request.rs | 5 +
.../model_signal_state_update_request.rs | 18 +
.../model/model_slack_integration_channel.rs | 16 +-
...model_slack_integration_channel_display.rs | 21 +
.../model/model_slo_bulk_delete_response.rs | 13 +-
.../model_slo_bulk_delete_response_data.rs | 11 +
src/datadogV1/model/model_slo_correction.rs | 21 +-
.../model/model_slo_correction_create_data.rs | 10 +-
.../model_slo_correction_create_request.rs | 8 +-
...lo_correction_create_request_attributes.rs | 25 +
.../model_slo_correction_list_response.rs | 13 +-
.../model/model_slo_correction_response.rs | 8 +-
...odel_slo_correction_response_attributes.rs | 69 +-
...correction_response_attributes_modifier.rs | 16 +
.../model/model_slo_correction_update_data.rs | 16 +-
.../model_slo_correction_update_request.rs | 8 +-
...lo_correction_update_request_attributes.rs | 36 +
src/datadogV1/model/model_slo_creator.rs | 16 +
.../model/model_slo_delete_response.rs | 11 +
.../model/model_slo_history_metrics.rs | 13 +-
.../model/model_slo_history_metrics_series.rs | 10 +-
...del_slo_history_metrics_series_metadata.rs | 34 +
...lo_history_metrics_series_metadata_unit.rs | 31 +
.../model/model_slo_history_monitor.rs | 79 +
.../model/model_slo_history_response.rs | 16 +-
.../model/model_slo_history_response_data.rs | 61 +-
.../model/model_slo_history_response_error.rs | 6 +
.../model/model_slo_history_sli_data.rs | 79 +
.../model/model_slo_list_response.rs | 24 +-
.../model/model_slo_list_response_metadata.rs | 11 +-
.../model_slo_list_response_metadata_page.rs | 11 +
.../model/model_slo_list_widget_definition.rs | 15 +
.../model/model_slo_list_widget_query.rs | 10 +
.../model/model_slo_list_widget_request.rs | 4 +-
.../model/model_slo_overall_statuses.rs | 51 +-
.../model_slo_raw_error_budget_remaining.rs | 11 +
src/datadogV1/model/model_slo_response.rs | 13 +-
.../model/model_slo_response_data.rs | 93 +-
src/datadogV1/model/model_slo_status.rs | 41 +-
src/datadogV1/model/model_slo_threshold.rs | 15 +
.../model/model_slo_widget_definition.rs | 48 +
src/datadogV1/model/model_split_config.rs | 12 +-
.../model_split_graph_widget_definition.rs | 25 +-
src/datadogV1/model/model_split_sort.rs | 7 +-
...model_successful_signal_update_response.rs | 6 +
.../model/model_sunburst_widget_definition.rs | 42 +-
...sunburst_widget_legend_inline_automatic.rs | 10 +
.../model/model_sunburst_widget_request.rs | 109 +-
.../model/model_synthetics_api_step.rs | 32 +-
.../model/model_synthetics_api_test.rs | 39 +-
.../model/model_synthetics_api_test_config.rs | 29 +-
.../model_synthetics_api_test_result_data.rs | 67 +-
...odel_synthetics_api_test_result_failure.rs | 14 +
.../model_synthetics_api_test_result_full.rs | 49 +-
...l_synthetics_api_test_result_full_check.rs | 4 +-
.../model_synthetics_api_test_result_short.rs | 34 +-
...synthetics_api_test_result_short_result.rs | 13 +-
...l_synthetics_assertion_json_path_target.rs | 15 +-
...etics_assertion_json_path_target_target.rs | 16 +
.../model_synthetics_assertion_target.rs | 13 +
...odel_synthetics_assertion_x_path_target.rs | 15 +-
...nthetics_assertion_x_path_target_target.rs | 16 +
.../model_synthetics_basic_auth_digest.rs | 8 +
.../model/model_synthetics_basic_auth_ntlm.rs | 20 +
...odel_synthetics_basic_auth_oauth_client.rs | 23 +
.../model_synthetics_basic_auth_oauth_rop.rs | 33 +
.../model_synthetics_basic_auth_sigv4.rs | 15 +
.../model/model_synthetics_basic_auth_web.rs | 8 +
.../model/model_synthetics_batch_details.rs | 11 +-
.../model_synthetics_batch_details_data.rs | 24 +-
.../model/model_synthetics_batch_result.rs | 57 +
.../model/model_synthetics_browser_error.rs | 5 +
.../model/model_synthetics_browser_test.rs | 36 +-
.../model_synthetics_browser_test_config.rs | 25 +-
...del_synthetics_browser_test_result_data.rs | 71 +-
..._synthetics_browser_test_result_failure.rs | 14 +
...del_synthetics_browser_test_result_full.rs | 49 +-
...nthetics_browser_test_result_full_check.rs | 4 +-
...el_synthetics_browser_test_result_short.rs | 34 +-
...hetics_browser_test_result_short_result.rs | 28 +-
...el_synthetics_browser_test_rum_settings.rs | 10 +
.../model_synthetics_browser_variable.rs | 20 +
.../model_synthetics_ci_batch_metadata.rs | 18 +-
.../model_synthetics_ci_batch_metadata_ci.rs | 21 +-
.../model_synthetics_ci_batch_metadata_git.rs | 11 +
...l_synthetics_ci_batch_metadata_pipeline.rs | 6 +
...l_synthetics_ci_batch_metadata_provider.rs | 6 +
.../model/model_synthetics_ci_test.rs | 80 +-
.../model/model_synthetics_ci_test_body.rs | 6 +
.../model/model_synthetics_config_variable.rs | 20 +
.../model/model_synthetics_core_web_vitals.rs | 16 +
.../model_synthetics_delete_tests_payload.rs | 6 +
.../model_synthetics_delete_tests_response.rs | 9 +
.../model/model_synthetics_deleted_test.rs | 11 +
.../model/model_synthetics_device.rs | 5 +
...cs_get_api_test_latest_results_response.rs | 14 +
...et_browser_test_latest_results_response.rs | 14 +
.../model/model_synthetics_global_variable.rs | 34 +-
...l_synthetics_global_variable_attributes.rs | 6 +
...odel_synthetics_global_variable_options.rs | 12 +-
...tics_global_variable_parse_test_options.rs | 20 +-
...thetics_global_variable_totp_parameters.rs | 11 +
.../model_synthetics_global_variable_value.rs | 21 +-
...nthetics_list_global_variables_response.rs | 9 +
.../model_synthetics_list_tests_response.rs | 9 +
.../model/model_synthetics_location.rs | 11 +
.../model/model_synthetics_locations.rs | 9 +
.../model/model_synthetics_parsing_options.rs | 34 +-
.../model/model_synthetics_patch_test_body.rs | 9 +
.../model_synthetics_patch_test_operation.rs | 19 +
.../model_synthetics_private_location.rs | 25 +-
...tics_private_location_creation_response.rs | 32 +-
...ion_creation_response_result_encryption.rs | 11 +
...el_synthetics_private_location_metadata.rs | 6 +
...del_synthetics_private_location_secrets.rs | 21 +-
...private_location_secrets_authentication.rs | 11 +
...vate_location_secrets_config_decryption.rs | 6 +
.../model/model_synthetics_ssl_certificate.rs | 71 +-
...model_synthetics_ssl_certificate_issuer.rs | 31 +
...odel_synthetics_ssl_certificate_subject.rs | 36 +
src/datadogV1/model/model_synthetics_step.rs | 39 +
.../model/model_synthetics_step_detail.rs | 101 +
.../model/model_synthetics_test_ci_options.rs | 9 +
.../model/model_synthetics_test_config.rs | 32 +-
.../model/model_synthetics_test_details.rs | 81 +-
.../model/model_synthetics_test_options.rs | 139 +-
...synthetics_test_options_monitor_options.rs | 6 +
.../model_synthetics_test_options_retry.rs | 11 +
...odel_synthetics_test_options_scheduling.rs | 14 +
...etics_test_options_scheduling_timeframe.rs | 16 +
.../model/model_synthetics_test_request.rs | 157 +-
...del_synthetics_test_request_certificate.rs | 21 +-
...ynthetics_test_request_certificate_item.rs | 16 +
.../model_synthetics_test_request_proxy.rs | 5 +
.../model/model_synthetics_timing.rs | 46 +
...del_synthetics_trigger_ci_test_location.rs | 11 +
...l_synthetics_trigger_ci_test_run_result.rs | 21 +
...el_synthetics_trigger_ci_tests_response.rs | 27 +
.../model/model_synthetics_trigger_test.rs | 10 +-
...hetics_update_test_pause_status_payload.rs | 9 +
.../model/model_synthetics_variable_parser.rs | 5 +
.../model/model_table_widget_definition.rs | 38 +-
.../model/model_table_widget_request.rs | 141 +-
src/datadogV1/model/model_tag_to_hosts.rs | 6 +
.../model/model_timeseries_background.rs | 7 +-
.../model_timeseries_widget_definition.rs | 80 +-
...odel_timeseries_widget_expression_alias.rs | 5 +
.../model/model_timeseries_widget_request.rs | 127 +-
.../model/model_toplist_widget_definition.rs | 37 +-
.../model/model_toplist_widget_request.rs | 117 +-
.../model/model_toplist_widget_style.rs | 13 +-
.../model_topology_map_widget_definition.rs | 23 +
src/datadogV1/model/model_topology_query.rs | 19 +
src/datadogV1/model/model_topology_request.rs | 16 +-
.../model/model_tree_map_widget_definition.rs | 41 +-
.../model/model_tree_map_widget_request.rs | 27 +
.../model/model_usage_analyzed_logs_hour.rs | 21 +
.../model_usage_analyzed_logs_response.rs | 9 +
...model_usage_attribution_aggregates_body.rs | 16 +
.../model/model_usage_attribution_body.rs | 41 +-
.../model/model_usage_attribution_metadata.rs | 19 +-
.../model_usage_attribution_pagination.rs | 26 +
.../model/model_usage_attribution_response.rs | 19 +-
.../model/model_usage_attribution_values.rs | 261 ++
.../model/model_usage_audit_logs_hour.rs | 21 +
.../model/model_usage_audit_logs_response.rs | 6 +
.../model_usage_billable_summary_body.rs | 36 +
.../model_usage_billable_summary_hour.rs | 48 +-
.../model_usage_billable_summary_keys.rs | 889 ++++-
.../model_usage_billable_summary_response.rs | 9 +
.../model/model_usage_ci_visibility_hour.rs | 36 +
.../model_usage_ci_visibility_response.rs | 9 +
..._cloud_security_posture_management_hour.rs | 51 +
...ud_security_posture_management_response.rs | 9 +
.../model_usage_custom_reports_attributes.rs | 26 +
.../model/model_usage_custom_reports_data.rs | 21 +-
.../model/model_usage_custom_reports_meta.rs | 8 +-
.../model/model_usage_custom_reports_page.rs | 6 +
.../model_usage_custom_reports_response.rs | 16 +-
src/datadogV1/model/model_usage_cws_hour.rs | 26 +
.../model/model_usage_cws_response.rs | 6 +
src/datadogV1/model/model_usage_dbm_hour.rs | 26 +
.../model/model_usage_dbm_response.rs | 6 +
.../model/model_usage_fargate_hour.rs | 36 +
.../model/model_usage_fargate_response.rs | 6 +
src/datadogV1/model/model_usage_host_hour.rs | 86 +
.../model/model_usage_hosts_response.rs | 6 +
.../model_usage_incident_management_hour.rs | 21 +
...odel_usage_incident_management_response.rs | 9 +
.../model/model_usage_indexed_spans_hour.rs | 21 +
.../model_usage_indexed_spans_response.rs | 9 +
.../model/model_usage_ingested_spans_hour.rs | 21 +
.../model_usage_ingested_spans_response.rs | 9 +
src/datadogV1/model/model_usage_io_t_hour.rs | 21 +
.../model/model_usage_io_t_response.rs | 6 +
.../model/model_usage_lambda_hour.rs | 26 +
.../model/model_usage_lambda_response.rs | 6 +
.../model/model_usage_logs_by_index_hour.rs | 36 +
.../model_usage_logs_by_index_response.rs | 9 +
.../model_usage_logs_by_retention_hour.rs | 31 +
.../model_usage_logs_by_retention_response.rs | 9 +
src/datadogV1/model/model_usage_logs_hour.rs | 56 +
.../model/model_usage_logs_response.rs | 6 +
.../model/model_usage_network_flows_hour.rs | 21 +
.../model_usage_network_flows_response.rs | 9 +
.../model/model_usage_network_hosts_hour.rs | 21 +
.../model_usage_network_hosts_response.rs | 9 +
.../model/model_usage_online_archive_hour.rs | 21 +
.../model_usage_online_archive_response.rs | 9 +
.../model/model_usage_profiling_hour.rs | 31 +
.../model/model_usage_profiling_response.rs | 6 +
.../model/model_usage_rum_sessions_hour.rs | 46 +
.../model_usage_rum_sessions_response.rs | 9 +
.../model/model_usage_rum_units_hour.rs | 26 +
.../model/model_usage_rum_units_response.rs | 6 +
src/datadogV1/model/model_usage_sds_hour.rs | 41 +
.../model/model_usage_sds_response.rs | 6 +
src/datadogV1/model/model_usage_snmp_hour.rs | 21 +
.../model/model_usage_snmp_response.rs | 6 +
...age_specified_custom_reports_attributes.rs | 31 +
...del_usage_specified_custom_reports_data.rs | 21 +-
...del_usage_specified_custom_reports_meta.rs | 11 +-
...del_usage_specified_custom_reports_page.rs | 6 +
...usage_specified_custom_reports_response.rs | 21 +-
.../model/model_usage_summary_date.rs | 613 ++++
.../model/model_usage_summary_date_org.rs | 637 ++++
.../model/model_usage_summary_response.rs | 687 +++-
.../model/model_usage_synthetics_api_hour.rs | 21 +
.../model_usage_synthetics_api_response.rs | 9 +
.../model_usage_synthetics_browser_hour.rs | 21 +
...model_usage_synthetics_browser_response.rs | 9 +
.../model/model_usage_synthetics_hour.rs | 21 +
.../model/model_usage_synthetics_response.rs | 6 +
.../model/model_usage_timeseries_hour.rs | 31 +
.../model/model_usage_timeseries_response.rs | 6 +
.../model/model_usage_top_avg_metrics_hour.rs | 24 +
.../model_usage_top_avg_metrics_metadata.rs | 21 +-
.../model_usage_top_avg_metrics_pagination.rs | 16 +
.../model_usage_top_avg_metrics_response.rs | 19 +-
src/datadogV1/model/model_user.rs | 36 +
.../model/model_user_disable_response.rs | 6 +
.../model/model_user_list_response.rs | 6 +
src/datadogV1/model/model_user_response.rs | 8 +-
.../model/model_webhooks_integration.rs | 18 +
...ks_integration_custom_variable_response.rs | 5 +
...egration_custom_variable_update_request.rs | 16 +
...del_webhooks_integration_update_request.rs | 29 +
src/datadogV1/model/model_widget.rs | 16 +-
src/datadogV1/model/model_widget_axis.rs | 26 +
.../model/model_widget_conditional_format.rs | 30 +
.../model/model_widget_custom_link.rs | 21 +
src/datadogV1/model/model_widget_event.rs | 5 +
src/datadogV1/model/model_widget_formula.rs | 35 +-
.../model/model_widget_formula_limit.rs | 11 +
.../model/model_widget_formula_style.rs | 11 +
src/datadogV1/model/model_widget_layout.rs | 5 +
src/datadogV1/model/model_widget_marker.rs | 15 +
.../model/model_widget_request_style.rs | 16 +
src/datadogV1/model/model_widget_style.rs | 6 +
src/datadogV1/model/model_widget_time.rs | 6 +
.../api/api_apm_retention_filters.rs | 93 +-
src/datadogV2/api/api_audit.rs | 96 +-
src/datadogV2/api/api_auth_n_mappings.rs | 126 +-
.../api/api_ci_visibility_pipelines.rs | 129 +-
src/datadogV2/api/api_ci_visibility_tests.rs | 111 +-
.../api/api_cloud_cost_management.rs | 136 +-
.../api/api_cloud_workload_security.rs | 73 +-
.../api/api_cloudflare_integration.rs | 75 +-
src/datadogV2/api/api_confluent_cloud.rs | 197 +-
src/datadogV2/api/api_container_images.rs | 64 +-
src/datadogV2/api/api_containers.rs | 64 +-
src/datadogV2/api/api_dashboard_lists.rs | 82 +-
src/datadogV2/api/api_dora_metrics.rs | 30 +-
src/datadogV2/api/api_downtimes.rs | 178 +-
src/datadogV2/api/api_events.rs | 93 +-
src/datadogV2/api/api_fastly_integration.rs | 187 +-
src/datadogV2/api/api_gcp_integration.rs | 79 +-
src/datadogV2/api/api_incident_services.rs | 142 +-
src/datadogV2/api/api_incident_teams.rs | 136 +-
src/datadogV2/api/api_incidents.rs | 509 ++-
src/datadogV2/api/api_ip_allowlist.rs | 17 +-
src/datadogV2/api/api_key_management.rs | 520 +--
src/datadogV2/api/api_logs.rs | 166 +-
src/datadogV2/api/api_logs_archives.rs | 157 +-
src/datadogV2/api/api_logs_metrics.rs | 74 +-
src/datadogV2/api/api_metrics.rs | 386 +-
src/datadogV2/api/api_monitors.rs | 77 +-
src/datadogV2/api/api_okta_integration.rs | 72 +-
src/datadogV2/api/api_opsgenie_integration.rs | 80 +-
src/datadogV2/api/api_organizations.rs | 20 +-
src/datadogV2/api/api_powerpack.rs | 102 +-
src/datadogV2/api/api_processes.rs | 78 +-
src/datadogV2/api/api_restriction_policies.rs | 62 +-
src/datadogV2/api/api_roles.rs | 319 +-
src/datadogV2/api/api_rum.rs | 167 +-
src/datadogV2/api/api_security_monitoring.rs | 541 +--
.../api/api_sensitive_data_scanner.rs | 141 +-
src/datadogV2/api/api_service_accounts.rs | 187 +-
src/datadogV2/api/api_service_definition.rs | 116 +-
src/datadogV2/api/api_service_scorecards.rs | 276 +-
src/datadogV2/api/api_spans.rs | 102 +-
src/datadogV2/api/api_spans_metrics.rs | 74 +-
src/datadogV2/api/api_synthetics.rs | 18 +-
src/datadogV2/api/api_teams.rs | 440 +--
src/datadogV2/api/api_usage_metering.rs | 462 ++-
src/datadogV2/api/api_users.rs | 207 +-
...el_active_billing_dimensions_attributes.rs | 11 +
.../model_active_billing_dimensions_body.rs | 24 +-
...odel_active_billing_dimensions_response.rs | 11 +-
.../model/model_api_key_create_data.rs | 4 +-
.../model/model_api_key_create_request.rs | 4 +-
.../model/model_api_key_relationships.rs | 15 +-
src/datadogV2/model/model_api_key_response.rs | 16 +-
.../model/model_api_key_update_data.rs | 4 +-
.../model/model_api_key_update_request.rs | 4 +-
.../model/model_api_keys_response.rs | 21 +-
.../model/model_api_keys_response_meta.rs | 13 +-
.../model_api_keys_response_meta_page.rs | 6 +
...model_application_key_create_attributes.rs | 5 +
.../model_application_key_create_data.rs | 4 +-
.../model_application_key_create_request.rs | 4 +-
.../model_application_key_relationships.rs | 8 +-
.../model/model_application_key_response.rs | 16 +-
.../model_application_key_response_meta.rs | 16 +-
...odel_application_key_response_meta_page.rs | 6 +
...model_application_key_update_attributes.rs | 11 +
.../model_application_key_update_data.rs | 4 +-
.../model_application_key_update_request.rs | 4 +-
src/datadogV2/model/model_audit_logs_event.rs | 21 +-
.../model_audit_logs_event_attributes.rs | 29 +
.../model/model_audit_logs_events_response.rs | 20 +-
.../model/model_audit_logs_query_filter.rs | 16 +
.../model/model_audit_logs_query_options.rs | 11 +
.../model_audit_logs_query_page_options.rs | 11 +
.../model/model_audit_logs_response_links.rs | 6 +
.../model_audit_logs_response_metadata.rs | 28 +-
.../model/model_audit_logs_response_page.rs | 6 +
.../model_audit_logs_search_events_request.rs | 27 +-
.../model/model_audit_logs_warning.rs | 16 +
src/datadogV2/model/model_auth_n_mapping.rs | 20 +-
.../model/model_auth_n_mapping_attributes.rs | 26 +
.../model_auth_n_mapping_create_attributes.rs | 11 +
.../model/model_auth_n_mapping_create_data.rs | 20 +-
...del_auth_n_mapping_create_relationships.rs | 8 +-
.../model_auth_n_mapping_create_request.rs | 6 +-
.../model_auth_n_mapping_relationships.rs | 18 +-
.../model/model_auth_n_mapping_response.rs | 16 +-
.../model_auth_n_mapping_update_attributes.rs | 11 +
.../model/model_auth_n_mapping_update_data.rs | 20 +-
...del_auth_n_mapping_update_relationships.rs | 8 +-
.../model_auth_n_mapping_update_request.rs | 6 +-
.../model/model_auth_n_mappings_response.rs | 21 +-
src/datadogV2/model/model_aws_cur_config.rs | 9 +-
.../model/model_aws_cur_config_attributes.rs | 30 +
.../model/model_aws_cur_config_patch_data.rs | 4 +-
.../model_aws_cur_config_patch_request.rs | 6 +-
.../model/model_aws_cur_config_post_data.rs | 4 +-
.../model_aws_cur_config_post_request.rs | 6 +-
..._aws_cur_config_post_request_attributes.rs | 15 +
.../model/model_aws_cur_config_response.rs | 8 +-
.../model/model_aws_cur_configs_response.rs | 6 +
.../model/model_aws_related_account.rs | 10 +-
.../model_aws_related_account_attributes.rs | 11 +
.../model_aws_related_accounts_response.rs | 6 +
src/datadogV2/model/model_azure_uc_config.rs | 36 +
.../model/model_azure_uc_config_pair.rs | 9 +-
.../model_azure_uc_config_pair_attributes.rs | 5 +
.../model_azure_uc_config_pairs_response.rs | 8 +-
.../model/model_azure_uc_config_patch_data.rs | 4 +-
.../model_azure_uc_config_patch_request.rs | 6 +-
.../model/model_azure_uc_config_post_data.rs | 4 +-
.../model_azure_uc_config_post_request.rs | 6 +-
...azure_uc_config_post_request_attributes.rs | 13 +-
.../model/model_azure_uc_configs_response.rs | 6 +
.../model/model_bulk_mute_findings_request.rs | 4 +-
...l_bulk_mute_findings_request_attributes.rs | 4 +-
.../model_bulk_mute_findings_request_data.rs | 8 +-
.../model_bulk_mute_findings_request_meta.rs | 9 +
...ulk_mute_findings_request_meta_findings.rs | 6 +
...l_bulk_mute_findings_request_properties.rs | 10 +
.../model_bulk_mute_findings_response.rs | 4 +-
.../model_bulk_mute_findings_response_data.rs | 11 +
.../model/model_chargeback_breakdown.rs | 16 +
...i_app_aggregate_bucket_value_timeseries.rs | 1 +
...aggregate_bucket_value_timeseries_point.rs | 11 +
.../model/model_ci_app_aggregate_sort.rs | 24 +
src/datadogV2/model/model_ci_app_ci_error.rs | 21 +
src/datadogV2/model/model_ci_app_compute.rs | 15 +
...el_ci_app_create_pipeline_event_request.rs | 11 +-
...reate_pipeline_event_request_attributes.rs | 14 +-
..._app_create_pipeline_event_request_data.rs | 19 +-
.../model/model_ci_app_event_attributes.rs | 19 +
src/datadogV2/model/model_ci_app_git_info.rs | 45 +
src/datadogV2/model/model_ci_app_host_info.rs | 21 +
.../model/model_ci_app_pipeline_event.rs | 24 +-
.../model_ci_app_pipeline_event_attributes.rs | 19 +
.../model/model_ci_app_pipeline_event_job.rs | 59 +-
...l_ci_app_pipeline_event_parent_pipeline.rs | 5 +
.../model_ci_app_pipeline_event_pipeline.rs | 80 +-
...ci_app_pipeline_event_previous_pipeline.rs | 5 +
.../model_ci_app_pipeline_event_stage.rs | 49 +-
.../model/model_ci_app_pipeline_event_step.rs | 64 +-
.../model_ci_app_pipeline_events_request.rs | 30 +-
.../model_ci_app_pipeline_events_response.rs | 23 +-
...odel_ci_app_pipelines_aggregate_request.rs | 31 +-
..._pipelines_aggregation_buckets_response.rs | 9 +
..._pipelines_analytics_aggregate_response.rs | 25 +-
.../model_ci_app_pipelines_bucket_response.rs | 20 +
.../model/model_ci_app_pipelines_group_by.rs | 36 +-
.../model_ci_app_pipelines_query_filter.rs | 16 +
.../model/model_ci_app_query_options.rs | 11 +
.../model/model_ci_app_query_page_options.rs | 11 +
.../model/model_ci_app_response_links.rs | 6 +
.../model/model_ci_app_response_metadata.rs | 21 +
...i_app_response_metadata_with_pagination.rs | 28 +-
.../model/model_ci_app_response_page.rs | 6 +
.../model/model_ci_app_test_event.rs | 21 +-
.../model/model_ci_app_test_events_request.rs | 27 +-
.../model_ci_app_test_events_response.rs | 23 +-
.../model_ci_app_tests_aggregate_request.rs | 28 +-
..._app_tests_aggregation_buckets_response.rs | 9 +
..._app_tests_analytics_aggregate_response.rs | 28 +-
.../model_ci_app_tests_bucket_response.rs | 20 +
.../model/model_ci_app_tests_group_by.rs | 36 +-
.../model/model_ci_app_tests_query_filter.rs | 16 +
src/datadogV2/model/model_ci_app_warning.rs | 16 +
...d_configuration_compliance_rule_options.rs | 21 +-
...el_cloud_configuration_rule_case_create.rs | 5 +
...guration_rule_compliance_signal_options.rs | 21 +
...cloud_configuration_rule_create_payload.rs | 31 +-
.../model_cloud_configuration_rule_options.rs | 7 +-
.../model/model_cloud_cost_activity.rs | 4 +-
.../model_cloud_cost_activity_response.rs | 8 +-
...workload_security_agent_rule_attributes.rs | 93 +-
...d_security_agent_rule_create_attributes.rs | 10 +
...orkload_security_agent_rule_create_data.rs | 4 +-
...load_security_agent_rule_create_request.rs | 4 +-
..._security_agent_rule_creator_attributes.rs | 11 +
...cloud_workload_security_agent_rule_data.rs | 24 +-
...d_workload_security_agent_rule_response.rs | 11 +-
...d_security_agent_rule_update_attributes.rs | 16 +
...orkload_security_agent_rule_update_data.rs | 4 +-
...load_security_agent_rule_update_request.rs | 4 +-
..._security_agent_rule_updater_attributes.rs | 11 +
...load_security_agent_rules_list_response.rs | 9 +
...model_cloudflare_account_create_request.rs | 4 +-
...flare_account_create_request_attributes.rs | 5 +
..._cloudflare_account_create_request_data.rs | 4 +-
.../model_cloudflare_account_response.rs | 11 +-
..._cloudflare_account_response_attributes.rs | 5 +
.../model_cloudflare_account_response_data.rs | 4 +-
...model_cloudflare_account_update_request.rs | 4 +-
...flare_account_update_request_attributes.rs | 5 +
..._cloudflare_account_update_request_data.rs | 16 +-
.../model_cloudflare_accounts_response.rs | 9 +
.../model_confluent_account_create_request.rs | 4 +-
...luent_account_create_request_attributes.rs | 13 +
...l_confluent_account_create_request_data.rs | 4 +-
...l_confluent_account_resource_attributes.rs | 15 +
.../model/model_confluent_account_response.rs | 11 +-
...l_confluent_account_response_attributes.rs | 13 +
.../model_confluent_account_response_data.rs | 4 +-
.../model_confluent_account_update_request.rs | 4 +-
...luent_account_update_request_attributes.rs | 5 +
...l_confluent_account_update_request_data.rs | 4 +-
.../model_confluent_accounts_response.rs | 9 +
.../model/model_confluent_resource_request.rs | 4 +-
...l_confluent_resource_request_attributes.rs | 10 +
.../model_confluent_resource_request_data.rs | 4 +-
.../model_confluent_resource_response.rs | 11 +-
..._confluent_resource_response_attributes.rs | 15 +
.../model_confluent_resource_response_data.rs | 4 +-
.../model_confluent_resources_response.rs | 9 +
src/datadogV2/model/model_container.rs | 18 +-
.../model/model_container_attributes.rs | 51 +
src/datadogV2/model/model_container_group.rs | 31 +-
.../model/model_container_group_attributes.rs | 14 +
.../model_container_group_relationships.rs | 11 +-
...odel_container_group_relationships_link.rs | 16 +-
...del_container_group_relationships_links.rs | 6 +
src/datadogV2/model/model_container_image.rs | 21 +-
.../model/model_container_image_attributes.rs | 94 +-
.../model/model_container_image_flavor.rs | 26 +
.../model/model_container_image_group.rs | 31 +-
.../model_container_image_group_attributes.rs | 19 +
...r_image_group_images_relationships_link.rs | 16 +-
...del_container_image_group_relationships.rs | 11 +-
...ntainer_image_group_relationships_links.rs | 6 +
.../model/model_container_image_meta.rs | 11 +-
.../model/model_container_image_meta_page.rs | 34 +
.../model_container_image_vulnerabilities.rs | 36 +
.../model/model_container_images_response.rs | 23 +-
.../model_container_images_response_links.rs | 26 +
src/datadogV2/model/model_container_meta.rs | 8 +-
.../model/model_container_meta_page.rs | 31 +
.../model/model_containers_response.rs | 20 +-
.../model/model_containers_response_links.rs | 26 +
.../model_cost_attribution_aggregates_body.rs | 16 +
src/datadogV2/model/model_cost_by_org.rs | 18 +-
.../model/model_cost_by_org_attributes.rs | 34 +
.../model/model_cost_by_org_response.rs | 6 +
.../model/model_create_rule_request.rs | 8 +-
.../model/model_create_rule_request_data.rs | 13 +-
.../model/model_create_rule_response.rs | 8 +-
.../model/model_create_rule_response_data.rs | 28 +-
src/datadogV2/model/model_creator.rs | 16 +
.../model_dashboard_list_add_items_request.rs | 9 +
...model_dashboard_list_add_items_response.rs | 9 +
...del_dashboard_list_delete_items_request.rs | 9 +
...el_dashboard_list_delete_items_response.rs | 9 +
.../model/model_dashboard_list_item.rs | 62 +-
.../model/model_dashboard_list_items.rs | 5 +
...del_dashboard_list_update_items_request.rs | 9 +
...el_dashboard_list_update_items_response.rs | 9 +
.../model/model_data_scalar_column.rs | 23 +-
src/datadogV2/model/model_detailed_finding.rs | 21 +-
.../model_detailed_finding_attributes.rs | 63 +-
.../model/model_dora_deployment_request.rs | 6 +-
...odel_dora_deployment_request_attributes.rs | 17 +-
.../model_dora_deployment_request_data.rs | 4 +-
.../model/model_dora_deployment_response.rs | 4 +-
.../model_dora_deployment_response_data.rs | 5 +
.../model/model_dora_incident_request.rs | 4 +-
.../model_dora_incident_request_attributes.rs | 32 +-
.../model/model_dora_incident_request_data.rs | 4 +-
.../model/model_dora_incident_response.rs | 6 +-
.../model_dora_incident_response_data.rs | 5 +
.../model/model_downtime_create_request.rs | 6 +-
...odel_downtime_create_request_attributes.rs | 45 +-
.../model_downtime_create_request_data.rs | 4 +-
src/datadogV2/model/model_downtime_meta.rs | 8 +-
.../model/model_downtime_meta_page.rs | 6 +
...el_downtime_monitor_included_attributes.rs | 6 +
.../model_downtime_monitor_included_item.rs | 24 +-
.../model/model_downtime_relationships.rs | 21 +-
...model_downtime_relationships_created_by.rs | 11 +-
..._downtime_relationships_created_by_data.rs | 11 +
.../model_downtime_relationships_monitor.rs | 11 +-
...del_downtime_relationships_monitor_data.rs | 14 +
.../model/model_downtime_response.rs | 16 +-
.../model_downtime_response_attributes.rs | 77 +-
.../model/model_downtime_response_data.rs | 31 +-
...time_schedule_current_downtime_response.rs | 11 +
...schedule_one_time_create_update_request.rs | 11 +
...del_downtime_schedule_one_time_response.rs | 5 +
...hedule_recurrence_create_update_request.rs | 5 +
...l_downtime_schedule_recurrence_response.rs | 16 +
...ime_schedule_recurrences_create_request.rs | 5 +
..._downtime_schedule_recurrences_response.rs | 16 +-
...ime_schedule_recurrences_update_request.rs | 14 +
.../model/model_downtime_update_request.rs | 6 +-
...odel_downtime_update_request_attributes.rs | 57 +-
.../model_downtime_update_request_data.rs | 4 +-
src/datadogV2/model/model_event.rs | 21 +
src/datadogV2/model/model_event_attributes.rs | 100 +-
src/datadogV2/model/model_event_response.rs | 21 +-
.../model/model_event_response_attributes.rs | 23 +-
src/datadogV2/model/model_events_compute.rs | 10 +
src/datadogV2/model/model_events_group_by.rs | 12 +-
.../model/model_events_group_by_sort.rs | 15 +
.../model/model_events_list_request.rs | 27 +-
.../model/model_events_list_response.rs | 20 +-
.../model/model_events_list_response_links.rs | 6 +
.../model/model_events_query_filter.rs | 16 +
.../model/model_events_query_options.rs | 11 +
.../model/model_events_request_page.rs | 11 +
.../model/model_events_response_metadata.rs | 31 +-
.../model_events_response_metadata_page.rs | 6 +
.../model/model_events_scalar_query.rs | 26 +-
src/datadogV2/model/model_events_search.rs | 6 +
.../model/model_events_timeseries_query.rs | 26 +-
src/datadogV2/model/model_events_warning.rs | 16 +
...model_fastly_accoun_response_attributes.rs | 5 +
.../model_fastly_account_create_request.rs | 4 +-
...astly_account_create_request_attributes.rs | 5 +
...odel_fastly_account_create_request_data.rs | 4 +-
.../model/model_fastly_account_response.rs | 8 +-
.../model_fastly_account_response_data.rs | 4 +-
.../model_fastly_account_update_request.rs | 4 +-
...astly_account_update_request_attributes.rs | 6 +
...odel_fastly_account_update_request_data.rs | 16 +-
.../model/model_fastly_accounts_response.rs | 9 +
src/datadogV2/model/model_fastly_service.rs | 5 +
.../model/model_fastly_service_attributes.rs | 6 +
.../model/model_fastly_service_data.rs | 10 +-
.../model/model_fastly_service_request.rs | 4 +-
.../model/model_fastly_service_response.rs | 8 +-
.../model/model_fastly_services_response.rs | 9 +
src/datadogV2/model/model_finding.rs | 18 +-
.../model/model_finding_attributes.rs | 50 +-
src/datadogV2/model/model_finding_mute.rs | 31 +
src/datadogV2/model/model_finding_rule.rs | 11 +
src/datadogV2/model/model_formula_limit.rs | 11 +
src/datadogV2/model/model_full_api_key.rs | 31 +-
.../model/model_full_api_key_attributes.rs | 36 +
.../model/model_full_application_key.rs | 31 +-
.../model_full_application_key_attributes.rs | 26 +
.../model/model_gcp_service_account_meta.rs | 6 +
.../model/model_gcpsts_delegate_account.rs | 24 +-
...odel_gcpsts_delegate_account_attributes.rs | 6 +
.../model_gcpsts_delegate_account_response.rs | 8 +-
.../model/model_gcpsts_service_account.rs | 28 +-
...model_gcpsts_service_account_attributes.rs | 36 +
...l_gcpsts_service_account_create_request.rs | 8 +-
.../model_gcpsts_service_account_data.rs | 16 +-
.../model_gcpsts_service_account_response.rs | 8 +-
...l_gcpsts_service_account_update_request.rs | 11 +-
...sts_service_account_update_request_data.rs | 21 +-
.../model_gcpsts_service_accounts_response.rs | 6 +
.../model/model_get_finding_response.rs | 4 +-
.../model/model_group_scalar_column.rs | 16 +
src/datadogV2/model/model_hourly_usage.rs | 21 +-
.../model/model_hourly_usage_attributes.rs | 34 +
.../model/model_hourly_usage_measurement.rs | 11 +
.../model/model_hourly_usage_metadata.rs | 11 +-
.../model/model_hourly_usage_pagination.rs | 6 +
.../model/model_hourly_usage_response.rs | 13 +-
src/datadogV2/model/model_http_log_error.rs | 16 +
src/datadogV2/model/model_http_log_errors.rs | 6 +
src/datadogV2/model/model_http_log_item.rs | 20 +
src/datadogV2/model/model_httpci_app_error.rs | 16 +
.../model/model_httpci_app_errors.rs | 6 +
.../model/model_id_p_metadata_form_data.rs | 6 +
.../model/model_incident_attachment_data.rs | 8 +-
...del_incident_attachment_link_attributes.rs | 9 +-
...cident_attachment_postmortem_attributes.rs | 6 +-
...model_incident_attachment_relationships.rs | 11 +-
.../model_incident_attachment_update_data.rs | 15 +-
...del_incident_attachment_update_response.rs | 8 +
.../model_incident_attachments_response.rs | 8 +
.../model/model_incident_create_attributes.rs | 29 +
.../model/model_incident_create_data.rs | 14 +-
.../model_incident_create_relationships.rs | 4 +-
.../model/model_incident_create_request.rs | 4 +-
...ncident_field_attributes_multiple_value.rs | 14 +
..._incident_field_attributes_single_value.rs | 14 +
...ncident_integration_metadata_attributes.rs | 24 +-
...cident_integration_metadata_create_data.rs | 4 +-
...ent_integration_metadata_create_request.rs | 4 +-
...dent_integration_metadata_list_response.rs | 15 +-
...ncident_integration_metadata_patch_data.rs | 4 +-
...dent_integration_metadata_patch_request.rs | 4 +-
..._incident_integration_metadata_response.rs | 12 +-
...dent_integration_metadata_response_data.rs | 20 +-
...odel_incident_integration_relationships.rs | 21 +-
.../model_incident_non_datadog_creator.rs | 11 +
.../model_incident_notification_handle.rs | 11 +
.../model/model_incident_response.rs | 12 +-
.../model_incident_response_attributes.rs | 122 +-
.../model/model_incident_response_data.rs | 20 +-
.../model/model_incident_response_meta.rs | 11 +-
...model_incident_response_meta_pagination.rs | 16 +
.../model_incident_response_relationships.rs | 82 +-
.../model/model_incident_search_response.rs | 22 +-
...del_incident_search_response_attributes.rs | 4 +-
.../model_incident_search_response_data.rs | 19 +-
...el_incident_search_response_facets_data.rs | 89 +
...cident_search_response_field_facet_data.rs | 11 +
...incident_search_response_incidents_data.rs | 4 +-
.../model_incident_search_response_meta.rs | 11 +-
...dent_search_response_numeric_facet_data.rs | 4 +-
..._response_numeric_facet_data_aggregates.rs | 11 +
...arch_response_property_field_facet_data.rs | 10 +-
...ncident_search_response_user_facet_data.rs | 26 +
.../model_incident_service_create_data.rs | 20 +-
.../model_incident_service_create_request.rs | 4 +-
.../model_incident_service_relationships.rs | 18 +-
.../model/model_incident_service_response.rs | 12 +-
...el_incident_service_response_attributes.rs | 16 +
.../model_incident_service_response_data.rs | 20 +-
.../model_incident_service_update_data.rs | 25 +-
.../model_incident_service_update_request.rs | 4 +-
.../model/model_incident_services_response.rs | 15 +-
.../model/model_incident_team_create_data.rs | 20 +-
.../model_incident_team_create_request.rs | 6 +-
.../model_incident_team_relationships.rs | 18 +-
.../model/model_incident_team_response.rs | 14 +-
...model_incident_team_response_attributes.rs | 16 +
.../model_incident_team_response_data.rs | 31 +-
.../model/model_incident_team_update_data.rs | 25 +-
.../model_incident_team_update_request.rs | 6 +-
.../model/model_incident_teams_response.rs | 15 +-
...imeline_cell_markdown_create_attributes.rs | 9 +-
...cell_markdown_create_attributes_content.rs | 6 +
.../model/model_incident_todo_attributes.rs | 25 +
.../model/model_incident_todo_create_data.rs | 4 +-
.../model_incident_todo_create_request.rs | 6 +-
.../model_incident_todo_list_response.rs | 15 +-
.../model/model_incident_todo_patch_data.rs | 4 +-
.../model_incident_todo_patch_request.rs | 6 +-
.../model_incident_todo_relationships.rs | 21 +-
.../model/model_incident_todo_response.rs | 14 +-
.../model_incident_todo_response_data.rs | 20 +-
.../model/model_incident_update_attributes.rs | 47 +
.../model/model_incident_update_data.rs | 20 +-
.../model_incident_update_relationships.rs | 32 +-
.../model/model_incident_update_request.rs | 4 +-
.../model/model_incidents_response.rs | 15 +-
.../model/model_intake_payload_accepted.rs | 6 +
.../model/model_ip_allowlist_attributes.rs | 11 +
.../model/model_ip_allowlist_data.rs | 15 +-
.../model/model_ip_allowlist_entry.rs | 4 +-
.../model_ip_allowlist_entry_attributes.rs | 21 +
.../model/model_ip_allowlist_entry_data.rs | 15 +-
.../model/model_ip_allowlist_response.rs | 8 +-
.../model_ip_allowlist_update_request.rs | 4 +-
...l_jira_integration_metadata_issues_item.rs | 15 +
.../model/model_jsonapi_error_item.rs | 16 +
.../model_list_application_keys_response.rs | 27 +-
.../model/model_list_downtimes_response.rs | 21 +-
.../model/model_list_findings_meta.rs | 13 +-
.../model/model_list_findings_page.rs | 11 +
.../model/model_list_findings_response.rs | 4 +-
.../model/model_list_powerpacks_response.rs | 25 +-
.../model/model_list_rules_response.rs | 16 +-
.../model_list_rules_response_data_item.rs | 28 +-
.../model/model_list_rules_response_links.rs | 6 +
src/datadogV2/model/model_log.rs | 18 +-
src/datadogV2/model/model_log_attributes.rs | 39 +
.../model/model_logs_aggregate_bucket.rs | 20 +
..._logs_aggregate_bucket_value_timeseries.rs | 1 +
...aggregate_bucket_value_timeseries_point.rs | 11 +
.../model/model_logs_aggregate_request.rs | 32 +-
.../model_logs_aggregate_request_page.rs | 6 +
.../model/model_logs_aggregate_response.rs | 15 +-
.../model_logs_aggregate_response_data.rs | 9 +
.../model/model_logs_aggregate_sort.rs | 24 +
src/datadogV2/model/model_logs_archive.rs | 8 +-
.../model/model_logs_archive_attributes.rs | 24 +-
.../model_logs_archive_create_request.rs | 11 +-
..._logs_archive_create_request_attributes.rs | 19 +-
..._logs_archive_create_request_definition.rs | 10 +-
.../model/model_logs_archive_definition.rs | 15 +-
.../model_logs_archive_destination_azure.rs | 14 +-
.../model_logs_archive_destination_gcs.rs | 9 +-
.../model_logs_archive_destination_s3.rs | 9 +-
.../model/model_logs_archive_order.rs | 11 +-
.../model_logs_archive_order_definition.rs | 4 +-
src/datadogV2/model/model_logs_archives.rs | 9 +
src/datadogV2/model/model_logs_compute.rs | 15 +
src/datadogV2/model/model_logs_group_by.rs | 33 +-
.../model/model_logs_list_request.rs | 27 +-
.../model/model_logs_list_request_page.rs | 11 +
.../model/model_logs_list_response.rs | 20 +-
.../model/model_logs_list_response_links.rs | 6 +
.../model/model_logs_metric_compute.rs | 10 +
.../model_logs_metric_create_attributes.rs | 21 +-
.../model/model_logs_metric_create_data.rs | 4 +-
.../model/model_logs_metric_create_request.rs | 6 +-
.../model/model_logs_metric_filter.rs | 6 +
.../model/model_logs_metric_group_by.rs | 5 +
.../model/model_logs_metric_response.rs | 8 +-
.../model_logs_metric_response_attributes.rs | 29 +-
.../model_logs_metric_response_compute.rs | 19 +
.../model/model_logs_metric_response_data.rs | 21 +-
.../model_logs_metric_response_filter.rs | 6 +
.../model_logs_metric_response_group_by.rs | 11 +
.../model_logs_metric_update_attributes.rs | 26 +-
.../model/model_logs_metric_update_compute.rs | 6 +
.../model/model_logs_metric_update_data.rs | 4 +-
.../model/model_logs_metric_update_request.rs | 6 +-
.../model/model_logs_metrics_response.rs | 9 +
.../model/model_logs_query_filter.rs | 26 +
.../model/model_logs_query_options.rs | 11 +
.../model/model_logs_response_metadata.rs | 31 +-
.../model_logs_response_metadata_page.rs | 6 +
src/datadogV2/model/model_logs_warning.rs | 16 +
src/datadogV2/model/model_metric.rs | 11 +
src/datadogV2/model/model_metric_all_tags.rs | 21 +-
.../model/model_metric_all_tags_attributes.rs | 6 +
.../model/model_metric_all_tags_response.rs | 8 +-
.../model_metric_bulk_tag_config_create.rs | 10 +-
...etric_bulk_tag_config_create_attributes.rs | 16 +
...l_metric_bulk_tag_config_create_request.rs | 4 +-
.../model_metric_bulk_tag_config_delete.rs | 10 +-
...etric_bulk_tag_config_delete_attributes.rs | 6 +
...l_metric_bulk_tag_config_delete_request.rs | 4 +-
.../model_metric_bulk_tag_config_response.rs | 8 +-
.../model_metric_bulk_tag_config_status.rs | 10 +-
...etric_bulk_tag_config_status_attributes.rs | 21 +
.../model/model_metric_distinct_volume.rs | 21 +-
...model_metric_distinct_volume_attributes.rs | 6 +
src/datadogV2/model/model_metric_estimate.rs | 24 +-
.../model/model_metric_estimate_attributes.rs | 19 +
.../model/model_metric_estimate_response.rs | 8 +-
.../model_metric_ingested_indexed_volume.rs | 24 +-
...tric_ingested_indexed_volume_attributes.rs | 11 +
src/datadogV2/model/model_metric_metadata.rs | 8 +-
src/datadogV2/model/model_metric_origin.rs | 16 +
src/datadogV2/model/model_metric_point.rs | 11 +
src/datadogV2/model/model_metric_resource.rs | 11 +
src/datadogV2/model/model_metric_series.rs | 37 +-
..._metric_suggested_tags_and_aggregations.rs | 24 +-
...uggested_tags_and_aggregations_response.rs | 11 +-
.../model_metric_suggested_tags_attributes.rs | 14 +
.../model/model_metric_tag_configuration.rs | 24 +-
...del_metric_tag_configuration_attributes.rs | 42 +
...ric_tag_configuration_create_attributes.rs | 18 +
...el_metric_tag_configuration_create_data.rs | 10 +-
...metric_tag_configuration_create_request.rs | 4 +-
...model_metric_tag_configuration_response.rs | 8 +-
...ric_tag_configuration_update_attributes.rs | 24 +
...el_metric_tag_configuration_update_data.rs | 10 +-
...metric_tag_configuration_update_request.rs | 4 +-
.../model/model_metric_volumes_response.rs | 8 +-
..._and_metric_tag_configurations_response.rs | 9 +
.../model/model_metrics_scalar_query.rs | 5 +
.../model/model_metrics_timeseries_query.rs | 5 +
..._config_policy_attribute_create_request.rs | 4 +-
...or_config_policy_attribute_edit_request.rs | 4 +-
...onitor_config_policy_attribute_response.rs | 19 +-
...model_monitor_config_policy_create_data.rs | 4 +-
...el_monitor_config_policy_create_request.rs | 4 +-
.../model_monitor_config_policy_edit_data.rs | 4 +-
...odel_monitor_config_policy_edit_request.rs | 4 +-
...del_monitor_config_policy_list_response.rs | 9 +
.../model_monitor_config_policy_response.rs | 11 +-
...del_monitor_config_policy_response_data.rs | 24 +-
.../model_monitor_config_policy_tag_policy.rs | 16 +
.../model_monitor_downtime_match_response.rs | 16 +-
...itor_downtime_match_response_attributes.rs | 21 +
...el_monitor_downtime_match_response_data.rs | 24 +-
src/datadogV2/model/model_monitor_type.rs | 56 +
...del_monthly_cost_attribution_attributes.rs | 42 +
.../model_monthly_cost_attribution_body.rs | 21 +-
.../model_monthly_cost_attribution_meta.rs | 19 +-
...del_monthly_cost_attribution_pagination.rs | 6 +
...model_monthly_cost_attribution_response.rs | 19 +-
.../model_nullable_relationship_to_user.rs | 4 +-
src/datadogV2/model/model_okta_account.rs | 9 +-
.../model/model_okta_account_attributes.rs | 15 +
.../model/model_okta_account_request.rs | 4 +-
.../model/model_okta_account_response.rs | 8 +-
.../model/model_okta_account_response_data.rs | 4 +-
.../model_okta_account_update_request.rs | 4 +-
..._okta_account_update_request_attributes.rs | 15 +
.../model_okta_account_update_request_data.rs | 16 +-
.../model/model_okta_accounts_response.rs | 9 +
.../model/model_on_demand_concurrency_cap.rs | 19 +-
...el_on_demand_concurrency_cap_attributes.rs | 6 +
...odel_on_demand_concurrency_cap_response.rs | 8 +-
...odel_opsgenie_service_create_attributes.rs | 5 +
.../model_opsgenie_service_create_data.rs | 4 +-
.../model_opsgenie_service_create_request.rs | 4 +-
.../model/model_opsgenie_service_response.rs | 4 +-
...el_opsgenie_service_response_attributes.rs | 19 +
.../model_opsgenie_service_response_data.rs | 4 +-
...odel_opsgenie_service_update_attributes.rs | 24 +
.../model_opsgenie_service_update_data.rs | 4 +-
.../model_opsgenie_service_update_request.rs | 4 +-
src/datadogV2/model/model_organization.rs | 15 +-
.../model/model_organization_attributes.rs | 41 +
.../model/model_outcomes_batch_attributes.rs | 9 +
.../model/model_outcomes_batch_request.rs | 8 +-
.../model_outcomes_batch_request_data.rs | 16 +-
.../model_outcomes_batch_request_item.rs | 5 +
.../model/model_outcomes_batch_response.rs | 4 +-
...odel_outcomes_batch_response_attributes.rs | 26 +
.../model_outcomes_batch_response_meta.rs | 11 +
.../model/model_outcomes_response.rs | 24 +-
.../model_outcomes_response_data_item.rs | 31 +-
.../model_outcomes_response_included_item.rs | 21 +-
...comes_response_included_rule_attributes.rs | 11 +
.../model/model_outcomes_response_links.rs | 6 +
src/datadogV2/model/model_pagination.rs | 11 +
src/datadogV2/model/model_partial_api_key.rs | 31 +-
.../model/model_partial_api_key_attributes.rs | 31 +
.../model/model_partial_application_key.rs | 31 +-
...odel_partial_application_key_attributes.rs | 21 +
.../model_partial_application_key_response.rs | 16 +-
src/datadogV2/model/model_permission.rs | 15 +-
.../model/model_permission_attributes.rs | 36 +
.../model/model_permissions_response.rs | 6 +
src/datadogV2/model/model_powerpack.rs | 8 +-
.../model/model_powerpack_attributes.rs | 22 +-
src/datadogV2/model/model_powerpack_data.rs | 28 +-
.../model/model_powerpack_group_widget.rs | 19 +-
...model_powerpack_group_widget_definition.rs | 10 +
.../model/model_powerpack_inner_widgets.rs | 10 +-
.../model/model_powerpack_relationships.rs | 8 +-
.../model/model_powerpack_response.rs | 13 +-
.../model/model_powerpack_response_links.rs | 26 +
.../model_powerpack_template_variable.rs | 5 +
.../model/model_powerpacks_response_meta.rs | 11 +-
...del_powerpacks_response_meta_pagination.rs | 41 +
.../model/model_process_summaries_meta.rs | 8 +-
.../model_process_summaries_meta_page.rs | 11 +
.../model/model_process_summaries_response.rs | 13 +-
src/datadogV2/model/model_process_summary.rs | 21 +-
.../model/model_process_summary_attributes.rs | 41 +
src/datadogV2/model/model_projected_cost.rs | 21 +-
.../model/model_projected_cost_attributes.rs | 34 +
.../model/model_projected_cost_response.rs | 6 +
src/datadogV2/model/model_query_formula.rs | 7 +-
...del_relationship_to_incident_postmortem.rs | 4 +-
.../model_relationship_to_organization.rs | 4 +-
.../model/model_relationship_to_outcome.rs | 8 +-
.../model_relationship_to_outcome_data.rs | 11 +
.../model/model_relationship_to_permission.rs | 11 +-
.../model_relationship_to_permission_data.rs | 11 +
.../model_relationship_to_permissions.rs | 9 +
.../model/model_relationship_to_role.rs | 8 +-
.../model/model_relationship_to_role_data.rs | 11 +
.../model/model_relationship_to_roles.rs | 9 +
.../model/model_relationship_to_rule.rs | 11 +-
.../model/model_relationship_to_rule_data.rs | 11 +-
.../model_relationship_to_rule_data_object.rs | 11 +
...elationship_to_saml_assertion_attribute.rs | 4 +-
.../model/model_relationship_to_team_links.rs | 16 +-
.../model/model_relationship_to_user.rs | 4 +-
...el_relationship_to_user_team_permission.rs | 18 +-
.../model_relationship_to_user_team_team.rs | 4 +-
.../model_relationship_to_user_team_user.rs | 4 +-
.../model/model_response_meta_attributes.rs | 8 +-
.../model/model_restriction_policy.rs | 4 +-
.../model_restriction_policy_response.rs | 4 +-
...model_restriction_policy_update_request.rs | 6 +-
src/datadogV2/model/model_retention_filter.rs | 4 +-
.../model/model_retention_filter_all.rs | 4 +-
.../model_retention_filter_all_attributes.rs | 61 +-
.../model_retention_filter_attributes.rs | 61 +-
...odel_retention_filter_create_attributes.rs | 4 +-
.../model_retention_filter_create_data.rs | 4 +-
.../model_retention_filter_create_request.rs | 4 +-
.../model/model_retention_filter_response.rs | 8 +-
.../model_retention_filter_update_data.rs | 4 +-
.../model_retention_filter_update_request.rs | 4 +-
src/datadogV2/model/model_role.rs | 22 +-
src/datadogV2/model/model_role_attributes.rs | 21 +
src/datadogV2/model/model_role_clone.rs | 4 +-
.../model/model_role_clone_request.rs | 4 +-
.../model/model_role_create_attributes.rs | 10 +
src/datadogV2/model/model_role_create_data.rs | 19 +-
.../model/model_role_create_request.rs | 4 +-
.../model/model_role_create_response.rs | 8 +-
.../model/model_role_create_response_data.rs | 25 +-
.../model/model_role_relationships.rs | 18 +-
src/datadogV2/model/model_role_response.rs | 8 +-
.../model_role_response_relationships.rs | 11 +-
.../model/model_role_update_attributes.rs | 16 +
src/datadogV2/model/model_role_update_data.rs | 14 +-
.../model/model_role_update_request.rs | 4 +-
.../model/model_role_update_response.rs | 8 +-
.../model/model_role_update_response_data.rs | 25 +-
src/datadogV2/model/model_roles_response.rs | 13 +-
src/datadogV2/model/model_rule_attributes.rs | 55 +
.../model/model_rule_outcome_relationships.rs | 8 +-
...l_rum_aggregate_bucket_value_timeseries.rs | 1 +
...aggregate_bucket_value_timeseries_point.rs | 11 +
.../model/model_rum_aggregate_request.rs | 32 +-
.../model/model_rum_aggregate_sort.rs | 24 +
.../model_rum_aggregation_buckets_response.rs | 6 +
.../model_rum_analytics_aggregate_response.rs | 25 +-
src/datadogV2/model/model_rum_application.rs | 4 +-
.../model/model_rum_application_attributes.rs | 10 +
.../model/model_rum_application_create.rs | 4 +-
...model_rum_application_create_attributes.rs | 5 +
.../model_rum_application_create_request.rs | 6 +-
.../model/model_rum_application_list.rs | 9 +-
.../model_rum_application_list_attributes.rs | 10 +
.../model/model_rum_application_response.rs | 8 +-
.../model/model_rum_application_update.rs | 10 +-
...model_rum_application_update_attributes.rs | 11 +
.../model_rum_application_update_request.rs | 6 +-
.../model/model_rum_applications_response.rs | 6 +
.../model/model_rum_bucket_response.rs | 14 +
src/datadogV2/model/model_rum_compute.rs | 15 +
src/datadogV2/model/model_rum_event.rs | 18 +-
.../model/model_rum_event_attributes.rs | 24 +
.../model/model_rum_events_response.rs | 20 +-
src/datadogV2/model/model_rum_group_by.rs | 33 +-
src/datadogV2/model/model_rum_query_filter.rs | 16 +
.../model/model_rum_query_options.rs | 11 +
.../model/model_rum_query_page_options.rs | 11 +
.../model/model_rum_response_links.rs | 6 +
.../model/model_rum_response_metadata.rs | 28 +-
.../model/model_rum_response_page.rs | 6 +
.../model/model_rum_search_events_request.rs | 27 +-
src/datadogV2/model/model_rum_warning.rs | 16 +
.../model/model_saml_assertion_attribute.rs | 10 +-
...del_saml_assertion_attribute_attributes.rs | 11 +
.../model_scalar_formula_query_request.rs | 6 +-
.../model_scalar_formula_query_response.rs | 13 +-
.../model/model_scalar_formula_request.rs | 4 +-
...model_scalar_formula_request_attributes.rs | 5 +
...odel_scalar_formula_response_atrributes.rs | 6 +
src/datadogV2/model/model_scalar_meta.rs | 6 +
src/datadogV2/model/model_scalar_response.rs | 19 +-
src/datadogV2/model/model_security_filter.rs | 21 +-
.../model/model_security_filter_attributes.rs | 42 +
.../model_security_filter_create_data.rs | 4 +-
.../model_security_filter_create_request.rs | 4 +-
...curity_filter_exclusion_filter_response.rs | 11 +
.../model/model_security_filter_meta.rs | 6 +
.../model/model_security_filter_response.rs | 15 +-
...model_security_filter_update_attributes.rs | 37 +
.../model_security_filter_update_data.rs | 4 +-
.../model_security_filter_update_request.rs | 4 +-
.../model/model_security_filters_response.rs | 13 +-
.../model/model_security_monitoring_filter.rs | 14 +
...security_monitoring_list_rules_response.rs | 16 +-
.../model_security_monitoring_rule_case.rs | 24 +
...el_security_monitoring_rule_case_create.rs | 15 +
...nitoring_rule_impossible_travel_options.rs | 6 +
...urity_monitoring_rule_new_value_options.rs | 33 +
.../model_security_monitoring_rule_options.rs | 87 +-
...ity_monitoring_rule_third_party_options.rs | 27 +
...security_monitoring_rule_update_payload.rs | 83 +-
.../model/model_security_monitoring_signal.rs | 24 +-
...oring_signal_assignee_update_attributes.rs | 9 +-
..._monitoring_signal_assignee_update_data.rs | 4 +-
...nitoring_signal_assignee_update_request.rs | 4 +-
...l_security_monitoring_signal_attributes.rs | 24 +
...ring_signal_incidents_update_attributes.rs | 5 +
...monitoring_signal_incidents_update_data.rs | 4 +-
...itoring_signal_incidents_update_request.rs | 4 +-
...security_monitoring_signal_list_request.rs | 29 +-
...y_monitoring_signal_list_request_filter.rs | 16 +
...ity_monitoring_signal_list_request_page.rs | 11 +
...del_security_monitoring_signal_response.rs | 8 +-
...y_monitoring_signal_rule_create_payload.rs | 30 +-
...l_security_monitoring_signal_rule_query.rs | 28 +
...ecurity_monitoring_signal_rule_response.rs | 108 +-
...y_monitoring_signal_rule_response_query.rs | 49 +
...nitoring_signal_state_update_attributes.rs | 18 +
...ity_monitoring_signal_state_update_data.rs | 17 +-
..._monitoring_signal_state_update_request.rs | 4 +-
...ity_monitoring_signal_triage_attributes.rs | 47 +-
...ty_monitoring_signal_triage_update_data.rs | 24 +-
...onitoring_signal_triage_update_response.rs | 4 +-
...curity_monitoring_signals_list_response.rs | 29 +-
..._monitoring_signals_list_response_links.rs | 6 +
...y_monitoring_signals_list_response_meta.rs | 11 +-
...itoring_signals_list_response_meta_page.rs | 6 +
...monitoring_standard_rule_create_payload.rs | 38 +-
...security_monitoring_standard_rule_query.rs | 52 +
...urity_monitoring_standard_rule_response.rs | 126 +-
...urity_monitoring_third_party_root_query.rs | 11 +
...curity_monitoring_third_party_rule_case.rs | 24 +
...monitoring_third_party_rule_case_create.rs | 15 +
.../model_security_monitoring_triage_user.rs | 20 +
...l_sensitive_data_scanner_config_request.rs | 8 +-
...el_sensitive_data_scanner_configuration.rs | 14 +
...nsitive_data_scanner_configuration_data.rs | 11 +-
...ata_scanner_configuration_relationships.rs | 11 +-
...tive_data_scanner_create_group_response.rs | 21 +-
...itive_data_scanner_create_rule_response.rs | 21 +-
.../model_sensitive_data_scanner_filter.rs | 6 +
...sitive_data_scanner_get_config_response.rs | 26 +-
...e_data_scanner_get_config_response_data.rs | 32 +-
.../model_sensitive_data_scanner_group.rs | 14 +
...sensitive_data_scanner_group_attributes.rs | 34 +-
...del_sensitive_data_scanner_group_create.rs | 14 +-
...itive_data_scanner_group_create_request.rs | 21 +-
...model_sensitive_data_scanner_group_data.rs | 8 +-
...itive_data_scanner_group_delete_request.rs | 4 +-
...tive_data_scanner_group_delete_response.rs | 11 +-
...sitive_data_scanner_group_included_item.rs | 34 +-
...model_sensitive_data_scanner_group_item.rs | 14 +
...model_sensitive_data_scanner_group_list.rs | 9 +
...sitive_data_scanner_group_relationships.rs | 21 +-
...l_sensitive_data_scanner_group_response.rs | 34 +-
...del_sensitive_data_scanner_group_update.rs | 34 +-
...itive_data_scanner_group_update_request.rs | 8 +-
...tive_data_scanner_group_update_response.rs | 11 +-
.../model_sensitive_data_scanner_meta.rs | 31 +
...ensitive_data_scanner_meta_version_only.rs | 6 +
...l_sensitive_data_scanner_reorder_config.rs | 24 +-
...ve_data_scanner_reorder_groups_response.rs | 8 +-
.../model_sensitive_data_scanner_rule.rs | 14 +
..._sensitive_data_scanner_rule_attributes.rs | 51 +-
...odel_sensitive_data_scanner_rule_create.rs | 8 +-
...sitive_data_scanner_rule_create_request.rs | 8 +-
.../model_sensitive_data_scanner_rule_data.rs | 9 +
...sitive_data_scanner_rule_delete_request.rs | 4 +-
...itive_data_scanner_rule_delete_response.rs | 11 +-
...nsitive_data_scanner_rule_included_item.rs | 34 +-
...nsitive_data_scanner_rule_relationships.rs | 22 +-
...el_sensitive_data_scanner_rule_response.rs | 34 +-
...odel_sensitive_data_scanner_rule_update.rs | 34 +-
...sitive_data_scanner_rule_update_request.rs | 8 +-
...itive_data_scanner_rule_update_response.rs | 11 +-
...sensitive_data_scanner_standard_pattern.rs | 14 +
...ata_scanner_standard_pattern_attributes.rs | 31 +
...tive_data_scanner_standard_pattern_data.rs | 11 +-
...scanner_standard_patterns_response_data.rs | 9 +
...scanner_standard_patterns_response_item.rs | 25 +-
...sensitive_data_scanner_text_replacement.rs | 19 +
...model_service_account_create_attributes.rs | 10 +
.../model_service_account_create_data.rs | 14 +-
.../model_service_account_create_request.rs | 4 +-
...odel_service_definition_create_response.rs | 9 +
.../model/model_service_definition_data.rs | 21 +-
...odel_service_definition_data_attributes.rs | 15 +-
.../model_service_definition_get_response.rs | 8 +-
.../model/model_service_definition_meta.rs | 39 +
.../model_service_definition_meta_warnings.rs | 16 +
.../model/model_service_definition_v1.rs | 52 +-
.../model_service_definition_v1_contact.rs | 11 +
.../model/model_service_definition_v1_info.rs | 15 +
...odel_service_definition_v1_integrations.rs | 6 +
.../model/model_service_definition_v1_org.rs | 11 +
.../model/model_service_definition_v2.rs | 65 +-
.../model/model_service_definition_v2_doc.rs | 5 +
.../model/model_service_definition_v2_dot1.rs | 64 +-
.../model_service_definition_v2_dot1_email.rs | 5 +
...service_definition_v2_dot1_integrations.rs | 21 +-
.../model_service_definition_v2_dot1_link.rs | 5 +
...del_service_definition_v2_dot1_ms_teams.rs | 5 +
...del_service_definition_v2_dot1_opsgenie.rs | 8 +
...el_service_definition_v2_dot1_pagerduty.rs | 6 +
.../model_service_definition_v2_dot1_slack.rs | 5 +
.../model/model_service_definition_v2_dot2.rs | 77 +-
...odel_service_definition_v2_dot2_contact.rs | 5 +
...service_definition_v2_dot2_integrations.rs | 21 +-
.../model_service_definition_v2_dot2_link.rs | 5 +
...del_service_definition_v2_dot2_opsgenie.rs | 8 +
...el_service_definition_v2_dot2_pagerduty.rs | 6 +
.../model_service_definition_v2_email.rs | 5 +
...odel_service_definition_v2_integrations.rs | 16 +-
.../model_service_definition_v2_ms_teams.rs | 5 +
.../model_service_definition_v2_opsgenie.rs | 8 +
.../model/model_service_definition_v2_repo.rs | 5 +
.../model_service_definition_v2_slack.rs | 5 +
...model_service_definitions_list_response.rs | 9 +
...slack_integration_metadata_channel_item.rs | 5 +
src/datadogV2/model/model_span.rs | 18 +-
.../model/model_spans_aggregate_bucket.rs | 21 +-
...model_spans_aggregate_bucket_attributes.rs | 28 +
...spans_aggregate_bucket_value_timeseries.rs | 1 +
...aggregate_bucket_value_timeseries_point.rs | 11 +
.../model/model_spans_aggregate_data.rs | 19 +-
.../model/model_spans_aggregate_request.rs | 8 +-
...odel_spans_aggregate_request_attributes.rs | 25 +-
.../model/model_spans_aggregate_response.rs | 16 +-
...model_spans_aggregate_response_metadata.rs | 24 +
.../model/model_spans_aggregate_sort.rs | 24 +
src/datadogV2/model/model_spans_attributes.rs | 92 +
src/datadogV2/model/model_spans_compute.rs | 15 +
src/datadogV2/model/model_spans_filter.rs | 6 +
src/datadogV2/model/model_spans_group_by.rs | 36 +-
.../model/model_spans_list_request.rs | 8 +-
.../model_spans_list_request_attributes.rs | 27 +-
.../model/model_spans_list_request_data.rs | 16 +-
.../model/model_spans_list_request_page.rs | 11 +
.../model/model_spans_list_response.rs | 20 +-
.../model/model_spans_list_response_links.rs | 6 +
.../model_spans_list_response_metadata.rs | 31 +-
.../model/model_spans_metric_compute.rs | 10 +
.../model_spans_metric_create_attributes.rs | 19 +-
.../model/model_spans_metric_create_data.rs | 4 +-
.../model_spans_metric_create_request.rs | 6 +-
.../model/model_spans_metric_filter.rs | 6 +
.../model/model_spans_metric_group_by.rs | 5 +
.../model/model_spans_metric_response.rs | 8 +-
.../model_spans_metric_response_attributes.rs | 29 +-
.../model_spans_metric_response_compute.rs | 19 +
.../model/model_spans_metric_response_data.rs | 21 +-
.../model_spans_metric_response_filter.rs | 6 +
.../model_spans_metric_response_group_by.rs | 11 +
.../model_spans_metric_update_attributes.rs | 26 +-
.../model_spans_metric_update_compute.rs | 6 +
.../model/model_spans_metric_update_data.rs | 4 +-
.../model_spans_metric_update_request.rs | 6 +-
.../model/model_spans_metrics_response.rs | 9 +
.../model/model_spans_query_filter.rs | 16 +
.../model/model_spans_query_options.rs | 11 +
.../model_spans_response_metadata_page.rs | 6 +
src/datadogV2/model/model_spans_warning.rs | 16 +
src/datadogV2/model/model_team.rs | 14 +-
src/datadogV2/model/model_team_attributes.rs | 50 +
src/datadogV2/model/model_team_create.rs | 14 +-
.../model/model_team_create_attributes.rs | 25 +
.../model/model_team_create_relationships.rs | 8 +-
.../model/model_team_create_request.rs | 4 +-
src/datadogV2/model/model_team_link.rs | 4 +-
.../model/model_team_link_attributes.rs | 10 +
src/datadogV2/model/model_team_link_create.rs | 4 +-
.../model/model_team_link_create_request.rs | 4 +-
.../model/model_team_link_response.rs | 8 +-
.../model/model_team_links_response.rs | 6 +
.../model/model_team_permission_setting.rs | 10 +-
...odel_team_permission_setting_attributes.rs | 35 +
.../model_team_permission_setting_response.rs | 8 +-
.../model_team_permission_setting_update.rs | 10 +-
...am_permission_setting_update_attributes.rs | 9 +
..._team_permission_setting_update_request.rs | 4 +-
...model_team_permission_settings_response.rs | 9 +
.../model/model_team_relationships.rs | 22 +-
.../model/model_team_relationships_links.rs | 6 +
src/datadogV2/model/model_team_response.rs | 8 +-
src/datadogV2/model/model_team_update.rs | 14 +-
.../model/model_team_update_attributes.rs | 30 +
.../model/model_team_update_relationships.rs | 11 +-
.../model/model_team_update_request.rs | 4 +-
src/datadogV2/model/model_teams_response.rs | 25 +-
.../model/model_teams_response_links.rs | 26 +
.../model/model_teams_response_meta.rs | 11 +-
.../model_teams_response_meta_pagination.rs | 41 +
.../model_timeseries_formula_query_request.rs | 4 +-
...model_timeseries_formula_query_response.rs | 13 +-
.../model/model_timeseries_formula_request.rs | 4 +-
...l_timeseries_formula_request_attributes.rs | 10 +
.../model/model_timeseries_response.rs | 19 +-
.../model_timeseries_response_attributes.rs | 19 +
.../model/model_timeseries_response_series.rs | 16 +
src/datadogV2/model/model_unit.rs | 26 +
...pplication_security_monitoring_response.rs | 6 +
.../model/model_usage_attributes_object.rs | 34 +
.../model/model_usage_data_object.rs | 21 +-
...sage_lambda_traced_invocations_response.rs | 6 +
..._usage_observability_pipelines_response.rs | 6 +
.../model/model_usage_time_series_object.rs | 11 +
src/datadogV2/model/model_user.rs | 28 +-
src/datadogV2/model/model_user_attributes.rs | 56 +
.../model/model_user_create_attributes.rs | 10 +
src/datadogV2/model/model_user_create_data.rs | 14 +-
.../model/model_user_create_request.rs | 4 +-
.../model/model_user_invitation_data.rs | 4 +-
.../model_user_invitation_data_attributes.rs | 21 +
.../model_user_invitation_relationships.rs | 6 +-
.../model/model_user_invitation_response.rs | 11 +-
.../model_user_invitation_response_data.rs | 31 +-
.../model/model_user_invitations_response.rs | 9 +
.../model/model_user_relationships.rs | 8 +-
src/datadogV2/model/model_user_response.rs | 16 +-
.../model_user_response_relationships.rs | 35 +-
src/datadogV2/model/model_user_team.rs | 17 +-
.../model/model_user_team_attributes.rs | 16 +
src/datadogV2/model/model_user_team_create.rs | 17 +-
.../model/model_user_team_permission.rs | 10 +-
.../model_user_team_permission_attributes.rs | 9 +
.../model/model_user_team_relationships.rs | 21 +-
.../model/model_user_team_request.rs | 4 +-
.../model/model_user_team_response.rs | 8 +-
src/datadogV2/model/model_user_team_update.rs | 7 +-
.../model/model_user_team_update_request.rs | 4 +-
.../model/model_user_teams_response.rs | 20 +-
.../model/model_user_update_attributes.rs | 16 +
src/datadogV2/model/model_user_update_data.rs | 4 +-
.../model/model_user_update_request.rs | 4 +-
src/datadogV2/model/model_users_response.rs | 21 +-
tests/scenarios/function_mappings.rs | 3105 +++++++----------
1572 files changed, 37862 insertions(+), 10272 deletions(-)
diff --git a/.generator/src/generator/cli.py b/.generator/src/generator/cli.py
index 0bd37c1ae..d2547f629 100644
--- a/.generator/src/generator/cli.py
+++ b/.generator/src/generator/cli.py
@@ -47,6 +47,7 @@ def cli(specs, output):
env.filters["untitle_case"] = formatter.untitle_case
env.filters["upperfirst"] = utils.upperfirst
env.filters["variable_name"] = formatter.variable_name
+ env.filters["has_optional_parameter"] = openapi.has_optional_parameter
env.globals["enumerate"] = enumerate
env.globals["responses_by_types"] = openapi.responses_by_types
diff --git a/.generator/src/generator/openapi.py b/.generator/src/generator/openapi.py
index 23f0ebffe..0bf8565bc 100644
--- a/.generator/src/generator/openapi.py
+++ b/.generator/src/generator/openapi.py
@@ -35,7 +35,6 @@ def option_wrapper(name, option, nullable):
def type_to_rust(schema, alternative_name=None, render_nullable=False, render_option=True, render_box=False, version=None):
"""Return Rust type name for the type."""
-
# special case for additionalProperties: true
if schema is True or schema == {}:
return "serde_json::Value"
@@ -90,17 +89,21 @@ def get_type_for_attribute(schema, attribute, current_name=None):
return type_to_rust(child_schema, alternative_name=alternative_name)
-def get_type_for_parameter(parameter, version=None):
+def get_type_for_parameter(parameter, version=None, render_option=None):
"""Return Rust type name for the parameter."""
- render_option = True
- if "required" in parameter:
- render_option = not parameter["required"]
+ if render_option is None:
+ render_option = not parameter.get("required")
if "content" in parameter:
assert "in" not in parameter
for content in parameter["content"].values():
return type_to_rust(content["schema"], version=version, render_option=render_option)
return type_to_rust(parameter.get("schema"), version=version, render_option=render_option)
+def has_optional_parameter(operation):
+ for _, parameter in parameters(operation):
+ if not parameter.get("required"):
+ return True
+ return False
def get_type_for_response(response, version):
"""Return Rust type name for the response."""
diff --git a/.generator/src/generator/templates/api.j2 b/.generator/src/generator/templates/api.j2
index 706e6a900..32e710cd1 100644
--- a/.generator/src/generator/templates/api.j2
+++ b/.generator/src/generator/templates/api.j2
@@ -4,33 +4,48 @@ use serde::{Serialize, Deserialize};
use crate::datadog::*;
{%- set structName = name.replace(" ", "")+"API" %}
-{% for path, method, operation in operations|sort(attribute="2.operationId", case_sensitive=True) %}
+{% for path, method, operation in operations|sort(attribute="2.operationId", case_sensitive=true) %}
{%- set httpMethod = method.upper() %}
{%- set returnType = operation|return_type(version) %}
{%- set formParameter = operation|form_parameter %}
-{%- set optionalBody = False if "required" in operation.requestBody and operation.requestBody.required else True %}
+{%- set optionalBody = false if "required" in operation.requestBody and operation.requestBody.required else true %}
+{%- set optionalParams = operation|parameters|rejectattr('1.required', 'equalto', true) | list %}
-{%- for name, parameter in operation|parameters %}
+{%- for name, parameter in optionalParams %}
{%- if loop.first %}
-/// {{ operation.operationId }}Params is a struct for passing parameters to the method [`{{ structName }}::{{operation.operationId | snake_case}}`]
-#[derive(Clone, Debug)]
-pub struct {{operation.operationId}}Params {
+/// {{operation.operationId}}OptionalParams is a struct for passing parameters to the method [`{{ structName }}::{{operation.operationId | snake_case}}`]
+#[derive(Clone, Default, Debug)]
+pub struct {{operation.operationId}}OptionalParams {
{%- endif %}
{%- if parameter.description is defined %}
{{parameter.description | block_comment}}
{%- endif %}
- {%- if optionalBody and name == operation.get("x-codegen-request-body-name", "body") %}
- pub {{name|variable_name}}: Option<{{ get_type_for_parameter(parameter, version) }}>,
- {%- else %}
pub {{name|variable_name}}: {{ get_type_for_parameter(parameter, version) }},
+{%- if loop.last %}
+}
+{% endif %}
+{%- endfor %}
+{%- for name, parameter in optionalParams %}
+{%- if loop.first %}
+impl {{operation.operationId}}OptionalParams {
+{%- endif %}
+ {%- if parameter.description is defined %}
+ {{parameter.description | block_comment}}
+ {%- endif %}
+ {%- if get_deprecated(model) %}
+ #[allow(deprecated)]
{%- endif %}
+ pub fn {{name|variable_name}}(&mut self, value: {{get_type_for_parameter(parameter, version, render_option=false)}}) -> &mut Self {
+ self.{{name|variable_name}} = Some(value);
+ self
+ }
{%- if loop.last %}
}
{% endif %}
{%- endfor %}
{%- endfor %}
-{% for path, method, operation in operations|sort(attribute="2.operationId", case_sensitive=True) %}
+{% for path, method, operation in operations|sort(attribute="2.operationId", case_sensitive=true) %}
{%- set httpMethod = method.upper() %}
{%- set returnType = operation|return_type(version) %}
{%- set formParameter = operation|form_parameter %}
@@ -69,15 +84,16 @@ impl {{ structName }} {
Self { config }
}
- {% for path, method, operation in operations|sort(attribute="2.operationId", case_sensitive=True) %}
+ {% for path, method, operation in operations|sort(attribute="2.operationId", case_sensitive=true) %}
{%- set httpMethod = method.upper() %}
{%- set returnType = operation|return_type(version) %}
{%- set formParameter = operation|form_parameter %}
+ {%- set requiredParams = operation|parameters|selectattr('1.required', 'equalto', true) | list %}
{% if operation.description is defined %}
{{ operation.description | block_comment }}
{%- endif %}
- pub async fn {{operation.operationId | snake_case}}(&self{% for name, parameter in operation|parameters %}{% if loop.first %}, params: {{operation.operationId}}Params{% endif %}{% endfor %}) -> Result