waldur-api-client 7.7.1__py3-none-any.whl → 7.7.3__py3-none-any.whl
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.
Potentially problematic release.
This version of waldur-api-client might be problematic. Click here for more details.
- waldur_api_client/api/marketplace_checklists/marketplace_checklists_questions_list.py +31 -32
- waldur_api_client/api/marketplace_checklists/marketplace_checklists_retrieve.py +15 -14
- waldur_api_client/api/marketplace_checklists_admin/__init__.py +1 -0
- waldur_api_client/api/marketplace_checklists_admin/marketplace_checklists_admin_checklist_questions.py +187 -0
- waldur_api_client/api/marketplace_checklists_admin/marketplace_checklists_admin_create.py +150 -0
- waldur_api_client/api/marketplace_checklists_admin/marketplace_checklists_admin_destroy.py +89 -0
- waldur_api_client/api/marketplace_checklists_admin/marketplace_checklists_admin_list.py +173 -0
- waldur_api_client/api/marketplace_checklists_admin/marketplace_checklists_admin_partial_update.py +164 -0
- waldur_api_client/api/marketplace_checklists_admin/marketplace_checklists_admin_retrieve.py +142 -0
- waldur_api_client/api/marketplace_checklists_admin/marketplace_checklists_admin_update.py +164 -0
- waldur_api_client/api/marketplace_checklists_admin_question_dependencies/__init__.py +1 -0
- waldur_api_client/api/marketplace_checklists_admin_question_dependencies/marketplace_checklists_admin_question_dependencies_create.py +150 -0
- waldur_api_client/api/marketplace_checklists_admin_question_dependencies/marketplace_checklists_admin_question_dependencies_destroy.py +89 -0
- waldur_api_client/api/marketplace_checklists_admin_question_dependencies/marketplace_checklists_admin_question_dependencies_list.py +212 -0
- waldur_api_client/api/marketplace_checklists_admin_question_dependencies/marketplace_checklists_admin_question_dependencies_partial_update.py +164 -0
- waldur_api_client/api/marketplace_checklists_admin_question_dependencies/marketplace_checklists_admin_question_dependencies_retrieve.py +142 -0
- waldur_api_client/api/marketplace_checklists_admin_question_dependencies/marketplace_checklists_admin_question_dependencies_update.py +164 -0
- waldur_api_client/api/marketplace_checklists_admin_question_options/__init__.py +1 -0
- waldur_api_client/api/marketplace_checklists_admin_question_options/marketplace_checklists_admin_question_options_create.py +150 -0
- waldur_api_client/api/marketplace_checklists_admin_question_options/marketplace_checklists_admin_question_options_destroy.py +89 -0
- waldur_api_client/api/marketplace_checklists_admin_question_options/marketplace_checklists_admin_question_options_list.py +194 -0
- waldur_api_client/api/marketplace_checklists_admin_question_options/marketplace_checklists_admin_question_options_partial_update.py +164 -0
- waldur_api_client/api/marketplace_checklists_admin_question_options/marketplace_checklists_admin_question_options_retrieve.py +142 -0
- waldur_api_client/api/marketplace_checklists_admin_question_options/marketplace_checklists_admin_question_options_update.py +164 -0
- waldur_api_client/api/marketplace_checklists_admin_questions/__init__.py +1 -0
- waldur_api_client/api/marketplace_checklists_admin_questions/marketplace_checklists_admin_questions_create.py +148 -0
- waldur_api_client/api/marketplace_checklists_admin_questions/marketplace_checklists_admin_questions_destroy.py +89 -0
- waldur_api_client/api/marketplace_checklists_admin_questions/marketplace_checklists_admin_questions_list.py +192 -0
- waldur_api_client/api/marketplace_checklists_admin_questions/marketplace_checklists_admin_questions_partial_update.py +162 -0
- waldur_api_client/api/marketplace_checklists_admin_questions/marketplace_checklists_admin_questions_retrieve.py +140 -0
- waldur_api_client/api/marketplace_checklists_admin_questions/marketplace_checklists_admin_questions_update.py +162 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_list.py +23 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_set_pending_account_linking.py +105 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_set_pending_additional_validation.py +105 -0
- waldur_api_client/api/marketplace_offering_users/marketplace_offering_users_set_validation_complete.py +105 -0
- waldur_api_client/models/__init__.py +44 -2
- waldur_api_client/models/answer_list.py +8 -19
- waldur_api_client/models/answer_submit.py +7 -13
- waldur_api_client/models/answer_submit_request.py +7 -13
- waldur_api_client/models/booking_resource.py +18 -0
- waldur_api_client/models/booking_resources_list_field_item.py +2 -0
- waldur_api_client/models/booking_resources_retrieve_field_item.py +2 -0
- waldur_api_client/models/call_resource_template.py +23 -1
- waldur_api_client/models/checklist.py +8 -0
- waldur_api_client/models/checklist_admin.py +127 -0
- waldur_api_client/models/checklist_type_enum.py +10 -0
- waldur_api_client/models/create_checklist.py +131 -0
- waldur_api_client/models/create_checklist_request.py +90 -0
- waldur_api_client/models/event_types_enum.py +1 -0
- waldur_api_client/models/group_invitation.py +27 -3
- waldur_api_client/models/group_invitation_request.py +18 -0
- waldur_api_client/models/impact_level_display_enum.py +11 -0
- waldur_api_client/models/invitation.py +10 -4
- waldur_api_client/models/maintenance_announcement.py +8 -0
- waldur_api_client/models/maintenance_announcement_offering.py +17 -0
- waldur_api_client/models/maintenance_announcement_state_enum.py +7 -7
- waldur_api_client/models/marketplace_offering_users_list_field_item.py +2 -0
- waldur_api_client/models/marketplace_offering_users_list_state_item.py +16 -0
- waldur_api_client/models/marketplace_offering_users_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_resources_details_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_resources_list_field_item.py +2 -0
- waldur_api_client/models/marketplace_provider_resources_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_resources_details_retrieve_field_item.py +2 -0
- waldur_api_client/models/marketplace_resources_list_field_item.py +2 -0
- waldur_api_client/models/marketplace_resources_retrieve_field_item.py +2 -0
- waldur_api_client/models/offering_user.py +27 -0
- waldur_api_client/models/offering_user_state_enum.py +16 -0
- waldur_api_client/models/offering_user_state_transition_request.py +59 -0
- waldur_api_client/models/open_stack_port.py +15 -4
- waldur_api_client/models/open_stack_router.py +15 -4
- waldur_api_client/models/operator_enum.py +12 -0
- waldur_api_client/models/patched_create_checklist_request.py +96 -0
- waldur_api_client/models/patched_question_admin_request.py +208 -0
- waldur_api_client/models/patched_question_dependency_request.py +94 -0
- waldur_api_client/models/patched_question_options_admin_request.py +68 -0
- waldur_api_client/models/{checklist_question.py → question.py} +29 -16
- waldur_api_client/models/question_admin.py +260 -0
- waldur_api_client/models/question_admin_request.py +210 -0
- waldur_api_client/models/question_dependency.py +127 -0
- waldur_api_client/models/question_dependency_request.py +94 -0
- waldur_api_client/models/question_options.py +79 -0
- waldur_api_client/models/question_options_admin.py +103 -0
- waldur_api_client/models/question_options_admin_request.py +78 -0
- waldur_api_client/models/question_type_enum.py +15 -0
- waldur_api_client/models/resource.py +18 -0
- waldur_api_client/models/visible_invitation_details.py +10 -4
- {waldur_api_client-7.7.1.dist-info → waldur_api_client-7.7.3.dist-info}/METADATA +1 -1
- {waldur_api_client-7.7.1.dist-info → waldur_api_client-7.7.3.dist-info}/RECORD +90 -37
- {waldur_api_client-7.7.1.dist-info → waldur_api_client-7.7.3.dist-info}/LICENSE +0 -0
- {waldur_api_client-7.7.1.dist-info → waldur_api_client-7.7.3.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
from attrs import define as _attrs_define
|
|
6
|
+
from attrs import field as _attrs_field
|
|
7
|
+
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="QuestionOptions")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class QuestionOptions:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
uuid (UUID):
|
|
18
|
+
label (str):
|
|
19
|
+
order (Union[Unset, int]):
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
uuid: UUID
|
|
23
|
+
label: str
|
|
24
|
+
order: Union[Unset, int] = UNSET
|
|
25
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> dict[str, Any]:
|
|
28
|
+
uuid = str(self.uuid)
|
|
29
|
+
|
|
30
|
+
label = self.label
|
|
31
|
+
|
|
32
|
+
order = self.order
|
|
33
|
+
|
|
34
|
+
field_dict: dict[str, Any] = {}
|
|
35
|
+
field_dict.update(self.additional_properties)
|
|
36
|
+
field_dict.update(
|
|
37
|
+
{
|
|
38
|
+
"uuid": uuid,
|
|
39
|
+
"label": label,
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
if order is not UNSET:
|
|
43
|
+
field_dict["order"] = order
|
|
44
|
+
|
|
45
|
+
return field_dict
|
|
46
|
+
|
|
47
|
+
@classmethod
|
|
48
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
49
|
+
d = dict(src_dict)
|
|
50
|
+
uuid = UUID(d.pop("uuid"))
|
|
51
|
+
|
|
52
|
+
label = d.pop("label")
|
|
53
|
+
|
|
54
|
+
order = d.pop("order", UNSET)
|
|
55
|
+
|
|
56
|
+
question_options = cls(
|
|
57
|
+
uuid=uuid,
|
|
58
|
+
label=label,
|
|
59
|
+
order=order,
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
question_options.additional_properties = d
|
|
63
|
+
return question_options
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def additional_keys(self) -> list[str]:
|
|
67
|
+
return list(self.additional_properties.keys())
|
|
68
|
+
|
|
69
|
+
def __getitem__(self, key: str) -> Any:
|
|
70
|
+
return self.additional_properties[key]
|
|
71
|
+
|
|
72
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
73
|
+
self.additional_properties[key] = value
|
|
74
|
+
|
|
75
|
+
def __delitem__(self, key: str) -> None:
|
|
76
|
+
del self.additional_properties[key]
|
|
77
|
+
|
|
78
|
+
def __contains__(self, key: str) -> bool:
|
|
79
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
from attrs import define as _attrs_define
|
|
6
|
+
from attrs import field as _attrs_field
|
|
7
|
+
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="QuestionOptionsAdmin")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class QuestionOptionsAdmin:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
uuid (UUID):
|
|
18
|
+
label (str):
|
|
19
|
+
url (str):
|
|
20
|
+
question (str):
|
|
21
|
+
question_uuid (UUID):
|
|
22
|
+
order (Union[Unset, int]):
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
uuid: UUID
|
|
26
|
+
label: str
|
|
27
|
+
url: str
|
|
28
|
+
question: str
|
|
29
|
+
question_uuid: UUID
|
|
30
|
+
order: Union[Unset, int] = UNSET
|
|
31
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
32
|
+
|
|
33
|
+
def to_dict(self) -> dict[str, Any]:
|
|
34
|
+
uuid = str(self.uuid)
|
|
35
|
+
|
|
36
|
+
label = self.label
|
|
37
|
+
|
|
38
|
+
url = self.url
|
|
39
|
+
|
|
40
|
+
question = self.question
|
|
41
|
+
|
|
42
|
+
question_uuid = str(self.question_uuid)
|
|
43
|
+
|
|
44
|
+
order = self.order
|
|
45
|
+
|
|
46
|
+
field_dict: dict[str, Any] = {}
|
|
47
|
+
field_dict.update(self.additional_properties)
|
|
48
|
+
field_dict.update(
|
|
49
|
+
{
|
|
50
|
+
"uuid": uuid,
|
|
51
|
+
"label": label,
|
|
52
|
+
"url": url,
|
|
53
|
+
"question": question,
|
|
54
|
+
"question_uuid": question_uuid,
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
if order is not UNSET:
|
|
58
|
+
field_dict["order"] = order
|
|
59
|
+
|
|
60
|
+
return field_dict
|
|
61
|
+
|
|
62
|
+
@classmethod
|
|
63
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
64
|
+
d = dict(src_dict)
|
|
65
|
+
uuid = UUID(d.pop("uuid"))
|
|
66
|
+
|
|
67
|
+
label = d.pop("label")
|
|
68
|
+
|
|
69
|
+
url = d.pop("url")
|
|
70
|
+
|
|
71
|
+
question = d.pop("question")
|
|
72
|
+
|
|
73
|
+
question_uuid = UUID(d.pop("question_uuid"))
|
|
74
|
+
|
|
75
|
+
order = d.pop("order", UNSET)
|
|
76
|
+
|
|
77
|
+
question_options_admin = cls(
|
|
78
|
+
uuid=uuid,
|
|
79
|
+
label=label,
|
|
80
|
+
url=url,
|
|
81
|
+
question=question,
|
|
82
|
+
question_uuid=question_uuid,
|
|
83
|
+
order=order,
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
question_options_admin.additional_properties = d
|
|
87
|
+
return question_options_admin
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def additional_keys(self) -> list[str]:
|
|
91
|
+
return list(self.additional_properties.keys())
|
|
92
|
+
|
|
93
|
+
def __getitem__(self, key: str) -> Any:
|
|
94
|
+
return self.additional_properties[key]
|
|
95
|
+
|
|
96
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
97
|
+
self.additional_properties[key] = value
|
|
98
|
+
|
|
99
|
+
def __delitem__(self, key: str) -> None:
|
|
100
|
+
del self.additional_properties[key]
|
|
101
|
+
|
|
102
|
+
def __contains__(self, key: str) -> bool:
|
|
103
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
9
|
+
T = TypeVar("T", bound="QuestionOptionsAdminRequest")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class QuestionOptionsAdminRequest:
|
|
14
|
+
"""
|
|
15
|
+
Attributes:
|
|
16
|
+
label (str):
|
|
17
|
+
question (str):
|
|
18
|
+
order (Union[Unset, int]):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
label: str
|
|
22
|
+
question: str
|
|
23
|
+
order: Union[Unset, int] = UNSET
|
|
24
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
25
|
+
|
|
26
|
+
def to_dict(self) -> dict[str, Any]:
|
|
27
|
+
label = self.label
|
|
28
|
+
|
|
29
|
+
question = self.question
|
|
30
|
+
|
|
31
|
+
order = self.order
|
|
32
|
+
|
|
33
|
+
field_dict: dict[str, Any] = {}
|
|
34
|
+
field_dict.update(self.additional_properties)
|
|
35
|
+
field_dict.update(
|
|
36
|
+
{
|
|
37
|
+
"label": label,
|
|
38
|
+
"question": question,
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
if order is not UNSET:
|
|
42
|
+
field_dict["order"] = order
|
|
43
|
+
|
|
44
|
+
return field_dict
|
|
45
|
+
|
|
46
|
+
@classmethod
|
|
47
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
48
|
+
d = dict(src_dict)
|
|
49
|
+
label = d.pop("label")
|
|
50
|
+
|
|
51
|
+
question = d.pop("question")
|
|
52
|
+
|
|
53
|
+
order = d.pop("order", UNSET)
|
|
54
|
+
|
|
55
|
+
question_options_admin_request = cls(
|
|
56
|
+
label=label,
|
|
57
|
+
question=question,
|
|
58
|
+
order=order,
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
question_options_admin_request.additional_properties = d
|
|
62
|
+
return question_options_admin_request
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def additional_keys(self) -> list[str]:
|
|
66
|
+
return list(self.additional_properties.keys())
|
|
67
|
+
|
|
68
|
+
def __getitem__(self, key: str) -> Any:
|
|
69
|
+
return self.additional_properties[key]
|
|
70
|
+
|
|
71
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
72
|
+
self.additional_properties[key] = value
|
|
73
|
+
|
|
74
|
+
def __delitem__(self, key: str) -> None:
|
|
75
|
+
del self.additional_properties[key]
|
|
76
|
+
|
|
77
|
+
def __contains__(self, key: str) -> bool:
|
|
78
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class QuestionTypeEnum(str, Enum):
|
|
5
|
+
BOOLEAN = "boolean"
|
|
6
|
+
DATE = "date"
|
|
7
|
+
FILE = "file"
|
|
8
|
+
MULTI_SELECT = "multi_select"
|
|
9
|
+
NUMBER = "number"
|
|
10
|
+
SINGLE_SELECT = "single_select"
|
|
11
|
+
TEXT_AREA = "text_area"
|
|
12
|
+
TEXT_INPUT = "text_input"
|
|
13
|
+
|
|
14
|
+
def __str__(self) -> str:
|
|
15
|
+
return str(self.value)
|
|
@@ -73,8 +73,10 @@ class Resource:
|
|
|
73
73
|
project_end_date_requested_by (Union[Unset, str]):
|
|
74
74
|
customer_uuid (Union[Unset, UUID]):
|
|
75
75
|
customer_name (Union[Unset, str]):
|
|
76
|
+
offering_slug (Union[Unset, str]):
|
|
76
77
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
77
78
|
parent_offering_name (Union[Unset, str]):
|
|
79
|
+
parent_offering_slug (Union[Unset, str]):
|
|
78
80
|
parent_uuid (Union[Unset, UUID]):
|
|
79
81
|
parent_name (Union[Unset, str]):
|
|
80
82
|
backend_metadata (Union[Unset, BackendMetadata]):
|
|
@@ -149,8 +151,10 @@ class Resource:
|
|
|
149
151
|
project_end_date_requested_by: Union[Unset, str] = UNSET
|
|
150
152
|
customer_uuid: Union[Unset, UUID] = UNSET
|
|
151
153
|
customer_name: Union[Unset, str] = UNSET
|
|
154
|
+
offering_slug: Union[Unset, str] = UNSET
|
|
152
155
|
parent_offering_uuid: Union[Unset, UUID] = UNSET
|
|
153
156
|
parent_offering_name: Union[Unset, str] = UNSET
|
|
157
|
+
parent_offering_slug: Union[Unset, str] = UNSET
|
|
154
158
|
parent_uuid: Union[Unset, UUID] = UNSET
|
|
155
159
|
parent_name: Union[Unset, str] = UNSET
|
|
156
160
|
backend_metadata: Union[Unset, "BackendMetadata"] = UNSET
|
|
@@ -327,12 +331,16 @@ class Resource:
|
|
|
327
331
|
|
|
328
332
|
customer_name = self.customer_name
|
|
329
333
|
|
|
334
|
+
offering_slug = self.offering_slug
|
|
335
|
+
|
|
330
336
|
parent_offering_uuid: Union[Unset, str] = UNSET
|
|
331
337
|
if not isinstance(self.parent_offering_uuid, Unset):
|
|
332
338
|
parent_offering_uuid = str(self.parent_offering_uuid)
|
|
333
339
|
|
|
334
340
|
parent_offering_name = self.parent_offering_name
|
|
335
341
|
|
|
342
|
+
parent_offering_slug = self.parent_offering_slug
|
|
343
|
+
|
|
336
344
|
parent_uuid: Union[Unset, str] = UNSET
|
|
337
345
|
if not isinstance(self.parent_uuid, Unset):
|
|
338
346
|
parent_uuid = str(self.parent_uuid)
|
|
@@ -530,10 +538,14 @@ class Resource:
|
|
|
530
538
|
field_dict["customer_uuid"] = customer_uuid
|
|
531
539
|
if customer_name is not UNSET:
|
|
532
540
|
field_dict["customer_name"] = customer_name
|
|
541
|
+
if offering_slug is not UNSET:
|
|
542
|
+
field_dict["offering_slug"] = offering_slug
|
|
533
543
|
if parent_offering_uuid is not UNSET:
|
|
534
544
|
field_dict["parent_offering_uuid"] = parent_offering_uuid
|
|
535
545
|
if parent_offering_name is not UNSET:
|
|
536
546
|
field_dict["parent_offering_name"] = parent_offering_name
|
|
547
|
+
if parent_offering_slug is not UNSET:
|
|
548
|
+
field_dict["parent_offering_slug"] = parent_offering_slug
|
|
537
549
|
if parent_uuid is not UNSET:
|
|
538
550
|
field_dict["parent_uuid"] = parent_uuid
|
|
539
551
|
if parent_name is not UNSET:
|
|
@@ -827,6 +839,8 @@ class Resource:
|
|
|
827
839
|
|
|
828
840
|
customer_name = d.pop("customer_name", UNSET)
|
|
829
841
|
|
|
842
|
+
offering_slug = d.pop("offering_slug", UNSET)
|
|
843
|
+
|
|
830
844
|
_parent_offering_uuid = d.pop("parent_offering_uuid", UNSET)
|
|
831
845
|
parent_offering_uuid: Union[Unset, UUID]
|
|
832
846
|
if isinstance(_parent_offering_uuid, Unset):
|
|
@@ -836,6 +850,8 @@ class Resource:
|
|
|
836
850
|
|
|
837
851
|
parent_offering_name = d.pop("parent_offering_name", UNSET)
|
|
838
852
|
|
|
853
|
+
parent_offering_slug = d.pop("parent_offering_slug", UNSET)
|
|
854
|
+
|
|
839
855
|
_parent_uuid = d.pop("parent_uuid", UNSET)
|
|
840
856
|
parent_uuid: Union[Unset, UUID]
|
|
841
857
|
if isinstance(_parent_uuid, Unset):
|
|
@@ -1041,8 +1057,10 @@ class Resource:
|
|
|
1041
1057
|
project_end_date_requested_by=project_end_date_requested_by,
|
|
1042
1058
|
customer_uuid=customer_uuid,
|
|
1043
1059
|
customer_name=customer_name,
|
|
1060
|
+
offering_slug=offering_slug,
|
|
1044
1061
|
parent_offering_uuid=parent_offering_uuid,
|
|
1045
1062
|
parent_offering_name=parent_offering_name,
|
|
1063
|
+
parent_offering_slug=parent_offering_slug,
|
|
1046
1064
|
parent_uuid=parent_uuid,
|
|
1047
1065
|
parent_name=parent_name,
|
|
1048
1066
|
backend_metadata=backend_metadata,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar
|
|
2
|
+
from typing import Any, TypeVar, Union, cast
|
|
3
3
|
from uuid import UUID
|
|
4
4
|
|
|
5
5
|
from attrs import define as _attrs_define
|
|
@@ -17,7 +17,7 @@ class VisibleInvitationDetails:
|
|
|
17
17
|
Attributes:
|
|
18
18
|
scope_uuid (UUID):
|
|
19
19
|
scope_name (str):
|
|
20
|
-
scope_type (str):
|
|
20
|
+
scope_type (Union[None, str]):
|
|
21
21
|
customer_uuid (UUID):
|
|
22
22
|
customer_name (str):
|
|
23
23
|
role_name (str):
|
|
@@ -33,7 +33,7 @@ class VisibleInvitationDetails:
|
|
|
33
33
|
|
|
34
34
|
scope_uuid: UUID
|
|
35
35
|
scope_name: str
|
|
36
|
-
scope_type: str
|
|
36
|
+
scope_type: Union[None, str]
|
|
37
37
|
customer_uuid: UUID
|
|
38
38
|
customer_name: str
|
|
39
39
|
role_name: str
|
|
@@ -51,6 +51,7 @@ class VisibleInvitationDetails:
|
|
|
51
51
|
|
|
52
52
|
scope_name = self.scope_name
|
|
53
53
|
|
|
54
|
+
scope_type: Union[None, str]
|
|
54
55
|
scope_type = self.scope_type
|
|
55
56
|
|
|
56
57
|
customer_uuid = str(self.customer_uuid)
|
|
@@ -102,7 +103,12 @@ class VisibleInvitationDetails:
|
|
|
102
103
|
|
|
103
104
|
scope_name = d.pop("scope_name")
|
|
104
105
|
|
|
105
|
-
|
|
106
|
+
def _parse_scope_type(data: object) -> Union[None, str]:
|
|
107
|
+
if data is None:
|
|
108
|
+
return data
|
|
109
|
+
return cast(Union[None, str], data)
|
|
110
|
+
|
|
111
|
+
scope_type = _parse_scope_type(d.pop("scope_type"))
|
|
106
112
|
|
|
107
113
|
customer_uuid = UUID(d.pop("customer_uuid"))
|
|
108
114
|
|