Skip to content

Commit d9582b9

Browse files
committed
wip
1 parent cb3ce65 commit d9582b9

21 files changed

+1283
-0
lines changed

.openapi-generator/FILES

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ cloud_api_robot_client/model/program.py
1515
cloud_api_robot_client/model/program.pyi
1616
cloud_api_robot_client/model/robot.py
1717
cloud_api_robot_client/model/robot.pyi
18+
cloud_api_robot_client/model/robot_credentials.py
19+
cloud_api_robot_client/model/robot_credentials.pyi
20+
cloud_api_robot_client/model/robot_register_data.py
21+
cloud_api_robot_client/model/robot_register_data.pyi
1822
cloud_api_robot_client/model/setting.py
1923
cloud_api_robot_client/model/setting.pyi
2024
cloud_api_robot_client/models/__init__.py
@@ -24,6 +28,8 @@ docs/apis/tags/RobotSyncApi.md
2428
docs/models/Activity.md
2529
docs/models/Program.md
2630
docs/models/Robot.md
31+
docs/models/RobotCredentials.md
32+
docs/models/RobotRegisterData.md
2733
docs/models/Setting.md
2834
git_push.sh
2935
requirements.txt
@@ -32,4 +38,6 @@ setup.py
3238
test-requirements.txt
3339
test/__init__.py
3440
test/test_models/__init__.py
41+
test/test_models/test_robot_credentials.py
42+
test/test_models/test_robot_register_data.py
3543
tox.ini

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ from cloud_api_robot_client.apis.tags import robot_sync_api
144144
from cloud_api_robot_client.model.activity import Activity
145145
from cloud_api_robot_client.model.program import Program
146146
from cloud_api_robot_client.model.robot import Robot
147+
from cloud_api_robot_client.model.robot_credentials import RobotCredentials
148+
from cloud_api_robot_client.model.robot_register_data import RobotRegisterData
147149
from cloud_api_robot_client.model.setting import Setting
148150
# Defining the host is optional and defaults to https://api.coderbot.org/api/v1
149151
# See configuration.py for a list of all supported configuration parameters.
@@ -197,6 +199,7 @@ Class | Method | HTTP request | Description
197199
*RobotSyncApi* | [**get_robot_data**](docs/apis/tags/RobotSyncApi.md#get_robot_data) | **get** /robot/data | Get robot data
198200
*RobotSyncApi* | [**get_robot_programs**](docs/apis/tags/RobotSyncApi.md#get_robot_programs) | **get** /robot/programs | Get robot programs
199201
*RobotSyncApi* | [**get_robot_setting**](docs/apis/tags/RobotSyncApi.md#get_robot_setting) | **get** /robot/setting | Get robot data
202+
*RobotSyncApi* | [**register_robot**](docs/apis/tags/RobotSyncApi.md#register_robot) | **post** /robot/register | Register robot with OTP
200203
*RobotSyncApi* | [**set_robot_activity**](docs/apis/tags/RobotSyncApi.md#set_robot_activity) | **put** /robot/activities/{activity_id} | Set robot activity
201204
*RobotSyncApi* | [**set_robot_program**](docs/apis/tags/RobotSyncApi.md#set_robot_program) | **put** /robot/programs/{program_id} | Put robot program
202205
*RobotSyncApi* | [**set_robot_setting**](docs/apis/tags/RobotSyncApi.md#set_robot_setting) | **put** /robot/setting | Set robot settings
@@ -207,6 +210,8 @@ Class | Method | HTTP request | Description
207210
- [Activity](docs/models/Activity.md)
208211
- [Program](docs/models/Program.md)
209212
- [Robot](docs/models/Robot.md)
213+
- [RobotCredentials](docs/models/RobotCredentials.md)
214+
- [RobotRegisterData](docs/models/RobotRegisterData.md)
210215
- [Setting](docs/models/Setting.md)
211216

212217
## Documentation For Authorization

cloud_api_robot_client/apis/path_to_api.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import typing_extensions
22

33
from cloud_api_robot_client.paths import PathValues
4+
from cloud_api_robot_client.apis.paths.robot_register import RobotRegister
45
from cloud_api_robot_client.apis.paths.robot_data import RobotData
56
from cloud_api_robot_client.apis.paths.robot_setting import RobotSetting
67
from cloud_api_robot_client.apis.paths.robot_activities import RobotActivities
@@ -11,6 +12,7 @@
1112
PathToApi = typing_extensions.TypedDict(
1213
'PathToApi',
1314
{
15+
PathValues.ROBOT_REGISTER: RobotRegister,
1416
PathValues.ROBOT_DATA: RobotData,
1517
PathValues.ROBOT_SETTING: RobotSetting,
1618
PathValues.ROBOT_ACTIVITIES: RobotActivities,
@@ -22,6 +24,7 @@
2224

2325
path_to_api = PathToApi(
2426
{
27+
PathValues.ROBOT_REGISTER: RobotRegister,
2528
PathValues.ROBOT_DATA: RobotData,
2629
PathValues.ROBOT_SETTING: RobotSetting,
2730
PathValues.ROBOT_ACTIVITIES: RobotActivities,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from cloud_api_robot_client.paths.robot_register.post import ApiForpost
2+
3+
4+
class RobotRegister(
5+
ApiForpost,
6+
):
7+
pass

cloud_api_robot_client/apis/tags/robot_sync_api.py

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from cloud_api_robot_client.paths.robot_data.get import GetRobotData
1919
from cloud_api_robot_client.paths.robot_programs.get import GetRobotPrograms
2020
from cloud_api_robot_client.paths.robot_setting.get import GetRobotSetting
21+
from cloud_api_robot_client.paths.robot_register.post import RegisterRobot
2122
from cloud_api_robot_client.paths.robot_activities_activity_id.put import SetRobotActivity
2223
from cloud_api_robot_client.paths.robot_programs_program_id.put import SetRobotProgram
2324
from cloud_api_robot_client.paths.robot_setting.put import SetRobotSetting
@@ -33,6 +34,7 @@ class RobotSyncApi(
3334
GetRobotData,
3435
GetRobotPrograms,
3536
GetRobotSetting,
37+
RegisterRobot,
3638
SetRobotActivity,
3739
SetRobotProgram,
3840
SetRobotSetting,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# coding: utf-8
2+
3+
"""
4+
CoderBot Cloud API - Robot only - OpenAPI 3.0
5+
6+
CoderBot Cloud API - Robot only # noqa: E501
7+
8+
The version of the OpenAPI document: 0.1.0
9+
10+
Generated by: https://openapi-generator.tech
11+
"""
12+
13+
from datetime import date, datetime # noqa: F401
14+
import decimal # noqa: F401
15+
import functools # noqa: F401
16+
import io # noqa: F401
17+
import re # noqa: F401
18+
import typing # noqa: F401
19+
import typing_extensions # noqa: F401
20+
import uuid # noqa: F401
21+
22+
import frozendict # noqa: F401
23+
24+
from cloud_api_robot_client import schemas # noqa: F401
25+
26+
27+
class RobotCredentials(
28+
schemas.DictSchema
29+
):
30+
"""NOTE: This class is auto generated by OpenAPI Generator.
31+
Ref: https://openapi-generator.tech
32+
33+
Do not edit the class manually.
34+
"""
35+
36+
37+
class MetaOapg:
38+
39+
class properties:
40+
token = schemas.StrSchema
41+
__annotations__ = {
42+
"token": token,
43+
}
44+
45+
@typing.overload
46+
def __getitem__(self, name: typing_extensions.Literal["token"]) -> MetaOapg.properties.token: ...
47+
48+
@typing.overload
49+
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
50+
51+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["token", ], str]):
52+
# dict_instance[name] accessor
53+
return super().__getitem__(name)
54+
55+
56+
@typing.overload
57+
def get_item_oapg(self, name: typing_extensions.Literal["token"]) -> typing.Union[MetaOapg.properties.token, schemas.Unset]: ...
58+
59+
@typing.overload
60+
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
61+
62+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["token", ], str]):
63+
return super().get_item_oapg(name)
64+
65+
66+
def __new__(
67+
cls,
68+
*_args: typing.Union[dict, frozendict.frozendict, ],
69+
token: typing.Union[MetaOapg.properties.token, str, schemas.Unset] = schemas.unset,
70+
_configuration: typing.Optional[schemas.Configuration] = None,
71+
**kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
72+
) -> 'RobotCredentials':
73+
return super().__new__(
74+
cls,
75+
*_args,
76+
token=token,
77+
_configuration=_configuration,
78+
**kwargs,
79+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# coding: utf-8
2+
3+
"""
4+
CoderBot Cloud API - Robot only - OpenAPI 3.0
5+
6+
CoderBot Cloud API - Robot only # noqa: E501
7+
8+
The version of the OpenAPI document: 0.1.0
9+
10+
Generated by: https://openapi-generator.tech
11+
"""
12+
13+
from datetime import date, datetime # noqa: F401
14+
import decimal # noqa: F401
15+
import functools # noqa: F401
16+
import io # noqa: F401
17+
import re # noqa: F401
18+
import typing # noqa: F401
19+
import typing_extensions # noqa: F401
20+
import uuid # noqa: F401
21+
22+
import frozendict # noqa: F401
23+
24+
from cloud_api_robot_client import schemas # noqa: F401
25+
26+
27+
class RobotCredentials(
28+
schemas.DictSchema
29+
):
30+
"""NOTE: This class is auto generated by OpenAPI Generator.
31+
Ref: https://openapi-generator.tech
32+
33+
Do not edit the class manually.
34+
"""
35+
36+
37+
class MetaOapg:
38+
39+
class properties:
40+
token = schemas.StrSchema
41+
__annotations__ = {
42+
"token": token,
43+
}
44+
45+
@typing.overload
46+
def __getitem__(self, name: typing_extensions.Literal["token"]) -> MetaOapg.properties.token: ...
47+
48+
@typing.overload
49+
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
50+
51+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["token", ], str]):
52+
# dict_instance[name] accessor
53+
return super().__getitem__(name)
54+
55+
56+
@typing.overload
57+
def get_item_oapg(self, name: typing_extensions.Literal["token"]) -> typing.Union[MetaOapg.properties.token, schemas.Unset]: ...
58+
59+
@typing.overload
60+
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
61+
62+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["token", ], str]):
63+
return super().get_item_oapg(name)
64+
65+
66+
def __new__(
67+
cls,
68+
*_args: typing.Union[dict, frozendict.frozendict, ],
69+
token: typing.Union[MetaOapg.properties.token, str, schemas.Unset] = schemas.unset,
70+
_configuration: typing.Optional[schemas.Configuration] = None,
71+
**kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
72+
) -> 'RobotCredentials':
73+
return super().__new__(
74+
cls,
75+
*_args,
76+
token=token,
77+
_configuration=_configuration,
78+
**kwargs,
79+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# coding: utf-8
2+
3+
"""
4+
CoderBot Cloud API - Robot only - OpenAPI 3.0
5+
6+
CoderBot Cloud API - Robot only # noqa: E501
7+
8+
The version of the OpenAPI document: 0.1.0
9+
10+
Generated by: https://openapi-generator.tech
11+
"""
12+
13+
from datetime import date, datetime # noqa: F401
14+
import decimal # noqa: F401
15+
import functools # noqa: F401
16+
import io # noqa: F401
17+
import re # noqa: F401
18+
import typing # noqa: F401
19+
import typing_extensions # noqa: F401
20+
import uuid # noqa: F401
21+
22+
import frozendict # noqa: F401
23+
24+
from cloud_api_robot_client import schemas # noqa: F401
25+
26+
27+
class RobotRegisterData(
28+
schemas.DictSchema
29+
):
30+
"""NOTE: This class is auto generated by OpenAPI Generator.
31+
Ref: https://openapi-generator.tech
32+
33+
Do not edit the class manually.
34+
"""
35+
36+
37+
class MetaOapg:
38+
39+
class properties:
40+
otp = schemas.StrSchema
41+
__annotations__ = {
42+
"otp": otp,
43+
}
44+
45+
@typing.overload
46+
def __getitem__(self, name: typing_extensions.Literal["otp"]) -> MetaOapg.properties.otp: ...
47+
48+
@typing.overload
49+
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
50+
51+
def __getitem__(self, name: typing.Union[typing_extensions.Literal["otp", ], str]):
52+
# dict_instance[name] accessor
53+
return super().__getitem__(name)
54+
55+
56+
@typing.overload
57+
def get_item_oapg(self, name: typing_extensions.Literal["otp"]) -> typing.Union[MetaOapg.properties.otp, schemas.Unset]: ...
58+
59+
@typing.overload
60+
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
61+
62+
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["otp", ], str]):
63+
return super().get_item_oapg(name)
64+
65+
66+
def __new__(
67+
cls,
68+
*_args: typing.Union[dict, frozendict.frozendict, ],
69+
otp: typing.Union[MetaOapg.properties.otp, str, schemas.Unset] = schemas.unset,
70+
_configuration: typing.Optional[schemas.Configuration] = None,
71+
**kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
72+
) -> 'RobotRegisterData':
73+
return super().__new__(
74+
cls,
75+
*_args,
76+
otp=otp,
77+
_configuration=_configuration,
78+
**kwargs,
79+
)

0 commit comments

Comments
 (0)