metal-stack-api 0.0.22__py3-none-any.whl → 0.0.23__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.
Files changed (115) hide show
  1. {metal_stack_api-0.0.22.dist-info → metal_stack_api-0.0.23.dist-info}/METADATA +3 -2
  2. metal_stack_api-0.0.23.dist-info/RECORD +97 -0
  3. {metal_stack_api-0.0.22.dist-info → metal_stack_api-0.0.23.dist-info}/top_level.txt +0 -1
  4. metalstack/admin/v2/{filesystem_connecpy.py → filesystem_connect.py} +22 -22
  5. metalstack/admin/v2/filesystem_pb2.py +20 -19
  6. metalstack/admin/v2/filesystem_pb2.pyi +1 -0
  7. metalstack/admin/v2/{image_connecpy.py → image_connect.py} +24 -24
  8. metalstack/admin/v2/image_pb2.py +24 -23
  9. metalstack/admin/v2/image_pb2.pyi +1 -0
  10. metalstack/admin/v2/{ip_connecpy.py → ip_connect.py} +20 -20
  11. metalstack/admin/v2/ip_pb2.py +2 -2
  12. metalstack/admin/v2/{machine_connecpy.py → machine_connect.py} +20 -20
  13. metalstack/admin/v2/machine_pb2.py +15 -14
  14. metalstack/admin/v2/machine_pb2.pyi +1 -0
  15. metalstack/admin/v2/{network_connecpy.py → network_connect.py} +26 -26
  16. metalstack/admin/v2/network_pb2.py +45 -36
  17. metalstack/admin/v2/network_pb2.pyi +1 -0
  18. metalstack/admin/v2/{partition_connecpy.py → partition_connect.py} +24 -24
  19. metalstack/admin/v2/partition_pb2.py +23 -22
  20. metalstack/admin/v2/partition_pb2.pyi +1 -0
  21. metalstack/admin/v2/{size_connecpy.py → size_connect.py} +22 -22
  22. metalstack/admin/v2/size_pb2.py +20 -19
  23. metalstack/admin/v2/size_pb2.pyi +1 -0
  24. metalstack/admin/v2/switch_connect.py +444 -0
  25. metalstack/admin/v2/switch_pb2.py +108 -0
  26. metalstack/admin/v2/switch_pb2.pyi +114 -0
  27. metalstack/admin/v2/{tenant_connecpy.py → tenant_connect.py} +20 -20
  28. metalstack/admin/v2/tenant_pb2.py +18 -15
  29. metalstack/admin/v2/tenant_pb2.pyi +1 -0
  30. metalstack/admin/v2/{token_connecpy.py → token_connect.py} +20 -20
  31. metalstack/admin/v2/token_pb2.py +2 -2
  32. metalstack/api/v2/common_pb2.py +2 -2
  33. metalstack/api/v2/{filesystem_connecpy.py → filesystem_connect.py} +22 -22
  34. metalstack/api/v2/filesystem_pb2.py +54 -53
  35. metalstack/api/v2/filesystem_pb2.pyi +1 -0
  36. metalstack/api/v2/{health_connecpy.py → health_connect.py} +18 -18
  37. metalstack/api/v2/health_pb2.py +2 -2
  38. metalstack/api/v2/{image_connecpy.py → image_connect.py} +22 -22
  39. metalstack/api/v2/image_pb2.py +32 -31
  40. metalstack/api/v2/image_pb2.pyi +1 -0
  41. metalstack/api/v2/{ip_connecpy.py → ip_connect.py} +26 -26
  42. metalstack/api/v2/ip_pb2.py +41 -40
  43. metalstack/api/v2/ip_pb2.pyi +1 -0
  44. metalstack/api/v2/{machine_connecpy.py → machine_connect.py} +26 -26
  45. metalstack/api/v2/machine_pb2.py +122 -121
  46. metalstack/api/v2/machine_pb2.pyi +1 -0
  47. metalstack/api/v2/{method_connecpy.py → method_connect.py} +20 -20
  48. metalstack/api/v2/method_pb2.py +2 -2
  49. metalstack/api/v2/{network_connecpy.py → network_connect.py} +28 -28
  50. metalstack/api/v2/network_pb2.py +73 -66
  51. metalstack/api/v2/network_pb2.pyi +1 -0
  52. metalstack/api/v2/{partition_connecpy.py → partition_connect.py} +20 -20
  53. metalstack/api/v2/partition_pb2.py +25 -24
  54. metalstack/api/v2/partition_pb2.pyi +1 -0
  55. metalstack/api/v2/predefined_rules_pb2.py +50 -0
  56. metalstack/api/v2/predefined_rules_pb2.pyi +19 -0
  57. metalstack/api/v2/{project_connecpy.py → project_connect.py} +40 -40
  58. metalstack/api/v2/project_pb2.py +69 -64
  59. metalstack/api/v2/project_pb2.pyi +1 -0
  60. metalstack/api/v2/{size_connecpy.py → size_connect.py} +20 -20
  61. metalstack/api/v2/size_pb2.py +26 -25
  62. metalstack/api/v2/size_pb2.pyi +1 -0
  63. metalstack/api/v2/switch_pb2.py +62 -41
  64. metalstack/api/v2/switch_pb2.pyi +54 -11
  65. metalstack/api/v2/{tenant_connecpy.py → tenant_connect.py} +40 -40
  66. metalstack/api/v2/tenant_pb2.py +69 -64
  67. metalstack/api/v2/tenant_pb2.pyi +1 -0
  68. metalstack/api/v2/{token_connecpy.py → token_connect.py} +28 -28
  69. metalstack/api/v2/token_pb2.py +51 -50
  70. metalstack/api/v2/token_pb2.pyi +1 -0
  71. metalstack/api/v2/{user_connecpy.py → user_connect.py} +18 -18
  72. metalstack/api/v2/user_pb2.py +15 -11
  73. metalstack/api/v2/user_pb2.pyi +2 -0
  74. metalstack/api/v2/{version_connecpy.py → version_connect.py} +18 -18
  75. metalstack/api/v2/version_pb2.py +2 -2
  76. metalstack/client/client.py +56 -52
  77. metalstack/infra/v2/{bmc_connecpy.py → bmc_connect.py} +18 -18
  78. metalstack/infra/v2/bmc_pb2.py +2 -2
  79. metalstack/infra/v2/{switch_connecpy.py → switch_connect.py} +83 -18
  80. metalstack/infra/v2/switch_pb2.py +28 -10
  81. metalstack/infra/v2/switch_pb2.pyi +51 -0
  82. buf/__init__.py +0 -0
  83. buf/validate/__init__.py +0 -0
  84. buf/validate/validate_pb2.py +0 -450
  85. buf/validate/validate_pb2.pyi +0 -627
  86. buf/validate/validate_pb2_grpc.py +0 -4
  87. metal_stack_api-0.0.22.dist-info/RECORD +0 -124
  88. metalstack/admin/v2/filesystem_pb2_grpc.py +0 -169
  89. metalstack/admin/v2/image_pb2_grpc.py +0 -213
  90. metalstack/admin/v2/ip_pb2_grpc.py +0 -125
  91. metalstack/admin/v2/machine_pb2_grpc.py +0 -125
  92. metalstack/admin/v2/network_pb2_grpc.py +0 -257
  93. metalstack/admin/v2/partition_pb2_grpc.py +0 -213
  94. metalstack/admin/v2/size_pb2_grpc.py +0 -169
  95. metalstack/admin/v2/tenant_pb2_grpc.py +0 -125
  96. metalstack/admin/v2/token_pb2_grpc.py +0 -125
  97. metalstack/api/v2/common_pb2_grpc.py +0 -4
  98. metalstack/api/v2/filesystem_pb2_grpc.py +0 -169
  99. metalstack/api/v2/health_pb2_grpc.py +0 -81
  100. metalstack/api/v2/image_pb2_grpc.py +0 -169
  101. metalstack/api/v2/ip_pb2_grpc.py +0 -257
  102. metalstack/api/v2/machine_pb2_grpc.py +0 -257
  103. metalstack/api/v2/method_pb2_grpc.py +0 -128
  104. metalstack/api/v2/network_pb2_grpc.py +0 -301
  105. metalstack/api/v2/partition_pb2_grpc.py +0 -125
  106. metalstack/api/v2/project_pb2_grpc.py +0 -565
  107. metalstack/api/v2/size_pb2_grpc.py +0 -125
  108. metalstack/api/v2/switch_pb2_grpc.py +0 -4
  109. metalstack/api/v2/tenant_pb2_grpc.py +0 -565
  110. metalstack/api/v2/token_pb2_grpc.py +0 -301
  111. metalstack/api/v2/user_pb2_grpc.py +0 -81
  112. metalstack/api/v2/version_pb2_grpc.py +0 -81
  113. metalstack/infra/v2/bmc_pb2_grpc.py +0 -81
  114. metalstack/infra/v2/switch_pb2_grpc.py +0 -81
  115. {metal_stack_api-0.0.22.dist-info → metal_stack_api-0.0.23.dist-info}/WHEEL +0 -0
