envoy-schema 2.3.2__tar.gz → 2.3.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. {envoy_schema-2.3.2/src/envoy_schema.egg-info → envoy_schema-2.3.3}/PKG-INFO +1 -1
  2. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/pyproject.toml +1 -1
  3. envoy_schema-2.3.3/src/envoy_schema/admin/schema/site_group.py +52 -0
  4. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/admin/schema/uri.py +4 -1
  5. {envoy_schema-2.3.2 → envoy_schema-2.3.3/src/envoy_schema.egg-info}/PKG-INFO +1 -1
  6. envoy_schema-2.3.2/src/envoy_schema/admin/schema/site_group.py +0 -23
  7. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/LICENSE +0 -0
  8. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/README.md +0 -0
  9. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/setup.cfg +0 -0
  10. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/__init__.py +0 -0
  11. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/admin/__init__.py +0 -0
  12. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/admin/schema/__init__.py +0 -0
  13. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/admin/schema/aggregator.py +0 -0
  14. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/admin/schema/archive.py +0 -0
  15. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/admin/schema/base.py +0 -0
  16. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/admin/schema/certificate.py +0 -0
  17. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/admin/schema/config.py +0 -0
  18. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/admin/schema/log.py +0 -0
  19. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/admin/schema/pricing.py +0 -0
  20. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/admin/schema/site.py +0 -0
  21. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/admin/schema/site_control.py +0 -0
  22. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/admin/schema/site_reading.py +0 -0
  23. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/py.typed +0 -0
  24. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/__init__.py +0 -0
  25. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/__init__.py +0 -0
  26. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/csip_aus/__init__.py +0 -0
  27. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/csip_aus/connection_point.py +0 -0
  28. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/sep2/__init__.py +0 -0
  29. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/sep2/base.py +0 -0
  30. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/sep2/der.py +0 -0
  31. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/sep2/der_control_types.py +0 -0
  32. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/sep2/device_capability.py +0 -0
  33. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/sep2/end_device.py +0 -0
  34. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/sep2/error.py +0 -0
  35. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/sep2/event.py +0 -0
  36. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/sep2/function_set_assignments.py +0 -0
  37. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/sep2/identification.py +0 -0
  38. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/sep2/log_events.py +0 -0
  39. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/sep2/metering.py +0 -0
  40. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/sep2/metering_mirror.py +0 -0
  41. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/sep2/pricing.py +0 -0
  42. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/sep2/primitive_types.py +0 -0
  43. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/sep2/pub_sub.py +0 -0
  44. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/sep2/response.py +0 -0
  45. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/sep2/time.py +0 -0
  46. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/sep2/types.py +0 -0
  47. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema/server/schema/uri.py +0 -0
  48. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema.egg-info/SOURCES.txt +0 -0
  49. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema.egg-info/dependency_links.txt +0 -0
  50. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema.egg-info/requires.txt +0 -0
  51. {envoy_schema-2.3.2 → envoy_schema-2.3.3}/src/envoy_schema.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: envoy_schema
3
- Version: 2.3.2
3
+ Version: 2.3.3
4
4
  Summary: Envoy Schema - a collection of pydantic models compatible with the Envoy utility server
5
5
  Author: Battery Storage and Grid Integration Program
6
6
  License: The MIT License (MIT)
@@ -34,7 +34,7 @@ build-backend = "setuptools.build_meta"
34
34
 
35
35
  [project]
36
36
  name = "envoy_schema"
37
- version = "2.3.2"
37
+ version = "2.3.3"
38
38
  description = "Envoy Schema - a collection of pydantic models compatible with the Envoy utility server"
39
39
  authors = [{ name = "Battery Storage and Grid Integration Program" }]
40
40
  readme = "README.md"
