Skip to content
Closed
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
8 changes: 8 additions & 0 deletions doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4569,6 +4569,14 @@ <h3 id="metalstack.api.v2.Token">Token</h3>
TODO: decide if we need this map from machine.uuid-&gt;role, we could instead use the subject in the token instead </p></td>
</tr>

<tr>
<td>refreshed_at</td>
<td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
<td></td>
<td><p>RefreshedAt indicates the timestamp when this token was refreshed.
this is only set on tokens which have been created during a refresh call. </p></td>
</tr>

</tbody>
</table>

Expand Down
133 changes: 73 additions & 60 deletions go/metalstack/api/v2/token.pb.go

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions js/metalstack/api/v2/token_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ export type Token = Message<"metalstack.api.v2.Token"> & {
machineRoles: {
[key: string]: MachineRole;
};
/**
* RefreshedAt indicates the timestamp when this token was refreshed.
* this is only set on tokens which have been created during a refresh call.
*
* @generated from field: google.protobuf.Timestamp refreshed_at = 14;
*/
refreshedAt?: Timestamp | undefined;
};
/**
* Describes the message metalstack.api.v2.Token.
Expand Down
2 changes: 1 addition & 1 deletion js/metalstack/api/v2/token_pb.js

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion js/metalstack/api/v2/token_pb.ts

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions proto/metalstack/api/v2/token.proto
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ message Token {
},
(buf.validate.field).map.(metalstack.api.v2.keys_trimmed) = true
];
// RefreshedAt indicates the timestamp when this token was refreshed.
// this is only set on tokens which have been created during a refresh call.
google.protobuf.Timestamp refreshed_at = 14;
}

// TokenType specifies different use cases of tokens
Expand Down
136 changes: 68 additions & 68 deletions python/metalstack/api/v2/token_pb2.py

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions python/metalstack/api/v2/token_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ TOKEN_TYPE_API: TokenType
TOKEN_TYPE_USER: TokenType

class Token(_message.Message):
__slots__ = ("uuid", "user", "meta", "description", "permissions", "expires", "issued_at", "token_type", "project_roles", "tenant_roles", "admin_role", "infra_role", "machine_roles")
__slots__ = ("uuid", "user", "meta", "description", "permissions", "expires", "issued_at", "token_type", "project_roles", "tenant_roles", "admin_role", "infra_role", "machine_roles", "refreshed_at")
class ProjectRolesEntry(_message.Message):
__slots__ = ("key", "value")
KEY_FIELD_NUMBER: _ClassVar[int]
Expand Down Expand Up @@ -59,6 +59,7 @@ class Token(_message.Message):
ADMIN_ROLE_FIELD_NUMBER: _ClassVar[int]
INFRA_ROLE_FIELD_NUMBER: _ClassVar[int]
MACHINE_ROLES_FIELD_NUMBER: _ClassVar[int]
REFRESHED_AT_FIELD_NUMBER: _ClassVar[int]
uuid: str
user: str
meta: _common_pb2.Meta
Expand All @@ -72,7 +73,8 @@ class Token(_message.Message):
admin_role: _common_pb2.AdminRole
infra_role: _common_pb2.InfraRole
machine_roles: _containers.ScalarMap[str, _common_pb2.MachineRole]
def __init__(self, uuid: _Optional[str] = ..., user: _Optional[str] = ..., meta: _Optional[_Union[_common_pb2.Meta, _Mapping]] = ..., description: _Optional[str] = ..., permissions: _Optional[_Iterable[_Union[MethodPermission, _Mapping]]] = ..., expires: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., issued_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., token_type: _Optional[_Union[TokenType, str]] = ..., project_roles: _Optional[_Mapping[str, _common_pb2.ProjectRole]] = ..., tenant_roles: _Optional[_Mapping[str, _common_pb2.TenantRole]] = ..., admin_role: _Optional[_Union[_common_pb2.AdminRole, str]] = ..., infra_role: _Optional[_Union[_common_pb2.InfraRole, str]] = ..., machine_roles: _Optional[_Mapping[str, _common_pb2.MachineRole]] = ...) -> None: ...
refreshed_at: _timestamp_pb2.Timestamp
def __init__(self, uuid: _Optional[str] = ..., user: _Optional[str] = ..., meta: _Optional[_Union[_common_pb2.Meta, _Mapping]] = ..., description: _Optional[str] = ..., permissions: _Optional[_Iterable[_Union[MethodPermission, _Mapping]]] = ..., expires: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., issued_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., token_type: _Optional[_Union[TokenType, str]] = ..., project_roles: _Optional[_Mapping[str, _common_pb2.ProjectRole]] = ..., tenant_roles: _Optional[_Mapping[str, _common_pb2.TenantRole]] = ..., admin_role: _Optional[_Union[_common_pb2.AdminRole, str]] = ..., infra_role: _Optional[_Union[_common_pb2.InfraRole, str]] = ..., machine_roles: _Optional[_Mapping[str, _common_pb2.MachineRole]] = ..., refreshed_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...

class TokenServiceCreateRequest(_message.Message):
__slots__ = ("description", "permissions", "expires", "project_roles", "tenant_roles", "admin_role", "infra_role", "machine_roles", "labels")
Expand Down
Loading