Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark restricted_roles as nullable in monitor update request #1508

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.4",
"regenerated": "2023-06-08 14:17:42.334990",
"spec_repo_commit": "11592711"
"regenerated": "2023-06-08 17:37:18.807428",
"spec_repo_commit": "9a0ffb6a"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-06-08 14:17:42.348055",
"spec_repo_commit": "11592711"
"regenerated": "2023-06-08 17:37:18.819527",
"spec_repo_commit": "9a0ffb6a"
}
}
}
1 change: 1 addition & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7248,6 +7248,7 @@ components:
items:
description: A role UUID.
type: string
nullable: true
type: array
state:
$ref: '#/components/schemas/MonitorState'
Expand Down
6 changes: 3 additions & 3 deletions src/datadog_api_client/v1/model/monitor_update_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def openapi_types(_):
"overall_state": (MonitorOverallStates,),
"priority": (int,),
"query": (str,),
"restricted_roles": ([str],),
"restricted_roles": ([str], none_type),
"state": (MonitorState,),
"tags": ([str],),
"type": (MonitorType,),
Expand Down Expand Up @@ -101,7 +101,7 @@ def __init__(
overall_state: Union[MonitorOverallStates, UnsetType] = unset,
priority: Union[int, UnsetType] = unset,
query: Union[str, UnsetType] = unset,
restricted_roles: Union[List[str], UnsetType] = unset,
restricted_roles: Union[List[str], none_type, UnsetType] = unset,
state: Union[MonitorState, UnsetType] = unset,
tags: Union[List[str], UnsetType] = unset,
type: Union[MonitorType, UnsetType] = unset,
Expand Down Expand Up @@ -147,7 +147,7 @@ def __init__(
:type query: str, optional

: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>`_.
:type restricted_roles: [str], optional
:type restricted_roles: [str], none_type, optional

:param state: Wrapper object with the different monitor states.
:type state: MonitorState, optional
Expand Down