diff --git a/.apigentools-info b/.apigentools-info index 78023c37bca..db5faeae735 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.4.1.dev8", - "regenerated": "2021-06-09 08:35:43.693475", - "spec_repo_commit": "f570d1e" + "regenerated": "2021-06-10 12:25:58.449421", + "spec_repo_commit": "207a463" }, "v2": { "apigentools_version": "1.4.1.dev8", - "regenerated": "2021-06-09 08:36:14.072350", - "spec_repo_commit": "f570d1e" + "regenerated": "2021-06-10 12:26:26.486599", + "spec_repo_commit": "207a463" } } } \ No newline at end of file diff --git a/.generator/templates/model_simple.mustache b/.generator/templates/model_simple.mustache index c38eec9c5be..52090558d2e 100644 --- a/.generator/templates/model_simple.mustache +++ b/.generator/templates/model_simple.mustache @@ -397,7 +397,7 @@ func (o *{{{classname}}}) UnmarshalJSON(bytes []byte) (err error) { }{} all := struct { {{#vars}} - {{name}} {{^required}}{{^isNullable}}*{{/isNullable}}{{/required}}{{{dataType}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"}` + {{name}} {{^required}}{{^isNullable}}*{{/isNullable}}{{/required}}{{{dataType}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"` {{/vars}} }{} err = json.Unmarshal(bytes, &required) diff --git a/api/v1/datadog/model_alert_graph_widget_definition.go b/api/v1/datadog/model_alert_graph_widget_definition.go index 5aa999db882..420b6a2b2e4 100644 --- a/api/v1/datadog/model_alert_graph_widget_definition.go +++ b/api/v1/datadog/model_alert_graph_widget_definition.go @@ -282,13 +282,13 @@ func (o *AlertGraphWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { VizType *WidgetVizType `json:"viz_type"` }{} all := struct { - AlertId string `json:"alert_id"}` - Time *WidgetTime `json:"time,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type AlertGraphWidgetDefinitionType `json:"type"}` - VizType WidgetVizType `json:"viz_type"}` + AlertId string `json:"alert_id"` + Time *WidgetTime `json:"time,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type AlertGraphWidgetDefinitionType `json:"type"` + VizType WidgetVizType `json:"viz_type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_alert_value_widget_definition.go b/api/v1/datadog/model_alert_value_widget_definition.go index 5548dbbd255..f4d712a533f 100644 --- a/api/v1/datadog/model_alert_value_widget_definition.go +++ b/api/v1/datadog/model_alert_value_widget_definition.go @@ -326,14 +326,14 @@ func (o *AlertValueWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { Type *AlertValueWidgetDefinitionType `json:"type"` }{} all := struct { - AlertId string `json:"alert_id"}` - Precision *int64 `json:"precision,omitempty"}` - TextAlign *WidgetTextAlign `json:"text_align,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type AlertValueWidgetDefinitionType `json:"type"}` - Unit *string `json:"unit,omitempty"}` + AlertId string `json:"alert_id"` + Precision *int64 `json:"precision,omitempty"` + TextAlign *WidgetTextAlign `json:"text_align,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type AlertValueWidgetDefinitionType `json:"type"` + Unit *string `json:"unit,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_api_error_response.go b/api/v1/datadog/model_api_error_response.go index 1e6c3a3b88b..8123b364681 100644 --- a/api/v1/datadog/model_api_error_response.go +++ b/api/v1/datadog/model_api_error_response.go @@ -74,7 +74,7 @@ func (o *APIErrorResponse) UnmarshalJSON(bytes []byte) (err error) { Errors *[]string `json:"errors"` }{} all := struct { - Errors []string `json:"errors"}` + Errors []string `json:"errors"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_apm_stats_query_column_type.go b/api/v1/datadog/model_apm_stats_query_column_type.go index dafdd8173a0..23c40371194 100644 --- a/api/v1/datadog/model_apm_stats_query_column_type.go +++ b/api/v1/datadog/model_apm_stats_query_column_type.go @@ -183,10 +183,10 @@ func (o *ApmStatsQueryColumnType) UnmarshalJSON(bytes []byte) (err error) { Name *string `json:"name"` }{} all := struct { - Alias *string `json:"alias,omitempty"}` - CellDisplayMode *TableWidgetCellDisplayMode `json:"cell_display_mode,omitempty"}` - Name string `json:"name"}` - Order *WidgetSort `json:"order,omitempty"}` + Alias *string `json:"alias,omitempty"` + CellDisplayMode *TableWidgetCellDisplayMode `json:"cell_display_mode,omitempty"` + Name string `json:"name"` + Order *WidgetSort `json:"order,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_apm_stats_query_definition.go b/api/v1/datadog/model_apm_stats_query_definition.go index 46cbc11c0c0..ffa1d6ee535 100644 --- a/api/v1/datadog/model_apm_stats_query_definition.go +++ b/api/v1/datadog/model_apm_stats_query_definition.go @@ -271,13 +271,13 @@ func (o *ApmStatsQueryDefinition) UnmarshalJSON(bytes []byte) (err error) { Service *string `json:"service"` }{} all := struct { - Columns *[]ApmStatsQueryColumnType `json:"columns,omitempty"}` - Env string `json:"env"}` - Name string `json:"name"}` - PrimaryTag string `json:"primary_tag"}` - Resource *string `json:"resource,omitempty"}` - RowType ApmStatsQueryRowType `json:"row_type"}` - Service string `json:"service"}` + Columns *[]ApmStatsQueryColumnType `json:"columns,omitempty"` + Env string `json:"env"` + Name string `json:"name"` + PrimaryTag string `json:"primary_tag"` + Resource *string `json:"resource,omitempty"` + RowType ApmStatsQueryRowType `json:"row_type"` + Service string `json:"service"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_aws_account_and_lambda_request.go b/api/v1/datadog/model_aws_account_and_lambda_request.go index 3138294aaf1..03ef2a082bb 100644 --- a/api/v1/datadog/model_aws_account_and_lambda_request.go +++ b/api/v1/datadog/model_aws_account_and_lambda_request.go @@ -105,8 +105,8 @@ func (o *AWSAccountAndLambdaRequest) UnmarshalJSON(bytes []byte) (err error) { LambdaArn *string `json:"lambda_arn"` }{} all := struct { - AccountId string `json:"account_id"}` - LambdaArn string `json:"lambda_arn"}` + AccountId string `json:"account_id"` + LambdaArn string `json:"lambda_arn"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_aws_logs_services_request.go b/api/v1/datadog/model_aws_logs_services_request.go index cda35bc393b..08a4b34df38 100644 --- a/api/v1/datadog/model_aws_logs_services_request.go +++ b/api/v1/datadog/model_aws_logs_services_request.go @@ -105,8 +105,8 @@ func (o *AWSLogsServicesRequest) UnmarshalJSON(bytes []byte) (err error) { Services *[]string `json:"services"` }{} all := struct { - AccountId string `json:"account_id"}` - Services []string `json:"services"}` + AccountId string `json:"account_id"` + Services []string `json:"services"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_cancel_downtimes_by_scope_request.go b/api/v1/datadog/model_cancel_downtimes_by_scope_request.go index 6f3f2241a87..76646876011 100644 --- a/api/v1/datadog/model_cancel_downtimes_by_scope_request.go +++ b/api/v1/datadog/model_cancel_downtimes_by_scope_request.go @@ -74,7 +74,7 @@ func (o *CancelDowntimesByScopeRequest) UnmarshalJSON(bytes []byte) (err error) Scope *string `json:"scope"` }{} all := struct { - Scope string `json:"scope"}` + Scope string `json:"scope"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_change_widget_definition.go b/api/v1/datadog/model_change_widget_definition.go index fcdd3c5b28b..5558e5a1f5c 100644 --- a/api/v1/datadog/model_change_widget_definition.go +++ b/api/v1/datadog/model_change_widget_definition.go @@ -289,13 +289,13 @@ func (o *ChangeWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { Type *ChangeWidgetDefinitionType `json:"type"` }{} all := struct { - CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"}` - Requests []ChangeWidgetRequest `json:"requests"}` - Time *WidgetTime `json:"time,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type ChangeWidgetDefinitionType `json:"type"}` + CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"` + Requests []ChangeWidgetRequest `json:"requests"` + Time *WidgetTime `json:"time,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type ChangeWidgetDefinitionType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_check_can_delete_monitor_response.go b/api/v1/datadog/model_check_can_delete_monitor_response.go index 84cdbe4b1f1..15f4cabf6c0 100644 --- a/api/v1/datadog/model_check_can_delete_monitor_response.go +++ b/api/v1/datadog/model_check_can_delete_monitor_response.go @@ -110,8 +110,8 @@ func (o *CheckCanDeleteMonitorResponse) UnmarshalJSON(bytes []byte) (err error) Data *CheckCanDeleteMonitorResponseData `json:"data"` }{} all := struct { - Data CheckCanDeleteMonitorResponseData `json:"data"}` - Errors *map[string][]string `json:"errors,omitempty"}` + Data CheckCanDeleteMonitorResponseData `json:"data"` + Errors *map[string][]string `json:"errors,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_check_status_widget_definition.go b/api/v1/datadog/model_check_status_widget_definition.go index 5d1fe402709..fdc02fcfe0e 100644 --- a/api/v1/datadog/model_check_status_widget_definition.go +++ b/api/v1/datadog/model_check_status_widget_definition.go @@ -393,16 +393,16 @@ func (o *CheckStatusWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { Type *CheckStatusWidgetDefinitionType `json:"type"` }{} all := struct { - Check string `json:"check"}` - Group *string `json:"group,omitempty"}` - GroupBy *[]string `json:"group_by,omitempty"}` - Grouping WidgetGrouping `json:"grouping"}` - Tags *[]string `json:"tags,omitempty"}` - Time *WidgetTime `json:"time,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type CheckStatusWidgetDefinitionType `json:"type"}` + Check string `json:"check"` + Group *string `json:"group,omitempty"` + GroupBy *[]string `json:"group_by,omitempty"` + Grouping WidgetGrouping `json:"grouping"` + Tags *[]string `json:"tags,omitempty"` + Time *WidgetTime `json:"time,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type CheckStatusWidgetDefinitionType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_dashboard.go b/api/v1/datadog/model_dashboard.go index c2f7a46cc11..396e84fc4ed 100644 --- a/api/v1/datadog/model_dashboard.go +++ b/api/v1/datadog/model_dashboard.go @@ -560,20 +560,20 @@ func (o *Dashboard) UnmarshalJSON(bytes []byte) (err error) { Widgets *[]Widget `json:"widgets"` }{} all := struct { - AuthorHandle *string `json:"author_handle,omitempty"}` - CreatedAt *time.Time `json:"created_at,omitempty"}` - Description NullableString `json:"description,omitempty"}` - Id *string `json:"id,omitempty"}` - IsReadOnly *bool `json:"is_read_only,omitempty"}` - LayoutType DashboardLayoutType `json:"layout_type"}` - ModifiedAt *time.Time `json:"modified_at,omitempty"}` - NotifyList []string `json:"notify_list,omitempty"}` - ReflowType *DashboardReflowType `json:"reflow_type,omitempty"}` - TemplateVariablePresets []DashboardTemplateVariablePreset `json:"template_variable_presets,omitempty"}` - TemplateVariables []DashboardTemplateVariable `json:"template_variables,omitempty"}` - Title string `json:"title"}` - Url *string `json:"url,omitempty"}` - Widgets []Widget `json:"widgets"}` + AuthorHandle *string `json:"author_handle,omitempty"` + CreatedAt *time.Time `json:"created_at,omitempty"` + Description NullableString `json:"description,omitempty"` + Id *string `json:"id,omitempty"` + IsReadOnly *bool `json:"is_read_only,omitempty"` + LayoutType DashboardLayoutType `json:"layout_type"` + ModifiedAt *time.Time `json:"modified_at,omitempty"` + NotifyList []string `json:"notify_list,omitempty"` + ReflowType *DashboardReflowType `json:"reflow_type,omitempty"` + TemplateVariablePresets []DashboardTemplateVariablePreset `json:"template_variable_presets,omitempty"` + TemplateVariables []DashboardTemplateVariable `json:"template_variables,omitempty"` + Title string `json:"title"` + Url *string `json:"url,omitempty"` + Widgets []Widget `json:"widgets"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_dashboard_list.go b/api/v1/datadog/model_dashboard_list.go index 29a6eb1181f..c042ca116f0 100644 --- a/api/v1/datadog/model_dashboard_list.go +++ b/api/v1/datadog/model_dashboard_list.go @@ -333,14 +333,14 @@ func (o *DashboardList) UnmarshalJSON(bytes []byte) (err error) { Name *string `json:"name"` }{} all := struct { - Author *Creator `json:"author,omitempty"}` - Created *time.Time `json:"created,omitempty"}` - DashboardCount *int64 `json:"dashboard_count,omitempty"}` - Id *int64 `json:"id,omitempty"}` - IsFavorite *bool `json:"is_favorite,omitempty"}` - Modified *time.Time `json:"modified,omitempty"}` - Name string `json:"name"}` - Type *string `json:"type,omitempty"}` + Author *Creator `json:"author,omitempty"` + Created *time.Time `json:"created,omitempty"` + DashboardCount *int64 `json:"dashboard_count,omitempty"` + Id *int64 `json:"id,omitempty"` + IsFavorite *bool `json:"is_favorite,omitempty"` + Modified *time.Time `json:"modified,omitempty"` + Name string `json:"name"` + Type *string `json:"type,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_dashboard_template_variable.go b/api/v1/datadog/model_dashboard_template_variable.go index 6b9612fd544..422b7aa191b 100644 --- a/api/v1/datadog/model_dashboard_template_variable.go +++ b/api/v1/datadog/model_dashboard_template_variable.go @@ -170,9 +170,9 @@ func (o *DashboardTemplateVariable) UnmarshalJSON(bytes []byte) (err error) { Name *string `json:"name"` }{} all := struct { - Default NullableString `json:"default,omitempty"}` - Name string `json:"name"}` - Prefix NullableString `json:"prefix,omitempty"}` + Default NullableString `json:"default,omitempty"` + Name string `json:"name"` + Prefix NullableString `json:"prefix,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_distribution_widget_definition.go b/api/v1/datadog/model_distribution_widget_definition.go index 5d209e1434c..d08f0887a69 100644 --- a/api/v1/datadog/model_distribution_widget_definition.go +++ b/api/v1/datadog/model_distribution_widget_definition.go @@ -435,17 +435,17 @@ func (o *DistributionWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { Type *DistributionWidgetDefinitionType `json:"type"` }{} all := struct { - LegendSize *string `json:"legend_size,omitempty"}` - Markers *[]WidgetMarker `json:"markers,omitempty"}` - Requests []DistributionWidgetRequest `json:"requests"}` - ShowLegend *bool `json:"show_legend,omitempty"}` - Time *WidgetTime `json:"time,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type DistributionWidgetDefinitionType `json:"type"}` - Xaxis *DistributionWidgetXAxis `json:"xaxis,omitempty"}` - Yaxis *DistributionWidgetYAxis `json:"yaxis,omitempty"}` + LegendSize *string `json:"legend_size,omitempty"` + Markers *[]WidgetMarker `json:"markers,omitempty"` + Requests []DistributionWidgetRequest `json:"requests"` + ShowLegend *bool `json:"show_legend,omitempty"` + Time *WidgetTime `json:"time,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type DistributionWidgetDefinitionType `json:"type"` + Xaxis *DistributionWidgetXAxis `json:"xaxis,omitempty"` + Yaxis *DistributionWidgetYAxis `json:"yaxis,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_event_create_request.go b/api/v1/datadog/model_event_create_request.go index b00602130ab..60813180615 100644 --- a/api/v1/datadog/model_event_create_request.go +++ b/api/v1/datadog/model_event_create_request.go @@ -547,20 +547,20 @@ func (o *EventCreateRequest) UnmarshalJSON(bytes []byte) (err error) { Title *string `json:"title"` }{} all := struct { - AggregationKey *string `json:"aggregation_key,omitempty"}` - AlertType *EventAlertType `json:"alert_type,omitempty"}` - DateHappened *int64 `json:"date_happened,omitempty"}` - DeviceName *string `json:"device_name,omitempty"}` - Host *string `json:"host,omitempty"}` - Id *int64 `json:"id,omitempty"}` - Payload *string `json:"payload,omitempty"}` - Priority *EventPriority `json:"priority,omitempty"}` - RelatedEventId *int64 `json:"related_event_id,omitempty"}` - SourceTypeName *string `json:"source_type_name,omitempty"}` - Tags *[]string `json:"tags,omitempty"}` - Text string `json:"text"}` - Title string `json:"title"}` - Url *string `json:"url,omitempty"}` + AggregationKey *string `json:"aggregation_key,omitempty"` + AlertType *EventAlertType `json:"alert_type,omitempty"` + DateHappened *int64 `json:"date_happened,omitempty"` + DeviceName *string `json:"device_name,omitempty"` + Host *string `json:"host,omitempty"` + Id *int64 `json:"id,omitempty"` + Payload *string `json:"payload,omitempty"` + Priority *EventPriority `json:"priority,omitempty"` + RelatedEventId *int64 `json:"related_event_id,omitempty"` + SourceTypeName *string `json:"source_type_name,omitempty"` + Tags *[]string `json:"tags,omitempty"` + Text string `json:"text"` + Title string `json:"title"` + Url *string `json:"url,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_event_query_definition.go b/api/v1/datadog/model_event_query_definition.go index ec489a9697b..3b85b6cca15 100644 --- a/api/v1/datadog/model_event_query_definition.go +++ b/api/v1/datadog/model_event_query_definition.go @@ -105,8 +105,8 @@ func (o *EventQueryDefinition) UnmarshalJSON(bytes []byte) (err error) { TagsExecution *string `json:"tags_execution"` }{} all := struct { - Search string `json:"search"}` - TagsExecution string `json:"tags_execution"}` + Search string `json:"search"` + TagsExecution string `json:"tags_execution"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_event_stream_widget_definition.go b/api/v1/datadog/model_event_stream_widget_definition.go index 8f87f44a3da..b02f1740eb7 100644 --- a/api/v1/datadog/model_event_stream_widget_definition.go +++ b/api/v1/datadog/model_event_stream_widget_definition.go @@ -325,14 +325,14 @@ func (o *EventStreamWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { Type *EventStreamWidgetDefinitionType `json:"type"` }{} all := struct { - EventSize *WidgetEventSize `json:"event_size,omitempty"}` - Query string `json:"query"}` - TagsExecution *string `json:"tags_execution,omitempty"}` - Time *WidgetTime `json:"time,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type EventStreamWidgetDefinitionType `json:"type"}` + EventSize *WidgetEventSize `json:"event_size,omitempty"` + Query string `json:"query"` + TagsExecution *string `json:"tags_execution,omitempty"` + Time *WidgetTime `json:"time,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type EventStreamWidgetDefinitionType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_event_timeline_widget_definition.go b/api/v1/datadog/model_event_timeline_widget_definition.go index 21bdd774599..561f16dd124 100644 --- a/api/v1/datadog/model_event_timeline_widget_definition.go +++ b/api/v1/datadog/model_event_timeline_widget_definition.go @@ -289,13 +289,13 @@ func (o *EventTimelineWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) Type *EventTimelineWidgetDefinitionType `json:"type"` }{} all := struct { - Query string `json:"query"}` - TagsExecution *string `json:"tags_execution,omitempty"}` - Time *WidgetTime `json:"time,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type EventTimelineWidgetDefinitionType `json:"type"}` + Query string `json:"query"` + TagsExecution *string `json:"tags_execution,omitempty"` + Time *WidgetTime `json:"time,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type EventTimelineWidgetDefinitionType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_formula_and_function_event_query_definition.go b/api/v1/datadog/model_formula_and_function_event_query_definition.go index e76d1ece400..fb7e6543d60 100644 --- a/api/v1/datadog/model_formula_and_function_event_query_definition.go +++ b/api/v1/datadog/model_formula_and_function_event_query_definition.go @@ -244,12 +244,12 @@ func (o *FormulaAndFunctionEventQueryDefinition) UnmarshalJSON(bytes []byte) (er Name *string `json:"name"` }{} all := struct { - Compute FormulaAndFunctionEventQueryDefinitionCompute `json:"compute"}` - DataSource FormulaAndFunctionEventsDataSource `json:"data_source"}` - GroupBy *[]FormulaAndFunctionEventQueryGroupBy `json:"group_by,omitempty"}` - Indexes *[]string `json:"indexes,omitempty"}` - Name string `json:"name"}` - Search *FormulaAndFunctionEventQueryDefinitionSearch `json:"search,omitempty"}` + Compute FormulaAndFunctionEventQueryDefinitionCompute `json:"compute"` + DataSource FormulaAndFunctionEventsDataSource `json:"data_source"` + GroupBy *[]FormulaAndFunctionEventQueryGroupBy `json:"group_by,omitempty"` + Indexes *[]string `json:"indexes,omitempty"` + Name string `json:"name"` + Search *FormulaAndFunctionEventQueryDefinitionSearch `json:"search,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_formula_and_function_event_query_definition_compute.go b/api/v1/datadog/model_formula_and_function_event_query_definition_compute.go index 9a21f2192e2..a601bbc746d 100644 --- a/api/v1/datadog/model_formula_and_function_event_query_definition_compute.go +++ b/api/v1/datadog/model_formula_and_function_event_query_definition_compute.go @@ -147,9 +147,9 @@ func (o *FormulaAndFunctionEventQueryDefinitionCompute) UnmarshalJSON(bytes []by Aggregation *FormulaAndFunctionEventAggregation `json:"aggregation"` }{} all := struct { - Aggregation FormulaAndFunctionEventAggregation `json:"aggregation"}` - Interval *int64 `json:"interval,omitempty"}` - Metric *string `json:"metric,omitempty"}` + Aggregation FormulaAndFunctionEventAggregation `json:"aggregation"` + Interval *int64 `json:"interval,omitempty"` + Metric *string `json:"metric,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_formula_and_function_event_query_definition_search.go b/api/v1/datadog/model_formula_and_function_event_query_definition_search.go index 731e8b6313b..7717ec102c8 100644 --- a/api/v1/datadog/model_formula_and_function_event_query_definition_search.go +++ b/api/v1/datadog/model_formula_and_function_event_query_definition_search.go @@ -74,7 +74,7 @@ func (o *FormulaAndFunctionEventQueryDefinitionSearch) UnmarshalJSON(bytes []byt Query *string `json:"query"` }{} all := struct { - Query string `json:"query"}` + Query string `json:"query"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_formula_and_function_event_query_group_by.go b/api/v1/datadog/model_formula_and_function_event_query_group_by.go index c52446041f5..bf5e643dbc0 100644 --- a/api/v1/datadog/model_formula_and_function_event_query_group_by.go +++ b/api/v1/datadog/model_formula_and_function_event_query_group_by.go @@ -147,9 +147,9 @@ func (o *FormulaAndFunctionEventQueryGroupBy) UnmarshalJSON(bytes []byte) (err e Facet *string `json:"facet"` }{} all := struct { - Facet string `json:"facet"}` - Limit *int64 `json:"limit,omitempty"}` - Sort *FormulaAndFunctionEventQueryGroupBySort `json:"sort,omitempty"}` + Facet string `json:"facet"` + Limit *int64 `json:"limit,omitempty"` + Sort *FormulaAndFunctionEventQueryGroupBySort `json:"sort,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_formula_and_function_event_query_group_by_sort.go b/api/v1/datadog/model_formula_and_function_event_query_group_by_sort.go index 9a0aca78232..4889a12d42d 100644 --- a/api/v1/datadog/model_formula_and_function_event_query_group_by_sort.go +++ b/api/v1/datadog/model_formula_and_function_event_query_group_by_sort.go @@ -150,9 +150,9 @@ func (o *FormulaAndFunctionEventQueryGroupBySort) UnmarshalJSON(bytes []byte) (e Aggregation *FormulaAndFunctionEventAggregation `json:"aggregation"` }{} all := struct { - Aggregation FormulaAndFunctionEventAggregation `json:"aggregation"}` - Metric *string `json:"metric,omitempty"}` - Order *QuerySortOrder `json:"order,omitempty"}` + Aggregation FormulaAndFunctionEventAggregation `json:"aggregation"` + Metric *string `json:"metric,omitempty"` + Order *QuerySortOrder `json:"order,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_formula_and_function_metric_query_definition.go b/api/v1/datadog/model_formula_and_function_metric_query_definition.go index 6408a40c022..86f9cb9fd7c 100644 --- a/api/v1/datadog/model_formula_and_function_metric_query_definition.go +++ b/api/v1/datadog/model_formula_and_function_metric_query_definition.go @@ -171,10 +171,10 @@ func (o *FormulaAndFunctionMetricQueryDefinition) UnmarshalJSON(bytes []byte) (e Query *string `json:"query"` }{} all := struct { - Aggregator *FormulaAndFunctionMetricAggregation `json:"aggregator,omitempty"}` - DataSource FormulaAndFunctionMetricDataSource `json:"data_source"}` - Name string `json:"name"}` - Query string `json:"query"}` + Aggregator *FormulaAndFunctionMetricAggregation `json:"aggregator,omitempty"` + DataSource FormulaAndFunctionMetricDataSource `json:"data_source"` + Name string `json:"name"` + Query string `json:"query"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_formula_and_function_process_query_definition.go b/api/v1/datadog/model_formula_and_function_process_query_definition.go index 87116e4cd25..d4544739e77 100644 --- a/api/v1/datadog/model_formula_and_function_process_query_definition.go +++ b/api/v1/datadog/model_formula_and_function_process_query_definition.go @@ -359,15 +359,15 @@ func (o *FormulaAndFunctionProcessQueryDefinition) UnmarshalJSON(bytes []byte) ( Name *string `json:"name"` }{} all := struct { - Aggregator *FormulaAndFunctionMetricAggregation `json:"aggregator,omitempty"}` - DataSource FormulaAndFunctionProcessQueryDataSource `json:"data_source"}` - IsNormalizedCpu *bool `json:"is_normalized_cpu,omitempty"}` - Limit *int64 `json:"limit,omitempty"}` - Metric string `json:"metric"}` - Name string `json:"name"}` - Sort *QuerySortOrder `json:"sort,omitempty"}` - TagFilters *[]string `json:"tag_filters,omitempty"}` - TextFilter *string `json:"text_filter,omitempty"}` + Aggregator *FormulaAndFunctionMetricAggregation `json:"aggregator,omitempty"` + DataSource FormulaAndFunctionProcessQueryDataSource `json:"data_source"` + IsNormalizedCpu *bool `json:"is_normalized_cpu,omitempty"` + Limit *int64 `json:"limit,omitempty"` + Metric string `json:"metric"` + Name string `json:"name"` + Sort *QuerySortOrder `json:"sort,omitempty"` + TagFilters *[]string `json:"tag_filters,omitempty"` + TextFilter *string `json:"text_filter,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_free_text_widget_definition.go b/api/v1/datadog/model_free_text_widget_definition.go index fbf0d3c07c9..4eaffd96c7f 100644 --- a/api/v1/datadog/model_free_text_widget_definition.go +++ b/api/v1/datadog/model_free_text_widget_definition.go @@ -216,11 +216,11 @@ func (o *FreeTextWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { Type *FreeTextWidgetDefinitionType `json:"type"` }{} all := struct { - Color *string `json:"color,omitempty"}` - FontSize *string `json:"font_size,omitempty"}` - Text string `json:"text"}` - TextAlign *WidgetTextAlign `json:"text_align,omitempty"}` - Type FreeTextWidgetDefinitionType `json:"type"}` + Color *string `json:"color,omitempty"` + FontSize *string `json:"font_size,omitempty"` + Text string `json:"text"` + TextAlign *WidgetTextAlign `json:"text_align,omitempty"` + Type FreeTextWidgetDefinitionType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_geomap_widget_definition.go b/api/v1/datadog/model_geomap_widget_definition.go index fcc3eea30a9..abba63d7b02 100644 --- a/api/v1/datadog/model_geomap_widget_definition.go +++ b/api/v1/datadog/model_geomap_widget_definition.go @@ -349,15 +349,15 @@ func (o *GeomapWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { View *GeomapWidgetDefinitionView `json:"view"` }{} all := struct { - CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"}` - Requests []GeomapWidgetRequest `json:"requests"}` - Style GeomapWidgetDefinitionStyle `json:"style"}` - Time *WidgetTime `json:"time,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type GeomapWidgetDefinitionType `json:"type"}` - View GeomapWidgetDefinitionView `json:"view"}` + CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"` + Requests []GeomapWidgetRequest `json:"requests"` + Style GeomapWidgetDefinitionStyle `json:"style"` + Time *WidgetTime `json:"time,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type GeomapWidgetDefinitionType `json:"type"` + View GeomapWidgetDefinitionView `json:"view"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_geomap_widget_definition_style.go b/api/v1/datadog/model_geomap_widget_definition_style.go index 096a0bd69b7..5e3c20248d5 100644 --- a/api/v1/datadog/model_geomap_widget_definition_style.go +++ b/api/v1/datadog/model_geomap_widget_definition_style.go @@ -105,8 +105,8 @@ func (o *GeomapWidgetDefinitionStyle) UnmarshalJSON(bytes []byte) (err error) { PaletteFlip *bool `json:"palette_flip"` }{} all := struct { - Palette string `json:"palette"}` - PaletteFlip bool `json:"palette_flip"}` + Palette string `json:"palette"` + PaletteFlip bool `json:"palette_flip"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_geomap_widget_definition_view.go b/api/v1/datadog/model_geomap_widget_definition_view.go index 610e34a3329..40dce055912 100644 --- a/api/v1/datadog/model_geomap_widget_definition_view.go +++ b/api/v1/datadog/model_geomap_widget_definition_view.go @@ -74,7 +74,7 @@ func (o *GeomapWidgetDefinitionView) UnmarshalJSON(bytes []byte) (err error) { Focus *string `json:"focus"` }{} all := struct { - Focus string `json:"focus"}` + Focus string `json:"focus"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_group_widget_definition.go b/api/v1/datadog/model_group_widget_definition.go index dc0619b50c1..7594daa54ca 100644 --- a/api/v1/datadog/model_group_widget_definition.go +++ b/api/v1/datadog/model_group_widget_definition.go @@ -324,14 +324,14 @@ func (o *GroupWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { Widgets *[]Widget `json:"widgets"` }{} all := struct { - BackgroundColor *string `json:"background_color,omitempty"}` - BannerImg *string `json:"banner_img,omitempty"}` - LayoutType WidgetLayoutType `json:"layout_type"}` - ShowTitle *bool `json:"show_title,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - Type GroupWidgetDefinitionType `json:"type"}` - Widgets []Widget `json:"widgets"}` + BackgroundColor *string `json:"background_color,omitempty"` + BannerImg *string `json:"banner_img,omitempty"` + LayoutType WidgetLayoutType `json:"layout_type"` + ShowTitle *bool `json:"show_title,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + Type GroupWidgetDefinitionType `json:"type"` + Widgets []Widget `json:"widgets"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_heat_map_widget_definition.go b/api/v1/datadog/model_heat_map_widget_definition.go index 4563dd4e862..45bb960a0f8 100644 --- a/api/v1/datadog/model_heat_map_widget_definition.go +++ b/api/v1/datadog/model_heat_map_widget_definition.go @@ -436,17 +436,17 @@ func (o *HeatMapWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { Type *HeatMapWidgetDefinitionType `json:"type"` }{} all := struct { - CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"}` - Events *[]WidgetEvent `json:"events,omitempty"}` - LegendSize *string `json:"legend_size,omitempty"}` - Requests []HeatMapWidgetRequest `json:"requests"}` - ShowLegend *bool `json:"show_legend,omitempty"}` - Time *WidgetTime `json:"time,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type HeatMapWidgetDefinitionType `json:"type"}` - Yaxis *WidgetAxis `json:"yaxis,omitempty"}` + CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"` + Events *[]WidgetEvent `json:"events,omitempty"` + LegendSize *string `json:"legend_size,omitempty"` + Requests []HeatMapWidgetRequest `json:"requests"` + ShowLegend *bool `json:"show_legend,omitempty"` + Time *WidgetTime `json:"time,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type HeatMapWidgetDefinitionType `json:"type"` + Yaxis *WidgetAxis `json:"yaxis,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_host_map_widget_definition.go b/api/v1/datadog/model_host_map_widget_definition.go index 162a11bb1dc..4253547105a 100644 --- a/api/v1/datadog/model_host_map_widget_definition.go +++ b/api/v1/datadog/model_host_map_widget_definition.go @@ -509,19 +509,19 @@ func (o *HostMapWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { Type *HostMapWidgetDefinitionType `json:"type"` }{} all := struct { - CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"}` - Group *[]string `json:"group,omitempty"}` - NoGroupHosts *bool `json:"no_group_hosts,omitempty"}` - NoMetricHosts *bool `json:"no_metric_hosts,omitempty"}` - NodeType *WidgetNodeType `json:"node_type,omitempty"}` - Notes *string `json:"notes,omitempty"}` - Requests HostMapWidgetDefinitionRequests `json:"requests"}` - Scope *[]string `json:"scope,omitempty"}` - Style *HostMapWidgetDefinitionStyle `json:"style,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type HostMapWidgetDefinitionType `json:"type"}` + CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"` + Group *[]string `json:"group,omitempty"` + NoGroupHosts *bool `json:"no_group_hosts,omitempty"` + NoMetricHosts *bool `json:"no_metric_hosts,omitempty"` + NodeType *WidgetNodeType `json:"node_type,omitempty"` + Notes *string `json:"notes,omitempty"` + Requests HostMapWidgetDefinitionRequests `json:"requests"` + Scope *[]string `json:"scope,omitempty"` + Style *HostMapWidgetDefinitionStyle `json:"style,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type HostMapWidgetDefinitionType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_http_log_error.go b/api/v1/datadog/model_http_log_error.go index e7b6953391d..d2d7b8957ea 100644 --- a/api/v1/datadog/model_http_log_error.go +++ b/api/v1/datadog/model_http_log_error.go @@ -105,8 +105,8 @@ func (o *HTTPLogError) UnmarshalJSON(bytes []byte) (err error) { Message *string `json:"message"` }{} all := struct { - Code int32 `json:"code"}` - Message string `json:"message"}` + Code int32 `json:"code"` + Message string `json:"message"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_i_frame_widget_definition.go b/api/v1/datadog/model_i_frame_widget_definition.go index 0ea29fec2b5..2b7c53cca38 100644 --- a/api/v1/datadog/model_i_frame_widget_definition.go +++ b/api/v1/datadog/model_i_frame_widget_definition.go @@ -106,8 +106,8 @@ func (o *IFrameWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { Url *string `json:"url"` }{} all := struct { - Type IFrameWidgetDefinitionType `json:"type"}` - Url string `json:"url"}` + Type IFrameWidgetDefinitionType `json:"type"` + Url string `json:"url"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_idp_form_data.go b/api/v1/datadog/model_idp_form_data.go index a4086da8ebc..ba28d6ed548 100644 --- a/api/v1/datadog/model_idp_form_data.go +++ b/api/v1/datadog/model_idp_form_data.go @@ -75,7 +75,7 @@ func (o *IdpFormData) UnmarshalJSON(bytes []byte) (err error) { IdpFile **os.File `json:"idp_file"` }{} all := struct { - IdpFile *os.File `json:"idp_file"}` + IdpFile *os.File `json:"idp_file"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_idp_response.go b/api/v1/datadog/model_idp_response.go index 31314e1e238..b57b69e79b5 100644 --- a/api/v1/datadog/model_idp_response.go +++ b/api/v1/datadog/model_idp_response.go @@ -74,7 +74,7 @@ func (o *IdpResponse) UnmarshalJSON(bytes []byte) (err error) { Message *string `json:"message"` }{} all := struct { - Message string `json:"message"}` + Message string `json:"message"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_image_widget_definition.go b/api/v1/datadog/model_image_widget_definition.go index cbd2c475bde..d8fe1069910 100644 --- a/api/v1/datadog/model_image_widget_definition.go +++ b/api/v1/datadog/model_image_widget_definition.go @@ -369,15 +369,15 @@ func (o *ImageWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { Url *string `json:"url"` }{} all := struct { - HasBackground *bool `json:"has_background,omitempty"}` - HasBorder *bool `json:"has_border,omitempty"}` - HorizontalAlign *WidgetHorizontalAlign `json:"horizontal_align,omitempty"}` - Margin *WidgetMargin `json:"margin,omitempty"}` - Sizing *WidgetImageSizing `json:"sizing,omitempty"}` - Type ImageWidgetDefinitionType `json:"type"}` - Url string `json:"url"}` - UrlDarkTheme *string `json:"url_dark_theme,omitempty"}` - VerticalAlign *WidgetVerticalAlign `json:"vertical_align,omitempty"}` + HasBackground *bool `json:"has_background,omitempty"` + HasBorder *bool `json:"has_border,omitempty"` + HorizontalAlign *WidgetHorizontalAlign `json:"horizontal_align,omitempty"` + Margin *WidgetMargin `json:"margin,omitempty"` + Sizing *WidgetImageSizing `json:"sizing,omitempty"` + Type ImageWidgetDefinitionType `json:"type"` + Url string `json:"url"` + UrlDarkTheme *string `json:"url_dark_theme,omitempty"` + VerticalAlign *WidgetVerticalAlign `json:"vertical_align,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_log_query_definition_group_by.go b/api/v1/datadog/model_log_query_definition_group_by.go index 65c94686fdb..9e48c867aef 100644 --- a/api/v1/datadog/model_log_query_definition_group_by.go +++ b/api/v1/datadog/model_log_query_definition_group_by.go @@ -147,9 +147,9 @@ func (o *LogQueryDefinitionGroupBy) UnmarshalJSON(bytes []byte) (err error) { Facet *string `json:"facet"` }{} all := struct { - Facet string `json:"facet"}` - Limit *int64 `json:"limit,omitempty"}` - Sort *LogQueryDefinitionGroupBySort `json:"sort,omitempty"}` + Facet string `json:"facet"` + Limit *int64 `json:"limit,omitempty"` + Sort *LogQueryDefinitionGroupBySort `json:"sort,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_log_query_definition_group_by_sort.go b/api/v1/datadog/model_log_query_definition_group_by_sort.go index 74b7f0cf478..8c70e75b7ba 100644 --- a/api/v1/datadog/model_log_query_definition_group_by_sort.go +++ b/api/v1/datadog/model_log_query_definition_group_by_sort.go @@ -141,9 +141,9 @@ func (o *LogQueryDefinitionGroupBySort) UnmarshalJSON(bytes []byte) (err error) Order *WidgetSort `json:"order"` }{} all := struct { - Aggregation string `json:"aggregation"}` - Facet *string `json:"facet,omitempty"}` - Order WidgetSort `json:"order"}` + Aggregation string `json:"aggregation"` + Facet *string `json:"facet,omitempty"` + Order WidgetSort `json:"order"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_log_query_definition_search.go b/api/v1/datadog/model_log_query_definition_search.go index 141339ef997..c19830e2497 100644 --- a/api/v1/datadog/model_log_query_definition_search.go +++ b/api/v1/datadog/model_log_query_definition_search.go @@ -74,7 +74,7 @@ func (o *LogQueryDefinitionSearch) UnmarshalJSON(bytes []byte) (err error) { Query *string `json:"query"` }{} all := struct { - Query string `json:"query"}` + Query string `json:"query"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_log_stream_widget_definition.go b/api/v1/datadog/model_log_stream_widget_definition.go index c0f22ec1270..b53c2f7eb9c 100644 --- a/api/v1/datadog/model_log_stream_widget_definition.go +++ b/api/v1/datadog/model_log_stream_widget_definition.go @@ -515,19 +515,19 @@ func (o *LogStreamWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { Type *LogStreamWidgetDefinitionType `json:"type"` }{} all := struct { - Columns *[]string `json:"columns,omitempty"}` - Indexes *[]string `json:"indexes,omitempty"}` - Logset *string `json:"logset,omitempty"}` - MessageDisplay *WidgetMessageDisplay `json:"message_display,omitempty"}` - Query *string `json:"query,omitempty"}` - ShowDateColumn *bool `json:"show_date_column,omitempty"}` - ShowMessageColumn *bool `json:"show_message_column,omitempty"}` - Sort *WidgetFieldSort `json:"sort,omitempty"}` - Time *WidgetTime `json:"time,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type LogStreamWidgetDefinitionType `json:"type"}` + Columns *[]string `json:"columns,omitempty"` + Indexes *[]string `json:"indexes,omitempty"` + Logset *string `json:"logset,omitempty"` + MessageDisplay *WidgetMessageDisplay `json:"message_display,omitempty"` + Query *string `json:"query,omitempty"` + ShowDateColumn *bool `json:"show_date_column,omitempty"` + ShowMessageColumn *bool `json:"show_message_column,omitempty"` + Sort *WidgetFieldSort `json:"sort,omitempty"` + Time *WidgetTime `json:"time,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type LogStreamWidgetDefinitionType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_arithmetic_processor.go b/api/v1/datadog/model_logs_arithmetic_processor.go index f9613f198a3..5ea52aabfca 100644 --- a/api/v1/datadog/model_logs_arithmetic_processor.go +++ b/api/v1/datadog/model_logs_arithmetic_processor.go @@ -256,12 +256,12 @@ func (o *LogsArithmeticProcessor) UnmarshalJSON(bytes []byte) (err error) { Type *LogsArithmeticProcessorType `json:"type"` }{} all := struct { - Expression string `json:"expression"}` - IsEnabled *bool `json:"is_enabled,omitempty"}` - IsReplaceMissing *bool `json:"is_replace_missing,omitempty"}` - Name *string `json:"name,omitempty"}` - Target string `json:"target"}` - Type LogsArithmeticProcessorType `json:"type"}` + Expression string `json:"expression"` + IsEnabled *bool `json:"is_enabled,omitempty"` + IsReplaceMissing *bool `json:"is_replace_missing,omitempty"` + Name *string `json:"name,omitempty"` + Target string `json:"target"` + Type LogsArithmeticProcessorType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_attribute_remapper.go b/api/v1/datadog/model_logs_attribute_remapper.go index 35dad83c247..7091c9ff038 100644 --- a/api/v1/datadog/model_logs_attribute_remapper.go +++ b/api/v1/datadog/model_logs_attribute_remapper.go @@ -415,16 +415,16 @@ func (o *LogsAttributeRemapper) UnmarshalJSON(bytes []byte) (err error) { Type *LogsAttributeRemapperType `json:"type"` }{} all := struct { - IsEnabled *bool `json:"is_enabled,omitempty"}` - Name *string `json:"name,omitempty"}` - OverrideOnConflict *bool `json:"override_on_conflict,omitempty"}` - PreserveSource *bool `json:"preserve_source,omitempty"}` - SourceType *string `json:"source_type,omitempty"}` - Sources []string `json:"sources"}` - Target string `json:"target"}` - TargetFormat *TargetFormatType `json:"target_format,omitempty"}` - TargetType *string `json:"target_type,omitempty"}` - Type LogsAttributeRemapperType `json:"type"}` + IsEnabled *bool `json:"is_enabled,omitempty"` + Name *string `json:"name,omitempty"` + OverrideOnConflict *bool `json:"override_on_conflict,omitempty"` + PreserveSource *bool `json:"preserve_source,omitempty"` + SourceType *string `json:"source_type,omitempty"` + Sources []string `json:"sources"` + Target string `json:"target"` + TargetFormat *TargetFormatType `json:"target_format,omitempty"` + TargetType *string `json:"target_type,omitempty"` + Type LogsAttributeRemapperType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_category_processor.go b/api/v1/datadog/model_logs_category_processor.go index 3b8d7c4df98..2e22eb07acd 100644 --- a/api/v1/datadog/model_logs_category_processor.go +++ b/api/v1/datadog/model_logs_category_processor.go @@ -215,11 +215,11 @@ func (o *LogsCategoryProcessor) UnmarshalJSON(bytes []byte) (err error) { Type *LogsCategoryProcessorType `json:"type"` }{} all := struct { - Categories []LogsCategoryProcessorCategory `json:"categories"}` - IsEnabled *bool `json:"is_enabled,omitempty"}` - Name *string `json:"name,omitempty"}` - Target string `json:"target"}` - Type LogsCategoryProcessorType `json:"type"}` + Categories []LogsCategoryProcessorCategory `json:"categories"` + IsEnabled *bool `json:"is_enabled,omitempty"` + Name *string `json:"name,omitempty"` + Target string `json:"target"` + Type LogsCategoryProcessorType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_date_remapper.go b/api/v1/datadog/model_logs_date_remapper.go index 6ec96ca976a..000c90c5881 100644 --- a/api/v1/datadog/model_logs_date_remapper.go +++ b/api/v1/datadog/model_logs_date_remapper.go @@ -184,10 +184,10 @@ func (o *LogsDateRemapper) UnmarshalJSON(bytes []byte) (err error) { Type *LogsDateRemapperType `json:"type"` }{} all := struct { - IsEnabled *bool `json:"is_enabled,omitempty"}` - Name *string `json:"name,omitempty"}` - Sources []string `json:"sources"}` - Type LogsDateRemapperType `json:"type"}` + IsEnabled *bool `json:"is_enabled,omitempty"` + Name *string `json:"name,omitempty"` + Sources []string `json:"sources"` + Type LogsDateRemapperType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_exclusion.go b/api/v1/datadog/model_logs_exclusion.go index e6a19cc89d8..ed1b0222187 100644 --- a/api/v1/datadog/model_logs_exclusion.go +++ b/api/v1/datadog/model_logs_exclusion.go @@ -147,9 +147,9 @@ func (o *LogsExclusion) UnmarshalJSON(bytes []byte) (err error) { Name *string `json:"name"` }{} all := struct { - Filter *LogsExclusionFilter `json:"filter,omitempty"}` - IsEnabled *bool `json:"is_enabled,omitempty"}` - Name string `json:"name"}` + Filter *LogsExclusionFilter `json:"filter,omitempty"` + IsEnabled *bool `json:"is_enabled,omitempty"` + Name string `json:"name"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_exclusion_filter.go b/api/v1/datadog/model_logs_exclusion_filter.go index 68b2afbaa9e..37e19549ec5 100644 --- a/api/v1/datadog/model_logs_exclusion_filter.go +++ b/api/v1/datadog/model_logs_exclusion_filter.go @@ -111,8 +111,8 @@ func (o *LogsExclusionFilter) UnmarshalJSON(bytes []byte) (err error) { SampleRate *float64 `json:"sample_rate"` }{} all := struct { - Query *string `json:"query,omitempty"}` - SampleRate float64 `json:"sample_rate"}` + Query *string `json:"query,omitempty"` + SampleRate float64 `json:"sample_rate"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_geo_ip_parser.go b/api/v1/datadog/model_logs_geo_ip_parser.go index af40ef43843..378be4d8a6f 100644 --- a/api/v1/datadog/model_logs_geo_ip_parser.go +++ b/api/v1/datadog/model_logs_geo_ip_parser.go @@ -217,11 +217,11 @@ func (o *LogsGeoIPParser) UnmarshalJSON(bytes []byte) (err error) { Type *LogsGeoIPParserType `json:"type"` }{} all := struct { - IsEnabled *bool `json:"is_enabled,omitempty"}` - Name *string `json:"name,omitempty"}` - Sources []string `json:"sources"}` - Target string `json:"target"}` - Type LogsGeoIPParserType `json:"type"}` + IsEnabled *bool `json:"is_enabled,omitempty"` + Name *string `json:"name,omitempty"` + Sources []string `json:"sources"` + Target string `json:"target"` + Type LogsGeoIPParserType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_grok_parser.go b/api/v1/datadog/model_logs_grok_parser.go index bb06b992289..f9327643292 100644 --- a/api/v1/datadog/model_logs_grok_parser.go +++ b/api/v1/datadog/model_logs_grok_parser.go @@ -253,12 +253,12 @@ func (o *LogsGrokParser) UnmarshalJSON(bytes []byte) (err error) { Type *LogsGrokParserType `json:"type"` }{} all := struct { - Grok LogsGrokParserRules `json:"grok"}` - IsEnabled *bool `json:"is_enabled,omitempty"}` - Name *string `json:"name,omitempty"}` - Samples *[]string `json:"samples,omitempty"}` - Source string `json:"source"}` - Type LogsGrokParserType `json:"type"}` + Grok LogsGrokParserRules `json:"grok"` + IsEnabled *bool `json:"is_enabled,omitempty"` + Name *string `json:"name,omitempty"` + Samples *[]string `json:"samples,omitempty"` + Source string `json:"source"` + Type LogsGrokParserType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_grok_parser_rules.go b/api/v1/datadog/model_logs_grok_parser_rules.go index 4883a600981..0a5b80a6636 100644 --- a/api/v1/datadog/model_logs_grok_parser_rules.go +++ b/api/v1/datadog/model_logs_grok_parser_rules.go @@ -115,8 +115,8 @@ func (o *LogsGrokParserRules) UnmarshalJSON(bytes []byte) (err error) { MatchRules *string `json:"match_rules"` }{} all := struct { - MatchRules string `json:"match_rules"}` - SupportRules *string `json:"support_rules,omitempty"}` + MatchRules string `json:"match_rules"` + SupportRules *string `json:"support_rules,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_index.go b/api/v1/datadog/model_logs_index.go index 76289663e01..cdbb9db1bcb 100644 --- a/api/v1/datadog/model_logs_index.go +++ b/api/v1/datadog/model_logs_index.go @@ -252,12 +252,12 @@ func (o *LogsIndex) UnmarshalJSON(bytes []byte) (err error) { Name *string `json:"name"` }{} all := struct { - DailyLimit *int64 `json:"daily_limit,omitempty"}` - ExclusionFilters *[]LogsExclusion `json:"exclusion_filters,omitempty"}` - Filter LogsFilter `json:"filter"}` - IsRateLimited *bool `json:"is_rate_limited,omitempty"}` - Name string `json:"name"}` - NumRetentionDays *int64 `json:"num_retention_days,omitempty"}` + DailyLimit *int64 `json:"daily_limit,omitempty"` + ExclusionFilters *[]LogsExclusion `json:"exclusion_filters,omitempty"` + Filter LogsFilter `json:"filter"` + IsRateLimited *bool `json:"is_rate_limited,omitempty"` + Name string `json:"name"` + NumRetentionDays *int64 `json:"num_retention_days,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_index_update_request.go b/api/v1/datadog/model_logs_index_update_request.go index fbc6f8ffd2c..ea38b197a41 100644 --- a/api/v1/datadog/model_logs_index_update_request.go +++ b/api/v1/datadog/model_logs_index_update_request.go @@ -221,11 +221,11 @@ func (o *LogsIndexUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { Filter *LogsFilter `json:"filter"` }{} all := struct { - DailyLimit *int64 `json:"daily_limit,omitempty"}` - DisableDailyLimit *bool `json:"disable_daily_limit,omitempty"}` - ExclusionFilters *[]LogsExclusion `json:"exclusion_filters,omitempty"}` - Filter LogsFilter `json:"filter"}` - NumRetentionDays *int64 `json:"num_retention_days,omitempty"}` + DailyLimit *int64 `json:"daily_limit,omitempty"` + DisableDailyLimit *bool `json:"disable_daily_limit,omitempty"` + ExclusionFilters *[]LogsExclusion `json:"exclusion_filters,omitempty"` + Filter LogsFilter `json:"filter"` + NumRetentionDays *int64 `json:"num_retention_days,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_indexes_order.go b/api/v1/datadog/model_logs_indexes_order.go index 5d201fc7c36..dc99be67637 100644 --- a/api/v1/datadog/model_logs_indexes_order.go +++ b/api/v1/datadog/model_logs_indexes_order.go @@ -74,7 +74,7 @@ func (o *LogsIndexesOrder) UnmarshalJSON(bytes []byte) (err error) { IndexNames *[]string `json:"index_names"` }{} all := struct { - IndexNames []string `json:"index_names"}` + IndexNames []string `json:"index_names"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_list_request.go b/api/v1/datadog/model_logs_list_request.go index 904313343d1..de818a5852e 100644 --- a/api/v1/datadog/model_logs_list_request.go +++ b/api/v1/datadog/model_logs_list_request.go @@ -257,12 +257,12 @@ func (o *LogsListRequest) UnmarshalJSON(bytes []byte) (err error) { Time *LogsListRequestTime `json:"time"` }{} all := struct { - Index *string `json:"index,omitempty"}` - Limit *int32 `json:"limit,omitempty"}` - Query *string `json:"query,omitempty"}` - Sort *LogsSort `json:"sort,omitempty"}` - StartAt *string `json:"startAt,omitempty"}` - Time LogsListRequestTime `json:"time"}` + Index *string `json:"index,omitempty"` + Limit *int32 `json:"limit,omitempty"` + Query *string `json:"query,omitempty"` + Sort *LogsSort `json:"sort,omitempty"` + StartAt *string `json:"startAt,omitempty"` + Time LogsListRequestTime `json:"time"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_list_request_time.go b/api/v1/datadog/model_logs_list_request_time.go index aa7dfbb3802..332239b39d7 100644 --- a/api/v1/datadog/model_logs_list_request_time.go +++ b/api/v1/datadog/model_logs_list_request_time.go @@ -143,9 +143,9 @@ func (o *LogsListRequestTime) UnmarshalJSON(bytes []byte) (err error) { To *time.Time `json:"to"` }{} all := struct { - From time.Time `json:"from"}` - Timezone *string `json:"timezone,omitempty"}` - To time.Time `json:"to"}` + From time.Time `json:"from"` + Timezone *string `json:"timezone,omitempty"` + To time.Time `json:"to"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_lookup_processor.go b/api/v1/datadog/model_logs_lookup_processor.go index 9e4d51d6815..a613691f2ba 100644 --- a/api/v1/datadog/model_logs_lookup_processor.go +++ b/api/v1/datadog/model_logs_lookup_processor.go @@ -283,13 +283,13 @@ func (o *LogsLookupProcessor) UnmarshalJSON(bytes []byte) (err error) { Type *LogsLookupProcessorType `json:"type"` }{} all := struct { - DefaultLookup *string `json:"default_lookup,omitempty"}` - IsEnabled *bool `json:"is_enabled,omitempty"}` - LookupTable []string `json:"lookup_table"}` - Name *string `json:"name,omitempty"}` - Source string `json:"source"}` - Target string `json:"target"}` - Type LogsLookupProcessorType `json:"type"}` + DefaultLookup *string `json:"default_lookup,omitempty"` + IsEnabled *bool `json:"is_enabled,omitempty"` + LookupTable []string `json:"lookup_table"` + Name *string `json:"name,omitempty"` + Source string `json:"source"` + Target string `json:"target"` + Type LogsLookupProcessorType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_message_remapper.go b/api/v1/datadog/model_logs_message_remapper.go index f9551e00829..58073ebd119 100644 --- a/api/v1/datadog/model_logs_message_remapper.go +++ b/api/v1/datadog/model_logs_message_remapper.go @@ -184,10 +184,10 @@ func (o *LogsMessageRemapper) UnmarshalJSON(bytes []byte) (err error) { Type *LogsMessageRemapperType `json:"type"` }{} all := struct { - IsEnabled *bool `json:"is_enabled,omitempty"}` - Name *string `json:"name,omitempty"}` - Sources []string `json:"sources"}` - Type LogsMessageRemapperType `json:"type"}` + IsEnabled *bool `json:"is_enabled,omitempty"` + Name *string `json:"name,omitempty"` + Sources []string `json:"sources"` + Type LogsMessageRemapperType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_pipeline.go b/api/v1/datadog/model_logs_pipeline.go index 6b140d9064b..e2e99853099 100644 --- a/api/v1/datadog/model_logs_pipeline.go +++ b/api/v1/datadog/model_logs_pipeline.go @@ -295,13 +295,13 @@ func (o *LogsPipeline) UnmarshalJSON(bytes []byte) (err error) { Name *string `json:"name"` }{} all := struct { - Filter *LogsFilter `json:"filter,omitempty"}` - Id *string `json:"id,omitempty"}` - IsEnabled *bool `json:"is_enabled,omitempty"}` - IsReadOnly *bool `json:"is_read_only,omitempty"}` - Name string `json:"name"}` - Processors *[]LogsProcessor `json:"processors,omitempty"}` - Type *string `json:"type,omitempty"}` + Filter *LogsFilter `json:"filter,omitempty"` + Id *string `json:"id,omitempty"` + IsEnabled *bool `json:"is_enabled,omitempty"` + IsReadOnly *bool `json:"is_read_only,omitempty"` + Name string `json:"name"` + Processors *[]LogsProcessor `json:"processors,omitempty"` + Type *string `json:"type,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_pipeline_processor.go b/api/v1/datadog/model_logs_pipeline_processor.go index ab1d0349bd0..891e766ca4a 100644 --- a/api/v1/datadog/model_logs_pipeline_processor.go +++ b/api/v1/datadog/model_logs_pipeline_processor.go @@ -226,11 +226,11 @@ func (o *LogsPipelineProcessor) UnmarshalJSON(bytes []byte) (err error) { Type *LogsPipelineProcessorType `json:"type"` }{} all := struct { - Filter *LogsFilter `json:"filter,omitempty"}` - IsEnabled *bool `json:"is_enabled,omitempty"}` - Name *string `json:"name,omitempty"}` - Processors *[]LogsProcessor `json:"processors,omitempty"}` - Type LogsPipelineProcessorType `json:"type"}` + Filter *LogsFilter `json:"filter,omitempty"` + IsEnabled *bool `json:"is_enabled,omitempty"` + Name *string `json:"name,omitempty"` + Processors *[]LogsProcessor `json:"processors,omitempty"` + Type LogsPipelineProcessorType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_pipelines_order.go b/api/v1/datadog/model_logs_pipelines_order.go index 9a8f8344ac2..a825b191fbd 100644 --- a/api/v1/datadog/model_logs_pipelines_order.go +++ b/api/v1/datadog/model_logs_pipelines_order.go @@ -74,7 +74,7 @@ func (o *LogsPipelinesOrder) UnmarshalJSON(bytes []byte) (err error) { PipelineIds *[]string `json:"pipeline_ids"` }{} all := struct { - PipelineIds []string `json:"pipeline_ids"}` + PipelineIds []string `json:"pipeline_ids"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_query_compute.go b/api/v1/datadog/model_logs_query_compute.go index 7bdaa0042fe..e9f3f55a11e 100644 --- a/api/v1/datadog/model_logs_query_compute.go +++ b/api/v1/datadog/model_logs_query_compute.go @@ -148,9 +148,9 @@ func (o *LogsQueryCompute) UnmarshalJSON(bytes []byte) (err error) { Aggregation *string `json:"aggregation"` }{} all := struct { - Aggregation string `json:"aggregation"}` - Facet *string `json:"facet,omitempty"}` - Interval *int64 `json:"interval,omitempty"}` + Aggregation string `json:"aggregation"` + Facet *string `json:"facet,omitempty"` + Interval *int64 `json:"interval,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_service_remapper.go b/api/v1/datadog/model_logs_service_remapper.go index 241e15e378d..8762689621d 100644 --- a/api/v1/datadog/model_logs_service_remapper.go +++ b/api/v1/datadog/model_logs_service_remapper.go @@ -184,10 +184,10 @@ func (o *LogsServiceRemapper) UnmarshalJSON(bytes []byte) (err error) { Type *LogsServiceRemapperType `json:"type"` }{} all := struct { - IsEnabled *bool `json:"is_enabled,omitempty"}` - Name *string `json:"name,omitempty"}` - Sources []string `json:"sources"}` - Type LogsServiceRemapperType `json:"type"}` + IsEnabled *bool `json:"is_enabled,omitempty"` + Name *string `json:"name,omitempty"` + Sources []string `json:"sources"` + Type LogsServiceRemapperType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_status_remapper.go b/api/v1/datadog/model_logs_status_remapper.go index ff4b490410b..35e752df792 100644 --- a/api/v1/datadog/model_logs_status_remapper.go +++ b/api/v1/datadog/model_logs_status_remapper.go @@ -184,10 +184,10 @@ func (o *LogsStatusRemapper) UnmarshalJSON(bytes []byte) (err error) { Type *LogsStatusRemapperType `json:"type"` }{} all := struct { - IsEnabled *bool `json:"is_enabled,omitempty"}` - Name *string `json:"name,omitempty"}` - Sources []string `json:"sources"}` - Type LogsStatusRemapperType `json:"type"}` + IsEnabled *bool `json:"is_enabled,omitempty"` + Name *string `json:"name,omitempty"` + Sources []string `json:"sources"` + Type LogsStatusRemapperType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_string_builder_processor.go b/api/v1/datadog/model_logs_string_builder_processor.go index 70cf82a1835..cc959965137 100644 --- a/api/v1/datadog/model_logs_string_builder_processor.go +++ b/api/v1/datadog/model_logs_string_builder_processor.go @@ -256,12 +256,12 @@ func (o *LogsStringBuilderProcessor) UnmarshalJSON(bytes []byte) (err error) { Type *LogsStringBuilderProcessorType `json:"type"` }{} all := struct { - IsEnabled *bool `json:"is_enabled,omitempty"}` - IsReplaceMissing *bool `json:"is_replace_missing,omitempty"}` - Name *string `json:"name,omitempty"}` - Target string `json:"target"}` - Template string `json:"template"}` - Type LogsStringBuilderProcessorType `json:"type"}` + IsEnabled *bool `json:"is_enabled,omitempty"` + IsReplaceMissing *bool `json:"is_replace_missing,omitempty"` + Name *string `json:"name,omitempty"` + Target string `json:"target"` + Template string `json:"template"` + Type LogsStringBuilderProcessorType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_trace_remapper.go b/api/v1/datadog/model_logs_trace_remapper.go index 2875d2a2c27..9e97a8fcb28 100644 --- a/api/v1/datadog/model_logs_trace_remapper.go +++ b/api/v1/datadog/model_logs_trace_remapper.go @@ -190,10 +190,10 @@ func (o *LogsTraceRemapper) UnmarshalJSON(bytes []byte) (err error) { Type *LogsTraceRemapperType `json:"type"` }{} all := struct { - IsEnabled *bool `json:"is_enabled,omitempty"}` - Name *string `json:"name,omitempty"}` - Sources *[]string `json:"sources,omitempty"}` - Type LogsTraceRemapperType `json:"type"}` + IsEnabled *bool `json:"is_enabled,omitempty"` + Name *string `json:"name,omitempty"` + Sources *[]string `json:"sources,omitempty"` + Type LogsTraceRemapperType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_url_parser.go b/api/v1/datadog/model_logs_url_parser.go index 914a309e4a1..476bf356bd8 100644 --- a/api/v1/datadog/model_logs_url_parser.go +++ b/api/v1/datadog/model_logs_url_parser.go @@ -269,12 +269,12 @@ func (o *LogsURLParser) UnmarshalJSON(bytes []byte) (err error) { Type *LogsURLParserType `json:"type"` }{} all := struct { - IsEnabled *bool `json:"is_enabled,omitempty"}` - Name *string `json:"name,omitempty"}` - NormalizeEndingSlashes NullableBool `json:"normalize_ending_slashes,omitempty"}` - Sources []string `json:"sources"}` - Target string `json:"target"}` - Type LogsURLParserType `json:"type"}` + IsEnabled *bool `json:"is_enabled,omitempty"` + Name *string `json:"name,omitempty"` + NormalizeEndingSlashes NullableBool `json:"normalize_ending_slashes,omitempty"` + Sources []string `json:"sources"` + Target string `json:"target"` + Type LogsURLParserType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_logs_user_agent_parser.go b/api/v1/datadog/model_logs_user_agent_parser.go index 2c38030deb4..444feda8afe 100644 --- a/api/v1/datadog/model_logs_user_agent_parser.go +++ b/api/v1/datadog/model_logs_user_agent_parser.go @@ -258,12 +258,12 @@ func (o *LogsUserAgentParser) UnmarshalJSON(bytes []byte) (err error) { Type *LogsUserAgentParserType `json:"type"` }{} all := struct { - IsEnabled *bool `json:"is_enabled,omitempty"}` - IsEncoded *bool `json:"is_encoded,omitempty"}` - Name *string `json:"name,omitempty"}` - Sources []string `json:"sources"}` - Target string `json:"target"}` - Type LogsUserAgentParserType `json:"type"}` + IsEnabled *bool `json:"is_enabled,omitempty"` + IsEncoded *bool `json:"is_encoded,omitempty"` + Name *string `json:"name,omitempty"` + Sources []string `json:"sources"` + Target string `json:"target"` + Type LogsUserAgentParserType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_metrics_payload.go b/api/v1/datadog/model_metrics_payload.go index c08951f47c4..12a21d2ffc7 100644 --- a/api/v1/datadog/model_metrics_payload.go +++ b/api/v1/datadog/model_metrics_payload.go @@ -74,7 +74,7 @@ func (o *MetricsPayload) UnmarshalJSON(bytes []byte) (err error) { Series *[]Series `json:"series"` }{} all := struct { - Series []Series `json:"series"}` + Series []Series `json:"series"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_monitor.go b/api/v1/datadog/model_monitor.go index 9d45a0cb1e7..ad956b01b5a 100644 --- a/api/v1/datadog/model_monitor.go +++ b/api/v1/datadog/model_monitor.go @@ -630,22 +630,22 @@ func (o *Monitor) UnmarshalJSON(bytes []byte) (err error) { Type *MonitorType `json:"type"` }{} all := struct { - Created *time.Time `json:"created,omitempty"}` - Creator *Creator `json:"creator,omitempty"}` - Deleted NullableTime `json:"deleted,omitempty"}` - Id *int64 `json:"id,omitempty"}` - Message *string `json:"message,omitempty"}` - Modified *time.Time `json:"modified,omitempty"}` - Multi *bool `json:"multi,omitempty"}` - Name *string `json:"name,omitempty"}` - Options *MonitorOptions `json:"options,omitempty"}` - OverallState *MonitorOverallStates `json:"overall_state,omitempty"}` - Priority *int64 `json:"priority,omitempty"}` - Query string `json:"query"}` - RestrictedRoles *[]string `json:"restricted_roles,omitempty"}` - State *MonitorState `json:"state,omitempty"}` - Tags *[]string `json:"tags,omitempty"}` - Type MonitorType `json:"type"}` + Created *time.Time `json:"created,omitempty"` + Creator *Creator `json:"creator,omitempty"` + Deleted NullableTime `json:"deleted,omitempty"` + Id *int64 `json:"id,omitempty"` + Message *string `json:"message,omitempty"` + Modified *time.Time `json:"modified,omitempty"` + Multi *bool `json:"multi,omitempty"` + Name *string `json:"name,omitempty"` + Options *MonitorOptions `json:"options,omitempty"` + OverallState *MonitorOverallStates `json:"overall_state,omitempty"` + Priority *int64 `json:"priority,omitempty"` + Query string `json:"query"` + RestrictedRoles *[]string `json:"restricted_roles,omitempty"` + State *MonitorState `json:"state,omitempty"` + Tags *[]string `json:"tags,omitempty"` + Type MonitorType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_monitor_summary_widget_definition.go b/api/v1/datadog/model_monitor_summary_widget_definition.go index 1ec3d17ca52..66c44077b11 100644 --- a/api/v1/datadog/model_monitor_summary_widget_definition.go +++ b/api/v1/datadog/model_monitor_summary_widget_definition.go @@ -508,19 +508,19 @@ func (o *MonitorSummaryWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) Type *MonitorSummaryWidgetDefinitionType `json:"type"` }{} all := struct { - ColorPreference *WidgetColorPreference `json:"color_preference,omitempty"}` - Count *int64 `json:"count,omitempty"}` - DisplayFormat *WidgetMonitorSummaryDisplayFormat `json:"display_format,omitempty"}` - HideZeroCounts *bool `json:"hide_zero_counts,omitempty"}` - Query string `json:"query"}` - ShowLastTriggered *bool `json:"show_last_triggered,omitempty"}` - Sort *WidgetMonitorSummarySort `json:"sort,omitempty"}` - Start *int64 `json:"start,omitempty"}` - SummaryType *WidgetSummaryType `json:"summary_type,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type MonitorSummaryWidgetDefinitionType `json:"type"}` + ColorPreference *WidgetColorPreference `json:"color_preference,omitempty"` + Count *int64 `json:"count,omitempty"` + DisplayFormat *WidgetMonitorSummaryDisplayFormat `json:"display_format,omitempty"` + HideZeroCounts *bool `json:"hide_zero_counts,omitempty"` + Query string `json:"query"` + ShowLastTriggered *bool `json:"show_last_triggered,omitempty"` + Sort *WidgetMonitorSummarySort `json:"sort,omitempty"` + Start *int64 `json:"start,omitempty"` + SummaryType *WidgetSummaryType `json:"summary_type,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type MonitorSummaryWidgetDefinitionType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_note_widget_definition.go b/api/v1/datadog/model_note_widget_definition.go index d334a5ae8a3..5a35819dd78 100644 --- a/api/v1/datadog/model_note_widget_definition.go +++ b/api/v1/datadog/model_note_widget_definition.go @@ -403,16 +403,16 @@ func (o *NoteWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { Type *NoteWidgetDefinitionType `json:"type"` }{} all := struct { - BackgroundColor *string `json:"background_color,omitempty"}` - Content string `json:"content"}` - FontSize *string `json:"font_size,omitempty"}` - HasPadding *bool `json:"has_padding,omitempty"}` - ShowTick *bool `json:"show_tick,omitempty"}` - TextAlign *WidgetTextAlign `json:"text_align,omitempty"}` - TickEdge *WidgetTickEdge `json:"tick_edge,omitempty"}` - TickPos *string `json:"tick_pos,omitempty"}` - Type NoteWidgetDefinitionType `json:"type"}` - VerticalAlign *WidgetVerticalAlign `json:"vertical_align,omitempty"}` + BackgroundColor *string `json:"background_color,omitempty"` + Content string `json:"content"` + FontSize *string `json:"font_size,omitempty"` + HasPadding *bool `json:"has_padding,omitempty"` + ShowTick *bool `json:"show_tick,omitempty"` + TextAlign *WidgetTextAlign `json:"text_align,omitempty"` + TickEdge *WidgetTickEdge `json:"tick_edge,omitempty"` + TickPos *string `json:"tick_pos,omitempty"` + Type NoteWidgetDefinitionType `json:"type"` + VerticalAlign *WidgetVerticalAlign `json:"vertical_align,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_absolute_time.go b/api/v1/datadog/model_notebook_absolute_time.go index 6a6371953f7..243b3b7f198 100644 --- a/api/v1/datadog/model_notebook_absolute_time.go +++ b/api/v1/datadog/model_notebook_absolute_time.go @@ -143,9 +143,9 @@ func (o *NotebookAbsoluteTime) UnmarshalJSON(bytes []byte) (err error) { Start *time.Time `json:"start"` }{} all := struct { - End time.Time `json:"end"}` - Live *bool `json:"live,omitempty"}` - Start time.Time `json:"start"}` + End time.Time `json:"end"` + Live *bool `json:"live,omitempty"` + Start time.Time `json:"start"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_cell_create_request.go b/api/v1/datadog/model_notebook_cell_create_request.go index 44870cb553b..4cc69d2dca4 100644 --- a/api/v1/datadog/model_notebook_cell_create_request.go +++ b/api/v1/datadog/model_notebook_cell_create_request.go @@ -105,8 +105,8 @@ func (o *NotebookCellCreateRequest) UnmarshalJSON(bytes []byte) (err error) { Type *NotebookCellResourceType `json:"type"` }{} all := struct { - Attributes NotebookCellCreateRequestAttributes `json:"attributes"}` - Type NotebookCellResourceType `json:"type"}` + Attributes NotebookCellCreateRequestAttributes `json:"attributes"` + Type NotebookCellResourceType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_cell_response.go b/api/v1/datadog/model_notebook_cell_response.go index d1eb9d12c0f..14ee430a0c5 100644 --- a/api/v1/datadog/model_notebook_cell_response.go +++ b/api/v1/datadog/model_notebook_cell_response.go @@ -136,9 +136,9 @@ func (o *NotebookCellResponse) UnmarshalJSON(bytes []byte) (err error) { Type *NotebookCellResourceType `json:"type"` }{} all := struct { - Attributes NotebookCellResponseAttributes `json:"attributes"}` - Id string `json:"id"}` - Type NotebookCellResourceType `json:"type"}` + Attributes NotebookCellResponseAttributes `json:"attributes"` + Id string `json:"id"` + Type NotebookCellResourceType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_cell_update_request.go b/api/v1/datadog/model_notebook_cell_update_request.go index dd51b8f8551..cdb4811f873 100644 --- a/api/v1/datadog/model_notebook_cell_update_request.go +++ b/api/v1/datadog/model_notebook_cell_update_request.go @@ -136,9 +136,9 @@ func (o *NotebookCellUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { Type *NotebookCellResourceType `json:"type"` }{} all := struct { - Attributes NotebookCellUpdateRequestAttributes `json:"attributes"}` - Id string `json:"id"}` - Type NotebookCellResourceType `json:"type"}` + Attributes NotebookCellUpdateRequestAttributes `json:"attributes"` + Id string `json:"id"` + Type NotebookCellResourceType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_create_data.go b/api/v1/datadog/model_notebook_create_data.go index 3f09ea67fe3..16bb893269f 100644 --- a/api/v1/datadog/model_notebook_create_data.go +++ b/api/v1/datadog/model_notebook_create_data.go @@ -105,8 +105,8 @@ func (o *NotebookCreateData) UnmarshalJSON(bytes []byte) (err error) { Type *NotebookResourceType `json:"type"` }{} all := struct { - Attributes NotebookCreateDataAttributes `json:"attributes"}` - Type NotebookResourceType `json:"type"}` + Attributes NotebookCreateDataAttributes `json:"attributes"` + Type NotebookResourceType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_create_data_attributes.go b/api/v1/datadog/model_notebook_create_data_attributes.go index f370790b8f9..dca1fe7df30 100644 --- a/api/v1/datadog/model_notebook_create_data_attributes.go +++ b/api/v1/datadog/model_notebook_create_data_attributes.go @@ -175,10 +175,10 @@ func (o *NotebookCreateDataAttributes) UnmarshalJSON(bytes []byte) (err error) { Time *NotebookGlobalTime `json:"time"` }{} all := struct { - Cells []NotebookCellCreateRequest `json:"cells"}` - Name string `json:"name"}` - Status *NotebookStatus `json:"status,omitempty"}` - Time NotebookGlobalTime `json:"time"}` + Cells []NotebookCellCreateRequest `json:"cells"` + Name string `json:"name"` + Status *NotebookStatus `json:"status,omitempty"` + Time NotebookGlobalTime `json:"time"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_create_request.go b/api/v1/datadog/model_notebook_create_request.go index c38f446074b..6290b549b6c 100644 --- a/api/v1/datadog/model_notebook_create_request.go +++ b/api/v1/datadog/model_notebook_create_request.go @@ -73,7 +73,7 @@ func (o *NotebookCreateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *NotebookCreateData `json:"data"` }{} all := struct { - Data NotebookCreateData `json:"data"}` + Data NotebookCreateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_distribution_cell_attributes.go b/api/v1/datadog/model_notebook_distribution_cell_attributes.go index ca400e84237..b976c4e92a5 100644 --- a/api/v1/datadog/model_notebook_distribution_cell_attributes.go +++ b/api/v1/datadog/model_notebook_distribution_cell_attributes.go @@ -192,10 +192,10 @@ func (o *NotebookDistributionCellAttributes) UnmarshalJSON(bytes []byte) (err er Definition *DistributionWidgetDefinition `json:"definition"` }{} all := struct { - Definition DistributionWidgetDefinition `json:"definition"}` - GraphSize *NotebookGraphSize `json:"graph_size,omitempty"}` - SplitBy *NotebookSplitBy `json:"split_by,omitempty"}` - Time NullableNotebookCellTime `json:"time,omitempty"}` + Definition DistributionWidgetDefinition `json:"definition"` + GraphSize *NotebookGraphSize `json:"graph_size,omitempty"` + SplitBy *NotebookSplitBy `json:"split_by,omitempty"` + Time NullableNotebookCellTime `json:"time,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_heat_map_cell_attributes.go b/api/v1/datadog/model_notebook_heat_map_cell_attributes.go index 812a9d2439d..8040ac8ff9f 100644 --- a/api/v1/datadog/model_notebook_heat_map_cell_attributes.go +++ b/api/v1/datadog/model_notebook_heat_map_cell_attributes.go @@ -192,10 +192,10 @@ func (o *NotebookHeatMapCellAttributes) UnmarshalJSON(bytes []byte) (err error) Definition *HeatMapWidgetDefinition `json:"definition"` }{} all := struct { - Definition HeatMapWidgetDefinition `json:"definition"}` - GraphSize *NotebookGraphSize `json:"graph_size,omitempty"}` - SplitBy *NotebookSplitBy `json:"split_by,omitempty"}` - Time NullableNotebookCellTime `json:"time,omitempty"}` + Definition HeatMapWidgetDefinition `json:"definition"` + GraphSize *NotebookGraphSize `json:"graph_size,omitempty"` + SplitBy *NotebookSplitBy `json:"split_by,omitempty"` + Time NullableNotebookCellTime `json:"time,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_log_stream_cell_attributes.go b/api/v1/datadog/model_notebook_log_stream_cell_attributes.go index 5d086b610d4..db33e15ad88 100644 --- a/api/v1/datadog/model_notebook_log_stream_cell_attributes.go +++ b/api/v1/datadog/model_notebook_log_stream_cell_attributes.go @@ -156,9 +156,9 @@ func (o *NotebookLogStreamCellAttributes) UnmarshalJSON(bytes []byte) (err error Definition *LogStreamWidgetDefinition `json:"definition"` }{} all := struct { - Definition LogStreamWidgetDefinition `json:"definition"}` - GraphSize *NotebookGraphSize `json:"graph_size,omitempty"}` - Time NullableNotebookCellTime `json:"time,omitempty"}` + Definition LogStreamWidgetDefinition `json:"definition"` + GraphSize *NotebookGraphSize `json:"graph_size,omitempty"` + Time NullableNotebookCellTime `json:"time,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_markdown_cell_attributes.go b/api/v1/datadog/model_notebook_markdown_cell_attributes.go index 72b062d7d6a..7ae765b9c95 100644 --- a/api/v1/datadog/model_notebook_markdown_cell_attributes.go +++ b/api/v1/datadog/model_notebook_markdown_cell_attributes.go @@ -73,7 +73,7 @@ func (o *NotebookMarkdownCellAttributes) UnmarshalJSON(bytes []byte) (err error) Definition *NotebookMarkdownCellDefinition `json:"definition"` }{} all := struct { - Definition NotebookMarkdownCellDefinition `json:"definition"}` + Definition NotebookMarkdownCellDefinition `json:"definition"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_markdown_cell_definition.go b/api/v1/datadog/model_notebook_markdown_cell_definition.go index 3dd54c4c26d..d4a6e96281c 100644 --- a/api/v1/datadog/model_notebook_markdown_cell_definition.go +++ b/api/v1/datadog/model_notebook_markdown_cell_definition.go @@ -106,8 +106,8 @@ func (o *NotebookMarkdownCellDefinition) UnmarshalJSON(bytes []byte) (err error) Type *NotebookMarkdownCellDefinitionType `json:"type"` }{} all := struct { - Text string `json:"text"}` - Type NotebookMarkdownCellDefinitionType `json:"type"}` + Text string `json:"text"` + Type NotebookMarkdownCellDefinitionType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_relative_time.go b/api/v1/datadog/model_notebook_relative_time.go index 2296f503f70..607cb2df33c 100644 --- a/api/v1/datadog/model_notebook_relative_time.go +++ b/api/v1/datadog/model_notebook_relative_time.go @@ -73,7 +73,7 @@ func (o *NotebookRelativeTime) UnmarshalJSON(bytes []byte) (err error) { LiveSpan *WidgetLiveSpan `json:"live_span"` }{} all := struct { - LiveSpan WidgetLiveSpan `json:"live_span"}` + LiveSpan WidgetLiveSpan `json:"live_span"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_response_data.go b/api/v1/datadog/model_notebook_response_data.go index 1127f2be72c..52b06ee617b 100644 --- a/api/v1/datadog/model_notebook_response_data.go +++ b/api/v1/datadog/model_notebook_response_data.go @@ -136,9 +136,9 @@ func (o *NotebookResponseData) UnmarshalJSON(bytes []byte) (err error) { Type *NotebookResourceType `json:"type"` }{} all := struct { - Attributes NotebookResponseDataAttributes `json:"attributes"}` - Id int64 `json:"id"}` - Type NotebookResourceType `json:"type"}` + Attributes NotebookResponseDataAttributes `json:"attributes"` + Id int64 `json:"id"` + Type NotebookResourceType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_response_data_attributes.go b/api/v1/datadog/model_notebook_response_data_attributes.go index 62953b22a20..da22b23348f 100644 --- a/api/v1/datadog/model_notebook_response_data_attributes.go +++ b/api/v1/datadog/model_notebook_response_data_attributes.go @@ -286,13 +286,13 @@ func (o *NotebookResponseDataAttributes) UnmarshalJSON(bytes []byte) (err error) Time *NotebookGlobalTime `json:"time"` }{} all := struct { - Author *NotebookAuthor `json:"author,omitempty"}` - Cells []NotebookCellResponse `json:"cells"}` - Created *time.Time `json:"created,omitempty"}` - Modified *time.Time `json:"modified,omitempty"}` - Name string `json:"name"}` - Status *NotebookStatus `json:"status,omitempty"}` - Time NotebookGlobalTime `json:"time"}` + Author *NotebookAuthor `json:"author,omitempty"` + Cells []NotebookCellResponse `json:"cells"` + Created *time.Time `json:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty"` + Name string `json:"name"` + Status *NotebookStatus `json:"status,omitempty"` + Time NotebookGlobalTime `json:"time"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_split_by.go b/api/v1/datadog/model_notebook_split_by.go index cd9ed54e507..27ff6084253 100644 --- a/api/v1/datadog/model_notebook_split_by.go +++ b/api/v1/datadog/model_notebook_split_by.go @@ -105,8 +105,8 @@ func (o *NotebookSplitBy) UnmarshalJSON(bytes []byte) (err error) { Tags *[]string `json:"tags"` }{} all := struct { - Keys []string `json:"keys"}` - Tags []string `json:"tags"}` + Keys []string `json:"keys"` + Tags []string `json:"tags"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_timeseries_cell_attributes.go b/api/v1/datadog/model_notebook_timeseries_cell_attributes.go index c396632b9ba..a2475dcfd80 100644 --- a/api/v1/datadog/model_notebook_timeseries_cell_attributes.go +++ b/api/v1/datadog/model_notebook_timeseries_cell_attributes.go @@ -192,10 +192,10 @@ func (o *NotebookTimeseriesCellAttributes) UnmarshalJSON(bytes []byte) (err erro Definition *TimeseriesWidgetDefinition `json:"definition"` }{} all := struct { - Definition TimeseriesWidgetDefinition `json:"definition"}` - GraphSize *NotebookGraphSize `json:"graph_size,omitempty"}` - SplitBy *NotebookSplitBy `json:"split_by,omitempty"}` - Time NullableNotebookCellTime `json:"time,omitempty"}` + Definition TimeseriesWidgetDefinition `json:"definition"` + GraphSize *NotebookGraphSize `json:"graph_size,omitempty"` + SplitBy *NotebookSplitBy `json:"split_by,omitempty"` + Time NullableNotebookCellTime `json:"time,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_toplist_cell_attributes.go b/api/v1/datadog/model_notebook_toplist_cell_attributes.go index ad6a0ba410e..a282ffbb64e 100644 --- a/api/v1/datadog/model_notebook_toplist_cell_attributes.go +++ b/api/v1/datadog/model_notebook_toplist_cell_attributes.go @@ -192,10 +192,10 @@ func (o *NotebookToplistCellAttributes) UnmarshalJSON(bytes []byte) (err error) Definition *ToplistWidgetDefinition `json:"definition"` }{} all := struct { - Definition ToplistWidgetDefinition `json:"definition"}` - GraphSize *NotebookGraphSize `json:"graph_size,omitempty"}` - SplitBy *NotebookSplitBy `json:"split_by,omitempty"}` - Time NullableNotebookCellTime `json:"time,omitempty"}` + Definition ToplistWidgetDefinition `json:"definition"` + GraphSize *NotebookGraphSize `json:"graph_size,omitempty"` + SplitBy *NotebookSplitBy `json:"split_by,omitempty"` + Time NullableNotebookCellTime `json:"time,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_update_data.go b/api/v1/datadog/model_notebook_update_data.go index 8155010b79a..126457d902b 100644 --- a/api/v1/datadog/model_notebook_update_data.go +++ b/api/v1/datadog/model_notebook_update_data.go @@ -105,8 +105,8 @@ func (o *NotebookUpdateData) UnmarshalJSON(bytes []byte) (err error) { Type *NotebookResourceType `json:"type"` }{} all := struct { - Attributes NotebookUpdateDataAttributes `json:"attributes"}` - Type NotebookResourceType `json:"type"}` + Attributes NotebookUpdateDataAttributes `json:"attributes"` + Type NotebookResourceType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_update_data_attributes.go b/api/v1/datadog/model_notebook_update_data_attributes.go index 4a976a8b041..5d951a33bba 100644 --- a/api/v1/datadog/model_notebook_update_data_attributes.go +++ b/api/v1/datadog/model_notebook_update_data_attributes.go @@ -175,10 +175,10 @@ func (o *NotebookUpdateDataAttributes) UnmarshalJSON(bytes []byte) (err error) { Time *NotebookGlobalTime `json:"time"` }{} all := struct { - Cells []NotebookUpdateCell `json:"cells"}` - Name string `json:"name"}` - Status *NotebookStatus `json:"status,omitempty"}` - Time NotebookGlobalTime `json:"time"}` + Cells []NotebookUpdateCell `json:"cells"` + Name string `json:"name"` + Status *NotebookStatus `json:"status,omitempty"` + Time NotebookGlobalTime `json:"time"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebook_update_request.go b/api/v1/datadog/model_notebook_update_request.go index 5cb72662c62..c3d03abd17b 100644 --- a/api/v1/datadog/model_notebook_update_request.go +++ b/api/v1/datadog/model_notebook_update_request.go @@ -73,7 +73,7 @@ func (o *NotebookUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *NotebookUpdateData `json:"data"` }{} all := struct { - Data NotebookUpdateData `json:"data"}` + Data NotebookUpdateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebooks_response_data.go b/api/v1/datadog/model_notebooks_response_data.go index 37c0b2b5bcf..6ac3ee46ef8 100644 --- a/api/v1/datadog/model_notebooks_response_data.go +++ b/api/v1/datadog/model_notebooks_response_data.go @@ -136,9 +136,9 @@ func (o *NotebooksResponseData) UnmarshalJSON(bytes []byte) (err error) { Type *NotebookResourceType `json:"type"` }{} all := struct { - Attributes NotebooksResponseDataAttributes `json:"attributes"}` - Id int64 `json:"id"}` - Type NotebookResourceType `json:"type"}` + Attributes NotebooksResponseDataAttributes `json:"attributes"` + Id int64 `json:"id"` + Type NotebookResourceType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_notebooks_response_data_attributes.go b/api/v1/datadog/model_notebooks_response_data_attributes.go index 212fa064f3f..2eaf170a772 100644 --- a/api/v1/datadog/model_notebooks_response_data_attributes.go +++ b/api/v1/datadog/model_notebooks_response_data_attributes.go @@ -298,13 +298,13 @@ func (o *NotebooksResponseDataAttributes) UnmarshalJSON(bytes []byte) (err error Name *string `json:"name"` }{} all := struct { - Author *NotebookAuthor `json:"author,omitempty"}` - Cells *[]NotebookCellResponse `json:"cells,omitempty"}` - Created *time.Time `json:"created,omitempty"}` - Modified *time.Time `json:"modified,omitempty"}` - Name string `json:"name"}` - Status *NotebookStatus `json:"status,omitempty"}` - Time *NotebookGlobalTime `json:"time,omitempty"}` + Author *NotebookAuthor `json:"author,omitempty"` + Cells *[]NotebookCellResponse `json:"cells,omitempty"` + Created *time.Time `json:"created,omitempty"` + Modified *time.Time `json:"modified,omitempty"` + Name string `json:"name"` + Status *NotebookStatus `json:"status,omitempty"` + Time *NotebookGlobalTime `json:"time,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_organization_create_body.go b/api/v1/datadog/model_organization_create_body.go index 6b65caad765..abe2db7b941 100644 --- a/api/v1/datadog/model_organization_create_body.go +++ b/api/v1/datadog/model_organization_create_body.go @@ -146,9 +146,9 @@ func (o *OrganizationCreateBody) UnmarshalJSON(bytes []byte) (err error) { Name *string `json:"name"` }{} all := struct { - Billing *OrganizationBilling `json:"billing,omitempty"}` - Name string `json:"name"}` - Subscription *OrganizationSubscription `json:"subscription,omitempty"}` + Billing *OrganizationBilling `json:"billing,omitempty"` + Name string `json:"name"` + Subscription *OrganizationSubscription `json:"subscription,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_pager_duty_service.go b/api/v1/datadog/model_pager_duty_service.go index e7b2923b8e0..22bf8d6cb7b 100644 --- a/api/v1/datadog/model_pager_duty_service.go +++ b/api/v1/datadog/model_pager_duty_service.go @@ -105,8 +105,8 @@ func (o *PagerDutyService) UnmarshalJSON(bytes []byte) (err error) { ServiceName *string `json:"service_name"` }{} all := struct { - ServiceKey string `json:"service_key"}` - ServiceName string `json:"service_name"}` + ServiceKey string `json:"service_key"` + ServiceName string `json:"service_name"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_pager_duty_service_key.go b/api/v1/datadog/model_pager_duty_service_key.go index b25e0378623..967a1bb3740 100644 --- a/api/v1/datadog/model_pager_duty_service_key.go +++ b/api/v1/datadog/model_pager_duty_service_key.go @@ -74,7 +74,7 @@ func (o *PagerDutyServiceKey) UnmarshalJSON(bytes []byte) (err error) { ServiceKey *string `json:"service_key"` }{} all := struct { - ServiceKey string `json:"service_key"}` + ServiceKey string `json:"service_key"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_pager_duty_service_name.go b/api/v1/datadog/model_pager_duty_service_name.go index e28eaec7699..f4820786757 100644 --- a/api/v1/datadog/model_pager_duty_service_name.go +++ b/api/v1/datadog/model_pager_duty_service_name.go @@ -74,7 +74,7 @@ func (o *PagerDutyServiceName) UnmarshalJSON(bytes []byte) (err error) { ServiceName *string `json:"service_name"` }{} all := struct { - ServiceName string `json:"service_name"}` + ServiceName string `json:"service_name"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_process_query_definition.go b/api/v1/datadog/model_process_query_definition.go index ef7ba00c7f9..961e2f98989 100644 --- a/api/v1/datadog/model_process_query_definition.go +++ b/api/v1/datadog/model_process_query_definition.go @@ -185,10 +185,10 @@ func (o *ProcessQueryDefinition) UnmarshalJSON(bytes []byte) (err error) { Metric *string `json:"metric"` }{} all := struct { - FilterBy *[]string `json:"filter_by,omitempty"}` - Limit *int64 `json:"limit,omitempty"}` - Metric string `json:"metric"}` - SearchBy *string `json:"search_by,omitempty"}` + FilterBy *[]string `json:"filter_by,omitempty"` + Limit *int64 `json:"limit,omitempty"` + Metric string `json:"metric"` + SearchBy *string `json:"search_by,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_query_value_widget_definition.go b/api/v1/datadog/model_query_value_widget_definition.go index 23ff17569c5..99822b0fc34 100644 --- a/api/v1/datadog/model_query_value_widget_definition.go +++ b/api/v1/datadog/model_query_value_widget_definition.go @@ -436,17 +436,17 @@ func (o *QueryValueWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { Type *QueryValueWidgetDefinitionType `json:"type"` }{} all := struct { - Autoscale *bool `json:"autoscale,omitempty"}` - CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"}` - CustomUnit *string `json:"custom_unit,omitempty"}` - Precision *int64 `json:"precision,omitempty"}` - Requests []QueryValueWidgetRequest `json:"requests"}` - TextAlign *WidgetTextAlign `json:"text_align,omitempty"}` - Time *WidgetTime `json:"time,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type QueryValueWidgetDefinitionType `json:"type"}` + Autoscale *bool `json:"autoscale,omitempty"` + CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"` + CustomUnit *string `json:"custom_unit,omitempty"` + Precision *int64 `json:"precision,omitempty"` + Requests []QueryValueWidgetRequest `json:"requests"` + TextAlign *WidgetTextAlign `json:"text_align,omitempty"` + Time *WidgetTime `json:"time,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type QueryValueWidgetDefinitionType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_scatter_plot_widget_definition.go b/api/v1/datadog/model_scatter_plot_widget_definition.go index 4d0c42f5f5c..dbc3a5dae62 100644 --- a/api/v1/datadog/model_scatter_plot_widget_definition.go +++ b/api/v1/datadog/model_scatter_plot_widget_definition.go @@ -397,16 +397,16 @@ func (o *ScatterPlotWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { Type *ScatterPlotWidgetDefinitionType `json:"type"` }{} all := struct { - ColorByGroups *[]string `json:"color_by_groups,omitempty"}` - CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"}` - Requests ScatterPlotWidgetDefinitionRequests `json:"requests"}` - Time *WidgetTime `json:"time,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type ScatterPlotWidgetDefinitionType `json:"type"}` - Xaxis *WidgetAxis `json:"xaxis,omitempty"}` - Yaxis *WidgetAxis `json:"yaxis,omitempty"}` + ColorByGroups *[]string `json:"color_by_groups,omitempty"` + CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"` + Requests ScatterPlotWidgetDefinitionRequests `json:"requests"` + Time *WidgetTime `json:"time,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type ScatterPlotWidgetDefinitionType `json:"type"` + Xaxis *WidgetAxis `json:"xaxis,omitempty"` + Yaxis *WidgetAxis `json:"yaxis,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_scatter_plot_widget_definition_requests.go b/api/v1/datadog/model_scatter_plot_widget_definition_requests.go index c2202bde5d2..0c5433665e8 100644 --- a/api/v1/datadog/model_scatter_plot_widget_definition_requests.go +++ b/api/v1/datadog/model_scatter_plot_widget_definition_requests.go @@ -103,8 +103,8 @@ func (o *ScatterPlotWidgetDefinitionRequests) UnmarshalJSON(bytes []byte) (err e Y *ScatterPlotRequest `json:"y"` }{} all := struct { - X ScatterPlotRequest `json:"x"}` - Y ScatterPlotRequest `json:"y"}` + X ScatterPlotRequest `json:"x"` + Y ScatterPlotRequest `json:"y"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_series.go b/api/v1/datadog/model_series.go index dff4201ce2c..c5a5fbd19e6 100644 --- a/api/v1/datadog/model_series.go +++ b/api/v1/datadog/model_series.go @@ -268,12 +268,12 @@ func (o *Series) UnmarshalJSON(bytes []byte) (err error) { Points *[][]float64 `json:"points"` }{} all := struct { - Host *string `json:"host,omitempty"}` - Interval NullableInt64 `json:"interval,omitempty"}` - Metric string `json:"metric"}` - Points [][]float64 `json:"points"}` - Tags *[]string `json:"tags,omitempty"}` - Type *string `json:"type,omitempty"}` + Host *string `json:"host,omitempty"` + Interval NullableInt64 `json:"interval,omitempty"` + Metric string `json:"metric"` + Points [][]float64 `json:"points"` + Tags *[]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_service_check.go b/api/v1/datadog/model_service_check.go index 646e65f299a..cb0b1ce30ac 100644 --- a/api/v1/datadog/model_service_check.go +++ b/api/v1/datadog/model_service_check.go @@ -240,12 +240,12 @@ func (o *ServiceCheck) UnmarshalJSON(bytes []byte) (err error) { Tags *[]string `json:"tags"` }{} all := struct { - Check string `json:"check"}` - HostName string `json:"host_name"}` - Message *string `json:"message,omitempty"}` - Status ServiceCheckStatus `json:"status"}` - Tags []string `json:"tags"}` - Timestamp *int64 `json:"timestamp,omitempty"}` + Check string `json:"check"` + HostName string `json:"host_name"` + Message *string `json:"message,omitempty"` + Status ServiceCheckStatus `json:"status"` + Tags []string `json:"tags"` + Timestamp *int64 `json:"timestamp,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_service_level_objective.go b/api/v1/datadog/model_service_level_objective.go index f442824b707..260627cc9b2 100644 --- a/api/v1/datadog/model_service_level_objective.go +++ b/api/v1/datadog/model_service_level_objective.go @@ -514,19 +514,19 @@ func (o *ServiceLevelObjective) UnmarshalJSON(bytes []byte) (err error) { Type *SLOType `json:"type"` }{} all := struct { - CreatedAt *int64 `json:"created_at,omitempty"}` - Creator *Creator `json:"creator,omitempty"}` - Description NullableString `json:"description,omitempty"}` - Groups *[]string `json:"groups,omitempty"}` - Id *string `json:"id,omitempty"}` - ModifiedAt *int64 `json:"modified_at,omitempty"}` - MonitorIds *[]int64 `json:"monitor_ids,omitempty"}` - MonitorTags *[]string `json:"monitor_tags,omitempty"}` - Name string `json:"name"}` - Query *ServiceLevelObjectiveQuery `json:"query,omitempty"}` - Tags *[]string `json:"tags,omitempty"}` - Thresholds []SLOThreshold `json:"thresholds"}` - Type SLOType `json:"type"}` + CreatedAt *int64 `json:"created_at,omitempty"` + Creator *Creator `json:"creator,omitempty"` + Description NullableString `json:"description,omitempty"` + Groups *[]string `json:"groups,omitempty"` + Id *string `json:"id,omitempty"` + ModifiedAt *int64 `json:"modified_at,omitempty"` + MonitorIds *[]int64 `json:"monitor_ids,omitempty"` + MonitorTags *[]string `json:"monitor_tags,omitempty"` + Name string `json:"name"` + Query *ServiceLevelObjectiveQuery `json:"query,omitempty"` + Tags *[]string `json:"tags,omitempty"` + Thresholds []SLOThreshold `json:"thresholds"` + Type SLOType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_service_level_objective_query.go b/api/v1/datadog/model_service_level_objective_query.go index 427b91375b6..fa45d8599cb 100644 --- a/api/v1/datadog/model_service_level_objective_query.go +++ b/api/v1/datadog/model_service_level_objective_query.go @@ -105,8 +105,8 @@ func (o *ServiceLevelObjectiveQuery) UnmarshalJSON(bytes []byte) (err error) { Numerator *string `json:"numerator"` }{} all := struct { - Denominator string `json:"denominator"}` - Numerator string `json:"numerator"}` + Denominator string `json:"denominator"` + Numerator string `json:"numerator"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_service_level_objective_request.go b/api/v1/datadog/model_service_level_objective_request.go index 1a6edb81011..6c528d4be65 100644 --- a/api/v1/datadog/model_service_level_objective_request.go +++ b/api/v1/datadog/model_service_level_objective_request.go @@ -330,14 +330,14 @@ func (o *ServiceLevelObjectiveRequest) UnmarshalJSON(bytes []byte) (err error) { Type *SLOType `json:"type"` }{} all := struct { - Description NullableString `json:"description,omitempty"}` - Groups *[]string `json:"groups,omitempty"}` - MonitorIds *[]int64 `json:"monitor_ids,omitempty"}` - Name string `json:"name"}` - Query *ServiceLevelObjectiveQuery `json:"query,omitempty"}` - Tags *[]string `json:"tags,omitempty"}` - Thresholds []SLOThreshold `json:"thresholds"}` - Type SLOType `json:"type"}` + Description NullableString `json:"description,omitempty"` + Groups *[]string `json:"groups,omitempty"` + MonitorIds *[]int64 `json:"monitor_ids,omitempty"` + Name string `json:"name"` + Query *ServiceLevelObjectiveQuery `json:"query,omitempty"` + Tags *[]string `json:"tags,omitempty"` + Thresholds []SLOThreshold `json:"thresholds"` + Type SLOType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_service_map_widget_definition.go b/api/v1/datadog/model_service_map_widget_definition.go index ff462891da0..f9d6600525b 100644 --- a/api/v1/datadog/model_service_map_widget_definition.go +++ b/api/v1/datadog/model_service_map_widget_definition.go @@ -284,13 +284,13 @@ func (o *ServiceMapWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { Type *ServiceMapWidgetDefinitionType `json:"type"` }{} all := struct { - CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"}` - Filters []string `json:"filters"}` - Service string `json:"service"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type ServiceMapWidgetDefinitionType `json:"type"}` + CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"` + Filters []string `json:"filters"` + Service string `json:"service"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type ServiceMapWidgetDefinitionType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_service_summary_widget_definition.go b/api/v1/datadog/model_service_summary_widget_definition.go index 2f7af5a707b..4dea9f9f2ca 100644 --- a/api/v1/datadog/model_service_summary_widget_definition.go +++ b/api/v1/datadog/model_service_summary_widget_definition.go @@ -608,22 +608,22 @@ func (o *ServiceSummaryWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) Type *ServiceSummaryWidgetDefinitionType `json:"type"` }{} all := struct { - DisplayFormat *WidgetServiceSummaryDisplayFormat `json:"display_format,omitempty"}` - Env string `json:"env"}` - Service string `json:"service"}` - ShowBreakdown *bool `json:"show_breakdown,omitempty"}` - ShowDistribution *bool `json:"show_distribution,omitempty"}` - ShowErrors *bool `json:"show_errors,omitempty"}` - ShowHits *bool `json:"show_hits,omitempty"}` - ShowLatency *bool `json:"show_latency,omitempty"}` - ShowResourceList *bool `json:"show_resource_list,omitempty"}` - SizeFormat *WidgetSizeFormat `json:"size_format,omitempty"}` - SpanName string `json:"span_name"}` - Time *WidgetTime `json:"time,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type ServiceSummaryWidgetDefinitionType `json:"type"}` + DisplayFormat *WidgetServiceSummaryDisplayFormat `json:"display_format,omitempty"` + Env string `json:"env"` + Service string `json:"service"` + ShowBreakdown *bool `json:"show_breakdown,omitempty"` + ShowDistribution *bool `json:"show_distribution,omitempty"` + ShowErrors *bool `json:"show_errors,omitempty"` + ShowHits *bool `json:"show_hits,omitempty"` + ShowLatency *bool `json:"show_latency,omitempty"` + ShowResourceList *bool `json:"show_resource_list,omitempty"` + SizeFormat *WidgetSizeFormat `json:"size_format,omitempty"` + SpanName string `json:"span_name"` + Time *WidgetTime `json:"time,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type ServiceSummaryWidgetDefinitionType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_slo_bulk_delete_error.go b/api/v1/datadog/model_slo_bulk_delete_error.go index 5a607aa23f9..e76bdd640c9 100644 --- a/api/v1/datadog/model_slo_bulk_delete_error.go +++ b/api/v1/datadog/model_slo_bulk_delete_error.go @@ -135,9 +135,9 @@ func (o *SLOBulkDeleteError) UnmarshalJSON(bytes []byte) (err error) { Timeframe *SLOErrorTimeframe `json:"timeframe"` }{} all := struct { - Id string `json:"id"}` - Message string `json:"message"}` - Timeframe SLOErrorTimeframe `json:"timeframe"}` + Id string `json:"id"` + Message string `json:"message"` + Timeframe SLOErrorTimeframe `json:"timeframe"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_slo_correction_create_request_attributes.go b/api/v1/datadog/model_slo_correction_create_request_attributes.go index a6e947ad750..c07f5c0ec44 100644 --- a/api/v1/datadog/model_slo_correction_create_request_attributes.go +++ b/api/v1/datadog/model_slo_correction_create_request_attributes.go @@ -240,12 +240,12 @@ func (o *SLOCorrectionCreateRequestAttributes) UnmarshalJSON(bytes []byte) (err Start *int64 `json:"start"` }{} all := struct { - Category SLOCorrectionCategory `json:"category"}` - Description *string `json:"description,omitempty"}` - End int64 `json:"end"}` - SloId string `json:"slo_id"}` - Start int64 `json:"start"}` - Timezone *string `json:"timezone,omitempty"}` + Category SLOCorrectionCategory `json:"category"` + Description *string `json:"description,omitempty"` + End int64 `json:"end"` + SloId string `json:"slo_id"` + Start int64 `json:"start"` + Timezone *string `json:"timezone,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_slo_history_metrics.go b/api/v1/datadog/model_slo_history_metrics.go index 8ddace9cbf0..b879b51bc6e 100644 --- a/api/v1/datadog/model_slo_history_metrics.go +++ b/api/v1/datadog/model_slo_history_metrics.go @@ -295,14 +295,14 @@ func (o *SLOHistoryMetrics) UnmarshalJSON(bytes []byte) (err error) { Times *[]float64 `json:"times"` }{} all := struct { - Denominator SLOHistoryMetricsSeries `json:"denominator"}` - Interval int64 `json:"interval"}` - Message *string `json:"message,omitempty"}` - Numerator SLOHistoryMetricsSeries `json:"numerator"}` - Query string `json:"query"}` - ResType string `json:"res_type"}` - RespVersion int64 `json:"resp_version"}` - Times []float64 `json:"times"}` + Denominator SLOHistoryMetricsSeries `json:"denominator"` + Interval int64 `json:"interval"` + Message *string `json:"message,omitempty"` + Numerator SLOHistoryMetricsSeries `json:"numerator"` + Query string `json:"query"` + ResType string `json:"res_type"` + RespVersion int64 `json:"resp_version"` + Times []float64 `json:"times"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_slo_history_metrics_series.go b/api/v1/datadog/model_slo_history_metrics_series.go index 9f1f8fd89ec..38706389e27 100644 --- a/api/v1/datadog/model_slo_history_metrics_series.go +++ b/api/v1/datadog/model_slo_history_metrics_series.go @@ -166,10 +166,10 @@ func (o *SLOHistoryMetricsSeries) UnmarshalJSON(bytes []byte) (err error) { Values *[]float64 `json:"values"` }{} all := struct { - Count int64 `json:"count"}` - Metadata SLOHistoryMetricsSeriesMetadata `json:"metadata"}` - Sum float64 `json:"sum"}` - Values []float64 `json:"values"}` + Count int64 `json:"count"` + Metadata SLOHistoryMetricsSeriesMetadata `json:"metadata"` + Sum float64 `json:"sum"` + Values []float64 `json:"values"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_slo_threshold.go b/api/v1/datadog/model_slo_threshold.go index 40275e1c8e0..59688658d41 100644 --- a/api/v1/datadog/model_slo_threshold.go +++ b/api/v1/datadog/model_slo_threshold.go @@ -215,11 +215,11 @@ func (o *SLOThreshold) UnmarshalJSON(bytes []byte) (err error) { Timeframe *SLOTimeframe `json:"timeframe"` }{} all := struct { - Target float64 `json:"target"}` - TargetDisplay *string `json:"target_display,omitempty"}` - Timeframe SLOTimeframe `json:"timeframe"}` - Warning *float64 `json:"warning,omitempty"}` - WarningDisplay *string `json:"warning_display,omitempty"}` + Target float64 `json:"target"` + TargetDisplay *string `json:"target_display,omitempty"` + Timeframe SLOTimeframe `json:"timeframe"` + Warning *float64 `json:"warning,omitempty"` + WarningDisplay *string `json:"warning_display,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_slo_widget_definition.go b/api/v1/datadog/model_slo_widget_definition.go index 93e2b94185e..50e4155fb22 100644 --- a/api/v1/datadog/model_slo_widget_definition.go +++ b/api/v1/datadog/model_slo_widget_definition.go @@ -402,16 +402,16 @@ func (o *SLOWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { ViewType *string `json:"view_type"` }{} all := struct { - GlobalTimeTarget *string `json:"global_time_target,omitempty"}` - ShowErrorBudget *bool `json:"show_error_budget,omitempty"}` - SloId *string `json:"slo_id,omitempty"}` - TimeWindows *[]WidgetTimeWindows `json:"time_windows,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type SLOWidgetDefinitionType `json:"type"}` - ViewMode *WidgetViewMode `json:"view_mode,omitempty"}` - ViewType string `json:"view_type"}` + GlobalTimeTarget *string `json:"global_time_target,omitempty"` + ShowErrorBudget *bool `json:"show_error_budget,omitempty"` + SloId *string `json:"slo_id,omitempty"` + TimeWindows *[]WidgetTimeWindows `json:"time_windows,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type SLOWidgetDefinitionType `json:"type"` + ViewMode *WidgetViewMode `json:"view_mode,omitempty"` + ViewType string `json:"view_type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_synthetics_api_test_result_full_check.go b/api/v1/datadog/model_synthetics_api_test_result_full_check.go index 849d2f03b94..c2af6e92d5b 100644 --- a/api/v1/datadog/model_synthetics_api_test_result_full_check.go +++ b/api/v1/datadog/model_synthetics_api_test_result_full_check.go @@ -73,7 +73,7 @@ func (o *SyntheticsAPITestResultFullCheck) UnmarshalJSON(bytes []byte) (err erro Config *SyntheticsTestConfig `json:"config"` }{} all := struct { - Config SyntheticsTestConfig `json:"config"}` + Config SyntheticsTestConfig `json:"config"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_synthetics_assertion_json_path_target.go b/api/v1/datadog/model_synthetics_assertion_json_path_target.go index 30e2eef5f94..108ff310520 100644 --- a/api/v1/datadog/model_synthetics_assertion_json_path_target.go +++ b/api/v1/datadog/model_synthetics_assertion_json_path_target.go @@ -176,10 +176,10 @@ func (o *SyntheticsAssertionJSONPathTarget) UnmarshalJSON(bytes []byte) (err err Type *SyntheticsAssertionType `json:"type"` }{} all := struct { - Operator SyntheticsAssertionJSONPathOperator `json:"operator"}` - Property *string `json:"property,omitempty"}` - Target *SyntheticsAssertionJSONPathTargetTarget `json:"target,omitempty"}` - Type SyntheticsAssertionType `json:"type"}` + Operator SyntheticsAssertionJSONPathOperator `json:"operator"` + Property *string `json:"property,omitempty"` + Target *SyntheticsAssertionJSONPathTargetTarget `json:"target,omitempty"` + Type SyntheticsAssertionType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_synthetics_assertion_target.go b/api/v1/datadog/model_synthetics_assertion_target.go index 09eeac28ccf..c4cecfcdbe8 100644 --- a/api/v1/datadog/model_synthetics_assertion_target.go +++ b/api/v1/datadog/model_synthetics_assertion_target.go @@ -177,10 +177,10 @@ func (o *SyntheticsAssertionTarget) UnmarshalJSON(bytes []byte) (err error) { Type *SyntheticsAssertionType `json:"type"` }{} all := struct { - Operator SyntheticsAssertionOperator `json:"operator"}` - Property *string `json:"property,omitempty"}` - Target *interface{} `json:"target,omitempty"}` - Type SyntheticsAssertionType `json:"type"}` + Operator SyntheticsAssertionOperator `json:"operator"` + Property *string `json:"property,omitempty"` + Target *interface{} `json:"target,omitempty"` + Type SyntheticsAssertionType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_synthetics_basic_auth.go b/api/v1/datadog/model_synthetics_basic_auth.go index 74f76344feb..dd42ea29cfc 100644 --- a/api/v1/datadog/model_synthetics_basic_auth.go +++ b/api/v1/datadog/model_synthetics_basic_auth.go @@ -105,8 +105,8 @@ func (o *SyntheticsBasicAuth) UnmarshalJSON(bytes []byte) (err error) { Username *string `json:"username"` }{} all := struct { - Password string `json:"password"}` - Username string `json:"username"}` + Password string `json:"password"` + Username string `json:"username"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_synthetics_browser_error.go b/api/v1/datadog/model_synthetics_browser_error.go index 5dfe3ca6eb0..4f005707d17 100644 --- a/api/v1/datadog/model_synthetics_browser_error.go +++ b/api/v1/datadog/model_synthetics_browser_error.go @@ -172,10 +172,10 @@ func (o *SyntheticsBrowserError) UnmarshalJSON(bytes []byte) (err error) { Type *SyntheticsBrowserErrorType `json:"type"` }{} all := struct { - Description string `json:"description"}` - Name string `json:"name"}` - StatusCode *int64 `json:"statusCode,omitempty"}` - Type SyntheticsBrowserErrorType `json:"type"}` + Description string `json:"description"` + Name string `json:"name"` + StatusCode *int64 `json:"statusCode,omitempty"` + Type SyntheticsBrowserErrorType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_synthetics_browser_test_.go b/api/v1/datadog/model_synthetics_browser_test_.go index cbbdc48b1e1..1b6f582d1da 100644 --- a/api/v1/datadog/model_synthetics_browser_test_.go +++ b/api/v1/datadog/model_synthetics_browser_test_.go @@ -444,17 +444,17 @@ func (o *SyntheticsBrowserTest) UnmarshalJSON(bytes []byte) (err error) { Message *string `json:"message"` }{} all := struct { - Config *SyntheticsBrowserTestConfig `json:"config,omitempty"}` - Locations *[]string `json:"locations,omitempty"}` - Message string `json:"message"}` - MonitorId *int64 `json:"monitor_id,omitempty"}` - Name *string `json:"name,omitempty"}` - Options *SyntheticsTestOptions `json:"options,omitempty"}` - PublicId *string `json:"public_id,omitempty"}` - Status *SyntheticsTestPauseStatus `json:"status,omitempty"}` - Steps *[]SyntheticsStep `json:"steps,omitempty"}` - Tags *[]string `json:"tags,omitempty"}` - Type *SyntheticsBrowserTestType `json:"type,omitempty"}` + Config *SyntheticsBrowserTestConfig `json:"config,omitempty"` + Locations *[]string `json:"locations,omitempty"` + Message string `json:"message"` + MonitorId *int64 `json:"monitor_id,omitempty"` + Name *string `json:"name,omitempty"` + Options *SyntheticsTestOptions `json:"options,omitempty"` + PublicId *string `json:"public_id,omitempty"` + Status *SyntheticsTestPauseStatus `json:"status,omitempty"` + Steps *[]SyntheticsStep `json:"steps,omitempty"` + Tags *[]string `json:"tags,omitempty"` + Type *SyntheticsBrowserTestType `json:"type,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_synthetics_browser_test_config.go b/api/v1/datadog/model_synthetics_browser_test_config.go index 10633e1afa5..e50f3aa91a4 100644 --- a/api/v1/datadog/model_synthetics_browser_test_config.go +++ b/api/v1/datadog/model_synthetics_browser_test_config.go @@ -178,10 +178,10 @@ func (o *SyntheticsBrowserTestConfig) UnmarshalJSON(bytes []byte) (err error) { Request *SyntheticsTestRequest `json:"request"` }{} all := struct { - Assertions []SyntheticsAssertion `json:"assertions"}` - Request SyntheticsTestRequest `json:"request"}` - SetCookie *string `json:"setCookie,omitempty"}` - Variables *[]SyntheticsBrowserVariable `json:"variables,omitempty"}` + Assertions []SyntheticsAssertion `json:"assertions"` + Request SyntheticsTestRequest `json:"request"` + SetCookie *string `json:"setCookie,omitempty"` + Variables *[]SyntheticsBrowserVariable `json:"variables,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_synthetics_browser_test_result_full_check.go b/api/v1/datadog/model_synthetics_browser_test_result_full_check.go index 274aadf6b74..017adcf03cc 100644 --- a/api/v1/datadog/model_synthetics_browser_test_result_full_check.go +++ b/api/v1/datadog/model_synthetics_browser_test_result_full_check.go @@ -73,7 +73,7 @@ func (o *SyntheticsBrowserTestResultFullCheck) UnmarshalJSON(bytes []byte) (err Config *SyntheticsTestConfig `json:"config"` }{} all := struct { - Config SyntheticsTestConfig `json:"config"}` + Config SyntheticsTestConfig `json:"config"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_synthetics_browser_variable.go b/api/v1/datadog/model_synthetics_browser_variable.go index b3c5f7de032..0c6e9a86f2c 100644 --- a/api/v1/datadog/model_synthetics_browser_variable.go +++ b/api/v1/datadog/model_synthetics_browser_variable.go @@ -215,11 +215,11 @@ func (o *SyntheticsBrowserVariable) UnmarshalJSON(bytes []byte) (err error) { Type *SyntheticsBrowserVariableType `json:"type"` }{} all := struct { - Example *string `json:"example,omitempty"}` - Id *string `json:"id,omitempty"}` - Name string `json:"name"}` - Pattern *string `json:"pattern,omitempty"}` - Type SyntheticsBrowserVariableType `json:"type"}` + Example *string `json:"example,omitempty"` + Id *string `json:"id,omitempty"` + Name string `json:"name"` + Pattern *string `json:"pattern,omitempty"` + Type SyntheticsBrowserVariableType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_synthetics_ci_test_.go b/api/v1/datadog/model_synthetics_ci_test_.go index f3248e64ce1..4d22245f55b 100644 --- a/api/v1/datadog/model_synthetics_ci_test_.go +++ b/api/v1/datadog/model_synthetics_ci_test_.go @@ -552,20 +552,20 @@ func (o *SyntheticsCITest) UnmarshalJSON(bytes []byte) (err error) { PublicId *string `json:"public_id"` }{} all := struct { - AllowInsecureCertificates *bool `json:"allowInsecureCertificates,omitempty"}` - BasicAuth *SyntheticsBasicAuth `json:"basicAuth,omitempty"}` - Body *string `json:"body,omitempty"}` - BodyType *string `json:"bodyType,omitempty"}` - Cookies *string `json:"cookies,omitempty"}` - DeviceIds *[]SyntheticsDeviceID `json:"deviceIds,omitempty"}` - FollowRedirects *bool `json:"followRedirects,omitempty"}` - Headers *map[string]string `json:"headers,omitempty"}` - Locations *[]string `json:"locations,omitempty"}` - Metadata *SyntheticsCITestMetadata `json:"metadata,omitempty"}` - PublicId string `json:"public_id"}` - Retry *SyntheticsTestOptionsRetry `json:"retry,omitempty"}` - StartUrl *string `json:"startUrl,omitempty"}` - Variables *map[string]string `json:"variables,omitempty"}` + AllowInsecureCertificates *bool `json:"allowInsecureCertificates,omitempty"` + BasicAuth *SyntheticsBasicAuth `json:"basicAuth,omitempty"` + Body *string `json:"body,omitempty"` + BodyType *string `json:"bodyType,omitempty"` + Cookies *string `json:"cookies,omitempty"` + DeviceIds *[]SyntheticsDeviceID `json:"deviceIds,omitempty"` + FollowRedirects *bool `json:"followRedirects,omitempty"` + Headers *map[string]string `json:"headers,omitempty"` + Locations *[]string `json:"locations,omitempty"` + Metadata *SyntheticsCITestMetadata `json:"metadata,omitempty"` + PublicId string `json:"public_id"` + Retry *SyntheticsTestOptionsRetry `json:"retry,omitempty"` + StartUrl *string `json:"startUrl,omitempty"` + Variables *map[string]string `json:"variables,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_synthetics_config_variable.go b/api/v1/datadog/model_synthetics_config_variable.go index 7d2f2b852f5..ad868325e69 100644 --- a/api/v1/datadog/model_synthetics_config_variable.go +++ b/api/v1/datadog/model_synthetics_config_variable.go @@ -215,11 +215,11 @@ func (o *SyntheticsConfigVariable) UnmarshalJSON(bytes []byte) (err error) { Type *SyntheticsConfigVariableType `json:"type"` }{} all := struct { - Example *string `json:"example,omitempty"}` - Id *string `json:"id,omitempty"}` - Name string `json:"name"}` - Pattern *string `json:"pattern,omitempty"}` - Type SyntheticsConfigVariableType `json:"type"}` + Example *string `json:"example,omitempty"` + Id *string `json:"id,omitempty"` + Name string `json:"name"` + Pattern *string `json:"pattern,omitempty"` + Type SyntheticsConfigVariableType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_synthetics_device.go b/api/v1/datadog/model_synthetics_device.go index 4d519e2cf88..2e63e146808 100644 --- a/api/v1/datadog/model_synthetics_device.go +++ b/api/v1/datadog/model_synthetics_device.go @@ -203,11 +203,11 @@ func (o *SyntheticsDevice) UnmarshalJSON(bytes []byte) (err error) { Width *int64 `json:"width"` }{} all := struct { - Height int64 `json:"height"}` - Id SyntheticsDeviceID `json:"id"}` - IsMobile *bool `json:"isMobile,omitempty"}` - Name string `json:"name"}` - Width int64 `json:"width"}` + Height int64 `json:"height"` + Id SyntheticsDeviceID `json:"id"` + IsMobile *bool `json:"isMobile,omitempty"` + Name string `json:"name"` + Width int64 `json:"width"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_synthetics_global_variable.go b/api/v1/datadog/model_synthetics_global_variable.go index f12af6f2e44..0a4f10ceada 100644 --- a/api/v1/datadog/model_synthetics_global_variable.go +++ b/api/v1/datadog/model_synthetics_global_variable.go @@ -276,13 +276,13 @@ func (o *SyntheticsGlobalVariable) UnmarshalJSON(bytes []byte) (err error) { Value *SyntheticsGlobalVariableValue `json:"value"` }{} all := struct { - Description string `json:"description"}` - Id *string `json:"id,omitempty"}` - Name string `json:"name"}` - ParseTestOptions *SyntheticsGlobalVariableParseTestOptions `json:"parse_test_options,omitempty"}` - ParseTestPublicId *string `json:"parse_test_public_id,omitempty"}` - Tags []string `json:"tags"}` - Value SyntheticsGlobalVariableValue `json:"value"}` + Description string `json:"description"` + Id *string `json:"id,omitempty"` + Name string `json:"name"` + ParseTestOptions *SyntheticsGlobalVariableParseTestOptions `json:"parse_test_options,omitempty"` + ParseTestPublicId *string `json:"parse_test_public_id,omitempty"` + Tags []string `json:"tags"` + Value SyntheticsGlobalVariableValue `json:"value"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_synthetics_global_variable_parse_test_options.go b/api/v1/datadog/model_synthetics_global_variable_parse_test_options.go index d2857fc11f0..6aadb837de5 100644 --- a/api/v1/datadog/model_synthetics_global_variable_parse_test_options.go +++ b/api/v1/datadog/model_synthetics_global_variable_parse_test_options.go @@ -140,9 +140,9 @@ func (o *SyntheticsGlobalVariableParseTestOptions) UnmarshalJSON(bytes []byte) ( Type *SyntheticsGlobalVariableParseTestOptionsType `json:"type"` }{} all := struct { - Field *string `json:"field,omitempty"}` - Parser SyntheticsVariableParser `json:"parser"}` - Type SyntheticsGlobalVariableParseTestOptionsType `json:"type"}` + Field *string `json:"field,omitempty"` + Parser SyntheticsVariableParser `json:"parser"` + Type SyntheticsGlobalVariableParseTestOptionsType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_synthetics_private_location.go b/api/v1/datadog/model_synthetics_private_location.go index ebe77710aca..3ab056c46da 100644 --- a/api/v1/datadog/model_synthetics_private_location.go +++ b/api/v1/datadog/model_synthetics_private_location.go @@ -209,11 +209,11 @@ func (o *SyntheticsPrivateLocation) UnmarshalJSON(bytes []byte) (err error) { Tags *[]string `json:"tags"` }{} all := struct { - Description string `json:"description"}` - Id *string `json:"id,omitempty"}` - Name string `json:"name"}` - Secrets *SyntheticsPrivateLocationSecrets `json:"secrets,omitempty"}` - Tags []string `json:"tags"}` + Description string `json:"description"` + Id *string `json:"id,omitempty"` + Name string `json:"name"` + Secrets *SyntheticsPrivateLocationSecrets `json:"secrets,omitempty"` + Tags []string `json:"tags"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_synthetics_step_detail_warning.go b/api/v1/datadog/model_synthetics_step_detail_warning.go index 3e43f511ea6..c1abc4957ec 100644 --- a/api/v1/datadog/model_synthetics_step_detail_warning.go +++ b/api/v1/datadog/model_synthetics_step_detail_warning.go @@ -104,8 +104,8 @@ func (o *SyntheticsStepDetailWarning) UnmarshalJSON(bytes []byte) (err error) { Type *SyntheticsWarningType `json:"type"` }{} all := struct { - Message string `json:"message"}` - Type SyntheticsWarningType `json:"type"}` + Message string `json:"message"` + Type SyntheticsWarningType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_synthetics_variable_parser.go b/api/v1/datadog/model_synthetics_variable_parser.go index 5c9f6f63249..6efbb57dc1d 100644 --- a/api/v1/datadog/model_synthetics_variable_parser.go +++ b/api/v1/datadog/model_synthetics_variable_parser.go @@ -110,8 +110,8 @@ func (o *SyntheticsVariableParser) UnmarshalJSON(bytes []byte) (err error) { Type *SyntheticsGlobalVariableParserType `json:"type"` }{} all := struct { - Type SyntheticsGlobalVariableParserType `json:"type"}` - Value *string `json:"value,omitempty"}` + Type SyntheticsGlobalVariableParserType `json:"type"` + Value *string `json:"value,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_table_widget_definition.go b/api/v1/datadog/model_table_widget_definition.go index b3b72d04af1..07c43829a9a 100644 --- a/api/v1/datadog/model_table_widget_definition.go +++ b/api/v1/datadog/model_table_widget_definition.go @@ -325,14 +325,14 @@ func (o *TableWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { Type *TableWidgetDefinitionType `json:"type"` }{} all := struct { - CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"}` - HasSearchBar *TableWidgetHasSearchBar `json:"has_search_bar,omitempty"}` - Requests []TableWidgetRequest `json:"requests"}` - Time *WidgetTime `json:"time,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type TableWidgetDefinitionType `json:"type"}` + CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"` + HasSearchBar *TableWidgetHasSearchBar `json:"has_search_bar,omitempty"` + Requests []TableWidgetRequest `json:"requests"` + Time *WidgetTime `json:"time,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type TableWidgetDefinitionType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_timeseries_widget_definition.go b/api/v1/datadog/model_timeseries_widget_definition.go index 1a3e0a24c7f..4ae350809cc 100644 --- a/api/v1/datadog/model_timeseries_widget_definition.go +++ b/api/v1/datadog/model_timeseries_widget_definition.go @@ -582,21 +582,21 @@ func (o *TimeseriesWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { Type *TimeseriesWidgetDefinitionType `json:"type"` }{} all := struct { - CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"}` - Events *[]WidgetEvent `json:"events,omitempty"}` - LegendColumns *[]TimeseriesWidgetLegendColumn `json:"legend_columns,omitempty"}` - LegendLayout *TimeseriesWidgetLegendLayout `json:"legend_layout,omitempty"}` - LegendSize *string `json:"legend_size,omitempty"}` - Markers *[]WidgetMarker `json:"markers,omitempty"}` - Requests []TimeseriesWidgetRequest `json:"requests"}` - RightYaxis *WidgetAxis `json:"right_yaxis,omitempty"}` - ShowLegend *bool `json:"show_legend,omitempty"}` - Time *WidgetTime `json:"time,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type TimeseriesWidgetDefinitionType `json:"type"}` - Yaxis *WidgetAxis `json:"yaxis,omitempty"}` + CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"` + Events *[]WidgetEvent `json:"events,omitempty"` + LegendColumns *[]TimeseriesWidgetLegendColumn `json:"legend_columns,omitempty"` + LegendLayout *TimeseriesWidgetLegendLayout `json:"legend_layout,omitempty"` + LegendSize *string `json:"legend_size,omitempty"` + Markers *[]WidgetMarker `json:"markers,omitempty"` + Requests []TimeseriesWidgetRequest `json:"requests"` + RightYaxis *WidgetAxis `json:"right_yaxis,omitempty"` + ShowLegend *bool `json:"show_legend,omitempty"` + Time *WidgetTime `json:"time,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type TimeseriesWidgetDefinitionType `json:"type"` + Yaxis *WidgetAxis `json:"yaxis,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_timeseries_widget_expression_alias.go b/api/v1/datadog/model_timeseries_widget_expression_alias.go index 9d0cf2f8f7f..6d60c84356c 100644 --- a/api/v1/datadog/model_timeseries_widget_expression_alias.go +++ b/api/v1/datadog/model_timeseries_widget_expression_alias.go @@ -111,8 +111,8 @@ func (o *TimeseriesWidgetExpressionAlias) UnmarshalJSON(bytes []byte) (err error Expression *string `json:"expression"` }{} all := struct { - AliasName *string `json:"alias_name,omitempty"}` - Expression string `json:"expression"}` + AliasName *string `json:"alias_name,omitempty"` + Expression string `json:"expression"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_toplist_widget_definition.go b/api/v1/datadog/model_toplist_widget_definition.go index e18c63ade9a..72e7566daa7 100644 --- a/api/v1/datadog/model_toplist_widget_definition.go +++ b/api/v1/datadog/model_toplist_widget_definition.go @@ -289,13 +289,13 @@ func (o *ToplistWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) { Type *ToplistWidgetDefinitionType `json:"type"` }{} all := struct { - CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"}` - Requests []ToplistWidgetRequest `json:"requests"}` - Time *WidgetTime `json:"time,omitempty"}` - Title *string `json:"title,omitempty"}` - TitleAlign *WidgetTextAlign `json:"title_align,omitempty"}` - TitleSize *string `json:"title_size,omitempty"}` - Type ToplistWidgetDefinitionType `json:"type"}` + CustomLinks *[]WidgetCustomLink `json:"custom_links,omitempty"` + Requests []ToplistWidgetRequest `json:"requests"` + Time *WidgetTime `json:"time,omitempty"` + Title *string `json:"title,omitempty"` + TitleAlign *WidgetTextAlign `json:"title_align,omitempty"` + TitleSize *string `json:"title_size,omitempty"` + Type ToplistWidgetDefinitionType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_widget.go b/api/v1/datadog/model_widget.go index d44830412da..537052a106d 100644 --- a/api/v1/datadog/model_widget.go +++ b/api/v1/datadog/model_widget.go @@ -146,9 +146,9 @@ func (o *Widget) UnmarshalJSON(bytes []byte) (err error) { Definition *WidgetDefinition `json:"definition"` }{} all := struct { - Definition WidgetDefinition `json:"definition"}` - Id *int64 `json:"id,omitempty"}` - Layout *WidgetLayout `json:"layout,omitempty"}` + Definition WidgetDefinition `json:"definition"` + Id *int64 `json:"id,omitempty"` + Layout *WidgetLayout `json:"layout,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_widget_conditional_format.go b/api/v1/datadog/model_widget_conditional_format.go index b40b52c1b8a..eeb14706e02 100644 --- a/api/v1/datadog/model_widget_conditional_format.go +++ b/api/v1/datadog/model_widget_conditional_format.go @@ -356,15 +356,15 @@ func (o *WidgetConditionalFormat) UnmarshalJSON(bytes []byte) (err error) { Value *float64 `json:"value"` }{} all := struct { - Comparator WidgetComparator `json:"comparator"}` - CustomBgColor *string `json:"custom_bg_color,omitempty"}` - CustomFgColor *string `json:"custom_fg_color,omitempty"}` - HideValue *bool `json:"hide_value,omitempty"}` - ImageUrl *string `json:"image_url,omitempty"}` - Metric *string `json:"metric,omitempty"}` - Palette WidgetPalette `json:"palette"}` - Timeframe *string `json:"timeframe,omitempty"}` - Value float64 `json:"value"}` + Comparator WidgetComparator `json:"comparator"` + CustomBgColor *string `json:"custom_bg_color,omitempty"` + CustomFgColor *string `json:"custom_fg_color,omitempty"` + HideValue *bool `json:"hide_value,omitempty"` + ImageUrl *string `json:"image_url,omitempty"` + Metric *string `json:"metric,omitempty"` + Palette WidgetPalette `json:"palette"` + Timeframe *string `json:"timeframe,omitempty"` + Value float64 `json:"value"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_widget_event.go b/api/v1/datadog/model_widget_event.go index cdc3de37efd..8572b1b9321 100644 --- a/api/v1/datadog/model_widget_event.go +++ b/api/v1/datadog/model_widget_event.go @@ -111,8 +111,8 @@ func (o *WidgetEvent) UnmarshalJSON(bytes []byte) (err error) { Q *string `json:"q"` }{} all := struct { - Q string `json:"q"}` - TagsExecution *string `json:"tags_execution,omitempty"}` + Q string `json:"q"` + TagsExecution *string `json:"tags_execution,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_widget_field_sort.go b/api/v1/datadog/model_widget_field_sort.go index ffef6438abe..c04d8c74aae 100644 --- a/api/v1/datadog/model_widget_field_sort.go +++ b/api/v1/datadog/model_widget_field_sort.go @@ -104,8 +104,8 @@ func (o *WidgetFieldSort) UnmarshalJSON(bytes []byte) (err error) { Order *WidgetSort `json:"order"` }{} all := struct { - Column string `json:"column"}` - Order WidgetSort `json:"order"}` + Column string `json:"column"` + Order WidgetSort `json:"order"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_widget_formula.go b/api/v1/datadog/model_widget_formula.go index 097eeb01a3c..a87cac8d3e8 100644 --- a/api/v1/datadog/model_widget_formula.go +++ b/api/v1/datadog/model_widget_formula.go @@ -147,9 +147,9 @@ func (o *WidgetFormula) UnmarshalJSON(bytes []byte) (err error) { Formula *string `json:"formula"` }{} all := struct { - Alias *string `json:"alias,omitempty"}` - Formula string `json:"formula"}` - Limit *WidgetFormulaLimit `json:"limit,omitempty"}` + Alias *string `json:"alias,omitempty"` + Formula string `json:"formula"` + Limit *WidgetFormulaLimit `json:"limit,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_widget_layout.go b/api/v1/datadog/model_widget_layout.go index c2b3ddf76b5..e0e35b2c495 100644 --- a/api/v1/datadog/model_widget_layout.go +++ b/api/v1/datadog/model_widget_layout.go @@ -204,11 +204,11 @@ func (o *WidgetLayout) UnmarshalJSON(bytes []byte) (err error) { Y *int64 `json:"y"` }{} all := struct { - Height int64 `json:"height"}` - IsColumnBreak *bool `json:"is_column_break,omitempty"}` - Width int64 `json:"width"}` - X int64 `json:"x"}` - Y int64 `json:"y"}` + Height int64 `json:"height"` + IsColumnBreak *bool `json:"is_column_break,omitempty"` + Width int64 `json:"width"` + X int64 `json:"x"` + Y int64 `json:"y"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v1/datadog/model_widget_marker.go b/api/v1/datadog/model_widget_marker.go index 28308663fd9..2ca5114756a 100644 --- a/api/v1/datadog/model_widget_marker.go +++ b/api/v1/datadog/model_widget_marker.go @@ -185,10 +185,10 @@ func (o *WidgetMarker) UnmarshalJSON(bytes []byte) (err error) { Value *string `json:"value"` }{} all := struct { - DisplayType *string `json:"display_type,omitempty"}` - Label *string `json:"label,omitempty"}` - Time *string `json:"time,omitempty"}` - Value string `json:"value"}` + DisplayType *string `json:"display_type,omitempty"` + Label *string `json:"label,omitempty"` + Time *string `json:"time,omitempty"` + Value string `json:"value"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_api_error_response.go b/api/v2/datadog/model_api_error_response.go index 9afd053bd6a..2f46f9eca23 100644 --- a/api/v2/datadog/model_api_error_response.go +++ b/api/v2/datadog/model_api_error_response.go @@ -74,7 +74,7 @@ func (o *APIErrorResponse) UnmarshalJSON(bytes []byte) (err error) { Errors *[]string `json:"errors"` }{} all := struct { - Errors []string `json:"errors"}` + Errors []string `json:"errors"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_api_key_create_attributes.go b/api/v2/datadog/model_api_key_create_attributes.go index f189929a83d..540c9299601 100644 --- a/api/v2/datadog/model_api_key_create_attributes.go +++ b/api/v2/datadog/model_api_key_create_attributes.go @@ -74,7 +74,7 @@ func (o *APIKeyCreateAttributes) UnmarshalJSON(bytes []byte) (err error) { Name *string `json:"name"` }{} all := struct { - Name string `json:"name"}` + Name string `json:"name"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_api_key_create_data.go b/api/v2/datadog/model_api_key_create_data.go index 03c4b898a9f..6cc9b247a8e 100644 --- a/api/v2/datadog/model_api_key_create_data.go +++ b/api/v2/datadog/model_api_key_create_data.go @@ -105,8 +105,8 @@ func (o *APIKeyCreateData) UnmarshalJSON(bytes []byte) (err error) { Type *APIKeysType `json:"type"` }{} all := struct { - Attributes APIKeyCreateAttributes `json:"attributes"}` - Type APIKeysType `json:"type"}` + Attributes APIKeyCreateAttributes `json:"attributes"` + Type APIKeysType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_api_key_create_request.go b/api/v2/datadog/model_api_key_create_request.go index 2347d7485a7..92dcb73dc50 100644 --- a/api/v2/datadog/model_api_key_create_request.go +++ b/api/v2/datadog/model_api_key_create_request.go @@ -73,7 +73,7 @@ func (o *APIKeyCreateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *APIKeyCreateData `json:"data"` }{} all := struct { - Data APIKeyCreateData `json:"data"}` + Data APIKeyCreateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_api_key_update_attributes.go b/api/v2/datadog/model_api_key_update_attributes.go index e90850c99c0..63ab93e18e2 100644 --- a/api/v2/datadog/model_api_key_update_attributes.go +++ b/api/v2/datadog/model_api_key_update_attributes.go @@ -74,7 +74,7 @@ func (o *APIKeyUpdateAttributes) UnmarshalJSON(bytes []byte) (err error) { Name *string `json:"name"` }{} all := struct { - Name string `json:"name"}` + Name string `json:"name"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_api_key_update_data.go b/api/v2/datadog/model_api_key_update_data.go index 2731cd55bf9..d4861db88e0 100644 --- a/api/v2/datadog/model_api_key_update_data.go +++ b/api/v2/datadog/model_api_key_update_data.go @@ -136,9 +136,9 @@ func (o *APIKeyUpdateData) UnmarshalJSON(bytes []byte) (err error) { Type *APIKeysType `json:"type"` }{} all := struct { - Attributes APIKeyUpdateAttributes `json:"attributes"}` - Id string `json:"id"}` - Type APIKeysType `json:"type"}` + Attributes APIKeyUpdateAttributes `json:"attributes"` + Id string `json:"id"` + Type APIKeysType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_api_key_update_request.go b/api/v2/datadog/model_api_key_update_request.go index 5fe4511e5dc..cea99aa624b 100644 --- a/api/v2/datadog/model_api_key_update_request.go +++ b/api/v2/datadog/model_api_key_update_request.go @@ -73,7 +73,7 @@ func (o *APIKeyUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *APIKeyUpdateData `json:"data"` }{} all := struct { - Data APIKeyUpdateData `json:"data"}` + Data APIKeyUpdateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_application_key_create_attributes.go b/api/v2/datadog/model_application_key_create_attributes.go index c3466df81d2..6a618d2c8d1 100644 --- a/api/v2/datadog/model_application_key_create_attributes.go +++ b/api/v2/datadog/model_application_key_create_attributes.go @@ -74,7 +74,7 @@ func (o *ApplicationKeyCreateAttributes) UnmarshalJSON(bytes []byte) (err error) Name *string `json:"name"` }{} all := struct { - Name string `json:"name"}` + Name string `json:"name"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_application_key_create_data.go b/api/v2/datadog/model_application_key_create_data.go index d0fe3d89cd3..132c008da11 100644 --- a/api/v2/datadog/model_application_key_create_data.go +++ b/api/v2/datadog/model_application_key_create_data.go @@ -105,8 +105,8 @@ func (o *ApplicationKeyCreateData) UnmarshalJSON(bytes []byte) (err error) { Type *ApplicationKeysType `json:"type"` }{} all := struct { - Attributes ApplicationKeyCreateAttributes `json:"attributes"}` - Type ApplicationKeysType `json:"type"}` + Attributes ApplicationKeyCreateAttributes `json:"attributes"` + Type ApplicationKeysType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_application_key_create_request.go b/api/v2/datadog/model_application_key_create_request.go index a3b3144d014..e0db328a395 100644 --- a/api/v2/datadog/model_application_key_create_request.go +++ b/api/v2/datadog/model_application_key_create_request.go @@ -73,7 +73,7 @@ func (o *ApplicationKeyCreateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *ApplicationKeyCreateData `json:"data"` }{} all := struct { - Data ApplicationKeyCreateData `json:"data"}` + Data ApplicationKeyCreateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_application_key_update_attributes.go b/api/v2/datadog/model_application_key_update_attributes.go index ff7d0659040..a03684d74eb 100644 --- a/api/v2/datadog/model_application_key_update_attributes.go +++ b/api/v2/datadog/model_application_key_update_attributes.go @@ -74,7 +74,7 @@ func (o *ApplicationKeyUpdateAttributes) UnmarshalJSON(bytes []byte) (err error) Name *string `json:"name"` }{} all := struct { - Name string `json:"name"}` + Name string `json:"name"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_application_key_update_data.go b/api/v2/datadog/model_application_key_update_data.go index acfe75b6ffa..c1870f1cf7d 100644 --- a/api/v2/datadog/model_application_key_update_data.go +++ b/api/v2/datadog/model_application_key_update_data.go @@ -136,9 +136,9 @@ func (o *ApplicationKeyUpdateData) UnmarshalJSON(bytes []byte) (err error) { Type *ApplicationKeysType `json:"type"` }{} all := struct { - Attributes ApplicationKeyUpdateAttributes `json:"attributes"}` - Id string `json:"id"}` - Type ApplicationKeysType `json:"type"}` + Attributes ApplicationKeyUpdateAttributes `json:"attributes"` + Id string `json:"id"` + Type ApplicationKeysType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_application_key_update_request.go b/api/v2/datadog/model_application_key_update_request.go index c80f8d5bdbd..7b95d1be909 100644 --- a/api/v2/datadog/model_application_key_update_request.go +++ b/api/v2/datadog/model_application_key_update_request.go @@ -73,7 +73,7 @@ func (o *ApplicationKeyUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *ApplicationKeyUpdateData `json:"data"` }{} all := struct { - Data ApplicationKeyUpdateData `json:"data"}` + Data ApplicationKeyUpdateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_dashboard_list_item.go b/api/v2/datadog/model_dashboard_list_item.go index 991f1d5f2f8..3b207341a62 100644 --- a/api/v2/datadog/model_dashboard_list_item.go +++ b/api/v2/datadog/model_dashboard_list_item.go @@ -474,18 +474,18 @@ func (o *DashboardListItem) UnmarshalJSON(bytes []byte) (err error) { Type *DashboardType `json:"type"` }{} all := struct { - Author *Creator `json:"author,omitempty"}` - Created *time.Time `json:"created,omitempty"}` - Icon *string `json:"icon,omitempty"}` - Id string `json:"id"}` - IsFavorite *bool `json:"is_favorite,omitempty"}` - IsReadOnly *bool `json:"is_read_only,omitempty"}` - IsShared *bool `json:"is_shared,omitempty"}` - Modified *time.Time `json:"modified,omitempty"}` - Popularity *int32 `json:"popularity,omitempty"}` - Title *string `json:"title,omitempty"}` - Type DashboardType `json:"type"}` - Url *string `json:"url,omitempty"}` + Author *Creator `json:"author,omitempty"` + Created *time.Time `json:"created,omitempty"` + Icon *string `json:"icon,omitempty"` + Id string `json:"id"` + IsFavorite *bool `json:"is_favorite,omitempty"` + IsReadOnly *bool `json:"is_read_only,omitempty"` + IsShared *bool `json:"is_shared,omitempty"` + Modified *time.Time `json:"modified,omitempty"` + Popularity *int32 `json:"popularity,omitempty"` + Title *string `json:"title,omitempty"` + Type DashboardType `json:"type"` + Url *string `json:"url,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_dashboard_list_item_request.go b/api/v2/datadog/model_dashboard_list_item_request.go index 56ab085c98a..00aa704ca4b 100644 --- a/api/v2/datadog/model_dashboard_list_item_request.go +++ b/api/v2/datadog/model_dashboard_list_item_request.go @@ -104,8 +104,8 @@ func (o *DashboardListItemRequest) UnmarshalJSON(bytes []byte) (err error) { Type *DashboardType `json:"type"` }{} all := struct { - Id string `json:"id"}` - Type DashboardType `json:"type"}` + Id string `json:"id"` + Type DashboardType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_dashboard_list_item_response.go b/api/v2/datadog/model_dashboard_list_item_response.go index 8b925d95e11..358e8406df8 100644 --- a/api/v2/datadog/model_dashboard_list_item_response.go +++ b/api/v2/datadog/model_dashboard_list_item_response.go @@ -104,8 +104,8 @@ func (o *DashboardListItemResponse) UnmarshalJSON(bytes []byte) (err error) { Type *DashboardType `json:"type"` }{} all := struct { - Id string `json:"id"}` - Type DashboardType `json:"type"}` + Id string `json:"id"` + Type DashboardType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_dashboard_list_items.go b/api/v2/datadog/model_dashboard_list_items.go index ed6ddd7b1a4..dd1ec4cb2e7 100644 --- a/api/v2/datadog/model_dashboard_list_items.go +++ b/api/v2/datadog/model_dashboard_list_items.go @@ -111,8 +111,8 @@ func (o *DashboardListItems) UnmarshalJSON(bytes []byte) (err error) { Dashboards *[]DashboardListItem `json:"dashboards"` }{} all := struct { - Dashboards []DashboardListItem `json:"dashboards"}` - Total *int64 `json:"total,omitempty"}` + Dashboards []DashboardListItem `json:"dashboards"` + Total *int64 `json:"total,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_create_attributes.go b/api/v2/datadog/model_incident_create_attributes.go index 617b300f7af..cb58e81e43f 100644 --- a/api/v2/datadog/model_incident_create_attributes.go +++ b/api/v2/datadog/model_incident_create_attributes.go @@ -216,11 +216,11 @@ func (o *IncidentCreateAttributes) UnmarshalJSON(bytes []byte) (err error) { Title *string `json:"title"` }{} all := struct { - CustomerImpacted bool `json:"customer_impacted"}` - Fields *map[string]IncidentFieldAttributes `json:"fields,omitempty"}` - InitialTimelineCells *[]IncidentTimelineCellCreateAttributes `json:"initial_timeline_cells,omitempty"}` - NotificationHandles *[]string `json:"notification_handles,omitempty"}` - Title string `json:"title"}` + CustomerImpacted bool `json:"customer_impacted"` + Fields *map[string]IncidentFieldAttributes `json:"fields,omitempty"` + InitialTimelineCells *[]IncidentTimelineCellCreateAttributes `json:"initial_timeline_cells,omitempty"` + NotificationHandles *[]string `json:"notification_handles,omitempty"` + Title string `json:"title"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_create_data.go b/api/v2/datadog/model_incident_create_data.go index 850ec7beb0b..5452a541efe 100644 --- a/api/v2/datadog/model_incident_create_data.go +++ b/api/v2/datadog/model_incident_create_data.go @@ -141,9 +141,9 @@ func (o *IncidentCreateData) UnmarshalJSON(bytes []byte) (err error) { Type *IncidentType `json:"type"` }{} all := struct { - Attributes IncidentCreateAttributes `json:"attributes"}` - Relationships *IncidentCreateRelationships `json:"relationships,omitempty"}` - Type IncidentType `json:"type"}` + Attributes IncidentCreateAttributes `json:"attributes"` + Relationships *IncidentCreateRelationships `json:"relationships,omitempty"` + Type IncidentType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_create_relationships.go b/api/v2/datadog/model_incident_create_relationships.go index bf7a759f01d..242c8dcd1c3 100644 --- a/api/v2/datadog/model_incident_create_relationships.go +++ b/api/v2/datadog/model_incident_create_relationships.go @@ -73,7 +73,7 @@ func (o *IncidentCreateRelationships) UnmarshalJSON(bytes []byte) (err error) { Commander *RelationshipToUser `json:"commander"` }{} all := struct { - Commander RelationshipToUser `json:"commander"}` + Commander RelationshipToUser `json:"commander"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_create_request.go b/api/v2/datadog/model_incident_create_request.go index 11678b90669..220704b899e 100644 --- a/api/v2/datadog/model_incident_create_request.go +++ b/api/v2/datadog/model_incident_create_request.go @@ -73,7 +73,7 @@ func (o *IncidentCreateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *IncidentCreateData `json:"data"` }{} all := struct { - Data IncidentCreateData `json:"data"}` + Data IncidentCreateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_response.go b/api/v2/datadog/model_incident_response.go index 72741cc4d1c..cb80865f9a3 100644 --- a/api/v2/datadog/model_incident_response.go +++ b/api/v2/datadog/model_incident_response.go @@ -110,8 +110,8 @@ func (o *IncidentResponse) UnmarshalJSON(bytes []byte) (err error) { Data *IncidentResponseData `json:"data"` }{} all := struct { - Data IncidentResponseData `json:"data"}` - Included *[]IncidentResponseIncludedItem `json:"included,omitempty"}` + Data IncidentResponseData `json:"data"` + Included *[]IncidentResponseIncludedItem `json:"included,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_response_attributes.go b/api/v2/datadog/model_incident_response_attributes.go index 3dde44164b1..3c11e6af035 100644 --- a/api/v2/datadog/model_incident_response_attributes.go +++ b/api/v2/datadog/model_incident_response_attributes.go @@ -759,24 +759,24 @@ func (o *IncidentResponseAttributes) UnmarshalJSON(bytes []byte) (err error) { Title *string `json:"title"` }{} all := struct { - Created *time.Time `json:"created,omitempty"}` - CustomerImpactDuration *int64 `json:"customer_impact_duration,omitempty"}` - CustomerImpactEnd NullableTime `json:"customer_impact_end,omitempty"}` - CustomerImpactScope NullableString `json:"customer_impact_scope,omitempty"}` - CustomerImpactStart NullableTime `json:"customer_impact_start,omitempty"}` - CustomerImpacted *bool `json:"customer_impacted,omitempty"}` - Detected NullableTime `json:"detected,omitempty"}` - Fields *map[string]IncidentFieldAttributes `json:"fields,omitempty"}` - Modified *time.Time `json:"modified,omitempty"}` - NotificationHandles *[]string `json:"notification_handles,omitempty"}` - PostmortemId *string `json:"postmortem_id,omitempty"}` - PublicId *int64 `json:"public_id,omitempty"}` - Resolved NullableTime `json:"resolved,omitempty"}` - TimeToDetect *int64 `json:"time_to_detect,omitempty"}` - TimeToInternalResponse *int64 `json:"time_to_internal_response,omitempty"}` - TimeToRepair *int64 `json:"time_to_repair,omitempty"}` - TimeToResolve *int64 `json:"time_to_resolve,omitempty"}` - Title string `json:"title"}` + Created *time.Time `json:"created,omitempty"` + CustomerImpactDuration *int64 `json:"customer_impact_duration,omitempty"` + CustomerImpactEnd NullableTime `json:"customer_impact_end,omitempty"` + CustomerImpactScope NullableString `json:"customer_impact_scope,omitempty"` + CustomerImpactStart NullableTime `json:"customer_impact_start,omitempty"` + CustomerImpacted *bool `json:"customer_impacted,omitempty"` + Detected NullableTime `json:"detected,omitempty"` + Fields *map[string]IncidentFieldAttributes `json:"fields,omitempty"` + Modified *time.Time `json:"modified,omitempty"` + NotificationHandles *[]string `json:"notification_handles,omitempty"` + PostmortemId *string `json:"postmortem_id,omitempty"` + PublicId *int64 `json:"public_id,omitempty"` + Resolved NullableTime `json:"resolved,omitempty"` + TimeToDetect *int64 `json:"time_to_detect,omitempty"` + TimeToInternalResponse *int64 `json:"time_to_internal_response,omitempty"` + TimeToRepair *int64 `json:"time_to_repair,omitempty"` + TimeToResolve *int64 `json:"time_to_resolve,omitempty"` + Title string `json:"title"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_response_data.go b/api/v2/datadog/model_incident_response_data.go index 8a34c812dff..205ee1732a7 100644 --- a/api/v2/datadog/model_incident_response_data.go +++ b/api/v2/datadog/model_incident_response_data.go @@ -178,10 +178,10 @@ func (o *IncidentResponseData) UnmarshalJSON(bytes []byte) (err error) { Type *IncidentType `json:"type"` }{} all := struct { - Attributes *IncidentResponseAttributes `json:"attributes,omitempty"}` - Id string `json:"id"}` - Relationships *IncidentResponseRelationships `json:"relationships,omitempty"}` - Type IncidentType `json:"type"}` + Attributes *IncidentResponseAttributes `json:"attributes,omitempty"` + Id string `json:"id"` + Relationships *IncidentResponseRelationships `json:"relationships,omitempty"` + Type IncidentType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_service_create_attributes.go b/api/v2/datadog/model_incident_service_create_attributes.go index 76e47827053..8f7d76908f6 100644 --- a/api/v2/datadog/model_incident_service_create_attributes.go +++ b/api/v2/datadog/model_incident_service_create_attributes.go @@ -74,7 +74,7 @@ func (o *IncidentServiceCreateAttributes) UnmarshalJSON(bytes []byte) (err error Name *string `json:"name"` }{} all := struct { - Name string `json:"name"}` + Name string `json:"name"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_service_create_data.go b/api/v2/datadog/model_incident_service_create_data.go index 47076e94c02..5acad280315 100644 --- a/api/v2/datadog/model_incident_service_create_data.go +++ b/api/v2/datadog/model_incident_service_create_data.go @@ -147,9 +147,9 @@ func (o *IncidentServiceCreateData) UnmarshalJSON(bytes []byte) (err error) { Type *IncidentServiceType `json:"type"` }{} all := struct { - Attributes *IncidentServiceCreateAttributes `json:"attributes,omitempty"}` - Relationships *IncidentServiceRelationships `json:"relationships,omitempty"}` - Type IncidentServiceType `json:"type"}` + Attributes *IncidentServiceCreateAttributes `json:"attributes,omitempty"` + Relationships *IncidentServiceRelationships `json:"relationships,omitempty"` + Type IncidentServiceType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_service_create_request.go b/api/v2/datadog/model_incident_service_create_request.go index 2822b9cb36e..8657f9c5fc1 100644 --- a/api/v2/datadog/model_incident_service_create_request.go +++ b/api/v2/datadog/model_incident_service_create_request.go @@ -73,7 +73,7 @@ func (o *IncidentServiceCreateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *IncidentServiceCreateData `json:"data"` }{} all := struct { - Data IncidentServiceCreateData `json:"data"}` + Data IncidentServiceCreateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_service_response.go b/api/v2/datadog/model_incident_service_response.go index bab2d76d12b..dda8bd353ad 100644 --- a/api/v2/datadog/model_incident_service_response.go +++ b/api/v2/datadog/model_incident_service_response.go @@ -110,8 +110,8 @@ func (o *IncidentServiceResponse) UnmarshalJSON(bytes []byte) (err error) { Data *IncidentServiceResponseData `json:"data"` }{} all := struct { - Data IncidentServiceResponseData `json:"data"}` - Included *[]IncidentServiceIncludedItems `json:"included,omitempty"}` + Data IncidentServiceResponseData `json:"data"` + Included *[]IncidentServiceIncludedItems `json:"included,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_service_response_data.go b/api/v2/datadog/model_incident_service_response_data.go index 22d5cee38a3..2b67536b0f8 100644 --- a/api/v2/datadog/model_incident_service_response_data.go +++ b/api/v2/datadog/model_incident_service_response_data.go @@ -178,10 +178,10 @@ func (o *IncidentServiceResponseData) UnmarshalJSON(bytes []byte) (err error) { Type *IncidentServiceType `json:"type"` }{} all := struct { - Attributes *IncidentServiceResponseAttributes `json:"attributes,omitempty"}` - Id string `json:"id"}` - Relationships *IncidentServiceRelationships `json:"relationships,omitempty"}` - Type IncidentServiceType `json:"type"}` + Attributes *IncidentServiceResponseAttributes `json:"attributes,omitempty"` + Id string `json:"id"` + Relationships *IncidentServiceRelationships `json:"relationships,omitempty"` + Type IncidentServiceType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_service_update_attributes.go b/api/v2/datadog/model_incident_service_update_attributes.go index 82893aa3077..db6afdaf050 100644 --- a/api/v2/datadog/model_incident_service_update_attributes.go +++ b/api/v2/datadog/model_incident_service_update_attributes.go @@ -74,7 +74,7 @@ func (o *IncidentServiceUpdateAttributes) UnmarshalJSON(bytes []byte) (err error Name *string `json:"name"` }{} all := struct { - Name string `json:"name"}` + Name string `json:"name"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_service_update_data.go b/api/v2/datadog/model_incident_service_update_data.go index d3415927bfd..99820f12afa 100644 --- a/api/v2/datadog/model_incident_service_update_data.go +++ b/api/v2/datadog/model_incident_service_update_data.go @@ -184,10 +184,10 @@ func (o *IncidentServiceUpdateData) UnmarshalJSON(bytes []byte) (err error) { Type *IncidentServiceType `json:"type"` }{} all := struct { - Attributes *IncidentServiceUpdateAttributes `json:"attributes,omitempty"}` - Id *string `json:"id,omitempty"}` - Relationships *IncidentServiceRelationships `json:"relationships,omitempty"}` - Type IncidentServiceType `json:"type"}` + Attributes *IncidentServiceUpdateAttributes `json:"attributes,omitempty"` + Id *string `json:"id,omitempty"` + Relationships *IncidentServiceRelationships `json:"relationships,omitempty"` + Type IncidentServiceType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_service_update_request.go b/api/v2/datadog/model_incident_service_update_request.go index 9ac193c2a57..3ab2c64ab91 100644 --- a/api/v2/datadog/model_incident_service_update_request.go +++ b/api/v2/datadog/model_incident_service_update_request.go @@ -73,7 +73,7 @@ func (o *IncidentServiceUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *IncidentServiceUpdateData `json:"data"` }{} all := struct { - Data IncidentServiceUpdateData `json:"data"}` + Data IncidentServiceUpdateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_services_response.go b/api/v2/datadog/model_incident_services_response.go index 4fdf49b43f6..88043945f15 100644 --- a/api/v2/datadog/model_incident_services_response.go +++ b/api/v2/datadog/model_incident_services_response.go @@ -147,9 +147,9 @@ func (o *IncidentServicesResponse) UnmarshalJSON(bytes []byte) (err error) { Data *[]IncidentServiceResponseData `json:"data"` }{} all := struct { - Data []IncidentServiceResponseData `json:"data"}` - Included *[]IncidentServiceIncludedItems `json:"included,omitempty"}` - Meta *IncidentServicesResponseMeta `json:"meta,omitempty"}` + Data []IncidentServiceResponseData `json:"data"` + Included *[]IncidentServiceIncludedItems `json:"included,omitempty"` + Meta *IncidentServicesResponseMeta `json:"meta,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_team_create_attributes.go b/api/v2/datadog/model_incident_team_create_attributes.go index 890ec58f146..1c6c7b7de43 100644 --- a/api/v2/datadog/model_incident_team_create_attributes.go +++ b/api/v2/datadog/model_incident_team_create_attributes.go @@ -74,7 +74,7 @@ func (o *IncidentTeamCreateAttributes) UnmarshalJSON(bytes []byte) (err error) { Name *string `json:"name"` }{} all := struct { - Name string `json:"name"}` + Name string `json:"name"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_team_create_data.go b/api/v2/datadog/model_incident_team_create_data.go index efc041ee9e2..09c001c8d0e 100644 --- a/api/v2/datadog/model_incident_team_create_data.go +++ b/api/v2/datadog/model_incident_team_create_data.go @@ -147,9 +147,9 @@ func (o *IncidentTeamCreateData) UnmarshalJSON(bytes []byte) (err error) { Type *IncidentTeamType `json:"type"` }{} all := struct { - Attributes *IncidentTeamCreateAttributes `json:"attributes,omitempty"}` - Relationships *IncidentTeamRelationships `json:"relationships,omitempty"}` - Type IncidentTeamType `json:"type"}` + Attributes *IncidentTeamCreateAttributes `json:"attributes,omitempty"` + Relationships *IncidentTeamRelationships `json:"relationships,omitempty"` + Type IncidentTeamType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_team_create_request.go b/api/v2/datadog/model_incident_team_create_request.go index 59d8951bc26..f008e9f2565 100644 --- a/api/v2/datadog/model_incident_team_create_request.go +++ b/api/v2/datadog/model_incident_team_create_request.go @@ -73,7 +73,7 @@ func (o *IncidentTeamCreateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *IncidentTeamCreateData `json:"data"` }{} all := struct { - Data IncidentTeamCreateData `json:"data"}` + Data IncidentTeamCreateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_team_response.go b/api/v2/datadog/model_incident_team_response.go index ddcd1daf303..51c2a706ce2 100644 --- a/api/v2/datadog/model_incident_team_response.go +++ b/api/v2/datadog/model_incident_team_response.go @@ -110,8 +110,8 @@ func (o *IncidentTeamResponse) UnmarshalJSON(bytes []byte) (err error) { Data *IncidentTeamResponseData `json:"data"` }{} all := struct { - Data IncidentTeamResponseData `json:"data"}` - Included *[]IncidentTeamIncludedItems `json:"included,omitempty"}` + Data IncidentTeamResponseData `json:"data"` + Included *[]IncidentTeamIncludedItems `json:"included,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_team_update_attributes.go b/api/v2/datadog/model_incident_team_update_attributes.go index 2a140df3bec..6a22d2e567d 100644 --- a/api/v2/datadog/model_incident_team_update_attributes.go +++ b/api/v2/datadog/model_incident_team_update_attributes.go @@ -74,7 +74,7 @@ func (o *IncidentTeamUpdateAttributes) UnmarshalJSON(bytes []byte) (err error) { Name *string `json:"name"` }{} all := struct { - Name string `json:"name"}` + Name string `json:"name"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_team_update_data.go b/api/v2/datadog/model_incident_team_update_data.go index bd1241bf070..9c198331526 100644 --- a/api/v2/datadog/model_incident_team_update_data.go +++ b/api/v2/datadog/model_incident_team_update_data.go @@ -184,10 +184,10 @@ func (o *IncidentTeamUpdateData) UnmarshalJSON(bytes []byte) (err error) { Type *IncidentTeamType `json:"type"` }{} all := struct { - Attributes *IncidentTeamUpdateAttributes `json:"attributes,omitempty"}` - Id *string `json:"id,omitempty"}` - Relationships *IncidentTeamRelationships `json:"relationships,omitempty"}` - Type IncidentTeamType `json:"type"}` + Attributes *IncidentTeamUpdateAttributes `json:"attributes,omitempty"` + Id *string `json:"id,omitempty"` + Relationships *IncidentTeamRelationships `json:"relationships,omitempty"` + Type IncidentTeamType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_team_update_request.go b/api/v2/datadog/model_incident_team_update_request.go index 93a45915702..ea482377fe9 100644 --- a/api/v2/datadog/model_incident_team_update_request.go +++ b/api/v2/datadog/model_incident_team_update_request.go @@ -73,7 +73,7 @@ func (o *IncidentTeamUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *IncidentTeamUpdateData `json:"data"` }{} all := struct { - Data IncidentTeamUpdateData `json:"data"}` + Data IncidentTeamUpdateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_teams_response.go b/api/v2/datadog/model_incident_teams_response.go index fa2223723f3..eb70cf11278 100644 --- a/api/v2/datadog/model_incident_teams_response.go +++ b/api/v2/datadog/model_incident_teams_response.go @@ -147,9 +147,9 @@ func (o *IncidentTeamsResponse) UnmarshalJSON(bytes []byte) (err error) { Data *[]IncidentTeamResponseData `json:"data"` }{} all := struct { - Data []IncidentTeamResponseData `json:"data"}` - Included *[]IncidentTeamIncludedItems `json:"included,omitempty"}` - Meta *IncidentServicesResponseMeta `json:"meta,omitempty"}` + Data []IncidentTeamResponseData `json:"data"` + Included *[]IncidentTeamIncludedItems `json:"included,omitempty"` + Meta *IncidentServicesResponseMeta `json:"meta,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_timeline_cell_markdown_create_attributes.go b/api/v2/datadog/model_incident_timeline_cell_markdown_create_attributes.go index 3668b848c09..9fd1bab22aa 100644 --- a/api/v2/datadog/model_incident_timeline_cell_markdown_create_attributes.go +++ b/api/v2/datadog/model_incident_timeline_cell_markdown_create_attributes.go @@ -146,9 +146,9 @@ func (o *IncidentTimelineCellMarkdownCreateAttributes) UnmarshalJSON(bytes []byt Content *IncidentTimelineCellMarkdownCreateAttributesContent `json:"content"` }{} all := struct { - CellType IncidentTimelineCellMarkdownContentType `json:"cell_type"}` - Content IncidentTimelineCellMarkdownCreateAttributesContent `json:"content"}` - Important *bool `json:"important,omitempty"}` + CellType IncidentTimelineCellMarkdownContentType `json:"cell_type"` + Content IncidentTimelineCellMarkdownCreateAttributesContent `json:"content"` + Important *bool `json:"important,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_update_data.go b/api/v2/datadog/model_incident_update_data.go index b50b6d26779..8741b6886d1 100644 --- a/api/v2/datadog/model_incident_update_data.go +++ b/api/v2/datadog/model_incident_update_data.go @@ -178,10 +178,10 @@ func (o *IncidentUpdateData) UnmarshalJSON(bytes []byte) (err error) { Type *IncidentType `json:"type"` }{} all := struct { - Attributes *IncidentUpdateAttributes `json:"attributes,omitempty"}` - Id string `json:"id"}` - Relationships *IncidentUpdateRelationships `json:"relationships,omitempty"}` - Type IncidentType `json:"type"}` + Attributes *IncidentUpdateAttributes `json:"attributes,omitempty"` + Id string `json:"id"` + Relationships *IncidentUpdateRelationships `json:"relationships,omitempty"` + Type IncidentType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incident_update_request.go b/api/v2/datadog/model_incident_update_request.go index e02fd4901ac..1e2328f008b 100644 --- a/api/v2/datadog/model_incident_update_request.go +++ b/api/v2/datadog/model_incident_update_request.go @@ -73,7 +73,7 @@ func (o *IncidentUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *IncidentUpdateData `json:"data"` }{} all := struct { - Data IncidentUpdateData `json:"data"}` + Data IncidentUpdateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_incidents_response.go b/api/v2/datadog/model_incidents_response.go index 2399e489f79..87105e07d1b 100644 --- a/api/v2/datadog/model_incidents_response.go +++ b/api/v2/datadog/model_incidents_response.go @@ -147,9 +147,9 @@ func (o *IncidentsResponse) UnmarshalJSON(bytes []byte) (err error) { Data *[]IncidentResponseData `json:"data"` }{} all := struct { - Data []IncidentResponseData `json:"data"}` - Included *[]IncidentResponseIncludedItem `json:"included,omitempty"}` - Meta *IncidentServicesResponseMeta `json:"meta,omitempty"}` + Data []IncidentResponseData `json:"data"` + Included *[]IncidentResponseIncludedItem `json:"included,omitempty"` + Meta *IncidentServicesResponseMeta `json:"meta,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_archive_attributes.go b/api/v2/datadog/model_logs_archive_attributes.go index 30d50d4aa90..ca0d317f1dc 100644 --- a/api/v2/datadog/model_logs_archive_attributes.go +++ b/api/v2/datadog/model_logs_archive_attributes.go @@ -251,12 +251,12 @@ func (o *LogsArchiveAttributes) UnmarshalJSON(bytes []byte) (err error) { Query *string `json:"query"` }{} all := struct { - Destination NullableLogsArchiveDestination `json:"destination"}` - IncludeTags *bool `json:"include_tags,omitempty"}` - Name string `json:"name"}` - Query string `json:"query"}` - RehydrationTags *[]string `json:"rehydration_tags,omitempty"}` - State *LogsArchiveState `json:"state,omitempty"}` + Destination NullableLogsArchiveDestination `json:"destination"` + IncludeTags *bool `json:"include_tags,omitempty"` + Name string `json:"name"` + Query string `json:"query"` + RehydrationTags *[]string `json:"rehydration_tags,omitempty"` + State *LogsArchiveState `json:"state,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_archive_create_request_attributes.go b/api/v2/datadog/model_logs_archive_create_request_attributes.go index 42ac381109e..b36c3641707 100644 --- a/api/v2/datadog/model_logs_archive_create_request_attributes.go +++ b/api/v2/datadog/model_logs_archive_create_request_attributes.go @@ -213,11 +213,11 @@ func (o *LogsArchiveCreateRequestAttributes) UnmarshalJSON(bytes []byte) (err er Query *string `json:"query"` }{} all := struct { - Destination LogsArchiveCreateRequestDestination `json:"destination"}` - IncludeTags *bool `json:"include_tags,omitempty"}` - Name string `json:"name"}` - Query string `json:"query"}` - RehydrationTags *[]string `json:"rehydration_tags,omitempty"}` + Destination LogsArchiveCreateRequestDestination `json:"destination"` + IncludeTags *bool `json:"include_tags,omitempty"` + Name string `json:"name"` + Query string `json:"query"` + RehydrationTags *[]string `json:"rehydration_tags,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_archive_create_request_definition.go b/api/v2/datadog/model_logs_archive_create_request_definition.go index 2ce45fa6f05..3cc89cb03e8 100644 --- a/api/v2/datadog/model_logs_archive_create_request_definition.go +++ b/api/v2/datadog/model_logs_archive_create_request_definition.go @@ -112,8 +112,8 @@ func (o *LogsArchiveCreateRequestDefinition) UnmarshalJSON(bytes []byte) (err er Type *string `json:"type"` }{} all := struct { - Attributes *LogsArchiveCreateRequestAttributes `json:"attributes,omitempty"}` - Type string `json:"type"}` + Attributes *LogsArchiveCreateRequestAttributes `json:"attributes,omitempty"` + Type string `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_archive_definition.go b/api/v2/datadog/model_logs_archive_definition.go index c29354697f4..ce08922b028 100644 --- a/api/v2/datadog/model_logs_archive_definition.go +++ b/api/v2/datadog/model_logs_archive_definition.go @@ -149,9 +149,9 @@ func (o *LogsArchiveDefinition) UnmarshalJSON(bytes []byte) (err error) { Type *string `json:"type"` }{} all := struct { - Attributes *LogsArchiveAttributes `json:"attributes,omitempty"}` - Id *string `json:"id,omitempty"}` - Type string `json:"type"}` + Attributes *LogsArchiveAttributes `json:"attributes,omitempty"` + Id *string `json:"id,omitempty"` + Type string `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_archive_destination_azure.go b/api/v2/datadog/model_logs_archive_destination_azure.go index 9ebbb1c4f20..0cb0b72e0c9 100644 --- a/api/v2/datadog/model_logs_archive_destination_azure.go +++ b/api/v2/datadog/model_logs_archive_destination_azure.go @@ -241,12 +241,12 @@ func (o *LogsArchiveDestinationAzure) UnmarshalJSON(bytes []byte) (err error) { Type *LogsArchiveDestinationAzureType `json:"type"` }{} all := struct { - Container string `json:"container"}` - Integration LogsArchiveIntegrationAzure `json:"integration"}` - Path *string `json:"path,omitempty"}` - Region *string `json:"region,omitempty"}` - StorageAccount string `json:"storage_account"}` - Type LogsArchiveDestinationAzureType `json:"type"}` + Container string `json:"container"` + Integration LogsArchiveIntegrationAzure `json:"integration"` + Path *string `json:"path,omitempty"` + Region *string `json:"region,omitempty"` + StorageAccount string `json:"storage_account"` + Type LogsArchiveDestinationAzureType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_archive_destination_gcs.go b/api/v2/datadog/model_logs_archive_destination_gcs.go index b4fc426acf6..405ae3df2f6 100644 --- a/api/v2/datadog/model_logs_archive_destination_gcs.go +++ b/api/v2/datadog/model_logs_archive_destination_gcs.go @@ -173,10 +173,10 @@ func (o *LogsArchiveDestinationGCS) UnmarshalJSON(bytes []byte) (err error) { Type *LogsArchiveDestinationGCSType `json:"type"` }{} all := struct { - Bucket string `json:"bucket"}` - Integration LogsArchiveIntegrationGCS `json:"integration"}` - Path *string `json:"path,omitempty"}` - Type LogsArchiveDestinationGCSType `json:"type"}` + Bucket string `json:"bucket"` + Integration LogsArchiveIntegrationGCS `json:"integration"` + Path *string `json:"path,omitempty"` + Type LogsArchiveDestinationGCSType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_archive_destination_s3.go b/api/v2/datadog/model_logs_archive_destination_s3.go index 47ad1094fb8..ed22884914b 100644 --- a/api/v2/datadog/model_logs_archive_destination_s3.go +++ b/api/v2/datadog/model_logs_archive_destination_s3.go @@ -173,10 +173,10 @@ func (o *LogsArchiveDestinationS3) UnmarshalJSON(bytes []byte) (err error) { Type *LogsArchiveDestinationS3Type `json:"type"` }{} all := struct { - Bucket string `json:"bucket"}` - Integration LogsArchiveIntegrationS3 `json:"integration"}` - Path *string `json:"path,omitempty"}` - Type LogsArchiveDestinationS3Type `json:"type"}` + Bucket string `json:"bucket"` + Integration LogsArchiveIntegrationS3 `json:"integration"` + Path *string `json:"path,omitempty"` + Type LogsArchiveDestinationS3Type `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_archive_integration_azure.go b/api/v2/datadog/model_logs_archive_integration_azure.go index 74f34c25501..f69adf8a56a 100644 --- a/api/v2/datadog/model_logs_archive_integration_azure.go +++ b/api/v2/datadog/model_logs_archive_integration_azure.go @@ -105,8 +105,8 @@ func (o *LogsArchiveIntegrationAzure) UnmarshalJSON(bytes []byte) (err error) { TenantId *string `json:"tenant_id"` }{} all := struct { - ClientId string `json:"client_id"}` - TenantId string `json:"tenant_id"}` + ClientId string `json:"client_id"` + TenantId string `json:"tenant_id"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_archive_integration_gcs.go b/api/v2/datadog/model_logs_archive_integration_gcs.go index e90241e48f0..4bfc82e0cfc 100644 --- a/api/v2/datadog/model_logs_archive_integration_gcs.go +++ b/api/v2/datadog/model_logs_archive_integration_gcs.go @@ -105,8 +105,8 @@ func (o *LogsArchiveIntegrationGCS) UnmarshalJSON(bytes []byte) (err error) { ProjectId *string `json:"project_id"` }{} all := struct { - ClientEmail string `json:"client_email"}` - ProjectId string `json:"project_id"}` + ClientEmail string `json:"client_email"` + ProjectId string `json:"project_id"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_archive_integration_s3.go b/api/v2/datadog/model_logs_archive_integration_s3.go index f3c6e13a5c0..9e660fb37f4 100644 --- a/api/v2/datadog/model_logs_archive_integration_s3.go +++ b/api/v2/datadog/model_logs_archive_integration_s3.go @@ -105,8 +105,8 @@ func (o *LogsArchiveIntegrationS3) UnmarshalJSON(bytes []byte) (err error) { RoleName *string `json:"role_name"` }{} all := struct { - AccountId string `json:"account_id"}` - RoleName string `json:"role_name"}` + AccountId string `json:"account_id"` + RoleName string `json:"role_name"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_archive_order_attributes.go b/api/v2/datadog/model_logs_archive_order_attributes.go index ca9a40946c6..83e5e863542 100644 --- a/api/v2/datadog/model_logs_archive_order_attributes.go +++ b/api/v2/datadog/model_logs_archive_order_attributes.go @@ -74,7 +74,7 @@ func (o *LogsArchiveOrderAttributes) UnmarshalJSON(bytes []byte) (err error) { ArchiveIds *[]string `json:"archive_ids"` }{} all := struct { - ArchiveIds []string `json:"archive_ids"}` + ArchiveIds []string `json:"archive_ids"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_archive_order_definition.go b/api/v2/datadog/model_logs_archive_order_definition.go index a8cdb1411fa..fc7036061f7 100644 --- a/api/v2/datadog/model_logs_archive_order_definition.go +++ b/api/v2/datadog/model_logs_archive_order_definition.go @@ -105,8 +105,8 @@ func (o *LogsArchiveOrderDefinition) UnmarshalJSON(bytes []byte) (err error) { Type *LogsArchiveOrderDefinitionType `json:"type"` }{} all := struct { - Attributes LogsArchiveOrderAttributes `json:"attributes"}` - Type LogsArchiveOrderDefinitionType `json:"type"}` + Attributes LogsArchiveOrderAttributes `json:"attributes"` + Type LogsArchiveOrderDefinitionType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_compute.go b/api/v2/datadog/model_logs_compute.go index da1bc624e72..76e740641ef 100644 --- a/api/v2/datadog/model_logs_compute.go +++ b/api/v2/datadog/model_logs_compute.go @@ -187,10 +187,10 @@ func (o *LogsCompute) UnmarshalJSON(bytes []byte) (err error) { Aggregation *LogsAggregationFunction `json:"aggregation"` }{} all := struct { - Aggregation LogsAggregationFunction `json:"aggregation"}` - Interval *string `json:"interval,omitempty"}` - Metric *string `json:"metric,omitempty"}` - Type *LogsComputeType `json:"type,omitempty"}` + Aggregation LogsAggregationFunction `json:"aggregation"` + Interval *string `json:"interval,omitempty"` + Metric *string `json:"metric,omitempty"` + Type *LogsComputeType `json:"type,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_group_by.go b/api/v2/datadog/model_logs_group_by.go index 10b9a80a5b3..79990c07b50 100644 --- a/api/v2/datadog/model_logs_group_by.go +++ b/api/v2/datadog/model_logs_group_by.go @@ -259,12 +259,12 @@ func (o *LogsGroupBy) UnmarshalJSON(bytes []byte) (err error) { Facet *string `json:"facet"` }{} all := struct { - Facet string `json:"facet"}` - Histogram *LogsGroupByHistogram `json:"histogram,omitempty"}` - Limit *int64 `json:"limit,omitempty"}` - Missing *LogsGroupByMissing `json:"missing,omitempty"}` - Sort *LogsAggregateSort `json:"sort,omitempty"}` - Total *LogsGroupByTotal `json:"total,omitempty"}` + Facet string `json:"facet"` + Histogram *LogsGroupByHistogram `json:"histogram,omitempty"` + Limit *int64 `json:"limit,omitempty"` + Missing *LogsGroupByMissing `json:"missing,omitempty"` + Sort *LogsAggregateSort `json:"sort,omitempty"` + Total *LogsGroupByTotal `json:"total,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_group_by_histogram.go b/api/v2/datadog/model_logs_group_by_histogram.go index b75ff03300d..7c4673be094 100644 --- a/api/v2/datadog/model_logs_group_by_histogram.go +++ b/api/v2/datadog/model_logs_group_by_histogram.go @@ -136,9 +136,9 @@ func (o *LogsGroupByHistogram) UnmarshalJSON(bytes []byte) (err error) { Min *float64 `json:"min"` }{} all := struct { - Interval float64 `json:"interval"}` - Max float64 `json:"max"}` - Min float64 `json:"min"}` + Interval float64 `json:"interval"` + Max float64 `json:"max"` + Min float64 `json:"min"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_metric_compute.go b/api/v2/datadog/model_logs_metric_compute.go index 2699c01695a..788aaabb7d5 100644 --- a/api/v2/datadog/model_logs_metric_compute.go +++ b/api/v2/datadog/model_logs_metric_compute.go @@ -110,8 +110,8 @@ func (o *LogsMetricCompute) UnmarshalJSON(bytes []byte) (err error) { AggregationType *LogsMetricComputeAggregationType `json:"aggregation_type"` }{} all := struct { - AggregationType LogsMetricComputeAggregationType `json:"aggregation_type"}` - Path *string `json:"path,omitempty"}` + AggregationType LogsMetricComputeAggregationType `json:"aggregation_type"` + Path *string `json:"path,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_metric_create_attributes.go b/api/v2/datadog/model_logs_metric_create_attributes.go index 1a90bd7c038..dc5b4918a8e 100644 --- a/api/v2/datadog/model_logs_metric_create_attributes.go +++ b/api/v2/datadog/model_logs_metric_create_attributes.go @@ -146,9 +146,9 @@ func (o *LogsMetricCreateAttributes) UnmarshalJSON(bytes []byte) (err error) { Compute *LogsMetricCompute `json:"compute"` }{} all := struct { - Compute LogsMetricCompute `json:"compute"}` - Filter *LogsMetricFilter `json:"filter,omitempty"}` - GroupBy *[]LogsMetricGroupBy `json:"group_by,omitempty"}` + Compute LogsMetricCompute `json:"compute"` + Filter *LogsMetricFilter `json:"filter,omitempty"` + GroupBy *[]LogsMetricGroupBy `json:"group_by,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_metric_create_data.go b/api/v2/datadog/model_logs_metric_create_data.go index a51e211e242..8ab2bbecb44 100644 --- a/api/v2/datadog/model_logs_metric_create_data.go +++ b/api/v2/datadog/model_logs_metric_create_data.go @@ -136,9 +136,9 @@ func (o *LogsMetricCreateData) UnmarshalJSON(bytes []byte) (err error) { Type *LogsMetricType `json:"type"` }{} all := struct { - Attributes LogsMetricCreateAttributes `json:"attributes"}` - Id string `json:"id"}` - Type LogsMetricType `json:"type"}` + Attributes LogsMetricCreateAttributes `json:"attributes"` + Id string `json:"id"` + Type LogsMetricType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_metric_create_request.go b/api/v2/datadog/model_logs_metric_create_request.go index 282349da2e1..adfd38316df 100644 --- a/api/v2/datadog/model_logs_metric_create_request.go +++ b/api/v2/datadog/model_logs_metric_create_request.go @@ -73,7 +73,7 @@ func (o *LogsMetricCreateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *LogsMetricCreateData `json:"data"` }{} all := struct { - Data LogsMetricCreateData `json:"data"}` + Data LogsMetricCreateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_metric_group_by.go b/api/v2/datadog/model_logs_metric_group_by.go index 1a28f36e719..48eb1386954 100644 --- a/api/v2/datadog/model_logs_metric_group_by.go +++ b/api/v2/datadog/model_logs_metric_group_by.go @@ -111,8 +111,8 @@ func (o *LogsMetricGroupBy) UnmarshalJSON(bytes []byte) (err error) { Path *string `json:"path"` }{} all := struct { - Path string `json:"path"}` - TagName *string `json:"tag_name,omitempty"}` + Path string `json:"path"` + TagName *string `json:"tag_name,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_metric_update_data.go b/api/v2/datadog/model_logs_metric_update_data.go index 8418c497c62..8c2b0c8501f 100644 --- a/api/v2/datadog/model_logs_metric_update_data.go +++ b/api/v2/datadog/model_logs_metric_update_data.go @@ -105,8 +105,8 @@ func (o *LogsMetricUpdateData) UnmarshalJSON(bytes []byte) (err error) { Type *LogsMetricType `json:"type"` }{} all := struct { - Attributes LogsMetricUpdateAttributes `json:"attributes"}` - Type LogsMetricType `json:"type"}` + Attributes LogsMetricUpdateAttributes `json:"attributes"` + Type LogsMetricType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_logs_metric_update_request.go b/api/v2/datadog/model_logs_metric_update_request.go index f78be2c109e..c5990def037 100644 --- a/api/v2/datadog/model_logs_metric_update_request.go +++ b/api/v2/datadog/model_logs_metric_update_request.go @@ -73,7 +73,7 @@ func (o *LogsMetricUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *LogsMetricUpdateData `json:"data"` }{} all := struct { - Data LogsMetricUpdateData `json:"data"}` + Data LogsMetricUpdateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_metric_tag_configuration_create_attributes.go b/api/v2/datadog/model_metric_tag_configuration_create_attributes.go index 9b1477921aa..71bd8d8653e 100644 --- a/api/v2/datadog/model_metric_tag_configuration_create_attributes.go +++ b/api/v2/datadog/model_metric_tag_configuration_create_attributes.go @@ -147,9 +147,9 @@ func (o *MetricTagConfigurationCreateAttributes) UnmarshalJSON(bytes []byte) (er Tags *[]string `json:"tags"` }{} all := struct { - IncludePercentiles *bool `json:"include_percentiles,omitempty"}` - MetricType MetricTagConfigurationMetricTypes `json:"metric_type"}` - Tags []string `json:"tags"}` + IncludePercentiles *bool `json:"include_percentiles,omitempty"` + MetricType MetricTagConfigurationMetricTypes `json:"metric_type"` + Tags []string `json:"tags"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_metric_tag_configuration_create_data.go b/api/v2/datadog/model_metric_tag_configuration_create_data.go index 0ac58df0ae2..4e4b8494a3f 100644 --- a/api/v2/datadog/model_metric_tag_configuration_create_data.go +++ b/api/v2/datadog/model_metric_tag_configuration_create_data.go @@ -142,9 +142,9 @@ func (o *MetricTagConfigurationCreateData) UnmarshalJSON(bytes []byte) (err erro Type *MetricTagConfigurationType `json:"type"` }{} all := struct { - Attributes *MetricTagConfigurationCreateAttributes `json:"attributes,omitempty"}` - Id string `json:"id"}` - Type MetricTagConfigurationType `json:"type"}` + Attributes *MetricTagConfigurationCreateAttributes `json:"attributes,omitempty"` + Id string `json:"id"` + Type MetricTagConfigurationType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_metric_tag_configuration_create_request.go b/api/v2/datadog/model_metric_tag_configuration_create_request.go index 5955c27a176..a40be4cd3a0 100644 --- a/api/v2/datadog/model_metric_tag_configuration_create_request.go +++ b/api/v2/datadog/model_metric_tag_configuration_create_request.go @@ -73,7 +73,7 @@ func (o *MetricTagConfigurationCreateRequest) UnmarshalJSON(bytes []byte) (err e Data *MetricTagConfigurationCreateData `json:"data"` }{} all := struct { - Data MetricTagConfigurationCreateData `json:"data"}` + Data MetricTagConfigurationCreateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_metric_tag_configuration_update_data.go b/api/v2/datadog/model_metric_tag_configuration_update_data.go index 926eb3f8069..e53369e2027 100644 --- a/api/v2/datadog/model_metric_tag_configuration_update_data.go +++ b/api/v2/datadog/model_metric_tag_configuration_update_data.go @@ -142,9 +142,9 @@ func (o *MetricTagConfigurationUpdateData) UnmarshalJSON(bytes []byte) (err erro Type *MetricTagConfigurationType `json:"type"` }{} all := struct { - Attributes *MetricTagConfigurationUpdateAttributes `json:"attributes,omitempty"}` - Id string `json:"id"}` - Type MetricTagConfigurationType `json:"type"}` + Attributes *MetricTagConfigurationUpdateAttributes `json:"attributes,omitempty"` + Id string `json:"id"` + Type MetricTagConfigurationType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_metric_tag_configuration_update_request.go b/api/v2/datadog/model_metric_tag_configuration_update_request.go index 82a3a51f443..711bb5ef55a 100644 --- a/api/v2/datadog/model_metric_tag_configuration_update_request.go +++ b/api/v2/datadog/model_metric_tag_configuration_update_request.go @@ -73,7 +73,7 @@ func (o *MetricTagConfigurationUpdateRequest) UnmarshalJSON(bytes []byte) (err e Data *MetricTagConfigurationUpdateData `json:"data"` }{} all := struct { - Data MetricTagConfigurationUpdateData `json:"data"}` + Data MetricTagConfigurationUpdateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_organization.go b/api/v2/datadog/model_organization.go index 0e49f5bbfd4..ca60d581c57 100644 --- a/api/v2/datadog/model_organization.go +++ b/api/v2/datadog/model_organization.go @@ -148,9 +148,9 @@ func (o *Organization) UnmarshalJSON(bytes []byte) (err error) { Type *OrganizationsType `json:"type"` }{} all := struct { - Attributes *OrganizationAttributes `json:"attributes,omitempty"}` - Id *string `json:"id,omitempty"}` - Type OrganizationsType `json:"type"}` + Attributes *OrganizationAttributes `json:"attributes,omitempty"` + Id *string `json:"id,omitempty"` + Type OrganizationsType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_permission.go b/api/v2/datadog/model_permission.go index f1eae149f45..ccc159b4462 100644 --- a/api/v2/datadog/model_permission.go +++ b/api/v2/datadog/model_permission.go @@ -148,9 +148,9 @@ func (o *Permission) UnmarshalJSON(bytes []byte) (err error) { Type *PermissionsType `json:"type"` }{} all := struct { - Attributes *PermissionAttributes `json:"attributes,omitempty"}` - Id *string `json:"id,omitempty"}` - Type PermissionsType `json:"type"}` + Attributes *PermissionAttributes `json:"attributes,omitempty"` + Id *string `json:"id,omitempty"` + Type PermissionsType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_relationship_to_incident_integration_metadata_data.go b/api/v2/datadog/model_relationship_to_incident_integration_metadata_data.go index da3cf21277c..d1c4f6a4ae9 100644 --- a/api/v2/datadog/model_relationship_to_incident_integration_metadata_data.go +++ b/api/v2/datadog/model_relationship_to_incident_integration_metadata_data.go @@ -106,8 +106,8 @@ func (o *RelationshipToIncidentIntegrationMetadataData) UnmarshalJSON(bytes []by Type *IncidentIntegrationMetadataType `json:"type"` }{} all := struct { - Id string `json:"id"}` - Type IncidentIntegrationMetadataType `json:"type"}` + Id string `json:"id"` + Type IncidentIntegrationMetadataType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_relationship_to_incident_integration_metadatas.go b/api/v2/datadog/model_relationship_to_incident_integration_metadatas.go index 8c83ed6ea6b..2ef1f534110 100644 --- a/api/v2/datadog/model_relationship_to_incident_integration_metadatas.go +++ b/api/v2/datadog/model_relationship_to_incident_integration_metadatas.go @@ -74,7 +74,7 @@ func (o *RelationshipToIncidentIntegrationMetadatas) UnmarshalJSON(bytes []byte) Data *[]RelationshipToIncidentIntegrationMetadataData `json:"data"` }{} all := struct { - Data []RelationshipToIncidentIntegrationMetadataData `json:"data"}` + Data []RelationshipToIncidentIntegrationMetadataData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_relationship_to_incident_postmortem.go b/api/v2/datadog/model_relationship_to_incident_postmortem.go index 32e4478b0c8..d7eded6e918 100644 --- a/api/v2/datadog/model_relationship_to_incident_postmortem.go +++ b/api/v2/datadog/model_relationship_to_incident_postmortem.go @@ -73,7 +73,7 @@ func (o *RelationshipToIncidentPostmortem) UnmarshalJSON(bytes []byte) (err erro Data *RelationshipToIncidentPostmortemData `json:"data"` }{} all := struct { - Data RelationshipToIncidentPostmortemData `json:"data"}` + Data RelationshipToIncidentPostmortemData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_relationship_to_incident_postmortem_data.go b/api/v2/datadog/model_relationship_to_incident_postmortem_data.go index 719d6bc1c84..e3a92158467 100644 --- a/api/v2/datadog/model_relationship_to_incident_postmortem_data.go +++ b/api/v2/datadog/model_relationship_to_incident_postmortem_data.go @@ -106,8 +106,8 @@ func (o *RelationshipToIncidentPostmortemData) UnmarshalJSON(bytes []byte) (err Type *IncidentPostmortemType `json:"type"` }{} all := struct { - Id string `json:"id"}` - Type IncidentPostmortemType `json:"type"}` + Id string `json:"id"` + Type IncidentPostmortemType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_relationship_to_organization.go b/api/v2/datadog/model_relationship_to_organization.go index 8f9d2501477..cf5ecfef378 100644 --- a/api/v2/datadog/model_relationship_to_organization.go +++ b/api/v2/datadog/model_relationship_to_organization.go @@ -73,7 +73,7 @@ func (o *RelationshipToOrganization) UnmarshalJSON(bytes []byte) (err error) { Data *RelationshipToOrganizationData `json:"data"` }{} all := struct { - Data RelationshipToOrganizationData `json:"data"}` + Data RelationshipToOrganizationData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_relationship_to_organization_data.go b/api/v2/datadog/model_relationship_to_organization_data.go index bf6c0a2ea73..68daa92bf06 100644 --- a/api/v2/datadog/model_relationship_to_organization_data.go +++ b/api/v2/datadog/model_relationship_to_organization_data.go @@ -106,8 +106,8 @@ func (o *RelationshipToOrganizationData) UnmarshalJSON(bytes []byte) (err error) Type *OrganizationsType `json:"type"` }{} all := struct { - Id string `json:"id"}` - Type OrganizationsType `json:"type"}` + Id string `json:"id"` + Type OrganizationsType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_relationship_to_organizations.go b/api/v2/datadog/model_relationship_to_organizations.go index e5c117f5758..5ce22030d7a 100644 --- a/api/v2/datadog/model_relationship_to_organizations.go +++ b/api/v2/datadog/model_relationship_to_organizations.go @@ -74,7 +74,7 @@ func (o *RelationshipToOrganizations) UnmarshalJSON(bytes []byte) (err error) { Data *[]RelationshipToOrganizationData `json:"data"` }{} all := struct { - Data []RelationshipToOrganizationData `json:"data"}` + Data []RelationshipToOrganizationData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_relationship_to_user.go b/api/v2/datadog/model_relationship_to_user.go index ae814439875..964776fe1db 100644 --- a/api/v2/datadog/model_relationship_to_user.go +++ b/api/v2/datadog/model_relationship_to_user.go @@ -73,7 +73,7 @@ func (o *RelationshipToUser) UnmarshalJSON(bytes []byte) (err error) { Data *RelationshipToUserData `json:"data"` }{} all := struct { - Data RelationshipToUserData `json:"data"}` + Data RelationshipToUserData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_relationship_to_user_data.go b/api/v2/datadog/model_relationship_to_user_data.go index 20b99ce71b3..98d8b59b574 100644 --- a/api/v2/datadog/model_relationship_to_user_data.go +++ b/api/v2/datadog/model_relationship_to_user_data.go @@ -106,8 +106,8 @@ func (o *RelationshipToUserData) UnmarshalJSON(bytes []byte) (err error) { Type *UsersType `json:"type"` }{} all := struct { - Id string `json:"id"}` - Type UsersType `json:"type"}` + Id string `json:"id"` + Type UsersType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_relationship_to_users.go b/api/v2/datadog/model_relationship_to_users.go index f161a09227e..dd7023714e4 100644 --- a/api/v2/datadog/model_relationship_to_users.go +++ b/api/v2/datadog/model_relationship_to_users.go @@ -74,7 +74,7 @@ func (o *RelationshipToUsers) UnmarshalJSON(bytes []byte) (err error) { Data *[]RelationshipToUserData `json:"data"` }{} all := struct { - Data []RelationshipToUserData `json:"data"}` + Data []RelationshipToUserData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_role.go b/api/v2/datadog/model_role.go index 1a83cf89ed9..68e3d7f0fac 100644 --- a/api/v2/datadog/model_role.go +++ b/api/v2/datadog/model_role.go @@ -184,10 +184,10 @@ func (o *Role) UnmarshalJSON(bytes []byte) (err error) { Type *RolesType `json:"type"` }{} all := struct { - Attributes *RoleAttributes `json:"attributes,omitempty"}` - Id *string `json:"id,omitempty"}` - Relationships *RoleResponseRelationships `json:"relationships,omitempty"}` - Type RolesType `json:"type"}` + Attributes *RoleAttributes `json:"attributes,omitempty"` + Id *string `json:"id,omitempty"` + Relationships *RoleResponseRelationships `json:"relationships,omitempty"` + Type RolesType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_role_create_attributes.go b/api/v2/datadog/model_role_create_attributes.go index a39f87f05a7..8674cb3c599 100644 --- a/api/v2/datadog/model_role_create_attributes.go +++ b/api/v2/datadog/model_role_create_attributes.go @@ -149,9 +149,9 @@ func (o *RoleCreateAttributes) UnmarshalJSON(bytes []byte) (err error) { Name *string `json:"name"` }{} all := struct { - CreatedAt *time.Time `json:"created_at,omitempty"}` - ModifiedAt *time.Time `json:"modified_at,omitempty"}` - Name string `json:"name"}` + CreatedAt *time.Time `json:"created_at,omitempty"` + ModifiedAt *time.Time `json:"modified_at,omitempty"` + Name string `json:"name"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_role_create_data.go b/api/v2/datadog/model_role_create_data.go index f9ef9482c6c..cb14a3336cf 100644 --- a/api/v2/datadog/model_role_create_data.go +++ b/api/v2/datadog/model_role_create_data.go @@ -149,9 +149,9 @@ func (o *RoleCreateData) UnmarshalJSON(bytes []byte) (err error) { Attributes *RoleCreateAttributes `json:"attributes"` }{} all := struct { - Attributes RoleCreateAttributes `json:"attributes"}` - Relationships *RoleRelationships `json:"relationships,omitempty"}` - Type *RolesType `json:"type,omitempty"}` + Attributes RoleCreateAttributes `json:"attributes"` + Relationships *RoleRelationships `json:"relationships,omitempty"` + Type *RolesType `json:"type,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_role_create_request.go b/api/v2/datadog/model_role_create_request.go index 1bda9c468b4..153e903fadf 100644 --- a/api/v2/datadog/model_role_create_request.go +++ b/api/v2/datadog/model_role_create_request.go @@ -73,7 +73,7 @@ func (o *RoleCreateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *RoleCreateData `json:"data"` }{} all := struct { - Data RoleCreateData `json:"data"}` + Data RoleCreateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_role_create_response_data.go b/api/v2/datadog/model_role_create_response_data.go index 3547544bf3e..9d05b0831ce 100644 --- a/api/v2/datadog/model_role_create_response_data.go +++ b/api/v2/datadog/model_role_create_response_data.go @@ -184,10 +184,10 @@ func (o *RoleCreateResponseData) UnmarshalJSON(bytes []byte) (err error) { Type *RolesType `json:"type"` }{} all := struct { - Attributes *RoleCreateAttributes `json:"attributes,omitempty"}` - Id *string `json:"id,omitempty"}` - Relationships *RoleResponseRelationships `json:"relationships,omitempty"}` - Type RolesType `json:"type"}` + Attributes *RoleCreateAttributes `json:"attributes,omitempty"` + Id *string `json:"id,omitempty"` + Relationships *RoleResponseRelationships `json:"relationships,omitempty"` + Type RolesType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_role_update_data.go b/api/v2/datadog/model_role_update_data.go index c421a8b1d38..163deca6c1e 100644 --- a/api/v2/datadog/model_role_update_data.go +++ b/api/v2/datadog/model_role_update_data.go @@ -136,9 +136,9 @@ func (o *RoleUpdateData) UnmarshalJSON(bytes []byte) (err error) { Type *RolesType `json:"type"` }{} all := struct { - Attributes RoleUpdateAttributes `json:"attributes"}` - Id string `json:"id"}` - Type RolesType `json:"type"}` + Attributes RoleUpdateAttributes `json:"attributes"` + Id string `json:"id"` + Type RolesType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_role_update_request.go b/api/v2/datadog/model_role_update_request.go index 10dee5f7c32..f2336bf6479 100644 --- a/api/v2/datadog/model_role_update_request.go +++ b/api/v2/datadog/model_role_update_request.go @@ -73,7 +73,7 @@ func (o *RoleUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *RoleUpdateData `json:"data"` }{} all := struct { - Data RoleUpdateData `json:"data"}` + Data RoleUpdateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_role_update_response_data.go b/api/v2/datadog/model_role_update_response_data.go index 3e8cc174c82..7028be12657 100644 --- a/api/v2/datadog/model_role_update_response_data.go +++ b/api/v2/datadog/model_role_update_response_data.go @@ -184,10 +184,10 @@ func (o *RoleUpdateResponseData) UnmarshalJSON(bytes []byte) (err error) { Type *RolesType `json:"type"` }{} all := struct { - Attributes *RoleUpdateAttributes `json:"attributes,omitempty"}` - Id *string `json:"id,omitempty"}` - Relationships *RoleResponseRelationships `json:"relationships,omitempty"}` - Type RolesType `json:"type"}` + Attributes *RoleUpdateAttributes `json:"attributes,omitempty"` + Id *string `json:"id,omitempty"` + Relationships *RoleResponseRelationships `json:"relationships,omitempty"` + Type RolesType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_security_filter_create_attributes.go b/api/v2/datadog/model_security_filter_create_attributes.go index 85742f50f14..d5fb80efe3b 100644 --- a/api/v2/datadog/model_security_filter_create_attributes.go +++ b/api/v2/datadog/model_security_filter_create_attributes.go @@ -197,11 +197,11 @@ func (o *SecurityFilterCreateAttributes) UnmarshalJSON(bytes []byte) (err error) Query *string `json:"query"` }{} all := struct { - ExclusionFilters []SecurityFilterExclusionFilter `json:"exclusion_filters"}` - FilteredDataType SecurityFilterFilteredDataType `json:"filtered_data_type"}` - IsEnabled bool `json:"is_enabled"}` - Name string `json:"name"}` - Query string `json:"query"}` + ExclusionFilters []SecurityFilterExclusionFilter `json:"exclusion_filters"` + FilteredDataType SecurityFilterFilteredDataType `json:"filtered_data_type"` + IsEnabled bool `json:"is_enabled"` + Name string `json:"name"` + Query string `json:"query"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_security_filter_create_data.go b/api/v2/datadog/model_security_filter_create_data.go index ca2e07dcc32..d1c79521a3b 100644 --- a/api/v2/datadog/model_security_filter_create_data.go +++ b/api/v2/datadog/model_security_filter_create_data.go @@ -105,8 +105,8 @@ func (o *SecurityFilterCreateData) UnmarshalJSON(bytes []byte) (err error) { Type *SecurityFilterType `json:"type"` }{} all := struct { - Attributes SecurityFilterCreateAttributes `json:"attributes"}` - Type SecurityFilterType `json:"type"}` + Attributes SecurityFilterCreateAttributes `json:"attributes"` + Type SecurityFilterType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_security_filter_create_request.go b/api/v2/datadog/model_security_filter_create_request.go index 13408f0a7ea..642614b0d7b 100644 --- a/api/v2/datadog/model_security_filter_create_request.go +++ b/api/v2/datadog/model_security_filter_create_request.go @@ -73,7 +73,7 @@ func (o *SecurityFilterCreateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *SecurityFilterCreateData `json:"data"` }{} all := struct { - Data SecurityFilterCreateData `json:"data"}` + Data SecurityFilterCreateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_security_filter_exclusion_filter.go b/api/v2/datadog/model_security_filter_exclusion_filter.go index f0fdc1ca17c..1aaa6920a46 100644 --- a/api/v2/datadog/model_security_filter_exclusion_filter.go +++ b/api/v2/datadog/model_security_filter_exclusion_filter.go @@ -105,8 +105,8 @@ func (o *SecurityFilterExclusionFilter) UnmarshalJSON(bytes []byte) (err error) Query *string `json:"query"` }{} all := struct { - Name string `json:"name"}` - Query string `json:"query"}` + Name string `json:"name"` + Query string `json:"query"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_security_filter_update_data.go b/api/v2/datadog/model_security_filter_update_data.go index b126eb4edb6..89c4597e519 100644 --- a/api/v2/datadog/model_security_filter_update_data.go +++ b/api/v2/datadog/model_security_filter_update_data.go @@ -105,8 +105,8 @@ func (o *SecurityFilterUpdateData) UnmarshalJSON(bytes []byte) (err error) { Type *SecurityFilterType `json:"type"` }{} all := struct { - Attributes SecurityFilterUpdateAttributes `json:"attributes"}` - Type SecurityFilterType `json:"type"}` + Attributes SecurityFilterUpdateAttributes `json:"attributes"` + Type SecurityFilterType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_security_filter_update_request.go b/api/v2/datadog/model_security_filter_update_request.go index 3c69af7754b..43ff32d165f 100644 --- a/api/v2/datadog/model_security_filter_update_request.go +++ b/api/v2/datadog/model_security_filter_update_request.go @@ -73,7 +73,7 @@ func (o *SecurityFilterUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *SecurityFilterUpdateData `json:"data"` }{} all := struct { - Data SecurityFilterUpdateData `json:"data"}` + Data SecurityFilterUpdateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_security_monitoring_rule_case_create.go b/api/v2/datadog/model_security_monitoring_rule_case_create.go index 58bb7a18bba..c54918f8349 100644 --- a/api/v2/datadog/model_security_monitoring_rule_case_create.go +++ b/api/v2/datadog/model_security_monitoring_rule_case_create.go @@ -184,10 +184,10 @@ func (o *SecurityMonitoringRuleCaseCreate) UnmarshalJSON(bytes []byte) (err erro Status *SecurityMonitoringRuleSeverity `json:"status"` }{} all := struct { - Condition *string `json:"condition,omitempty"}` - Name *string `json:"name,omitempty"}` - Notifications *[]string `json:"notifications,omitempty"}` - Status SecurityMonitoringRuleSeverity `json:"status"}` + Condition *string `json:"condition,omitempty"` + Name *string `json:"name,omitempty"` + Notifications *[]string `json:"notifications,omitempty"` + Status SecurityMonitoringRuleSeverity `json:"status"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_security_monitoring_rule_create_payload.go b/api/v2/datadog/model_security_monitoring_rule_create_payload.go index b722bf3c0b3..be94b0766f6 100644 --- a/api/v2/datadog/model_security_monitoring_rule_create_payload.go +++ b/api/v2/datadog/model_security_monitoring_rule_create_payload.go @@ -302,14 +302,14 @@ func (o *SecurityMonitoringRuleCreatePayload) UnmarshalJSON(bytes []byte) (err e Queries *[]SecurityMonitoringRuleQueryCreate `json:"queries"` }{} all := struct { - Cases []SecurityMonitoringRuleCaseCreate `json:"cases"}` - Filters *[]SecurityMonitoringFilter `json:"filters,omitempty"}` - IsEnabled bool `json:"isEnabled"}` - Message string `json:"message"}` - Name string `json:"name"}` - Options SecurityMonitoringRuleOptions `json:"options"}` - Queries []SecurityMonitoringRuleQueryCreate `json:"queries"}` - Tags *[]string `json:"tags,omitempty"}` + Cases []SecurityMonitoringRuleCaseCreate `json:"cases"` + Filters *[]SecurityMonitoringFilter `json:"filters,omitempty"` + IsEnabled bool `json:"isEnabled"` + Message string `json:"message"` + Name string `json:"name"` + Options SecurityMonitoringRuleOptions `json:"options"` + Queries []SecurityMonitoringRuleQueryCreate `json:"queries"` + Tags *[]string `json:"tags,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_security_monitoring_rule_query_create.go b/api/v2/datadog/model_security_monitoring_rule_query_create.go index 9d1ea4bb85b..9f9183eaf0e 100644 --- a/api/v2/datadog/model_security_monitoring_rule_query_create.go +++ b/api/v2/datadog/model_security_monitoring_rule_query_create.go @@ -294,13 +294,13 @@ func (o *SecurityMonitoringRuleQueryCreate) UnmarshalJSON(bytes []byte) (err err Query *string `json:"query"` }{} all := struct { - AgentRule *SecurityMonitoringRuntimeAgentRule `json:"agentRule,omitempty"}` - Aggregation *SecurityMonitoringRuleQueryAggregation `json:"aggregation,omitempty"}` - DistinctFields *[]string `json:"distinctFields,omitempty"}` - GroupByFields *[]string `json:"groupByFields,omitempty"}` - Metric *string `json:"metric,omitempty"}` - Name *string `json:"name,omitempty"}` - Query string `json:"query"}` + AgentRule *SecurityMonitoringRuntimeAgentRule `json:"agentRule,omitempty"` + Aggregation *SecurityMonitoringRuleQueryAggregation `json:"aggregation,omitempty"` + DistinctFields *[]string `json:"distinctFields,omitempty"` + GroupByFields *[]string `json:"groupByFields,omitempty"` + Metric *string `json:"metric,omitempty"` + Name *string `json:"name,omitempty"` + Query string `json:"query"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_user_create_attributes.go b/api/v2/datadog/model_user_create_attributes.go index 211a8ebc407..ebfde99486a 100644 --- a/api/v2/datadog/model_user_create_attributes.go +++ b/api/v2/datadog/model_user_create_attributes.go @@ -148,9 +148,9 @@ func (o *UserCreateAttributes) UnmarshalJSON(bytes []byte) (err error) { Email *string `json:"email"` }{} all := struct { - Email string `json:"email"}` - Name *string `json:"name,omitempty"}` - Title *string `json:"title,omitempty"}` + Email string `json:"email"` + Name *string `json:"name,omitempty"` + Title *string `json:"title,omitempty"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_user_create_data.go b/api/v2/datadog/model_user_create_data.go index 71aede0c845..9593de4676e 100644 --- a/api/v2/datadog/model_user_create_data.go +++ b/api/v2/datadog/model_user_create_data.go @@ -141,9 +141,9 @@ func (o *UserCreateData) UnmarshalJSON(bytes []byte) (err error) { Type *UsersType `json:"type"` }{} all := struct { - Attributes UserCreateAttributes `json:"attributes"}` - Relationships *UserRelationships `json:"relationships,omitempty"}` - Type UsersType `json:"type"}` + Attributes UserCreateAttributes `json:"attributes"` + Relationships *UserRelationships `json:"relationships,omitempty"` + Type UsersType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_user_create_request.go b/api/v2/datadog/model_user_create_request.go index b7463fcbab4..0b4400f1f90 100644 --- a/api/v2/datadog/model_user_create_request.go +++ b/api/v2/datadog/model_user_create_request.go @@ -73,7 +73,7 @@ func (o *UserCreateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *UserCreateData `json:"data"` }{} all := struct { - Data UserCreateData `json:"data"}` + Data UserCreateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_user_invitation_data.go b/api/v2/datadog/model_user_invitation_data.go index 5bc9fffab47..4f9e00a8b82 100644 --- a/api/v2/datadog/model_user_invitation_data.go +++ b/api/v2/datadog/model_user_invitation_data.go @@ -105,8 +105,8 @@ func (o *UserInvitationData) UnmarshalJSON(bytes []byte) (err error) { Type *UserInvitationsType `json:"type"` }{} all := struct { - Relationships UserInvitationRelationships `json:"relationships"}` - Type UserInvitationsType `json:"type"}` + Relationships UserInvitationRelationships `json:"relationships"` + Type UserInvitationsType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_user_invitation_relationships.go b/api/v2/datadog/model_user_invitation_relationships.go index c7784eb6a2f..afdf4049c1d 100644 --- a/api/v2/datadog/model_user_invitation_relationships.go +++ b/api/v2/datadog/model_user_invitation_relationships.go @@ -73,7 +73,7 @@ func (o *UserInvitationRelationships) UnmarshalJSON(bytes []byte) (err error) { User *RelationshipToUser `json:"user"` }{} all := struct { - User RelationshipToUser `json:"user"}` + User RelationshipToUser `json:"user"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_user_invitations_request.go b/api/v2/datadog/model_user_invitations_request.go index ff4521c5ddd..63c6cead39a 100644 --- a/api/v2/datadog/model_user_invitations_request.go +++ b/api/v2/datadog/model_user_invitations_request.go @@ -74,7 +74,7 @@ func (o *UserInvitationsRequest) UnmarshalJSON(bytes []byte) (err error) { Data *[]UserInvitationData `json:"data"` }{} all := struct { - Data []UserInvitationData `json:"data"}` + Data []UserInvitationData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_user_update_data.go b/api/v2/datadog/model_user_update_data.go index fe7e2c37bce..a57a64338fb 100644 --- a/api/v2/datadog/model_user_update_data.go +++ b/api/v2/datadog/model_user_update_data.go @@ -136,9 +136,9 @@ func (o *UserUpdateData) UnmarshalJSON(bytes []byte) (err error) { Type *UsersType `json:"type"` }{} all := struct { - Attributes UserUpdateAttributes `json:"attributes"}` - Id string `json:"id"}` - Type UsersType `json:"type"}` + Attributes UserUpdateAttributes `json:"attributes"` + Id string `json:"id"` + Type UsersType `json:"type"` }{} err = json.Unmarshal(bytes, &required) if err != nil { diff --git a/api/v2/datadog/model_user_update_request.go b/api/v2/datadog/model_user_update_request.go index c708333d8f3..3a899c2fc2a 100644 --- a/api/v2/datadog/model_user_update_request.go +++ b/api/v2/datadog/model_user_update_request.go @@ -73,7 +73,7 @@ func (o *UserUpdateRequest) UnmarshalJSON(bytes []byte) (err error) { Data *UserUpdateData `json:"data"` }{} all := struct { - Data UserUpdateData `json:"data"}` + Data UserUpdateData `json:"data"` }{} err = json.Unmarshal(bytes, &required) if err != nil {