diff --git a/.apigentools-info b/.apigentools-info index 24a2a79104..2f3fea635a 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.4.1.dev2", - "regenerated": "2021-02-04 09:38:20.417386", - "spec_repo_commit": "0e53363" + "regenerated": "2021-02-05 08:16:47.201048", + "spec_repo_commit": "7973735" }, "v2": { "apigentools_version": "1.4.1.dev2", - "regenerated": "2021-02-04 09:38:57.988050", - "spec_repo_commit": "0e53363" + "regenerated": "2021-02-05 08:17:25.840340", + "spec_repo_commit": "7973735" } } } \ No newline at end of file diff --git a/docs/v1/FormulaAndFunctionEventsSortType.md b/docs/v1/FormulaAndFunctionEventsSortType.md deleted file mode 100644 index cb2c7c160e..0000000000 --- a/docs/v1/FormulaAndFunctionEventsSortType.md +++ /dev/null @@ -1,11 +0,0 @@ -# FormulaAndFunctionEventsSortType - -Method for sorting event platform results. -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | Method for sorting event platform results. | must be one of ["alphabetical", "measure", ] - -[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) - - diff --git a/docs/v1/README.md b/docs/v1/README.md index 387624fb16..5e6ab23244 100644 --- a/docs/v1/README.md +++ b/docs/v1/README.md @@ -348,7 +348,6 @@ Class | Method | HTTP request | Description - [EventTimelineWidgetDefinitionType](EventTimelineWidgetDefinitionType.md) - [FormulaAndFunctionEventAggregation](FormulaAndFunctionEventAggregation.md) - [FormulaAndFunctionEventsDataSource](FormulaAndFunctionEventsDataSource.md) - - [FormulaAndFunctionEventsSortType](FormulaAndFunctionEventsSortType.md) - [FormulaAndFunctionMetricAggregation](FormulaAndFunctionMetricAggregation.md) - [FormulaAndFunctionMetricDataSource](FormulaAndFunctionMetricDataSource.md) - [FormulaAndFunctionProcessQueryDataSource](FormulaAndFunctionProcessQueryDataSource.md) diff --git a/docs/v1/TimeSeriesFormulaAndFunctionEventQueryDefinitionSort.md b/docs/v1/TimeSeriesFormulaAndFunctionEventQueryDefinitionSort.md index 96fadf4c7b..6fbff43071 100644 --- a/docs/v1/TimeSeriesFormulaAndFunctionEventQueryDefinitionSort.md +++ b/docs/v1/TimeSeriesFormulaAndFunctionEventQueryDefinitionSort.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **aggregation** | [**FormulaAndFunctionEventAggregation**](FormulaAndFunctionEventAggregation.md) | | **metric** | **str** | Metric used for sorting group by results. | [optional] **order** | [**QuerySortOrder**](QuerySortOrder.md) | | [optional] -**type** | [**FormulaAndFunctionEventsSortType**](FormulaAndFunctionEventsSortType.md) | | [optional] [[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md) diff --git a/src/datadog_api_client/v1/model/formula_and_function_events_sort_type.py b/src/datadog_api_client/v1/model/formula_and_function_events_sort_type.py deleted file mode 100644 index c9e5a5f5ae..0000000000 --- a/src/datadog_api_client/v1/model/formula_and_function_events_sort_type.py +++ /dev/null @@ -1,181 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. - - -import re # noqa: F401 -import sys # noqa: F401 - -import nulltype # noqa: F401 - -from datadog_api_client.v1.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, -) - - -class FormulaAndFunctionEventsSortType(ModelSimple): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ("value",): { - "ALPHABETICAL": "alphabetical", - "MEASURE": "measure", - }, - } - - validations = {} - - additional_properties_type = None - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - return { - "value": (str,), - } - - @cached_property - def discriminator(): - return None - - attribute_map = {} - - _composed_schemas = None - - required_properties = set( - [ - "_data_store", - "_check_type", - "_spec_property_naming", - "_path_to_item", - "_configuration", - "_visited_composed_classes", - ] - ) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): - """FormulaAndFunctionEventsSortType - a model defined in OpenAPI - - Note that value can be passed either in args or in kwargs, but not in both. - - Args: - args[0] (str): Method for sorting event platform results.., must be one of ["alphabetical", "measure", ] # noqa: E501 - - Keyword Args: - value (str): Method for sorting event platform results.., must be one of ["alphabetical", "measure", ] # noqa: E501 - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - """ - - if "value" in kwargs: - value = kwargs.pop("value") - elif args: - args = list(args) - value = args.pop(0) - else: - raise ApiTypeError( - "value is required, but not passed in args or kwargs and doesn't have default", - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) - _path_to_item = kwargs.pop("_path_to_item", ()) - _configuration = kwargs.pop("_configuration", None) - _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value - if kwargs: - raise ApiTypeError( - "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." - % ( - kwargs, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) diff --git a/src/datadog_api_client/v1/model/time_series_formula_and_function_event_query_definition_sort.py b/src/datadog_api_client/v1/model/time_series_formula_and_function_event_query_definition_sort.py index 6994aae0e7..7849e23c68 100644 --- a/src/datadog_api_client/v1/model/time_series_formula_and_function_event_query_definition_sort.py +++ b/src/datadog_api_client/v1/model/time_series_formula_and_function_event_query_definition_sort.py @@ -26,11 +26,9 @@ def lazy_import(): from datadog_api_client.v1.model.formula_and_function_event_aggregation import FormulaAndFunctionEventAggregation - from datadog_api_client.v1.model.formula_and_function_events_sort_type import FormulaAndFunctionEventsSortType from datadog_api_client.v1.model.query_sort_order import QuerySortOrder globals()["FormulaAndFunctionEventAggregation"] = FormulaAndFunctionEventAggregation - globals()["FormulaAndFunctionEventsSortType"] = FormulaAndFunctionEventsSortType globals()["QuerySortOrder"] = QuerySortOrder @@ -81,7 +79,6 @@ def openapi_types(): "aggregation": (FormulaAndFunctionEventAggregation,), # noqa: E501 "metric": (str,), # noqa: E501 "order": (QuerySortOrder,), # noqa: E501 - "type": (FormulaAndFunctionEventsSortType,), # noqa: E501 } @cached_property @@ -92,7 +89,6 @@ def discriminator(): "aggregation": "aggregation", # noqa: E501 "metric": "metric", # noqa: E501 "order": "order", # noqa: E501 - "type": "type", # noqa: E501 } _composed_schemas = {} @@ -148,7 +144,6 @@ def __init__(self, aggregation, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) metric (str): Metric used for sorting group by results.. [optional] # noqa: E501 order (QuerySortOrder): [optional] # noqa: E501 - type (FormulaAndFunctionEventsSortType): [optional] # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) diff --git a/src/datadog_api_client/v1/models/__init__.py b/src/datadog_api_client/v1/models/__init__.py index a4717579f3..a8c856bff9 100644 --- a/src/datadog_api_client/v1/models/__init__.py +++ b/src/datadog_api_client/v1/models/__init__.py @@ -83,7 +83,6 @@ from datadog_api_client.v1.model.event_timeline_widget_definition_type import EventTimelineWidgetDefinitionType from datadog_api_client.v1.model.formula_and_function_event_aggregation import FormulaAndFunctionEventAggregation from datadog_api_client.v1.model.formula_and_function_events_data_source import FormulaAndFunctionEventsDataSource -from datadog_api_client.v1.model.formula_and_function_events_sort_type import FormulaAndFunctionEventsSortType from datadog_api_client.v1.model.formula_and_function_metric_aggregation import FormulaAndFunctionMetricAggregation from datadog_api_client.v1.model.formula_and_function_metric_data_source import FormulaAndFunctionMetricDataSource from datadog_api_client.v1.model.formula_and_function_process_query_data_source import ( diff --git a/src/datadog_api_client/v1/openapi.yaml b/src/datadog_api_client/v1/openapi.yaml index 0e7dbeb8f4..6d93d2f6fb 100644 --- a/src/datadog_api_client/v1/openapi.yaml +++ b/src/datadog_api_client/v1/openapi.yaml @@ -1589,15 +1589,6 @@ components: - RUM - SECURITY_SIGNALS - PROFILES - FormulaAndFunctionEventsSortType: - description: Method for sorting event platform results. - enum: - - alphabetical - - measure - type: string - x-enum-varnames: - - ALPHABETICAL - - MEASURE FormulaAndFunctionMetricAggregation: description: The aggregation methods available for metrics queries. enum: @@ -7666,8 +7657,6 @@ components: type: string order: $ref: '#/components/schemas/QuerySortOrder' - type: - $ref: '#/components/schemas/FormulaAndFunctionEventsSortType' required: - aggregation type: object diff --git a/tests/v1/test_formula_and_function_events_sort_type.py b/tests/v1/test_formula_and_function_events_sort_type.py deleted file mode 100644 index 0790d01db1..0000000000 --- a/tests/v1/test_formula_and_function_events_sort_type.py +++ /dev/null @@ -1,30 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. - - -import sys -import unittest - -import datadog_api_client.v1 -from datadog_api_client.v1.model.formula_and_function_events_sort_type import FormulaAndFunctionEventsSortType - - -class TestFormulaAndFunctionEventsSortType(unittest.TestCase): - """FormulaAndFunctionEventsSortType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFormulaAndFunctionEventsSortType(self): - """Test FormulaAndFunctionEventsSortType""" - # FIXME: construct object with mandatory attributes with example values - # model = FormulaAndFunctionEventsSortType() # noqa: E501 - pass - - -if __name__ == "__main__": - unittest.main() diff --git a/tests/v1/test_time_series_formula_and_function_event_query_definition_sort.py b/tests/v1/test_time_series_formula_and_function_event_query_definition_sort.py index 51d4c96ca6..e8fee5cb2c 100644 --- a/tests/v1/test_time_series_formula_and_function_event_query_definition_sort.py +++ b/tests/v1/test_time_series_formula_and_function_event_query_definition_sort.py @@ -8,11 +8,9 @@ import datadog_api_client.v1 from datadog_api_client.v1.model.formula_and_function_event_aggregation import FormulaAndFunctionEventAggregation -from datadog_api_client.v1.model.formula_and_function_events_sort_type import FormulaAndFunctionEventsSortType from datadog_api_client.v1.model.query_sort_order import QuerySortOrder globals()["FormulaAndFunctionEventAggregation"] = FormulaAndFunctionEventAggregation -globals()["FormulaAndFunctionEventsSortType"] = FormulaAndFunctionEventsSortType globals()["QuerySortOrder"] = QuerySortOrder from datadog_api_client.v1.model.time_series_formula_and_function_event_query_definition_sort import ( TimeSeriesFormulaAndFunctionEventQueryDefinitionSort,