stackit-scf 0.3.0__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/PKG-INFO +1 -1
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/pyproject.toml +2 -2
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/__init__.py +4 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/__init__.py +1 -0
- stackit_scf-0.4.0/src/stackit/scf/models/space_with_isolation_segment.py +140 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/LICENSE.md +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/NOTICE.txt +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/README.md +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/api/__init__.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/api/default_api.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/api_client.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/api_response.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/configuration.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/exceptions.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/apply_organization_quota_payload.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/create_org_role_payload.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/create_organization_payload.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/create_space_payload.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/create_space_role_payload.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/error_response.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/isolation_segment.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/isolation_segments_list.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/org_manager.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/org_manager_delete_response.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/org_manager_response.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/org_role_create_bff_request.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/org_role_response.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/org_role_type.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/organization.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/organization_create_bff_response.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/organization_create_response.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/organization_delete_response.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/organization_quota.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/organization_usage_summary.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/organizations_list.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/organizations_list_item.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/pagination.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/platform_list.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/platforms.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/quota.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/quota_apps.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/quota_domains.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/quota_routes.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/quota_services.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/space.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/space_created_bff_response.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/space_delete_response.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/space_role_create_bff_request.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/space_role_create_bff_response.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/space_role_create_response.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/space_role_type.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/spaces_list.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/update_organization_payload.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/update_space_payload.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/usage_summary.py +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/py.typed +0 -0
- {stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/rest.py +0 -0
|
@@ -3,7 +3,7 @@ name = "stackit-scf"
|
|
|
3
3
|
|
|
4
4
|
[tool.poetry]
|
|
5
5
|
name = "stackit-scf"
|
|
6
|
-
version = "v0.
|
|
6
|
+
version = "v0.4.0"
|
|
7
7
|
authors = [
|
|
8
8
|
"STACKIT Developer Tools <developer-tools@stackit.cloud>",
|
|
9
9
|
]
|
|
@@ -96,4 +96,4 @@ docstring-quotes = '"""'
|
|
|
96
96
|
multiline-quotes = '"""'
|
|
97
97
|
ban-relative-imports = true
|
|
98
98
|
# Exclude generated code
|
|
99
|
-
extend-exclude = [ "src/stackit/*/models/*", "src/stackit/*/api/*", "src/stackit/*/*.py" ]
|
|
99
|
+
extend-exclude = [ "src/stackit/*/models/*", "src/stackit/*/api/*", "src/stackit/*/*.py" ]
|
|
@@ -66,6 +66,7 @@ __all__ = [
|
|
|
66
66
|
"SpaceRoleCreateBffResponse",
|
|
67
67
|
"SpaceRoleCreateResponse",
|
|
68
68
|
"SpaceRoleType",
|
|
69
|
+
"SpaceWithIsolationSegment",
|
|
69
70
|
"SpacesList",
|
|
70
71
|
"UpdateOrganizationPayload",
|
|
71
72
|
"UpdateSpacePayload",
|
|
@@ -162,6 +163,9 @@ from stackit.scf.models.space_role_create_response import (
|
|
|
162
163
|
SpaceRoleCreateResponse as SpaceRoleCreateResponse,
|
|
163
164
|
)
|
|
164
165
|
from stackit.scf.models.space_role_type import SpaceRoleType as SpaceRoleType
|
|
166
|
+
from stackit.scf.models.space_with_isolation_segment import (
|
|
167
|
+
SpaceWithIsolationSegment as SpaceWithIsolationSegment,
|
|
168
|
+
)
|
|
165
169
|
from stackit.scf.models.spaces_list import SpacesList as SpacesList
|
|
166
170
|
from stackit.scf.models.update_organization_payload import (
|
|
167
171
|
UpdateOrganizationPayload as UpdateOrganizationPayload,
|
|
@@ -56,6 +56,7 @@ from stackit.scf.models.space_role_create_bff_request import SpaceRoleCreateBffR
|
|
|
56
56
|
from stackit.scf.models.space_role_create_bff_response import SpaceRoleCreateBffResponse
|
|
57
57
|
from stackit.scf.models.space_role_create_response import SpaceRoleCreateResponse
|
|
58
58
|
from stackit.scf.models.space_role_type import SpaceRoleType
|
|
59
|
+
from stackit.scf.models.space_with_isolation_segment import SpaceWithIsolationSegment
|
|
59
60
|
from stackit.scf.models.spaces_list import SpacesList
|
|
60
61
|
from stackit.scf.models.update_organization_payload import UpdateOrganizationPayload
|
|
61
62
|
from stackit.scf.models.update_space_payload import UpdateSpacePayload
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
STACKIT Cloud Foundry API
|
|
5
|
+
|
|
6
|
+
API endpoints for managing STACKIT Cloud Foundry
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: support@stackit.cloud
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
|
|
17
|
+
import json
|
|
18
|
+
import pprint
|
|
19
|
+
import re # noqa: F401
|
|
20
|
+
from datetime import datetime
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
22
|
+
|
|
23
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class SpaceWithIsolationSegment(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
A Space resource that includes its assigned Isolation Segment details.
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
|
|
32
|
+
created_at: datetime = Field(alias="createdAt")
|
|
33
|
+
guid: StrictStr
|
|
34
|
+
name: StrictStr
|
|
35
|
+
org_id: StrictStr = Field(alias="orgId")
|
|
36
|
+
platform_id: StrictStr = Field(alias="platformId")
|
|
37
|
+
project_id: StrictStr = Field(alias="projectId")
|
|
38
|
+
region: StrictStr
|
|
39
|
+
updated_at: datetime = Field(alias="updatedAt")
|
|
40
|
+
isolation_segment_id: Optional[StrictStr] = Field(default=None, alias="isolationSegmentId")
|
|
41
|
+
__properties: ClassVar[List[str]] = [
|
|
42
|
+
"createdAt",
|
|
43
|
+
"guid",
|
|
44
|
+
"name",
|
|
45
|
+
"orgId",
|
|
46
|
+
"platformId",
|
|
47
|
+
"projectId",
|
|
48
|
+
"region",
|
|
49
|
+
"updatedAt",
|
|
50
|
+
"isolationSegmentId",
|
|
51
|
+
]
|
|
52
|
+
|
|
53
|
+
@field_validator("created_at", mode="before")
|
|
54
|
+
def created_at_change_year_zero_to_one(cls, value):
|
|
55
|
+
"""Workaround which prevents year 0 issue"""
|
|
56
|
+
if isinstance(value, str):
|
|
57
|
+
# Check for year "0000" at the beginning of the string
|
|
58
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
59
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
60
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
61
|
+
):
|
|
62
|
+
# Workaround: Replace "0000" with "0001"
|
|
63
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
64
|
+
return value
|
|
65
|
+
|
|
66
|
+
@field_validator("updated_at", mode="before")
|
|
67
|
+
def updated_at_change_year_zero_to_one(cls, value):
|
|
68
|
+
"""Workaround which prevents year 0 issue"""
|
|
69
|
+
if isinstance(value, str):
|
|
70
|
+
# Check for year "0000" at the beginning of the string
|
|
71
|
+
# This assumes common date formats like YYYY-MM-DDTHH:MM:SS+00:00 or YYYY-MM-DDTHH:MM:SSZ
|
|
72
|
+
if value.startswith("0000-01-01T") and re.match(
|
|
73
|
+
r"^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\+\d{2}:\d{2}|Z)$", value
|
|
74
|
+
):
|
|
75
|
+
# Workaround: Replace "0000" with "0001"
|
|
76
|
+
return "0001" + value[4:] # Take "0001" and append the rest of the string
|
|
77
|
+
return value
|
|
78
|
+
|
|
79
|
+
model_config = ConfigDict(
|
|
80
|
+
populate_by_name=True,
|
|
81
|
+
validate_assignment=True,
|
|
82
|
+
protected_namespaces=(),
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
def to_str(self) -> str:
|
|
86
|
+
"""Returns the string representation of the model using alias"""
|
|
87
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
88
|
+
|
|
89
|
+
def to_json(self) -> str:
|
|
90
|
+
"""Returns the JSON representation of the model using alias"""
|
|
91
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
92
|
+
return json.dumps(self.to_dict())
|
|
93
|
+
|
|
94
|
+
@classmethod
|
|
95
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
96
|
+
"""Create an instance of SpaceWithIsolationSegment from a JSON string"""
|
|
97
|
+
return cls.from_dict(json.loads(json_str))
|
|
98
|
+
|
|
99
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
100
|
+
"""Return the dictionary representation of the model using alias.
|
|
101
|
+
|
|
102
|
+
This has the following differences from calling pydantic's
|
|
103
|
+
`self.model_dump(by_alias=True)`:
|
|
104
|
+
|
|
105
|
+
* `None` is only added to the output dict for nullable fields that
|
|
106
|
+
were set at model initialization. Other fields with value `None`
|
|
107
|
+
are ignored.
|
|
108
|
+
"""
|
|
109
|
+
excluded_fields: Set[str] = set([])
|
|
110
|
+
|
|
111
|
+
_dict = self.model_dump(
|
|
112
|
+
by_alias=True,
|
|
113
|
+
exclude=excluded_fields,
|
|
114
|
+
exclude_none=True,
|
|
115
|
+
)
|
|
116
|
+
return _dict
|
|
117
|
+
|
|
118
|
+
@classmethod
|
|
119
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
120
|
+
"""Create an instance of SpaceWithIsolationSegment from a dict"""
|
|
121
|
+
if obj is None:
|
|
122
|
+
return None
|
|
123
|
+
|
|
124
|
+
if not isinstance(obj, dict):
|
|
125
|
+
return cls.model_validate(obj)
|
|
126
|
+
|
|
127
|
+
_obj = cls.model_validate(
|
|
128
|
+
{
|
|
129
|
+
"createdAt": obj.get("createdAt"),
|
|
130
|
+
"guid": obj.get("guid"),
|
|
131
|
+
"name": obj.get("name"),
|
|
132
|
+
"orgId": obj.get("orgId"),
|
|
133
|
+
"platformId": obj.get("platformId"),
|
|
134
|
+
"projectId": obj.get("projectId"),
|
|
135
|
+
"region": obj.get("region"),
|
|
136
|
+
"updatedAt": obj.get("updatedAt"),
|
|
137
|
+
"isolationSegmentId": obj.get("isolationSegmentId"),
|
|
138
|
+
}
|
|
139
|
+
)
|
|
140
|
+
return _obj
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/apply_organization_quota_payload.py
RENAMED
|
File without changes
|
|
File without changes
|
{stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/create_organization_payload.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/org_manager_delete_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/org_role_create_bff_request.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/organization_create_bff_response.py
RENAMED
|
File without changes
|
{stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/organization_create_response.py
RENAMED
|
File without changes
|
{stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/organization_delete_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/organization_usage_summary.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/space_created_bff_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/space_role_create_bff_request.py
RENAMED
|
File without changes
|
{stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/space_role_create_bff_response.py
RENAMED
|
File without changes
|
{stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/space_role_create_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_scf-0.3.0 → stackit_scf-0.4.0}/src/stackit/scf/models/update_organization_payload.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|