Skip to content

Commit a445c2d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Regenerate client from commit 0664044 of spec repo (#478)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent ea064c5 commit a445c2d

File tree

6 files changed

+28
-9
lines changed

6 files changed

+28
-9
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.4.1.dev8",
7-
"regenerated": "2021-06-14 11:43:39.500836",
8-
"spec_repo_commit": "6c1fcab"
7+
"regenerated": "2021-06-14 19:16:27.013245",
8+
"spec_repo_commit": "0664044"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev8",
12-
"regenerated": "2021-06-14 11:44:08.726867",
13-
"spec_repo_commit": "6c1fcab"
12+
"regenerated": "2021-06-14 19:16:47.726417",
13+
"spec_repo_commit": "0664044"
1414
}
1515
}
1616
}

docs/v1/Dashboard.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
1616
**modified_at** | **datetime** | Modification date of the dashboard. | [optional] [readonly]
1717
**notify_list** | **[str], none_type** | List of handles of users to notify when changes are made to this dashboard. | [optional]
1818
**reflow_type** | [**DashboardReflowType**](DashboardReflowType.md) | | [optional]
19+
**restricted_roles** | **[str]** | A list of role identifiers. Only the author and users associated with at least one of these roles can edit this dashboard. Overrides the &#x60;is_read_only&#x60; property if both are present. **This feature is currently in beta.** | [optional]
1920
**template_variable_presets** | [**[DashboardTemplateVariablePreset], none_type**](DashboardTemplateVariablePreset.md) | Array of template variables saved views. | [optional]
2021
**template_variables** | [**[DashboardTemplateVariable], none_type**](DashboardTemplateVariable.md) | List of template variables for this dashboard. | [optional]
2122
**url** | **str** | The URL of the dashboard. | [optional] [readonly]

docs/v1/DashboardsApi.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ with ApiClient(configuration) as api_client:
4848
"notify_list_example",
4949
],
5050
reflow_type=DashboardReflowType("auto"),
51+
restricted_roles=[
52+
"restricted_roles_example",
53+
],
5154
template_variable_presets=[
5255
DashboardTemplateVariablePreset(
5356
name="name_example",
@@ -358,6 +361,9 @@ with ApiClient(configuration) as api_client:
358361
"notify_list_example",
359362
],
360363
reflow_type=DashboardReflowType("auto"),
364+
restricted_roles=[
365+
"restricted_roles_example",
366+
],
361367
template_variable_presets=[
362368
DashboardTemplateVariablePreset(
363369
name="name_example",

src/datadog_api_client/v1/model/dashboard.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def openapi_types():
9797
none_type,
9898
), # noqa: E501
9999
"reflow_type": (DashboardReflowType,), # noqa: E501
100+
"restricted_roles": ([str],), # noqa: E501
100101
"template_variable_presets": (
101102
[DashboardTemplateVariablePreset],
102103
none_type,
@@ -124,6 +125,7 @@ def discriminator():
124125
"modified_at": "modified_at", # noqa: E501
125126
"notify_list": "notify_list", # noqa: E501
126127
"reflow_type": "reflow_type", # noqa: E501
128+
"restricted_roles": "restricted_roles", # noqa: E501
127129
"template_variable_presets": "template_variable_presets", # noqa: E501
128130
"template_variables": "template_variables", # noqa: E501
129131
"url": "url", # noqa: E501
@@ -190,6 +192,7 @@ def __init__(self, layout_type, title, widgets, *args, **kwargs): # noqa: E501
190192
modified_at (datetime): Modification date of the dashboard.. [optional] # noqa: E501
191193
notify_list ([str], none_type): List of handles of users to notify when changes are made to this dashboard.. [optional] # noqa: E501
192194
reflow_type (DashboardReflowType): [optional] # noqa: E501
195+
restricted_roles ([str]): A list of role identifiers. Only the author and users associated with at least one of these roles can edit this dashboard. Overrides the `is_read_only` property if both are present. **This feature is currently in beta.**. [optional] # noqa: E501
193196
template_variable_presets ([DashboardTemplateVariablePreset], none_type): Array of template variables saved views.. [optional] # noqa: E501
194197
template_variables ([DashboardTemplateVariable], none_type): List of template variables for this dashboard.. [optional] # noqa: E501
195198
url (str): The URL of the dashboard.. [optional] # noqa: E501

src/datadog_api_client/v1/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,15 @@ components:
893893
type: array
894894
reflow_type:
895895
$ref: '#/components/schemas/DashboardReflowType'
896+
restricted_roles:
897+
description: A list of role identifiers. Only the author and users associated
898+
with at least one of these roles can edit this dashboard. Overrides the
899+
`is_read_only` property if both are present. **This feature is currently
900+
in beta.**
901+
items:
902+
description: A role UUID.
903+
type: string
904+
type: array
896905
template_variable_presets:
897906
description: Array of template variables saved views.
898907
items:

tests/v1/features/dashboards.feature

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ Feature: Dashboards
1212
@generated @skip
1313
Scenario: Create a new dashboard returns "Bad Request" response
1414
Given new "CreateDashboard" request
15-
And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [null], "reflow_type": "auto", "template_variable_presets": [{"name": null, "template_variables": [{"name": null, "value": null}]}], "template_variables": [{"default": "my-host", "name": "host1", "prefix": "host"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "system.cpu.user"}}, "type": "hostmap"}}]}
15+
And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [null], "reflow_type": "auto", "restricted_roles": [null], "template_variable_presets": [{"name": null, "template_variables": [{"name": null, "value": null}]}], "template_variables": [{"default": "my-host", "name": "host1", "prefix": "host"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "system.cpu.user"}}, "type": "hostmap"}}]}
1616
When the request is sent
1717
Then the response status is 400 Bad Request
1818

