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 query field as optional when searching logs #158

Merged
merged 1 commit into from
Nov 18, 2020
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.3.0",
"regenerated": "2020-11-17 18:41:02.930082",
"spec_repo_commit": "bea8b79"
"regenerated": "2020-11-18 15:48:57.027817",
"spec_repo_commit": "1014300"
},
"v2": {
"apigentools_version": "1.3.0",
"regenerated": "2020-11-17 18:41:14.208355",
"spec_repo_commit": "bea8b79"
"regenerated": "2020-11-18 15:49:07.165244",
"spec_repo_commit": "1014300"
}
}
}
2 changes: 1 addition & 1 deletion docs/v1/LogsListRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Object to send with the request to retrieve a list of logs from your Organizatio
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**query** | **str** | The search query - following the log search syntax. |
**time** | [**LogsListRequestTime**](LogsListRequestTime.md) | |
**index** | **str** | The log index on which the request is performed. For multi-index organizations, the default is all live indexes. Historical indexes of rehydrated logs must be specified. | [optional]
**limit** | **int** | Number of logs return in the response. | [optional]
**query** | **str** | The search query - following the log search syntax. | [optional]
**sort** | [**LogsSort**](LogsSort.md) | | [optional]
**start_at** | **str** | Hash identifier of the first log to return in the list, available in a log `id` attribute. This parameter is used for the pagination feature. **Note**: This parameter is ignored if the corresponding log is out of the scope of the specified time window. | [optional]

Expand Down
9 changes: 4 additions & 5 deletions src/datadog_api_client/v1/model/logs_list_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ def openapi_types():
"""
lazy_import()
return {
'query': (str,), # noqa: E501
'time': (LogsListRequestTime,), # noqa: E501
'index': (str,), # noqa: E501
'limit': (int,), # noqa: E501
'query': (str,), # noqa: E501
'sort': (LogsSort,), # noqa: E501
'start_at': (str,), # noqa: E501
}
Expand All @@ -95,10 +95,10 @@ def discriminator():


attribute_map = {
'query': 'query', # noqa: E501
'time': 'time', # noqa: E501
'index': 'index', # noqa: E501
'limit': 'limit', # noqa: E501
'query': 'query', # noqa: E501
'sort': 'sort', # noqa: E501
'start_at': 'startAt', # noqa: E501
}
Expand All @@ -115,11 +115,10 @@ def discriminator():
])

@convert_js_args_to_python_args
def __init__(self, query, time, *args, **kwargs): # noqa: E501
def __init__(self, time, *args, **kwargs): # noqa: E501
"""LogsListRequest - a model defined in OpenAPI

Args:
query (str): The search query - following the log search syntax.
time (LogsListRequestTime):

Keyword Args:
Expand Down Expand Up @@ -155,6 +154,7 @@ def __init__(self, query, time, *args, **kwargs): # noqa: E501
_visited_composed_classes = (Animal,)
index (str): The log index on which the request is performed. For multi-index organizations, the default is all live indexes. Historical indexes of rehydrated logs must be specified.. [optional] # noqa: E501
limit (int): Number of logs return in the response.. [optional] # noqa: E501
query (str): The search query - following the log search syntax.. [optional] # noqa: E501
sort (LogsSort): [optional] # noqa: E501
start_at (str): Hash identifier of the first log to return in the list, available in a log `id` attribute. This parameter is used for the pagination feature. **Note**: This parameter is ignored if the corresponding log is out of the scope of the specified time window.. [optional] # noqa: E501
"""
Expand Down Expand Up @@ -182,7 +182,6 @@ def __init__(self, query, time, *args, **kwargs): # noqa: E501
self._configuration = _configuration
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)

self.query = query
self.time = time
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
Expand Down
1 change: 0 additions & 1 deletion src/datadog_api_client/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3009,7 +3009,6 @@ components:
- to
type: object
required:
- query
- time
type: object
LogsListResponse:
Expand Down