waldur-api-client 7.7.0__py3-none-any.whl → 7.7.2__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/autoprovisioning_rules/autoprovisioning_rules_create.py +8 -4
- waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_destroy.py +4 -2
- waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_list.py +4 -4
- waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_partial_update.py +8 -4
- waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_retrieve.py +8 -4
- waldur_api_client/api/autoprovisioning_rules/autoprovisioning_rules_update.py +8 -4
- 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/models/__init__.py +36 -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/group_invitation.py +16 -5
- waldur_api_client/models/group_invitation_request.py +16 -5
- 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/open_stack_floating_ip.py +21 -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/openstack_floating_ips_list_field_item.py +1 -0
- waldur_api_client/models/openstack_floating_ips_retrieve_field_item.py +1 -0
- 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/rule.py +46 -6
- {waldur_api_client-7.7.0.dist-info → waldur_api_client-7.7.2.dist-info}/METADATA +1 -1
- {waldur_api_client-7.7.0.dist-info → waldur_api_client-7.7.2.dist-info}/RECORD +83 -37
- {waldur_api_client-7.7.0.dist-info → waldur_api_client-7.7.2.dist-info}/LICENSE +0 -0
- {waldur_api_client-7.7.0.dist-info → waldur_api_client-7.7.2.dist-info}/WHEEL +0 -0
|
@@ -168,9 +168,10 @@ from .category_help_articles_request import CategoryHelpArticlesRequest
|
|
|
168
168
|
from .category_serializer_for_for_nested_fields import CategorySerializerForForNestedFields
|
|
169
169
|
from .category_serializer_for_for_nested_fields_request import CategorySerializerForForNestedFieldsRequest
|
|
170
170
|
from .checklist import Checklist
|
|
171
|
+
from .checklist_admin import ChecklistAdmin
|
|
171
172
|
from .checklist_category import ChecklistCategory
|
|
172
173
|
from .checklist_customer_stats import ChecklistCustomerStats
|
|
173
|
-
from .
|
|
174
|
+
from .checklist_type_enum import ChecklistTypeEnum
|
|
174
175
|
from .cluster_security_group import ClusterSecurityGroup
|
|
175
176
|
from .cluster_security_group_request import ClusterSecurityGroupRequest
|
|
176
177
|
from .comment import Comment
|
|
@@ -206,6 +207,8 @@ from .count_users_of_service_providers import CountUsersOfServiceProviders
|
|
|
206
207
|
from .country import Country
|
|
207
208
|
from .country_enum import CountryEnum
|
|
208
209
|
from .create_attachments_request import CreateAttachmentsRequest
|
|
210
|
+
from .create_checklist import CreateChecklist
|
|
211
|
+
from .create_checklist_request import CreateChecklistRequest
|
|
209
212
|
from .create_customer_credit import CreateCustomerCredit
|
|
210
213
|
from .create_customer_credit_request import CreateCustomerCreditRequest
|
|
211
214
|
from .create_feedback import CreateFeedback
|
|
@@ -769,6 +772,7 @@ from .openstack_tenants_retrieve_field_item import OpenstackTenantsRetrieveField
|
|
|
769
772
|
from .openstack_volumes_list_field_item import OpenstackVolumesListFieldItem
|
|
770
773
|
from .openstack_volumes_list_state_item import OpenstackVolumesListStateItem
|
|
771
774
|
from .openstack_volumes_retrieve_field_item import OpenstackVolumesRetrieveFieldItem
|
|
775
|
+
from .operator_enum import OperatorEnum
|
|
772
776
|
from .option_field import OptionField
|
|
773
777
|
from .option_field_request import OptionFieldRequest
|
|
774
778
|
from .option_field_type_enum import OptionFieldTypeEnum
|
|
@@ -803,6 +807,7 @@ from .patched_category_help_articles_request import PatchedCategoryHelpArticlesR
|
|
|
803
807
|
from .patched_cluster_security_group_request import PatchedClusterSecurityGroupRequest
|
|
804
808
|
from .patched_comment_request import PatchedCommentRequest
|
|
805
809
|
from .patched_component_user_usage_limit_request import PatchedComponentUserUsageLimitRequest
|
|
810
|
+
from .patched_create_checklist_request import PatchedCreateChecklistRequest
|
|
806
811
|
from .patched_create_customer_credit_request import PatchedCreateCustomerCreditRequest
|
|
807
812
|
from .patched_customer_estimated_cost_policy_request import PatchedCustomerEstimatedCostPolicyRequest
|
|
808
813
|
from .patched_customer_request import PatchedCustomerRequest
|
|
@@ -854,6 +859,9 @@ from .patched_proposal_review_request import PatchedProposalReviewRequest
|
|
|
854
859
|
from .patched_protected_call_request import PatchedProtectedCallRequest
|
|
855
860
|
from .patched_protected_round_request import PatchedProtectedRoundRequest
|
|
856
861
|
from .patched_provider_plan_details_request import PatchedProviderPlanDetailsRequest
|
|
862
|
+
from .patched_question_admin_request import PatchedQuestionAdminRequest
|
|
863
|
+
from .patched_question_dependency_request import PatchedQuestionDependencyRequest
|
|
864
|
+
from .patched_question_options_admin_request import PatchedQuestionOptionsAdminRequest
|
|
857
865
|
from .patched_rancher_application_request import PatchedRancherApplicationRequest
|
|
858
866
|
from .patched_rancher_application_request_answers import PatchedRancherApplicationRequestAnswers
|
|
859
867
|
from .patched_rancher_catalog_request import PatchedRancherCatalogRequest
|
|
@@ -1004,6 +1012,15 @@ from .public_offering_details import PublicOfferingDetails
|
|
|
1004
1012
|
from .public_offering_details_attributes import PublicOfferingDetailsAttributes
|
|
1005
1013
|
from .pull_marketplace_script_resource_request import PullMarketplaceScriptResourceRequest
|
|
1006
1014
|
from .query_request import QueryRequest
|
|
1015
|
+
from .question import Question
|
|
1016
|
+
from .question_admin import QuestionAdmin
|
|
1017
|
+
from .question_admin_request import QuestionAdminRequest
|
|
1018
|
+
from .question_dependency import QuestionDependency
|
|
1019
|
+
from .question_dependency_request import QuestionDependencyRequest
|
|
1020
|
+
from .question_options import QuestionOptions
|
|
1021
|
+
from .question_options_admin import QuestionOptionsAdmin
|
|
1022
|
+
from .question_options_admin_request import QuestionOptionsAdminRequest
|
|
1023
|
+
from .question_type_enum import QuestionTypeEnum
|
|
1007
1024
|
from .quota import Quota
|
|
1008
1025
|
from .quota_request import QuotaRequest
|
|
1009
1026
|
from .quotas_update_request import QuotasUpdateRequest
|
|
@@ -1466,9 +1483,10 @@ __all__ = (
|
|
|
1466
1483
|
"CategorySerializerForForNestedFields",
|
|
1467
1484
|
"CategorySerializerForForNestedFieldsRequest",
|
|
1468
1485
|
"Checklist",
|
|
1486
|
+
"ChecklistAdmin",
|
|
1469
1487
|
"ChecklistCategory",
|
|
1470
1488
|
"ChecklistCustomerStats",
|
|
1471
|
-
"
|
|
1489
|
+
"ChecklistTypeEnum",
|
|
1472
1490
|
"ClusterSecurityGroup",
|
|
1473
1491
|
"ClusterSecurityGroupRequest",
|
|
1474
1492
|
"Comment",
|
|
@@ -1502,6 +1520,8 @@ __all__ = (
|
|
|
1502
1520
|
"CountUniqueUsersConnectedWithActiveResourcesOfServiceProvider",
|
|
1503
1521
|
"CountUsersOfServiceProviders",
|
|
1504
1522
|
"CreateAttachmentsRequest",
|
|
1523
|
+
"CreateChecklist",
|
|
1524
|
+
"CreateChecklistRequest",
|
|
1505
1525
|
"CreateCustomerCredit",
|
|
1506
1526
|
"CreateCustomerCreditRequest",
|
|
1507
1527
|
"CreateFeedback",
|
|
@@ -2011,6 +2031,7 @@ __all__ = (
|
|
|
2011
2031
|
"OpenstackVolumesListStateItem",
|
|
2012
2032
|
"OpenstackVolumesRetrieveFieldItem",
|
|
2013
2033
|
"OpenStackVolumeType",
|
|
2034
|
+
"OperatorEnum",
|
|
2014
2035
|
"OptionField",
|
|
2015
2036
|
"OptionFieldRequest",
|
|
2016
2037
|
"OptionFieldTypeEnum",
|
|
@@ -2045,6 +2066,7 @@ __all__ = (
|
|
|
2045
2066
|
"PatchedClusterSecurityGroupRequest",
|
|
2046
2067
|
"PatchedCommentRequest",
|
|
2047
2068
|
"PatchedComponentUserUsageLimitRequest",
|
|
2069
|
+
"PatchedCreateChecklistRequest",
|
|
2048
2070
|
"PatchedCreateCustomerCreditRequest",
|
|
2049
2071
|
"PatchedCustomerEstimatedCostPolicyRequest",
|
|
2050
2072
|
"PatchedCustomerRequest",
|
|
@@ -2092,6 +2114,9 @@ __all__ = (
|
|
|
2092
2114
|
"PatchedProtectedCallRequest",
|
|
2093
2115
|
"PatchedProtectedRoundRequest",
|
|
2094
2116
|
"PatchedProviderPlanDetailsRequest",
|
|
2117
|
+
"PatchedQuestionAdminRequest",
|
|
2118
|
+
"PatchedQuestionDependencyRequest",
|
|
2119
|
+
"PatchedQuestionOptionsAdminRequest",
|
|
2095
2120
|
"PatchedRancherApplicationRequest",
|
|
2096
2121
|
"PatchedRancherApplicationRequestAnswers",
|
|
2097
2122
|
"PatchedRancherCatalogRequest",
|
|
@@ -2234,6 +2259,15 @@ __all__ = (
|
|
|
2234
2259
|
"PublicOfferingDetailsAttributes",
|
|
2235
2260
|
"PullMarketplaceScriptResourceRequest",
|
|
2236
2261
|
"QueryRequest",
|
|
2262
|
+
"Question",
|
|
2263
|
+
"QuestionAdmin",
|
|
2264
|
+
"QuestionAdminRequest",
|
|
2265
|
+
"QuestionDependency",
|
|
2266
|
+
"QuestionDependencyRequest",
|
|
2267
|
+
"QuestionOptions",
|
|
2268
|
+
"QuestionOptionsAdmin",
|
|
2269
|
+
"QuestionOptionsAdminRequest",
|
|
2270
|
+
"QuestionTypeEnum",
|
|
2237
2271
|
"Quota",
|
|
2238
2272
|
"QuotaRequest",
|
|
2239
2273
|
"QuotasUpdateRequest",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar, Union
|
|
2
|
+
from typing import Any, TypeVar, Union
|
|
3
3
|
from uuid import UUID
|
|
4
4
|
|
|
5
5
|
from attrs import define as _attrs_define
|
|
@@ -15,21 +15,17 @@ class AnswerList:
|
|
|
15
15
|
"""
|
|
16
16
|
Attributes:
|
|
17
17
|
question_uuid (UUID):
|
|
18
|
-
|
|
18
|
+
answer_data (Union[Unset, Any]): Flexible answer storage for different question types
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
21
|
question_uuid: UUID
|
|
22
|
-
|
|
22
|
+
answer_data: Union[Unset, Any] = UNSET
|
|
23
23
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
24
|
|
|
25
25
|
def to_dict(self) -> dict[str, Any]:
|
|
26
26
|
question_uuid = str(self.question_uuid)
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
if isinstance(self.value, Unset):
|
|
30
|
-
value = UNSET
|
|
31
|
-
else:
|
|
32
|
-
value = self.value
|
|
28
|
+
answer_data = self.answer_data
|
|
33
29
|
|
|
34
30
|
field_dict: dict[str, Any] = {}
|
|
35
31
|
field_dict.update(self.additional_properties)
|
|
@@ -38,8 +34,8 @@ class AnswerList:
|
|
|
38
34
|
"question_uuid": question_uuid,
|
|
39
35
|
}
|
|
40
36
|
)
|
|
41
|
-
if
|
|
42
|
-
field_dict["
|
|
37
|
+
if answer_data is not UNSET:
|
|
38
|
+
field_dict["answer_data"] = answer_data
|
|
43
39
|
|
|
44
40
|
return field_dict
|
|
45
41
|
|
|
@@ -48,18 +44,11 @@ class AnswerList:
|
|
|
48
44
|
d = dict(src_dict)
|
|
49
45
|
question_uuid = UUID(d.pop("question_uuid"))
|
|
50
46
|
|
|
51
|
-
|
|
52
|
-
if data is None:
|
|
53
|
-
return data
|
|
54
|
-
if isinstance(data, Unset):
|
|
55
|
-
return data
|
|
56
|
-
return cast(Union[None, Unset, bool], data)
|
|
57
|
-
|
|
58
|
-
value = _parse_value(d.pop("value", UNSET))
|
|
47
|
+
answer_data = d.pop("answer_data", UNSET)
|
|
59
48
|
|
|
60
49
|
answer_list = cls(
|
|
61
50
|
question_uuid=question_uuid,
|
|
62
|
-
|
|
51
|
+
answer_data=answer_data,
|
|
63
52
|
)
|
|
64
53
|
|
|
65
54
|
answer_list.additional_properties = d
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
3
|
from uuid import UUID
|
|
4
4
|
|
|
5
5
|
from attrs import define as _attrs_define
|
|
@@ -13,25 +13,24 @@ class AnswerSubmit:
|
|
|
13
13
|
"""
|
|
14
14
|
Attributes:
|
|
15
15
|
question_uuid (UUID):
|
|
16
|
-
|
|
16
|
+
answer_data (Any):
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
19
|
question_uuid: UUID
|
|
20
|
-
|
|
20
|
+
answer_data: Any
|
|
21
21
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
22
|
|
|
23
23
|
def to_dict(self) -> dict[str, Any]:
|
|
24
24
|
question_uuid = str(self.question_uuid)
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
value = self.value
|
|
26
|
+
answer_data = self.answer_data
|
|
28
27
|
|
|
29
28
|
field_dict: dict[str, Any] = {}
|
|
30
29
|
field_dict.update(self.additional_properties)
|
|
31
30
|
field_dict.update(
|
|
32
31
|
{
|
|
33
32
|
"question_uuid": question_uuid,
|
|
34
|
-
"
|
|
33
|
+
"answer_data": answer_data,
|
|
35
34
|
}
|
|
36
35
|
)
|
|
37
36
|
|
|
@@ -42,16 +41,11 @@ class AnswerSubmit:
|
|
|
42
41
|
d = dict(src_dict)
|
|
43
42
|
question_uuid = UUID(d.pop("question_uuid"))
|
|
44
43
|
|
|
45
|
-
|
|
46
|
-
if data is None:
|
|
47
|
-
return data
|
|
48
|
-
return cast(Union[None, bool], data)
|
|
49
|
-
|
|
50
|
-
value = _parse_value(d.pop("value"))
|
|
44
|
+
answer_data = d.pop("answer_data")
|
|
51
45
|
|
|
52
46
|
answer_submit = cls(
|
|
53
47
|
question_uuid=question_uuid,
|
|
54
|
-
|
|
48
|
+
answer_data=answer_data,
|
|
55
49
|
)
|
|
56
50
|
|
|
57
51
|
answer_submit.additional_properties = d
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
3
|
from uuid import UUID
|
|
4
4
|
|
|
5
5
|
from attrs import define as _attrs_define
|
|
@@ -13,25 +13,24 @@ class AnswerSubmitRequest:
|
|
|
13
13
|
"""
|
|
14
14
|
Attributes:
|
|
15
15
|
question_uuid (UUID):
|
|
16
|
-
|
|
16
|
+
answer_data (Any):
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
19
|
question_uuid: UUID
|
|
20
|
-
|
|
20
|
+
answer_data: Any
|
|
21
21
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
22
|
|
|
23
23
|
def to_dict(self) -> dict[str, Any]:
|
|
24
24
|
question_uuid = str(self.question_uuid)
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
value = self.value
|
|
26
|
+
answer_data = self.answer_data
|
|
28
27
|
|
|
29
28
|
field_dict: dict[str, Any] = {}
|
|
30
29
|
field_dict.update(self.additional_properties)
|
|
31
30
|
field_dict.update(
|
|
32
31
|
{
|
|
33
32
|
"question_uuid": question_uuid,
|
|
34
|
-
"
|
|
33
|
+
"answer_data": answer_data,
|
|
35
34
|
}
|
|
36
35
|
)
|
|
37
36
|
|
|
@@ -42,16 +41,11 @@ class AnswerSubmitRequest:
|
|
|
42
41
|
d = dict(src_dict)
|
|
43
42
|
question_uuid = UUID(d.pop("question_uuid"))
|
|
44
43
|
|
|
45
|
-
|
|
46
|
-
if data is None:
|
|
47
|
-
return data
|
|
48
|
-
return cast(Union[None, bool], data)
|
|
49
|
-
|
|
50
|
-
value = _parse_value(d.pop("value"))
|
|
44
|
+
answer_data = d.pop("answer_data")
|
|
51
45
|
|
|
52
46
|
answer_submit_request = cls(
|
|
53
47
|
question_uuid=question_uuid,
|
|
54
|
-
|
|
48
|
+
answer_data=answer_data,
|
|
55
49
|
)
|
|
56
50
|
|
|
57
51
|
answer_submit_request.additional_properties = d
|
|
@@ -74,8 +74,10 @@ class BookingResource:
|
|
|
74
74
|
project_end_date_requested_by (Union[Unset, str]):
|
|
75
75
|
customer_uuid (Union[Unset, UUID]):
|
|
76
76
|
customer_name (Union[Unset, str]):
|
|
77
|
+
offering_slug (Union[Unset, str]):
|
|
77
78
|
parent_offering_uuid (Union[Unset, UUID]):
|
|
78
79
|
parent_offering_name (Union[Unset, str]):
|
|
80
|
+
parent_offering_slug (Union[Unset, str]):
|
|
79
81
|
parent_uuid (Union[Unset, UUID]):
|
|
80
82
|
parent_name (Union[Unset, str]):
|
|
81
83
|
backend_metadata (Union[Unset, BackendMetadata]):
|
|
@@ -159,8 +161,10 @@ class BookingResource:
|
|
|
159
161
|
project_end_date_requested_by: Union[Unset, str] = UNSET
|
|
160
162
|
customer_uuid: Union[Unset, UUID] = UNSET
|
|
161
163
|
customer_name: Union[Unset, str] = UNSET
|
|
164
|
+
offering_slug: Union[Unset, str] = UNSET
|
|
162
165
|
parent_offering_uuid: Union[Unset, UUID] = UNSET
|
|
163
166
|
parent_offering_name: Union[Unset, str] = UNSET
|
|
167
|
+
parent_offering_slug: Union[Unset, str] = UNSET
|
|
164
168
|
parent_uuid: Union[Unset, UUID] = UNSET
|
|
165
169
|
parent_name: Union[Unset, str] = UNSET
|
|
166
170
|
backend_metadata: Union[Unset, "BackendMetadata"] = UNSET
|
|
@@ -344,12 +348,16 @@ class BookingResource:
|
|
|
344
348
|
|
|
345
349
|
customer_name = self.customer_name
|
|
346
350
|
|
|
351
|
+
offering_slug = self.offering_slug
|
|
352
|
+
|
|
347
353
|
parent_offering_uuid: Union[Unset, str] = UNSET
|
|
348
354
|
if not isinstance(self.parent_offering_uuid, Unset):
|
|
349
355
|
parent_offering_uuid = str(self.parent_offering_uuid)
|
|
350
356
|
|
|
351
357
|
parent_offering_name = self.parent_offering_name
|
|
352
358
|
|
|
359
|
+
parent_offering_slug = self.parent_offering_slug
|
|
360
|
+
|
|
353
361
|
parent_uuid: Union[Unset, str] = UNSET
|
|
354
362
|
if not isinstance(self.parent_uuid, Unset):
|
|
355
363
|
parent_uuid = str(self.parent_uuid)
|
|
@@ -566,10 +574,14 @@ class BookingResource:
|
|
|
566
574
|
field_dict["customer_uuid"] = customer_uuid
|
|
567
575
|
if customer_name is not UNSET:
|
|
568
576
|
field_dict["customer_name"] = customer_name
|
|
577
|
+
if offering_slug is not UNSET:
|
|
578
|
+
field_dict["offering_slug"] = offering_slug
|
|
569
579
|
if parent_offering_uuid is not UNSET:
|
|
570
580
|
field_dict["parent_offering_uuid"] = parent_offering_uuid
|
|
571
581
|
if parent_offering_name is not UNSET:
|
|
572
582
|
field_dict["parent_offering_name"] = parent_offering_name
|
|
583
|
+
if parent_offering_slug is not UNSET:
|
|
584
|
+
field_dict["parent_offering_slug"] = parent_offering_slug
|
|
573
585
|
if parent_uuid is not UNSET:
|
|
574
586
|
field_dict["parent_uuid"] = parent_uuid
|
|
575
587
|
if parent_name is not UNSET:
|
|
@@ -878,6 +890,8 @@ class BookingResource:
|
|
|
878
890
|
|
|
879
891
|
customer_name = d.pop("customer_name", UNSET)
|
|
880
892
|
|
|
893
|
+
offering_slug = d.pop("offering_slug", UNSET)
|
|
894
|
+
|
|
881
895
|
_parent_offering_uuid = d.pop("parent_offering_uuid", UNSET)
|
|
882
896
|
parent_offering_uuid: Union[Unset, UUID]
|
|
883
897
|
if isinstance(_parent_offering_uuid, Unset):
|
|
@@ -887,6 +901,8 @@ class BookingResource:
|
|
|
887
901
|
|
|
888
902
|
parent_offering_name = d.pop("parent_offering_name", UNSET)
|
|
889
903
|
|
|
904
|
+
parent_offering_slug = d.pop("parent_offering_slug", UNSET)
|
|
905
|
+
|
|
890
906
|
_parent_uuid = d.pop("parent_uuid", UNSET)
|
|
891
907
|
parent_uuid: Union[Unset, UUID]
|
|
892
908
|
if isinstance(_parent_uuid, Unset):
|
|
@@ -1111,8 +1127,10 @@ class BookingResource:
|
|
|
1111
1127
|
project_end_date_requested_by=project_end_date_requested_by,
|
|
1112
1128
|
customer_uuid=customer_uuid,
|
|
1113
1129
|
customer_name=customer_name,
|
|
1130
|
+
offering_slug=offering_slug,
|
|
1114
1131
|
parent_offering_uuid=parent_offering_uuid,
|
|
1115
1132
|
parent_offering_name=parent_offering_name,
|
|
1133
|
+
parent_offering_slug=parent_offering_slug,
|
|
1116
1134
|
parent_uuid=parent_uuid,
|
|
1117
1135
|
parent_name=parent_name,
|
|
1118
1136
|
backend_metadata=backend_metadata,
|
|
@@ -45,6 +45,7 @@ class BookingResourcesListFieldItem(str, Enum):
|
|
|
45
45
|
OFFERING_NAME = "offering_name"
|
|
46
46
|
OFFERING_PLUGIN_OPTIONS = "offering_plugin_options"
|
|
47
47
|
OFFERING_SHARED = "offering_shared"
|
|
48
|
+
OFFERING_SLUG = "offering_slug"
|
|
48
49
|
OFFERING_TERMS_OF_SERVICE = "offering_terms_of_service"
|
|
49
50
|
OFFERING_THUMBNAIL = "offering_thumbnail"
|
|
50
51
|
OFFERING_TYPE = "offering_type"
|
|
@@ -53,6 +54,7 @@ class BookingResourcesListFieldItem(str, Enum):
|
|
|
53
54
|
ORDER_IN_PROGRESS = "order_in_progress"
|
|
54
55
|
PARENT_NAME = "parent_name"
|
|
55
56
|
PARENT_OFFERING_NAME = "parent_offering_name"
|
|
57
|
+
PARENT_OFFERING_SLUG = "parent_offering_slug"
|
|
56
58
|
PARENT_OFFERING_UUID = "parent_offering_uuid"
|
|
57
59
|
PARENT_UUID = "parent_uuid"
|
|
58
60
|
PAUSED = "paused"
|
|
@@ -45,6 +45,7 @@ class BookingResourcesRetrieveFieldItem(str, Enum):
|
|
|
45
45
|
OFFERING_NAME = "offering_name"
|
|
46
46
|
OFFERING_PLUGIN_OPTIONS = "offering_plugin_options"
|
|
47
47
|
OFFERING_SHARED = "offering_shared"
|
|
48
|
+
OFFERING_SLUG = "offering_slug"
|
|
48
49
|
OFFERING_TERMS_OF_SERVICE = "offering_terms_of_service"
|
|
49
50
|
OFFERING_THUMBNAIL = "offering_thumbnail"
|
|
50
51
|
OFFERING_TYPE = "offering_type"
|
|
@@ -53,6 +54,7 @@ class BookingResourcesRetrieveFieldItem(str, Enum):
|
|
|
53
54
|
ORDER_IN_PROGRESS = "order_in_progress"
|
|
54
55
|
PARENT_NAME = "parent_name"
|
|
55
56
|
PARENT_OFFERING_NAME = "parent_offering_name"
|
|
57
|
+
PARENT_OFFERING_SLUG = "parent_offering_slug"
|
|
56
58
|
PARENT_OFFERING_UUID = "parent_offering_uuid"
|
|
57
59
|
PARENT_UUID = "parent_uuid"
|
|
58
60
|
PAUSED = "paused"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import datetime
|
|
2
2
|
from collections.abc import Mapping
|
|
3
|
-
from typing import Any, TypeVar, Union, cast
|
|
3
|
+
from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
|
|
4
4
|
from uuid import UUID
|
|
5
5
|
|
|
6
6
|
from attrs import define as _attrs_define
|
|
@@ -9,6 +9,10 @@ from dateutil.parser import isoparse
|
|
|
9
9
|
|
|
10
10
|
from ..types import UNSET, Unset
|
|
11
11
|
|
|
12
|
+
if TYPE_CHECKING:
|
|
13
|
+
from ..models.base_public_plan import BasePublicPlan
|
|
14
|
+
|
|
15
|
+
|
|
12
16
|
T = TypeVar("T", bound="CallResourceTemplate")
|
|
13
17
|
|
|
14
18
|
|
|
@@ -26,6 +30,7 @@ class CallResourceTemplate:
|
|
|
26
30
|
requested_offering (Union[Unset, str]):
|
|
27
31
|
requested_offering_name (Union[Unset, str]):
|
|
28
32
|
requested_offering_uuid (Union[Unset, UUID]):
|
|
33
|
+
requested_offering_plan (Union[Unset, BasePublicPlan]):
|
|
29
34
|
created_by (Union[None, Unset, str]):
|
|
30
35
|
created_by_name (Union[Unset, str]):
|
|
31
36
|
created (Union[Unset, datetime.datetime]):
|
|
@@ -41,6 +46,7 @@ class CallResourceTemplate:
|
|
|
41
46
|
requested_offering: Union[Unset, str] = UNSET
|
|
42
47
|
requested_offering_name: Union[Unset, str] = UNSET
|
|
43
48
|
requested_offering_uuid: Union[Unset, UUID] = UNSET
|
|
49
|
+
requested_offering_plan: Union[Unset, "BasePublicPlan"] = UNSET
|
|
44
50
|
created_by: Union[None, Unset, str] = UNSET
|
|
45
51
|
created_by_name: Union[Unset, str] = UNSET
|
|
46
52
|
created: Union[Unset, datetime.datetime] = UNSET
|
|
@@ -71,6 +77,10 @@ class CallResourceTemplate:
|
|
|
71
77
|
if not isinstance(self.requested_offering_uuid, Unset):
|
|
72
78
|
requested_offering_uuid = str(self.requested_offering_uuid)
|
|
73
79
|
|
|
80
|
+
requested_offering_plan: Union[Unset, dict[str, Any]] = UNSET
|
|
81
|
+
if not isinstance(self.requested_offering_plan, Unset):
|
|
82
|
+
requested_offering_plan = self.requested_offering_plan.to_dict()
|
|
83
|
+
|
|
74
84
|
created_by: Union[None, Unset, str]
|
|
75
85
|
if isinstance(self.created_by, Unset):
|
|
76
86
|
created_by = UNSET
|
|
@@ -106,6 +116,8 @@ class CallResourceTemplate:
|
|
|
106
116
|
field_dict["requested_offering_name"] = requested_offering_name
|
|
107
117
|
if requested_offering_uuid is not UNSET:
|
|
108
118
|
field_dict["requested_offering_uuid"] = requested_offering_uuid
|
|
119
|
+
if requested_offering_plan is not UNSET:
|
|
120
|
+
field_dict["requested_offering_plan"] = requested_offering_plan
|
|
109
121
|
if created_by is not UNSET:
|
|
110
122
|
field_dict["created_by"] = created_by
|
|
111
123
|
if created_by_name is not UNSET:
|
|
@@ -117,6 +129,8 @@ class CallResourceTemplate:
|
|
|
117
129
|
|
|
118
130
|
@classmethod
|
|
119
131
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
132
|
+
from ..models.base_public_plan import BasePublicPlan
|
|
133
|
+
|
|
120
134
|
d = dict(src_dict)
|
|
121
135
|
_uuid = d.pop("uuid", UNSET)
|
|
122
136
|
uuid: Union[Unset, UUID]
|
|
@@ -148,6 +162,13 @@ class CallResourceTemplate:
|
|
|
148
162
|
else:
|
|
149
163
|
requested_offering_uuid = UUID(_requested_offering_uuid)
|
|
150
164
|
|
|
165
|
+
_requested_offering_plan = d.pop("requested_offering_plan", UNSET)
|
|
166
|
+
requested_offering_plan: Union[Unset, BasePublicPlan]
|
|
167
|
+
if isinstance(_requested_offering_plan, Unset):
|
|
168
|
+
requested_offering_plan = UNSET
|
|
169
|
+
else:
|
|
170
|
+
requested_offering_plan = BasePublicPlan.from_dict(_requested_offering_plan)
|
|
171
|
+
|
|
151
172
|
def _parse_created_by(data: object) -> Union[None, Unset, str]:
|
|
152
173
|
if data is None:
|
|
153
174
|
return data
|
|
@@ -177,6 +198,7 @@ class CallResourceTemplate:
|
|
|
177
198
|
requested_offering=requested_offering,
|
|
178
199
|
requested_offering_name=requested_offering_name,
|
|
179
200
|
requested_offering_uuid=requested_offering_uuid,
|
|
201
|
+
requested_offering_plan=requested_offering_plan,
|
|
180
202
|
created_by=created_by,
|
|
181
203
|
created_by_name=created_by_name,
|
|
182
204
|
created=created,
|
|
@@ -15,6 +15,7 @@ class Checklist:
|
|
|
15
15
|
"""
|
|
16
16
|
Attributes:
|
|
17
17
|
uuid (UUID):
|
|
18
|
+
url (str):
|
|
18
19
|
name (str):
|
|
19
20
|
questions_count (int):
|
|
20
21
|
category_name (str):
|
|
@@ -24,6 +25,7 @@ class Checklist:
|
|
|
24
25
|
"""
|
|
25
26
|
|
|
26
27
|
uuid: UUID
|
|
28
|
+
url: str
|
|
27
29
|
name: str
|
|
28
30
|
questions_count: int
|
|
29
31
|
category_name: str
|
|
@@ -35,6 +37,8 @@ class Checklist:
|
|
|
35
37
|
def to_dict(self) -> dict[str, Any]:
|
|
36
38
|
uuid = str(self.uuid)
|
|
37
39
|
|
|
40
|
+
url = self.url
|
|
41
|
+
|
|
38
42
|
name = self.name
|
|
39
43
|
|
|
40
44
|
questions_count = self.questions_count
|
|
@@ -52,6 +56,7 @@ class Checklist:
|
|
|
52
56
|
field_dict.update(
|
|
53
57
|
{
|
|
54
58
|
"uuid": uuid,
|
|
59
|
+
"url": url,
|
|
55
60
|
"name": name,
|
|
56
61
|
"questions_count": questions_count,
|
|
57
62
|
"category_name": category_name,
|
|
@@ -69,6 +74,8 @@ class Checklist:
|
|
|
69
74
|
d = dict(src_dict)
|
|
70
75
|
uuid = UUID(d.pop("uuid"))
|
|
71
76
|
|
|
77
|
+
url = d.pop("url")
|
|
78
|
+
|
|
72
79
|
name = d.pop("name")
|
|
73
80
|
|
|
74
81
|
questions_count = d.pop("questions_count")
|
|
@@ -83,6 +90,7 @@ class Checklist:
|
|
|
83
90
|
|
|
84
91
|
checklist = cls(
|
|
85
92
|
uuid=uuid,
|
|
93
|
+
url=url,
|
|
86
94
|
name=name,
|
|
87
95
|
questions_count=questions_count,
|
|
88
96
|
category_name=category_name,
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union, cast
|
|
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="ChecklistAdmin")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class ChecklistAdmin:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
uuid (UUID):
|
|
18
|
+
url (str):
|
|
19
|
+
name (str):
|
|
20
|
+
questions_count (int):
|
|
21
|
+
category_name (str):
|
|
22
|
+
category_uuid (UUID):
|
|
23
|
+
roles (list[str]):
|
|
24
|
+
checklist_type (str):
|
|
25
|
+
description (Union[Unset, str]):
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
uuid: UUID
|
|
29
|
+
url: str
|
|
30
|
+
name: str
|
|
31
|
+
questions_count: int
|
|
32
|
+
category_name: str
|
|
33
|
+
category_uuid: UUID
|
|
34
|
+
roles: list[str]
|
|
35
|
+
checklist_type: str
|
|
36
|
+
description: Union[Unset, str] = UNSET
|
|
37
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
38
|
+
|
|
39
|
+
def to_dict(self) -> dict[str, Any]:
|
|
40
|
+
uuid = str(self.uuid)
|
|
41
|
+
|
|
42
|
+
url = self.url
|
|
43
|
+
|
|
44
|
+
name = self.name
|
|
45
|
+
|
|
46
|
+
questions_count = self.questions_count
|
|
47
|
+
|
|
48
|
+
category_name = self.category_name
|
|
49
|
+
|
|
50
|
+
category_uuid = str(self.category_uuid)
|
|
51
|
+
|
|
52
|
+
roles = self.roles
|
|
53
|
+
|
|
54
|
+
checklist_type = self.checklist_type
|
|
55
|
+
|
|
56
|
+
description = self.description
|
|
57
|
+
|
|
58
|
+
field_dict: dict[str, Any] = {}
|
|
59
|
+
field_dict.update(self.additional_properties)
|
|
60
|
+
field_dict.update(
|
|
61
|
+
{
|
|
62
|
+
"uuid": uuid,
|
|
63
|
+
"url": url,
|
|
64
|
+
"name": name,
|
|
65
|
+
"questions_count": questions_count,
|
|
66
|
+
"category_name": category_name,
|
|
67
|
+
"category_uuid": category_uuid,
|
|
68
|
+
"roles": roles,
|
|
69
|
+
"checklist_type": checklist_type,
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
if description is not UNSET:
|
|
73
|
+
field_dict["description"] = description
|
|
74
|
+
|
|
75
|
+
return field_dict
|
|
76
|
+
|
|
77
|
+
@classmethod
|
|
78
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
79
|
+
d = dict(src_dict)
|
|
80
|
+
uuid = UUID(d.pop("uuid"))
|
|
81
|
+
|
|
82
|
+
url = d.pop("url")
|
|
83
|
+
|
|
84
|
+
name = d.pop("name")
|
|
85
|
+
|
|
86
|
+
questions_count = d.pop("questions_count")
|
|
87
|
+
|
|
88
|
+
category_name = d.pop("category_name")
|
|
89
|
+
|
|
90
|
+
category_uuid = UUID(d.pop("category_uuid"))
|
|
91
|
+
|
|
92
|
+
roles = cast(list[str], d.pop("roles"))
|
|
93
|
+
|
|
94
|
+
checklist_type = d.pop("checklist_type")
|
|
95
|
+
|
|
96
|
+
description = d.pop("description", UNSET)
|
|
97
|
+
|
|
98
|
+
checklist_admin = cls(
|
|
99
|
+
uuid=uuid,
|
|
100
|
+
url=url,
|
|
101
|
+
name=name,
|
|
102
|
+
questions_count=questions_count,
|
|
103
|
+
category_name=category_name,
|
|
104
|
+
category_uuid=category_uuid,
|
|
105
|
+
roles=roles,
|
|
106
|
+
checklist_type=checklist_type,
|
|
107
|
+
description=description,
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
checklist_admin.additional_properties = d
|
|
111
|
+
return checklist_admin
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
def additional_keys(self) -> list[str]:
|
|
115
|
+
return list(self.additional_properties.keys())
|
|
116
|
+
|
|
117
|
+
def __getitem__(self, key: str) -> Any:
|
|
118
|
+
return self.additional_properties[key]
|
|
119
|
+
|
|
120
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
121
|
+
self.additional_properties[key] = value
|
|
122
|
+
|
|
123
|
+
def __delitem__(self, key: str) -> None:
|
|
124
|
+
del self.additional_properties[key]
|
|
125
|
+
|
|
126
|
+
def __contains__(self, key: str) -> bool:
|
|
127
|
+
return key in self.additional_properties
|