metal-stack-api 0.0.11__py3-none-any.whl → 0.0.13__py3-none-any.whl
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.
- buf/validate/validate_pb2.py +3 -3
- buf/validate/validate_pb2.pyi +13 -13
- {metal_stack_api-0.0.11.dist-info → metal_stack_api-0.0.13.dist-info}/METADATA +1 -1
- {metal_stack_api-0.0.11.dist-info → metal_stack_api-0.0.13.dist-info}/RECORD +48 -44
- metalstack/admin/v2/filesystem_pb2.py +3 -3
- metalstack/admin/v2/image_pb2.py +3 -3
- metalstack/admin/v2/ip_pb2.py +3 -3
- metalstack/admin/v2/machine_connecpy.py +158 -0
- metalstack/admin/v2/machine_pb2.py +54 -0
- metalstack/admin/v2/machine_pb2.pyi +34 -0
- metalstack/admin/v2/machine_pb2_grpc.py +125 -0
- metalstack/admin/v2/network_pb2.py +23 -23
- metalstack/admin/v2/network_pb2.pyi +5 -5
- metalstack/admin/v2/partition_pb2.py +3 -3
- metalstack/admin/v2/size_pb2.py +3 -3
- metalstack/admin/v2/tenant_pb2.py +3 -3
- metalstack/admin/v2/token_pb2.py +15 -15
- metalstack/admin/v2/token_pb2.pyi +8 -8
- metalstack/api/v2/common_pb2.py +3 -3
- metalstack/api/v2/filesystem_pb2.py +40 -40
- metalstack/api/v2/filesystem_pb2.pyi +5 -5
- metalstack/api/v2/health_pb2.py +3 -3
- metalstack/api/v2/image_pb2.py +3 -3
- metalstack/api/v2/ip_pb2.py +33 -33
- metalstack/api/v2/ip_pb2.pyi +8 -8
- metalstack/api/v2/machine_pb2.py +60 -36
- metalstack/api/v2/machine_pb2.pyi +31 -4
- metalstack/api/v2/machine_pb2_grpc.py +1 -1
- metalstack/api/v2/method_pb2.py +3 -3
- metalstack/api/v2/network_pb2.py +47 -47
- metalstack/api/v2/network_pb2.pyi +12 -12
- metalstack/api/v2/partition_pb2.py +3 -3
- metalstack/api/v2/project_pb2.py +21 -21
- metalstack/api/v2/project_pb2.pyi +10 -10
- metalstack/api/v2/size_pb2.py +3 -3
- metalstack/api/v2/switch_pb2.py +23 -23
- metalstack/api/v2/switch_pb2.pyi +4 -4
- metalstack/api/v2/tenant_pb2.py +57 -57
- metalstack/api/v2/tenant_pb2.pyi +13 -13
- metalstack/api/v2/token_pb2.py +49 -49
- metalstack/api/v2/token_pb2.pyi +4 -4
- metalstack/api/v2/user_pb2.py +3 -3
- metalstack/api/v2/version_pb2.py +3 -3
- metalstack/client/client.py +4 -0
- metalstack/infra/v2/bmc_pb2.py +3 -3
- metalstack/infra/v2/switch_pb2.py +3 -3
- {metal_stack_api-0.0.11.dist-info → metal_stack_api-0.0.13.dist-info}/WHEEL +0 -0
- {metal_stack_api-0.0.11.dist-info → metal_stack_api-0.0.13.dist-info}/top_level.txt +0 -0
metalstack/api/v2/tenant_pb2.pyi
CHANGED
|
@@ -30,16 +30,16 @@ class Tenant(_message.Message):
|
|
|
30
30
|
def __init__(self, login: _Optional[str] = ..., meta: _Optional[_Union[_common_pb2.Meta, _Mapping]] = ..., name: _Optional[str] = ..., email: _Optional[str] = ..., description: _Optional[str] = ..., avatar_url: _Optional[str] = ..., created_by: _Optional[str] = ...) -> None: ...
|
|
31
31
|
|
|
32
32
|
class TenantMember(_message.Message):
|
|
33
|
-
__slots__ = ("id", "role", "
|
|
33
|
+
__slots__ = ("id", "role", "projects", "created_at")
|
|
34
34
|
ID_FIELD_NUMBER: _ClassVar[int]
|
|
35
35
|
ROLE_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
-
|
|
36
|
+
PROJECTS_FIELD_NUMBER: _ClassVar[int]
|
|
37
37
|
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
38
38
|
id: str
|
|
39
39
|
role: _common_pb2.TenantRole
|
|
40
|
-
|
|
40
|
+
projects: _containers.RepeatedScalarFieldContainer[str]
|
|
41
41
|
created_at: _timestamp_pb2.Timestamp
|
|
42
|
-
def __init__(self, id: _Optional[str] = ..., role: _Optional[_Union[_common_pb2.TenantRole, str]] = ...,
|
|
42
|
+
def __init__(self, id: _Optional[str] = ..., role: _Optional[_Union[_common_pb2.TenantRole, str]] = ..., projects: _Optional[_Iterable[str]] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
43
43
|
|
|
44
44
|
class TenantInvite(_message.Message):
|
|
45
45
|
__slots__ = ("secret", "target_tenant", "role", "joined", "target_tenant_name", "tenant", "tenant_name", "expires_at", "joined_at")
|
|
@@ -61,7 +61,7 @@ class TenantInvite(_message.Message):
|
|
|
61
61
|
tenant_name: str
|
|
62
62
|
expires_at: _timestamp_pb2.Timestamp
|
|
63
63
|
joined_at: _timestamp_pb2.Timestamp
|
|
64
|
-
def __init__(self, secret: _Optional[str] = ..., target_tenant: _Optional[str] = ..., role: _Optional[_Union[_common_pb2.TenantRole, str]] = ..., joined: bool = ..., target_tenant_name: _Optional[str] = ..., tenant: _Optional[str] = ..., tenant_name: _Optional[str] = ..., expires_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., joined_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
64
|
+
def __init__(self, secret: _Optional[str] = ..., target_tenant: _Optional[str] = ..., role: _Optional[_Union[_common_pb2.TenantRole, str]] = ..., joined: _Optional[bool] = ..., target_tenant_name: _Optional[str] = ..., tenant: _Optional[str] = ..., tenant_name: _Optional[str] = ..., expires_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., joined_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
65
65
|
|
|
66
66
|
class TenantServiceListRequest(_message.Message):
|
|
67
67
|
__slots__ = ("id", "name")
|
|
@@ -182,12 +182,12 @@ class TenantServiceInviteGetResponse(_message.Message):
|
|
|
182
182
|
def __init__(self, invite: _Optional[_Union[TenantInvite, _Mapping]] = ...) -> None: ...
|
|
183
183
|
|
|
184
184
|
class TenantServiceRemoveMemberRequest(_message.Message):
|
|
185
|
-
__slots__ = ("login", "
|
|
185
|
+
__slots__ = ("login", "member")
|
|
186
186
|
LOGIN_FIELD_NUMBER: _ClassVar[int]
|
|
187
|
-
|
|
187
|
+
MEMBER_FIELD_NUMBER: _ClassVar[int]
|
|
188
188
|
login: str
|
|
189
|
-
|
|
190
|
-
def __init__(self, login: _Optional[str] = ...,
|
|
189
|
+
member: str
|
|
190
|
+
def __init__(self, login: _Optional[str] = ..., member: _Optional[str] = ...) -> None: ...
|
|
191
191
|
|
|
192
192
|
class TenantServiceRemoveMemberResponse(_message.Message):
|
|
193
193
|
__slots__ = ()
|
|
@@ -220,14 +220,14 @@ class TenantServiceInviteDeleteResponse(_message.Message):
|
|
|
220
220
|
def __init__(self) -> None: ...
|
|
221
221
|
|
|
222
222
|
class TenantServiceUpdateMemberRequest(_message.Message):
|
|
223
|
-
__slots__ = ("login", "
|
|
223
|
+
__slots__ = ("login", "member", "role")
|
|
224
224
|
LOGIN_FIELD_NUMBER: _ClassVar[int]
|
|
225
|
-
|
|
225
|
+
MEMBER_FIELD_NUMBER: _ClassVar[int]
|
|
226
226
|
ROLE_FIELD_NUMBER: _ClassVar[int]
|
|
227
227
|
login: str
|
|
228
|
-
|
|
228
|
+
member: str
|
|
229
229
|
role: _common_pb2.TenantRole
|
|
230
|
-
def __init__(self, login: _Optional[str] = ...,
|
|
230
|
+
def __init__(self, login: _Optional[str] = ..., member: _Optional[str] = ..., role: _Optional[_Union[_common_pb2.TenantRole, str]] = ...) -> None: ...
|
|
231
231
|
|
|
232
232
|
class TenantServiceUpdateMemberResponse(_message.Message):
|
|
233
233
|
__slots__ = ("tenant_member",)
|
metalstack/api/v2/token_pb2.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/api/v2/token.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.32.0
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
32,
|
|
16
|
+
0,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/api/v2/token.proto'
|
|
19
19
|
)
|
|
@@ -28,7 +28,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__
|
|
|
28
28
|
from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__pb2
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dmetalstack/api/v2/token.proto\x12\x11metalstack.api.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1emetalstack/api/v2/common.proto\"\
|
|
31
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dmetalstack/api/v2/token.proto\x12\x11metalstack.api.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1emetalstack/api/v2/common.proto\"\xb5\x06\n\x05Token\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x1e\n\x04user\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x04R\x04user\x12,\n\x0b\x64\x65scription\x18\x03 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x02R\x0b\x64\x65scription\x12P\n\x0bpermissions\x18\x04 \x03(\x0b\x32#.metalstack.api.v2.MethodPermissionB\t\xbaH\x06\x92\x01\x03\x10\xf4\x03R\x0bpermissions\x12\x34\n\x07\x65xpires\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65xpires\x12\x37\n\tissued_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x08issuedAt\x12\x45\n\ntoken_type\x18\x08 \x01(\x0e\x32\x1c.metalstack.api.v2.TokenTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\ttokenType\x12O\n\rproject_roles\x18\t \x03(\x0b\x32*.metalstack.api.v2.Token.ProjectRolesEntryR\x0cprojectRoles\x12L\n\x0ctenant_roles\x18\n \x03(\x0b\x32).metalstack.api.v2.Token.TenantRolesEntryR\x0btenantRoles\x12J\n\nadmin_role\x18\x0b \x01(\x0e\x32\x1c.metalstack.api.v2.AdminRoleB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x00R\tadminRole\x88\x01\x01\x1a_\n\x11ProjectRolesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x34\n\x05value\x18\x02 \x01(\x0e\x32\x1e.metalstack.api.v2.ProjectRoleR\x05value:\x02\x38\x01\x1a]\n\x10TenantRolesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x33\n\x05value\x18\x02 \x01(\x0e\x32\x1d.metalstack.api.v2.TenantRoleR\x05value:\x02\x38\x01\x42\r\n\x0b_admin_role\"\x82\x07\n\x19TokenServiceCreateRequest\x12,\n\x0b\x64\x65scription\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x02R\x0b\x64\x65scription\x12O\n\x0bpermissions\x18\x02 \x03(\x0b\x32#.metalstack.api.v2.MethodPermissionB\x08\xbaH\x05\x92\x01\x02\x10\x64R\x0bpermissions\x12G\n\x07\x65xpires\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x12\xbaH\x0f\xaa\x01\x0c\x1a\x05\x08\x81\xe7\x84\x0f\x32\x03\x08\xd8\x04R\x07\x65xpires\x12\xc1\x01\n\rproject_roles\x18\x05 \x03(\x0b\x32>.metalstack.api.v2.TokenServiceCreateRequest.ProjectRolesEntryB\\\xbaHY\x9a\x01V\"\x07r\x05\x10\x03\x18\x80\x01*K\xba\x01H\n\x0erole-specified\x12\x1eproject role must be specified\x1a\x16this >= 0 && this <= 3R\x0cprojectRoles\x12\xbd\x01\n\x0ctenant_roles\x18\x06 \x03(\x0b\x32=.metalstack.api.v2.TokenServiceCreateRequest.TenantRolesEntryB[\xbaHX\x9a\x01U\"\x07r\x05\x10\x03\x18\x80\x01*J\xba\x01G\n\x0erole-specified\x12\x1dtenant role must be specified\x1a\x16this >= 0 && this <= 4R\x0btenantRoles\x12J\n\nadmin_role\x18\x07 \x01(\x0e\x32\x1c.metalstack.api.v2.AdminRoleB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x00R\tadminRole\x88\x01\x01\x1a_\n\x11ProjectRolesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x34\n\x05value\x18\x02 \x01(\x0e\x32\x1e.metalstack.api.v2.ProjectRoleR\x05value:\x02\x38\x01\x1a]\n\x10TenantRolesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x33\n\x05value\x18\x02 \x01(\x0e\x32\x1d.metalstack.api.v2.TenantRoleR\x05value:\x02\x38\x01\x42\r\n\x0b_admin_role\"]\n\x10MethodPermission\x12$\n\x07subject\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x02R\x07subject\x12#\n\x07methods\x18\x02 \x03(\tB\t\xbaH\x06\x92\x01\x03\x10\xf4\x03R\x07methods\"d\n\x1aTokenServiceCreateResponse\x12.\n\x05token\x18\x01 \x01(\x0b\x32\x18.metalstack.api.v2.TokenR\x05token\x12\x16\n\x06secret\x18\x02 \x01(\tR\x06secret\"\x19\n\x17TokenServiceListRequest\"L\n\x18TokenServiceListResponse\x12\x30\n\x06tokens\x18\x01 \x03(\x0b\x32\x18.metalstack.api.v2.TokenR\x06tokens\"9\n\x19TokenServiceRevokeRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"\x1c\n\x1aTokenServiceRevokeResponse\"\xe2\x06\n\x19TokenServiceUpdateRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x31\n\x0b\x64\x65scription\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x02H\x00R\x0b\x64\x65scription\x88\x01\x01\x12\x45\n\x0bpermissions\x18\x03 \x03(\x0b\x32#.metalstack.api.v2.MethodPermissionR\x0bpermissions\x12\xc1\x01\n\rproject_roles\x18\x04 \x03(\x0b\x32>.metalstack.api.v2.TokenServiceUpdateRequest.ProjectRolesEntryB\\\xbaHY\x9a\x01V\"\x07r\x05\x10\x03\x18\x80\x01*K\xba\x01H\n\x0erole-specified\x12\x1eproject role must be specified\x1a\x16this >= 0 && this <= 3R\x0cprojectRoles\x12\xbd\x01\n\x0ctenant_roles\x18\x05 \x03(\x0b\x32=.metalstack.api.v2.TokenServiceUpdateRequest.TenantRolesEntryB[\xbaHX\x9a\x01U\"\x07r\x05\x10\x03\x18\x80\x01*J\xba\x01G\n\x0erole-specified\x12\x1dtenant role must be specified\x1a\x16this >= 0 && this <= 4R\x0btenantRoles\x12J\n\nadmin_role\x18\x06 \x01(\x0e\x32\x1c.metalstack.api.v2.AdminRoleB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x01R\tadminRole\x88\x01\x01\x1a_\n\x11ProjectRolesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x34\n\x05value\x18\x02 \x01(\x0e\x32\x1e.metalstack.api.v2.ProjectRoleR\x05value:\x02\x38\x01\x1a]\n\x10TenantRolesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x33\n\x05value\x18\x02 \x01(\x0e\x32\x1d.metalstack.api.v2.TenantRoleR\x05value:\x02\x38\x01\x42\x0e\n\x0c_descriptionB\r\n\x0b_admin_role\"L\n\x1aTokenServiceUpdateResponse\x12.\n\x05token\x18\x01 \x01(\x0b\x32\x18.metalstack.api.v2.TokenR\x05token\"6\n\x16TokenServiceGetRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"I\n\x17TokenServiceGetResponse\x12.\n\x05token\x18\x01 \x01(\x0b\x32\x18.metalstack.api.v2.TokenR\x05token\"\x1c\n\x1aTokenServiceRefreshRequest\"e\n\x1bTokenServiceRefreshResponse\x12.\n\x05token\x18\x01 \x01(\x0b\x32\x18.metalstack.api.v2.TokenR\x05token\x12\x16\n\x06secret\x18\x02 \x01(\tR\x06secret*S\n\tTokenType\x12\x1a\n\x16TOKEN_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eTOKEN_TYPE_API\x10\x01\x12\x16\n\x12TOKEN_TYPE_CONSOLE\x10\x02\x32\x90\x05\n\x0cTokenService\x12\x62\n\x03Get\x12).metalstack.api.v2.TokenServiceGetRequest\x1a*.metalstack.api.v2.TokenServiceGetResponse\"\x04\xd8\xf3\x18\x03\x12k\n\x06\x43reate\x12,.metalstack.api.v2.TokenServiceCreateRequest\x1a-.metalstack.api.v2.TokenServiceCreateResponse\"\x04\xd8\xf3\x18\x03\x12k\n\x06Update\x12,.metalstack.api.v2.TokenServiceUpdateRequest\x1a-.metalstack.api.v2.TokenServiceUpdateResponse\"\x04\xd8\xf3\x18\x03\x12\x65\n\x04List\x12*.metalstack.api.v2.TokenServiceListRequest\x1a+.metalstack.api.v2.TokenServiceListResponse\"\x04\xd8\xf3\x18\x03\x12k\n\x06Revoke\x12,.metalstack.api.v2.TokenServiceRevokeRequest\x1a-.metalstack.api.v2.TokenServiceRevokeResponse\"\x04\xd8\xf3\x18\x03\x12n\n\x07Refresh\x12-.metalstack.api.v2.TokenServiceRefreshRequest\x1a..metalstack.api.v2.TokenServiceRefreshResponse\"\x04\xd8\xf3\x18\x03\x42\xc0\x01\n\x15\x63om.metalstack.api.v2B\nTokenProtoP\x01Z5github.com/metal-stack/api/go/metalstack/api/v2;apiv2\xa2\x02\x03MAX\xaa\x02\x11Metalstack.Api.V2\xca\x02\x11Metalstack\\Api\\V2\xe2\x02\x1dMetalstack\\Api\\V2\\GPBMetadata\xea\x02\x13Metalstack::Api::V2b\x06proto3')
|
|
32
32
|
|
|
33
33
|
_globals = globals()
|
|
34
34
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -42,8 +42,8 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
42
42
|
_globals['_TOKEN_TENANTROLESENTRY']._serialized_options = b'8\001'
|
|
43
43
|
_globals['_TOKEN'].fields_by_name['uuid']._loaded_options = None
|
|
44
44
|
_globals['_TOKEN'].fields_by_name['uuid']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
45
|
-
_globals['_TOKEN'].fields_by_name['
|
|
46
|
-
_globals['_TOKEN'].fields_by_name['
|
|
45
|
+
_globals['_TOKEN'].fields_by_name['user']._loaded_options = None
|
|
46
|
+
_globals['_TOKEN'].fields_by_name['user']._serialized_options = b'\272H\007r\005\020\002\030\200\004'
|
|
47
47
|
_globals['_TOKEN'].fields_by_name['description']._loaded_options = None
|
|
48
48
|
_globals['_TOKEN'].fields_by_name['description']._serialized_options = b'\272H\007r\005\020\002\030\200\002'
|
|
49
49
|
_globals['_TOKEN'].fields_by_name['permissions']._loaded_options = None
|
|
@@ -102,48 +102,48 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
102
102
|
_globals['_TOKENSERVICE'].methods_by_name['Revoke']._serialized_options = b'\330\363\030\003'
|
|
103
103
|
_globals['_TOKENSERVICE'].methods_by_name['Refresh']._loaded_options = None
|
|
104
104
|
_globals['_TOKENSERVICE'].methods_by_name['Refresh']._serialized_options = b'\330\363\030\003'
|
|
105
|
-
_globals['_TOKENTYPE']._serialized_start=
|
|
106
|
-
_globals['_TOKENTYPE']._serialized_end=
|
|
105
|
+
_globals['_TOKENTYPE']._serialized_start=3505
|
|
106
|
+
_globals['_TOKENTYPE']._serialized_end=3588
|
|
107
107
|
_globals['_TOKEN']._serialized_start=179
|
|
108
|
-
_globals['_TOKEN']._serialized_end=
|
|
109
|
-
_globals['_TOKEN_PROJECTROLESENTRY']._serialized_start=
|
|
110
|
-
_globals['_TOKEN_PROJECTROLESENTRY']._serialized_end=
|
|
111
|
-
_globals['_TOKEN_TENANTROLESENTRY']._serialized_start=
|
|
112
|
-
_globals['_TOKEN_TENANTROLESENTRY']._serialized_end=
|
|
113
|
-
_globals['_TOKENSERVICECREATEREQUEST']._serialized_start=
|
|
114
|
-
_globals['_TOKENSERVICECREATEREQUEST']._serialized_end=
|
|
115
|
-
_globals['_TOKENSERVICECREATEREQUEST_PROJECTROLESENTRY']._serialized_start=
|
|
116
|
-
_globals['_TOKENSERVICECREATEREQUEST_PROJECTROLESENTRY']._serialized_end=
|
|
117
|
-
_globals['_TOKENSERVICECREATEREQUEST_TENANTROLESENTRY']._serialized_start=
|
|
118
|
-
_globals['_TOKENSERVICECREATEREQUEST_TENANTROLESENTRY']._serialized_end=
|
|
119
|
-
_globals['_METHODPERMISSION']._serialized_start=
|
|
120
|
-
_globals['_METHODPERMISSION']._serialized_end=
|
|
121
|
-
_globals['_TOKENSERVICECREATERESPONSE']._serialized_start=
|
|
122
|
-
_globals['_TOKENSERVICECREATERESPONSE']._serialized_end=
|
|
123
|
-
_globals['_TOKENSERVICELISTREQUEST']._serialized_start=
|
|
124
|
-
_globals['_TOKENSERVICELISTREQUEST']._serialized_end=
|
|
125
|
-
_globals['_TOKENSERVICELISTRESPONSE']._serialized_start=
|
|
126
|
-
_globals['_TOKENSERVICELISTRESPONSE']._serialized_end=
|
|
127
|
-
_globals['_TOKENSERVICEREVOKEREQUEST']._serialized_start=
|
|
128
|
-
_globals['_TOKENSERVICEREVOKEREQUEST']._serialized_end=
|
|
129
|
-
_globals['_TOKENSERVICEREVOKERESPONSE']._serialized_start=
|
|
130
|
-
_globals['_TOKENSERVICEREVOKERESPONSE']._serialized_end=
|
|
131
|
-
_globals['_TOKENSERVICEUPDATEREQUEST']._serialized_start=
|
|
132
|
-
_globals['_TOKENSERVICEUPDATEREQUEST']._serialized_end=
|
|
133
|
-
_globals['_TOKENSERVICEUPDATEREQUEST_PROJECTROLESENTRY']._serialized_start=
|
|
134
|
-
_globals['_TOKENSERVICEUPDATEREQUEST_PROJECTROLESENTRY']._serialized_end=
|
|
135
|
-
_globals['_TOKENSERVICEUPDATEREQUEST_TENANTROLESENTRY']._serialized_start=
|
|
136
|
-
_globals['_TOKENSERVICEUPDATEREQUEST_TENANTROLESENTRY']._serialized_end=
|
|
137
|
-
_globals['_TOKENSERVICEUPDATERESPONSE']._serialized_start=
|
|
138
|
-
_globals['_TOKENSERVICEUPDATERESPONSE']._serialized_end=
|
|
139
|
-
_globals['_TOKENSERVICEGETREQUEST']._serialized_start=
|
|
140
|
-
_globals['_TOKENSERVICEGETREQUEST']._serialized_end=
|
|
141
|
-
_globals['_TOKENSERVICEGETRESPONSE']._serialized_start=
|
|
142
|
-
_globals['_TOKENSERVICEGETRESPONSE']._serialized_end=
|
|
143
|
-
_globals['_TOKENSERVICEREFRESHREQUEST']._serialized_start=
|
|
144
|
-
_globals['_TOKENSERVICEREFRESHREQUEST']._serialized_end=
|
|
145
|
-
_globals['_TOKENSERVICEREFRESHRESPONSE']._serialized_start=
|
|
146
|
-
_globals['_TOKENSERVICEREFRESHRESPONSE']._serialized_end=
|
|
147
|
-
_globals['_TOKENSERVICE']._serialized_start=
|
|
148
|
-
_globals['_TOKENSERVICE']._serialized_end=
|
|
108
|
+
_globals['_TOKEN']._serialized_end=1000
|
|
109
|
+
_globals['_TOKEN_PROJECTROLESENTRY']._serialized_start=795
|
|
110
|
+
_globals['_TOKEN_PROJECTROLESENTRY']._serialized_end=890
|
|
111
|
+
_globals['_TOKEN_TENANTROLESENTRY']._serialized_start=892
|
|
112
|
+
_globals['_TOKEN_TENANTROLESENTRY']._serialized_end=985
|
|
113
|
+
_globals['_TOKENSERVICECREATEREQUEST']._serialized_start=1003
|
|
114
|
+
_globals['_TOKENSERVICECREATEREQUEST']._serialized_end=1901
|
|
115
|
+
_globals['_TOKENSERVICECREATEREQUEST_PROJECTROLESENTRY']._serialized_start=795
|
|
116
|
+
_globals['_TOKENSERVICECREATEREQUEST_PROJECTROLESENTRY']._serialized_end=890
|
|
117
|
+
_globals['_TOKENSERVICECREATEREQUEST_TENANTROLESENTRY']._serialized_start=892
|
|
118
|
+
_globals['_TOKENSERVICECREATEREQUEST_TENANTROLESENTRY']._serialized_end=985
|
|
119
|
+
_globals['_METHODPERMISSION']._serialized_start=1903
|
|
120
|
+
_globals['_METHODPERMISSION']._serialized_end=1996
|
|
121
|
+
_globals['_TOKENSERVICECREATERESPONSE']._serialized_start=1998
|
|
122
|
+
_globals['_TOKENSERVICECREATERESPONSE']._serialized_end=2098
|
|
123
|
+
_globals['_TOKENSERVICELISTREQUEST']._serialized_start=2100
|
|
124
|
+
_globals['_TOKENSERVICELISTREQUEST']._serialized_end=2125
|
|
125
|
+
_globals['_TOKENSERVICELISTRESPONSE']._serialized_start=2127
|
|
126
|
+
_globals['_TOKENSERVICELISTRESPONSE']._serialized_end=2203
|
|
127
|
+
_globals['_TOKENSERVICEREVOKEREQUEST']._serialized_start=2205
|
|
128
|
+
_globals['_TOKENSERVICEREVOKEREQUEST']._serialized_end=2262
|
|
129
|
+
_globals['_TOKENSERVICEREVOKERESPONSE']._serialized_start=2264
|
|
130
|
+
_globals['_TOKENSERVICEREVOKERESPONSE']._serialized_end=2292
|
|
131
|
+
_globals['_TOKENSERVICEUPDATEREQUEST']._serialized_start=2295
|
|
132
|
+
_globals['_TOKENSERVICEUPDATEREQUEST']._serialized_end=3161
|
|
133
|
+
_globals['_TOKENSERVICEUPDATEREQUEST_PROJECTROLESENTRY']._serialized_start=795
|
|
134
|
+
_globals['_TOKENSERVICEUPDATEREQUEST_PROJECTROLESENTRY']._serialized_end=890
|
|
135
|
+
_globals['_TOKENSERVICEUPDATEREQUEST_TENANTROLESENTRY']._serialized_start=892
|
|
136
|
+
_globals['_TOKENSERVICEUPDATEREQUEST_TENANTROLESENTRY']._serialized_end=985
|
|
137
|
+
_globals['_TOKENSERVICEUPDATERESPONSE']._serialized_start=3163
|
|
138
|
+
_globals['_TOKENSERVICEUPDATERESPONSE']._serialized_end=3239
|
|
139
|
+
_globals['_TOKENSERVICEGETREQUEST']._serialized_start=3241
|
|
140
|
+
_globals['_TOKENSERVICEGETREQUEST']._serialized_end=3295
|
|
141
|
+
_globals['_TOKENSERVICEGETRESPONSE']._serialized_start=3297
|
|
142
|
+
_globals['_TOKENSERVICEGETRESPONSE']._serialized_end=3370
|
|
143
|
+
_globals['_TOKENSERVICEREFRESHREQUEST']._serialized_start=3372
|
|
144
|
+
_globals['_TOKENSERVICEREFRESHREQUEST']._serialized_end=3400
|
|
145
|
+
_globals['_TOKENSERVICEREFRESHRESPONSE']._serialized_start=3402
|
|
146
|
+
_globals['_TOKENSERVICEREFRESHRESPONSE']._serialized_end=3503
|
|
147
|
+
_globals['_TOKENSERVICE']._serialized_start=3591
|
|
148
|
+
_globals['_TOKENSERVICE']._serialized_end=4247
|
|
149
149
|
# @@protoc_insertion_point(module_scope)
|
metalstack/api/v2/token_pb2.pyi
CHANGED
|
@@ -23,7 +23,7 @@ TOKEN_TYPE_API: TokenType
|
|
|
23
23
|
TOKEN_TYPE_CONSOLE: TokenType
|
|
24
24
|
|
|
25
25
|
class Token(_message.Message):
|
|
26
|
-
__slots__ = ("uuid", "
|
|
26
|
+
__slots__ = ("uuid", "user", "description", "permissions", "expires", "issued_at", "token_type", "project_roles", "tenant_roles", "admin_role")
|
|
27
27
|
class ProjectRolesEntry(_message.Message):
|
|
28
28
|
__slots__ = ("key", "value")
|
|
29
29
|
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -39,7 +39,7 @@ class Token(_message.Message):
|
|
|
39
39
|
value: _common_pb2.TenantRole
|
|
40
40
|
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_common_pb2.TenantRole, str]] = ...) -> None: ...
|
|
41
41
|
UUID_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
-
|
|
42
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
43
43
|
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
44
44
|
PERMISSIONS_FIELD_NUMBER: _ClassVar[int]
|
|
45
45
|
EXPIRES_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -49,7 +49,7 @@ class Token(_message.Message):
|
|
|
49
49
|
TENANT_ROLES_FIELD_NUMBER: _ClassVar[int]
|
|
50
50
|
ADMIN_ROLE_FIELD_NUMBER: _ClassVar[int]
|
|
51
51
|
uuid: str
|
|
52
|
-
|
|
52
|
+
user: str
|
|
53
53
|
description: str
|
|
54
54
|
permissions: _containers.RepeatedCompositeFieldContainer[MethodPermission]
|
|
55
55
|
expires: _timestamp_pb2.Timestamp
|
|
@@ -58,7 +58,7 @@ class Token(_message.Message):
|
|
|
58
58
|
project_roles: _containers.ScalarMap[str, _common_pb2.ProjectRole]
|
|
59
59
|
tenant_roles: _containers.ScalarMap[str, _common_pb2.TenantRole]
|
|
60
60
|
admin_role: _common_pb2.AdminRole
|
|
61
|
-
def __init__(self, uuid: _Optional[str] = ...,
|
|
61
|
+
def __init__(self, uuid: _Optional[str] = ..., user: _Optional[str] = ..., 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]] = ...) -> None: ...
|
|
62
62
|
|
|
63
63
|
class TokenServiceCreateRequest(_message.Message):
|
|
64
64
|
__slots__ = ("description", "permissions", "expires", "project_roles", "tenant_roles", "admin_role")
|
metalstack/api/v2/user_pb2.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/api/v2/user.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.32.0
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
32,
|
|
16
|
+
0,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/api/v2/user.proto'
|
|
19
19
|
)
|
metalstack/api/v2/version_pb2.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/api/v2/version.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.32.0
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
32,
|
|
16
|
+
0,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/api/v2/version.proto'
|
|
19
19
|
)
|
metalstack/client/client.py
CHANGED
|
@@ -5,6 +5,7 @@ import httpx
|
|
|
5
5
|
import metalstack.admin.v2.filesystem_connecpy as admin_filesystem_connecpy
|
|
6
6
|
import metalstack.admin.v2.image_connecpy as admin_image_connecpy
|
|
7
7
|
import metalstack.admin.v2.ip_connecpy as admin_ip_connecpy
|
|
8
|
+
import metalstack.admin.v2.machine_connecpy as admin_machine_connecpy
|
|
8
9
|
import metalstack.admin.v2.network_connecpy as admin_network_connecpy
|
|
9
10
|
import metalstack.admin.v2.partition_connecpy as admin_partition_connecpy
|
|
10
11
|
import metalstack.admin.v2.size_connecpy as admin_size_connecpy
|
|
@@ -68,6 +69,9 @@ class Client:
|
|
|
68
69
|
def ip(self):
|
|
69
70
|
return admin_ip_connecpy.IPServiceClient(address=self._baseurl, session=self._session)
|
|
70
71
|
|
|
72
|
+
def machine(self):
|
|
73
|
+
return admin_machine_connecpy.MachineServiceClient(address=self._baseurl, session=self._session)
|
|
74
|
+
|
|
71
75
|
def network(self):
|
|
72
76
|
return admin_network_connecpy.NetworkServiceClient(address=self._baseurl, session=self._session)
|
|
73
77
|
|
metalstack/infra/v2/bmc_pb2.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/infra/v2/bmc.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.32.0
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
32,
|
|
16
|
+
0,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/infra/v2/bmc.proto'
|
|
19
19
|
)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/infra/v2/switch.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.32.0
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
32,
|
|
16
|
+
0,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/infra/v2/switch.proto'
|
|
19
19
|
)
|
|
File without changes
|
|
File without changes
|