Skip to content

Commit 60e5080

Browse files
Generate mongodbflex
1 parent b424441 commit 60e5080

File tree

1 file changed

+0
-235
lines changed

1 file changed

+0
-235
lines changed

services/mongodbflex/src/stackit/mongodbflex/api/default_api.py

-235
Original file line numberDiff line numberDiff line change
@@ -1393,241 +1393,6 @@ def _delete_user_serialize(
13931393
_request_auth=_request_auth,
13941394
)
13951395

1396-
@validate_call
1397-
def disable_service(
1398-
self,
1399-
project_id: Annotated[StrictStr, Field(description="project id")],
1400-
_request_timeout: Union[
1401-
None,
1402-
Annotated[StrictFloat, Field(gt=0)],
1403-
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1404-
] = None,
1405-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
1406-
_content_type: Optional[StrictStr] = None,
1407-
_headers: Optional[Dict[StrictStr, Any]] = None,
1408-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1409-
) -> None:
1410-
"""Delete project
1411-
1412-
removes all instances inside project
1413-
1414-
:param project_id: project id (required)
1415-
:type project_id: str
1416-
:param _request_timeout: timeout setting for this request. If one
1417-
number provided, it will be total request
1418-
timeout. It can also be a pair (tuple) of
1419-
(connection, read) timeouts.
1420-
:type _request_timeout: int, tuple(int, int), optional
1421-
:param _request_auth: set to override the auth_settings for an a single
1422-
request; this effectively ignores the
1423-
authentication in the spec for a single request.
1424-
:type _request_auth: dict, optional
1425-
:param _content_type: force content-type for the request.
1426-
:type _content_type: str, Optional
1427-
:param _headers: set to override the headers for a single
1428-
request; this effectively ignores the headers
1429-
in the spec for a single request.
1430-
:type _headers: dict, optional
1431-
:param _host_index: set to override the host_index for a single
1432-
request; this effectively ignores the host_index
1433-
in the spec for a single request.
1434-
:type _host_index: int, optional
1435-
:return: Returns the result object.
1436-
""" # noqa: E501 docstring might be too long
1437-
1438-
_param = self._disable_service_serialize(
1439-
project_id=project_id,
1440-
_request_auth=_request_auth,
1441-
_content_type=_content_type,
1442-
_headers=_headers,
1443-
_host_index=_host_index,
1444-
)
1445-
1446-
_response_types_map: Dict[str, Optional[str]] = {
1447-
"200": None,
1448-
"202": None,
1449-
"409": "Error",
1450-
"500": "Error",
1451-
}
1452-
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1453-
response_data.read()
1454-
return self.api_client.response_deserialize(
1455-
response_data=response_data,
1456-
response_types_map=_response_types_map,
1457-
).data
1458-
1459-
@validate_call
1460-
def disable_service_with_http_info(
1461-
self,
1462-
project_id: Annotated[StrictStr, Field(description="project id")],
1463-
_request_timeout: Union[
1464-
None,
1465-
Annotated[StrictFloat, Field(gt=0)],
1466-
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1467-
] = None,
1468-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
1469-
_content_type: Optional[StrictStr] = None,
1470-
_headers: Optional[Dict[StrictStr, Any]] = None,
1471-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1472-
) -> ApiResponse[None]:
1473-
"""Delete project
1474-
1475-
removes all instances inside project
1476-
1477-
:param project_id: project id (required)
1478-
:type project_id: str
1479-
:param _request_timeout: timeout setting for this request. If one
1480-
number provided, it will be total request
1481-
timeout. It can also be a pair (tuple) of
1482-
(connection, read) timeouts.
1483-
:type _request_timeout: int, tuple(int, int), optional
1484-
:param _request_auth: set to override the auth_settings for an a single
1485-
request; this effectively ignores the
1486-
authentication in the spec for a single request.
1487-
:type _request_auth: dict, optional
1488-
:param _content_type: force content-type for the request.
1489-
:type _content_type: str, Optional
1490-
:param _headers: set to override the headers for a single
1491-
request; this effectively ignores the headers
1492-
in the spec for a single request.
1493-
:type _headers: dict, optional
1494-
:param _host_index: set to override the host_index for a single
1495-
request; this effectively ignores the host_index
1496-
in the spec for a single request.
1497-
:type _host_index: int, optional
1498-
:return: Returns the result object.
1499-
""" # noqa: E501 docstring might be too long
1500-
1501-
_param = self._disable_service_serialize(
1502-
project_id=project_id,
1503-
_request_auth=_request_auth,
1504-
_content_type=_content_type,
1505-
_headers=_headers,
1506-
_host_index=_host_index,
1507-
)
1508-
1509-
_response_types_map: Dict[str, Optional[str]] = {
1510-
"200": None,
1511-
"202": None,
1512-
"409": "Error",
1513-
"500": "Error",
1514-
}
1515-
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1516-
response_data.read()
1517-
return self.api_client.response_deserialize(
1518-
response_data=response_data,
1519-
response_types_map=_response_types_map,
1520-
)
1521-
1522-
@validate_call
1523-
def disable_service_without_preload_content(
1524-
self,
1525-
project_id: Annotated[StrictStr, Field(description="project id")],
1526-
_request_timeout: Union[
1527-
None,
1528-
Annotated[StrictFloat, Field(gt=0)],
1529-
Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
1530-
] = None,
1531-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
1532-
_content_type: Optional[StrictStr] = None,
1533-
_headers: Optional[Dict[StrictStr, Any]] = None,
1534-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1535-
) -> RESTResponseType:
1536-
"""Delete project
1537-
1538-
removes all instances inside project
1539-
1540-
:param project_id: project id (required)
1541-
:type project_id: str
1542-
:param _request_timeout: timeout setting for this request. If one
1543-
number provided, it will be total request
1544-
timeout. It can also be a pair (tuple) of
1545-
(connection, read) timeouts.
1546-
:type _request_timeout: int, tuple(int, int), optional
1547-
:param _request_auth: set to override the auth_settings for an a single
1548-
request; this effectively ignores the
1549-
authentication in the spec for a single request.
1550-
:type _request_auth: dict, optional
1551-
:param _content_type: force content-type for the request.
1552-
:type _content_type: str, Optional
1553-
:param _headers: set to override the headers for a single
1554-
request; this effectively ignores the headers
1555-
in the spec for a single request.
1556-
:type _headers: dict, optional
1557-
:param _host_index: set to override the host_index for a single
1558-
request; this effectively ignores the host_index
1559-
in the spec for a single request.
1560-
:type _host_index: int, optional
1561-
:return: Returns the result object.
1562-
""" # noqa: E501 docstring might be too long
1563-
1564-
_param = self._disable_service_serialize(
1565-
project_id=project_id,
1566-
_request_auth=_request_auth,
1567-
_content_type=_content_type,
1568-
_headers=_headers,
1569-
_host_index=_host_index,
1570-
)
1571-
1572-
_response_types_map: Dict[str, Optional[str]] = {
1573-
"200": None,
1574-
"202": None,
1575-
"409": "Error",
1576-
"500": "Error",
1577-
}
1578-
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
1579-
return response_data.response
1580-
1581-
def _disable_service_serialize(
1582-
self,
1583-
project_id,
1584-
_request_auth,
1585-
_content_type,
1586-
_headers,
1587-
_host_index,
1588-
) -> RequestSerialized:
1589-
1590-
_host = None
1591-
1592-
_collection_formats: Dict[str, str] = {}
1593-
1594-
_path_params: Dict[str, str] = {}
1595-
_query_params: List[Tuple[str, str]] = []
1596-
_header_params: Dict[str, Optional[str]] = _headers or {}
1597-
_form_params: List[Tuple[str, str]] = []
1598-
_files: Dict[str, Union[str, bytes]] = {}
1599-
_body_params: Optional[bytes] = None
1600-
1601-
# process the path parameters
1602-
if project_id is not None:
1603-
_path_params["projectId"] = project_id
1604-
# process the query parameters
1605-
# process the header parameters
1606-
# process the form parameters
1607-
# process the body parameter
1608-
1609-
# set the HTTP header `Accept`
1610-
if "Accept" not in _header_params:
1611-
_header_params["Accept"] = self.api_client.select_header_accept(["*/*"])
1612-
1613-
# authentication setting
1614-
_auth_settings: List[str] = []
1615-
1616-
return self.api_client.param_serialize(
1617-
method="DELETE",
1618-
resource_path="/v1/projects/{projectId}",
1619-
path_params=_path_params,
1620-
query_params=_query_params,
1621-
header_params=_header_params,
1622-
body=_body_params,
1623-
post_params=_form_params,
1624-
files=_files,
1625-
auth_settings=_auth_settings,
1626-
collection_formats=_collection_formats,
1627-
_host=_host,
1628-
_request_auth=_request_auth,
1629-
)
1630-
16311396
@validate_call
16321397
def get_backup(
16331398
self,

0 commit comments

Comments
 (0)