Skip to content

Commit 0476221

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-specmichaelmcchen
authored
Remove isReadOnly default when creating dashboards (#2839)
* Regenerate client from commit 39adb7c0 of spec repo * update recordings --------- Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: Michael Chen <[email protected]>
1 parent 7ac9a50 commit 0476221

File tree

6 files changed

+13
-14
lines changed

6 files changed

+13
-14
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-05-08 14:34:53.877121",
8-
"spec_repo_commit": "4b632dba"
7+
"regenerated": "2025-05-09 02:41:26.674771",
8+
"spec_repo_commit": "39adb7c0"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-08 14:34:53.893015",
13-
"spec_repo_commit": "4b632dba"
12+
"regenerated": "2025-05-09 02:41:26.695479",
13+
"spec_repo_commit": "39adb7c0"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,6 @@ components:
11811181
readOnly: true
11821182
type: string
11831183
is_read_only:
1184-
default: false
11851184
deprecated: true
11861185
description: 'Whether this dashboard is read-only. If True, only the author
11871186
and admins can make changes to it.

src/main/java/com/datadog/api/client/v1/model/Dashboard.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class Dashboard {
6464
private String id;
6565

6666
public static final String JSON_PROPERTY_IS_READ_ONLY = "is_read_only";
67-
private Boolean isReadOnly = false;
67+
private Boolean isReadOnly;
6868

6969
public static final String JSON_PROPERTY_LAYOUT_TYPE = "layout_type";
7070
private DashboardLayoutType layoutType;

src/test/resources/cassettes/v1/DashboardsApiTest.dashboardCreateErrorsTest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"secure" : true,
1515
"body" : {
1616
"type" : "JSON",
17-
"json" : "{\"is_read_only\":false,\"layout_type\":null,\"title\":null,\"widgets\":[]}"
17+
"json" : "{\"layout_type\":null,\"title\":null,\"widgets\":[]}"
1818
}
1919
},
2020
"times" : {
@@ -58,7 +58,7 @@
5858
"secure" : true,
5959
"body" : {
6060
"type" : "JSON",
61-
"json" : "{\"is_read_only\":false,\"layout_type\":null,\"title\":null,\"widgets\":[]}"
61+
"json" : "{\"layout_type\":null,\"title\":null,\"widgets\":[]}"
6262
}
6363
},
6464
"times" : {

src/test/resources/cassettes/v1/DashboardsApiTest.dashboardLifecycleTest.json

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

src/test/resources/cassettes/v1/DashboardsApiTest.dashboardUpdateErrorsTest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"secure" : true,
1515
"body" : {
1616
"type" : "JSON",
17-
"json" : "{\"is_read_only\":false,\"layout_type\":null,\"title\":null,\"widgets\":[]}"
17+
"json" : "{\"layout_type\":null,\"title\":null,\"widgets\":[]}"
1818
}
1919
},
2020
"times" : {
@@ -58,7 +58,7 @@
5858
"secure" : true,
5959
"body" : {
6060
"type" : "JSON",
61-
"json" : "{\"is_read_only\":false,\"layout_type\":null,\"title\":null,\"widgets\":[]}"
61+
"json" : "{\"layout_type\":null,\"title\":null,\"widgets\":[]}"
6262
}
6363
},
6464
"times" : {
@@ -96,7 +96,7 @@
9696
"secure" : true,
9797
"body" : {
9898
"type" : "JSON",
99-
"json" : "{\"description\":\"Test dashboard for Java client\",\"is_read_only\":false,\"layout_type\":\"free\",\"title\":\"java-dashboardUpdateErrorsTest-local-1595946448\",\"widgets\":[]}"
99+
"json" : "{\"description\":\"Test dashboard for Java client\",\"layout_type\":\"free\",\"title\":\"java-dashboardUpdateErrorsTest-local-1595946448\",\"widgets\":[]}"
100100
}
101101
},
102102
"times" : {

0 commit comments

Comments
 (0)