Skip to content

Commit fe59541

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Mark restricted_roles as nullable in monitor update request (#1508)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent e91f7e1 commit fe59541

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
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.4",
7-
"regenerated": "2023-06-08 14:17:42.334990",
8-
"spec_repo_commit": "11592711"
7+
"regenerated": "2023-06-08 17:37:18.807428",
8+
"spec_repo_commit": "9a0ffb6a"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-06-08 14:17:42.348055",
13-
"spec_repo_commit": "11592711"
12+
"regenerated": "2023-06-08 17:37:18.819527",
13+
"spec_repo_commit": "9a0ffb6a"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7248,6 +7248,7 @@ components:
72487248
items:
72497249
description: A role UUID.
72507250
type: string
7251+
nullable: true
72517252
type: array
72527253
state:
72537254
$ref: '#/components/schemas/MonitorState'

src/datadog_api_client/v1/model/monitor_update_request.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def openapi_types(_):
5252
"overall_state": (MonitorOverallStates,),
5353
"priority": (int,),
5454
"query": (str,),
55-
"restricted_roles": ([str],),
55+
"restricted_roles": ([str], none_type),
5656
"state": (MonitorState,),
5757
"tags": ([str],),
5858
"type": (MonitorType,),
@@ -101,7 +101,7 @@ def __init__(
101101
overall_state: Union[MonitorOverallStates, UnsetType] = unset,
102102
priority: Union[int, UnsetType] = unset,
103103
query: Union[str, UnsetType] = unset,
104-
restricted_roles: Union[List[str], UnsetType] = unset,
104+
restricted_roles: Union[List[str], none_type, UnsetType] = unset,
105105
state: Union[MonitorState, UnsetType] = unset,
106106
tags: Union[List[str], UnsetType] = unset,
107107
type: Union[MonitorType, UnsetType] = unset,
@@ -147,7 +147,7 @@ def __init__(
147147
:type query: str, optional
148148
149149
:param restricted_roles: A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the `Roles API <https://docs.datadoghq.com/api/latest/roles/#list-roles>`_ and are located in the ``data.id`` field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. ``restricted_roles`` is the successor of ``locked``. For more information about ``locked`` and ``restricted_roles`` , see the `monitor options docs <https://docs.datadoghq.com/monitors/guide/monitor_api_options/#permissions-options>`_.
150-
:type restricted_roles: [str], optional
150+
:type restricted_roles: [str], none_type, optional
151151
152152
:param state: Wrapper object with the different monitor states.
153153
:type state: MonitorState, optional

0 commit comments

Comments
 (0)