Skip to content

Commit

Permalink
Refactor data serialization (#2211)
Browse files Browse the repository at this point in the history
* Refactor data serialization

Remove classmethod sanitize_for_serialization, and fix
model_to_dict to use the same logic so that it handles list of list
properly for example.

* pre-commit fixes

* pre-commit fixes

---------

Co-authored-by: ci.datadog-api-spec <[email protected]>
Co-authored-by: amaskara-dd <[email protected]> 5afd0ab
  • Loading branch information
amaskara-dd and ci.datadog-api-spec committed Oct 22, 2024
1 parent 00a910e commit bc17c1f
Show file tree
Hide file tree
Showing 20 changed files with 17,031 additions and 43,659 deletions.
31 changes: 19 additions & 12 deletions _sources/datadog_api_client.rst.txt
Original file line number Diff line number Diff line change
@@ -1,48 +1,55 @@
datadog\_api\_client
====================
datadog\_api\_client package
============================

Subpackages
-----------

.. toctree::
:maxdepth: 4

datadog_api_client.v1
datadog_api_client.v2

Submodules
----------

api\_client
-----------
datadog\_api\_client.api\_client module
---------------------------------------

.. automodule:: datadog_api_client.api_client
:members:
:show-inheritance:

configuration
-------------
datadog\_api\_client.configuration module
-----------------------------------------

.. automodule:: datadog_api_client.configuration
:members:
:show-inheritance:

exceptions
----------
datadog\_api\_client.exceptions module
--------------------------------------

.. automodule:: datadog_api_client.exceptions
:members:
:show-inheritance:

model\_utils
------------
datadog\_api\_client.model\_utils module
----------------------------------------

.. automodule:: datadog_api_client.model_utils
:members:
:show-inheritance:

rest
----
datadog\_api\_client.rest module
--------------------------------

.. automodule:: datadog_api_client.rest
:members:
:show-inheritance:

Module contents
---------------

.. automodule:: datadog_api_client
:members:
Expand Down
133 changes: 69 additions & 64 deletions _sources/datadog_api_client.v1.api.rst.txt
Original file line number Diff line number Diff line change
@@ -1,223 +1,228 @@
datadog\_api\_client.v1.api
===========================
datadog\_api\_client.v1.api package
===================================

authentication\_api
-------------------
Submodules
----------

datadog\_api\_client.v1.api.authentication\_api module
------------------------------------------------------

.. automodule:: datadog_api_client.v1.api.authentication_api
:members:
:show-inheritance:

aws\_integration\_api
---------------------
datadog\_api\_client.v1.api.aws\_integration\_api module
--------------------------------------------------------

.. automodule:: datadog_api_client.v1.api.aws_integration_api
:members:
:show-inheritance:

aws\_logs\_integration\_api
---------------------------
datadog\_api\_client.v1.api.aws\_logs\_integration\_api module
--------------------------------------------------------------

.. automodule:: datadog_api_client.v1.api.aws_logs_integration_api
:members:
:show-inheritance:

azure\_integration\_api
-----------------------
datadog\_api\_client.v1.api.azure\_integration\_api module
----------------------------------------------------------

.. automodule:: datadog_api_client.v1.api.azure_integration_api
:members:
:show-inheritance:

dashboard\_lists\_api
---------------------
datadog\_api\_client.v1.api.dashboard\_lists\_api module
--------------------------------------------------------

.. automodule:: datadog_api_client.v1.api.dashboard_lists_api
:members:
:show-inheritance:

dashboards\_api
---------------
datadog\_api\_client.v1.api.dashboards\_api module
--------------------------------------------------

.. automodule:: datadog_api_client.v1.api.dashboards_api
:members:
:show-inheritance:

downtimes\_api
--------------
datadog\_api\_client.v1.api.downtimes\_api module
-------------------------------------------------

.. automodule:: datadog_api_client.v1.api.downtimes_api
:members:
:show-inheritance:

events\_api
-----------
datadog\_api\_client.v1.api.events\_api module
----------------------------------------------

.. automodule:: datadog_api_client.v1.api.events_api
:members:
:show-inheritance:

gcp\_integration\_api
---------------------
datadog\_api\_client.v1.api.gcp\_integration\_api module
--------------------------------------------------------

.. automodule:: datadog_api_client.v1.api.gcp_integration_api
:members:
:show-inheritance:

hosts\_api
----------
datadog\_api\_client.v1.api.hosts\_api module
---------------------------------------------

.. automodule:: datadog_api_client.v1.api.hosts_api
:members:
:show-inheritance:

ip\_ranges\_api
---------------
datadog\_api\_client.v1.api.ip\_ranges\_api module
--------------------------------------------------

.. automodule:: datadog_api_client.v1.api.ip_ranges_api
:members:
:show-inheritance:

key\_management\_api
--------------------
datadog\_api\_client.v1.api.key\_management\_api module
-------------------------------------------------------

.. automodule:: datadog_api_client.v1.api.key_management_api
:members:
:show-inheritance:

logs\_api
---------
datadog\_api\_client.v1.api.logs\_api module
--------------------------------------------

.. automodule:: datadog_api_client.v1.api.logs_api
:members:
:show-inheritance:

logs\_indexes\_api
------------------
datadog\_api\_client.v1.api.logs\_indexes\_api module
-----------------------------------------------------

.. automodule:: datadog_api_client.v1.api.logs_indexes_api
:members:
:show-inheritance:

logs\_pipelines\_api
--------------------
datadog\_api\_client.v1.api.logs\_pipelines\_api module
-------------------------------------------------------

.. automodule:: datadog_api_client.v1.api.logs_pipelines_api
:members:
:show-inheritance:

metrics\_api
------------
datadog\_api\_client.v1.api.metrics\_api module
-----------------------------------------------

.. automodule:: datadog_api_client.v1.api.metrics_api
:members:
:show-inheritance:

monitors\_api
-------------
datadog\_api\_client.v1.api.monitors\_api module
------------------------------------------------

.. automodule:: datadog_api_client.v1.api.monitors_api
:members:
:show-inheritance:

notebooks\_api
--------------
datadog\_api\_client.v1.api.notebooks\_api module
-------------------------------------------------

.. automodule:: datadog_api_client.v1.api.notebooks_api
:members:
:show-inheritance:

organizations\_api
------------------
datadog\_api\_client.v1.api.organizations\_api module
-----------------------------------------------------

.. automodule:: datadog_api_client.v1.api.organizations_api
:members:
:show-inheritance:

pager\_duty\_integration\_api
-----------------------------
datadog\_api\_client.v1.api.pager\_duty\_integration\_api module
----------------------------------------------------------------

.. automodule:: datadog_api_client.v1.api.pager_duty_integration_api
:members:
:show-inheritance:

security\_monitoring\_api
-------------------------
datadog\_api\_client.v1.api.security\_monitoring\_api module
------------------------------------------------------------

.. automodule:: datadog_api_client.v1.api.security_monitoring_api
:members:
:show-inheritance:

service\_checks\_api
--------------------
datadog\_api\_client.v1.api.service\_checks\_api module
-------------------------------------------------------

.. automodule:: datadog_api_client.v1.api.service_checks_api
:members:
:show-inheritance:

service\_level\_objective\_corrections\_api
-------------------------------------------
datadog\_api\_client.v1.api.service\_level\_objective\_corrections\_api module
------------------------------------------------------------------------------

.. automodule:: datadog_api_client.v1.api.service_level_objective_corrections_api
:members:
:show-inheritance:

service\_level\_objectives\_api
-------------------------------
datadog\_api\_client.v1.api.service\_level\_objectives\_api module
------------------------------------------------------------------

.. automodule:: datadog_api_client.v1.api.service_level_objectives_api
:members:
:show-inheritance:

slack\_integration\_api
-----------------------
datadog\_api\_client.v1.api.slack\_integration\_api module
----------------------------------------------------------

.. automodule:: datadog_api_client.v1.api.slack_integration_api
:members:
:show-inheritance:

snapshots\_api
--------------
datadog\_api\_client.v1.api.snapshots\_api module
-------------------------------------------------

.. automodule:: datadog_api_client.v1.api.snapshots_api
:members:
:show-inheritance:

synthetics\_api
---------------
datadog\_api\_client.v1.api.synthetics\_api module
--------------------------------------------------

.. automodule:: datadog_api_client.v1.api.synthetics_api
:members:
:show-inheritance:

tags\_api
---------
datadog\_api\_client.v1.api.tags\_api module
--------------------------------------------

.. automodule:: datadog_api_client.v1.api.tags_api
:members:
:show-inheritance:

usage\_metering\_api
--------------------
datadog\_api\_client.v1.api.usage\_metering\_api module
-------------------------------------------------------

.. automodule:: datadog_api_client.v1.api.usage_metering_api
:members:
:show-inheritance:

users\_api
----------
datadog\_api\_client.v1.api.users\_api module
---------------------------------------------

.. automodule:: datadog_api_client.v1.api.users_api
:members:
:show-inheritance:

webhooks\_integration\_api
--------------------------
datadog\_api\_client.v1.api.webhooks\_integration\_api module
-------------------------------------------------------------

.. automodule:: datadog_api_client.v1.api.webhooks_integration_api
:members:
:show-inheritance:

Module contents
---------------

.. automodule:: datadog_api_client.v1.api
:members:
Expand Down
Loading

0 comments on commit bc17c1f

Please sign in to comment.