* regenerate

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes and cleanup

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:
Jess Frazelle
2023-07-31 12:50:30 -07:00
committed by GitHub
parent d678182dcf
commit 4c3f497d73
141 changed files with 1432 additions and 566 deletions

View File

@ -142,14 +142,16 @@ 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.modeling_cmd import ModelingCmd
from kittycad.models.modeling_cmd import MovePathPen
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
from kittycad.models.unit_density import UnitDensity
from kittycad.models.unit_energy import UnitEnergy
from kittycad.models.unit_force import UnitForce
from kittycad.models.unit_frequency import UnitFrequency
@ -981,6 +983,7 @@ def test_create_file_center_of_mass():
result: Optional[Union[FileCenterOfMass, Error]] = create_file_center_of_mass.sync(
client=client,
output_unit=UnitLength.CM,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -997,6 +1000,7 @@ def test_create_file_center_of_mass():
Optional[Union[FileCenterOfMass, Error]]
] = create_file_center_of_mass.sync_detailed(
client=client,
output_unit=UnitLength.CM,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -1013,6 +1017,7 @@ async def test_create_file_center_of_mass_async():
Union[FileCenterOfMass, Error]
] = await create_file_center_of_mass.asyncio(
client=client,
output_unit=UnitLength.CM,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -1022,6 +1027,7 @@ async def test_create_file_center_of_mass_async():
Optional[Union[FileCenterOfMass, Error]]
] = await create_file_center_of_mass.asyncio_detailed(
client=client,
output_unit=UnitLength.CM,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -1094,6 +1100,8 @@ def test_create_file_density():
result: Optional[Union[FileDensity, Error]] = create_file_density.sync(
client=client,
material_mass=3.14,
material_mass_unit=UnitMass.G,
output_unit=UnitDensity.LB_FT3,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -1111,6 +1119,8 @@ def test_create_file_density():
] = create_file_density.sync_detailed(
client=client,
material_mass=3.14,
material_mass_unit=UnitMass.G,
output_unit=UnitDensity.LB_FT3,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -1126,6 +1136,8 @@ async def test_create_file_density_async():
result: Optional[Union[FileDensity, Error]] = await create_file_density.asyncio(
client=client,
material_mass=3.14,
material_mass_unit=UnitMass.G,
output_unit=UnitDensity.LB_FT3,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -1136,6 +1148,8 @@ async def test_create_file_density_async():
] = await create_file_density.asyncio_detailed(
client=client,
material_mass=3.14,
material_mass_unit=UnitMass.G,
output_unit=UnitDensity.LB_FT3,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -1204,6 +1218,8 @@ def test_create_file_mass():
result: Optional[Union[FileMass, Error]] = create_file_mass.sync(
client=client,
material_density=3.14,
material_density_unit=UnitDensity.LB_FT3,
output_unit=UnitMass.G,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -1221,6 +1237,8 @@ def test_create_file_mass():
] = create_file_mass.sync_detailed(
client=client,
material_density=3.14,
material_density_unit=UnitDensity.LB_FT3,
output_unit=UnitMass.G,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -1236,6 +1254,8 @@ async def test_create_file_mass_async():
result: Optional[Union[FileMass, Error]] = await create_file_mass.asyncio(
client=client,
material_density=3.14,
material_density_unit=UnitDensity.LB_FT3,
output_unit=UnitMass.G,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -1246,6 +1266,8 @@ async def test_create_file_mass_async():
] = await create_file_mass.asyncio_detailed(
client=client,
material_density=3.14,
material_density_unit=UnitDensity.LB_FT3,
output_unit=UnitMass.G,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -1258,6 +1280,7 @@ def test_create_file_surface_area():
result: Optional[Union[FileSurfaceArea, Error]] = create_file_surface_area.sync(
client=client,
output_unit=UnitArea.CM2,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -1274,6 +1297,7 @@ def test_create_file_surface_area():
Optional[Union[FileSurfaceArea, Error]]
] = create_file_surface_area.sync_detailed(
client=client,
output_unit=UnitArea.CM2,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -1290,6 +1314,7 @@ async def test_create_file_surface_area_async():
Union[FileSurfaceArea, Error]
] = await create_file_surface_area.asyncio(
client=client,
output_unit=UnitArea.CM2,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -1299,6 +1324,7 @@ async def test_create_file_surface_area_async():
Optional[Union[FileSurfaceArea, Error]]
] = await create_file_surface_area.asyncio_detailed(
client=client,
output_unit=UnitArea.CM2,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -1311,6 +1337,7 @@ def test_create_file_volume():
result: Optional[Union[FileVolume, Error]] = create_file_volume.sync(
client=client,
output_unit=UnitVolume.CM3,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -1327,6 +1354,7 @@ def test_create_file_volume():
Optional[Union[FileVolume, Error]]
] = create_file_volume.sync_detailed(
client=client,
output_unit=UnitVolume.CM3,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -1341,6 +1369,7 @@ async def test_create_file_volume_async():
result: Optional[Union[FileVolume, Error]] = await create_file_volume.asyncio(
client=client,
output_unit=UnitVolume.CM3,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -1350,6 +1379,7 @@ async def test_create_file_volume_async():
Optional[Union[FileVolume, Error]]
] = await create_file_volume.asyncio_detailed(
client=client,
output_unit=UnitVolume.CM3,
src_format=FileImportFormat.DAE,
body=bytes("some bytes", "utf-8"),
)
@ -1402,7 +1432,14 @@ def test_cmd():
cmd.sync(
client=client,
body=ModelingCmdReq(
cmd=ModelingCmd.START_PATH,
cmd=MovePathPen(
path=ModelingCmdId("<uuid>"),
to=Point3d(
x=3.14,
y=3.14,
z=3.14,
),
),
cmd_id=ModelingCmdId("<uuid>"),
file_id="<string>",
),
@ -1412,7 +1449,14 @@ def test_cmd():
cmd.sync_detailed(
client=client,
body=ModelingCmdReq(
cmd=ModelingCmd.START_PATH,
cmd=MovePathPen(
path=ModelingCmdId("<uuid>"),
to=Point3d(
x=3.14,
y=3.14,
z=3.14,
),
),
cmd_id=ModelingCmdId("<uuid>"),
file_id="<string>",
),
@ -1429,7 +1473,14 @@ async def test_cmd_async():
await cmd.asyncio(
client=client,
body=ModelingCmdReq(
cmd=ModelingCmd.START_PATH,
cmd=MovePathPen(
path=ModelingCmdId("<uuid>"),
to=Point3d(
x=3.14,
y=3.14,
z=3.14,
),
),
cmd_id=ModelingCmdId("<uuid>"),
file_id="<string>",
),
@ -1439,7 +1490,14 @@ async def test_cmd_async():
await cmd.asyncio_detailed(
client=client,
body=ModelingCmdReq(
cmd=ModelingCmd.START_PATH,
cmd=MovePathPen(
path=ModelingCmdId("<uuid>"),
to=Point3d(
x=3.14,
y=3.14,
z=3.14,
),
),
cmd_id=ModelingCmdId("<uuid>"),
file_id="<string>",
),
@ -1456,7 +1514,14 @@ def test_cmd_batch():
body=ModelingCmdReqBatch(
cmds={
"<string>": ModelingCmdReq(
cmd=ModelingCmd.START_PATH,
cmd=MovePathPen(
path=ModelingCmdId("<uuid>"),
to=Point3d(
x=3.14,
y=3.14,
z=3.14,
),
),
cmd_id=ModelingCmdId("<uuid>"),
file_id="<string>",
)
@ -1480,7 +1545,14 @@ def test_cmd_batch():
body=ModelingCmdReqBatch(
cmds={
"<string>": ModelingCmdReq(
cmd=ModelingCmd.START_PATH,
cmd=MovePathPen(
path=ModelingCmdId("<uuid>"),
to=Point3d(
x=3.14,
y=3.14,
z=3.14,
),
),
cmd_id=ModelingCmdId("<uuid>"),
file_id="<string>",
)
@ -1502,7 +1574,14 @@ async def test_cmd_batch_async():
body=ModelingCmdReqBatch(
cmds={
"<string>": ModelingCmdReq(
cmd=ModelingCmd.START_PATH,
cmd=MovePathPen(
path=ModelingCmdId("<uuid>"),
to=Point3d(
x=3.14,
y=3.14,
z=3.14,
),
),
cmd_id=ModelingCmdId("<uuid>"),
file_id="<string>",
)
@ -1519,7 +1598,14 @@ async def test_cmd_batch_async():
body=ModelingCmdReqBatch(
cmds={
"<string>": ModelingCmdReq(
cmd=ModelingCmd.START_PATH,
cmd=MovePathPen(
path=ModelingCmdId("<uuid>"),
to=Point3d(
x=3.14,
y=3.14,
z=3.14,
),
),
cmd_id=ModelingCmdId("<uuid>"),
file_id="<string>",
)
@ -1666,8 +1752,8 @@ def test_get_area_unit_conversion():
result: Optional[Union[UnitAreaConversion, Error]] = get_area_unit_conversion.sync(
client=client,
input_unit=UnitArea.ACRES,
output_unit=UnitArea.ACRES,
input_unit=UnitArea.CM2,
output_unit=UnitArea.CM2,
value=3.14,
)
@ -1683,8 +1769,8 @@ def test_get_area_unit_conversion():
Optional[Union[UnitAreaConversion, Error]]
] = get_area_unit_conversion.sync_detailed(
client=client,
input_unit=UnitArea.ACRES,
output_unit=UnitArea.ACRES,
input_unit=UnitArea.CM2,
output_unit=UnitArea.CM2,
value=3.14,
)
@ -1700,8 +1786,8 @@ async def test_get_area_unit_conversion_async():
Union[UnitAreaConversion, Error]
] = await get_area_unit_conversion.asyncio(
client=client,
input_unit=UnitArea.ACRES,
output_unit=UnitArea.ACRES,
input_unit=UnitArea.CM2,
output_unit=UnitArea.CM2,
value=3.14,
)
@ -1710,8 +1796,8 @@ async def test_get_area_unit_conversion_async():
Optional[Union[UnitAreaConversion, Error]]
] = await get_area_unit_conversion.asyncio_detailed(
client=client,
input_unit=UnitArea.ACRES,
output_unit=UnitArea.ACRES,
input_unit=UnitArea.CM2,
output_unit=UnitArea.CM2,
value=3.14,
)
@ -1961,8 +2047,8 @@ def test_get_length_unit_conversion():
Union[UnitLengthConversion, Error]
] = get_length_unit_conversion.sync(
client=client,
input_unit=UnitLength.CENTIMETRES,
output_unit=UnitLength.CENTIMETRES,
input_unit=UnitLength.CM,
output_unit=UnitLength.CM,
value=3.14,
)
@ -1978,8 +2064,8 @@ def test_get_length_unit_conversion():
Optional[Union[UnitLengthConversion, Error]]
] = get_length_unit_conversion.sync_detailed(
client=client,
input_unit=UnitLength.CENTIMETRES,
output_unit=UnitLength.CENTIMETRES,
input_unit=UnitLength.CM,
output_unit=UnitLength.CM,
value=3.14,
)
@ -1995,8 +2081,8 @@ async def test_get_length_unit_conversion_async():
Union[UnitLengthConversion, Error]
] = await get_length_unit_conversion.asyncio(
client=client,
input_unit=UnitLength.CENTIMETRES,
output_unit=UnitLength.CENTIMETRES,
input_unit=UnitLength.CM,
output_unit=UnitLength.CM,
value=3.14,
)
@ -2005,8 +2091,8 @@ async def test_get_length_unit_conversion_async():
Optional[Union[UnitLengthConversion, Error]]
] = await get_length_unit_conversion.asyncio_detailed(
client=client,
input_unit=UnitLength.CENTIMETRES,
output_unit=UnitLength.CENTIMETRES,
input_unit=UnitLength.CM,
output_unit=UnitLength.CM,
value=3.14,
)
@ -2018,8 +2104,8 @@ def test_get_mass_unit_conversion():
result: Optional[Union[UnitMassConversion, Error]] = get_mass_unit_conversion.sync(
client=client,
input_unit=UnitMass.CARATS,
output_unit=UnitMass.CARATS,
input_unit=UnitMass.G,
output_unit=UnitMass.G,
value=3.14,
)
@ -2035,8 +2121,8 @@ def test_get_mass_unit_conversion():
Optional[Union[UnitMassConversion, Error]]
] = get_mass_unit_conversion.sync_detailed(
client=client,
input_unit=UnitMass.CARATS,
output_unit=UnitMass.CARATS,
input_unit=UnitMass.G,
output_unit=UnitMass.G,
value=3.14,
)
@ -2052,8 +2138,8 @@ async def test_get_mass_unit_conversion_async():
Union[UnitMassConversion, Error]
] = await get_mass_unit_conversion.asyncio(
client=client,
input_unit=UnitMass.CARATS,
output_unit=UnitMass.CARATS,
input_unit=UnitMass.G,
output_unit=UnitMass.G,
value=3.14,
)
@ -2062,8 +2148,8 @@ async def test_get_mass_unit_conversion_async():
Optional[Union[UnitMassConversion, Error]]
] = await get_mass_unit_conversion.asyncio_detailed(
client=client,
input_unit=UnitMass.CARATS,
output_unit=UnitMass.CARATS,
input_unit=UnitMass.G,
output_unit=UnitMass.G,
value=3.14,
)
@ -2313,8 +2399,8 @@ def test_get_volume_unit_conversion():
Union[UnitVolumeConversion, Error]
] = get_volume_unit_conversion.sync(
client=client,
input_unit=UnitVolume.CUBIC_CENTIMETRES,
output_unit=UnitVolume.CUBIC_CENTIMETRES,
input_unit=UnitVolume.CM3,
output_unit=UnitVolume.CM3,
value=3.14,
)
@ -2330,8 +2416,8 @@ def test_get_volume_unit_conversion():
Optional[Union[UnitVolumeConversion, Error]]
] = get_volume_unit_conversion.sync_detailed(
client=client,
input_unit=UnitVolume.CUBIC_CENTIMETRES,
output_unit=UnitVolume.CUBIC_CENTIMETRES,
input_unit=UnitVolume.CM3,
output_unit=UnitVolume.CM3,
value=3.14,
)
@ -2347,8 +2433,8 @@ async def test_get_volume_unit_conversion_async():
Union[UnitVolumeConversion, Error]
] = await get_volume_unit_conversion.asyncio(
client=client,
input_unit=UnitVolume.CUBIC_CENTIMETRES,
output_unit=UnitVolume.CUBIC_CENTIMETRES,
input_unit=UnitVolume.CM3,
output_unit=UnitVolume.CM3,
value=3.14,
)
@ -2357,8 +2443,8 @@ async def test_get_volume_unit_conversion_async():
Optional[Union[UnitVolumeConversion, Error]]
] = await get_volume_unit_conversion.asyncio_detailed(
client=client,
input_unit=UnitVolume.CUBIC_CENTIMETRES,
output_unit=UnitVolume.CUBIC_CENTIMETRES,
input_unit=UnitVolume.CM3,
output_unit=UnitVolume.CM3,
value=3.14,
)