Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8284,6 +8284,13 @@ <h3 id="metalstack.api.v2.MachineServiceGetRequest">MachineServiceGetRequest</h3
<td><p>Project of the machine </p></td>
</tr>

<tr>
<td>complete</td>
<td><a href="#bool">bool</a></td>
<td></td>
<td><p>Complete fetches all transitive entities as well which might be expensive. </p></td>
</tr>

</tbody>
</table>

Expand Down Expand Up @@ -8339,6 +8346,13 @@ <h3 id="metalstack.api.v2.MachineServiceListRequest">MachineServiceListRequest</
<td><p>Query to list one ore more machines </p></td>
</tr>

<tr>
<td>complete</td>
<td><a href="#bool">bool</a></td>
<td></td>
<td><p>Complete fetches all transitive entities as well which might be expensive. </p></td>
</tr>

</tbody>
</table>

Expand Down Expand Up @@ -8932,6 +8946,13 @@ <h3 id="metalstack.admin.v2.MachineServiceGetRequest">MachineServiceGetRequest</
<td><p>UUID of the machine to get </p></td>
</tr>

<tr>
<td>complete</td>
<td><a href="#bool">bool</a></td>
<td></td>
<td><p>Complete fetches all transitive entities as well which might be expensive. </p></td>
</tr>

</tbody>
</table>

Expand Down Expand Up @@ -8988,6 +9009,13 @@ <h3 id="metalstack.admin.v2.MachineServiceListRequest">MachineServiceListRequest
otherwise an error is thrown that the partition must be specified </p></td>
</tr>

<tr>
<td>complete</td>
<td><a href="#bool">bool</a></td>
<td></td>
<td><p>Complete fetches all transitive entities as well which might be expensive. </p></td>
</tr>

</tbody>
</table>

Expand Down
32 changes: 26 additions & 6 deletions go/metalstack/admin/v2/machine.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 26 additions & 6 deletions go/metalstack/api/v2/machine.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions proto/metalstack/admin/v2/machine.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ service MachineService {
message MachineServiceGetRequest {
// UUID of the machine to get
string uuid = 1 [(buf.validate.field).string.uuid = true];
// Complete fetches all transitive entities as well which might be expensive.
bool complete = 2;
}

// MachineServiceGetResponse is the request payload for a machine get response
Expand All @@ -44,6 +46,8 @@ message MachineServiceListRequest {
// Partition for which machines should be listed, could be left empty if only one partition is present
// otherwise an error is thrown that the partition must be specified
optional string partition = 2 [(buf.validate.field).string.(metalstack.api.v2.is_partition) = true];
// Complete fetches all transitive entities as well which might be expensive.
bool complete = 3;
}

// MachineServiceListResponse is the request payload for a machine list response
Expand Down
4 changes: 4 additions & 0 deletions proto/metalstack/api/v2/machine.proto
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ message MachineServiceGetRequest {
string uuid = 1 [(buf.validate.field).string.uuid = true];
// Project of the machine
string project = 2 [(buf.validate.field).string.uuid = true];
// Complete fetches all transitive entities as well which might be expensive.
bool complete = 3;
}

// MachineServiceGetResponse is the request payload for a machine get response
Expand Down Expand Up @@ -178,6 +180,8 @@ message MachineServiceListRequest {
string project = 1 [(buf.validate.field).string.uuid = true];
// Query to list one ore more machines
MachineQuery query = 2;
// Complete fetches all transitive entities as well which might be expensive.
bool complete = 3;
}

// MachineServiceListResponse is the request payload for a machine list response
Expand Down
20 changes: 10 additions & 10 deletions python/metalstack/admin/v2/machine_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions python/metalstack/admin/v2/machine_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
DESCRIPTOR: _descriptor.FileDescriptor

class MachineServiceGetRequest(_message.Message):
__slots__ = ("uuid",)
__slots__ = ("uuid", "complete")
UUID_FIELD_NUMBER: _ClassVar[int]
COMPLETE_FIELD_NUMBER: _ClassVar[int]
uuid: str
def __init__(self, uuid: _Optional[str] = ...) -> None: ...
complete: bool
def __init__(self, uuid: _Optional[str] = ..., complete: _Optional[bool] = ...) -> None: ...

class MachineServiceGetResponse(_message.Message):
__slots__ = ("machine",)
Expand All @@ -23,12 +25,14 @@ class MachineServiceGetResponse(_message.Message):
def __init__(self, machine: _Optional[_Union[_machine_pb2.Machine, _Mapping]] = ...) -> None: ...

class MachineServiceListRequest(_message.Message):
__slots__ = ("query", "partition")
__slots__ = ("query", "partition", "complete")
QUERY_FIELD_NUMBER: _ClassVar[int]
PARTITION_FIELD_NUMBER: _ClassVar[int]
COMPLETE_FIELD_NUMBER: _ClassVar[int]
query: _machine_pb2.MachineQuery
partition: str
def __init__(self, query: _Optional[_Union[_machine_pb2.MachineQuery, _Mapping]] = ..., partition: _Optional[str] = ...) -> None: ...
complete: bool
def __init__(self, query: _Optional[_Union[_machine_pb2.MachineQuery, _Mapping]] = ..., partition: _Optional[str] = ..., complete: _Optional[bool] = ...) -> None: ...

class MachineServiceListResponse(_message.Message):
__slots__ = ("machines",)
Expand Down
180 changes: 90 additions & 90 deletions python/metalstack/api/v2/machine_pb2.py

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions python/metalstack/api/v2/machine_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,14 @@ MACHINE_ALLOCATION_TYPE_MACHINE: MachineAllocationType
MACHINE_ALLOCATION_TYPE_FIREWALL: MachineAllocationType

class MachineServiceGetRequest(_message.Message):
__slots__ = ("uuid", "project")
__slots__ = ("uuid", "project", "complete")
UUID_FIELD_NUMBER: _ClassVar[int]
PROJECT_FIELD_NUMBER: _ClassVar[int]
COMPLETE_FIELD_NUMBER: _ClassVar[int]
uuid: str
project: str
def __init__(self, uuid: _Optional[str] = ..., project: _Optional[str] = ...) -> None: ...
complete: bool
def __init__(self, uuid: _Optional[str] = ..., project: _Optional[str] = ..., complete: _Optional[bool] = ...) -> None: ...

class MachineServiceGetResponse(_message.Message):
__slots__ = ("machine",)
Expand Down Expand Up @@ -185,12 +187,14 @@ class MachineServiceUpdateResponse(_message.Message):
def __init__(self, machine: _Optional[_Union[Machine, _Mapping]] = ...) -> None: ...

class MachineServiceListRequest(_message.Message):
__slots__ = ("project", "query")
__slots__ = ("project", "query", "complete")
PROJECT_FIELD_NUMBER: _ClassVar[int]
QUERY_FIELD_NUMBER: _ClassVar[int]
COMPLETE_FIELD_NUMBER: _ClassVar[int]
project: str
query: MachineQuery
def __init__(self, project: _Optional[str] = ..., query: _Optional[_Union[MachineQuery, _Mapping]] = ...) -> None: ...
complete: bool
def __init__(self, project: _Optional[str] = ..., query: _Optional[_Union[MachineQuery, _Mapping]] = ..., complete: _Optional[bool] = ...) -> None: ...

class MachineServiceListResponse(_message.Message):
__slots__ = ("machines",)
Expand Down
Loading