raystack-proton 2025.10.8.102837__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.
Potentially problematic release.
This version of raystack-proton might be problematic. Click here for more details.
- google/__init__.py +0 -0
- google/api/__init__.py +0 -0
- google/api/annotations_pb2.py +37 -0
- google/api/annotations_pb2.pyi +8 -0
- google/api/field_behavior_pb2.py +38 -0
- google/api/field_behavior_pb2.pyi +27 -0
- google/api/http_pb2.py +41 -0
- google/api/http_pb2.pyi +47 -0
- google/api/httpbody_pb2.py +38 -0
- google/api/httpbody_pb2.pyi +18 -0
- protoc_gen_openapiv2/__init__.py +0 -0
- protoc_gen_openapiv2/options/__init__.py +0 -0
- protoc_gen_openapiv2/options/annotations_pb2.py +37 -0
- protoc_gen_openapiv2/options/annotations_pb2.pyi +16 -0
- protoc_gen_openapiv2/options/openapiv2_pb2.py +142 -0
- protoc_gen_openapiv2/options/openapiv2_pb2.pyi +463 -0
- raystack/__init__.py +0 -0
- raystack/assets/__init__.py +0 -0
- raystack/assets/v1beta1/__init__.py +0 -0
- raystack/assets/v1beta1/bucket_pb2.py +45 -0
- raystack/assets/v1beta1/bucket_pb2.pyi +59 -0
- raystack/assets/v1beta1/dashboard_pb2.py +45 -0
- raystack/assets/v1beta1/dashboard_pb2.pyi +65 -0
- raystack/assets/v1beta1/event_pb2.py +38 -0
- raystack/assets/v1beta1/event_pb2.pyi +19 -0
- raystack/assets/v1beta1/group_pb2.py +43 -0
- raystack/assets/v1beta1/group_pb2.pyi +35 -0
- raystack/assets/v1beta1/job_pb2.py +43 -0
- raystack/assets/v1beta1/job_pb2.pyi +28 -0
- raystack/assets/v1beta1/lineage_pb2.py +38 -0
- raystack/assets/v1beta1/lineage_pb2.pyi +16 -0
- raystack/assets/v1beta1/ownership_pb2.py +39 -0
- raystack/assets/v1beta1/ownership_pb2.pyi +25 -0
- raystack/assets/v1beta1/preview_pb2.py +38 -0
- raystack/assets/v1beta1/preview_pb2.pyi +16 -0
- raystack/assets/v1beta1/properties_pb2.py +42 -0
- raystack/assets/v1beta1/properties_pb2.pyi +25 -0
- raystack/assets/v1beta1/resource_pb2.py +37 -0
- raystack/assets/v1beta1/resource_pb2.pyi +21 -0
- raystack/assets/v1beta1/schema_pb2.py +44 -0
- raystack/assets/v1beta1/schema_pb2.pyi +58 -0
- raystack/assets/v1beta1/table_pb2.py +49 -0
- raystack/assets/v1beta1/table_pb2.pyi +63 -0
- raystack/assets/v1beta1/timestamp_pb2.py +40 -0
- raystack/assets/v1beta1/timestamp_pb2.pyi +25 -0
- raystack/assets/v1beta1/topic_pb2.py +46 -0
- raystack/assets/v1beta1/topic_pb2.pyi +41 -0
- raystack/assets/v1beta1/user_pb2.py +45 -0
- raystack/assets/v1beta1/user_pb2.pyi +63 -0
- raystack/assets/v1beta2/__init__.py +0 -0
- raystack/assets/v1beta2/application_pb2.py +39 -0
- raystack/assets/v1beta2/application_pb2.pyi +24 -0
- raystack/assets/v1beta2/asset_pb2.py +44 -0
- raystack/assets/v1beta2/asset_pb2.pyi +49 -0
- raystack/assets/v1beta2/bucket_pb2.py +42 -0
- raystack/assets/v1beta2/bucket_pb2.pyi +54 -0
- raystack/assets/v1beta2/common_pb2.py +44 -0
- raystack/assets/v1beta2/common_pb2.pyi +52 -0
- raystack/assets/v1beta2/dashboard_pb2.py +42 -0
- raystack/assets/v1beta2/dashboard_pb2.pyi +60 -0
- raystack/assets/v1beta2/experiment_pb2.py +41 -0
- raystack/assets/v1beta2/experiment_pb2.pyi +40 -0
- raystack/assets/v1beta2/feature_table_pb2.py +47 -0
- raystack/assets/v1beta2/feature_table_pb2.pyi +59 -0
- raystack/assets/v1beta2/group_pb2.py +40 -0
- raystack/assets/v1beta2/group_pb2.pyi +26 -0
- raystack/assets/v1beta2/job_pb2.py +39 -0
- raystack/assets/v1beta2/job_pb2.pyi +20 -0
- raystack/assets/v1beta2/metric_pb2.py +39 -0
- raystack/assets/v1beta2/metric_pb2.pyi +28 -0
- raystack/assets/v1beta2/model_pb2.py +49 -0
- raystack/assets/v1beta2/model_pb2.pyi +73 -0
- raystack/assets/v1beta2/table_pb2.py +47 -0
- raystack/assets/v1beta2/table_pb2.pyi +93 -0
- raystack/assets/v1beta2/topic_pb2.py +43 -0
- raystack/assets/v1beta2/topic_pb2.pyi +40 -0
- raystack/assets/v1beta2/user_pb2.py +43 -0
- raystack/assets/v1beta2/user_pb2.pyi +61 -0
- raystack/common/__init__.py +0 -0
- raystack/common/v1/__init__.py +0 -0
- raystack/common/v1/service_connect.py +119 -0
- raystack/common/v1/service_pb2.py +48 -0
- raystack/common/v1/service_pb2.pyi +39 -0
- raystack/compass/__init__.py +0 -0
- raystack/compass/v1beta1/__init__.py +0 -0
- raystack/compass/v1beta1/service_connect.py +2784 -0
- raystack/compass/v1beta1/service_pb2.py +581 -0
- raystack/compass/v1beta1/service_pb2.pyi +1055 -0
- raystack/entropy/__init__.py +0 -0
- raystack/entropy/v1beta1/__init__.py +0 -0
- raystack/entropy/v1beta1/module_connect.py +379 -0
- raystack/entropy/v1beta1/module_pb2.py +72 -0
- raystack/entropy/v1beta1/module_pb2.pyi +88 -0
- raystack/entropy/v1beta1/resource_connect.py +574 -0
- raystack/entropy/v1beta1/resource_pb2.py +134 -0
- raystack/entropy/v1beta1/resource_pb2.pyi +268 -0
- raystack/frontier/__init__.py +0 -0
- raystack/frontier/v1beta1/__init__.py +0 -0
- raystack/frontier/v1beta1/admin_connect.py +4021 -0
- raystack/frontier/v1beta1/admin_pb2.py +617 -0
- raystack/frontier/v1beta1/admin_pb2.pyi +1151 -0
- raystack/frontier/v1beta1/frontier_connect.py +11169 -0
- raystack/frontier/v1beta1/frontier_pb2.py +1648 -0
- raystack/frontier/v1beta1/frontier_pb2.pyi +2730 -0
- raystack/frontier/v1beta1/models_pb2.py +398 -0
- raystack/frontier/v1beta1/models_pb2.pyi +1150 -0
- raystack/guardian/__init__.py +0 -0
- raystack/guardian/v1beta1/__init__.py +0 -0
- raystack/guardian/v1beta1/guardian_connect.py +2654 -0
- raystack/guardian/v1beta1/guardian_pb2.py +527 -0
- raystack/guardian/v1beta1/guardian_pb2.pyi +1257 -0
- raystack/optimus/__init__.py +0 -0
- raystack/optimus/core/__init__.py +0 -0
- raystack/optimus/core/v1beta1/__init__.py +0 -0
- raystack/optimus/core/v1beta1/backup_connect.py +249 -0
- raystack/optimus/core/v1beta1/backup_pb2.py +70 -0
- raystack/optimus/core/v1beta1/backup_pb2.pyi +108 -0
- raystack/optimus/core/v1beta1/job_run_connect.py +314 -0
- raystack/optimus/core/v1beta1/job_run_pb2.py +88 -0
- raystack/optimus/core/v1beta1/job_run_pb2.pyi +164 -0
- raystack/optimus/core/v1beta1/job_spec_connect.py +1289 -0
- raystack/optimus/core/v1beta1/job_spec_pb2.py +229 -0
- raystack/optimus/core/v1beta1/job_spec_pb2.pyi +700 -0
- raystack/optimus/core/v1beta1/namespace_connect.py +249 -0
- raystack/optimus/core/v1beta1/namespace_pb2.py +63 -0
- raystack/optimus/core/v1beta1/namespace_pb2.pyi +66 -0
- raystack/optimus/core/v1beta1/project_connect.py +249 -0
- raystack/optimus/core/v1beta1/project_pb2.py +63 -0
- raystack/optimus/core/v1beta1/project_pb2.pyi +60 -0
- raystack/optimus/core/v1beta1/replay_connect.py +314 -0
- raystack/optimus/core/v1beta1/replay_pb2.py +72 -0
- raystack/optimus/core/v1beta1/replay_pb2.pyi +127 -0
- raystack/optimus/core/v1beta1/resource_connect.py +509 -0
- raystack/optimus/core/v1beta1/resource_pb2.py +93 -0
- raystack/optimus/core/v1beta1/resource_pb2.pyi +182 -0
- raystack/optimus/core/v1beta1/runtime_connect.py +119 -0
- raystack/optimus/core/v1beta1/runtime_pb2.py +45 -0
- raystack/optimus/core/v1beta1/runtime_pb2.pyi +19 -0
- raystack/optimus/core/v1beta1/secret_connect.py +314 -0
- raystack/optimus/core/v1beta1/secret_pb2.py +66 -0
- raystack/optimus/core/v1beta1/secret_pb2.pyi +81 -0
- raystack/optimus/core/v1beta1/status_pb2.py +39 -0
- raystack/optimus/core/v1beta1/status_pb2.pyi +31 -0
- raystack/optimus/integration/__init__.py +0 -0
- raystack/optimus/integration/v1beta1/__init__.py +0 -0
- raystack/optimus/integration/v1beta1/event_pb2.py +50 -0
- raystack/optimus/integration/v1beta1/event_pb2.pyi +94 -0
- raystack/optimus/plugins/__init__.py +0 -0
- raystack/optimus/plugins/v1beta1/__init__.py +0 -0
- raystack/optimus/plugins/v1beta1/dependency_resolver_connect.py +314 -0
- raystack/optimus/plugins/v1beta1/dependency_resolver_pb2.py +66 -0
- raystack/optimus/plugins/v1beta1/dependency_resolver_pb2.pyi +118 -0
- raystack/predator/__init__.py +0 -0
- raystack/predator/v1beta1/__init__.py +0 -0
- raystack/predator/v1beta1/metrics_log_pb2.py +46 -0
- raystack/predator/v1beta1/metrics_log_pb2.pyi +68 -0
- raystack/predator/v1beta1/result_log_pb2.py +45 -0
- raystack/predator/v1beta1/result_log_pb2.pyi +61 -0
- raystack/raccoon/__init__.py +0 -0
- raystack/raccoon/v1beta1/__init__.py +0 -0
- raystack/raccoon/v1beta1/raccoon_connect.py +119 -0
- raystack/raccoon/v1beta1/raccoon_pb2.py +52 -0
- raystack/raccoon/v1beta1/raccoon_pb2.pyi +74 -0
- raystack/siren/__init__.py +0 -0
- raystack/siren/v1beta1/__init__.py +0 -0
- raystack/siren/v1beta1/siren_connect.py +2329 -0
- raystack/siren/v1beta1/siren_pb2.py +415 -0
- raystack/siren/v1beta1/siren_pb2.pyi +890 -0
- raystack/stencil/__init__.py +0 -0
- raystack/stencil/v1beta1/__init__.py +0 -0
- raystack/stencil/v1beta1/stencil_connect.py +1094 -0
- raystack/stencil/v1beta1/stencil_pb2.py +158 -0
- raystack/stencil/v1beta1/stencil_pb2.pyi +357 -0
- raystack_proton-2025.10.8.102837.dist-info/METADATA +101 -0
- raystack_proton-2025.10.8.102837.dist-info/RECORD +181 -0
- raystack_proton-2025.10.8.102837.dist-info/WHEEL +5 -0
- raystack_proton-2025.10.8.102837.dist-info/licenses/LICENSE +201 -0
- raystack_proton-2025.10.8.102837.dist-info/top_level.txt +4 -0
- validate/__init__.py +0 -0
- validate/validate_pb2.py +86 -0
- validate/validate_pb2.pyi +497 -0
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by https://github.com/connectrpc/connect-python. DO NOT EDIT!
|
|
3
|
+
# source: raystack/optimus/core/v1beta1/secret.proto
|
|
4
|
+
|
|
5
|
+
from collections.abc import AsyncIterator, Iterable, Iterator, Mapping
|
|
6
|
+
from typing import Protocol
|
|
7
|
+
|
|
8
|
+
from connectrpc.client import ConnectClient, ConnectClientSync
|
|
9
|
+
from connectrpc.code import Code
|
|
10
|
+
from connectrpc.errors import ConnectError
|
|
11
|
+
from connectrpc.interceptor import Interceptor, InterceptorSync
|
|
12
|
+
from connectrpc.method import IdempotencyLevel, MethodInfo
|
|
13
|
+
from connectrpc.request import Headers, RequestContext
|
|
14
|
+
from connectrpc.server import ConnectASGIApplication, ConnectWSGIApplication, Endpoint, EndpointSync
|
|
15
|
+
import raystack.optimus.core.v1beta1.secret_pb2 as raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class SecretService(Protocol):
|
|
19
|
+
async def register_secret(self, request: raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.RegisterSecretRequest, ctx: RequestContext) -> raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.RegisterSecretResponse:
|
|
20
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
21
|
+
|
|
22
|
+
async def update_secret(self, request: raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.UpdateSecretRequest, ctx: RequestContext) -> raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.UpdateSecretResponse:
|
|
23
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
24
|
+
|
|
25
|
+
async def list_secrets(self, request: raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.ListSecretsRequest, ctx: RequestContext) -> raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.ListSecretsResponse:
|
|
26
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
27
|
+
|
|
28
|
+
async def delete_secret(self, request: raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.DeleteSecretRequest, ctx: RequestContext) -> raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.DeleteSecretResponse:
|
|
29
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class SecretServiceASGIApplication(ConnectASGIApplication):
|
|
33
|
+
def __init__(self, service: SecretService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
34
|
+
super().__init__(
|
|
35
|
+
endpoints={
|
|
36
|
+
"/raystack.optimus.core.v1beta1.SecretService/RegisterSecret": Endpoint.unary(
|
|
37
|
+
method=MethodInfo(
|
|
38
|
+
name="RegisterSecret",
|
|
39
|
+
service_name="raystack.optimus.core.v1beta1.SecretService",
|
|
40
|
+
input=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.RegisterSecretRequest,
|
|
41
|
+
output=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.RegisterSecretResponse,
|
|
42
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
43
|
+
),
|
|
44
|
+
function=service.register_secret,
|
|
45
|
+
),
|
|
46
|
+
"/raystack.optimus.core.v1beta1.SecretService/UpdateSecret": Endpoint.unary(
|
|
47
|
+
method=MethodInfo(
|
|
48
|
+
name="UpdateSecret",
|
|
49
|
+
service_name="raystack.optimus.core.v1beta1.SecretService",
|
|
50
|
+
input=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.UpdateSecretRequest,
|
|
51
|
+
output=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.UpdateSecretResponse,
|
|
52
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
53
|
+
),
|
|
54
|
+
function=service.update_secret,
|
|
55
|
+
),
|
|
56
|
+
"/raystack.optimus.core.v1beta1.SecretService/ListSecrets": Endpoint.unary(
|
|
57
|
+
method=MethodInfo(
|
|
58
|
+
name="ListSecrets",
|
|
59
|
+
service_name="raystack.optimus.core.v1beta1.SecretService",
|
|
60
|
+
input=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.ListSecretsRequest,
|
|
61
|
+
output=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.ListSecretsResponse,
|
|
62
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
63
|
+
),
|
|
64
|
+
function=service.list_secrets,
|
|
65
|
+
),
|
|
66
|
+
"/raystack.optimus.core.v1beta1.SecretService/DeleteSecret": Endpoint.unary(
|
|
67
|
+
method=MethodInfo(
|
|
68
|
+
name="DeleteSecret",
|
|
69
|
+
service_name="raystack.optimus.core.v1beta1.SecretService",
|
|
70
|
+
input=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.DeleteSecretRequest,
|
|
71
|
+
output=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.DeleteSecretResponse,
|
|
72
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
73
|
+
),
|
|
74
|
+
function=service.delete_secret,
|
|
75
|
+
),
|
|
76
|
+
},
|
|
77
|
+
interceptors=interceptors,
|
|
78
|
+
read_max_bytes=read_max_bytes,
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def path(self) -> str:
|
|
83
|
+
"""Returns the URL path to mount the application to when serving multiple applications."""
|
|
84
|
+
return "/raystack.optimus.core.v1beta1.SecretService"
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
class SecretServiceClient(ConnectClient):
|
|
88
|
+
async def register_secret(
|
|
89
|
+
self,
|
|
90
|
+
request: raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.RegisterSecretRequest,
|
|
91
|
+
*,
|
|
92
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
93
|
+
timeout_ms: int | None = None,
|
|
94
|
+
) -> raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.RegisterSecretResponse:
|
|
95
|
+
return await self.execute_unary(
|
|
96
|
+
request=request,
|
|
97
|
+
method=MethodInfo(
|
|
98
|
+
name="RegisterSecret",
|
|
99
|
+
service_name="raystack.optimus.core.v1beta1.SecretService",
|
|
100
|
+
input=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.RegisterSecretRequest,
|
|
101
|
+
output=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.RegisterSecretResponse,
|
|
102
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
103
|
+
),
|
|
104
|
+
headers=headers,
|
|
105
|
+
timeout_ms=timeout_ms,
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
async def update_secret(
|
|
109
|
+
self,
|
|
110
|
+
request: raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.UpdateSecretRequest,
|
|
111
|
+
*,
|
|
112
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
113
|
+
timeout_ms: int | None = None,
|
|
114
|
+
) -> raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.UpdateSecretResponse:
|
|
115
|
+
return await self.execute_unary(
|
|
116
|
+
request=request,
|
|
117
|
+
method=MethodInfo(
|
|
118
|
+
name="UpdateSecret",
|
|
119
|
+
service_name="raystack.optimus.core.v1beta1.SecretService",
|
|
120
|
+
input=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.UpdateSecretRequest,
|
|
121
|
+
output=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.UpdateSecretResponse,
|
|
122
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
123
|
+
),
|
|
124
|
+
headers=headers,
|
|
125
|
+
timeout_ms=timeout_ms,
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
async def list_secrets(
|
|
129
|
+
self,
|
|
130
|
+
request: raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.ListSecretsRequest,
|
|
131
|
+
*,
|
|
132
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
133
|
+
timeout_ms: int | None = None,
|
|
134
|
+
) -> raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.ListSecretsResponse:
|
|
135
|
+
return await self.execute_unary(
|
|
136
|
+
request=request,
|
|
137
|
+
method=MethodInfo(
|
|
138
|
+
name="ListSecrets",
|
|
139
|
+
service_name="raystack.optimus.core.v1beta1.SecretService",
|
|
140
|
+
input=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.ListSecretsRequest,
|
|
141
|
+
output=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.ListSecretsResponse,
|
|
142
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
143
|
+
),
|
|
144
|
+
headers=headers,
|
|
145
|
+
timeout_ms=timeout_ms,
|
|
146
|
+
)
|
|
147
|
+
|
|
148
|
+
async def delete_secret(
|
|
149
|
+
self,
|
|
150
|
+
request: raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.DeleteSecretRequest,
|
|
151
|
+
*,
|
|
152
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
153
|
+
timeout_ms: int | None = None,
|
|
154
|
+
) -> raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.DeleteSecretResponse:
|
|
155
|
+
return await self.execute_unary(
|
|
156
|
+
request=request,
|
|
157
|
+
method=MethodInfo(
|
|
158
|
+
name="DeleteSecret",
|
|
159
|
+
service_name="raystack.optimus.core.v1beta1.SecretService",
|
|
160
|
+
input=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.DeleteSecretRequest,
|
|
161
|
+
output=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.DeleteSecretResponse,
|
|
162
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
163
|
+
),
|
|
164
|
+
headers=headers,
|
|
165
|
+
timeout_ms=timeout_ms,
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
class SecretServiceSync(Protocol):
|
|
170
|
+
def register_secret(self, request: raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.RegisterSecretRequest, ctx: RequestContext) -> raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.RegisterSecretResponse:
|
|
171
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
172
|
+
def update_secret(self, request: raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.UpdateSecretRequest, ctx: RequestContext) -> raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.UpdateSecretResponse:
|
|
173
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
174
|
+
def list_secrets(self, request: raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.ListSecretsRequest, ctx: RequestContext) -> raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.ListSecretsResponse:
|
|
175
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
176
|
+
def delete_secret(self, request: raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.DeleteSecretRequest, ctx: RequestContext) -> raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.DeleteSecretResponse:
|
|
177
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
class SecretServiceWSGIApplication(ConnectWSGIApplication):
|
|
181
|
+
def __init__(self, service: SecretServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None) -> None:
|
|
182
|
+
super().__init__(
|
|
183
|
+
endpoints={
|
|
184
|
+
"/raystack.optimus.core.v1beta1.SecretService/RegisterSecret": EndpointSync.unary(
|
|
185
|
+
method=MethodInfo(
|
|
186
|
+
name="RegisterSecret",
|
|
187
|
+
service_name="raystack.optimus.core.v1beta1.SecretService",
|
|
188
|
+
input=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.RegisterSecretRequest,
|
|
189
|
+
output=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.RegisterSecretResponse,
|
|
190
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
191
|
+
),
|
|
192
|
+
function=service.register_secret,
|
|
193
|
+
),
|
|
194
|
+
"/raystack.optimus.core.v1beta1.SecretService/UpdateSecret": EndpointSync.unary(
|
|
195
|
+
method=MethodInfo(
|
|
196
|
+
name="UpdateSecret",
|
|
197
|
+
service_name="raystack.optimus.core.v1beta1.SecretService",
|
|
198
|
+
input=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.UpdateSecretRequest,
|
|
199
|
+
output=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.UpdateSecretResponse,
|
|
200
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
201
|
+
),
|
|
202
|
+
function=service.update_secret,
|
|
203
|
+
),
|
|
204
|
+
"/raystack.optimus.core.v1beta1.SecretService/ListSecrets": EndpointSync.unary(
|
|
205
|
+
method=MethodInfo(
|
|
206
|
+
name="ListSecrets",
|
|
207
|
+
service_name="raystack.optimus.core.v1beta1.SecretService",
|
|
208
|
+
input=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.ListSecretsRequest,
|
|
209
|
+
output=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.ListSecretsResponse,
|
|
210
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
211
|
+
),
|
|
212
|
+
function=service.list_secrets,
|
|
213
|
+
),
|
|
214
|
+
"/raystack.optimus.core.v1beta1.SecretService/DeleteSecret": EndpointSync.unary(
|
|
215
|
+
method=MethodInfo(
|
|
216
|
+
name="DeleteSecret",
|
|
217
|
+
service_name="raystack.optimus.core.v1beta1.SecretService",
|
|
218
|
+
input=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.DeleteSecretRequest,
|
|
219
|
+
output=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.DeleteSecretResponse,
|
|
220
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
221
|
+
),
|
|
222
|
+
function=service.delete_secret,
|
|
223
|
+
),
|
|
224
|
+
},
|
|
225
|
+
interceptors=interceptors,
|
|
226
|
+
read_max_bytes=read_max_bytes,
|
|
227
|
+
)
|
|
228
|
+
|
|
229
|
+
@property
|
|
230
|
+
def path(self) -> str:
|
|
231
|
+
"""Returns the URL path to mount the application to when serving multiple applications."""
|
|
232
|
+
return "/raystack.optimus.core.v1beta1.SecretService"
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
class SecretServiceClientSync(ConnectClientSync):
|
|
236
|
+
def register_secret(
|
|
237
|
+
self,
|
|
238
|
+
request: raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.RegisterSecretRequest,
|
|
239
|
+
*,
|
|
240
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
241
|
+
timeout_ms: int | None = None,
|
|
242
|
+
) -> raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.RegisterSecretResponse:
|
|
243
|
+
return self.execute_unary(
|
|
244
|
+
request=request,
|
|
245
|
+
method=MethodInfo(
|
|
246
|
+
name="RegisterSecret",
|
|
247
|
+
service_name="raystack.optimus.core.v1beta1.SecretService",
|
|
248
|
+
input=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.RegisterSecretRequest,
|
|
249
|
+
output=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.RegisterSecretResponse,
|
|
250
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
251
|
+
),
|
|
252
|
+
headers=headers,
|
|
253
|
+
timeout_ms=timeout_ms,
|
|
254
|
+
)
|
|
255
|
+
|
|
256
|
+
def update_secret(
|
|
257
|
+
self,
|
|
258
|
+
request: raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.UpdateSecretRequest,
|
|
259
|
+
*,
|
|
260
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
261
|
+
timeout_ms: int | None = None,
|
|
262
|
+
) -> raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.UpdateSecretResponse:
|
|
263
|
+
return self.execute_unary(
|
|
264
|
+
request=request,
|
|
265
|
+
method=MethodInfo(
|
|
266
|
+
name="UpdateSecret",
|
|
267
|
+
service_name="raystack.optimus.core.v1beta1.SecretService",
|
|
268
|
+
input=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.UpdateSecretRequest,
|
|
269
|
+
output=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.UpdateSecretResponse,
|
|
270
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
271
|
+
),
|
|
272
|
+
headers=headers,
|
|
273
|
+
timeout_ms=timeout_ms,
|
|
274
|
+
)
|
|
275
|
+
|
|
276
|
+
def list_secrets(
|
|
277
|
+
self,
|
|
278
|
+
request: raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.ListSecretsRequest,
|
|
279
|
+
*,
|
|
280
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
281
|
+
timeout_ms: int | None = None,
|
|
282
|
+
) -> raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.ListSecretsResponse:
|
|
283
|
+
return self.execute_unary(
|
|
284
|
+
request=request,
|
|
285
|
+
method=MethodInfo(
|
|
286
|
+
name="ListSecrets",
|
|
287
|
+
service_name="raystack.optimus.core.v1beta1.SecretService",
|
|
288
|
+
input=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.ListSecretsRequest,
|
|
289
|
+
output=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.ListSecretsResponse,
|
|
290
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
291
|
+
),
|
|
292
|
+
headers=headers,
|
|
293
|
+
timeout_ms=timeout_ms,
|
|
294
|
+
)
|
|
295
|
+
|
|
296
|
+
def delete_secret(
|
|
297
|
+
self,
|
|
298
|
+
request: raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.DeleteSecretRequest,
|
|
299
|
+
*,
|
|
300
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
301
|
+
timeout_ms: int | None = None,
|
|
302
|
+
) -> raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.DeleteSecretResponse:
|
|
303
|
+
return self.execute_unary(
|
|
304
|
+
request=request,
|
|
305
|
+
method=MethodInfo(
|
|
306
|
+
name="DeleteSecret",
|
|
307
|
+
service_name="raystack.optimus.core.v1beta1.SecretService",
|
|
308
|
+
input=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.DeleteSecretRequest,
|
|
309
|
+
output=raystack_dot_optimus_dot_core_dot_v1beta1_dot_secret__pb2.DeleteSecretResponse,
|
|
310
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
311
|
+
),
|
|
312
|
+
headers=headers,
|
|
313
|
+
timeout_ms=timeout_ms,
|
|
314
|
+
)
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: raystack/optimus/core/v1beta1/secret.proto
|
|
5
|
+
# Protobuf Python Version: 6.32.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
|
+
32,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'raystack/optimus/core/v1beta1/secret.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
26
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
27
|
+
from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*raystack/optimus/core/v1beta1/secret.proto\x12\x1draystack.optimus.core.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\x98\x01\n\x15RegisterSecretRequest\x12!\n\x0cproject_name\x18\x01 \x01(\tR\x0bprojectName\x12\x1f\n\x0bsecret_name\x18\x02 \x01(\tR\nsecretName\x12\x14\n\x05value\x18\x03 \x01(\tR\x05value\x12%\n\x0enamespace_name\x18\x04 \x01(\tR\rnamespaceName\"\x18\n\x16RegisterSecretResponse\"\x96\x01\n\x13UpdateSecretRequest\x12!\n\x0cproject_name\x18\x01 \x01(\tR\x0bprojectName\x12\x1f\n\x0bsecret_name\x18\x02 \x01(\tR\nsecretName\x12\x14\n\x05value\x18\x03 \x01(\tR\x05value\x12%\n\x0enamespace_name\x18\x04 \x01(\tR\rnamespaceName\"\x16\n\x14UpdateSecretResponse\"7\n\x12ListSecretsRequest\x12!\n\x0cproject_name\x18\x01 \x01(\tR\x0bprojectName\"\xfa\x01\n\x13ListSecretsResponse\x12S\n\x07secrets\x18\x01 \x03(\x0b\x32\x39.raystack.optimus.core.v1beta1.ListSecretsResponse.SecretR\x07secrets\x1a\x8d\x01\n\x06Secret\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n\x06\x64igest\x18\x02 \x01(\tR\x06\x64igest\x12\x1c\n\tnamespace\x18\x03 \x01(\tR\tnamespace\x12\x39\n\nupdated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\"\x80\x01\n\x13\x44\x65leteSecretRequest\x12!\n\x0cproject_name\x18\x01 \x01(\tR\x0bprojectName\x12\x1f\n\x0bsecret_name\x18\x02 \x01(\tR\nsecretName\x12%\n\x0enamespace_name\x18\x03 \x01(\tR\rnamespaceName\"\x16\n\x14\x44\x65leteSecretResponse2\xea\x05\n\rSecretService\x12\xbe\x01\n\x0eRegisterSecret\x12\x34.raystack.optimus.core.v1beta1.RegisterSecretRequest\x1a\x35.raystack.optimus.core.v1beta1.RegisterSecretResponse\"?\x82\xd3\xe4\x93\x02\x39\"4/v1beta1/project/{project_name}/secret/{secret_name}:\x01*\x12\xb8\x01\n\x0cUpdateSecret\x12\x32.raystack.optimus.core.v1beta1.UpdateSecretRequest\x1a\x33.raystack.optimus.core.v1beta1.UpdateSecretResponse\"?\x82\xd3\xe4\x93\x02\x39\x1a\x34/v1beta1/project/{project_name}/secret/{secret_name}:\x01*\x12\xa4\x01\n\x0bListSecrets\x12\x31.raystack.optimus.core.v1beta1.ListSecretsRequest\x1a\x32.raystack.optimus.core.v1beta1.ListSecretsResponse\".\x82\xd3\xe4\x93\x02(\x12&/v1beta1/project/{project_name}/secret\x12\xb5\x01\n\x0c\x44\x65leteSecret\x12\x32.raystack.optimus.core.v1beta1.DeleteSecretRequest\x1a\x33.raystack.optimus.core.v1beta1.DeleteSecretResponse\"<\x82\xd3\xe4\x93\x02\x36*4/v1beta1/project/{project_name}/secret/{secret_name}B\xa1\x01\n\x1borg.raystack.proton.optimusB\x14SecretServiceManagerP\x01Z\"github.com/raystack/proton/optimus\x92\x41\x45\x12\x05\x32\x03\x30.1\x1a\x0e\x31\x32\x37.0.0.1:9100\"\x04/api*\x01\x01r#\n!Optimus Secret Management Serviceb\x06proto3')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'raystack.optimus.core.v1beta1.secret_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\033org.raystack.proton.optimusB\024SecretServiceManagerP\001Z\"github.com/raystack/proton/optimus\222AE\022\0052\0030.1\032\016127.0.0.1:9100\"\004/api*\001\001r#\n!Optimus Secret Management Service'
|
|
38
|
+
_globals['_SECRETSERVICE'].methods_by_name['RegisterSecret']._loaded_options = None
|
|
39
|
+
_globals['_SECRETSERVICE'].methods_by_name['RegisterSecret']._serialized_options = b'\202\323\344\223\0029\"4/v1beta1/project/{project_name}/secret/{secret_name}:\001*'
|
|
40
|
+
_globals['_SECRETSERVICE'].methods_by_name['UpdateSecret']._loaded_options = None
|
|
41
|
+
_globals['_SECRETSERVICE'].methods_by_name['UpdateSecret']._serialized_options = b'\202\323\344\223\0029\0324/v1beta1/project/{project_name}/secret/{secret_name}:\001*'
|
|
42
|
+
_globals['_SECRETSERVICE'].methods_by_name['ListSecrets']._loaded_options = None
|
|
43
|
+
_globals['_SECRETSERVICE'].methods_by_name['ListSecrets']._serialized_options = b'\202\323\344\223\002(\022&/v1beta1/project/{project_name}/secret'
|
|
44
|
+
_globals['_SECRETSERVICE'].methods_by_name['DeleteSecret']._loaded_options = None
|
|
45
|
+
_globals['_SECRETSERVICE'].methods_by_name['DeleteSecret']._serialized_options = b'\202\323\344\223\0026*4/v1beta1/project/{project_name}/secret/{secret_name}'
|
|
46
|
+
_globals['_REGISTERSECRETREQUEST']._serialized_start=189
|
|
47
|
+
_globals['_REGISTERSECRETREQUEST']._serialized_end=341
|
|
48
|
+
_globals['_REGISTERSECRETRESPONSE']._serialized_start=343
|
|
49
|
+
_globals['_REGISTERSECRETRESPONSE']._serialized_end=367
|
|
50
|
+
_globals['_UPDATESECRETREQUEST']._serialized_start=370
|
|
51
|
+
_globals['_UPDATESECRETREQUEST']._serialized_end=520
|
|
52
|
+
_globals['_UPDATESECRETRESPONSE']._serialized_start=522
|
|
53
|
+
_globals['_UPDATESECRETRESPONSE']._serialized_end=544
|
|
54
|
+
_globals['_LISTSECRETSREQUEST']._serialized_start=546
|
|
55
|
+
_globals['_LISTSECRETSREQUEST']._serialized_end=601
|
|
56
|
+
_globals['_LISTSECRETSRESPONSE']._serialized_start=604
|
|
57
|
+
_globals['_LISTSECRETSRESPONSE']._serialized_end=854
|
|
58
|
+
_globals['_LISTSECRETSRESPONSE_SECRET']._serialized_start=713
|
|
59
|
+
_globals['_LISTSECRETSRESPONSE_SECRET']._serialized_end=854
|
|
60
|
+
_globals['_DELETESECRETREQUEST']._serialized_start=857
|
|
61
|
+
_globals['_DELETESECRETREQUEST']._serialized_end=985
|
|
62
|
+
_globals['_DELETESECRETRESPONSE']._serialized_start=987
|
|
63
|
+
_globals['_DELETESECRETRESPONSE']._serialized_end=1009
|
|
64
|
+
_globals['_SECRETSERVICE']._serialized_start=1012
|
|
65
|
+
_globals['_SECRETSERVICE']._serialized_end=1758
|
|
66
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
|
|
3
|
+
from google.api import annotations_pb2 as _annotations_pb2
|
|
4
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
5
|
+
from protoc_gen_openapiv2.options import annotations_pb2 as _annotations_pb2_1
|
|
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 RegisterSecretRequest(_message.Message):
|
|
15
|
+
__slots__ = ("project_name", "secret_name", "value", "namespace_name")
|
|
16
|
+
PROJECT_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
SECRET_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
19
|
+
NAMESPACE_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
20
|
+
project_name: str
|
|
21
|
+
secret_name: str
|
|
22
|
+
value: str
|
|
23
|
+
namespace_name: str
|
|
24
|
+
def __init__(self, project_name: _Optional[str] = ..., secret_name: _Optional[str] = ..., value: _Optional[str] = ..., namespace_name: _Optional[str] = ...) -> None: ...
|
|
25
|
+
|
|
26
|
+
class RegisterSecretResponse(_message.Message):
|
|
27
|
+
__slots__ = ()
|
|
28
|
+
def __init__(self) -> None: ...
|
|
29
|
+
|
|
30
|
+
class UpdateSecretRequest(_message.Message):
|
|
31
|
+
__slots__ = ("project_name", "secret_name", "value", "namespace_name")
|
|
32
|
+
PROJECT_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
SECRET_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
NAMESPACE_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
+
project_name: str
|
|
37
|
+
secret_name: str
|
|
38
|
+
value: str
|
|
39
|
+
namespace_name: str
|
|
40
|
+
def __init__(self, project_name: _Optional[str] = ..., secret_name: _Optional[str] = ..., value: _Optional[str] = ..., namespace_name: _Optional[str] = ...) -> None: ...
|
|
41
|
+
|
|
42
|
+
class UpdateSecretResponse(_message.Message):
|
|
43
|
+
__slots__ = ()
|
|
44
|
+
def __init__(self) -> None: ...
|
|
45
|
+
|
|
46
|
+
class ListSecretsRequest(_message.Message):
|
|
47
|
+
__slots__ = ("project_name",)
|
|
48
|
+
PROJECT_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
49
|
+
project_name: str
|
|
50
|
+
def __init__(self, project_name: _Optional[str] = ...) -> None: ...
|
|
51
|
+
|
|
52
|
+
class ListSecretsResponse(_message.Message):
|
|
53
|
+
__slots__ = ("secrets",)
|
|
54
|
+
class Secret(_message.Message):
|
|
55
|
+
__slots__ = ("name", "digest", "namespace", "updated_at")
|
|
56
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
57
|
+
DIGEST_FIELD_NUMBER: _ClassVar[int]
|
|
58
|
+
NAMESPACE_FIELD_NUMBER: _ClassVar[int]
|
|
59
|
+
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
60
|
+
name: str
|
|
61
|
+
digest: str
|
|
62
|
+
namespace: str
|
|
63
|
+
updated_at: _timestamp_pb2.Timestamp
|
|
64
|
+
def __init__(self, name: _Optional[str] = ..., digest: _Optional[str] = ..., namespace: _Optional[str] = ..., updated_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
65
|
+
SECRETS_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
secrets: _containers.RepeatedCompositeFieldContainer[ListSecretsResponse.Secret]
|
|
67
|
+
def __init__(self, secrets: _Optional[_Iterable[_Union[ListSecretsResponse.Secret, _Mapping]]] = ...) -> None: ...
|
|
68
|
+
|
|
69
|
+
class DeleteSecretRequest(_message.Message):
|
|
70
|
+
__slots__ = ("project_name", "secret_name", "namespace_name")
|
|
71
|
+
PROJECT_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
72
|
+
SECRET_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
73
|
+
NAMESPACE_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
74
|
+
project_name: str
|
|
75
|
+
secret_name: str
|
|
76
|
+
namespace_name: str
|
|
77
|
+
def __init__(self, project_name: _Optional[str] = ..., secret_name: _Optional[str] = ..., namespace_name: _Optional[str] = ...) -> None: ...
|
|
78
|
+
|
|
79
|
+
class DeleteSecretResponse(_message.Message):
|
|
80
|
+
__slots__ = ()
|
|
81
|
+
def __init__(self) -> None: ...
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: raystack/optimus/core/v1beta1/status.proto
|
|
5
|
+
# Protobuf Python Version: 6.32.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
|
+
32,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'raystack/optimus/core/v1beta1/status.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*raystack/optimus/core/v1beta1/status.proto\x12\x1draystack.optimus.core.v1beta1\"[\n\x03Log\x12:\n\x05level\x18\x01 \x01(\x0e\x32$.raystack.optimus.core.v1beta1.LevelR\x05level\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message*\x85\x01\n\x05Level\x12\x15\n\x11LEVEL_UNSPECIFIED\x10\x00\x12\x0f\n\x0bLEVEL_TRACE\x10\x01\x12\x0f\n\x0bLEVEL_DEBUG\x10\x02\x12\x0e\n\nLEVEL_INFO\x10\x03\x12\x11\n\rLEVEL_WARNING\x10\x04\x12\x0f\n\x0bLEVEL_ERROR\x10\x05\x12\x0f\n\x0bLEVEL_FATAL\x10\x06\x42K\n\x1borg.raystack.proton.optimusB\x06StatusP\x01Z\"github.com/raystack/proton/optimusb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'raystack.optimus.core.v1beta1.status_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\033org.raystack.proton.optimusB\006StatusP\001Z\"github.com/raystack/proton/optimus'
|
|
35
|
+
_globals['_LEVEL']._serialized_start=171
|
|
36
|
+
_globals['_LEVEL']._serialized_end=304
|
|
37
|
+
_globals['_LOG']._serialized_start=77
|
|
38
|
+
_globals['_LOG']._serialized_end=168
|
|
39
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import message as _message
|
|
4
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
5
|
+
|
|
6
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
7
|
+
|
|
8
|
+
class Level(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
9
|
+
__slots__ = ()
|
|
10
|
+
LEVEL_UNSPECIFIED: _ClassVar[Level]
|
|
11
|
+
LEVEL_TRACE: _ClassVar[Level]
|
|
12
|
+
LEVEL_DEBUG: _ClassVar[Level]
|
|
13
|
+
LEVEL_INFO: _ClassVar[Level]
|
|
14
|
+
LEVEL_WARNING: _ClassVar[Level]
|
|
15
|
+
LEVEL_ERROR: _ClassVar[Level]
|
|
16
|
+
LEVEL_FATAL: _ClassVar[Level]
|
|
17
|
+
LEVEL_UNSPECIFIED: Level
|
|
18
|
+
LEVEL_TRACE: Level
|
|
19
|
+
LEVEL_DEBUG: Level
|
|
20
|
+
LEVEL_INFO: Level
|
|
21
|
+
LEVEL_WARNING: Level
|
|
22
|
+
LEVEL_ERROR: Level
|
|
23
|
+
LEVEL_FATAL: Level
|
|
24
|
+
|
|
25
|
+
class Log(_message.Message):
|
|
26
|
+
__slots__ = ("level", "message")
|
|
27
|
+
LEVEL_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
level: Level
|
|
30
|
+
message: str
|
|
31
|
+
def __init__(self, level: _Optional[_Union[Level, str]] = ..., message: _Optional[str] = ...) -> None: ...
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: raystack/optimus/integration/v1beta1/event.proto
|
|
5
|
+
# Protobuf Python Version: 6.32.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
|
+
32,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'raystack/optimus/integration/v1beta1/event.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
26
|
+
from raystack.optimus.core.v1beta1 import job_spec_pb2 as raystack_dot_optimus_dot_core_dot_v1beta1_dot_job__spec__pb2
|
|
27
|
+
from raystack.optimus.core.v1beta1 import resource_pb2 as raystack_dot_optimus_dot_core_dot_v1beta1_dot_resource__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0raystack/optimus/integration/v1beta1/event.proto\x12$raystack.optimus.integration.v1beta1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a,raystack/optimus/core/v1beta1/job_spec.proto\x1a,raystack/optimus/core/v1beta1/resource.proto\"\x90\x01\n\x15ResourceChangePayload\x12%\n\x0e\x64\x61tastore_name\x18\x01 \x01(\tR\rdatastoreName\x12P\n\x08resource\x18\x02 \x01(\x0b\x32\x34.raystack.optimus.core.v1beta1.ResourceSpecificationR\x08resource\"y\n\x10JobChangePayload\x12\x19\n\x08job_name\x18\x01 \x01(\tR\x07jobName\x12J\n\x08job_spec\x18\x02 \x01(\x0b\x32/.raystack.optimus.core.v1beta1.JobSpecificationR\x07jobSpec\"\xc2\x01\n\rJobRunPayload\x12\x19\n\x08job_name\x18\x01 \x01(\tR\x07jobName\x12=\n\x0cscheduled_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0bscheduledAt\x12\x1c\n\njob_run_id\x18\x03 \x01(\tR\x08jobRunId\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\"q\n\x15JobStateChangePayload\x12\x19\n\x08job_name\x18\x01 \x01(\tR\x07jobName\x12=\n\x05state\x18\x02 \x01(\x0e\x32\'.raystack.optimus.core.v1beta1.JobStateR\x05state\"\xf9\x07\n\x12OptimusChangeEvent\x12\x19\n\x08\x65vent_id\x18\x01 \x01(\tR\x07\x65ventId\x12;\n\x0boccurred_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12!\n\x0cproject_name\x18\x03 \x01(\tR\x0bprojectName\x12%\n\x0enamespace_name\x18\x04 \x01(\tR\rnamespaceName\x12\x61\n\nevent_type\x18\x05 \x01(\x0e\x32\x42.raystack.optimus.integration.v1beta1.OptimusChangeEvent.EventTypeR\teventType\x12W\n\njob_change\x18\x06 \x01(\x0b\x32\x36.raystack.optimus.integration.v1beta1.JobChangePayloadH\x00R\tjobChange\x12\x66\n\x0fresource_change\x18\x07 \x01(\x0b\x32;.raystack.optimus.integration.v1beta1.ResourceChangePayloadH\x00R\x0eresourceChange\x12N\n\x07job_run\x18\x08 \x01(\x0b\x32\x33.raystack.optimus.integration.v1beta1.JobRunPayloadH\x00R\x06jobRun\x12g\n\x10job_state_change\x18\t \x01(\x0b\x32;.raystack.optimus.integration.v1beta1.JobStateChangePayloadH\x00R\x0ejobStateChange\"\xd8\x02\n\tEventType\x12\x1f\n\x1b\x45VENT_TYPE_TYPE_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x45VENT_TYPE_RESOURCE_CREATE\x10\x01\x12\x1e\n\x1a\x45VENT_TYPE_RESOURCE_UPDATE\x10\x02\x12\x19\n\x15\x45VENT_TYPE_JOB_CREATE\x10\x03\x12\x19\n\x15\x45VENT_TYPE_JOB_UPDATE\x10\x04\x12\x19\n\x15\x45VENT_TYPE_JOB_DELETE\x10\x05\x12 \n\x1c\x45VENT_TYPE_JOB_WAIT_UPSTREAM\x10\x06\x12\x1e\n\x1a\x45VENT_TYPE_JOB_IN_PROGRESS\x10\x07\x12\x1a\n\x16\x45VENT_TYPE_JOB_SUCCESS\x10\x08\x12\x1a\n\x16\x45VENT_TYPE_JOB_FAILURE\x10\t\x12\x1f\n\x1b\x45VENT_TYPE_JOB_STATE_CHANGE\x10\nB\t\n\x07payloadBJ\n\x1borg.raystack.proton.optimusB\x05\x45ventP\x01Z\"github.com/raystack/proton/optimusb\x06proto3')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'raystack.optimus.integration.v1beta1.event_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\033org.raystack.proton.optimusB\005EventP\001Z\"github.com/raystack/proton/optimus'
|
|
38
|
+
_globals['_RESOURCECHANGEPAYLOAD']._serialized_start=216
|
|
39
|
+
_globals['_RESOURCECHANGEPAYLOAD']._serialized_end=360
|
|
40
|
+
_globals['_JOBCHANGEPAYLOAD']._serialized_start=362
|
|
41
|
+
_globals['_JOBCHANGEPAYLOAD']._serialized_end=483
|
|
42
|
+
_globals['_JOBRUNPAYLOAD']._serialized_start=486
|
|
43
|
+
_globals['_JOBRUNPAYLOAD']._serialized_end=680
|
|
44
|
+
_globals['_JOBSTATECHANGEPAYLOAD']._serialized_start=682
|
|
45
|
+
_globals['_JOBSTATECHANGEPAYLOAD']._serialized_end=795
|
|
46
|
+
_globals['_OPTIMUSCHANGEEVENT']._serialized_start=798
|
|
47
|
+
_globals['_OPTIMUSCHANGEEVENT']._serialized_end=1815
|
|
48
|
+
_globals['_OPTIMUSCHANGEEVENT_EVENTTYPE']._serialized_start=1460
|
|
49
|
+
_globals['_OPTIMUSCHANGEEVENT_EVENTTYPE']._serialized_end=1804
|
|
50
|
+
# @@protoc_insertion_point(module_scope)
|