@@ -1,169 +0,0 @@
1
- # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
- """Client and server classes corresponding to protobuf-defined services."""
3
- import grpc
4
-
5
- from metalstack.admin.v2 import size_pb2 as metalstack_dot_admin_dot_v2_dot_size__pb2
6
-
7
-
8
- class SizeServiceStub(object):
9
- """SizeService serves size related functions
10
- """
11
-
12
- def __init__(self, channel):
13
- """Constructor.
14
-
15
- Args:
16
- channel: A grpc.Channel.
17
- """
18
- self.Create = channel.unary_unary(
19
- '/metalstack.admin.v2.SizeService/Create',
20
- request_serializer=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateRequest.SerializeToString,
21
- response_deserializer=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateResponse.FromString,
22
- _registered_method=True)
23
- self.Update = channel.unary_unary(
24
- '/metalstack.admin.v2.SizeService/Update',
25
- request_serializer=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateRequest.SerializeToString,
26
- response_deserializer=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateResponse.FromString,
27
- _registered_method=True)
28
- self.Delete = channel.unary_unary(
29
- '/metalstack.admin.v2.SizeService/Delete',
30
- request_serializer=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteRequest.SerializeToString,
31
- response_deserializer=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteResponse.FromString,
32
- _registered_method=True)
33
-
34
-
35
- class SizeServiceServicer(object):
36
- """SizeService serves size related functions
37
- """
38
-
39
- def Create(self, request, context):
40
- """Create a size
41
- """
42
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
43
- context.set_details('Method not implemented!')
44
- raise NotImplementedError('Method not implemented!')
45
-
46
- def Update(self, request, context):
47
- """Update a size
48
- """
49
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
50
- context.set_details('Method not implemented!')
51
- raise NotImplementedError('Method not implemented!')
52
-
53
- def Delete(self, request, context):
54
- """Delete a size
55
- """
56
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
57
- context.set_details('Method not implemented!')
58
- raise NotImplementedError('Method not implemented!')
59
-
60
-
61
- def add_SizeServiceServicer_to_server(servicer, server):
62
- rpc_method_handlers = {
63
- 'Create': grpc.unary_unary_rpc_method_handler(
64
- servicer.Create,
65
- request_deserializer=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateRequest.FromString,
66
- response_serializer=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateResponse.SerializeToString,
67
- ),
68
- 'Update': grpc.unary_unary_rpc_method_handler(
69
- servicer.Update,
70
- request_deserializer=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateRequest.FromString,
71
- response_serializer=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateResponse.SerializeToString,
72
- ),
73
- 'Delete': grpc.unary_unary_rpc_method_handler(
74
- servicer.Delete,
75
- request_deserializer=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteRequest.FromString,
76
- response_serializer=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteResponse.SerializeToString,
77
- ),
78
- }
79
- generic_handler = grpc.method_handlers_generic_handler(
80
- 'metalstack.admin.v2.SizeService', rpc_method_handlers)
81
- server.add_generic_rpc_handlers((generic_handler,))
82
- server.add_registered_method_handlers('metalstack.admin.v2.SizeService', rpc_method_handlers)
83
-
84
-
85
- # This class is part of an EXPERIMENTAL API.
86
- class SizeService(object):
87
- """SizeService serves size related functions
88
- """
89
-
90
- @staticmethod
91
- def Create(request,
92
- target,
93
- options=(),
94
- channel_credentials=None,
95
- call_credentials=None,
96
- insecure=False,
97
- compression=None,
98
- wait_for_ready=None,
99
- timeout=None,
100
- metadata=None):
101
- return grpc.experimental.unary_unary(
102
- request,
103
- target,
104
- '/metalstack.admin.v2.SizeService/Create',
105
- metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateRequest.SerializeToString,
106
- metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateResponse.FromString,
107
- options,
108
- channel_credentials,
109
- insecure,
110
- call_credentials,
111
- compression,
112
- wait_for_ready,
113
- timeout,
114
- metadata,
115
- _registered_method=True)
116
-
117
- @staticmethod
118
- def Update(request,
119
- target,
120
- options=(),
121
- channel_credentials=None,
122
- call_credentials=None,
123
- insecure=False,
124
- compression=None,
125
- wait_for_ready=None,
126
- timeout=None,
127
- metadata=None):
128
- return grpc.experimental.unary_unary(
129
- request,
130
- target,
131
- '/metalstack.admin.v2.SizeService/Update',
132
- metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateRequest.SerializeToString,
133
- metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateResponse.FromString,
134
- options,
135
- channel_credentials,
136
- insecure,
137
- call_credentials,
138
- compression,
139
- wait_for_ready,
140
- timeout,
141
- metadata,
142
- _registered_method=True)
143
-
144
- @staticmethod
145
- def Delete(request,
146
- target,
147
- options=(),
148
- channel_credentials=None,
149
- call_credentials=None,
150
- insecure=False,
151
- compression=None,
152
- wait_for_ready=None,
153
- timeout=None,
154
- metadata=None):
155
- return grpc.experimental.unary_unary(
156
- request,
157
- target,
158
- '/metalstack.admin.v2.SizeService/Delete',
159
- metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteRequest.SerializeToString,
160
- metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteResponse.FromString,
161
- options,
162
- channel_credentials,
163
- insecure,
164
- call_credentials,
165
- compression,
166
- wait_for_ready,
167
- timeout,
168
- metadata,
169
- _registered_method=True)
@@ -1,125 +0,0 @@
1
- # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
- """Client and server classes corresponding to protobuf-defined services."""
3
- import grpc
4
-
5
- from metalstack.admin.v2 import tenant_pb2 as metalstack_dot_admin_dot_v2_dot_tenant__pb2
6
-
7
-
8
- class TenantServiceStub(object):
9
- """TenantService serves tenant related functions
10
- """
11
-
12
- def __init__(self, channel):
13
- """Constructor.
14
-
15
- Args:
16
- channel: A grpc.Channel.
17
- """
18
- self.Create = channel.unary_unary(
19
- '/metalstack.admin.v2.TenantService/Create',
20
- request_serializer=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest.SerializeToString,
21
- response_deserializer=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse.FromString,
22
- _registered_method=True)
23
- self.List = channel.unary_unary(
24
- '/metalstack.admin.v2.TenantService/List',
25
- request_serializer=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListRequest.SerializeToString,
26
- response_deserializer=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListResponse.FromString,
27
- _registered_method=True)
28
-
29
-
30
- class TenantServiceServicer(object):
31
- """TenantService serves tenant related functions
32
- """
33
-
34
- def Create(self, request, context):
35
- """Create a tenant
36
- """
37
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
38
- context.set_details('Method not implemented!')
39
- raise NotImplementedError('Method not implemented!')
40
-
41
- def List(self, request, context):
42
- """List all tenants
43
- """
44
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
45
- context.set_details('Method not implemented!')
46
- raise NotImplementedError('Method not implemented!')
47
-
48
-
49
- def add_TenantServiceServicer_to_server(servicer, server):
50
- rpc_method_handlers = {
51
- 'Create': grpc.unary_unary_rpc_method_handler(
52
- servicer.Create,
53
- request_deserializer=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest.FromString,
54
- response_serializer=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse.SerializeToString,
55
- ),
56
- 'List': grpc.unary_unary_rpc_method_handler(
57
- servicer.List,
58
- request_deserializer=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListRequest.FromString,
59
- response_serializer=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListResponse.SerializeToString,
60
- ),
61
- }
62
- generic_handler = grpc.method_handlers_generic_handler(
63
- 'metalstack.admin.v2.TenantService', rpc_method_handlers)
64
- server.add_generic_rpc_handlers((generic_handler,))
65
- server.add_registered_method_handlers('metalstack.admin.v2.TenantService', rpc_method_handlers)
66
-
67
-
68
- # This class is part of an EXPERIMENTAL API.
69
- class TenantService(object):
70
- """TenantService serves tenant related functions
71
- """
72
-
73
- @staticmethod
74
- def Create(request,
75
- target,
76
- options=(),
77
- channel_credentials=None,
78
- call_credentials=None,
79
- insecure=False,
80
- compression=None,
81
- wait_for_ready=None,
82
- timeout=None,
83
- metadata=None):
84
- return grpc.experimental.unary_unary(
85
- request,
86
- target,
87
- '/metalstack.admin.v2.TenantService/Create',
88
- metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest.SerializeToString,
89
- metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse.FromString,
90
- options,
91
- channel_credentials,
92
- insecure,
93
- call_credentials,
94
- compression,
95
- wait_for_ready,
96
- timeout,
97
- metadata,
98
- _registered_method=True)
99
-
100
- @staticmethod
101
- def List(request,
102
- target,
103
- options=(),
104
- channel_credentials=None,
105
- call_credentials=None,
106
- insecure=False,
107
- compression=None,
108
- wait_for_ready=None,
109
- timeout=None,
110
- metadata=None):
111
- return grpc.experimental.unary_unary(
112
- request,
113
- target,
114
- '/metalstack.admin.v2.TenantService/List',
115
- metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListRequest.SerializeToString,
116
- metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListResponse.FromString,
117
- options,
118
- channel_credentials,
119
- insecure,
120
- call_credentials,
121
- compression,
122
- wait_for_ready,
123
- timeout,
124
- metadata,
125
- _registered_method=True)
@@ -1,125 +0,0 @@
1
- # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
- """Client and server classes corresponding to protobuf-defined services."""
3
- import grpc
4
-
5
- from metalstack.admin.v2 import token_pb2 as metalstack_dot_admin_dot_v2_dot_token__pb2
6
-
7
-
8
- class TokenServiceStub(object):
9
- """TokenService serves token related functions
10
- """
11
-
12
- def __init__(self, channel):
13
- """Constructor.
14
-
15
- Args:
16
- channel: A grpc.Channel.
17
- """
18
- self.List = channel.unary_unary(
19
- '/metalstack.admin.v2.TokenService/List',
20
- request_serializer=metalstack_dot_admin_dot_v2_dot_token__pb2.TokenServiceListRequest.SerializeToString,
21
- response_deserializer=metalstack_dot_admin_dot_v2_dot_token__pb2.TokenServiceListResponse.FromString,
22
- _registered_method=True)
23
- self.Revoke = channel.unary_unary(
24
- '/metalstack.admin.v2.TokenService/Revoke',
25
- request_serializer=metalstack_dot_admin_dot_v2_dot_token__pb2.TokenServiceRevokeRequest.SerializeToString,
26
- response_deserializer=metalstack_dot_admin_dot_v2_dot_token__pb2.TokenServiceRevokeResponse.FromString,
27
- _registered_method=True)
28
-
29
-
30
- class TokenServiceServicer(object):
31
- """TokenService serves token related functions
32
- """
33
-
34
- def List(self, request, context):
35
- """List tokens
36
- """
37
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
38
- context.set_details('Method not implemented!')
39
- raise NotImplementedError('Method not implemented!')
40
-
41
- def Revoke(self, request, context):
42
- """Revoke a token
43
- """
44
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
45
- context.set_details('Method not implemented!')
46
- raise NotImplementedError('Method not implemented!')
47
-
48
-
49
- def add_TokenServiceServicer_to_server(servicer, server):
50
- rpc_method_handlers = {
51
- 'List': grpc.unary_unary_rpc_method_handler(
52
- servicer.List,
53
- request_deserializer=metalstack_dot_admin_dot_v2_dot_token__pb2.TokenServiceListRequest.FromString,
54
- response_serializer=metalstack_dot_admin_dot_v2_dot_token__pb2.TokenServiceListResponse.SerializeToString,
55
- ),
56
- 'Revoke': grpc.unary_unary_rpc_method_handler(
57
- servicer.Revoke,
58
- request_deserializer=metalstack_dot_admin_dot_v2_dot_token__pb2.TokenServiceRevokeRequest.FromString,
59
- response_serializer=metalstack_dot_admin_dot_v2_dot_token__pb2.TokenServiceRevokeResponse.SerializeToString,
60
- ),
61
- }
62
- generic_handler = grpc.method_handlers_generic_handler(
63
- 'metalstack.admin.v2.TokenService', rpc_method_handlers)
64
- server.add_generic_rpc_handlers((generic_handler,))
65
- server.add_registered_method_handlers('metalstack.admin.v2.TokenService', rpc_method_handlers)
66
-
67
-
68
- # This class is part of an EXPERIMENTAL API.
69
- class TokenService(object):
70
- """TokenService serves token related functions
71
- """
72
-
73
- @staticmethod
74
- def List(request,
75
- target,
76
- options=(),
77
- channel_credentials=None,
78
- call_credentials=None,
79
- insecure=False,
80
- compression=None,
81
- wait_for_ready=None,
82
- timeout=None,
83
- metadata=None):
84
- return grpc.experimental.unary_unary(
85
- request,
86
- target,
87
- '/metalstack.admin.v2.TokenService/List',
88
- metalstack_dot_admin_dot_v2_dot_token__pb2.TokenServiceListRequest.SerializeToString,
89
- metalstack_dot_admin_dot_v2_dot_token__pb2.TokenServiceListResponse.FromString,
90
- options,
91
- channel_credentials,
92
- insecure,
93
- call_credentials,
94
- compression,
95
- wait_for_ready,
96
- timeout,
97
- metadata,
98
- _registered_method=True)
99
-
100
- @staticmethod
101
- def Revoke(request,
102
- target,
103
- options=(),
104
- channel_credentials=None,
105
- call_credentials=None,
106
- insecure=False,
107
- compression=None,
108
- wait_for_ready=None,
109
- timeout=None,
110
- metadata=None):
111
- return grpc.experimental.unary_unary(
112
- request,
113
- target,
114
- '/metalstack.admin.v2.TokenService/Revoke',
115
- metalstack_dot_admin_dot_v2_dot_token__pb2.TokenServiceRevokeRequest.SerializeToString,
116
- metalstack_dot_admin_dot_v2_dot_token__pb2.TokenServiceRevokeResponse.FromString,
117
- options,
118
- channel_credentials,
119
- insecure,
120
- call_credentials,
121
- compression,
122
- wait_for_ready,
123
- timeout,
124
- metadata,
125
- _registered_method=True)
@@ -1,4 +0,0 @@
1
- # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
- """Client and server classes corresponding to protobuf-defined services."""
3
- import grpc
4
-
@@ -1,169 +0,0 @@
1
- # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
- """Client and server classes corresponding to protobuf-defined services."""
3
- import grpc
4
-
5
- from metalstack.api.v2 import filesystem_pb2 as metalstack_dot_api_dot_v2_dot_filesystem__pb2
6
-
7
-
8
- class FilesystemServiceStub(object):
9
- """FilesystemService serves filesystem related functions
10
- """
11
-
12
- def __init__(self, channel):
13
- """Constructor.
14
-
15
- Args:
16
- channel: A grpc.Channel.
17
- """
18
- self.Get = channel.unary_unary(
19
- '/metalstack.api.v2.FilesystemService/Get',
20
- request_serializer=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetRequest.SerializeToString,
21
- response_deserializer=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetResponse.FromString,
22
- _registered_method=True)
23
- self.List = channel.unary_unary(
24
- '/metalstack.api.v2.FilesystemService/List',
25
- request_serializer=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListRequest.SerializeToString,
26
- response_deserializer=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListResponse.FromString,
27
- _registered_method=True)
28
- self.Match = channel.unary_unary(
29
- '/metalstack.api.v2.FilesystemService/Match',
30
- request_serializer=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest.SerializeToString,
31
- response_deserializer=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse.FromString,
32
- _registered_method=True)
33
-
34
-
35
- class FilesystemServiceServicer(object):
36
- """FilesystemService serves filesystem related functions
37
- """
38
-
39
- def Get(self, request, context):
40
- """Get a filesystem
41
- """
42
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
43
- context.set_details('Method not implemented!')
44
- raise NotImplementedError('Method not implemented!')
45
-
46
- def List(self, request, context):
47
- """List all filesystems
48
- """
49
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
50
- context.set_details('Method not implemented!')
51
- raise NotImplementedError('Method not implemented!')
52
-
53
- def Match(self, request, context):
54
- """Match a filesystems
55
- """
56
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
57
- context.set_details('Method not implemented!')
58
- raise NotImplementedError('Method not implemented!')
59
-
60
-
61
- def add_FilesystemServiceServicer_to_server(servicer, server):
62
- rpc_method_handlers = {
63
- 'Get': grpc.unary_unary_rpc_method_handler(
64
- servicer.Get,
65
- request_deserializer=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetRequest.FromString,
66
- response_serializer=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetResponse.SerializeToString,
67
- ),
68
- 'List': grpc.unary_unary_rpc_method_handler(
69
- servicer.List,
70
- request_deserializer=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListRequest.FromString,
71
- response_serializer=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListResponse.SerializeToString,
72
- ),
73
- 'Match': grpc.unary_unary_rpc_method_handler(
74
- servicer.Match,
75
- request_deserializer=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest.FromString,
76
- response_serializer=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse.SerializeToString,
77
- ),
78
- }
79
- generic_handler = grpc.method_handlers_generic_handler(
80
- 'metalstack.api.v2.FilesystemService', rpc_method_handlers)
81
- server.add_generic_rpc_handlers((generic_handler,))
82
- server.add_registered_method_handlers('metalstack.api.v2.FilesystemService', rpc_method_handlers)
83
-
84
-
85
- # This class is part of an EXPERIMENTAL API.
86
- class FilesystemService(object):
87
- """FilesystemService serves filesystem related functions
88
- """
89
-
90
- @staticmethod
91
- def Get(request,
92
- target,
93
- options=(),
94
- channel_credentials=None,
95
- call_credentials=None,
96
- insecure=False,
97
- compression=None,
98
- wait_for_ready=None,
99
- timeout=None,
100
- metadata=None):
101
- return grpc.experimental.unary_unary(
102
- request,
103
- target,
104
- '/metalstack.api.v2.FilesystemService/Get',
105
- metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetRequest.SerializeToString,
106
- metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetResponse.FromString,
107
- options,
108
- channel_credentials,
109
- insecure,
110
- call_credentials,
111
- compression,
112
- wait_for_ready,
113
- timeout,
114
- metadata,
115
- _registered_method=True)
116
-
117
- @staticmethod
118
- def List(request,
119
- target,
120
- options=(),
121
- channel_credentials=None,
122
- call_credentials=None,
123
- insecure=False,
124
- compression=None,
125
- wait_for_ready=None,
126
- timeout=None,
127
- metadata=None):
128
- return grpc.experimental.unary_unary(
129
- request,
130
- target,
131
- '/metalstack.api.v2.FilesystemService/List',
132
- metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListRequest.SerializeToString,
133
- metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListResponse.FromString,
134
- options,
135
- channel_credentials,
136
- insecure,
137
- call_credentials,
138
- compression,
139
- wait_for_ready,
140
- timeout,
141
- metadata,
142
- _registered_method=True)
143
-
144
- @staticmethod
145
- def Match(request,
146
- target,
147
- options=(),
148
- channel_credentials=None,
149
- call_credentials=None,
150
- insecure=False,
151
- compression=None,
152
- wait_for_ready=None,
153
- timeout=None,
154
- metadata=None):
155
- return grpc.experimental.unary_unary(
156
- request,
157
- target,
158
- '/metalstack.api.v2.FilesystemService/Match',
159
- metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest.SerializeToString,
160
- metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse.FromString,
161
- options,
162
- channel_credentials,
163
- insecure,
164
- call_credentials,
165
- compression,
166
- wait_for_ready,
167
- timeout,
168
- metadata,
169
- _registered_method=True)
@@ -1,81 +0,0 @@
1
- # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
- """Client and server classes corresponding to protobuf-defined services."""
3
- import grpc
4
-
5
- from metalstack.api.v2 import health_pb2 as metalstack_dot_api_dot_v2_dot_health__pb2
6
-
7
-
8
- class HealthServiceStub(object):
9
- """HealthService serves health related functions
10
- """
11
-
12
- def __init__(self, channel):
13
- """Constructor.
14
-
15
- Args:
16
- channel: A grpc.Channel.
17
- """
18
- self.Get = channel.unary_unary(
19
- '/metalstack.api.v2.HealthService/Get',
20
- request_serializer=metalstack_dot_api_dot_v2_dot_health__pb2.HealthServiceGetRequest.SerializeToString,
21
- response_deserializer=metalstack_dot_api_dot_v2_dot_health__pb2.HealthServiceGetResponse.FromString,
22
- _registered_method=True)
23
-
24
-
25
- class HealthServiceServicer(object):
26
- """HealthService serves health related functions
27
- """
28
-
29
- def Get(self, request, context):
30
- """Get the health of the platform
31
- """
32
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
33
- context.set_details('Method not implemented!')
34
- raise NotImplementedError('Method not implemented!')
35
-
36
-
37
- def add_HealthServiceServicer_to_server(servicer, server):
38
- rpc_method_handlers = {
39
- 'Get': grpc.unary_unary_rpc_method_handler(
40
- servicer.Get,
41
- request_deserializer=metalstack_dot_api_dot_v2_dot_health__pb2.HealthServiceGetRequest.FromString,
42
- response_serializer=metalstack_dot_api_dot_v2_dot_health__pb2.HealthServiceGetResponse.SerializeToString,
43
- ),
44
- }
45
- generic_handler = grpc.method_handlers_generic_handler(
46
- 'metalstack.api.v2.HealthService', rpc_method_handlers)
47
- server.add_generic_rpc_handlers((generic_handler,))
48
- server.add_registered_method_handlers('metalstack.api.v2.HealthService', rpc_method_handlers)
49
-
50
-
51
- # This class is part of an EXPERIMENTAL API.
52
- class HealthService(object):
53
- """HealthService serves health related functions
54
- """
55
-
56
- @staticmethod
57
- def Get(request,
58
- target,
59
- options=(),
60
- channel_credentials=None,
61
- call_credentials=None,
62
- insecure=False,
63
- compression=None,
64
- wait_for_ready=None,
65
- timeout=None,
66
- metadata=None):
67
- return grpc.experimental.unary_unary(
68
- request,
69
- target,
70
- '/metalstack.api.v2.HealthService/Get',
71
- metalstack_dot_api_dot_v2_dot_health__pb2.HealthServiceGetRequest.SerializeToString,
72
- metalstack_dot_api_dot_v2_dot_health__pb2.HealthServiceGetResponse.FromString,
73
- options,
74
- channel_credentials,
75
- insecure,
76
- call_credentials,
77
- compression,
78
- wait_for_ready,
79
- timeout,
80
- metadata,
81
- _registered_method=True)