metalstack.cloud 0.15.2__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 (111) hide show
  1. buf/__init__.py +0 -0
  2. buf/validate/__init__.py +0 -0
  3. buf/validate/validate_pb2.py +450 -0
  4. buf/validate/validate_pb2.pyi +631 -0
  5. buf/validate/validate_pb2_grpc.py +4 -0
  6. metalstack_cloud-0.15.2.dist-info/METADATA +26 -0
  7. metalstack_cloud-0.15.2.dist-info/RECORD +111 -0
  8. metalstack_cloud-0.15.2.dist-info/WHEEL +5 -0
  9. metalstack_cloud-0.15.2.dist-info/top_level.txt +2 -0
  10. metalstackcloud/__init__.py +0 -0
  11. metalstackcloud/admin/__init__.py +0 -0
  12. metalstackcloud/admin/v1/__init__.py +0 -0
  13. metalstackcloud/admin/v1/cluster_connecpy.py +214 -0
  14. metalstackcloud/admin/v1/cluster_pb2.py +70 -0
  15. metalstackcloud/admin/v1/cluster_pb2.pyi +93 -0
  16. metalstackcloud/admin/v1/cluster_pb2_grpc.py +169 -0
  17. metalstackcloud/admin/v1/machine_pb2.py +42 -0
  18. metalstackcloud/admin/v1/machine_pb2.pyi +76 -0
  19. metalstackcloud/admin/v1/machine_pb2_grpc.py +4 -0
  20. metalstackcloud/admin/v1/payment_connecpy.py +158 -0
  21. metalstackcloud/admin/v1/payment_pb2.py +51 -0
  22. metalstackcloud/admin/v1/payment_pb2.pyi +33 -0
  23. metalstackcloud/admin/v1/payment_pb2_grpc.py +125 -0
  24. metalstackcloud/admin/v1/project_connecpy.py +102 -0
  25. metalstackcloud/admin/v1/project_pb2.py +49 -0
  26. metalstackcloud/admin/v1/project_pb2.pyi +34 -0
  27. metalstackcloud/admin/v1/project_pb2_grpc.py +81 -0
  28. metalstackcloud/admin/v1/storage_connecpy.py +214 -0
  29. metalstackcloud/admin/v1/storage_pb2.py +75 -0
  30. metalstackcloud/admin/v1/storage_pb2.pyi +149 -0
  31. metalstackcloud/admin/v1/storage_pb2_grpc.py +169 -0
  32. metalstackcloud/admin/v1/tenant_connecpy.py +270 -0
  33. metalstackcloud/admin/v1/tenant_pb2.py +66 -0
  34. metalstackcloud/admin/v1/tenant_pb2.pyi +72 -0
  35. metalstackcloud/admin/v1/tenant_pb2_grpc.py +213 -0
  36. metalstackcloud/admin/v1/token_connecpy.py +158 -0
  37. metalstackcloud/admin/v1/token_pb2.py +56 -0
  38. metalstackcloud/admin/v1/token_pb2.pyi +34 -0
  39. metalstackcloud/admin/v1/token_pb2_grpc.py +125 -0
  40. metalstackcloud/api/__init__.py +0 -0
  41. metalstackcloud/api/v1/__init__.py +0 -0
  42. metalstackcloud/api/v1/asset_connecpy.py +102 -0
  43. metalstackcloud/api/v1/asset_pb2.py +76 -0
  44. metalstackcloud/api/v1/asset_pb2.pyi +132 -0
  45. metalstackcloud/api/v1/asset_pb2_grpc.py +81 -0
  46. metalstackcloud/api/v1/audit_connecpy.py +158 -0
  47. metalstackcloud/api/v1/audit_pb2.py +84 -0
  48. metalstackcloud/api/v1/audit_pb2.pyi +95 -0
  49. metalstackcloud/api/v1/audit_pb2_grpc.py +125 -0
  50. metalstackcloud/api/v1/cluster_connecpy.py +494 -0
  51. metalstackcloud/api/v1/cluster_pb2.py +183 -0
  52. metalstackcloud/api/v1/cluster_pb2.pyi +311 -0
  53. metalstackcloud/api/v1/cluster_pb2_grpc.py +389 -0
  54. metalstackcloud/api/v1/common_pb2.py +52 -0
  55. metalstackcloud/api/v1/common_pb2.pyi +98 -0
  56. metalstackcloud/api/v1/common_pb2_grpc.py +4 -0
  57. metalstackcloud/api/v1/health_connecpy.py +102 -0
  58. metalstackcloud/api/v1/health_pb2.py +58 -0
  59. metalstackcloud/api/v1/health_pb2.pyi +74 -0
  60. metalstackcloud/api/v1/health_pb2_grpc.py +81 -0
  61. metalstackcloud/api/v1/ip_connecpy.py +326 -0
  62. metalstackcloud/api/v1/ip_pb2.py +110 -0
  63. metalstackcloud/api/v1/ip_pb2.pyi +122 -0
  64. metalstackcloud/api/v1/ip_pb2_grpc.py +257 -0
  65. metalstackcloud/api/v1/method_connecpy.py +158 -0
  66. metalstackcloud/api/v1/method_pb2.py +62 -0
  67. metalstackcloud/api/v1/method_pb2.pyi +50 -0
  68. metalstackcloud/api/v1/method_pb2_grpc.py +128 -0
  69. metalstackcloud/api/v1/payment_connecpy.py +550 -0
  70. metalstackcloud/api/v1/payment_pb2.py +134 -0
  71. metalstackcloud/api/v1/payment_pb2.pyi +291 -0
  72. metalstackcloud/api/v1/payment_pb2_grpc.py +433 -0
  73. metalstackcloud/api/v1/project_connecpy.py +718 -0
  74. metalstackcloud/api/v1/project_pb2.py +156 -0
  75. metalstackcloud/api/v1/project_pb2.pyi +234 -0
  76. metalstackcloud/api/v1/project_pb2_grpc.py +565 -0
  77. metalstackcloud/api/v1/snapshot_connecpy.py +214 -0
  78. metalstackcloud/api/v1/snapshot_pb2.py +75 -0
  79. metalstackcloud/api/v1/snapshot_pb2.pyi +109 -0
  80. metalstackcloud/api/v1/snapshot_pb2_grpc.py +169 -0
  81. metalstackcloud/api/v1/tenant_connecpy.py +774 -0
  82. metalstackcloud/api/v1/tenant_pb2.py +159 -0
  83. metalstackcloud/api/v1/tenant_pb2.pyi +305 -0
  84. metalstackcloud/api/v1/tenant_pb2_grpc.py +609 -0
  85. metalstackcloud/api/v1/token_connecpy.py +326 -0
  86. metalstackcloud/api/v1/token_pb2.py +131 -0
  87. metalstackcloud/api/v1/token_pb2.pyi +175 -0
  88. metalstackcloud/api/v1/token_pb2_grpc.py +257 -0
  89. metalstackcloud/api/v1/user_connecpy.py +102 -0
  90. metalstackcloud/api/v1/user_pb2.py +48 -0
  91. metalstackcloud/api/v1/user_pb2.pyi +42 -0
  92. metalstackcloud/api/v1/user_pb2_grpc.py +81 -0
  93. metalstackcloud/api/v1/version_connecpy.py +102 -0
  94. metalstackcloud/api/v1/version_pb2.py +46 -0
  95. metalstackcloud/api/v1/version_pb2.pyi +29 -0
  96. metalstackcloud/api/v1/version_pb2_grpc.py +81 -0
  97. metalstackcloud/api/v1/volume_connecpy.py +270 -0
  98. metalstackcloud/api/v1/volume_pb2.py +91 -0
  99. metalstackcloud/api/v1/volume_pb2.pyi +165 -0
  100. metalstackcloud/api/v1/volume_pb2_grpc.py +213 -0
  101. metalstackcloud/client.py +139 -0
  102. metalstackcloud/status/__init__.py +0 -0
  103. metalstackcloud/status/v1/__init__.py +0 -0
  104. metalstackcloud/status/v1/message_connecpy.py +102 -0
  105. metalstackcloud/status/v1/message_pb2.py +51 -0
  106. metalstackcloud/status/v1/message_pb2.pyi +65 -0
  107. metalstackcloud/status/v1/message_pb2_grpc.py +84 -0
  108. metalstackcloud/status/v1/status_connecpy.py +102 -0
  109. metalstackcloud/status/v1/status_pb2.py +45 -0
  110. metalstackcloud/status/v1/status_pb2.pyi +24 -0
  111. metalstackcloud/status/v1/status_pb2_grpc.py +84 -0
