Skip to content

Commit 65cf858

Browse files
committed
deps: regenerate sdk
1 parent 5afb3da commit 65cf858

File tree

11 files changed

+66
-65
lines changed

11 files changed

+66
-65
lines changed

openapi_filtered.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ paths:
11631163
default:
11641164
$ref: '#/components/responses/ErrorResponse'
11651165
security:
1166-
- api_key: []
1166+
- personalAccessToken: []
11671167
tags:
11681168
- device
11691169
parameters:
@@ -2489,7 +2489,7 @@ paths:
24892489
default:
24902490
$ref: '#/components/responses/ErrorResponse'
24912491
security:
2492-
- api_key: []
2492+
- personalAccessToken: []
24932493
tags:
24942494
- usage
24952495
/v1/projects/{projectOrProductUID}/usage/events:
@@ -4013,14 +4013,14 @@ components:
40134013
fleet_uid:
40144014
type: string
40154015
inherited_var_count:
4016-
type: int
4016+
type: integer
40174017
type:
40184018
type: string
40194019
url:
40204020
type: string
40214021
format: uri
40224022
var_count:
4023-
type: int
4023+
type: integer
40244024
variables:
40254025
type: array
40264026
items:
@@ -4037,7 +4037,7 @@ components:
40374037
key:
40384038
type: string
40394039
precedence:
4040-
type: int
4040+
type: integer
40414041
used:
40424042
type: boolean
40434043
value:

src/docs/DeviceApi.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,8 @@ Get Data Plans associated with the device, this include the primary sim, any ext
954954

955955
### Example
956956

957+
- Bearer Authentication (personalAccessToken):
958+
957959
```python
958960
import notehub_py
959961
from notehub_py.models.get_device_plans200_response import GetDevicePlans200Response
@@ -966,6 +968,15 @@ configuration = notehub_py.Configuration(
966968
host = "https://api.notefile.net"
967969
)
968970

971+
# The client must configure the authentication and authorization parameters
972+
# in accordance with the API server security policy.
973+
# Examples for each auth method are provided below, use the example that
974+
# satisfies your auth use case.
975+
976+
# Configure Bearer authorization: personalAccessToken
977+
configuration = notehub_py.Configuration(
978+
access_token = os.environ["BEARER_TOKEN"]
979+
)
969980

970981
# Enter a context with an instance of the API client
971982
with notehub_py.ApiClient(configuration) as api_client:
@@ -995,7 +1006,7 @@ with notehub_py.ApiClient(configuration) as api_client:
9951006

9961007
### Authorization
9971008

998-
No authorization required
1009+
[personalAccessToken](../README.md#personalAccessToken)
9991010

10001011
### HTTP request headers
10011012

src/docs/EnvTreeJsonNode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
| **device_uid** | **str** | | [optional] |
1111
| **fleet_label** | **str** | | [optional] |
1212
| **fleet_uid** | **str** | | [optional] |
13-
| **inherited_var_count** | [**Int**](Int.md) | |
13+
| **inherited_var_count** | **int** | |
1414
| **type** | **str** | |
1515
| **url** | **str** | | [optional] |
16-
| **var_count** | [**Int**](Int.md) | |
16+
| **var_count** | **int** | |
1717
| **variables** | [**List[EnvVar]**](EnvVar.md) | |
1818

1919
## Example

src/docs/EnvVar.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
## Properties
44

5-
| Name | Type | Description | Notes |
6-
| -------------- | ----------------- | ----------- | ---------- |
7-
| **key** | **str** | | [optional] |
8-
| **precedence** | [**Int**](Int.md) | | [optional] |
9-
| **used** | **bool** | | [optional] |
10-
| **value** | **str** | | [optional] |
5+
| Name | Type | Description | Notes |
6+
| -------------- | -------- | ----------- | ---------- |
7+
| **key** | **str** | | [optional] |
8+
| **precedence** | **int** | | [optional] |
9+
| **used** | **bool** | | [optional] |
10+
| **value** | **str** | | [optional] |
1111

1212
## Example
1313

src/docs/UsageApi.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Get data usage in bytes for a project with time range and period aggregation
1616

1717
### Example
1818

19+
- Bearer Authentication (personalAccessToken):
20+
1921
```python
2022
import notehub_py
2123
from notehub_py.models.get_data_usage200_response import GetDataUsage200Response
@@ -28,6 +30,15 @@ configuration = notehub_py.Configuration(
2830
host = "https://api.notefile.net"
2931
)
3032