@@ -0,0 +1,52 @@
1
+ from datetime import datetime
2
+
3
+ from pydantic import BaseModel
4
+
5
+
6
+ class SiteGroupRequest(BaseModel):
7
+ """Request model for SiteGroup - used for creating"""
8
+
9
+ name: str # Unique name of this SiteGroup
10
+ default_group: bool # If set - all "new" site registrations (in/out of band) will be assigned to this group\
11
+
12
+
13
+ class SiteGroupResponse(SiteGroupRequest):
14
+ """Response model for SiteGroup - includes basic summary information"""
15
+
16
+ site_group_id: int
17
+ created_time: datetime
18
+ changed_time: datetime
19
+
20
+ total_sites: int # How many sites/assignments are linked to this group
21
+
22
+
23
+ class SiteGroupPageResponse(BaseModel):
24
+ """Represents a paginated response of SiteGroup"""
25
+
26
+ total_count: int # The total number of groups (independent of this page of results)
27
+ limit: int # The maximum number of groups that could've been returned (the limit set by the query)
28
+ start: int # The number of groups that have been skipped as part of this query (the start set by the query)
29
+ groups: list[SiteGroupResponse] # The group models in this page
30
+
31
+
32
+ class SiteGroupAssignmentRequest(BaseModel):
33
+ """Request model for SiteGroupAssignment - used for creating new assignments to a SiteGroup"""
34
+
35
+ site_id: int # The site_id whose membership is being added to a group
36
+
37
+
38
+ class SiteGroupAssignmentResponse(SiteGroupAssignmentRequest):
39
+ """Response model for SiteGroupAssignment - used for checking membership"""
40
+
41
+ site_group_assignment_id: int
42
+ created_time: datetime
43
+ changed_time: datetime
44
+
45
+
46
+ class SiteGroupAssignmentPageResponse(BaseModel):
47
+ """Represents a paginated response of SiteGroupAssignment"""
48
+
49
+ total_count: int # The total number of assignments (independent of this page of results)
50
+ limit: int # The maximum number of assignments that could've been returned (the limit set by the query)
51
+ start: int # The number of assignments that have been skipped as part of this query (the start set by the query)
52
+ assignments: list[SiteGroupAssignmentResponse] # The assignment models in this page
@@ -29,8 +29,11 @@ TariffGeneratedRateRangeUri = (
29
29
  )
30
30
  SiteListUri = "/site"
31
31
  SiteUri = "/site/{site_id}" # Supports updating/deleting single sites
32
- SiteGroupUri = "/site_group/{group_name}"
33
32
  SiteGroupListUri = "/site_group"
33
+ SiteGroupUri = "/site_group/{group_name}"
34
+ SiteGroupAssignmentsListUri = "/site_group/{group_name}/assignments"
35
+ SiteGroupAssignmentsUri = "/site_group/{group_name}/assignments/{site_group_assignment_id}"
36
+
34
37
  CSIPAusSiteReadingUri = "/site_readings/{site_id}/csip_aus_unit/{unit_enum}/period/{period_start}/{period_end}"
35
38
  CalculationLogCreateUri = "/calculation_log"
36
39
  CalculationLogUri = "/calculation_log/{calculation_log_id}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: envoy_schema
3
- Version: 2.3.2
3
+ Version: 2.3.3
4
4
  Summary: Envoy Schema - a collection of pydantic models compatible with the Envoy utility server
5
5
  Author: Battery Storage and Grid Integration Program
6
6
  License: The MIT License (MIT)
@@ -1,23 +0,0 @@
1
- from datetime import datetime
2
-
3
- from pydantic import BaseModel
4
-
5
-
6
- class SiteGroupResponse(BaseModel):
7
- """Response model for SiteGroup - includes basic summary information"""
8
-
9
- site_group_id: int
10
- name: str
11
- created_time: datetime
12
- changed_time: datetime
13
- default_group: bool # If set - all "new" site registrations (in/out of band) will be assigned to this group
14
- total_sites: int # How many sites are linked to this group
15
-
16
-
17
- class SiteGroupPageResponse(BaseModel):
18
- """Represents a paginated response of SiteGroup"""
19
-
20
- total_count: int # The total number of groups (independent of this page of results)
21
- limit: int # The maximum number of groups that could've been returned (the limit set by the query)
22
- start: int # The number of groups that have been skipped as part of this query (the start set by the query)
23
- groups: list[SiteGroupResponse] # The group models in this page
File without changes
File without changes
File without changes