@@ -46,7 +46,7 @@ def get_region(self, id: str) -> Region:
4646 """
4747 Get a region.
4848
49- :param id: The ID of the region. (required)
49+ :param id: The ID of the region.
5050
5151 :return: The Region object.
5252 """
@@ -56,12 +56,12 @@ def get_region(self, id: str) -> Region:
5656
5757 return Region (id = region .id , description = region .description )
5858
59- def create_region (self , id : str , description : str = "" ) -> Region :
59+ def create_region (self , id : str , description : str | None = None ) -> Region :
6060 """
6161 Create a new region.
6262
63- :param id: The ID of the region. (required)
64- :param description: The description of the region. (optional)
63+ :param id: The ID of the region.
64+ :param description: The description of the region.
6565
6666 :return: The created Region object.
6767 """
@@ -75,7 +75,7 @@ def delete_region(self, id: str) -> None:
7575 """
7676 Delete a region.
7777
78- :param id: The ID of the region. (required)
78+ :param id: The ID of the region.
7979
8080 :return: None
8181 """
@@ -86,12 +86,12 @@ def delete_region(self, id: str) -> None:
8686
8787 return None
8888
89- def update_region (self , id : str , description : str = "" ) -> Region :
89+ def update_region (self , id : str , description : str | None = None ) -> Region :
9090 """
9191 Update a region.
9292
93- :param id: The ID of the region. (required)
94- :param description: The string description of the region. (optional)
93+ :param id: The ID of the region.
94+ :param description: The string description of the region.
9595
9696 :return: The updated Region object.
9797 """
@@ -131,7 +131,7 @@ def get_domain(self, name: str) -> Domain:
131131 """
132132 Get a domain.
133133
134- :param name: The name of the domain. (required)
134+ :param name: The name of the domain.
135135
136136 :return: The Domain object.
137137 """
@@ -149,15 +149,15 @@ def get_domain(self, name: str) -> Domain:
149149 def create_domain (
150150 self ,
151151 name : str ,
152- description : str = "" ,
153- is_enabled : bool = False ,
152+ description : str | None = None ,
153+ is_enabled : bool | None = False ,
154154 ) -> Domain :
155155 """
156156 Create a new domain.
157157
158- :param name: The name of the domain. (required)
159- :param description: The description of the domain. (optional)
160- :param is_enabled: Whether the domain is enabled. (optional)
158+ :param name: The name of the domain.
159+ :param description: The description of the domain.
160+ :param is_enabled: Whether the domain is enabled.
161161 """
162162 conn = get_openstack_conn ()
163163
@@ -178,7 +178,7 @@ def delete_domain(self, name: str) -> None:
178178 """
179179 Delete a domain.
180180
181- :param name: The name of the domain. (required)
181+ :param name: The name of the domain.
182182 """
183183 conn = get_openstack_conn ()
184184
@@ -197,10 +197,10 @@ def update_domain(
197197 """
198198 Update a domain.
199199
200- :param id: The ID of the domain. (required)
201- :param name: The name of the domain. (optional)
202- :param description: The description of the domain. (optional)
203- :param is_enabled: Whether the domain is enabled. (optional)
200+ :param id: The ID of the domain.
201+ :param name: The name of the domain.
202+ :param description: The description of the domain.
203+ :param is_enabled: Whether the domain is enabled.
204204 """
205205 conn = get_openstack_conn ()
206206
0 commit comments