Update api spec (#98)
* YOYO NEW API SPEC! * fixups Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * I have generated the latest API! --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@ -142,12 +142,11 @@ from kittycad.models.email_authentication_form import EmailAuthenticationForm
|
||||
from kittycad.models.file_export_format import FileExportFormat
|
||||
from kittycad.models.file_import_format import FileImportFormat
|
||||
from kittycad.models.image_type import ImageType
|
||||
from kittycad.models.line3d import Line3d
|
||||
from kittycad.models.modeling_cmd import ModelingCmd
|
||||
from kittycad.models.modeling_cmd_id import ModelingCmdId
|
||||
from kittycad.models.modeling_cmd_req import ModelingCmdReq
|
||||
from kittycad.models.modeling_cmd_req_batch import ModelingCmdReqBatch
|
||||
from kittycad.models.physics_constant_name import PhysicsConstantName
|
||||
from kittycad.models.point3d import Point3d
|
||||
from kittycad.models.unit_angle import UnitAngle
|
||||
from kittycad.models.unit_area import UnitArea
|
||||
from kittycad.models.unit_current import UnitCurrent
|
||||
@ -1403,18 +1402,7 @@ def test_cmd():
|
||||
cmd.sync(
|
||||
client=client,
|
||||
body=ModelingCmdReq(
|
||||
cmd=Line3d(
|
||||
from_=Point3d(
|
||||
x=3.14,
|
||||
y=3.14,
|
||||
z=3.14,
|
||||
),
|
||||
to=Point3d(
|
||||
x=3.14,
|
||||
y=3.14,
|
||||
z=3.14,
|
||||
),
|
||||
),
|
||||
cmd=ModelingCmd.START_PATH,
|
||||
cmd_id=ModelingCmdId("<uuid>"),
|
||||
file_id="<string>",
|
||||
),
|
||||
@ -1424,18 +1412,7 @@ def test_cmd():
|
||||
cmd.sync_detailed(
|
||||
client=client,
|
||||
body=ModelingCmdReq(
|
||||
cmd=Line3d(
|
||||
from_=Point3d(
|
||||
x=3.14,
|
||||
y=3.14,
|
||||
z=3.14,
|
||||
),
|
||||
to=Point3d(
|
||||
x=3.14,
|
||||
y=3.14,
|
||||
z=3.14,
|
||||
),
|
||||
),
|
||||
cmd=ModelingCmd.START_PATH,
|
||||
cmd_id=ModelingCmdId("<uuid>"),
|
||||
file_id="<string>",
|
||||
),
|
||||
@ -1452,18 +1429,7 @@ async def test_cmd_async():
|
||||
await cmd.asyncio(
|
||||
client=client,
|
||||
body=ModelingCmdReq(
|
||||
cmd=Line3d(
|
||||
from_=Point3d(
|
||||
x=3.14,
|
||||
y=3.14,
|
||||
z=3.14,
|
||||
),
|
||||
to=Point3d(
|
||||
x=3.14,
|
||||
y=3.14,
|
||||
z=3.14,
|
||||
),
|
||||
),
|
||||
cmd=ModelingCmd.START_PATH,
|
||||
cmd_id=ModelingCmdId("<uuid>"),
|
||||
file_id="<string>",
|
||||
),
|
||||
@ -1473,18 +1439,7 @@ async def test_cmd_async():
|
||||
await cmd.asyncio_detailed(
|
||||
client=client,
|
||||
body=ModelingCmdReq(
|
||||
cmd=Line3d(
|
||||
from_=Point3d(
|
||||
x=3.14,
|
||||
y=3.14,
|
||||
z=3.14,
|
||||
),
|
||||
to=Point3d(
|
||||
x=3.14,
|
||||
y=3.14,
|
||||
z=3.14,
|
||||
),
|
||||
),
|
||||
cmd=ModelingCmd.START_PATH,
|
||||
cmd_id=ModelingCmdId("<uuid>"),
|
||||
file_id="<string>",
|
||||
),
|
||||
@ -1501,18 +1456,7 @@ def test_cmd_batch():
|
||||
body=ModelingCmdReqBatch(
|
||||
cmds={
|
||||
"<string>": ModelingCmdReq(
|
||||
cmd=Line3d(
|
||||
from_=Point3d(
|
||||
x=3.14,
|
||||
y=3.14,
|
||||
z=3.14,
|
||||
),
|
||||
to=Point3d(
|
||||
x=3.14,
|
||||
y=3.14,
|
||||
z=3.14,
|
||||
),
|
||||
),
|
||||
cmd=ModelingCmd.START_PATH,
|
||||
cmd_id=ModelingCmdId("<uuid>"),
|
||||
file_id="<string>",
|
||||
)
|
||||
@ -1536,18 +1480,7 @@ def test_cmd_batch():
|
||||
body=ModelingCmdReqBatch(
|
||||
cmds={
|
||||
"<string>": ModelingCmdReq(
|
||||
cmd=Line3d(
|
||||
from_=Point3d(
|
||||
x=3.14,
|
||||
y=3.14,
|
||||
z=3.14,
|
||||
),
|
||||
to=Point3d(
|
||||
x=3.14,
|
||||
y=3.14,
|
||||
z=3.14,
|
||||
),
|
||||
),
|
||||
cmd=ModelingCmd.START_PATH,
|
||||
cmd_id=ModelingCmdId("<uuid>"),
|
||||
file_id="<string>",
|
||||
)
|
||||
@ -1569,18 +1502,7 @@ async def test_cmd_batch_async():
|
||||
body=ModelingCmdReqBatch(
|
||||
cmds={
|
||||
"<string>": ModelingCmdReq(
|
||||
cmd=Line3d(
|
||||
from_=Point3d(
|
||||
x=3.14,
|
||||
y=3.14,
|
||||
z=3.14,
|
||||
),
|
||||
to=Point3d(
|
||||
x=3.14,
|
||||
y=3.14,
|
||||
z=3.14,
|
||||
),
|
||||
),
|
||||
cmd=ModelingCmd.START_PATH,
|
||||
cmd_id=ModelingCmdId("<uuid>"),
|
||||
file_id="<string>",
|
||||
)
|
||||
@ -1597,18 +1519,7 @@ async def test_cmd_batch_async():
|
||||
body=ModelingCmdReqBatch(
|
||||
cmds={
|
||||
"<string>": ModelingCmdReq(
|
||||
cmd=Line3d(
|
||||
from_=Point3d(
|
||||
x=3.14,
|
||||
y=3.14,
|
||||
z=3.14,
|
||||
),
|
||||
to=Point3d(
|
||||
x=3.14,
|
||||
y=3.14,
|
||||
z=3.14,
|
||||
),
|
||||
),
|
||||
cmd=ModelingCmd.START_PATH,
|
||||
cmd_id=ModelingCmdId("<uuid>"),
|
||||
file_id="<string>",
|
||||
)
|
||||
|
Reference in New Issue
Block a user