Skip to content

Commit

Permalink
Remove models for arrays (#1431)
Browse files Browse the repository at this point in the history
* Remove models for arrays

Array introduces a level of indirection which doesn't bring much value.
We're losing some validation but we gain consistency which I think is
worth it.

See #1377

* Fix mypy almost

* Progress

* Green now

* Fix examples

* Cleanup

* Another cleanup

* Fix unused models

* Unless ibits

* Handle Point

* Fix subitem handling

* Fix distribution_point_item

* pre-commit fixes

* Cleanup

* Last fix for unparsed list?

* pre-commit fixes

---------

Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com> 74fa0a7
  • Loading branch information
therve committed May 9, 2023
1 parent d92dc2d commit bf7cfec
Show file tree
Hide file tree
Showing 13 changed files with 103 additions and 2,898 deletions.
118 changes: 3 additions & 115 deletions _sources/datadog_api_client.v1.model.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ add\_signal\_to\_incident\_request
:members:
:show-inheritance:

agent\_check
------------

.. automodule:: datadog_api_client.v1.model.agent_check
:members:
:show-inheritance:

alert\_graph\_widget\_definition
--------------------------------

Expand Down Expand Up @@ -246,13 +239,6 @@ azure\_account
:members:
:show-inheritance:

azure\_account\_list\_response
------------------------------

.. automodule:: datadog_api_client.v1.model.azure_account_list_response
:members:
:show-inheritance:

cancel\_downtimes\_by\_scope\_request
-------------------------------------

Expand Down Expand Up @@ -358,13 +344,6 @@ dashboard\_bulk\_action\_data
:members:
:show-inheritance:

dashboard\_bulk\_action\_data\_list
-----------------------------------

.. automodule:: datadog_api_client.v1.model.dashboard_bulk_action_data_list
:members:
:show-inheritance:

dashboard\_bulk\_delete\_request
--------------------------------

Expand Down Expand Up @@ -512,20 +491,6 @@ deleted\_monitor
:members:
:show-inheritance:

distribution\_point
-------------------

.. automodule:: datadog_api_client.v1.model.distribution_point
:members:
:show-inheritance:

distribution\_point\_data
-------------------------

.. automodule:: datadog_api_client.v1.model.distribution_point_data
:members:
:show-inheritance:

distribution\_points\_content\_encoding
---------------------------------------

Expand Down Expand Up @@ -918,13 +883,6 @@ gcp\_account
:members:
:show-inheritance:

gcp\_account\_list\_response
----------------------------

.. automodule:: datadog_api_client.v1.model.gcp_account_list_response
:members:
:show-inheritance:

geomap\_widget\_definition
--------------------------

Expand Down Expand Up @@ -1135,13 +1093,6 @@ hourly\_usage\_attribution\_usage\_type
:members:
:show-inheritance:

http\_log
---------

.. automodule:: datadog_api_client.v1.model.http_log
:members:
:show-inheritance:

http\_log\_error
----------------

Expand Down Expand Up @@ -1653,13 +1604,6 @@ logs\_pipeline
:members:
:show-inheritance:

logs\_pipeline\_list
--------------------

.. automodule:: datadog_api_client.v1.model.logs_pipeline_list
:members:
:show-inheritance:

logs\_pipeline\_processor
-------------------------

Expand Down Expand Up @@ -2003,10 +1947,10 @@ monitor\_renotify\_status\_type
:members:
:show-inheritance:

monitor\_search\_count
----------------------
monitor\_search\_count\_item
----------------------------

.. automodule:: datadog_api_client.v1.model.monitor_search_count
.. automodule:: datadog_api_client.v1.model.monitor_search_count_item
:members:
:show-inheritance:

Expand Down Expand Up @@ -2451,27 +2395,13 @@ notify\_end\_state
:members:
:show-inheritance:

notify\_end\_states
-------------------

.. automodule:: datadog_api_client.v1.model.notify_end_states
:members:
:show-inheritance:

notify\_end\_type
-----------------

.. automodule:: datadog_api_client.v1.model.notify_end_type
:members:
:show-inheritance:

notify\_end\_types
------------------

.. automodule:: datadog_api_client.v1.model.notify_end_types
:members:
:show-inheritance:

on\_missing\_data\_option
-------------------------

Expand Down Expand Up @@ -2598,13 +2528,6 @@ pagination
:members:
:show-inheritance:

point
-----

.. automodule:: datadog_api_client.v1.model.point
:members:
:show-inheritance:

process\_query\_definition
--------------------------

Expand Down Expand Up @@ -2864,13 +2787,6 @@ service\_check\_status
:members:
:show-inheritance:

service\_checks
---------------

.. automodule:: datadog_api_client.v1.model.service_checks
:members:
:show-inheritance:

service\_level\_objective
-------------------------

Expand Down Expand Up @@ -2948,13 +2864,6 @@ shared\_dashboard\_invites\_data
:members:
:show-inheritance:

shared\_dashboard\_invites\_data\_list
--------------------------------------

.. automodule:: datadog_api_client.v1.model.shared_dashboard_invites_data_list
:members:
:show-inheritance:

shared\_dashboard\_invites\_data\_object
----------------------------------------

Expand Down Expand Up @@ -3039,13 +2948,6 @@ slack\_integration\_channel\_display
:members:
:show-inheritance:

slack\_integration\_channels
----------------------------

.. automodule:: datadog_api_client.v1.model.slack_integration_channels
:members:
:show-inheritance:

slo\_bulk\_delete
-----------------

Expand Down Expand Up @@ -4117,13 +4019,6 @@ synthetics\_private\_location\_secrets\_config\_decryption
:members:
:show-inheritance:

synthetics\_restricted\_roles
-----------------------------

.. automodule:: datadog_api_client.v1.model.synthetics_restricted_roles
:members:
:show-inheritance:

synthetics\_ssl\_certificate
----------------------------

Expand Down Expand Up @@ -4621,13 +4516,6 @@ usage\_analyzed\_logs\_response
:members:
:show-inheritance:

usage\_attribution\_aggregates
------------------------------

.. automodule:: datadog_api_client.v1.model.usage_attribution_aggregates
:members:
:show-inheritance:

usage\_attribution\_aggregates\_body
------------------------------------

Expand Down
Loading

0 comments on commit bf7cfec

Please sign in to comment.