Skip to content

Commit

Permalink
Regenerate client from commit 941f02ee of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Sep 23, 2022
1 parent 1a8d77b commit 1ce5453
Show file tree
Hide file tree
Showing 26 changed files with 709 additions and 278 deletions.
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": "2022-09-23 09:09:11.716130",
"spec_repo_commit": "7f715655"
"regenerated": "2022-09-23 14:27:44.170384",
"spec_repo_commit": "941f02ee"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2022-09-23 09:09:11.728594",
"spec_repo_commit": "7f715655"
"regenerated": "2022-09-23 14:27:44.184155",
"spec_repo_commit": "941f02ee"
}
}
}
8 changes: 0 additions & 8 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2440,10 +2440,6 @@ components:
type: string
search:
$ref: '#/components/schemas/FormulaAndFunctionEventQueryDefinitionSearch'
storage:
description: Option for storage location. Feature in Private Beta.
example: indexes
type: string
required:
- data_source
- compute
Expand Down Expand Up @@ -4029,10 +4025,6 @@ components:
description: Widget query.
example: '@service:app'
type: string
storage:
description: Option for storage location. Feature in Private Beta.
example: indexes
type: string
required:
- query_string
- data_source
Expand Down
25 changes: 25 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12863,6 +12863,31 @@ paths:
cursorPath: meta.page.after
limitParam: body.page.limit
resultsPath: data
/api/v2/security_monitoring/signals/{signal_id}:
get:
description: Get a signal's details.
operationId: GetSecurityMonitoringSignal
parameters:
- $ref: '#/components/parameters/SignalID'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SecurityMonitoringSignal'
description: OK
'404':
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- security_monitoring_rules_read
summary: Get a signal's details
tags:
- Security Monitoring
/api/v2/security_monitoring/signals/{signal_id}/assignee:
patch:
description: Modify the triage assignee of a security signal.
Expand Down
52 changes: 0 additions & 52 deletions examples/v1/dashboards/CreateDashboard_3117424216.py

This file was deleted.

80 changes: 0 additions & 80 deletions examples/v1/dashboards/CreateDashboard_3669695268.py

This file was deleted.

15 changes: 15 additions & 0 deletions examples/v2/security-monitoring/GetSecurityMonitoringSignal.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""
Get a signal's details returns "OK" response
"""

from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.security_monitoring_api import SecurityMonitoringApi

configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = SecurityMonitoringApi(api_client)
response = api_instance.get_security_monitoring_signal(
signal_id="AQAAAYNqUBVU4-rffwAAAABBWU5xVUJWVUFBQjJBd3ptMDdQUnF3QUE",
)

print(response)
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ def __init__(self_, *args, **kwargs):
:param search: Search options.
:type search: FormulaAndFunctionEventQueryDefinitionSearch, optional
:param storage: Option for storage location. Feature in Private Beta.
:type storage: str, optional
:param env: APM environment.
:type env: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ def openapi_types(_):
"indexes": ([str],),
"name": (str,),
"search": (FormulaAndFunctionEventQueryDefinitionSearch,),
"storage": (str,),
}

attribute_map = {
Expand All @@ -42,7 +41,6 @@ def openapi_types(_):
"indexes": "indexes",
"name": "name",
"search": "search",
"storage": "storage",
}

def __init__(self_, compute, data_source, name, *args, **kwargs):
Expand All @@ -66,9 +64,6 @@ def __init__(self_, compute, data_source, name, *args, **kwargs):
:param search: Search options.
:type search: FormulaAndFunctionEventQueryDefinitionSearch, optional
:param storage: Option for storage location. Feature in Private Beta.
:type storage: str, optional
"""
super().__init__(kwargs)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ def __init__(self_, *args, **kwargs):
:param search: Search options.
:type search: FormulaAndFunctionEventQueryDefinitionSearch, optional
:param storage: Option for storage location. Feature in Private Beta.
:type storage: str, optional
:param is_normalized_cpu: Whether to normalize the CPU percentages.
:type is_normalized_cpu: bool, optional
Expand Down
5 changes: 0 additions & 5 deletions src/datadog_api_client/v1/model/list_stream_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@ def openapi_types(_):
"data_source": (ListStreamSource,),
"indexes": ([str],),
"query_string": (str,),
"storage": (str,),
}

attribute_map = {
"data_source": "data_source",
"indexes": "indexes",
"query_string": "query_string",
"storage": "storage",
}

