From e7d437757dec4859d74bbc928ec8abbb4a2f9cff Mon Sep 17 00:00:00 2001 From: digitalocean-engineering Date: Tue, 15 Oct 2024 14:57:28 -0600 Subject: [PATCH] [bot] Updated client based on openapi-ca3e2ac/clientgen (#365) Co-authored-by: API Engineering --- DO_OPENAPI_COMMIT_SHA.txt | 2 +- src/pydo/aio/operations/_operations.py | 84 +++++++++++++++++--------- src/pydo/operations/_operations.py | 84 +++++++++++++++++--------- 3 files changed, 113 insertions(+), 57 deletions(-) diff --git a/DO_OPENAPI_COMMIT_SHA.txt b/DO_OPENAPI_COMMIT_SHA.txt index a3f9702..1c38c3a 100644 --- a/DO_OPENAPI_COMMIT_SHA.txt +++ b/DO_OPENAPI_COMMIT_SHA.txt @@ -1 +1 @@ -b93070a +ca3e2ac diff --git a/src/pydo/aio/operations/_operations.py b/src/pydo/aio/operations/_operations.py index 6c325ee..df03cd9 100644 --- a/src/pydo/aio/operations/_operations.py +++ b/src/pydo/aio/operations/_operations.py @@ -1712,7 +1712,8 @@ async def list(self, *, per_page: int = 20, page: int = 1, **kwargs: Any) -> JSO "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string + that is used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource @@ -1835,7 +1836,8 @@ async def get(self, action_id: int, **kwargs: Any) -> JSON: "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the @@ -109850,7 +109852,8 @@ async def list( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string + that is used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource @@ -110074,7 +110077,8 @@ async def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the @@ -110211,7 +110215,8 @@ async def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the @@ -110347,7 +110352,8 @@ async def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the @@ -110542,7 +110548,8 @@ async def post_by_tag( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string + that is used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource @@ -110631,7 +110638,8 @@ async def post_by_tag( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string + that is used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource @@ -110720,7 +110728,8 @@ async def post_by_tag( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string + that is used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource @@ -110862,7 +110871,8 @@ async def get(self, droplet_id: int, action_id: int, **kwargs: Any) -> JSON: "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the @@ -117985,7 +117995,8 @@ async def list(self, image_id: int, **kwargs: Any) -> JSON: "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string + that is used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource @@ -118161,7 +118172,8 @@ async def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is used as a + unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the action is @@ -118251,7 +118263,8 @@ async def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is used as a + unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the action is @@ -118339,7 +118352,8 @@ async def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is used as a + unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the action is @@ -118501,7 +118515,8 @@ async def get(self, image_id: int, action_id: int, **kwargs: Any) -> JSON: "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is used as a + unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the action is @@ -141348,7 +141363,8 @@ async def list(self, reserved_ip: str, **kwargs: Any) -> JSON: "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string + that is used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource @@ -141527,7 +141543,8 @@ async def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the @@ -141621,7 +141638,8 @@ async def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the @@ -141714,7 +141732,8 @@ async def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the @@ -141881,7 +141900,8 @@ async def get(self, reserved_ip: str, action_id: int, **kwargs: Any) -> JSON: "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the @@ -145018,7 +145038,8 @@ async def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. "resource_type": "str", # Optional. The type of resource that the action is associated with. @@ -145143,7 +145164,8 @@ async def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. "resource_type": "str", # Optional. The type of resource that the action is associated with. @@ -145267,7 +145289,8 @@ async def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. "resource_type": "str", # Optional. The type of resource that the action is associated with. @@ -145437,7 +145460,8 @@ async def list( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string + that is used as a unique identifier for each region. "resource_id": 0, # Optional. "resource_type": "str", # Optional. The type of resource that the action is associated with. @@ -145667,7 +145691,8 @@ async def post_by_id( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. "resource_type": "str", # Optional. The type of resource that the action is associated with. @@ -145810,7 +145835,8 @@ async def post_by_id( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. "resource_type": "str", # Optional. The type of resource that the action is associated with. @@ -145952,7 +145978,8 @@ async def post_by_id( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. "resource_type": "str", # Optional. The type of resource that the action is associated with. @@ -146127,7 +146154,8 @@ async def get( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. "resource_type": "str", # Optional. The type of resource that the action is associated with. diff --git a/src/pydo/operations/_operations.py b/src/pydo/operations/_operations.py index 77491e5..4dc5cab 100644 --- a/src/pydo/operations/_operations.py +++ b/src/pydo/operations/_operations.py @@ -9743,7 +9743,8 @@ def list(self, *, per_page: int = 20, page: int = 1, **kwargs: Any) -> JSON: "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string + that is used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource @@ -9866,7 +9867,8 @@ def get(self, action_id: int, **kwargs: Any) -> JSON: "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the @@ -117857,7 +117859,8 @@ def list( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string + that is used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource @@ -118081,7 +118084,8 @@ def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the @@ -118218,7 +118222,8 @@ def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the @@ -118354,7 +118359,8 @@ def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the @@ -118549,7 +118555,8 @@ def post_by_tag( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string + that is used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource @@ -118638,7 +118645,8 @@ def post_by_tag( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string + that is used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource @@ -118727,7 +118735,8 @@ def post_by_tag( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string + that is used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource @@ -118869,7 +118878,8 @@ def get(self, droplet_id: int, action_id: int, **kwargs: Any) -> JSON: "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the @@ -125986,7 +125996,8 @@ def list(self, image_id: int, **kwargs: Any) -> JSON: "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string + that is used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource @@ -126162,7 +126173,8 @@ def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is used as a + unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the action is @@ -126252,7 +126264,8 @@ def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is used as a + unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the action is @@ -126340,7 +126353,8 @@ def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is used as a + unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the action is @@ -126502,7 +126516,8 @@ def get(self, image_id: int, action_id: int, **kwargs: Any) -> JSON: "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is used as a + unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the action is @@ -149341,7 +149356,8 @@ def list(self, reserved_ip: str, **kwargs: Any) -> JSON: "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string + that is used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource @@ -149520,7 +149536,8 @@ def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the @@ -149614,7 +149631,8 @@ def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the @@ -149707,7 +149725,8 @@ def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the @@ -149874,7 +149893,8 @@ def get(self, reserved_ip: str, action_id: int, **kwargs: Any) -> JSON: "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. A unique identifier for the resource that the action is associated with. "resource_type": "str", # Optional. The type of resource that the @@ -153011,7 +153031,8 @@ def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. "resource_type": "str", # Optional. The type of resource that the action is associated with. @@ -153136,7 +153157,8 @@ def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. "resource_type": "str", # Optional. The type of resource that the action is associated with. @@ -153260,7 +153282,8 @@ def post( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. "resource_type": "str", # Optional. The type of resource that the action is associated with. @@ -153430,7 +153453,8 @@ def list( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string + that is used as a unique identifier for each region. "resource_id": 0, # Optional. "resource_type": "str", # Optional. The type of resource that the action is associated with. @@ -153660,7 +153684,8 @@ def post_by_id( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. "resource_type": "str", # Optional. The type of resource that the action is associated with. @@ -153803,7 +153828,8 @@ def post_by_id( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. "resource_type": "str", # Optional. The type of resource that the action is associated with. @@ -153945,7 +153971,8 @@ def post_by_id( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. "resource_type": "str", # Optional. The type of resource that the action is associated with. @@ -154120,7 +154147,8 @@ def get( "slug": "str" # A human-readable string that is used as a unique identifier for each region. Required. }, - "region_slug": {}, # Optional. Any object. + "region_slug": "str", # Optional. A human-readable string that is + used as a unique identifier for each region. "resource_id": 0, # Optional. "resource_type": "str", # Optional. The type of resource that the action is associated with.