Skip to content

Commit

Permalink
fix: handle schema sequences within choices
Browse files Browse the repository at this point in the history
This is a pretty rough fix, but makes things usable
  • Loading branch information
nigelm committed Mar 12, 2022
1 parent a0f4ded commit 16c2e75
Show file tree
Hide file tree
Showing 8 changed files with 776 additions and 952 deletions.
767 changes: 317 additions & 450 deletions broadworks_ocip/requests.py

Large diffs are not rendered by default.

296 changes: 89 additions & 207 deletions broadworks_ocip/responses.py

Large diffs are not rendered by default.

25 changes: 9 additions & 16 deletions broadworks_ocip/types.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Broadworks OCI-P Interface Type Classes"""
# Autogenerated from the Broadworks XML Schemas.
# Do not edit as changes will be overwritten.
# Generated on 2022-03-02T20:23:46.337577
# Generated on 2022-03-12T10:21:34.210441
from typing import List
from typing import Tuple

Expand Down Expand Up @@ -1772,9 +1772,9 @@ class CallCenterScheduledReportAgentSelectionAdminRead(OCIType):
Attributes:
all_agent (bool): allAgent *Optional*
current_agent_table (List(currentAgentTable)): currentAgentTable - *Table* array
of currentAgentTable named tuples
of currentAgentTable named tuples *Optional*
past_agent_table (List(pastAgentTable)): pastAgentTable - *Table* array of
pastAgentTable named tuples
pastAgentTable named tuples *Optional*
"""

__slots__: List[str] = [
Expand All @@ -1792,15 +1792,13 @@ def _elements(cls) -> Tuple[E, ...]:
"currentAgentTable",
list,
is_complex=True,
is_required=True,
is_table=True,
),
E(
"past_agent_table",
"pastAgentTable",
list,
is_complex=True,
is_required=True,
is_table=True,
),
)
Expand Down Expand Up @@ -3406,7 +3404,7 @@ class CustomContactDirectoryEntry(OCIType):

Attributes:
user_id (str): userId *Optional*
virtual_on_net_phone_number (str): virtualOnNetPhoneNumber
virtual_on_net_phone_number (str): virtualOnNetPhoneNumber *Optional*
group_id (str): groupId *Optional*
"""

Expand All @@ -3420,12 +3418,7 @@ class CustomContactDirectoryEntry(OCIType):
def _elements(cls) -> Tuple[E, ...]:
return (
E("user_id", "userId", str),
E(
"virtual_on_net_phone_number",
"virtualOnNetPhoneNumber",
str,
is_required=True,
),
E("virtual_on_net_phone_number", "virtualOnNetPhoneNumber", str),
E("group_id", "groupId", str),
)

Expand Down Expand Up @@ -29186,8 +29179,8 @@ class ScheduleEvents(OCIType):
eventname (str): eventname
start_date (str): startDate
all_day_event (bool): allDayEvent *Optional*
start_time (startTime): startTime
end_time (endTime): endTime
start_time (startTime): startTime *Optional*
end_time (endTime): endTime *Optional*
end_date (str): endDate
recurrence (recurrence): recurrence *Optional*
"""
Expand All @@ -29208,8 +29201,8 @@ def _elements(cls) -> Tuple[E, ...]:
E("eventname", "eventname", str, is_required=True),
E("start_date", "startDate", str, is_required=True),
E("all_day_event", "allDayEvent", bool),
E("start_time", "startTime", HourMinute, is_complex=True, is_required=True),
E("end_time", "endTime", HourMinute, is_complex=True, is_required=True),
E("start_time", "startTime", HourMinute, is_complex=True),
E("end_time", "endTime", HourMinute, is_complex=True),
E("end_date", "endDate", str, is_required=True),
E("recurrence", "recurrence", Recurrence, is_complex=True),
)
Expand Down

0 comments on commit 16c2e75

Please sign in to comment.