diff --git a/.apigentools-info b/.apigentools-info index cef74aadd..9487828f6 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-12-05 16:15:52.228481", - "spec_repo_commit": "843392e2" + "regenerated": "2024-12-05 20:46:12.512495", + "spec_repo_commit": "fb5856bc" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-12-05 16:15:52.247230", - "spec_repo_commit": "843392e2" + "regenerated": "2024-12-05 20:46:12.532027", + "spec_repo_commit": "fb5856bc" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index d1465c5b9..1e5109a33 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -22799,18 +22799,18 @@ components: type: integer x: description: The position of the widget on the x (horizontal) axis. Should - be a non-negative integer. + be a non-negative number. example: 0 - format: int64 + format: double minimum: 0 - type: integer + type: number y: description: The position of the widget on the y (vertical) axis. Should - be a non-negative integer. + be a non-negative number. example: 0 - format: int64 + format: double minimum: 0 - type: integer + type: number required: - x - y diff --git a/examples/v1_dashboards_CreateDashboard_1024858348.rs b/examples/v1_dashboards_CreateDashboard_1024858348.rs index 9c824ad85..09e189482 100644 --- a/examples/v1_dashboards_CreateDashboard_1024858348.rs +++ b/examples/v1_dashboards_CreateDashboard_1024858348.rs @@ -66,7 +66,7 @@ async fn main() { ).title("".to_string()), ), ), - ).layout(WidgetLayout::new(4, 4, 0, 0)) + ).layout(WidgetLayout::new(4, 4, 0.0, 0.0)) ], ); let configuration = datadog::Configuration::new(); diff --git a/examples/v1_dashboards_CreateDashboard_109450134.rs b/examples/v1_dashboards_CreateDashboard_109450134.rs index b20f7f20c..6bb8c03e7 100644 --- a/examples/v1_dashboards_CreateDashboard_109450134.rs +++ b/examples/v1_dashboards_CreateDashboard_109450134.rs @@ -37,7 +37,7 @@ async fn main() { .title_align(WidgetTextAlign::LEFT) .title_size("16".to_string()), ))) - .layout(WidgetLayout::new(21, 60, 0, 0)), + .layout(WidgetLayout::new(21, 60, 0.0, 0.0)), ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_1094917386.rs b/examples/v1_dashboards_CreateDashboard_1094917386.rs index bfcb13517..825babc98 100644 --- a/examples/v1_dashboards_CreateDashboard_1094917386.rs +++ b/examples/v1_dashboards_CreateDashboard_1094917386.rs @@ -34,7 +34,7 @@ async fn main() { .start(0) .summary_type(WidgetSummaryType::MONITORS), ))) - .layout(WidgetLayout::new(25, 50, 0, 0)), + .layout(WidgetLayout::new(25, 50, 0.0, 0.0)), ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_1177423752.rs b/examples/v1_dashboards_CreateDashboard_1177423752.rs index 307833fac..d804b6772 100644 --- a/examples/v1_dashboards_CreateDashboard_1177423752.rs +++ b/examples/v1_dashboards_CreateDashboard_1177423752.rs @@ -34,7 +34,7 @@ async fn main() { .title_align(WidgetTextAlign::LEFT) .title_size("16".to_string()), ))) - .layout(WidgetLayout::new(15, 47, 0, 0)), + .layout(WidgetLayout::new(15, 47, 0.0, 0.0)), ], ) .description(None) diff --git a/examples/v1_dashboards_CreateDashboard_1200099236.rs b/examples/v1_dashboards_CreateDashboard_1200099236.rs index 8b5449878..04205955c 100644 --- a/examples/v1_dashboards_CreateDashboard_1200099236.rs +++ b/examples/v1_dashboards_CreateDashboard_1200099236.rs @@ -39,7 +39,7 @@ async fn main() { .title_align(WidgetTextAlign::LEFT) .title_size("16".to_string()), ))) - .layout(WidgetLayout::new(22, 47, 0, 0)), + .layout(WidgetLayout::new(22, 47, 0.0, 0.0)), ], ) .description(None) diff --git a/examples/v1_dashboards_CreateDashboard_1213075383.rs b/examples/v1_dashboards_CreateDashboard_1213075383.rs index 5f69de28f..bd21caf3e 100644 --- a/examples/v1_dashboards_CreateDashboard_1213075383.rs +++ b/examples/v1_dashboards_CreateDashboard_1213075383.rs @@ -99,7 +99,7 @@ async fn main() { .title_size("16".to_string()), ), ), - ).layout(WidgetLayout::new(15, 47, 0, 0)) + ).layout(WidgetLayout::new(15, 47, 0.0, 0.0)) ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_1413226400.rs b/examples/v1_dashboards_CreateDashboard_1413226400.rs index 251ba6601..7dff1d462 100644 --- a/examples/v1_dashboards_CreateDashboard_1413226400.rs +++ b/examples/v1_dashboards_CreateDashboard_1413226400.rs @@ -97,7 +97,7 @@ async fn main() { .title_size("16".to_string()), ), ), - ).layout(WidgetLayout::new(15, 47, 0, 0)) + ).layout(WidgetLayout::new(15, 47, 0.0, 0.0)) ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_1423904722.rs b/examples/v1_dashboards_CreateDashboard_1423904722.rs index 48099ebee..21d6ca381 100644 --- a/examples/v1_dashboards_CreateDashboard_1423904722.rs +++ b/examples/v1_dashboards_CreateDashboard_1423904722.rs @@ -31,7 +31,7 @@ async fn main() { .title_align(WidgetTextAlign::LEFT) .title_size("16".to_string()), ))) - .layout(WidgetLayout::new(21, 60, 0, 0)), + .layout(WidgetLayout::new(21, 60, 0.0, 0.0)), ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_1442588603.rs b/examples/v1_dashboards_CreateDashboard_1442588603.rs index c1a719b07..5430c8216 100644 --- a/examples/v1_dashboards_CreateDashboard_1442588603.rs +++ b/examples/v1_dashboards_CreateDashboard_1442588603.rs @@ -77,7 +77,7 @@ async fn main() { ), ), ), - ).layout(WidgetLayout::new(2, 4, 8, 0)) + ).layout(WidgetLayout::new(2, 4, 8.0, 0.0)) ], ).description(Some("".to_string())); let configuration = datadog::Configuration::new(); diff --git a/examples/v1_dashboards_CreateDashboard_145494973.rs b/examples/v1_dashboards_CreateDashboard_145494973.rs index 45b0ef4ce..a0596881e 100644 --- a/examples/v1_dashboards_CreateDashboard_145494973.rs +++ b/examples/v1_dashboards_CreateDashboard_145494973.rs @@ -59,7 +59,7 @@ async fn main() { .title_size("16".to_string()), ), ), - ).layout(WidgetLayout::new(4, 4, 0, 0)) + ).layout(WidgetLayout::new(4, 4, 0.0, 0.0)) ], ); let configuration = datadog::Configuration::new(); diff --git a/examples/v1_dashboards_CreateDashboard_173805046.rs b/examples/v1_dashboards_CreateDashboard_173805046.rs index e45964fe2..c7f0b3984 100644 --- a/examples/v1_dashboards_CreateDashboard_173805046.rs +++ b/examples/v1_dashboards_CreateDashboard_173805046.rs @@ -30,7 +30,7 @@ async fn main() { .title_size("16".to_string()) .view_mode(WidgetViewMode::OVERALL), ))) - .layout(WidgetLayout::new(21, 60, 0, 0))], + .layout(WidgetLayout::new(21, 60, 0.0, 0.0))], ) .description(Some("".to_string())) .notify_list(Some(vec![])) diff --git a/examples/v1_dashboards_CreateDashboard_1738608750.rs b/examples/v1_dashboards_CreateDashboard_1738608750.rs index ddabd6883..25963f1e4 100644 --- a/examples/v1_dashboards_CreateDashboard_1738608750.rs +++ b/examples/v1_dashboards_CreateDashboard_1738608750.rs @@ -25,7 +25,7 @@ async fn main() { .font_size("auto".to_string()) .text_align(WidgetTextAlign::LEFT), ))) - .layout(WidgetLayout::new(6, 24, 0, 0)), + .layout(WidgetLayout::new(6, 24, 0.0, 0.0)), ], ) .description(None) diff --git a/examples/v1_dashboards_CreateDashboard_1754992756.rs b/examples/v1_dashboards_CreateDashboard_1754992756.rs index ac5ba514a..af7049a23 100644 --- a/examples/v1_dashboards_CreateDashboard_1754992756.rs +++ b/examples/v1_dashboards_CreateDashboard_1754992756.rs @@ -34,7 +34,7 @@ async fn main() { .controlled_externally(vec![]), ), ))) - .layout(WidgetLayout::new(2, 2, 1, 1).is_column_break(false)), + .layout(WidgetLayout::new(2, 2, 1.0, 1.0).is_column_break(false)), ], ) .description(Some("description".to_string())); diff --git a/examples/v1_dashboards_CreateDashboard_2029850837.rs b/examples/v1_dashboards_CreateDashboard_2029850837.rs index 3aed42b33..675f8f524 100644 --- a/examples/v1_dashboards_CreateDashboard_2029850837.rs +++ b/examples/v1_dashboards_CreateDashboard_2029850837.rs @@ -35,7 +35,7 @@ async fn main() { .title_align(WidgetTextAlign::LEFT) .title_size("16".to_string()), ))) - .layout(WidgetLayout::new(36, 47, 0, 0)), + .layout(WidgetLayout::new(36, 47, 0.0, 0.0)), ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_2034634967.rs b/examples/v1_dashboards_CreateDashboard_2034634967.rs index 0c6ea26fb..1683ca4bc 100644 --- a/examples/v1_dashboards_CreateDashboard_2034634967.rs +++ b/examples/v1_dashboards_CreateDashboard_2034634967.rs @@ -26,7 +26,7 @@ async fn main() { .title_align(WidgetTextAlign::LEFT) .title_size("16".to_string()), ))) - .layout(WidgetLayout::new(15, 47, 0, 0)), + .layout(WidgetLayout::new(15, 47, 0.0, 0.0)), ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_2064651578.rs b/examples/v1_dashboards_CreateDashboard_2064651578.rs index de670290e..39b0fa60d 100644 --- a/examples/v1_dashboards_CreateDashboard_2064651578.rs +++ b/examples/v1_dashboards_CreateDashboard_2064651578.rs @@ -82,7 +82,7 @@ async fn main() { .title_size("16".to_string()), ), ), - ).layout(WidgetLayout::new(4, 4, 0, 0)) + ).layout(WidgetLayout::new(4, 4, 0.0, 0.0)) ], ).tags(Some(vec!["team:foobar".to_string()])); let configuration = datadog::Configuration::new(); diff --git a/examples/v1_dashboards_CreateDashboard_2104498738.rs b/examples/v1_dashboards_CreateDashboard_2104498738.rs index 6245f0515..065801f2f 100644 --- a/examples/v1_dashboards_CreateDashboard_2104498738.rs +++ b/examples/v1_dashboards_CreateDashboard_2104498738.rs @@ -80,7 +80,7 @@ async fn main() { ), ) .id(5346764334358972) - .layout(WidgetLayout::new(2, 4, 0, 0)) + .layout(WidgetLayout::new(2, 4, 0.0, 0.0)) ], ); let configuration = datadog::Configuration::new(); diff --git a/examples/v1_dashboards_CreateDashboard_2278756614.rs b/examples/v1_dashboards_CreateDashboard_2278756614.rs index fbc10b069..1d2b1774e 100644 --- a/examples/v1_dashboards_CreateDashboard_2278756614.rs +++ b/examples/v1_dashboards_CreateDashboard_2278756614.rs @@ -102,7 +102,7 @@ async fn main() { .title("".to_string()), ), ), - ).layout(WidgetLayout::new(8, 12, 0, 0)) + ).layout(WidgetLayout::new(8, 12, 0.0, 0.0)) ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_2308247857.rs b/examples/v1_dashboards_CreateDashboard_2308247857.rs index 0ff702fb1..8be0d6fc3 100644 --- a/examples/v1_dashboards_CreateDashboard_2308247857.rs +++ b/examples/v1_dashboards_CreateDashboard_2308247857.rs @@ -33,7 +33,7 @@ async fn main() { .title_align(WidgetTextAlign::LEFT) .title_size("16".to_string()), ))) - .layout(WidgetLayout::new(15, 47, 0, 0)), + .layout(WidgetLayout::new(15, 47, 0.0, 0.0)), ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_2316374332.rs b/examples/v1_dashboards_CreateDashboard_2316374332.rs index 222fbb819..a3a7670db 100644 --- a/examples/v1_dashboards_CreateDashboard_2316374332.rs +++ b/examples/v1_dashboards_CreateDashboard_2316374332.rs @@ -29,7 +29,7 @@ async fn main() { .title_size("16".to_string()) .unit("auto".to_string()), ))) - .layout(WidgetLayout::new(8, 15, 0, 0)), + .layout(WidgetLayout::new(8, 15, 0.0, 0.0)), ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_2336428357.rs b/examples/v1_dashboards_CreateDashboard_2336428357.rs index c54c61081..718030658 100644 --- a/examples/v1_dashboards_CreateDashboard_2336428357.rs +++ b/examples/v1_dashboards_CreateDashboard_2336428357.rs @@ -88,7 +88,7 @@ async fn main() { .title_size("16".to_string()), ), ), - ).layout(WidgetLayout::new(32, 54, 0, 0)) + ).layout(WidgetLayout::new(32, 54, 0.0, 0.0)) ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_2342457693.rs b/examples/v1_dashboards_CreateDashboard_2342457693.rs index bb8f660ff..be79ed410 100644 --- a/examples/v1_dashboards_CreateDashboard_2342457693.rs +++ b/examples/v1_dashboards_CreateDashboard_2342457693.rs @@ -97,7 +97,7 @@ async fn main() { ), ), ), - ).layout(WidgetLayout::new(15, 47, 0, 0)) + ).layout(WidgetLayout::new(15, 47, 0.0, 0.0)) ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_2349863258.rs b/examples/v1_dashboards_CreateDashboard_2349863258.rs index 469989272..fb67e1ff0 100644 --- a/examples/v1_dashboards_CreateDashboard_2349863258.rs +++ b/examples/v1_dashboards_CreateDashboard_2349863258.rs @@ -57,7 +57,7 @@ async fn main() { .title_size("16".to_string()), ), ), - ).layout(WidgetLayout::new(15, 47, 0, 0)) + ).layout(WidgetLayout::new(15, 47, 0.0, 0.0)) ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_2490110261.rs b/examples/v1_dashboards_CreateDashboard_2490110261.rs index 024983863..db18dc517 100644 --- a/examples/v1_dashboards_CreateDashboard_2490110261.rs +++ b/examples/v1_dashboards_CreateDashboard_2490110261.rs @@ -59,7 +59,7 @@ async fn main() { ), ), ), - ).layout(WidgetLayout::new(2, 4, 2, 0)) + ).layout(WidgetLayout::new(2, 4, 2.0, 0.0)) ], ); let configuration = datadog::Configuration::new(); diff --git a/examples/v1_dashboards_CreateDashboard_252716965.rs b/examples/v1_dashboards_CreateDashboard_252716965.rs index c88320b02..c2f2578e3 100644 --- a/examples/v1_dashboards_CreateDashboard_252716965.rs +++ b/examples/v1_dashboards_CreateDashboard_252716965.rs @@ -77,7 +77,7 @@ async fn main() { ), ), ), - ).layout(WidgetLayout::new(2, 4, 0, 0)) + ).layout(WidgetLayout::new(2, 4, 0.0, 0.0)) ], ); let configuration = datadog::Configuration::new(); diff --git a/examples/v1_dashboards_CreateDashboard_2563642929.rs b/examples/v1_dashboards_CreateDashboard_2563642929.rs index a3f7fef64..2b7343c05 100644 --- a/examples/v1_dashboards_CreateDashboard_2563642929.rs +++ b/examples/v1_dashboards_CreateDashboard_2563642929.rs @@ -99,7 +99,7 @@ async fn main() { .title_size("16".to_string()), ), ), - ).layout(WidgetLayout::new(15, 47, 0, 0)) + ).layout(WidgetLayout::new(15, 47, 0.0, 0.0)) ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_2607944105.rs b/examples/v1_dashboards_CreateDashboard_2607944105.rs index 711d85bf1..b09705cfb 100644 --- a/examples/v1_dashboards_CreateDashboard_2607944105.rs +++ b/examples/v1_dashboards_CreateDashboard_2607944105.rs @@ -27,7 +27,7 @@ async fn main() { .title_align(WidgetTextAlign::LEFT) .title_size("16".to_string()), ))) - .layout(WidgetLayout::new(8, 15, 0, 0)), + .layout(WidgetLayout::new(8, 15, 0.0, 0.0)), ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_2610827685.rs b/examples/v1_dashboards_CreateDashboard_2610827685.rs index 97b9ff8ac..9841300d3 100644 --- a/examples/v1_dashboards_CreateDashboard_2610827685.rs +++ b/examples/v1_dashboards_CreateDashboard_2610827685.rs @@ -35,7 +35,7 @@ async fn main() { .title_align(WidgetTextAlign::LEFT) .title_size("16".to_string()), ))) - .layout(WidgetLayout::new(15, 47, 0, 0)), + .layout(WidgetLayout::new(15, 47, 0.0, 0.0)), ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_2634813877.rs b/examples/v1_dashboards_CreateDashboard_2634813877.rs index a3274f14d..c5a86de33 100644 --- a/examples/v1_dashboards_CreateDashboard_2634813877.rs +++ b/examples/v1_dashboards_CreateDashboard_2634813877.rs @@ -28,7 +28,7 @@ async fn main() { .title_align(WidgetTextAlign::LEFT) .title_size("16".to_string()), ))) - .layout(WidgetLayout::new(38, 47, 0, 0)), + .layout(WidgetLayout::new(38, 47, 0.0, 0.0)), ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_2644712913.rs b/examples/v1_dashboards_CreateDashboard_2644712913.rs index 222a37cce..6eb63e64b 100644 --- a/examples/v1_dashboards_CreateDashboard_2644712913.rs +++ b/examples/v1_dashboards_CreateDashboard_2644712913.rs @@ -59,7 +59,7 @@ async fn main() { .title_size("16".to_string()), ), ), - ).layout(WidgetLayout::new(2, 2, 0, 0)) + ).layout(WidgetLayout::new(2, 2, 0.0, 0.0)) ], ); let configuration = datadog::Configuration::new(); diff --git a/examples/v1_dashboards_CreateDashboard_2652180930.rs b/examples/v1_dashboards_CreateDashboard_2652180930.rs index 57a7fa60a..7b4765f34 100644 --- a/examples/v1_dashboards_CreateDashboard_2652180930.rs +++ b/examples/v1_dashboards_CreateDashboard_2652180930.rs @@ -36,7 +36,7 @@ async fn main() { .title_align(WidgetTextAlign::LEFT) .title_size("16".to_string()), ))) - .layout(WidgetLayout::new(15, 47, 0, 0)), + .layout(WidgetLayout::new(15, 47, 0.0, 0.0)), ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_2705593938.rs b/examples/v1_dashboards_CreateDashboard_2705593938.rs index 7dd47a639..0feee511b 100644 --- a/examples/v1_dashboards_CreateDashboard_2705593938.rs +++ b/examples/v1_dashboards_CreateDashboard_2705593938.rs @@ -56,7 +56,7 @@ async fn main() { .title_size("16".to_string()), ), ), - ).layout(WidgetLayout::new(4, 4, 0, 0)) + ).layout(WidgetLayout::new(4, 4, 0.0, 0.0)) ], ); let configuration = datadog::Configuration::new(); diff --git a/examples/v1_dashboards_CreateDashboard_2917274132.rs b/examples/v1_dashboards_CreateDashboard_2917274132.rs index 8d82b4721..6558148c1 100644 --- a/examples/v1_dashboards_CreateDashboard_2917274132.rs +++ b/examples/v1_dashboards_CreateDashboard_2917274132.rs @@ -33,7 +33,7 @@ async fn main() { .start(0) .summary_type(WidgetSummaryType::MONITORS), ))) - .layout(WidgetLayout::new(25, 50, 0, 0)), + .layout(WidgetLayout::new(25, 50, 0.0, 0.0)), ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_2921337351.rs b/examples/v1_dashboards_CreateDashboard_2921337351.rs index e7db219f8..f9c6cacfb 100644 --- a/examples/v1_dashboards_CreateDashboard_2921337351.rs +++ b/examples/v1_dashboards_CreateDashboard_2921337351.rs @@ -39,7 +39,7 @@ async fn main() { ))) .title("Service Summary".to_string()), ))) - .layout(WidgetLayout::new(72, 72, 0, 0)), + .layout(WidgetLayout::new(72, 72, 0.0, 0.0)), ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_3250131584.rs b/examples/v1_dashboards_CreateDashboard_3250131584.rs index 73c7f620a..c24433868 100644 --- a/examples/v1_dashboards_CreateDashboard_3250131584.rs +++ b/examples/v1_dashboards_CreateDashboard_3250131584.rs @@ -26,7 +26,7 @@ async fn main() { .title_align(WidgetTextAlign::LEFT) .title_size("16".to_string()), ))) - .layout(WidgetLayout::new(9, 47, 0, 0)), + .layout(WidgetLayout::new(9, 47, 0.0, 0.0)), ], ) .description(None) diff --git a/examples/v1_dashboards_CreateDashboard_3513586382.rs b/examples/v1_dashboards_CreateDashboard_3513586382.rs index 9fd99917e..2207cddf9 100644 --- a/examples/v1_dashboards_CreateDashboard_3513586382.rs +++ b/examples/v1_dashboards_CreateDashboard_3513586382.rs @@ -64,7 +64,7 @@ async fn main() { .title_align(WidgetTextAlign::LEFT) .title_size("16".to_string()), ))) - .layout(WidgetLayout::new(6, 12, 0, 0)), + .layout(WidgetLayout::new(6, 12, 0.0, 0.0)), ], ) .description(Some("Example-Dashboard".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_3562282606.rs b/examples/v1_dashboards_CreateDashboard_3562282606.rs index 961113c5f..a3491ff10 100644 --- a/examples/v1_dashboards_CreateDashboard_3562282606.rs +++ b/examples/v1_dashboards_CreateDashboard_3562282606.rs @@ -69,7 +69,7 @@ async fn main() { .title_align(WidgetTextAlign::LEFT) .title_size("16".to_string()), ))) - .layout(WidgetLayout::new(2, 4, 0, 0)), + .layout(WidgetLayout::new(2, 4, 0.0, 0.0)), ], ); let configuration = datadog::Configuration::new(); diff --git a/examples/v1_dashboards_CreateDashboard_3777304439.rs b/examples/v1_dashboards_CreateDashboard_3777304439.rs index 1cd4429e9..324841dce 100644 --- a/examples/v1_dashboards_CreateDashboard_3777304439.rs +++ b/examples/v1_dashboards_CreateDashboard_3777304439.rs @@ -58,7 +58,7 @@ async fn main() { .title_size("16".to_string()), ), ), - ).layout(WidgetLayout::new(15, 47, 0, 0)) + ).layout(WidgetLayout::new(15, 47, 0.0, 0.0)) ], ) .notify_list(Some(vec![])) diff --git a/examples/v1_dashboards_CreateDashboard_3882428227.rs b/examples/v1_dashboards_CreateDashboard_3882428227.rs index 4ebc0fb55..9c8860d7d 100644 --- a/examples/v1_dashboards_CreateDashboard_3882428227.rs +++ b/examples/v1_dashboards_CreateDashboard_3882428227.rs @@ -79,7 +79,7 @@ async fn main() { ), ), ), - ).layout(WidgetLayout::new(2, 4, 0, 0)) + ).layout(WidgetLayout::new(2, 4, 0.0, 0.0)) ], ).description(Some("Example-Dashboard".to_string())); let configuration = datadog::Configuration::new(); diff --git a/examples/v1_dashboards_CreateDashboard_417992286.rs b/examples/v1_dashboards_CreateDashboard_417992286.rs index 7d1c9597d..198a21a1a 100644 --- a/examples/v1_dashboards_CreateDashboard_417992286.rs +++ b/examples/v1_dashboards_CreateDashboard_417992286.rs @@ -17,7 +17,7 @@ async fn main() { vec![Widget::new(WidgetDefinition::NoteWidgetDefinition(Box::new( NoteWidgetDefinition::new("# Example Note".to_string(), NoteWidgetDefinitionType::NOTE), ))) - .layout(WidgetLayout::new(24, 18, 0, 0))], + .layout(WidgetLayout::new(24, 18, 0.0, 0.0))], ) .description(Some("".to_string())) .notify_list(Some(vec![])) diff --git a/examples/v1_dashboards_CreateDashboard_578885732.rs b/examples/v1_dashboards_CreateDashboard_578885732.rs index 1ca04e73b..acbb703d7 100644 --- a/examples/v1_dashboards_CreateDashboard_578885732.rs +++ b/examples/v1_dashboards_CreateDashboard_578885732.rs @@ -82,7 +82,7 @@ async fn main() { .title_size("16".to_string()), ), ), - ).layout(WidgetLayout::new(4, 4, 0, 0)) + ).layout(WidgetLayout::new(4, 4, 0.0, 0.0)) ], ); let configuration = datadog::Configuration::new(); diff --git a/examples/v1_dashboards_CreateDashboard_651038379.rs b/examples/v1_dashboards_CreateDashboard_651038379.rs index 5a8b24081..81d98599b 100644 --- a/examples/v1_dashboards_CreateDashboard_651038379.rs +++ b/examples/v1_dashboards_CreateDashboard_651038379.rs @@ -23,7 +23,7 @@ async fn main() { ) .sizing(WidgetImageSizing::COVER), ))) - .layout(WidgetLayout::new(12, 12, 0, 0)), + .layout(WidgetLayout::new(12, 12, 0.0, 0.0)), ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_765140092.rs b/examples/v1_dashboards_CreateDashboard_765140092.rs index ec25df87f..2fad827d7 100644 --- a/examples/v1_dashboards_CreateDashboard_765140092.rs +++ b/examples/v1_dashboards_CreateDashboard_765140092.rs @@ -67,7 +67,7 @@ async fn main() { .title_size("16".to_string()), ), ), - ).layout(WidgetLayout::new(2, 2, 0, 0)) + ).layout(WidgetLayout::new(2, 2, 0.0, 0.0)) ], ); let configuration = datadog::Configuration::new(); diff --git a/examples/v1_dashboards_CreateDashboard_794302680.rs b/examples/v1_dashboards_CreateDashboard_794302680.rs index 1ea631936..8916d833c 100644 --- a/examples/v1_dashboards_CreateDashboard_794302680.rs +++ b/examples/v1_dashboards_CreateDashboard_794302680.rs @@ -182,7 +182,7 @@ async fn main() { .title_size("16".to_string()), ), ), - ).layout(WidgetLayout::new(4, 4, 0, 0)) + ).layout(WidgetLayout::new(4, 4, 0.0, 0.0)) ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_798168180.rs b/examples/v1_dashboards_CreateDashboard_798168180.rs index 539dbd776..6756f1838 100644 --- a/examples/v1_dashboards_CreateDashboard_798168180.rs +++ b/examples/v1_dashboards_CreateDashboard_798168180.rs @@ -59,7 +59,7 @@ async fn main() { .title_size("16".to_string()), ), ), - ).layout(WidgetLayout::new(4, 4, 0, 0)) + ).layout(WidgetLayout::new(4, 4, 0.0, 0.0)) ], ); let configuration = datadog::Configuration::new(); diff --git a/examples/v1_dashboards_CreateDashboard_803346562.rs b/examples/v1_dashboards_CreateDashboard_803346562.rs index b5e4d73f9..a37917a8d 100644 --- a/examples/v1_dashboards_CreateDashboard_803346562.rs +++ b/examples/v1_dashboards_CreateDashboard_803346562.rs @@ -36,7 +36,7 @@ async fn main() { .title_align(WidgetTextAlign::LEFT) .title_size("16".to_string()), ))) - .layout(WidgetLayout::new(4, 4, 0, 0)), + .layout(WidgetLayout::new(4, 4, 0.0, 0.0)), ], ); let configuration = datadog::Configuration::new(); diff --git a/examples/v1_dashboards_CreateDashboard_913313564.rs b/examples/v1_dashboards_CreateDashboard_913313564.rs index 905b39c30..577be9e92 100644 --- a/examples/v1_dashboards_CreateDashboard_913313564.rs +++ b/examples/v1_dashboards_CreateDashboard_913313564.rs @@ -21,7 +21,7 @@ async fn main() { "https://docs.datadoghq.com/api/latest/".to_string(), ), ))) - .layout(WidgetLayout::new(12, 12, 0, 0)), + .layout(WidgetLayout::new(12, 12, 0.0, 0.0)), ], ) .description(Some("".to_string())) diff --git a/examples/v1_dashboards_CreateDashboard_915214113.rs b/examples/v1_dashboards_CreateDashboard_915214113.rs index ad32a36da..9fdc4d6ce 100644 --- a/examples/v1_dashboards_CreateDashboard_915214113.rs +++ b/examples/v1_dashboards_CreateDashboard_915214113.rs @@ -111,7 +111,7 @@ async fn main() { .title_size("16".to_string()), ), ), - ).layout(WidgetLayout::new(30, 47, 0, 0)) + ).layout(WidgetLayout::new(30, 47, 0.0, 0.0)) ], ) .description(None) diff --git a/src/datadogV1/model/model_widget_layout.rs b/src/datadogV1/model/model_widget_layout.rs index 4326503c6..b42c0e56c 100644 --- a/src/datadogV1/model/model_widget_layout.rs +++ b/src/datadogV1/model/model_widget_layout.rs @@ -21,12 +21,12 @@ pub struct WidgetLayout { /// The width of the widget. Should be a non-negative integer. #[serde(rename = "width")] pub width: i64, - /// The position of the widget on the x (horizontal) axis. Should be a non-negative integer. + /// The position of the widget on the x (horizontal) axis. Should be a non-negative number. #[serde(rename = "x")] - pub x: i64, - /// The position of the widget on the y (vertical) axis. Should be a non-negative integer. + pub x: f64, + /// The position of the widget on the y (vertical) axis. Should be a non-negative number. #[serde(rename = "y")] - pub y: i64, + pub y: f64, #[serde(flatten)] pub additional_properties: std::collections::BTreeMap, #[serde(skip)] @@ -35,7 +35,7 @@ pub struct WidgetLayout { } impl WidgetLayout { - pub fn new(height: i64, width: i64, x: i64, y: i64) -> WidgetLayout { + pub fn new(height: i64, width: i64, x: f64, y: f64) -> WidgetLayout { WidgetLayout { height, is_column_break: None, @@ -81,8 +81,8 @@ impl<'de> Deserialize<'de> for WidgetLayout { let mut height: Option = None; let mut is_column_break: Option = None; let mut width: Option = None; - let mut x: Option = None; - let mut y: Option = None; + let mut x: Option = None; + let mut y: Option = None; let mut additional_properties: std::collections::BTreeMap< String, serde_json::Value,