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

[monitor] Add restricted roles to update #255

Merged
merged 1 commit into from
Feb 1, 2021
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.4.1.dev2",
"regenerated": "2021-01-29 22:08:40.823575",
"spec_repo_commit": "23b373b"
"regenerated": "2021-02-01 18:37:08.313334",
"spec_repo_commit": "ad4a282"
},
"v2": {
"apigentools_version": "1.4.1.dev2",
"regenerated": "2021-01-29 22:09:21.022696",
"spec_repo_commit": "23b373b"
"regenerated": "2021-02-01 18:37:39.559391",
"spec_repo_commit": "ad4a282"
}
}
}
1 change: 1 addition & 0 deletions docs/v1/MonitorUpdateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Name | Type | Description | Notes
**overall_state** | [**MonitorOverallStates**](MonitorOverallStates.md) | | [optional]
**priority** | **int** | Integer from 1 (high) to 5 (low) indicating alert severity. | [optional]
**query** | **str** | The monitor query. | [optional]
**restricted_roles** | **[str]** | A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked` option. | [optional]
**state** | [**MonitorState**](MonitorState.md) | | [optional]
**tags** | **[str]** | Tags associated to your monitor. | [optional]
**type** | [**MonitorType**](MonitorType.md) | | [optional]
Expand Down
3 changes: 3 additions & 0 deletions docs/v1/MonitorsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,9 @@ with ApiClient(configuration) as api_client:
overall_state=MonitorOverallStates("Alert"),
priority=1,
query="query_example",
restricted_roles=[
"restricted_roles_example",
],
state=MonitorState(
groups={
"key": MonitorStateGroup(
Expand Down
2 changes: 1 addition & 1 deletion docs/v2/UsersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ with ApiClient(configuration) as api_client:
body = UserCreateRequest(
data=UserCreateData(
attributes=UserCreateAttributes(
email="joe.doe@example.com",
email="jane.doe@example.com",
name="name_example",
title="title_example",
),
Expand Down
3 changes: 3 additions & 0 deletions src/datadog_api_client/v1/model/monitor_update_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def openapi_types():
"overall_state": (MonitorOverallStates,), # noqa: E501
"priority": (int,), # noqa: E501
"query": (str,), # noqa: E501
"restricted_roles": ([str],), # noqa: E501
"state": (MonitorState,), # noqa: E501
"tags": ([str],), # noqa: E501
"type": (MonitorType,), # noqa: E501
Expand All @@ -124,6 +125,7 @@ def discriminator():
"overall_state": "overall_state", # noqa: E501
"priority": "priority", # noqa: E501
"query": "query", # noqa: E501
"restricted_roles": "restricted_roles", # noqa: E501
"state": "state", # noqa: E501
"tags": "tags", # noqa: E501
"type": "type", # noqa: E501
Expand Down Expand Up @@ -189,6 +191,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
overall_state (MonitorOverallStates): [optional] # noqa: E501
priority (int): Integer from 1 (high) to 5 (low) indicating alert severity.. [optional] # noqa: E501
query (str): The monitor query.. [optional] # noqa: E501
restricted_roles ([str]): A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked` option.. [optional] # noqa: E501
state (MonitorState): [optional] # noqa: E501
tags ([str]): Tags associated to your monitor.. [optional] # noqa: E501
type (MonitorType): [optional] # noqa: E501
Expand Down
7 changes: 7 additions & 0 deletions src/datadog_api_client/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4443,6 +4443,13 @@ components:
query:
description: The monitor query.
type: string
restricted_roles:
description: A list of role identifiers that can be pulled from the Roles
API. Cannot be used with `locked` option.
items:
description: A role UUID.
type: string
type: array
state:
$ref: '#/components/schemas/MonitorState'
tags:
Expand Down
2 changes: 1 addition & 1 deletion src/datadog_api_client/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4126,7 +4126,7 @@ components:
properties:
email:
description: The email of the user.
example: joe.doe@example.com
example: jane.doe@example.com
type: string
name:
description: The name of the user.
Expand Down