metal-stack-api 0.0.14__py3-none-any.whl → 0.0.16__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.
- {metal_stack_api-0.0.14.dist-info → metal_stack_api-0.0.16.dist-info}/METADATA +1 -1
- {metal_stack_api-0.0.14.dist-info → metal_stack_api-0.0.16.dist-info}/RECORD +35 -35
- metalstack/admin/v2/filesystem_connecpy.py +195 -160
- metalstack/admin/v2/image_connecpy.py +241 -197
- metalstack/admin/v2/ip_connecpy.py +144 -118
- metalstack/admin/v2/machine_connecpy.py +144 -118
- metalstack/admin/v2/network_connecpy.py +291 -238
- metalstack/admin/v2/partition_connecpy.py +241 -197
- metalstack/admin/v2/size_connecpy.py +195 -160
- metalstack/admin/v2/tenant_connecpy.py +144 -118
- metalstack/admin/v2/tenant_pb2.py +10 -10
- metalstack/admin/v2/tenant_pb2.pyi +2 -4
- metalstack/admin/v2/token_connecpy.py +144 -118
- metalstack/api/v2/filesystem_connecpy.py +241 -197
- metalstack/api/v2/health_connecpy.py +93 -76
- metalstack/api/v2/image_connecpy.py +195 -160
- metalstack/api/v2/ip_connecpy.py +291 -238
- metalstack/api/v2/machine_connecpy.py +291 -238
- metalstack/api/v2/method_connecpy.py +144 -118
- metalstack/api/v2/network_connecpy.py +341 -279
- metalstack/api/v2/partition_connecpy.py +144 -118
- metalstack/api/v2/project_connecpy.py +654 -538
- metalstack/api/v2/project_pb2.py +51 -51
- metalstack/api/v2/project_pb2.pyi +12 -6
- metalstack/api/v2/size_connecpy.py +144 -118
- metalstack/api/v2/tenant_connecpy.py +654 -538
- metalstack/api/v2/tenant_pb2.py +46 -46
- metalstack/api/v2/tenant_pb2.pyi +8 -6
- metalstack/api/v2/token_connecpy.py +341 -279
- metalstack/api/v2/user_connecpy.py +93 -76
- metalstack/api/v2/version_connecpy.py +93 -76
- metalstack/infra/v2/bmc_connecpy.py +93 -76
- metalstack/infra/v2/switch_connecpy.py +93 -76
- {metal_stack_api-0.0.14.dist-info → metal_stack_api-0.0.16.dist-info}/WHEEL +0 -0
- {metal_stack_api-0.0.14.dist-info → metal_stack_api-0.0.16.dist-info}/top_level.txt +0 -0
metalstack/api/v2/project_pb2.py
CHANGED
|
@@ -27,7 +27,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__
|
|
|
27
27
|
from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__pb2
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fmetalstack/api/v2/project.proto\x12\x11metalstack.api.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1emetalstack/api/v2/common.proto\"\xcb\x01\n\x07Project\x12\x12\n\x04uuid\x18\x01 \x01(\tR\x04uuid\x12+\n\x04meta\x18\x02 \x01(\x0b\x32\x17.metalstack.api.v2.MetaR\x04meta\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x04 \x01(\tR\x0b\x64\x65scription\x12\x16\n\x06tenant\x18\x05 \x01(\tR\x06tenant\x12\"\n\navatar_url\x18\x06 \x01(\tH\x00R\tavatarUrl\x88\x01\x01\x42\r\n\x0b_avatar_url\"\xcb\x01\n\rProjectMember\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12<\n\x04role\x18\x02 \x01(\x0e\x32\x1e.metalstack.api.v2.ProjectRoleB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x04role\x12\x31\n\x14inherited_membership\x18\x03 \x01(\x08R\x13inheritedMembership\x12\x39\n\ncreated_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\"\xe7\x02\n\rProjectInvite\x12\x16\n\x06secret\x18\x01 \x01(\tR\x06secret\x12\x18\n\x07project\x18\x02 \x01(\tR\x07project\x12<\n\x04role\x18\x03 \x01(\x0e\x32\x1e.metalstack.api.v2.ProjectRoleB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x04role\x12\x16\n\x06joined\x18\x04 \x01(\x08R\x06joined\x12!\n\x0cproject_name\x18\x05 \x01(\tR\x0bprojectName\x12\x16\n\x06tenant\x18\x06 \x01(\tR\x06tenant\x12\x1f\n\x0btenant_name\x18\x07 \x01(\tR\ntenantName\x12\x39\n\nexpires_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\x12\x37\n\tjoined_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x08joinedAt\"
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fmetalstack/api/v2/project.proto\x12\x11metalstack.api.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1emetalstack/api/v2/common.proto\"\xcb\x01\n\x07Project\x12\x12\n\x04uuid\x18\x01 \x01(\tR\x04uuid\x12+\n\x04meta\x18\x02 \x01(\x0b\x32\x17.metalstack.api.v2.MetaR\x04meta\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x04 \x01(\tR\x0b\x64\x65scription\x12\x16\n\x06tenant\x18\x05 \x01(\tR\x06tenant\x12\"\n\navatar_url\x18\x06 \x01(\tH\x00R\tavatarUrl\x88\x01\x01\x42\r\n\x0b_avatar_url\"\xcb\x01\n\rProjectMember\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12<\n\x04role\x18\x02 \x01(\x0e\x32\x1e.metalstack.api.v2.ProjectRoleB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x04role\x12\x31\n\x14inherited_membership\x18\x03 \x01(\x08R\x13inheritedMembership\x12\x39\n\ncreated_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\"\xe7\x02\n\rProjectInvite\x12\x16\n\x06secret\x18\x01 \x01(\tR\x06secret\x12\x18\n\x07project\x18\x02 \x01(\tR\x07project\x12<\n\x04role\x18\x03 \x01(\x0e\x32\x1e.metalstack.api.v2.ProjectRoleB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x04role\x12\x16\n\x06joined\x18\x04 \x01(\x08R\x06joined\x12!\n\x0cproject_name\x18\x05 \x01(\tR\x0bprojectName\x12\x16\n\x06tenant\x18\x06 \x01(\tR\x06tenant\x12\x1f\n\x0btenant_name\x18\x07 \x01(\tR\ntenantName\x12\x39\n\nexpires_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\x12\x37\n\tjoined_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x08joinedAt\"\x99\x01\n\x19ProjectServiceListRequest\x12\x13\n\x02id\x18\x01 \x01(\tH\x00R\x02id\x88\x01\x01\x12#\n\x04name\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x01R\x04name\x88\x01\x01\x12\'\n\x06tenant\x18\x03 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x02R\x06tenant\x88\x01\x01\x42\x05\n\x03_idB\x07\n\x05_nameB\t\n\x07_tenant\"T\n\x1aProjectServiceListResponse\x12\x36\n\x08projects\x18\x01 \x03(\x0b\x32\x1a.metalstack.api.v2.ProjectR\x08projects\">\n\x18ProjectServiceGetRequest\x12\"\n\x07project\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x07project\"\x9c\x01\n\x19ProjectServiceGetResponse\x12\x34\n\x07project\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.ProjectR\x07project\x12I\n\x0fproject_members\x18\x02 \x03(\x0b\x32 .metalstack.api.v2.ProjectMemberR\x0eprojectMembers\"\xf2\x01\n\x1bProjectServiceCreateRequest\x12 \n\x05login\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x05login\x12\x1d\n\x04name\x18\x02 \x01(\tB\t\xbaH\x06r\x04\x10\x02\x18@R\x04name\x12,\n\x0b\x64\x65scription\x18\x03 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x04R\x0b\x64\x65scription\x12\"\n\navatar_url\x18\x04 \x01(\tH\x00R\tavatarUrl\x88\x01\x01\x12\x31\n\x06labels\x18\x05 \x01(\x0b\x32\x19.metalstack.api.v2.LabelsR\x06labelsB\r\n\x0b_avatar_url\"T\n\x1cProjectServiceCreateResponse\x12\x34\n\x07project\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.ProjectR\x07project\"A\n\x1bProjectServiceDeleteRequest\x12\"\n\x07project\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x07project\"T\n\x1cProjectServiceDeleteResponse\x12\x34\n\x07project\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.ProjectR\x07project\"\xad\x02\n\x1bProjectServiceUpdateRequest\x12\"\n\x07project\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x07project\x12\"\n\x04name\x18\x02 \x01(\tB\t\xbaH\x06r\x04\x10\x02\x18@H\x00R\x04name\x88\x01\x01\x12\x31\n\x0b\x64\x65scription\x18\x03 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x04H\x01R\x0b\x64\x65scription\x88\x01\x01\x12\"\n\navatar_url\x18\x04 \x01(\tH\x02R\tavatarUrl\x88\x01\x01\x12<\n\x06labels\x18\x05 \x01(\x0b\x32\x1f.metalstack.api.v2.UpdateLabelsH\x03R\x06labels\x88\x01\x01\x42\x07\n\x05_nameB\x0e\n\x0c_descriptionB\r\n\x0b_avatar_urlB\t\n\x07_labels\"T\n\x1cProjectServiceUpdateResponse\x12\x34\n\x07project\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.ProjectR\x07project\"\x7f\n\x1bProjectServiceInviteRequest\x12\"\n\x07project\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x07project\x12<\n\x04role\x18\x03 \x01(\x0e\x32\x1e.metalstack.api.v2.ProjectRoleB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x04role\"X\n\x1cProjectServiceInviteResponse\x12\x38\n\x06invite\x18\x01 \x01(\x0b\x32 .metalstack.api.v2.ProjectInviteR\x06invite\"F\n ProjectServiceInvitesListRequest\x12\"\n\x07project\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x07project\"_\n!ProjectServiceInvitesListResponse\x12:\n\x07invites\x18\x01 \x03(\x0b\x32 .metalstack.api.v2.ProjectInviteR\x07invites\"8\n\x1eProjectServiceInviteGetRequest\x12\x16\n\x06secret\x18\x01 \x01(\tR\x06secret\"[\n\x1fProjectServiceInviteGetResponse\x12\x38\n\x06invite\x18\x01 \x01(\x0b\x32 .metalstack.api.v2.ProjectInviteR\x06invite\"_\n!ProjectServiceRemoveMemberRequest\x12\"\n\x07project\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x07project\x12\x16\n\x06member\x18\x02 \x01(\tR\x06member\"$\n\"ProjectServiceRemoveMemberResponse\"\x9d\x01\n!ProjectServiceUpdateMemberRequest\x12\"\n\x07project\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x07project\x12\x16\n\x06member\x18\x02 \x01(\tR\x06member\x12<\n\x04role\x18\x03 \x01(\x0e\x32\x1e.metalstack.api.v2.ProjectRoleB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x04role\"m\n\"ProjectServiceUpdateMemberResponse\x12G\n\x0eproject_member\x18\x05 \x01(\x0b\x32 .metalstack.api.v2.ProjectMemberR\rprojectMember\";\n!ProjectServiceInviteAcceptRequest\x12\x16\n\x06secret\x18\x01 \x01(\tR\x06secret\"a\n\"ProjectServiceInviteAcceptResponse\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12!\n\x0cproject_name\x18\x02 \x01(\tR\x0bprojectName\"_\n!ProjectServiceInviteDeleteRequest\x12\"\n\x07project\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x07project\x12\x16\n\x06secret\x18\x02 \x01(\tR\x06secret\"$\n\"ProjectServiceInviteDeleteResponse2\xef\x0b\n\x0eProjectService\x12m\n\x04List\x12,.metalstack.api.v2.ProjectServiceListRequest\x1a-.metalstack.api.v2.ProjectServiceListResponse\"\x08\xd8\xf3\x18\x03\xe0\xf3\x18\x02\x12m\n\x03Get\x12+.metalstack.api.v2.ProjectServiceGetRequest\x1a,.metalstack.api.v2.ProjectServiceGetResponse\"\x0b\xca\xf3\x18\x03\x01\x02\x03\xe0\xf3\x18\x02\x12u\n\x06\x43reate\x12..metalstack.api.v2.ProjectServiceCreateRequest\x1a/.metalstack.api.v2.ProjectServiceCreateResponse\"\n\xc2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12t\n\x06\x44\x65lete\x12..metalstack.api.v2.ProjectServiceDeleteRequest\x1a/.metalstack.api.v2.ProjectServiceDeleteResponse\"\t\xca\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12u\n\x06Update\x12..metalstack.api.v2.ProjectServiceUpdateRequest\x1a/.metalstack.api.v2.ProjectServiceUpdateResponse\"\n\xca\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12\x86\x01\n\x0cRemoveMember\x12\x34.metalstack.api.v2.ProjectServiceRemoveMemberRequest\x1a\x35.metalstack.api.v2.ProjectServiceRemoveMemberResponse\"\t\xca\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12\x86\x01\n\x0cUpdateMember\x12\x34.metalstack.api.v2.ProjectServiceUpdateMemberRequest\x1a\x35.metalstack.api.v2.ProjectServiceUpdateMemberResponse\"\t\xca\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12t\n\x06Invite\x12..metalstack.api.v2.ProjectServiceInviteRequest\x1a/.metalstack.api.v2.ProjectServiceInviteResponse\"\t\xca\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12\x85\x01\n\x0cInviteAccept\x12\x34.metalstack.api.v2.ProjectServiceInviteAcceptRequest\x1a\x35.metalstack.api.v2.ProjectServiceInviteAcceptResponse\"\x08\xd8\xf3\x18\x03\xe0\xf3\x18\x01\x12\x86\x01\n\x0cInviteDelete\x12\x34.metalstack.api.v2.ProjectServiceInviteDeleteRequest\x1a\x35.metalstack.api.v2.ProjectServiceInviteDeleteResponse\"\t\xca\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12\x83\x01\n\x0bInvitesList\x12\x33.metalstack.api.v2.ProjectServiceInvitesListRequest\x1a\x34.metalstack.api.v2.ProjectServiceInvitesListResponse\"\t\xca\xf3\x18\x01\x01\xe0\xf3\x18\x02\x12|\n\tInviteGet\x12\x31.metalstack.api.v2.ProjectServiceInviteGetRequest\x1a\x32.metalstack.api.v2.ProjectServiceInviteGetResponse\"\x08\xd8\xf3\x18\x03\xe0\xf3\x18\x02\x42\xc2\x01\n\x15\x63om.metalstack.api.v2B\x0cProjectProtoP\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')
|
|
31
31
|
|
|
32
32
|
_globals = globals()
|
|
33
33
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -103,54 +103,54 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
103
103
|
_globals['_PROJECTMEMBER']._serialized_end=558
|
|
104
104
|
_globals['_PROJECTINVITE']._serialized_start=561
|
|
105
105
|
_globals['_PROJECTINVITE']._serialized_end=920
|
|
106
|
-
_globals['_PROJECTSERVICELISTREQUEST']._serialized_start=
|
|
107
|
-
_globals['_PROJECTSERVICELISTREQUEST']._serialized_end=
|
|
108
|
-
_globals['_PROJECTSERVICELISTRESPONSE']._serialized_start=
|
|
109
|
-
_globals['_PROJECTSERVICELISTRESPONSE']._serialized_end=
|
|
110
|
-
_globals['_PROJECTSERVICEGETREQUEST']._serialized_start=
|
|
111
|
-
_globals['_PROJECTSERVICEGETREQUEST']._serialized_end=
|
|
112
|
-
_globals['_PROJECTSERVICEGETRESPONSE']._serialized_start=
|
|
113
|
-
_globals['_PROJECTSERVICEGETRESPONSE']._serialized_end=
|
|
114
|
-
_globals['_PROJECTSERVICECREATEREQUEST']._serialized_start=
|
|
115
|
-
_globals['_PROJECTSERVICECREATEREQUEST']._serialized_end=
|
|
116
|
-
_globals['_PROJECTSERVICECREATERESPONSE']._serialized_start=
|
|
117
|
-
_globals['_PROJECTSERVICECREATERESPONSE']._serialized_end=
|
|
118
|
-
_globals['_PROJECTSERVICEDELETEREQUEST']._serialized_start=
|
|
119
|
-
_globals['_PROJECTSERVICEDELETEREQUEST']._serialized_end=
|
|
120
|
-
_globals['_PROJECTSERVICEDELETERESPONSE']._serialized_start=
|
|
121
|
-
_globals['_PROJECTSERVICEDELETERESPONSE']._serialized_end=
|
|
122
|
-
_globals['_PROJECTSERVICEUPDATEREQUEST']._serialized_start=
|
|
123
|
-
_globals['_PROJECTSERVICEUPDATEREQUEST']._serialized_end=
|
|
124
|
-
_globals['_PROJECTSERVICEUPDATERESPONSE']._serialized_start=
|
|
125
|
-
_globals['_PROJECTSERVICEUPDATERESPONSE']._serialized_end=
|
|
126
|
-
_globals['_PROJECTSERVICEINVITEREQUEST']._serialized_start=
|
|
127
|
-
_globals['_PROJECTSERVICEINVITEREQUEST']._serialized_end=
|
|
128
|
-
_globals['_PROJECTSERVICEINVITERESPONSE']._serialized_start=
|
|
129
|
-
_globals['_PROJECTSERVICEINVITERESPONSE']._serialized_end=
|
|
130
|
-
_globals['_PROJECTSERVICEINVITESLISTREQUEST']._serialized_start=
|
|
131
|
-
_globals['_PROJECTSERVICEINVITESLISTREQUEST']._serialized_end=
|
|
132
|
-
_globals['_PROJECTSERVICEINVITESLISTRESPONSE']._serialized_start=
|
|
133
|
-
_globals['_PROJECTSERVICEINVITESLISTRESPONSE']._serialized_end=
|
|
134
|
-
_globals['_PROJECTSERVICEINVITEGETREQUEST']._serialized_start=
|
|
135
|
-
_globals['_PROJECTSERVICEINVITEGETREQUEST']._serialized_end=
|
|
136
|
-
_globals['_PROJECTSERVICEINVITEGETRESPONSE']._serialized_start=
|
|
137
|
-
_globals['_PROJECTSERVICEINVITEGETRESPONSE']._serialized_end=
|
|
138
|
-
_globals['_PROJECTSERVICEREMOVEMEMBERREQUEST']._serialized_start=
|
|
139
|
-
_globals['_PROJECTSERVICEREMOVEMEMBERREQUEST']._serialized_end=
|
|
140
|
-
_globals['_PROJECTSERVICEREMOVEMEMBERRESPONSE']._serialized_start=
|
|
141
|
-
_globals['_PROJECTSERVICEREMOVEMEMBERRESPONSE']._serialized_end=
|
|
142
|
-
_globals['_PROJECTSERVICEUPDATEMEMBERREQUEST']._serialized_start=
|
|
143
|
-
_globals['_PROJECTSERVICEUPDATEMEMBERREQUEST']._serialized_end=
|
|
144
|
-
_globals['_PROJECTSERVICEUPDATEMEMBERRESPONSE']._serialized_start=
|
|
145
|
-
_globals['_PROJECTSERVICEUPDATEMEMBERRESPONSE']._serialized_end=
|
|
146
|
-
_globals['_PROJECTSERVICEINVITEACCEPTREQUEST']._serialized_start=
|
|
147
|
-
_globals['_PROJECTSERVICEINVITEACCEPTREQUEST']._serialized_end=
|
|
148
|
-
_globals['_PROJECTSERVICEINVITEACCEPTRESPONSE']._serialized_start=
|
|
149
|
-
_globals['_PROJECTSERVICEINVITEACCEPTRESPONSE']._serialized_end=
|
|
150
|
-
_globals['_PROJECTSERVICEINVITEDELETEREQUEST']._serialized_start=
|
|
151
|
-
_globals['_PROJECTSERVICEINVITEDELETEREQUEST']._serialized_end=
|
|
152
|
-
_globals['_PROJECTSERVICEINVITEDELETERESPONSE']._serialized_start=
|
|
153
|
-
_globals['_PROJECTSERVICEINVITEDELETERESPONSE']._serialized_end=
|
|
154
|
-
_globals['_PROJECTSERVICE']._serialized_start=
|
|
155
|
-
_globals['_PROJECTSERVICE']._serialized_end=
|
|
106
|
+
_globals['_PROJECTSERVICELISTREQUEST']._serialized_start=923
|
|
107
|
+
_globals['_PROJECTSERVICELISTREQUEST']._serialized_end=1076
|
|
108
|
+
_globals['_PROJECTSERVICELISTRESPONSE']._serialized_start=1078
|
|
109
|
+
_globals['_PROJECTSERVICELISTRESPONSE']._serialized_end=1162
|
|
110
|
+
_globals['_PROJECTSERVICEGETREQUEST']._serialized_start=1164
|
|
111
|
+
_globals['_PROJECTSERVICEGETREQUEST']._serialized_end=1226
|
|
112
|
+
_globals['_PROJECTSERVICEGETRESPONSE']._serialized_start=1229
|
|
113
|
+
_globals['_PROJECTSERVICEGETRESPONSE']._serialized_end=1385
|
|
114
|
+
_globals['_PROJECTSERVICECREATEREQUEST']._serialized_start=1388
|
|
115
|
+
_globals['_PROJECTSERVICECREATEREQUEST']._serialized_end=1630
|
|
116
|
+
_globals['_PROJECTSERVICECREATERESPONSE']._serialized_start=1632
|
|
117
|
+
_globals['_PROJECTSERVICECREATERESPONSE']._serialized_end=1716
|
|
118
|
+
_globals['_PROJECTSERVICEDELETEREQUEST']._serialized_start=1718
|
|
119
|
+
_globals['_PROJECTSERVICEDELETEREQUEST']._serialized_end=1783
|
|
120
|
+
_globals['_PROJECTSERVICEDELETERESPONSE']._serialized_start=1785
|
|
121
|
+
_globals['_PROJECTSERVICEDELETERESPONSE']._serialized_end=1869
|
|
122
|
+
_globals['_PROJECTSERVICEUPDATEREQUEST']._serialized_start=1872
|
|
123
|
+
_globals['_PROJECTSERVICEUPDATEREQUEST']._serialized_end=2173
|
|
124
|
+
_globals['_PROJECTSERVICEUPDATERESPONSE']._serialized_start=2175
|
|
125
|
+
_globals['_PROJECTSERVICEUPDATERESPONSE']._serialized_end=2259
|
|
126
|
+
_globals['_PROJECTSERVICEINVITEREQUEST']._serialized_start=2261
|
|
127
|
+
_globals['_PROJECTSERVICEINVITEREQUEST']._serialized_end=2388
|
|
128
|
+
_globals['_PROJECTSERVICEINVITERESPONSE']._serialized_start=2390
|
|
129
|
+
_globals['_PROJECTSERVICEINVITERESPONSE']._serialized_end=2478
|
|
130
|
+
_globals['_PROJECTSERVICEINVITESLISTREQUEST']._serialized_start=2480
|
|
131
|
+
_globals['_PROJECTSERVICEINVITESLISTREQUEST']._serialized_end=2550
|
|
132
|
+
_globals['_PROJECTSERVICEINVITESLISTRESPONSE']._serialized_start=2552
|
|
133
|
+
_globals['_PROJECTSERVICEINVITESLISTRESPONSE']._serialized_end=2647
|
|
134
|
+
_globals['_PROJECTSERVICEINVITEGETREQUEST']._serialized_start=2649
|
|
135
|
+
_globals['_PROJECTSERVICEINVITEGETREQUEST']._serialized_end=2705
|
|
136
|
+
_globals['_PROJECTSERVICEINVITEGETRESPONSE']._serialized_start=2707
|
|
137
|
+
_globals['_PROJECTSERVICEINVITEGETRESPONSE']._serialized_end=2798
|
|
138
|
+
_globals['_PROJECTSERVICEREMOVEMEMBERREQUEST']._serialized_start=2800
|
|
139
|
+
_globals['_PROJECTSERVICEREMOVEMEMBERREQUEST']._serialized_end=2895
|
|
140
|
+
_globals['_PROJECTSERVICEREMOVEMEMBERRESPONSE']._serialized_start=2897
|
|
141
|
+
_globals['_PROJECTSERVICEREMOVEMEMBERRESPONSE']._serialized_end=2933
|
|
142
|
+
_globals['_PROJECTSERVICEUPDATEMEMBERREQUEST']._serialized_start=2936
|
|
143
|
+
_globals['_PROJECTSERVICEUPDATEMEMBERREQUEST']._serialized_end=3093
|
|
144
|
+
_globals['_PROJECTSERVICEUPDATEMEMBERRESPONSE']._serialized_start=3095
|
|
145
|
+
_globals['_PROJECTSERVICEUPDATEMEMBERRESPONSE']._serialized_end=3204
|
|
146
|
+
_globals['_PROJECTSERVICEINVITEACCEPTREQUEST']._serialized_start=3206
|
|
147
|
+
_globals['_PROJECTSERVICEINVITEACCEPTREQUEST']._serialized_end=3265
|
|
148
|
+
_globals['_PROJECTSERVICEINVITEACCEPTRESPONSE']._serialized_start=3267
|
|
149
|
+
_globals['_PROJECTSERVICEINVITEACCEPTRESPONSE']._serialized_end=3364
|
|
150
|
+
_globals['_PROJECTSERVICEINVITEDELETEREQUEST']._serialized_start=3366
|
|
151
|
+
_globals['_PROJECTSERVICEINVITEDELETEREQUEST']._serialized_end=3461
|
|
152
|
+
_globals['_PROJECTSERVICEINVITEDELETERESPONSE']._serialized_start=3463
|
|
153
|
+
_globals['_PROJECTSERVICEINVITEDELETERESPONSE']._serialized_end=3499
|
|
154
|
+
_globals['_PROJECTSERVICE']._serialized_start=3502
|
|
155
|
+
_globals['_PROJECTSERVICE']._serialized_end=5021
|
|
156
156
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -62,12 +62,14 @@ class ProjectInvite(_message.Message):
|
|
|
62
62
|
def __init__(self, secret: _Optional[str] = ..., project: _Optional[str] = ..., role: _Optional[_Union[_common_pb2.ProjectRole, str]] = ..., joined: _Optional[bool] = ..., project_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: ...
|
|
63
63
|
|
|
64
64
|
class ProjectServiceListRequest(_message.Message):
|
|
65
|
-
__slots__ = ("name", "tenant")
|
|
65
|
+
__slots__ = ("id", "name", "tenant")
|
|
66
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
66
67
|
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
67
68
|
TENANT_FIELD_NUMBER: _ClassVar[int]
|
|
69
|
+
id: str
|
|
68
70
|
name: str
|
|
69
71
|
tenant: str
|
|
70
|
-
def __init__(self, name: _Optional[str] = ..., tenant: _Optional[str] = ...) -> None: ...
|
|
72
|
+
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., tenant: _Optional[str] = ...) -> None: ...
|
|
71
73
|
|
|
72
74
|
class ProjectServiceListResponse(_message.Message):
|
|
73
75
|
__slots__ = ("projects",)
|
|
@@ -90,16 +92,18 @@ class ProjectServiceGetResponse(_message.Message):
|
|
|
90
92
|
def __init__(self, project: _Optional[_Union[Project, _Mapping]] = ..., project_members: _Optional[_Iterable[_Union[ProjectMember, _Mapping]]] = ...) -> None: ...
|
|
91
93
|
|
|
92
94
|
class ProjectServiceCreateRequest(_message.Message):
|
|
93
|
-
__slots__ = ("login", "name", "description", "avatar_url")
|
|
95
|
+
__slots__ = ("login", "name", "description", "avatar_url", "labels")
|
|
94
96
|
LOGIN_FIELD_NUMBER: _ClassVar[int]
|
|
95
97
|
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
96
98
|
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
97
99
|
AVATAR_URL_FIELD_NUMBER: _ClassVar[int]
|
|
100
|
+
LABELS_FIELD_NUMBER: _ClassVar[int]
|
|
98
101
|
login: str
|
|
99
102
|
name: str
|
|
100
103
|
description: str
|
|
101
104
|
avatar_url: str
|
|
102
|
-
|
|
105
|
+
labels: _common_pb2.Labels
|
|
106
|
+
def __init__(self, login: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., avatar_url: _Optional[str] = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ...) -> None: ...
|
|
103
107
|
|
|
104
108
|
class ProjectServiceCreateResponse(_message.Message):
|
|
105
109
|
__slots__ = ("project",)
|
|
@@ -120,16 +124,18 @@ class ProjectServiceDeleteResponse(_message.Message):
|
|
|
120
124
|
def __init__(self, project: _Optional[_Union[Project, _Mapping]] = ...) -> None: ...
|
|
121
125
|
|
|
122
126
|
class ProjectServiceUpdateRequest(_message.Message):
|
|
123
|
-
__slots__ = ("project", "name", "description", "avatar_url")
|
|
127
|
+
__slots__ = ("project", "name", "description", "avatar_url", "labels")
|
|
124
128
|
PROJECT_FIELD_NUMBER: _ClassVar[int]
|
|
125
129
|
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
126
130
|
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
127
131
|
AVATAR_URL_FIELD_NUMBER: _ClassVar[int]
|
|
132
|
+
LABELS_FIELD_NUMBER: _ClassVar[int]
|
|
128
133
|
project: str
|
|
129
134
|
name: str
|
|
130
135
|
description: str
|
|
131
136
|
avatar_url: str
|
|
132
|
-
|
|
137
|
+
labels: _common_pb2.UpdateLabels
|
|
138
|
+
def __init__(self, project: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., avatar_url: _Optional[str] = ..., labels: _Optional[_Union[_common_pb2.UpdateLabels, _Mapping]] = ...) -> None: ...
|
|
133
139
|
|
|
134
140
|
class ProjectServiceUpdateResponse(_message.Message):
|
|
135
141
|
__slots__ = ("project",)
|
|
@@ -1,158 +1,184 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by https://github.com/i2y/connecpy/protoc-gen-connecpy. DO NOT EDIT!
|
|
2
|
+
# Generated by https://github.com/i2y/connecpy/v2/protoc-gen-connecpy. DO NOT EDIT!
|
|
3
3
|
# source: metalstack/api/v2/size.proto
|
|
4
4
|
|
|
5
|
-
from
|
|
5
|
+
from collections.abc import AsyncIterator, Iterable, Iterator, Mapping
|
|
6
|
+
from typing import Protocol
|
|
6
7
|
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
from connecpy.
|
|
10
|
-
from connecpy.
|
|
11
|
-
from connecpy.
|
|
12
|
-
from connecpy.
|
|
13
|
-
from connecpy.
|
|
8
|
+
from connecpy.client import ConnecpyClient, ConnecpyClientSync
|
|
9
|
+
from connecpy.code import Code
|
|
10
|
+
from connecpy.exceptions import ConnecpyException
|
|
11
|
+
from connecpy.interceptor import Interceptor, InterceptorSync
|
|
12
|
+
from connecpy.method import IdempotencyLevel, MethodInfo
|
|
13
|
+
from connecpy.request import Headers, RequestContext
|
|
14
|
+
from connecpy.server import ConnecpyASGIApplication, ConnecpyWSGIApplication, Endpoint, EndpointSync
|
|
14
15
|
import metalstack.api.v2.size_pb2 as metalstack_dot_api_dot_v2_dot_size__pb2
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
class SizeService(Protocol):
|
|
18
|
-
async def
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
class SizeServiceServerSync(ConnecpyServer):
|
|
55
|
-
def __init__(self, *, service: SizeServiceSync, server_path_prefix=""):
|
|
56
|
-
super().__init__()
|
|
57
|
-
self._prefix = f"{server_path_prefix}/metalstack.api.v2.SizeService"
|
|
58
|
-
self._endpoints = {
|
|
59
|
-
"Get": Endpoint[metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetRequest, metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetResponse](
|
|
60
|
-
service_name="SizeService",
|
|
61
|
-
name="Get",
|
|
62
|
-
function=getattr(service, "Get"),
|
|
63
|
-
input=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetRequest,
|
|
64
|
-
output=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetResponse,
|
|
65
|
-
allowed_methods=("POST",),
|
|
66
|
-
),
|
|
67
|
-
"List": Endpoint[metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListRequest, metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListResponse](
|
|
68
|
-
service_name="SizeService",
|
|
69
|
-
name="List",
|
|
70
|
-
function=getattr(service, "List"),
|
|
71
|
-
input=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListRequest,
|
|
72
|
-
output=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListResponse,
|
|
73
|
-
allowed_methods=("POST",),
|
|
74
|
-
),
|
|
75
|
-
}
|
|
19
|
+
async def get(self, request: metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetResponse:
|
|
20
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
21
|
+
|
|
22
|
+
async def list(self, request: metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListResponse:
|
|
23
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class SizeServiceASGIApplication(ConnecpyASGIApplication):
|
|
27
|
+
def __init__(self, service: SizeService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None):
|
|
28
|
+
super().__init__(
|
|
29
|
+
endpoints={
|
|
30
|
+
"/metalstack.api.v2.SizeService/Get": Endpoint.unary(
|
|
31
|
+
method=MethodInfo(
|
|
32
|
+
name="Get",
|
|
33
|
+
service_name="metalstack.api.v2.SizeService",
|
|
34
|
+
input=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetRequest,
|
|
35
|
+
output=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetResponse,
|
|
36
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
37
|
+
),
|
|
38
|
+
function=service.get,
|
|
39
|
+
),
|
|
40
|
+
"/metalstack.api.v2.SizeService/List": Endpoint.unary(
|
|
41
|
+
method=MethodInfo(
|
|
42
|
+
name="List",
|
|
43
|
+
service_name="metalstack.api.v2.SizeService",
|
|
44
|
+
input=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListRequest,
|
|
45
|
+
output=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListResponse,
|
|
46
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
47
|
+
),
|
|
48
|
+
function=service.list,
|
|
49
|
+
),
|
|
50
|
+
},
|
|
51
|
+
interceptors=interceptors,
|
|
52
|
+
read_max_bytes=read_max_bytes,
|
|
53
|
+
)
|
|
76
54
|
|
|
77
|
-
|
|
78
|
-
|
|
55
|
+
@property
|
|
56
|
+
def path(self):
|
|
57
|
+
"""Returns the URL path to mount the application to when serving multiple applications."""
|
|
58
|
+
return "/metalstack.api.v2.SizeService"
|
|
79
59
|
|
|
80
60
|
|
|
81
61
|
class SizeServiceClient(ConnecpyClient):
|
|
82
|
-
def
|
|
62
|
+
async def get(
|
|
83
63
|
self,
|
|
84
64
|
request: metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetRequest,
|
|
85
65
|
*,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
**kwargs,
|
|
66
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
67
|
+
timeout_ms: int | None = None,
|
|
89
68
|
) -> metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetResponse:
|
|
90
|
-
|
|
91
|
-
return self._make_request(
|
|
92
|
-
url=f"{server_path_prefix}/metalstack.api.v2.SizeService/Get",
|
|
93
|
-
ctx=ctx,
|
|
69
|
+
return await self.execute_unary(
|
|
94
70
|
request=request,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
71
|
+
method=MethodInfo(
|
|
72
|
+
name="Get",
|
|
73
|
+
service_name="metalstack.api.v2.SizeService",
|
|
74
|
+
input=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetRequest,
|
|
75
|
+
output=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetResponse,
|
|
76
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
77
|
+
),
|
|
78
|
+
headers=headers,
|
|
79
|
+
timeout_ms=timeout_ms,
|
|
98
80
|
)
|
|
99
81
|
|
|
100
|
-
def
|
|
82
|
+
async def list(
|
|
101
83
|
self,
|
|
102
84
|
request: metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListRequest,
|
|
103
85
|
*,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
**kwargs,
|
|
86
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
87
|
+
timeout_ms: int | None = None,
|
|
107
88
|
) -> metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListResponse:
|
|
108
|
-
|
|
109
|
-
return self._make_request(
|
|
110
|
-
url=f"{server_path_prefix}/metalstack.api.v2.SizeService/List",
|
|
111
|
-
ctx=ctx,
|
|
89
|
+
return await self.execute_unary(
|
|
112
90
|
request=request,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
91
|
+
method=MethodInfo(
|
|
92
|
+
name="List",
|
|
93
|
+
service_name="metalstack.api.v2.SizeService",
|
|
94
|
+
input=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListRequest,
|
|
95
|
+
output=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListResponse,
|
|
96
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
97
|
+
),
|
|
98
|
+
headers=headers,
|
|
99
|
+
timeout_ms=timeout_ms,
|
|
116
100
|
)
|
|
117
101
|
|
|
118
102
|
|
|
119
|
-
class
|
|
120
|
-
|
|
103
|
+
class SizeServiceSync(Protocol):
|
|
104
|
+
def get(self, request: metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetResponse:
|
|
105
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
106
|
+
def list(self, request: metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListResponse:
|
|
107
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
class SizeServiceWSGIApplication(ConnecpyWSGIApplication):
|
|
111
|
+
def __init__(self, service: SizeServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None):
|
|
112
|
+
super().__init__(
|
|
113
|
+
endpoints={
|
|
114
|
+
"/metalstack.api.v2.SizeService/Get": EndpointSync.unary(
|
|
115
|
+
method=MethodInfo(
|
|
116
|
+
name="Get",
|
|
117
|
+
service_name="metalstack.api.v2.SizeService",
|
|
118
|
+
input=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetRequest,
|
|
119
|
+
output=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetResponse,
|
|
120
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
121
|
+
),
|
|
122
|
+
function=service.get,
|
|
123
|
+
),
|
|
124
|
+
"/metalstack.api.v2.SizeService/List": EndpointSync.unary(
|
|
125
|
+
method=MethodInfo(
|
|
126
|
+
name="List",
|
|
127
|
+
service_name="metalstack.api.v2.SizeService",
|
|
128
|
+
input=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListRequest,
|
|
129
|
+
output=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListResponse,
|
|
130
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
131
|
+
),
|
|
132
|
+
function=service.list,
|
|
133
|
+
),
|
|
134
|
+
},
|
|
135
|
+
interceptors=interceptors,
|
|
136
|
+
read_max_bytes=read_max_bytes,
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def path(self):
|
|
141
|
+
"""Returns the URL path to mount the application to when serving multiple applications."""
|
|
142
|
+
return "/metalstack.api.v2.SizeService"
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
class SizeServiceClientSync(ConnecpyClientSync):
|
|
146
|
+
def get(
|
|
121
147
|
self,
|
|
122
148
|
request: metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetRequest,
|
|
123
149
|
*,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
session: Union[httpx.AsyncClient, None] = None,
|
|
127
|
-
**kwargs,
|
|
150
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
151
|
+
timeout_ms: int | None = None,
|
|
128
152
|
) -> metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetResponse:
|
|
129
|
-
|
|
130
|
-
return await self._make_request(
|
|
131
|
-
url=f"{server_path_prefix}/metalstack.api.v2.SizeService/Get",
|
|
132
|
-
ctx=ctx,
|
|
153
|
+
return self.execute_unary(
|
|
133
154
|
request=request,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
155
|
+
method=MethodInfo(
|
|
156
|
+
name="Get",
|
|
157
|
+
service_name="metalstack.api.v2.SizeService",
|
|
158
|
+
input=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetRequest,
|
|
159
|
+
output=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetResponse,
|
|
160
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
161
|
+
),
|
|
162
|
+
headers=headers,
|
|
163
|
+
timeout_ms=timeout_ms,
|
|
138
164
|
)
|
|
139
165
|
|
|
140
|
-
|
|
166
|
+
def list(
|
|
141
167
|
self,
|
|
142
168
|
request: metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListRequest,
|
|
143
169
|
*,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
session: Union[httpx.AsyncClient, None] = None,
|
|
147
|
-
**kwargs,
|
|
170
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
171
|
+
timeout_ms: int | None = None,
|
|
148
172
|
) -> metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListResponse:
|
|
149
|
-
|
|
150
|
-
return await self._make_request(
|
|
151
|
-
url=f"{server_path_prefix}/metalstack.api.v2.SizeService/List",
|
|
152
|
-
ctx=ctx,
|
|
173
|
+
return self.execute_unary(
|
|
153
174
|
request=request,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
175
|
+
method=MethodInfo(
|
|
176
|
+
name="List",
|
|
177
|
+
service_name="metalstack.api.v2.SizeService",
|
|
178
|
+
input=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListRequest,
|
|
179
|
+
output=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListResponse,
|
|
180
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
181
|
+
),
|
|
182
|
+
headers=headers,
|
|
183
|
+
timeout_ms=timeout_ms,
|
|
158
184
|
)
|