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
21 changes: 21 additions & 0 deletions doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14851,6 +14851,27 @@ <h3 id="metalstack.admin.v2.VPNServiceAuthKeyResponse">VPNServiceAuthKeyResponse
This key can only be seen once. </p></td>
</tr>

<tr>
<td>ephemeral</td>
<td><a href="#bool">bool</a></td>
<td></td>
<td><p>Ephemeral defines if the authkey should be ephemeral. </p></td>
</tr>

<tr>
<td>expires_at</td>
<td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
<td></td>
<td><p>ExpiresAt this key cannot be used after this timestamp. </p></td>
</tr>

<tr>
<td>created_at</td>
<td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
<td></td>
<td><p>CreatedAt this key was created at this timestamp. </p></td>
</tr>

</tbody>
</table>

Expand Down
66 changes: 51 additions & 15 deletions go/metalstack/admin/v2/vpn.pb.go

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

7 changes: 7 additions & 0 deletions proto/metalstack/admin/v2/vpn.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package metalstack.admin.v2;

import "buf/validate/validate.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "metalstack/api/v2/common.proto";
import "metalstack/api/v2/vpn.proto";

Expand Down Expand Up @@ -39,6 +40,12 @@ message VPNServiceAuthKeyResponse {
// AuthKey is the key to connect to the vpn at the given address.
// This key can only be seen once.
string auth_key = 2;
// Ephemeral defines if the authkey should be ephemeral.
bool ephemeral = 3;
// ExpiresAt this key cannot be used after this timestamp.
google.protobuf.Timestamp expires_at = 4;
// CreatedAt this key was created at this timestamp.
google.protobuf.Timestamp created_at = 5;
}

// VPNServiceListNodesRequest is the request payload for a vpn list nodes request
Expand Down
23 changes: 12 additions & 11 deletions python/metalstack/admin/v2/vpn_pb2.py

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

11 changes: 9 additions & 2 deletions python/metalstack/admin/v2/vpn_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import datetime

from buf.validate import validate_pb2 as _validate_pb2
from google.protobuf import duration_pb2 as _duration_pb2
from google.protobuf import timestamp_pb2 as _timestamp_pb2
from metalstack.api.v2 import common_pb2 as _common_pb2
from metalstack.api.v2 import vpn_pb2 as _vpn_pb2
from google.protobuf.internal import containers as _containers
Expand All @@ -23,12 +24,18 @@ class VPNServiceAuthKeyRequest(_message.Message):
def __init__(self, project: _Optional[str] = ..., ephemeral: _Optional[bool] = ..., expires: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ...) -> None: ...

class VPNServiceAuthKeyResponse(_message.Message):
__slots__ = ("address", "auth_key")
__slots__ = ("address", "auth_key", "ephemeral", "expires_at", "created_at")
ADDRESS_FIELD_NUMBER: _ClassVar[int]
AUTH_KEY_FIELD_NUMBER: _ClassVar[int]
EPHEMERAL_FIELD_NUMBER: _ClassVar[int]
EXPIRES_AT_FIELD_NUMBER: _ClassVar[int]
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
address: str
auth_key: str
def __init__(self, address: _Optional[str] = ..., auth_key: _Optional[str] = ...) -> None: ...
ephemeral: bool
expires_at: _timestamp_pb2.Timestamp
created_at: _timestamp_pb2.Timestamp
def __init__(self, address: _Optional[str] = ..., auth_key: _Optional[str] = ..., ephemeral: _Optional[bool] = ..., expires_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...

class VPNServiceListNodesRequest(_message.Message):
__slots__ = ("project",)
Expand Down
Loading