@@ -0,0 +1,102 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by https://github.com/i2y/connecpy/protoc-gen-connecpy. DO NOT EDIT!
3
+ # source: api/v1/asset.proto
4
+
5
+ from typing import Optional, Protocol, Union
6
+
7
+ import httpx
8
+
9
+ from connecpy.async_client import AsyncConnecpyClient
10
+ from connecpy.base import Endpoint
11
+ from connecpy.server import ConnecpyServer
12
+ from connecpy.client import ConnecpyClient
13
+ from connecpy.context import ClientContext, ServiceContext
14
+ import metalstackcloud.api.v1.asset_pb2 as api_dot_v1_dot_asset__pb2
15
+
16
+
17
+ class AssetService(Protocol):
18
+ async def List(self, req: api_dot_v1_dot_asset__pb2.AssetServiceListRequest, ctx: ServiceContext) -> api_dot_v1_dot_asset__pb2.AssetServiceListResponse: ...
19
+
20
+
21
+ class AssetServiceServer(ConnecpyServer):
22
+ def __init__(self, *, service: AssetService, server_path_prefix=""):
23
+ super().__init__()
24
+ self._prefix = f"{server_path_prefix}/api.v1.AssetService"
25
+ self._endpoints = {
26
+ "List": Endpoint[api_dot_v1_dot_asset__pb2.AssetServiceListRequest, api_dot_v1_dot_asset__pb2.AssetServiceListResponse](
27
+ service_name="AssetService",
28
+ name="List",
29
+ function=getattr(service, "List"),
30
+ input=api_dot_v1_dot_asset__pb2.AssetServiceListRequest,
31
+ output=api_dot_v1_dot_asset__pb2.AssetServiceListResponse,
32
+ allowed_methods=("POST",),
33
+ ),
34
+ }
35
+
36
+ def serviceName(self):
37
+ return "api.v1.AssetService"
38
+
39
+
40
+ class AssetServiceSync(Protocol):
41
+ def List(self, req: api_dot_v1_dot_asset__pb2.AssetServiceListRequest, ctx: ServiceContext) -> api_dot_v1_dot_asset__pb2.AssetServiceListResponse: ...
42
+
43
+
44
+ class AssetServiceServerSync(ConnecpyServer):
45
+ def __init__(self, *, service: AssetServiceSync, server_path_prefix=""):
46
+ super().__init__()
47
+ self._prefix = f"{server_path_prefix}/api.v1.AssetService"
48
+ self._endpoints = {
49
+ "List": Endpoint[api_dot_v1_dot_asset__pb2.AssetServiceListRequest, api_dot_v1_dot_asset__pb2.AssetServiceListResponse](
50
+ service_name="AssetService",
51
+ name="List",
52
+ function=getattr(service, "List"),
53
+ input=api_dot_v1_dot_asset__pb2.AssetServiceListRequest,
54
+ output=api_dot_v1_dot_asset__pb2.AssetServiceListResponse,
55
+ allowed_methods=("POST",),
56
+ ),
57
+ }
58
+
59
+ def serviceName(self):
60
+ return "api.v1.AssetService"
61
+
62
+
63
+ class AssetServiceClient(ConnecpyClient):
64
+ def List(
65
+ self,
66
+ request: api_dot_v1_dot_asset__pb2.AssetServiceListRequest,
67
+ *,
68
+ ctx: Optional[ClientContext] = None,
69
+ server_path_prefix: str = "",
70
+ **kwargs,
71
+ ) -> api_dot_v1_dot_asset__pb2.AssetServiceListResponse:
72
+ method = "POST"
73
+ return self._make_request(
74
+ url=f"{server_path_prefix}/api.v1.AssetService/List",
75
+ ctx=ctx,
76
+ request=request,
77
+ response_class=api_dot_v1_dot_asset__pb2.AssetServiceListResponse,
78
+ method=method,
79
+ **kwargs,
80
+ )
81
+
82
+
83
+ class AsyncAssetServiceClient(AsyncConnecpyClient):
84
+ async def List(
85
+ self,
86
+ request: api_dot_v1_dot_asset__pb2.AssetServiceListRequest,
87
+ *,
88
+ ctx: Optional[ClientContext] = None,
89
+ server_path_prefix: str = "",
90
+ session: Union[httpx.AsyncClient, None] = None,
91
+ **kwargs,
92
+ ) -> api_dot_v1_dot_asset__pb2.AssetServiceListResponse:
93
+ method = "POST"
94
+ return await self._make_request(
95
+ url=f"{server_path_prefix}/api.v1.AssetService/List",
96
+ ctx=ctx,
97
+ request=request,
98
+ response_class=api_dot_v1_dot_asset__pb2.AssetServiceListResponse,
99
+ method=method,
100
+ session=session,
101
+ **kwargs,
102
+ )
@@ -0,0 +1,76 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: api/v1/asset.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'api/v1/asset.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from metalstackcloud.api.v1 import common_pb2 as api_dot_v1_dot_common__pb2
26
+ from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
27
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
28
+
29
+
30
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12\x61pi/v1/asset.proto\x12\x06\x61pi.v1\x1a\x13\x61pi/v1/common.proto\x1a\x1b\x62uf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xff\x01\n\x05\x41sset\x12&\n\x06region\x18\x01 \x01(\x0b\x32\x0e.api.v1.RegionR\x06region\x12\x44\n\rmachine_types\x18\x02 \x03(\x0b\x32\x1f.api.v1.Asset.MachineTypesEntryR\x0cmachineTypes\x12\x32\n\nkubernetes\x18\x03 \x03(\x0b\x32\x12.api.v1.KubernetesR\nkubernetes\x1aT\n\x11MachineTypesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x13.api.v1.MachineTypeR\x05value:\x02\x38\x01\"\xc5\x02\n\x06Region\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x18\n\x07\x61\x64\x64ress\x18\x03 \x01(\tR\x07\x61\x64\x64ress\x12\x16\n\x06\x61\x63tive\x18\x04 \x01(\x08R\x06\x61\x63tive\x12>\n\npartitions\x18\x05 \x03(\x0b\x32\x1e.api.v1.Region.PartitionsEntryR\npartitions\x12\x31\n\x08\x64\x65\x66\x61ults\x18\x06 \x01(\x0b\x32\x15.api.v1.AssetDefaultsR\x08\x64\x65\x66\x61ults\x12 \n\x0b\x64\x65scription\x18\x07 \x01(\tR\x0b\x64\x65scription\x1aP\n\x0fPartitionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x11.api.v1.PartitionR\x05value:\x02\x38\x01\"\x83\x01\n\tPartition\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x18\n\x07\x61\x64\x64ress\x18\x03 \x01(\tR\x07\x61\x64\x64ress\x12\x16\n\x06\x61\x63tive\x18\x04 \x01(\x08R\x06\x61\x63tive\x12 \n\x0b\x64\x65scription\x18\x05 \x01(\tR\x0b\x64\x65scription\"\xd1\x01\n\x0bMachineType\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n\x04\x63pus\x18\x03 \x01(\rR\x04\x63pus\x12\x16\n\x06memory\x18\x04 \x01(\x04R\x06memory\x12\x18\n\x07storage\x18\x05 \x01(\x04R\x07storage\x12\'\n\x0f\x63pu_description\x18\x06 \x01(\tR\x0e\x63puDescription\x12/\n\x13storage_description\x18\x07 \x01(\tR\x12storageDescription\"b\n\nKubernetes\x12\x18\n\x07version\x18\x01 \x01(\tR\x07version\x12:\n\nexpiration\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nexpiration\"\xbd\x01\n\rAssetDefaults\x12!\n\x0cmachine_type\x18\x01 \x01(\tR\x0bmachineType\x12-\n\x12kubernetes_version\x18\x02 \x01(\tR\x11kubernetesVersion\x12\x1d\n\nworker_min\x18\x03 \x01(\rR\tworkerMin\x12\x1d\n\nworker_max\x18\x04 \x01(\rR\tworkerMax\x12\x1c\n\tpartition\x18\x07 \x01(\tR\tpartition\"\x19\n\x17\x41ssetServiceListRequest\"x\n\x18\x41ssetServiceListResponse\x12%\n\x06\x61ssets\x18\x02 \x03(\x0b\x32\r.api.v1.AssetR\x06\x61ssets\x12\x35\n\x0b\x65nvironment\x18\x03 \x01(\x0b\x32\x13.api.v1.EnvironmentR\x0b\x65nvironment\"\xe5\x02\n\x0b\x45nvironment\x12.\n\x0b\x63onsole_url\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\x88\x01\x01H\x00R\nconsoleUrl\x88\x01\x01\x12\x35\n\x0f\x61\x66ter_login_url\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\x88\x01\x01H\x01R\rafterLoginUrl\x88\x01\x01\x12N\n\x13stripe_public_token\x18\x03 \x01(\tB\x19\xbaH\x16r\x14\x10\x03\x32\x10pk_[a-zA-Z0-9]*$H\x02R\x11stripePublicToken\x88\x01\x01\x12\x46\n\x18terms_and_conditions_url\x18\x04 \x01(\tB\x08\xbaH\x05r\x03\x88\x01\x01H\x03R\x15termsAndConditionsUrl\x88\x01\x01\x42\x0e\n\x0c_console_urlB\x12\n\x10_after_login_urlB\x16\n\x14_stripe_public_tokenB\x1b\n\x19_terms_and_conditions_url2c\n\x0c\x41ssetService\x12S\n\x04List\x12\x1f.api.v1.AssetServiceListRequest\x1a .api.v1.AssetServiceListResponse\"\x08\xd8\xf3\x18\x01\xe8\xf3\x18\x02\x42\x83\x01\n\ncom.api.v1B\nAssetProtoP\x01Z0github.com/metal-stack-cloud/api/go/api/v1;apiv1\xa2\x02\x03\x41XX\xaa\x02\x06\x41pi.V1\xca\x02\x06\x41pi\\V1\xe2\x02\x12\x41pi\\V1\\GPBMetadata\xea\x02\x07\x41pi::V1b\x06proto3')
31
+
32
+ _globals = globals()
33
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
34
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'api.v1.asset_pb2', _globals)
35
+ if not _descriptor._USE_C_DESCRIPTORS:
36
+ _globals['DESCRIPTOR']._loaded_options = None
37
+ _globals['DESCRIPTOR']._serialized_options = b'\n\ncom.api.v1B\nAssetProtoP\001Z0github.com/metal-stack-cloud/api/go/api/v1;apiv1\242\002\003AXX\252\002\006Api.V1\312\002\006Api\\V1\342\002\022Api\\V1\\GPBMetadata\352\002\007Api::V1'
38
+ _globals['_ASSET_MACHINETYPESENTRY']._loaded_options = None
39
+ _globals['_ASSET_MACHINETYPESENTRY']._serialized_options = b'8\001'
40
+ _globals['_REGION_PARTITIONSENTRY']._loaded_options = None
41
+ _globals['_REGION_PARTITIONSENTRY']._serialized_options = b'8\001'
42
+ _globals['_ENVIRONMENT'].fields_by_name['console_url']._loaded_options = None
43
+ _globals['_ENVIRONMENT'].fields_by_name['console_url']._serialized_options = b'\272H\005r\003\210\001\001'
44
+ _globals['_ENVIRONMENT'].fields_by_name['after_login_url']._loaded_options = None
45
+ _globals['_ENVIRONMENT'].fields_by_name['after_login_url']._serialized_options = b'\272H\005r\003\210\001\001'
46
+ _globals['_ENVIRONMENT'].fields_by_name['stripe_public_token']._loaded_options = None
47
+ _globals['_ENVIRONMENT'].fields_by_name['stripe_public_token']._serialized_options = b'\272H\026r\024\020\0032\020pk_[a-zA-Z0-9]*$'
48
+ _globals['_ENVIRONMENT'].fields_by_name['terms_and_conditions_url']._loaded_options = None
49
+ _globals['_ENVIRONMENT'].fields_by_name['terms_and_conditions_url']._serialized_options = b'\272H\005r\003\210\001\001'
50
+ _globals['_ASSETSERVICE'].methods_by_name['List']._loaded_options = None
51
+ _globals['_ASSETSERVICE'].methods_by_name['List']._serialized_options = b'\330\363\030\001\350\363\030\002'
52
+ _globals['_ASSET']._serialized_start=114
53
+ _globals['_ASSET']._serialized_end=369
54
+ _globals['_ASSET_MACHINETYPESENTRY']._serialized_start=285
55
+ _globals['_ASSET_MACHINETYPESENTRY']._serialized_end=369
56
+ _globals['_REGION']._serialized_start=372
57
+ _globals['_REGION']._serialized_end=697
58
+ _globals['_REGION_PARTITIONSENTRY']._serialized_start=617
59
+ _globals['_REGION_PARTITIONSENTRY']._serialized_end=697
60
+ _globals['_PARTITION']._serialized_start=700
61
+ _globals['_PARTITION']._serialized_end=831
62
+ _globals['_MACHINETYPE']._serialized_start=834
63
+ _globals['_MACHINETYPE']._serialized_end=1043
64
+ _globals['_KUBERNETES']._serialized_start=1045
65
+ _globals['_KUBERNETES']._serialized_end=1143
66
+ _globals['_ASSETDEFAULTS']._serialized_start=1146
67
+ _globals['_ASSETDEFAULTS']._serialized_end=1335
68
+ _globals['_ASSETSERVICELISTREQUEST']._serialized_start=1337
69
+ _globals['_ASSETSERVICELISTREQUEST']._serialized_end=1362
70
+ _globals['_ASSETSERVICELISTRESPONSE']._serialized_start=1364
71
+ _globals['_ASSETSERVICELISTRESPONSE']._serialized_end=1484
72
+ _globals['_ENVIRONMENT']._serialized_start=1487
73
+ _globals['_ENVIRONMENT']._serialized_end=1844
74
+ _globals['_ASSETSERVICE']._serialized_start=1846
75
+ _globals['_ASSETSERVICE']._serialized_end=1945
76
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,132 @@
1
+ import datetime
2
+
3
+ from api.v1 import common_pb2 as _common_pb2
4
+ from buf.validate import validate_pb2 as _validate_pb2
5
+ from google.protobuf import timestamp_pb2 as _timestamp_pb2
6
+ from google.protobuf.internal import containers as _containers
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import message as _message
9
+ from collections.abc import Iterable as _Iterable, Mapping as _Mapping
10
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
11
+
12
+ DESCRIPTOR: _descriptor.FileDescriptor
13
+
14
+ class Asset(_message.Message):
15
+ __slots__ = ("region", "machine_types", "kubernetes")
16
+ class MachineTypesEntry(_message.Message):
17
+ __slots__ = ("key", "value")
18
+ KEY_FIELD_NUMBER: _ClassVar[int]
19
+ VALUE_FIELD_NUMBER: _ClassVar[int]
20
+ key: str
21
+ value: MachineType
22
+ def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[MachineType, _Mapping]] = ...) -> None: ...
23
+ REGION_FIELD_NUMBER: _ClassVar[int]
24
+ MACHINE_TYPES_FIELD_NUMBER: _ClassVar[int]
25
+ KUBERNETES_FIELD_NUMBER: _ClassVar[int]
26
+ region: Region
27
+ machine_types: _containers.MessageMap[str, MachineType]
28
+ kubernetes: _containers.RepeatedCompositeFieldContainer[Kubernetes]
29
+ def __init__(self, region: _Optional[_Union[Region, _Mapping]] = ..., machine_types: _Optional[_Mapping[str, MachineType]] = ..., kubernetes: _Optional[_Iterable[_Union[Kubernetes, _Mapping]]] = ...) -> None: ...
30
+
31
+ class Region(_message.Message):
32
+ __slots__ = ("id", "name", "address", "active", "partitions", "defaults", "description")
33
+ class PartitionsEntry(_message.Message):
34
+ __slots__ = ("key", "value")
35
+ KEY_FIELD_NUMBER: _ClassVar[int]
36
+ VALUE_FIELD_NUMBER: _ClassVar[int]
37
+ key: str
38
+ value: Partition
39
+ def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Partition, _Mapping]] = ...) -> None: ...
40
+ ID_FIELD_NUMBER: _ClassVar[int]
41
+ NAME_FIELD_NUMBER: _ClassVar[int]
42
+ ADDRESS_FIELD_NUMBER: _ClassVar[int]
43
+ ACTIVE_FIELD_NUMBER: _ClassVar[int]
44
+ PARTITIONS_FIELD_NUMBER: _ClassVar[int]
45
+ DEFAULTS_FIELD_NUMBER: _ClassVar[int]
46
+ DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
47
+ id: str
48
+ name: str
49
+ address: str
50
+ active: bool
51
+ partitions: _containers.MessageMap[str, Partition]
52
+ defaults: AssetDefaults
53
+ description: str
54
+ def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., address: _Optional[str] = ..., active: bool = ..., partitions: _Optional[_Mapping[str, Partition]] = ..., defaults: _Optional[_Union[AssetDefaults, _Mapping]] = ..., description: _Optional[str] = ...) -> None: ...
55
+
56
+ class Partition(_message.Message):
57
+ __slots__ = ("id", "name", "address", "active", "description")
58
+ ID_FIELD_NUMBER: _ClassVar[int]
59
+ NAME_FIELD_NUMBER: _ClassVar[int]
60
+ ADDRESS_FIELD_NUMBER: _ClassVar[int]
61
+ ACTIVE_FIELD_NUMBER: _ClassVar[int]
62
+ DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
63
+ id: str
64
+ name: str
65
+ address: str
66
+ active: bool
67
+ description: str
68
+ def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., address: _Optional[str] = ..., active: bool = ..., description: _Optional[str] = ...) -> None: ...
69
+
70
+ class MachineType(_message.Message):
71
+ __slots__ = ("id", "name", "cpus", "memory", "storage", "cpu_description", "storage_description")
72
+ ID_FIELD_NUMBER: _ClassVar[int]
73
+ NAME_FIELD_NUMBER: _ClassVar[int]
74
+ CPUS_FIELD_NUMBER: _ClassVar[int]
75
+ MEMORY_FIELD_NUMBER: _ClassVar[int]
76
+ STORAGE_FIELD_NUMBER: _ClassVar[int]
77
+ CPU_DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
78
+ STORAGE_DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
79
+ id: str
80
+ name: str
81
+ cpus: int
82
+ memory: int
83
+ storage: int
84
+ cpu_description: str
85
+ storage_description: str
86
+ def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., cpus: _Optional[int] = ..., memory: _Optional[int] = ..., storage: _Optional[int] = ..., cpu_description: _Optional[str] = ..., storage_description: _Optional[str] = ...) -> None: ...
87
+
88
+ class Kubernetes(_message.Message):
89
+ __slots__ = ("version", "expiration")
90
+ VERSION_FIELD_NUMBER: _ClassVar[int]
91
+ EXPIRATION_FIELD_NUMBER: _ClassVar[int]
92
+ version: str
93
+ expiration: _timestamp_pb2.Timestamp
94
+ def __init__(self, version: _Optional[str] = ..., expiration: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
95
+
96
+ class AssetDefaults(_message.Message):
97
+ __slots__ = ("machine_type", "kubernetes_version", "worker_min", "worker_max", "partition")
98
+ MACHINE_TYPE_FIELD_NUMBER: _ClassVar[int]
99
+ KUBERNETES_VERSION_FIELD_NUMBER: _ClassVar[int]
100
+ WORKER_MIN_FIELD_NUMBER: _ClassVar[int]
101
+ WORKER_MAX_FIELD_NUMBER: _ClassVar[int]
102
+ PARTITION_FIELD_NUMBER: _ClassVar[int]
103
+ machine_type: str
104
+ kubernetes_version: str
105
+ worker_min: int
106
+ worker_max: int
107
+ partition: str
108
+ def __init__(self, machine_type: _Optional[str] = ..., kubernetes_version: _Optional[str] = ..., worker_min: _Optional[int] = ..., worker_max: _Optional[int] = ..., partition: _Optional[str] = ...) -> None: ...
109
+
110
+ class AssetServiceListRequest(_message.Message):
111
+ __slots__ = ()
112
+ def __init__(self) -> None: ...
113
+
114
+ class AssetServiceListResponse(_message.Message):
115
+ __slots__ = ("assets", "environment")
116
+ ASSETS_FIELD_NUMBER: _ClassVar[int]
117
+ ENVIRONMENT_FIELD_NUMBER: _ClassVar[int]
118
+ assets: _containers.RepeatedCompositeFieldContainer[Asset]
119
+ environment: Environment
120
+ def __init__(self, assets: _Optional[_Iterable[_Union[Asset, _Mapping]]] = ..., environment: _Optional[_Union[Environment, _Mapping]] = ...) -> None: ...
121
+
122
+ class Environment(_message.Message):
123
+ __slots__ = ("console_url", "after_login_url", "stripe_public_token", "terms_and_conditions_url")
124
+ CONSOLE_URL_FIELD_NUMBER: _ClassVar[int]
125
+ AFTER_LOGIN_URL_FIELD_NUMBER: _ClassVar[int]
126
+ STRIPE_PUBLIC_TOKEN_FIELD_NUMBER: _ClassVar[int]
127
+ TERMS_AND_CONDITIONS_URL_FIELD_NUMBER: _ClassVar[int]
128
+ console_url: str
129
+ after_login_url: str
130
+ stripe_public_token: str
131
+ terms_and_conditions_url: str
132
+ def __init__(self, console_url: _Optional[str] = ..., after_login_url: _Optional[str] = ..., stripe_public_token: _Optional[str] = ..., terms_and_conditions_url: _Optional[str] = ...) -> None: ...
@@ -0,0 +1,81 @@
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 metalstackcloud.api.v1 import asset_pb2 as api_dot_v1_dot_asset__pb2
6
+
7
+
8
+ class AssetServiceStub(object):
9
+ """AssetService serves asset 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
+ '/api.v1.AssetService/List',
20
+ request_serializer=api_dot_v1_dot_asset__pb2.AssetServiceListRequest.SerializeToString,
21
+ response_deserializer=api_dot_v1_dot_asset__pb2.AssetServiceListResponse.FromString,
22
+ _registered_method=True)
23
+
24
+
25
+ class AssetServiceServicer(object):
26
+ """AssetService serves asset related functions
27
+ """
28
+
29
+ def List(self, request, context):
30
+ """List available assets
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_AssetServiceServicer_to_server(servicer, server):
38
+ rpc_method_handlers = {
39
+ 'List': grpc.unary_unary_rpc_method_handler(
40
+ servicer.List,
41
+ request_deserializer=api_dot_v1_dot_asset__pb2.AssetServiceListRequest.FromString,
42
+ response_serializer=api_dot_v1_dot_asset__pb2.AssetServiceListResponse.SerializeToString,
43
+ ),
44
+ }
45
+ generic_handler = grpc.method_handlers_generic_handler(
46
+ 'api.v1.AssetService', rpc_method_handlers)
47
+ server.add_generic_rpc_handlers((generic_handler,))
48
+ server.add_registered_method_handlers('api.v1.AssetService', rpc_method_handlers)
49
+
50
+
51
+ # This class is part of an EXPERIMENTAL API.
52
+ class AssetService(object):
53
+ """AssetService serves asset related functions
54
+ """
55
+
56
+ @staticmethod
57
+ def List(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
+ '/api.v1.AssetService/List',
71
+ api_dot_v1_dot_asset__pb2.AssetServiceListRequest.SerializeToString,
72
+ api_dot_v1_dot_asset__pb2.AssetServiceListResponse.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)
@@ -0,0 +1,158 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by https://github.com/i2y/connecpy/protoc-gen-connecpy. DO NOT EDIT!
3
+ # source: api/v1/audit.proto
4
+
5
+ from typing import Optional, Protocol, Union
6
+
7
+ import httpx
8
+
9
+ from connecpy.async_client import AsyncConnecpyClient
10
+ from connecpy.base import Endpoint
11
+ from connecpy.server import ConnecpyServer
12
+ from connecpy.client import ConnecpyClient
13
+ from connecpy.context import ClientContext, ServiceContext
14
+ import metalstackcloud.api.v1.audit_pb2 as api_dot_v1_dot_audit__pb2
15
+
16
+
17
+ class AuditService(Protocol):
18
+ async def Get(self, req: api_dot_v1_dot_audit__pb2.AuditServiceGetRequest, ctx: ServiceContext) -> api_dot_v1_dot_audit__pb2.AuditServiceGetResponse: ...
19
+ async def List(self, req: api_dot_v1_dot_audit__pb2.AuditServiceListRequest, ctx: ServiceContext) -> api_dot_v1_dot_audit__pb2.AuditServiceListResponse: ...
20
+
21
+
22
+ class AuditServiceServer(ConnecpyServer):
23
+ def __init__(self, *, service: AuditService, server_path_prefix=""):
24
+ super().__init__()
25
+ self._prefix = f"{server_path_prefix}/api.v1.AuditService"
26
+ self._endpoints = {
27
+ "Get": Endpoint[api_dot_v1_dot_audit__pb2.AuditServiceGetRequest, api_dot_v1_dot_audit__pb2.AuditServiceGetResponse](
28
+ service_name="AuditService",
29
+ name="Get",
30
+ function=getattr(service, "Get"),
31
+ input=api_dot_v1_dot_audit__pb2.AuditServiceGetRequest,
32
+ output=api_dot_v1_dot_audit__pb2.AuditServiceGetResponse,
33
+ allowed_methods=("POST",),
34
+ ),
35
+ "List": Endpoint[api_dot_v1_dot_audit__pb2.AuditServiceListRequest, api_dot_v1_dot_audit__pb2.AuditServiceListResponse](
36
+ service_name="AuditService",
37
+ name="List",
38
+ function=getattr(service, "List"),
39
+ input=api_dot_v1_dot_audit__pb2.AuditServiceListRequest,
40
+ output=api_dot_v1_dot_audit__pb2.AuditServiceListResponse,
41
+ allowed_methods=("POST",),
42
+ ),
43
+ }
44
+
45
+ def serviceName(self):
46
+ return "api.v1.AuditService"
47
+
48
+
49
+ class AuditServiceSync(Protocol):
50
+ def Get(self, req: api_dot_v1_dot_audit__pb2.AuditServiceGetRequest, ctx: ServiceContext) -> api_dot_v1_dot_audit__pb2.AuditServiceGetResponse: ...
51
+ def List(self, req: api_dot_v1_dot_audit__pb2.AuditServiceListRequest, ctx: ServiceContext) -> api_dot_v1_dot_audit__pb2.AuditServiceListResponse: ...
52
+
53
+
54
+ class AuditServiceServerSync(ConnecpyServer):
55
+ def __init__(self, *, service: AuditServiceSync, server_path_prefix=""):
56
+ super().__init__()
57
+ self._prefix = f"{server_path_prefix}/api.v1.AuditService"
58
+ self._endpoints = {
59
+ "Get": Endpoint[api_dot_v1_dot_audit__pb2.AuditServiceGetRequest, api_dot_v1_dot_audit__pb2.AuditServiceGetResponse](
60
+ service_name="AuditService",
61
+ name="Get",
62
+ function=getattr(service, "Get"),
63
+ input=api_dot_v1_dot_audit__pb2.AuditServiceGetRequest,
64
+ output=api_dot_v1_dot_audit__pb2.AuditServiceGetResponse,
65
+ allowed_methods=("POST",),
66
+ ),
67
+ "List": Endpoint[api_dot_v1_dot_audit__pb2.AuditServiceListRequest, api_dot_v1_dot_audit__pb2.AuditServiceListResponse](
68
+ service_name="AuditService",
69
+ name="List",
70
+ function=getattr(service, "List"),
71
+ input=api_dot_v1_dot_audit__pb2.AuditServiceListRequest,
72
+ output=api_dot_v1_dot_audit__pb2.AuditServiceListResponse,
73
+ allowed_methods=("POST",),
74
+ ),
75
+ }
76
+
77
+ def serviceName(self):
78
+ return "api.v1.AuditService"
79
+
80
+
81
+ class AuditServiceClient(ConnecpyClient):
82
+ def Get(
83
+ self,
84
+ request: api_dot_v1_dot_audit__pb2.AuditServiceGetRequest,
85
+ *,
86
+ ctx: Optional[ClientContext] = None,
87
+ server_path_prefix: str = "",
88
+ **kwargs,
89
+ ) -> api_dot_v1_dot_audit__pb2.AuditServiceGetResponse:
90
+ method = "POST"
91
+ return self._make_request(
92
+ url=f"{server_path_prefix}/api.v1.AuditService/Get",
93
+ ctx=ctx,
94
+ request=request,
95
+ response_class=api_dot_v1_dot_audit__pb2.AuditServiceGetResponse,
96
+ method=method,
97
+ **kwargs,
98
+ )
99
+
100
+ def List(
101
+ self,
102
+ request: api_dot_v1_dot_audit__pb2.AuditServiceListRequest,
103
+ *,
104
+ ctx: Optional[ClientContext] = None,
105
+ server_path_prefix: str = "",
106
+ **kwargs,
107
+ ) -> api_dot_v1_dot_audit__pb2.AuditServiceListResponse:
108
+ method = "POST"
109
+ return self._make_request(
110
+ url=f"{server_path_prefix}/api.v1.AuditService/List",
111
+ ctx=ctx,
112
+ request=request,
113
+ response_class=api_dot_v1_dot_audit__pb2.AuditServiceListResponse,
114
+ method=method,
115
+ **kwargs,
116
+ )
117
+
118
+
119
+ class AsyncAuditServiceClient(AsyncConnecpyClient):
120
+ async def Get(
121
+ self,
122
+ request: api_dot_v1_dot_audit__pb2.AuditServiceGetRequest,
123
+ *,
124
+ ctx: Optional[ClientContext] = None,
125
+ server_path_prefix: str = "",
126
+ session: Union[httpx.AsyncClient, None] = None,
127
+ **kwargs,
128
+ ) -> api_dot_v1_dot_audit__pb2.AuditServiceGetResponse:
129
+ method = "POST"
130
+ return await self._make_request(
131
+ url=f"{server_path_prefix}/api.v1.AuditService/Get",
132
+ ctx=ctx,
133
+ request=request,
134
+ response_class=api_dot_v1_dot_audit__pb2.AuditServiceGetResponse,
135
+ method=method,
136
+ session=session,
137
+ **kwargs,
138
+ )
139
+
140
+ async def List(
141
+ self,
142
+ request: api_dot_v1_dot_audit__pb2.AuditServiceListRequest,
143
+ *,
144
+ ctx: Optional[ClientContext] = None,
145
+ server_path_prefix: str = "",
146
+ session: Union[httpx.AsyncClient, None] = None,
147
+ **kwargs,
148
+ ) -> api_dot_v1_dot_audit__pb2.AuditServiceListResponse:
149
+ method = "POST"
150
+ return await self._make_request(
151
+ url=f"{server_path_prefix}/api.v1.AuditService/List",
152
+ ctx=ctx,
153
+ request=request,
154
+ response_class=api_dot_v1_dot_audit__pb2.AuditServiceListResponse,
155
+ method=method,
156
+ session=session,
157
+ **kwargs,
158
+ )
@@ -0,0 +1,84 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: api/v1/audit.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'api/v1/audit.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from metalstackcloud.api.v1 import common_pb2 as api_dot_v1_dot_common__pb2
26
+ from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
27
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
28
+
29
+
30
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12\x61pi/v1/audit.proto\x12\x06\x61pi.v1\x1a\x13\x61pi/v1/common.proto\x1a\x1b\x62uf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf2\x02\n\nAuditTrace\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x38\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ttimestamp\x12\x12\n\x04user\x18\x03 \x01(\tR\x04user\x12\x16\n\x06tenant\x18\x04 \x01(\tR\x06tenant\x12\x1d\n\x07project\x18\x05 \x01(\tH\x00R\x07project\x88\x01\x01\x12\x16\n\x06method\x18\x06 \x01(\tR\x06method\x12\x17\n\x04\x62ody\x18\x07 \x01(\tH\x01R\x04\x62ody\x88\x01\x01\x12\x1b\n\tsource_ip\x18\x08 \x01(\tR\x08sourceIp\x12$\n\x0bresult_code\x18\t \x01(\x05H\x02R\nresultCode\x88\x01\x01\x12(\n\x05phase\x18\n \x01(\x0e\x32\x12.api.v1.AuditPhaseR\x05phaseB\n\n\x08_projectB\x07\n\x05_bodyB\x0e\n\x0c_result_code\"\x8e\x05\n\x17\x41uditServiceListRequest\x12 \n\x05login\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x05login\x12!\n\x04uuid\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01H\x00R\x04uuid\x88\x01\x01\x12\x33\n\x04\x66rom\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01R\x04\x66rom\x88\x01\x01\x12/\n\x02to\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x02R\x02to\x88\x01\x01\x12#\n\x04user\x18\x05 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x03R\x04user\x88\x01\x01\x12\'\n\x07project\x18\x06 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01H\x04R\x07project\x88\x01\x01\x12\'\n\x06method\x18\x07 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x02H\x05R\x06method\x88\x01\x01\x12)\n\tsource_ip\x18\x08 \x01(\tB\x07\xbaH\x04r\x02p\x01H\x06R\x08sourceIp\x88\x01\x01\x12-\n\x0bresult_code\x18\t \x01(\x05\x42\x07\xbaH\x04\x1a\x02(\x00H\x07R\nresultCode\x88\x01\x01\x12#\n\x04\x62ody\x18\n \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x02H\x08R\x04\x62ody\x88\x01\x01\x12%\n\x05limit\x18\x0b \x01(\x05\x42\n\xbaH\x07\x1a\x05\x18\xe8\x07 \x00H\tR\x05limit\x88\x01\x01\x12\x37\n\x05phase\x18\x0c \x01(\x0e\x32\x12.api.v1.AuditPhaseB\x08\xbaH\x05\x82\x01\x02\x10\x01H\nR\x05phase\x88\x01\x01\x42\x07\n\x05_uuidB\x07\n\x05_fromB\x05\n\x03_toB\x07\n\x05_userB\n\n\x08_projectB\t\n\x07_methodB\x0c\n\n_source_ipB\x0e\n\x0c_result_codeB\x07\n\x05_bodyB\x08\n\x06_limitB\x08\n\x06_phase\"F\n\x18\x41uditServiceListResponse\x12*\n\x06traces\x18\x01 \x03(\x0b\x32\x12.api.v1.AuditTraceR\x06traces\"\x9b\x01\n\x16\x41uditServiceGetRequest\x12 \n\x05login\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x05login\x12\x1c\n\x04uuid\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x37\n\x05phase\x18\x03 \x01(\x0e\x32\x12.api.v1.AuditPhaseB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x00R\x05phase\x88\x01\x01\x42\x08\n\x06_phase\"C\n\x17\x41uditServiceGetResponse\x12(\n\x05trace\x18\x01 \x01(\x0b\x32\x12.api.v1.AuditTraceR\x05trace*\\\n\nAuditPhase\x12\x1b\n\x17\x41UDIT_PHASE_UNSPECIFIED\x10\x00\x12\x17\n\x13\x41UDIT_PHASE_REQUEST\x10\x01\x12\x18\n\x14\x41UDIT_PHASE_RESPONSE\x10\x02\x32\xb7\x01\n\x0c\x41uditService\x12Q\n\x03Get\x12\x1e.api.v1.AuditServiceGetRequest\x1a\x1f.api.v1.AuditServiceGetResponse\"\t\xc2\xf3\x18\x01\x01\xe8\xf3\x18\x02\x12T\n\x04List\x12\x1f.api.v1.AuditServiceListRequest\x1a .api.v1.AuditServiceListResponse\"\t\xc2\xf3\x18\x01\x01\xe8\xf3\x18\x02\x42\x83\x01\n\ncom.api.v1B\nAuditProtoP\x01Z0github.com/metal-stack-cloud/api/go/api/v1;apiv1\xa2\x02\x03\x41XX\xaa\x02\x06\x41pi.V1\xca\x02\x06\x41pi\\V1\xe2\x02\x12\x41pi\\V1\\GPBMetadata\xea\x02\x07\x41pi::V1b\x06proto3')
31
+
32
+ _globals = globals()
33
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
34
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'api.v1.audit_pb2', _globals)
35
+ if not _descriptor._USE_C_DESCRIPTORS:
36
+ _globals['DESCRIPTOR']._loaded_options = None
37
+ _globals['DESCRIPTOR']._serialized_options = b'\n\ncom.api.v1B\nAuditProtoP\001Z0github.com/metal-stack-cloud/api/go/api/v1;apiv1\242\002\003AXX\252\002\006Api.V1\312\002\006Api\\V1\342\002\022Api\\V1\\GPBMetadata\352\002\007Api::V1'
38
+ _globals['_AUDITTRACE'].fields_by_name['uuid']._loaded_options = None
39
+ _globals['_AUDITTRACE'].fields_by_name['uuid']._serialized_options = b'\272H\005r\003\260\001\001'
40
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['login']._loaded_options = None
41
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['login']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
42
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['uuid']._loaded_options = None
43
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['uuid']._serialized_options = b'\272H\005r\003\260\001\001'
44
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['user']._loaded_options = None
45
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['user']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
46
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['project']._loaded_options = None
47
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['project']._serialized_options = b'\272H\005r\003\260\001\001'
48
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['method']._loaded_options = None
49
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['method']._serialized_options = b'\272H\007r\005\020\002\030\200\002'
50
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['source_ip']._loaded_options = None
51
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['source_ip']._serialized_options = b'\272H\004r\002p\001'
52
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['result_code']._loaded_options = None
53
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['result_code']._serialized_options = b'\272H\004\032\002(\000'
54
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['body']._loaded_options = None
55
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['body']._serialized_options = b'\272H\007r\005\020\002\030\200\002'
56
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['limit']._loaded_options = None
57
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['limit']._serialized_options = b'\272H\007\032\005\030\350\007 \000'
58
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['phase']._loaded_options = None
59
+ _globals['_AUDITSERVICELISTREQUEST'].fields_by_name['phase']._serialized_options = b'\272H\005\202\001\002\020\001'
60
+ _globals['_AUDITSERVICEGETREQUEST'].fields_by_name['login']._loaded_options = None
61
+ _globals['_AUDITSERVICEGETREQUEST'].fields_by_name['login']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
62
+ _globals['_AUDITSERVICEGETREQUEST'].fields_by_name['uuid']._loaded_options = None
63
+ _globals['_AUDITSERVICEGETREQUEST'].fields_by_name['uuid']._serialized_options = b'\272H\005r\003\260\001\001'
64
+ _globals['_AUDITSERVICEGETREQUEST'].fields_by_name['phase']._loaded_options = None
65
+ _globals['_AUDITSERVICEGETREQUEST'].fields_by_name['phase']._serialized_options = b'\272H\005\202\001\002\020\001'
66
+ _globals['_AUDITSERVICE'].methods_by_name['Get']._loaded_options = None
67
+ _globals['_AUDITSERVICE'].methods_by_name['Get']._serialized_options = b'\302\363\030\001\001\350\363\030\002'
68
+ _globals['_AUDITSERVICE'].methods_by_name['List']._loaded_options = None
69
+ _globals['_AUDITSERVICE'].methods_by_name['List']._serialized_options = b'\302\363\030\001\001\350\363\030\002'
70
+ _globals['_AUDITPHASE']._serialized_start=1442
71
+ _globals['_AUDITPHASE']._serialized_end=1534
72
+ _globals['_AUDITTRACE']._serialized_start=114
73
+ _globals['_AUDITTRACE']._serialized_end=484
74
+ _globals['_AUDITSERVICELISTREQUEST']._serialized_start=487
75
+ _globals['_AUDITSERVICELISTREQUEST']._serialized_end=1141
76
+ _globals['_AUDITSERVICELISTRESPONSE']._serialized_start=1143
77
+ _globals['_AUDITSERVICELISTRESPONSE']._serialized_end=1213
78
+ _globals['_AUDITSERVICEGETREQUEST']._serialized_start=1216
79
+ _globals['_AUDITSERVICEGETREQUEST']._serialized_end=1371
80
+ _globals['_AUDITSERVICEGETRESPONSE']._serialized_start=1373
81
+ _globals['_AUDITSERVICEGETRESPONSE']._serialized_end=1440
82
+ _globals['_AUDITSERVICE']._serialized_start=1537
83
+ _globals['_AUDITSERVICE']._serialized_end=1720
84
+ # @@protoc_insertion_point(module_scope)