Skip to content

Commit 9b3feb3

Browse files
authored
🚀 release: 1.0.0 (#46)
2 parents 30b480c + daad204 commit 9b3feb3

13 files changed

+9629
-1114
lines changed

‎.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @leoparente @mfiedorowicz
1+
* @leoparente @ltucker @mfiedorowicz

‎.github/workflows/lint-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=netboxlabs.diode.sdk tests/ | tee pytest-coverage.txt
4444
4545
- name: Pytest coverage comment
46-
uses: MishaKav/pytest-coverage-comment@main
46+
uses: MishaKav/pytest-coverage-comment@81882822c5b22af01f91bd3eacb1cefb6ad73dc2 # v1
4747
with:
4848
pytest-coverage-path: ./pytest-coverage.txt
4949
junitxml-path: ./pytest.xml

‎.github/workflows/release.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
with:
4545
node-version: "lts/*"
4646
- name: Write package.json
47-
uses: DamianReeves/write-file-action@master
47+
uses: DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42 # v1.3
4848
with:
4949
path: ./package.json
5050
write-mode: overwrite
@@ -58,7 +58,7 @@ jobs:
5858
}
5959
}
6060
- name: Write .releaserc.json
61-
uses: DamianReeves/write-file-action@master
61+
uses: DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42 # v1.3
6262
with:
6363
path: ./.releaserc.json
6464
write-mode: overwrite
@@ -168,7 +168,7 @@ jobs:
168168
retention-days: 30
169169
if-no-files-found: error
170170
- name: Publish release distributions to PyPI
171-
uses: pypa/gh-action-pypi-publish@release/v1
171+
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v.1.12.3
172172
with:
173173
packages-dir: dist
174174

@@ -183,7 +183,7 @@ jobs:
183183
with:
184184
node-version: "lts/*"
185185
- name: Write package.json
186-
uses: DamianReeves/write-file-action@master
186+
uses: DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42 # v1.3
187187
with:
188188
path: ./package.json
189189
write-mode: overwrite
@@ -197,7 +197,7 @@ jobs:
197197
}
198198
}
199199
- name: Write .releaserc.json
200-
uses: DamianReeves/write-file-action@master
200+
uses: DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42 # v1.3
201201
with:
202202
path: ./.releaserc.json
203203
write-mode: overwrite

‎.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ __pycache__/
2424
build/
2525
dist/
2626
.eggs/
27-
*.egg-info
27+
*.egg-info
28+
poetry.lock

‎README.md

+88-19
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ pip install netboxlabs-diode-sdk
2020

2121
### Environment variables
2222

23-
* `DIODE_API_KEY` - API key for the Diode service
2423
* `DIODE_SDK_LOG_LEVEL` - Log level for the SDK (default: `INFO`)
2524
* `DIODE_SENTRY_DSN` - Optional Sentry DSN for error reporting
25+
* `DIODE_CLIENT_ID` - Client ID for OAuth2 authentication
26+
* `DIODE_CLIENT_SECRET` - Client Secret for OAuth2 authentication
2627

2728
### Example
2829

@@ -76,26 +77,94 @@ if __name__ == "__main__":
7677

7778
## Supported entities (object types)
7879

79-
* [Device](./docs/entities.md#device)
80-
* [Interface](./docs/entities.md#interface)
81-
* [Device Type](./docs/entities.md#device-type)
82-
* [Platform](./docs/entities.md#platform)
83-
* [Manufacturer](./docs/entities.md#manufacturer)
84-
* [Site](./docs/entities.md#site)
85-
* [Role](./docs/entities.md#role)
86-
* [IP Address](./docs/entities.md#ip-address)
87-
* [Prefix](./docs/entities.md#prefix)
88-
* [Cluster Group](./docs/entities.md#cluster-group)
89-
* [Cluster Type](./docs/entities.md#cluster-type)
90-
* [Cluster](./docs/entities.md#cluster)
91-
* [Virtual Machine](./docs/entities.md#virtual-machine)
92-
* [Virtual Disk](./docs/entities.md#virtual-disk)
93-
* [VM Interface](./docs/entities.md#vm-interface)
80+
* ASN
81+
* ASN Range
82+
* Aggregate
83+
* Circuit
84+
* Circuit Group
85+
* Circuit Group Assignment
86+
* Circuit Termination
87+
* Circuit Type
88+
* Cluster
89+
* Cluster Group
90+
* Cluster Type
91+
* Console Port
92+
* Console Server Port
93+
* Contact
94+
* Contact Assignment
95+
* Contact Group
96+
* Contact Role
97+
* Device
98+
* Device Bay
99+
* Device Role
100+
* Device Type
101+
* FHRP Group
102+
* FHRP Group Assignment
103+
* Front Port
104+
* IKE Policy
105+
* IKE Proposal
106+
* IP Address
107+
* IP Range
108+
* IP Sec Policy
109+
* IP Sec Profile
110+
* IP Sec Proposal
111+
* Interface
112+
* Inventory Item
113+
* Inventory Item Role
114+
* L2VPN
115+
* L2VPN Termination
116+
* Location
117+
* MAC Address
118+
* Manufacturer
119+
* Module
120+
* Module Bay
121+
* Module Type
122+
* Platform
123+
* Power Feed
124+
* Power Outlet
125+
* Power Panel
126+
* Power Port
127+
* Prefix
128+
* Provider
129+
* Provider Account
130+
* Provider Network
131+
* RIR
132+
* Rack
133+
* Rack Role
134+
* Rack Type
135+
* Rear Port
136+
* Region
137+
* Role
138+
* Route Target
139+
* Service
140+
* Site
141+
* Site Group
142+
* Tag
143+
* Tenant
144+
* Tenant Group
145+
* Tunnel
146+
* Tunnel Group
147+
* Tunnel Termination
148+
* VLAN
149+
* VLAN Group
150+
* VLAN Translation Policy
151+
* VLAN Translation Rule
152+
* VM Interface
153+
* VRF
154+
* Virtual Chassis
155+
* Virtual Circuit
156+
* Virtual Circuit Termination
157+
* Virtual Circuit Type
158+
* Virtual Device Context
159+
* Virtual Disk
160+
* Virtual Machine
161+
* Wireless Lan
162+
* Wireless Lan Group
163+
* Wireless Link
94164

95165
## Development notes
96166

97-
Code in `netboxlabs/diode/sdk/diode/*` is generated from Protocol Buffers definitions (will be published and referred
98-
here soon).
167+
Code in `netboxlabs/diode/sdk/diode/*` is generated from Protocol Buffers definitions (will be published and referenced here soon).
99168

100169
#### Linting
101170

@@ -107,7 +176,7 @@ black netboxlabs/
107176
#### Testing
108177

109178
```shell
110-
pytest tests/
179+
PYTHONPATH=$(pwd) pytest
111180
```
112181

113182
## License

0 commit comments

Comments
 (0)