Skip to content

Commit 1ffad1a

Browse files
committed
chore: gen code from proto
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
1 parent c96873f commit 1ffad1a

File tree

2 files changed

+138
-130
lines changed

2 files changed

+138
-130
lines changed

netboxlabs/diode/sdk/diode/v1/ingester_pb2.py

Lines changed: 125 additions & 123 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

netboxlabs/diode/sdk/diode/v1/ingester_pb2.pyi

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2563,7 +2563,7 @@ class ModuleType(_message.Message):
25632563
def __init__(self, manufacturer: _Optional[_Union[Manufacturer, _Mapping]] = ..., model: _Optional[str] = ..., part_number: _Optional[str] = ..., airflow: _Optional[str] = ..., weight: _Optional[float] = ..., weight_unit: _Optional[str] = ..., description: _Optional[str] = ..., comments: _Optional[str] = ..., tags: _Optional[_Iterable[_Union[Tag, _Mapping]]] = ..., custom_fields: _Optional[_Mapping[str, CustomFieldValue]] = ..., profile: _Optional[_Union[ModuleTypeProfile, _Mapping]] = ..., attributes: _Optional[str] = ...) -> None: ...
25642564

25652565
class Platform(_message.Message):
2566-
__slots__ = ("name", "slug", "manufacturer", "description", "tags", "custom_fields")
2566+
__slots__ = ("name", "slug", "manufacturer", "description", "tags", "custom_fields", "parent", "comments")
25672567
class CustomFieldsEntry(_message.Message):
25682568
__slots__ = ("key", "value")
25692569
KEY_FIELD_NUMBER: _ClassVar[int]
@@ -2577,13 +2577,17 @@ class Platform(_message.Message):
25772577
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
25782578
TAGS_FIELD_NUMBER: _ClassVar[int]
25792579
CUSTOM_FIELDS_FIELD_NUMBER: _ClassVar[int]
2580+
PARENT_FIELD_NUMBER: _ClassVar[int]
2581+
COMMENTS_FIELD_NUMBER: _ClassVar[int]
25802582
name: str
25812583
slug: str
25822584
manufacturer: Manufacturer
25832585
description: str
25842586
tags: _containers.RepeatedCompositeFieldContainer[Tag]
25852587
custom_fields: _containers.MessageMap[str, CustomFieldValue]
2586-
def __init__(self, name: _Optional[str] = ..., slug: _Optional[str] = ..., manufacturer: _Optional[_Union[Manufacturer, _Mapping]] = ..., description: _Optional[str] = ..., tags: _Optional[_Iterable[_Union[Tag, _Mapping]]] = ..., custom_fields: _Optional[_Mapping[str, CustomFieldValue]] = ...) -> None: ...
2588+
parent: Platform
2589+
comments: str
2590+
def __init__(self, name: _Optional[str] = ..., slug: _Optional[str] = ..., manufacturer: _Optional[_Union[Manufacturer, _Mapping]] = ..., description: _Optional[str] = ..., tags: _Optional[_Iterable[_Union[Tag, _Mapping]]] = ..., custom_fields: _Optional[_Mapping[str, CustomFieldValue]] = ..., parent: _Optional[_Union[Platform, _Mapping]] = ..., comments: _Optional[str] = ...) -> None: ...
25872591

25882592
class PowerFeed(_message.Message):
25892593
__slots__ = ("power_panel", "rack", "name", "status", "type", "supply", "phase", "voltage", "amperage", "max_utilization", "mark_connected", "description", "tenant", "comments", "tags", "custom_fields")
@@ -2934,7 +2938,7 @@ class Rack(_message.Message):
29342938
def __init__(self, name: _Optional[str] = ..., facility_id: _Optional[str] = ..., site: _Optional[_Union[Site, _Mapping]] = ..., location: _Optional[_Union[Location, _Mapping]] = ..., tenant: _Optional[_Union[Tenant, _Mapping]] = ..., status: _Optional[str] = ..., role: _Optional[_Union[RackRole, _Mapping]] = ..., serial: _Optional[str] = ..., asset_tag: _Optional[str] = ..., rack_type: _Optional[_Union[RackType, _Mapping]] = ..., form_factor: _Optional[str] = ..., width: _Optional[int] = ..., u_height: _Optional[int] = ..., starting_unit: _Optional[int] = ..., weight: _Optional[float] = ..., max_weight: _Optional[int] = ..., weight_unit: _Optional[str] = ..., desc_units: bool = ..., outer_width: _Optional[int] = ..., outer_depth: _Optional[int] = ..., outer_unit: _Optional[str] = ..., mounting_depth: _Optional[int] = ..., airflow: _Optional[str] = ..., description: _Optional[str] = ..., comments: _Optional[str] = ..., tags: _Optional[_Iterable[_Union[Tag, _Mapping]]] = ..., custom_fields: _Optional[_Mapping[str, CustomFieldValue]] = ..., outer_height: _Optional[int] = ...) -> None: ...
29352939

