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,105 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Union
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.offering_user_request import OfferingUserRequest
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
uuid: UUID,
|
|
15
|
+
*,
|
|
16
|
+
body: OfferingUserRequest,
|
|
17
|
+
) -> dict[str, Any]:
|
|
18
|
+
headers: dict[str, Any] = {}
|
|
19
|
+
|
|
20
|
+
_kwargs: dict[str, Any] = {
|
|
21
|
+
"method": "post",
|
|
22
|
+
"url": f"/api/marketplace-offering-users/{uuid}/set_validation_complete/",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
_kwargs["json"] = body.to_dict()
|
|
26
|
+
|
|
27
|
+
headers["Content-Type"] = "application/json"
|
|
28
|
+
|
|
29
|
+
_kwargs["headers"] = headers
|
|
30
|
+
return _kwargs
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Any:
|
|
34
|
+
if response.status_code == 200:
|
|
35
|
+
return None
|
|
36
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
|
|
40
|
+
return Response(
|
|
41
|
+
status_code=HTTPStatus(response.status_code),
|
|
42
|
+
content=response.content,
|
|
43
|
+
headers=response.headers,
|
|
44
|
+
parsed=_parse_response(client=client, response=response),
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def sync_detailed(
|
|
49
|
+
uuid: UUID,
|
|
50
|
+
*,
|
|
51
|
+
client: AuthenticatedClient,
|
|
52
|
+
body: OfferingUserRequest,
|
|
53
|
+
) -> Response[Any]:
|
|
54
|
+
"""
|
|
55
|
+
Args:
|
|
56
|
+
uuid (UUID):
|
|
57
|
+
body (OfferingUserRequest):
|
|
58
|
+
|
|
59
|
+
Raises:
|
|
60
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
61
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
62
|
+
|
|
63
|
+
Returns:
|
|
64
|
+
Response[Any]
|
|
65
|
+
"""
|
|
66
|
+
|
|
67
|
+
kwargs = _get_kwargs(
|
|
68
|
+
uuid=uuid,
|
|
69
|
+
body=body,
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
response = client.get_httpx_client().request(
|
|
73
|
+
**kwargs,
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
return _build_response(client=client, response=response)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
async def asyncio_detailed(
|
|
80
|
+
uuid: UUID,
|
|
81
|
+
*,
|
|
82
|
+
client: AuthenticatedClient,
|
|
83
|
+
body: OfferingUserRequest,
|
|
84
|
+
) -> Response[Any]:
|
|
85
|
+
"""
|
|
86
|
+
Args:
|
|
87
|
+
uuid (UUID):
|
|
88
|
+
body (OfferingUserRequest):
|
|
89
|
+
|
|
90
|
+
Raises:
|
|
91
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code.
|
|
92
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
93
|
+
|
|
94
|
+
Returns:
|
|
95
|
+
Response[Any]
|
|
96
|
+
"""
|
|
97
|
+
|
|
98
|
+
kwargs = _get_kwargs(
|
|
99
|
+
uuid=uuid,
|
|
100
|
+
body=body,
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
104
|
+
|
|
105
|
+
return _build_response(client=client, response=response)
|
|
@@ -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
|
|
@@ -309,6 +312,7 @@ from .identity_provider_request import IdentityProviderRequest
|
|
|
309
312
|
from .image_create_request import ImageCreateRequest
|
|
310
313
|
from .image_create_response import ImageCreateResponse
|
|
311
314
|
from .image_upload_response import ImageUploadResponse
|
|
315
|
+
from .impact_level_display_enum import ImpactLevelDisplayEnum
|
|
312
316
|
from .impact_level_enum import ImpactLevelEnum
|
|
313
317
|
from .import_resource_request import ImportResourceRequest
|
|
314
318
|
from .importable_resource import ImportableResource
|
|
@@ -419,6 +423,7 @@ from .marketplace_offering_permissions_log_list_o_item import MarketplaceOfferin
|
|
|
419
423
|
from .marketplace_offering_referrals_list_o_item import MarketplaceOfferingReferralsListOItem
|
|
420
424
|
from .marketplace_offering_users_list_field_item import MarketplaceOfferingUsersListFieldItem
|
|
421
425
|
from .marketplace_offering_users_list_o_item import MarketplaceOfferingUsersListOItem
|
|
426
|
+
from .marketplace_offering_users_list_state_item import MarketplaceOfferingUsersListStateItem
|
|
422
427
|
from .marketplace_offering_users_retrieve_field_item import MarketplaceOfferingUsersRetrieveFieldItem
|
|
423
428
|
from .marketplace_orders_list_field_item import MarketplaceOrdersListFieldItem
|
|
424
429
|
from .marketplace_orders_list_o_item import MarketplaceOrdersListOItem
|
|
@@ -613,6 +618,8 @@ from .offering_user import OfferingUser
|
|
|
613
618
|
from .offering_user_request import OfferingUserRequest
|
|
614
619
|
from .offering_user_role import OfferingUserRole
|
|
615
620
|
from .offering_user_role_request import OfferingUserRoleRequest
|
|
621
|
+
from .offering_user_state_enum import OfferingUserStateEnum
|
|
622
|
+
from .offering_user_state_transition_request import OfferingUserStateTransitionRequest
|
|
616
623
|
from .offering_user_update_restriction_request import OfferingUserUpdateRestrictionRequest
|
|
617
624
|
from .open_stack_allowed_address_pair import OpenStackAllowedAddressPair
|
|
618
625
|
from .open_stack_allowed_address_pair_request import OpenStackAllowedAddressPairRequest
|
|
@@ -769,6 +776,7 @@ from .openstack_tenants_retrieve_field_item import OpenstackTenantsRetrieveField
|
|
|
769
776
|
from .openstack_volumes_list_field_item import OpenstackVolumesListFieldItem
|
|
770
777
|
from .openstack_volumes_list_state_item import OpenstackVolumesListStateItem
|
|
771
778
|
from .openstack_volumes_retrieve_field_item import OpenstackVolumesRetrieveFieldItem
|
|
779
|
+
from .operator_enum import OperatorEnum
|
|
772
780
|
from .option_field import OptionField
|
|
773
781
|
from .option_field_request import OptionFieldRequest
|
|
774
782
|
from .option_field_type_enum import OptionFieldTypeEnum
|
|
@@ -803,6 +811,7 @@ from .patched_category_help_articles_request import PatchedCategoryHelpArticlesR
|
|
|
803
811
|
from .patched_cluster_security_group_request import PatchedClusterSecurityGroupRequest
|
|
804
812
|
from .patched_comment_request import PatchedCommentRequest
|
|
805
813
|
from .patched_component_user_usage_limit_request import PatchedComponentUserUsageLimitRequest
|
|
814
|
+
from .patched_create_checklist_request import PatchedCreateChecklistRequest
|
|
806
815
|
from .patched_create_customer_credit_request import PatchedCreateCustomerCreditRequest
|
|
807
816
|
from .patched_customer_estimated_cost_policy_request import PatchedCustomerEstimatedCostPolicyRequest
|
|
808
817
|
from .patched_customer_request import PatchedCustomerRequest
|
|
@@ -854,6 +863,9 @@ from .patched_proposal_review_request import PatchedProposalReviewRequest
|
|
|
854
863
|
from .patched_protected_call_request import PatchedProtectedCallRequest
|
|
855
864
|
from .patched_protected_round_request import PatchedProtectedRoundRequest
|
|
856
865
|
from .patched_provider_plan_details_request import PatchedProviderPlanDetailsRequest
|
|
866
|
+
from .patched_question_admin_request import PatchedQuestionAdminRequest
|
|
867
|
+
from .patched_question_dependency_request import PatchedQuestionDependencyRequest
|
|
868
|
+
from .patched_question_options_admin_request import PatchedQuestionOptionsAdminRequest
|
|
857
869
|
from .patched_rancher_application_request import PatchedRancherApplicationRequest
|
|
858
870
|
from .patched_rancher_application_request_answers import PatchedRancherApplicationRequestAnswers
|
|
859
871
|
from .patched_rancher_catalog_request import PatchedRancherCatalogRequest
|
|
@@ -1004,6 +1016,15 @@ from .public_offering_details import PublicOfferingDetails
|
|
|
1004
1016
|
from .public_offering_details_attributes import PublicOfferingDetailsAttributes
|
|
1005
1017
|
from .pull_marketplace_script_resource_request import PullMarketplaceScriptResourceRequest
|
|
1006
1018
|
from .query_request import QueryRequest
|
|
1019
|
+
from .question import Question
|
|
1020
|
+
from .question_admin import QuestionAdmin
|
|
1021
|
+
from .question_admin_request import QuestionAdminRequest
|
|
1022
|
+
from .question_dependency import QuestionDependency
|
|
1023
|
+
from .question_dependency_request import QuestionDependencyRequest
|
|
1024
|
+
from .question_options import QuestionOptions
|
|
1025
|
+
from .question_options_admin import QuestionOptionsAdmin
|
|
1026
|
+
from .question_options_admin_request import QuestionOptionsAdminRequest
|
|
1027
|
+
from .question_type_enum import QuestionTypeEnum
|
|
1007
1028
|
from .quota import Quota
|
|
1008
1029
|
from .quota_request import QuotaRequest
|
|
1009
1030
|
from .quotas_update_request import QuotasUpdateRequest
|
|
@@ -1466,9 +1487,10 @@ __all__ = (
|
|
|
1466
1487
|
"CategorySerializerForForNestedFields",
|
|
1467
1488
|
"CategorySerializerForForNestedFieldsRequest",
|
|
1468
1489
|
"Checklist",
|
|
1490
|
+
"ChecklistAdmin",
|
|
1469
1491
|
"ChecklistCategory",
|
|
1470
1492
|
"ChecklistCustomerStats",
|
|
1471
|
-
"
|
|
1493
|
+
"ChecklistTypeEnum",
|
|
1472
1494
|
"ClusterSecurityGroup",
|
|
1473
1495
|
"ClusterSecurityGroupRequest",
|
|
1474
1496
|
"Comment",
|
|
@@ -1502,6 +1524,8 @@ __all__ = (
|
|
|
1502
1524
|
"CountUniqueUsersConnectedWithActiveResourcesOfServiceProvider",
|
|
1503
1525
|
"CountUsersOfServiceProviders",
|
|
1504
1526
|
"CreateAttachmentsRequest",
|
|
1527
|
+
"CreateChecklist",
|
|
1528
|
+
"CreateChecklistRequest",
|
|
1505
1529
|
"CreateCustomerCredit",
|
|
1506
1530
|
"CreateCustomerCreditRequest",
|
|
1507
1531
|
"CreateFeedback",
|
|
@@ -1603,6 +1627,7 @@ __all__ = (
|
|
|
1603
1627
|
"ImageCreateRequest",
|
|
1604
1628
|
"ImageCreateResponse",
|
|
1605
1629
|
"ImageUploadResponse",
|
|
1630
|
+
"ImpactLevelDisplayEnum",
|
|
1606
1631
|
"ImpactLevelEnum",
|
|
1607
1632
|
"ImportableResource",
|
|
1608
1633
|
"ImportResourceRequest",
|
|
@@ -1709,6 +1734,7 @@ __all__ = (
|
|
|
1709
1734
|
"MarketplaceOfferingReferralsListOItem",
|
|
1710
1735
|
"MarketplaceOfferingUsersListFieldItem",
|
|
1711
1736
|
"MarketplaceOfferingUsersListOItem",
|
|
1737
|
+
"MarketplaceOfferingUsersListStateItem",
|
|
1712
1738
|
"MarketplaceOfferingUsersRetrieveFieldItem",
|
|
1713
1739
|
"MarketplaceOrdersListFieldItem",
|
|
1714
1740
|
"MarketplaceOrdersListOItem",
|
|
@@ -1879,6 +1905,8 @@ __all__ = (
|
|
|
1879
1905
|
"OfferingUserRequest",
|
|
1880
1906
|
"OfferingUserRole",
|
|
1881
1907
|
"OfferingUserRoleRequest",
|
|
1908
|
+
"OfferingUserStateEnum",
|
|
1909
|
+
"OfferingUserStateTransitionRequest",
|
|
1882
1910
|
"OfferingUserUpdateRestrictionRequest",
|
|
1883
1911
|
"OpenStackAllowedAddressPair",
|
|
1884
1912
|
"OpenStackAllowedAddressPairRequest",
|
|
@@ -2011,6 +2039,7 @@ __all__ = (
|
|
|
2011
2039
|
"OpenstackVolumesListStateItem",
|
|
2012
2040
|
"OpenstackVolumesRetrieveFieldItem",
|
|
2013
2041
|
"OpenStackVolumeType",
|
|
2042
|
+
"OperatorEnum",
|
|
2014
2043
|
"OptionField",
|
|
2015
2044
|
"OptionFieldRequest",
|
|
2016
2045
|
"OptionFieldTypeEnum",
|
|
@@ -2045,6 +2074,7 @@ __all__ = (
|
|
|
2045
2074
|
"PatchedClusterSecurityGroupRequest",
|
|
2046
2075
|
"PatchedCommentRequest",
|
|
2047
2076
|
"PatchedComponentUserUsageLimitRequest",
|
|
2077
|
+
"PatchedCreateChecklistRequest",
|
|
2048
2078
|
"PatchedCreateCustomerCreditRequest",
|
|
2049
2079
|
"PatchedCustomerEstimatedCostPolicyRequest",
|
|
2050
2080
|
"PatchedCustomerRequest",
|
|
@@ -2092,6 +2122,9 @@ __all__ = (
|
|
|
2092
2122
|
"PatchedProtectedCallRequest",
|
|
2093
2123
|
"PatchedProtectedRoundRequest",
|
|
2094
2124
|
"PatchedProviderPlanDetailsRequest",
|
|
2125
|
+
"PatchedQuestionAdminRequest",
|
|
2126
|
+
"PatchedQuestionDependencyRequest",
|
|
2127
|
+
"PatchedQuestionOptionsAdminRequest",
|
|
2095
2128
|
"PatchedRancherApplicationRequest",
|
|
2096
2129
|
"PatchedRancherApplicationRequestAnswers",
|
|
2097
2130
|
"PatchedRancherCatalogRequest",
|
|
@@ -2234,6 +2267,15 @@ __all__ = (
|
|
|
2234
2267
|
"PublicOfferingDetailsAttributes",
|
|
2235
2268
|
"PullMarketplaceScriptResourceRequest",
|
|
2236
2269
|
"QueryRequest",
|
|
2270
|
+
"Question",
|
|
2271
|
+
"QuestionAdmin",
|
|
2272
|
+
"QuestionAdminRequest",
|
|
2273
|
+
"QuestionDependency",
|
|
2274
|
+
"QuestionDependencyRequest",
|
|
2275
|
+
"QuestionOptions",
|
|
2276
|
+
"QuestionOptionsAdmin",
|
|
2277
|
+
"QuestionOptionsAdminRequest",
|
|
2278
|
+
"QuestionTypeEnum",
|
|
2237
2279
|
"Quota",
|
|
2238
2280
|
"QuotaRequest",
|
|
2239
2281
|
"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,
|