def __init__(self_, data_source, query_string, *args, **kwargs):
Expand All @@ -40,9 +38,6 @@ def __init__(self_, data_source, query_string, *args, **kwargs):
:param query_string: Widget query.
:type query_string: str
:param storage: Option for storage location. Feature in Private Beta.
:type storage: str, optional
"""
super().__init__(kwargs)

Expand Down
42 changes: 42 additions & 0 deletions src/datadog_api_client/v2/api/security_monitoring_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,31 @@ def __init__(self, api_client=None):
api_client=api_client,
)

self._get_security_monitoring_signal_endpoint = _Endpoint(
settings={
"response_type": (SecurityMonitoringSignal,),
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
"endpoint_path": "/api/v2/security_monitoring/signals/{signal_id}",
"operation_id": "get_security_monitoring_signal",
"http_method": "GET",
"version": "v2",
"servers": None,
},
params_map={
"signal_id": {
"required": True,
"openapi_types": (str,),
"attribute": "signal_id",
"location": "path",
},
},
headers_map={
"accept": ["application/json"],
"content_type": [],
},
api_client=api_client,
)

self._list_security_filters_endpoint = _Endpoint(
settings={
"response_type": (SecurityFiltersResponse,),
Expand Down Expand Up @@ -620,6 +645,23 @@ def get_security_monitoring_rule(

return self._get_security_monitoring_rule_endpoint.call_with_http_info(**kwargs)

def get_security_monitoring_signal(
self,
signal_id: str,
) -> SecurityMonitoringSignal:
"""Get a signal's details.
Get a signal's details.
:param signal_id: The ID of the signal.
:type signal_id: str
:rtype: SecurityMonitoringSignal
"""
kwargs: Dict[str, Any] = {}
kwargs["signal_id"] = signal_id

return self._get_security_monitoring_signal_endpoint.call_with_http_info(**kwargs)

def list_security_filters(
self,
) -> SecurityFiltersResponse:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2022-09-22T14:46:14.443Z
2022-04-05T17:19:04.966Z
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
interactions:
- request:
body: '{"layout_type":"ordered","title":"Test-Create_a_new_dashboard_with_apm_issue_stream_list_stream_widget-1663857974
body: '{"layout_type":"ordered","title":"Test-Create_a_new_dashboard_with_apm_issue_stream_list_stream_widget-1649179144
with list_stream widget","widgets":[{"definition":{"requests":[{"columns":[{"field":"timestamp","width":"auto"}],"query":{"data_source":"apm_issue_stream","query_string":""},"response_format":"event_list"}],"type":"list_stream"}}]}'
headers:
accept:
Expand All @@ -11,10 +11,8 @@ interactions:
uri: https://api.datadoghq.com/api/v1/dashboard
response:
body:
string: '{"notify_list":null,"description":null,"restricted_roles":[],"author_name":null,"template_variables":null,"is_read_only":false,"id":"xhp-ymt-7mz","title":"Test-Create_a_new_dashboard_with_apm_issue_stream_list_stream_widget-1663857974
with list_stream widget","url":"/dashboard/xhp-ymt-7mz/test-createanewdashboardwithapmissuestreamliststreamwidget-1663857974-with-lists","created_at":"2022-09-22T14:46:14.861195+00:00","modified_at":"2022-09-22T14:46:14.861195+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"query":{"query_string":"","data_source":"apm_issue_stream"},"response_format":"event_list","columns":[{"field":"timestamp","width":"auto"}]}],"type":"list_stream"},"id":8154733979358236}],"layout_type":"ordered"}
'
string: '{"notify_list":null,"description":null,"restricted_roles":[],"author_name":null,"template_variables":null,"is_read_only":false,"id":"fbq-m3y-6wb","title":"Test-Create_a_new_dashboard_with_apm_issue_stream_list_stream_widget-1649179144
with list_stream widget","url":"/dashboard/fbq-m3y-6wb/test-createanewdashboardwithapmissuestreamliststreamwidget-1649179144-with-lists","created_at":"2022-04-05T17:19:05.083182+00:00","modified_at":"2022-04-05T17:19:05.083182+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"query":{"query_string":"","data_source":"apm_issue_stream"},"response_format":"event_list","columns":[{"field":"timestamp","width":"auto"}]}],"type":"list_stream"},"id":2589925713372507}],"layout_type":"ordered"}'
headers:
content-type:
- application/json
Expand All @@ -27,12 +25,10 @@ interactions:
accept:
- application/json
method: DELETE
uri: https://api.datadoghq.com/api/v1/dashboard/xhp-ymt-7mz
uri: https://api.datadoghq.com/api/v1/dashboard/fbq-m3y-6wb
response:
body:
string: '{"deleted_dashboard_id":"xhp-ymt-7mz"}
'
string: '{"deleted_dashboard_id":"fbq-m3y-6wb"}'
headers:
content-type:
- application/json
Expand Down

This file was deleted.

Loading

0 comments on commit 1ce5453

Please sign in to comment.