29362940
class RackReservation(_message.Message):
2937-
__slots__ = ("rack", "units", "tenant", "description", "comments", "tags", "custom_fields")
2941+
__slots__ = ("rack", "units", "tenant", "description", "comments", "tags", "custom_fields", "status")
29382942
class CustomFieldsEntry(_message.Message):
29392943
__slots__ = ("key", "value")
29402944
KEY_FIELD_NUMBER: _ClassVar[int]
@@ -2949,14 +2953,16 @@ class RackReservation(_message.Message):
29492953
COMMENTS_FIELD_NUMBER: _ClassVar[int]
29502954
TAGS_FIELD_NUMBER: _ClassVar[int]
29512955
CUSTOM_FIELDS_FIELD_NUMBER: _ClassVar[int]
2956+
STATUS_FIELD_NUMBER: _ClassVar[int]
29522957
rack: Rack
29532958
units: _containers.RepeatedScalarFieldContainer[int]
29542959
tenant: Tenant
29552960
description: str
29562961
comments: str
29572962
tags: _containers.RepeatedCompositeFieldContainer[Tag]
29582963
custom_fields: _containers.MessageMap[str, CustomFieldValue]
2959-
def __init__(self, rack: _Optional[_Union[Rack, _Mapping]] = ..., units: _Optional[_Iterable[int]] = ..., tenant: _Optional[_Union[Tenant, _Mapping]] = ..., description: _Optional[str] = ..., comments: _Optional[str] = ..., tags: _Optional[_Iterable[_Union[Tag, _Mapping]]] = ..., custom_fields: _Optional[_Mapping[str, CustomFieldValue]] = ...) -> None: ...
2964+
status: str
2965+
def __init__(self, rack: _Optional[_Union[Rack, _Mapping]] = ..., units: _Optional[_Iterable[int]] = ..., tenant: _Optional[_Union[Tenant, _Mapping]] = ..., description: _Optional[str] = ..., comments: _Optional[str] = ..., tags: _Optional[_Iterable[_Union[Tag, _Mapping]]] = ..., custom_fields: _Optional[_Mapping[str, CustomFieldValue]] = ..., status: _Optional[str] = ...) -> None: ...
29602966

29612967
class RackRole(_message.Message):
29622968
__slots__ = ("name", "slug", "color", "description", "tags", "custom_fields")
@@ -4092,13 +4098,13 @@ class CustomField(_message.Message):
40924098
default: str
40934099
related_object_filter: str
40944100
weight: int
4095-
validation_minimum: int
4096-
validation_maximum: int
4101+
validation_minimum: float
4102+
validation_maximum: float
40974103
validation_regex: str
40984104
choice_set: CustomFieldChoiceSet
40994105
comments: str
41004106
object_types: _containers.RepeatedScalarFieldContainer[str]
4101-
def __init__(self, type: _Optional[str] = ..., related_object_type: _Optional[str] = ..., name: _Optional[str] = ..., label: _Optional[str] = ..., group_name: _Optional[str] = ..., description: _Optional[str] = ..., required: bool = ..., unique: bool = ..., search_weight: _Optional[int] = ..., filter_logic: _Optional[str] = ..., ui_visible: _Optional[str] = ..., ui_editable: _Optional[str] = ..., is_cloneable: bool = ..., default: _Optional[str] = ..., related_object_filter: _Optional[str] = ..., weight: _Optional[int] = ..., validation_minimum: _Optional[int] = ..., validation_maximum: _Optional[int] = ..., validation_regex: _Optional[str] = ..., choice_set: _Optional[_Union[CustomFieldChoiceSet, _Mapping]] = ..., comments: _Optional[str] = ..., object_types: _Optional[_Iterable[str]] = ...) -> None: ...
4107+
def __init__(self, type: _Optional[str] = ..., related_object_type: _Optional[str] = ..., name: _Optional[str] = ..., label: _Optional[str] = ..., group_name: _Optional[str] = ..., description: _Optional[str] = ..., required: bool = ..., unique: bool = ..., search_weight: _Optional[int] = ..., filter_logic: _Optional[str] = ..., ui_visible: _Optional[str] = ..., ui_editable: _Optional[str] = ..., is_cloneable: bool = ..., default: _Optional[str] = ..., related_object_filter: _Optional[str] = ..., weight: _Optional[int] = ..., validation_minimum: _Optional[float] = ..., validation_maximum: _Optional[float] = ..., validation_regex: _Optional[str] = ..., choice_set: _Optional[_Union[CustomFieldChoiceSet, _Mapping]] = ..., comments: _Optional[str] = ..., object_types: _Optional[_Iterable[str]] = ...) -> None: ...
41024108

41034109
class CustomFieldChoiceSet(_message.Message):
41044110
__slots__ = ("name", "description", "base_choices", "order_alphabetically", "extra_choices")

0 commit comments

Comments
 (0)