1919
@generated @skip
2020
Scenario: Create a new dashboard returns "OK" response
2121
Given new "CreateDashboard" request
22-
And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [null], "reflow_type": "auto", "template_variable_presets": [{"name": null, "template_variables": [{"name": null, "value": null}]}], "template_variables": [{"default": "my-host", "name": "host1", "prefix": "host"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "system.cpu.user"}}, "type": "hostmap"}}]}
22+
And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [null], "reflow_type": "auto", "restricted_roles": [null], "template_variable_presets": [{"name": null, "template_variables": [{"name": null, "value": null}]}], "template_variables": [{"default": "my-host", "name": "host1", "prefix": "host"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "system.cpu.user"}}, "type": "hostmap"}}]}
2323
When the request is sent
2424
Then the response status is 200 OK
2525

@@ -78,22 +78,22 @@ Feature: Dashboards
7878
Scenario: Update a dashboard returns "Bad Request" response
7979
Given new "UpdateDashboard" request
8080
And request contains "dashboard_id" parameter from "<PATH>"
81-
And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [null], "reflow_type": "auto", "template_variable_presets": [{"name": null, "template_variables": [{"name": null, "value": null}]}], "template_variables": [{"default": "my-host", "name": "host1", "prefix": "host"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "system.cpu.user"}}, "type": "hostmap"}}]}
81+
And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [null], "reflow_type": "auto", "restricted_roles": [null], "template_variable_presets": [{"name": null, "template_variables": [{"name": null, "value": null}]}], "template_variables": [{"default": "my-host", "name": "host1", "prefix": "host"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "system.cpu.user"}}, "type": "hostmap"}}]}
8282
When the request is sent
8383
Then the response status is 400 Bad Request
8484

8585
@generated @skip
8686
Scenario: Update a dashboard returns "Item Not Found" response
8787
Given new "UpdateDashboard" request
8888
And request contains "dashboard_id" parameter from "<PATH>"
89-
And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [null], "reflow_type": "auto", "template_variable_presets": [{"name": null, "template_variables": [{"name": null, "value": null}]}], "template_variables": [{"default": "my-host", "name": "host1", "prefix": "host"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "system.cpu.user"}}, "type": "hostmap"}}]}
89+
And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [null], "reflow_type": "auto", "restricted_roles": [null], "template_variable_presets": [{"name": null, "template_variables": [{"name": null, "value": null}]}], "template_variables": [{"default": "my-host", "name": "host1", "prefix": "host"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "system.cpu.user"}}, "type": "hostmap"}}]}
9090
When the request is sent
9191
Then the response status is 404 Item Not Found
9292

9393
@generated @skip
9494
Scenario: Update a dashboard returns "OK" response
9595
Given new "UpdateDashboard" request
9696
And request contains "dashboard_id" parameter from "<PATH>"
97-
And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [null], "reflow_type": "auto", "template_variable_presets": [{"name": null, "template_variables": [{"name": null, "value": null}]}], "template_variables": [{"default": "my-host", "name": "host1", "prefix": "host"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "system.cpu.user"}}, "type": "hostmap"}}]}
97+
And body with value {"description": null, "is_read_only": false, "layout_type": "ordered", "notify_list": [null], "reflow_type": "auto", "restricted_roles": [null], "template_variable_presets": [{"name": null, "template_variables": [{"name": null, "value": null}]}], "template_variables": [{"default": "my-host", "name": "host1", "prefix": "host"}], "title": "", "widgets": [{"definition": {"requests": {"fill": {"q": "system.cpu.user"}}, "type": "hostmap"}}]}
9898
When the request is sent
9999
Then the response status is 200 OK

0 commit comments

Comments
 (0)