33+
# The client must configure the authentication and authorization parameters
34+
# in accordance with the API server security policy.
35+
# Examples for each auth method are provided below, use the example that
36+
# satisfies your auth use case.
37+
38+
# Configure Bearer authorization: personalAccessToken
39+
configuration = notehub_py.Configuration(
40+
access_token = os.environ["BEARER_TOKEN"]
41+
)
3142

3243
# Enter a context with an instance of the API client
3344
with notehub_py.ApiClient(configuration) as api_client:
@@ -65,7 +76,7 @@ with notehub_py.ApiClient(configuration) as api_client:
6576

6677
### Authorization
6778

68-
No authorization required
79+
[personalAccessToken](../README.md#personalAccessToken)
6980

7081
### HTTP request headers
7182

src/notehub_py/api/device_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3496,7 +3496,7 @@ def _get_device_plans_serialize(
34963496
)
34973497

34983498
# authentication setting
3499-
_auth_settings: List[str] = []
3499+
_auth_settings: List[str] = ["personalAccessToken"]
35003500

35013501
return self.api_client.param_serialize(
35023502
method="GET",

src/notehub_py/api/usage_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def _get_data_usage_serialize(
392392
)
393393

394394
# authentication setting
395-
_auth_settings: List[str] = []
395+
_auth_settings: List[str] = ["personalAccessToken"]
396396

397397
return self.api_client.param_serialize(
398398
method="GET",

src/notehub_py/models/env_tree_json_node.py

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import re # noqa: F401
1919
import json
2020

21-
from pydantic import BaseModel, ConfigDict, StrictStr
21+
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
2222
from typing import Any, ClassVar, Dict, List, Optional
2323
from notehub_py.models.env_var import EnvVar
2424
from typing import Optional, Set
@@ -36,10 +36,10 @@ class EnvTreeJsonNode(BaseModel):
3636
device_uid: Optional[StrictStr] = None
3737
fleet_label: Optional[StrictStr] = None
3838
fleet_uid: Optional[StrictStr] = None
39-
inherited_var_count: Int
39+
inherited_var_count: StrictInt
4040
type: StrictStr
4141
url: Optional[StrictStr] = None
42-
var_count: Int
42+
var_count: StrictInt
4343
variables: List[EnvVar]
4444
__properties: ClassVar[List[str]] = [
4545
"app_label",
@@ -99,12 +99,6 @@ def to_dict(self) -> Dict[str, Any]:
9999
if _item:
100100
_items.append(_item.to_dict())
101101
_dict["children"] = _items
102-
# override the default output from pydantic by calling `to_dict()` of inherited_var_count
103-
if self.inherited_var_count:
104-
_dict["inherited_var_count"] = self.inherited_var_count.to_dict()
105-
# override the default output from pydantic by calling `to_dict()` of var_count
106-
if self.var_count:
107-
_dict["var_count"] = self.var_count.to_dict()
108102
# override the default output from pydantic by calling `to_dict()` of each item in variables (list)
109103
_items = []
110104
if self.variables:
@@ -135,18 +129,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
135129
"device_uid": obj.get("device_uid"),
136130
"fleet_label": obj.get("fleet_label"),
137131
"fleet_uid": obj.get("fleet_uid"),
138-
"inherited_var_count": (
139-
Int.from_dict(obj["inherited_var_count"])
140-
if obj.get("inherited_var_count") is not None
141-
else None
142-
),
132+
"inherited_var_count": obj.get("inherited_var_count"),
143133
"type": obj.get("type"),
144134
"url": obj.get("url"),
145-
"var_count": (
146-
Int.from_dict(obj["var_count"])
147-
if obj.get("var_count") is not None
148-
else None
149-
),
135+
"var_count": obj.get("var_count"),
150136
"variables": (
151137
[EnvVar.from_dict(_item) for _item in obj["variables"]]
152138
if obj.get("variables") is not None

src/notehub_py/models/env_var.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import re # noqa: F401
1919
import json
2020

21-
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
21+
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
2222
from typing import Any, ClassVar, Dict, List, Optional
2323
from typing import Optional, Set
2424
from typing_extensions import Self
@@ -30,7 +30,7 @@ class EnvVar(BaseModel):
3030
""" # noqa: E501
3131

3232
key: Optional[StrictStr] = None
33-
precedence: Optional[Int] = None
33+
precedence: Optional[StrictInt] = None
3434
used: Optional[StrictBool] = None
3535
value: Optional[StrictStr] = None
3636
__properties: ClassVar[List[str]] = ["key", "precedence", "used", "value"]
@@ -72,9 +72,6 @@ def to_dict(self) -> Dict[str, Any]:
7272
exclude=excluded_fields,
7373
exclude_none=True,
7474
)
75-
# override the default output from pydantic by calling `to_dict()` of precedence
76-
if self.precedence:
77-
_dict["precedence"] = self.precedence.to_dict()
7875
return _dict
7976

8077
@classmethod
@@ -89,11 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8986
_obj = cls.model_validate(
9087
{
9188
"key": obj.get("key"),
92-
"precedence": (
93-
Int.from_dict(obj["precedence"])
94-
if obj.get("precedence") is not None
95-
else None
96-
),
89+
"precedence": obj.get("precedence"),
9790
"used": obj.get("used"),
9891
"value": obj.get("value"),
9992
}

src/test/test_env_tree_json_node.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -53,44 +53,44 @@ def make_instance(self, include_optional) -> EnvTreeJsonNode:
5353
device_uid = '',
5454
fleet_label = '',
5555
fleet_uid = '',
56-
inherited_var_count = null,
56+
inherited_var_count = 56,
5757
type = '',
5858
url = '',
59-
var_count = null,
59+
var_count = 56,
6060
variables = [
6161
notehub_py.models.env_var.EnvVar(
6262
key = '',
63-
precedence = null,
63+
precedence = 56,
6464
used = True,
6565
value = '', )
6666
], )
6767
],
6868
device_uid = '',
6969
fleet_label = '',
7070
fleet_uid = '',
71-
inherited_var_count = null,
71+
inherited_var_count = 56,
7272
type = '',
7373
url = '',
74-
var_count = null,
74+
var_count = 56,
7575
variables = [
7676
notehub_py.models.env_var.EnvVar(
7777
key = '',
78-
precedence = null,
78+
precedence = 56,
7979
used = True,
8080
value = '', )
8181
], )
8282
],
8383
device_uid = '',
8484
fleet_label = '',
8585
fleet_uid = '',
86-
inherited_var_count = None,
86+
inherited_var_count = 56,
8787
type = '',
8888
url = '',
89-
var_count = None,
89+
var_count = 56,
9090
variables = [
9191
notehub_py.models.env_var.EnvVar(
9292
key = '',
93-
precedence = null,
93+
precedence = 56,
9494
used = True,
9595
value = '', )
9696
]
@@ -111,40 +111,40 @@ def make_instance(self, include_optional) -> EnvTreeJsonNode:
111111
device_uid = '',
112112
fleet_label = '',
113113
fleet_uid = '',
114-
inherited_var_count = null,
114+
inherited_var_count = 56,
115115
type = '',
116116
url = '',
117-
var_count = null,
117+
var_count = 56,
118118
variables = [
119119
notehub_py.models.env_var.EnvVar(
120120
key = '',
121-
precedence = null,
121+
precedence = 56,
122122
used = True,
123123
value = '', )
124124
], )
125125
],
126126
device_uid = '',
127127
fleet_label = '',
128128
fleet_uid = '',
129-
inherited_var_count = null,
129+
inherited_var_count = 56,
130130
type = '',
131131
url = '',
132-
var_count = null,
132+
var_count = 56,
133133
variables = [
134134
notehub_py.models.env_var.EnvVar(
135135
key = '',
136-
precedence = null,
136+
precedence = 56,
137137
used = True,
138138
value = '', )
139139
], )
140140
],
141-
inherited_var_count = None,
141+
inherited_var_count = 56,
142142
type = '',
143-
var_count = None,
143+
var_count = 56,
144144
variables = [
145145
notehub_py.models.env_var.EnvVar(
146146
key = '',
147-
precedence = null,
147+
precedence = 56,
148148
used = True,
149149
value = '', )
150150
],

0 commit comments

Comments
 (0)