frogml-core 0.0.58__py3-none-any.whl → 0.0.59__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.
- frogml_core/__init__.py +1 -1
- frogml_core/feature_store/online/client.py +6 -4
- {frogml_core-0.0.58.dist-info → frogml_core-0.0.59.dist-info}/METADATA +1 -1
- {frogml_core-0.0.58.dist-info → frogml_core-0.0.59.dist-info}/RECORD +17 -5
- frogml_proto/qwak/artifactory_settings/artifactory_settings_pb2.py +45 -0
- frogml_proto/qwak/artifactory_settings/artifactory_settings_pb2.pyi +57 -0
- frogml_proto/qwak/artifactory_settings/artifactory_settings_pb2_grpc.py +4 -0
- frogml_proto/qwak/ecosystem/jfrog/v0/token_pb2.py +176 -0
- frogml_proto/qwak/ecosystem/jfrog/v0/token_pb2.pyi +360 -0
- frogml_proto/qwak/ecosystem/jfrog/v0/token_pb2_grpc.py +4 -0
- frogml_proto/qwak/ecosystem/jfrog/v0/token_service_pb2.py +109 -0
- frogml_proto/qwak/ecosystem/jfrog/v0/token_service_pb2.pyi +144 -0
- frogml_proto/qwak/ecosystem/jfrog/v0/token_service_pb2_grpc.py +169 -0
- frogml_proto/qwak/execution/v1/internal/deployment/platform_details_pb2.py +35 -0
- frogml_proto/qwak/execution/v1/internal/deployment/platform_details_pb2.pyi +29 -0
- frogml_proto/qwak/execution/v1/internal/deployment/platform_details_pb2_grpc.py +4 -0
- {frogml_core-0.0.58.dist-info → frogml_core-0.0.59.dist-info}/WHEEL +0 -0
frogml_core/__init__.py
CHANGED
@@ -65,11 +65,13 @@ class OnlineClient:
|
|
65
65
|
|
66
66
|
def __init__(
|
67
67
|
self,
|
68
|
-
enable_ssl=True,
|
68
|
+
enable_ssl: bool = True,
|
69
69
|
endpoint_url: Optional[str] = None,
|
70
70
|
metadata: Optional[Sequence[Tuple[str]]] = None,
|
71
71
|
):
|
72
|
-
self._metadata = metadata
|
72
|
+
self._metadata: Optional[Sequence[Tuple[str]]] = metadata
|
73
|
+
self._enable_ssl: bool = enable_ssl
|
74
|
+
self._endpoint_url: Optional[str] = endpoint_url
|
73
75
|
|
74
76
|
options = (
|
75
77
|
("grpc.keepalive_timeout_ms", 1500),
|
@@ -120,13 +122,13 @@ class OnlineClient:
|
|
120
122
|
each row in the returned data-frame is constructed by retrieving the most recent requested feature values
|
121
123
|
of the entity key(s) for the specific entity value(s) defined in the df.
|
122
124
|
|
123
|
-
TODO: fix imports and align example
|
124
125
|
Examples:
|
125
126
|
>>> import pandas as pd
|
126
|
-
>>> from frogml_core.feature_store import OnlineClient
|
127
|
+
>>> from frogml_core.feature_store.online.client import OnlineClient
|
127
128
|
>>> from frogml_core.model.schema import (
|
128
129
|
>>> ModelSchema, FeatureStoreInput
|
129
130
|
>>> )
|
131
|
+
>>> from frogml_core.model.schema_entities import Entity, InferenceOutput
|
130
132
|
>>>
|
131
133
|
>>> user_id = Entity(name='uuid', type=str)
|
132
134
|
>>>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
frogml_core/__init__.py,sha256=
|
1
|
+
frogml_core/__init__.py,sha256=332MK42v0tjbNrCIM6ab7ZqBLzR03NsBL7ohUOtPVK8,777
|
2
2
|
frogml_core/automations/__init__.py,sha256=j2gD15MN-xVWhI5rAFsDwhL0CIyICLNT0scXsKvNBkU,1547
|
3
3
|
frogml_core/automations/automation_executions.py,sha256=xpOb9Dq8gPPGNQDJTvBBZbNz4woZDRZY0HqnLSu7pwU,3230
|
4
4
|
frogml_core/automations/automations.py,sha256=GKEQyQMi8sxX5oZn62PaxPi0zD8IaJRjBkhczRJxHNs,13070
|
@@ -183,7 +183,7 @@ frogml_core/feature_store/offline/client.py,sha256=psgNKr9MjI1ZnRbpAlpHhx34d7AE7
|
|
183
183
|
frogml_core/feature_store/offline/client_v2.py,sha256=kTFyHAYIsKBe3wcuE1S_LyD9CLQ_yCorOLcHVR3Emms,14966
|
184
184
|
frogml_core/feature_store/offline/feature_set_features.py,sha256=MjrQrXNhzk7QBdCojdpLfy1fuGdP3GcpOgcc7n7H0G8,740
|
185
185
|
frogml_core/feature_store/online/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
186
|
-
frogml_core/feature_store/online/client.py,sha256=
|
186
|
+
frogml_core/feature_store/online/client.py,sha256=JM7GLS8TeXW-jhEbecu2wp-tHoFHxPePqCw1XrsM6lw,13554
|
187
187
|
frogml_core/feature_store/online/endpoint_utils.py,sha256=lGssZR-r8kJpcSozVxQAk1_JpVXgRLqOVrK6fw8flPg,2242
|
188
188
|
frogml_core/feature_store/sinks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
189
189
|
frogml_core/feature_store/sinks/base.py,sha256=QdIutDlO_8IBRr-zKfHBRHJ1-DjDmFfR_Yuad193kg0,361
|
@@ -563,6 +563,9 @@ frogml_proto/qwak/analytics/analytics_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gX
|
|
563
563
|
frogml_proto/qwak/analytics/analytics_service_pb2.py,sha256=2E2hhqdXawkvijMrXWGVYwj6fOd25BDO99a0u0BYJqU,14907
|
564
564
|
frogml_proto/qwak/analytics/analytics_service_pb2.pyi,sha256=LU_Jub19dcZkp7F0Z12s0jR_6R2DT1p-iqBRm8ifZL4,11955
|
565
565
|
frogml_proto/qwak/analytics/analytics_service_pb2_grpc.py,sha256=wrSo8GF28-hsQaVrnb68wBbC3yEfG-JsNQ2ytR4QyhY,19156
|
566
|
+
frogml_proto/qwak/artifactory_settings/artifactory_settings_pb2.py,sha256=xfFRT0ZyJSsmQnuElE005nxPUxo2xPd0sgiKUgZglAs,2618
|
567
|
+
frogml_proto/qwak/artifactory_settings/artifactory_settings_pb2.pyi,sha256=sX3DzpDZWqnGfaiSeWlzhXiHcj7yZhrZuqENNJqfzC8,2220
|
568
|
+
frogml_proto/qwak/artifactory_settings/artifactory_settings_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
566
569
|
frogml_proto/qwak/audience/v1/audience_api_pb2.py,sha256=kSyqWJI_fBZGmPu9yABA_N-8cSkl3kcBgEb7Dc9E2lo,9035
|
567
570
|
frogml_proto/qwak/audience/v1/audience_api_pb2.pyi,sha256=vX3v2-9zZNG_vya_ELGqyyxWHb2qUiY4Ltem54AbgbQ,5956
|
568
571
|
frogml_proto/qwak/audience/v1/audience_api_pb2_grpc.py,sha256=d5JKUBSuB6tN-QfNMYnglvsiRAVOsvu2-j7qOpIbaN8,11487
|
@@ -656,6 +659,12 @@ frogml_proto/qwak/deployment/deployment_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8
|
|
656
659
|
frogml_proto/qwak/deployment/deployment_service_pb2.py,sha256=nElkI-aRZBXTRbWTn6yZ9-m_sSMG7S_KKSEn2qPH_jg,46324
|
657
660
|
frogml_proto/qwak/deployment/deployment_service_pb2.pyi,sha256=U43wEm09zS8pyjl_bHqym9b778pgodxPl-LrsP8gTrc,40993
|
658
661
|
frogml_proto/qwak/deployment/deployment_service_pb2_grpc.py,sha256=JTfQWEXtDmSa7E_wlCPFGuWe4mWF3BhbU5kphAJmEUk,27757
|
662
|
+
frogml_proto/qwak/ecosystem/jfrog/v0/token_pb2.py,sha256=ZO3EwAGZ_PUKQt9Gz3Py65Ts5FTBjem3oQUTkXBOnb0,12103
|
663
|
+
frogml_proto/qwak/ecosystem/jfrog/v0/token_pb2.pyi,sha256=H207PKZZ37xFJrCUo3jW3q-3IjCp37DWoetjhdP-ct4,15518
|
664
|
+
frogml_proto/qwak/ecosystem/jfrog/v0/token_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
665
|
+
frogml_proto/qwak/ecosystem/jfrog/v0/token_service_pb2.py,sha256=V_TS3JGKH-L9k5qIlSYMhPnyN3a7U0qAeZK-u-9TbEc,7855
|
666
|
+
frogml_proto/qwak/ecosystem/jfrog/v0/token_service_pb2.pyi,sha256=-AU-RXZ_GYQPFB_ESaaNDYkedS-TAp7AJe6ZMt6R6gg,5638
|
667
|
+
frogml_proto/qwak/ecosystem/jfrog/v0/token_service_pb2_grpc.py,sha256=LzyOygLpd4x-FFRZ1qkxDOi2Kmj3nYrwMmperhT3jGs,8824
|
659
668
|
frogml_proto/qwak/ecosystem/v0/credentials_pb2.py,sha256=6ZYXYF7t6vCVBnUDnDjNP5WagHl3BscQzaONc2ErYhg,3641
|
660
669
|
frogml_proto/qwak/ecosystem/v0/credentials_pb2.pyi,sha256=7sxOny-BUipUxrEpBxKVNuJF3-N77Z6Ov1eWI-87Uoo,4098
|
661
670
|
frogml_proto/qwak/ecosystem/v0/credentials_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
@@ -680,6 +689,9 @@ frogml_proto/qwak/execution/v1/execution_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj
|
|
680
689
|
frogml_proto/qwak/execution/v1/execution_service_pb2.py,sha256=NfJitGaE_dZGsk1P1V7SZPQ1eSjXy_Pjg_Xx6XCdXEI,28500
|
681
690
|
frogml_proto/qwak/execution/v1/execution_service_pb2.pyi,sha256=9hugkhcmB5RuqcLOIueUNGL8wEeT9b02KZ65Mrt8DsY,20480
|
682
691
|
frogml_proto/qwak/execution/v1/execution_service_pb2_grpc.py,sha256=2FxKwOxkds11-PnRqL1rPCX2bPamtzxroHXHtCXHzsA,30261
|
692
|
+
frogml_proto/qwak/execution/v1/internal/deployment/platform_details_pb2.py,sha256=PVDz5SRpmepwMrRmZ0StgQ8JnxSaDPGb8VW31CbN6W8,1642
|
693
|
+
frogml_proto/qwak/execution/v1/internal/deployment/platform_details_pb2.pyi,sha256=jogH_vPOywMvcctcqXKHEW0LyTCya0HAWo5nVP37jlM,769
|
694
|
+
frogml_proto/qwak/execution/v1/internal/deployment/platform_details_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
683
695
|
frogml_proto/qwak/execution/v1/jobs/job_pb2.py,sha256=zEoFcsydSpaHj0ZgeBUYNuk4cW5SL88w1sKzdkjjnNc,7709
|
684
696
|
frogml_proto/qwak/execution/v1/jobs/job_pb2.pyi,sha256=RjjrcuGwjDeWCzeQ2HizAnGCMn7_H3nGwlLFvtQP9iM,14998
|
685
697
|
frogml_proto/qwak/execution/v1/jobs/job_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
@@ -1067,6 +1079,6 @@ frogml_services_mock/mocks/workspace_manager_service_mock.py,sha256=WbOiWgOyr-xT
|
|
1067
1079
|
frogml_services_mock/services_mock.py,sha256=_34z6rFCHFwcSni-9eyJlrH264xsL_QDNmG-EBv0zMc,20281
|
1068
1080
|
frogml_services_mock/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1069
1081
|
frogml_services_mock/utils/service_utils.py,sha256=ZlB0CnB1J6oBn6_m7fQO2U8tKoboHdUa6ljjkRMYNXU,265
|
1070
|
-
frogml_core-0.0.
|
1071
|
-
frogml_core-0.0.
|
1072
|
-
frogml_core-0.0.
|
1082
|
+
frogml_core-0.0.59.dist-info/METADATA,sha256=2jY8VbbTprGW7V9Op4iANVxp_19gebi7IW-Ji5pnOhc,2004
|
1083
|
+
frogml_core-0.0.59.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
1084
|
+
frogml_core-0.0.59.dist-info/RECORD,,
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: frogml_proto.qwak.artifactory_settings/artifactory_settings.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
7
|
+
from google.protobuf import message as _message
|
8
|
+
from google.protobuf import reflection as _reflection
|
9
|
+
from google.protobuf import symbol_database as _symbol_database
|
10
|
+
# @@protoc_insertion_point(imports)
|
11
|
+
|
12
|
+
_sym_db = _symbol_database.Default()
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n4qwak/artifactory_settings/artifactory_settings.proto\x12\x1d\x63om.qwak.artifactory_settings\"\xbb\x01\n\x13\x41rtifactorySettings\x12!\n\x19\x63ontainer_registry_prefix\x18\x01 \x01(\t\x12 \n\x18internal_repository_name\x18\x02 \x01(\t\x12_\n\x16\x61uthentication_details\x18\x03 \x01(\x0b\x32?.com.qwak.artifactory_settings.ArtifactoryAuthenticationDetails\"V\n ArtifactoryAuthenticationDetails\x12\r\n\x05token\x18\x01 \x01(\t\x12\x10\n\x08username\x18\x02 \x01(\t\x12\x11\n\ttenant_id\x18\x03 \x01(\tB;\n\x1d\x63om.qwak.artifactory_settingsB\x18\x41rtifactorySettingsProtoP\x01\x62\x06proto3')
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
_ARTIFACTORYSETTINGS = DESCRIPTOR.message_types_by_name['ArtifactorySettings']
|
22
|
+
_ARTIFACTORYAUTHENTICATIONDETAILS = DESCRIPTOR.message_types_by_name['ArtifactoryAuthenticationDetails']
|
23
|
+
ArtifactorySettings = _reflection.GeneratedProtocolMessageType('ArtifactorySettings', (_message.Message,), {
|
24
|
+
'DESCRIPTOR' : _ARTIFACTORYSETTINGS,
|
25
|
+
'__module__' : 'qwak.artifactory_settings.artifactory_settings_pb2'
|
26
|
+
# @@protoc_insertion_point(class_scope:com.qwak.artifactory_settings.ArtifactorySettings)
|
27
|
+
})
|
28
|
+
_sym_db.RegisterMessage(ArtifactorySettings)
|
29
|
+
|
30
|
+
ArtifactoryAuthenticationDetails = _reflection.GeneratedProtocolMessageType('ArtifactoryAuthenticationDetails', (_message.Message,), {
|
31
|
+
'DESCRIPTOR' : _ARTIFACTORYAUTHENTICATIONDETAILS,
|
32
|
+
'__module__' : 'qwak.artifactory_settings.artifactory_settings_pb2'
|
33
|
+
# @@protoc_insertion_point(class_scope:com.qwak.artifactory_settings.ArtifactoryAuthenticationDetails)
|
34
|
+
})
|
35
|
+
_sym_db.RegisterMessage(ArtifactoryAuthenticationDetails)
|
36
|
+
|
37
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
38
|
+
|
39
|
+
DESCRIPTOR._options = None
|
40
|
+
DESCRIPTOR._serialized_options = b'\n\035com.qwak.artifactory_settingsB\030ArtifactorySettingsProtoP\001'
|
41
|
+
_ARTIFACTORYSETTINGS._serialized_start=88
|
42
|
+
_ARTIFACTORYSETTINGS._serialized_end=275
|
43
|
+
_ARTIFACTORYAUTHENTICATIONDETAILS._serialized_start=277
|
44
|
+
_ARTIFACTORYAUTHENTICATIONDETAILS._serialized_end=363
|
45
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,57 @@
|
|
1
|
+
"""
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
3
|
+
isort:skip_file
|
4
|
+
"""
|
5
|
+
import builtins
|
6
|
+
import google.protobuf.descriptor
|
7
|
+
import google.protobuf.message
|
8
|
+
import sys
|
9
|
+
|
10
|
+
if sys.version_info >= (3, 8):
|
11
|
+
import typing as typing_extensions
|
12
|
+
else:
|
13
|
+
import typing_extensions
|
14
|
+
|
15
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
16
|
+
|
17
|
+
class ArtifactorySettings(google.protobuf.message.Message):
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
19
|
+
|
20
|
+
CONTAINER_REGISTRY_PREFIX_FIELD_NUMBER: builtins.int
|
21
|
+
INTERNAL_REPOSITORY_NAME_FIELD_NUMBER: builtins.int
|
22
|
+
AUTHENTICATION_DETAILS_FIELD_NUMBER: builtins.int
|
23
|
+
container_registry_prefix: builtins.str
|
24
|
+
internal_repository_name: builtins.str
|
25
|
+
@property
|
26
|
+
def authentication_details(self) -> global___ArtifactoryAuthenticationDetails: ...
|
27
|
+
def __init__(
|
28
|
+
self,
|
29
|
+
*,
|
30
|
+
container_registry_prefix: builtins.str = ...,
|
31
|
+
internal_repository_name: builtins.str = ...,
|
32
|
+
authentication_details: global___ArtifactoryAuthenticationDetails | None = ...,
|
33
|
+
) -> None: ...
|
34
|
+
def HasField(self, field_name: typing_extensions.Literal["authentication_details", b"authentication_details"]) -> builtins.bool: ...
|
35
|
+
def ClearField(self, field_name: typing_extensions.Literal["authentication_details", b"authentication_details", "container_registry_prefix", b"container_registry_prefix", "internal_repository_name", b"internal_repository_name"]) -> None: ...
|
36
|
+
|
37
|
+
global___ArtifactorySettings = ArtifactorySettings
|
38
|
+
|
39
|
+
class ArtifactoryAuthenticationDetails(google.protobuf.message.Message):
|
40
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
41
|
+
|
42
|
+
TOKEN_FIELD_NUMBER: builtins.int
|
43
|
+
USERNAME_FIELD_NUMBER: builtins.int
|
44
|
+
TENANT_ID_FIELD_NUMBER: builtins.int
|
45
|
+
token: builtins.str
|
46
|
+
username: builtins.str
|
47
|
+
tenant_id: builtins.str
|
48
|
+
def __init__(
|
49
|
+
self,
|
50
|
+
*,
|
51
|
+
token: builtins.str = ...,
|
52
|
+
username: builtins.str = ...,
|
53
|
+
tenant_id: builtins.str = ...,
|
54
|
+
) -> None: ...
|
55
|
+
def ClearField(self, field_name: typing_extensions.Literal["tenant_id", b"tenant_id", "token", b"token", "username", b"username"]) -> None: ...
|
56
|
+
|
57
|
+
global___ArtifactoryAuthenticationDetails = ArtifactoryAuthenticationDetails
|
@@ -0,0 +1,176 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: frogml_proto.qwak.ecosystem/jfrog/v0/token.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
7
|
+
from google.protobuf import message as _message
|
8
|
+
from google.protobuf import reflection as _reflection
|
9
|
+
from google.protobuf import symbol_database as _symbol_database
|
10
|
+
# @@protoc_insertion_point(imports)
|
11
|
+
|
12
|
+
_sym_db = _symbol_database.Default()
|
13
|
+
|
14
|
+
|
15
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
16
|
+
|
17
|
+
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#qwak/ecosystem/jfrog/v0/token.proto\x12\x1dqwak.ecosystem.jfrog.token.v0\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa5\x01\n\nJFrogToken\x12G\n\ndefinition\x18\x01 \x01(\x0b\x32\x33.qwak.ecosystem.jfrog.token.v0.JFrogTokenDefinition\x12N\n\x0etenant_details\x18\x02 \x01(\x0b\x32\x36.qwak.ecosystem.jfrog.token.v0.JFrogTokenTenantDetails\"/\n\x17JFrogTokenTenantDetails\x12\x14\n\x0cplatform_url\x18\x01 \x01(\t\"\xe4\x01\n\x14JFrogTokenDefinition\x12\r\n\x05token\x18\x01 \x01(\t\x12\x17\n\rrefresh_token\x18\x02 \x01(\tH\x00\x12\x35\n\x0f\x65xpiration_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x12\x0f\n\x07subject\x18\x04 \x01(\t\x12\x14\n\x0csubject_name\x18\x05 \x01(\t\x12\x10\n\x08token_id\x18\x06 \x01(\tB\x18\n\x16optional_refresh_tokenB\x1a\n\x18optional_expiration_time\"\x8c\x02\n\x0eJFrogTokenSpec\x12\x17\n\x0fjfrog_tenant_id\x18\x01 \x01(\t\x12V\n\x18subject_and_scope_source\x18\x02 \x01(\x0b\x32\x34.qwak.ecosystem.jfrog.token.v0.SubjectAndScopeSource\x12\x45\n\taudiences\x18\x03 \x01(\x0b\x32\x32.qwak.ecosystem.jfrog.token.v0.JFrogTokenAudiences\x12\x42\n\x08ttl_spec\x18\x04 \x01(\x0b\x32\x30.qwak.ecosystem.jfrog.token.v0.JFrogTokenTTLSpec\"\x94\x01\n\x1d\x41rtifactoryImagePullTokenSpec\x12\x17\n\x0fjfrog_tenant_id\x18\x01 \x01(\t\x12\x16\n\x0erepository_key\x18\x02 \x01(\t\x12\x42\n\x08ttl_spec\x18\x03 \x01(\x0b\x32\x30.qwak.ecosystem.jfrog.token.v0.JFrogTokenTTLSpec\"@\n\x16PersistTokenClaimsSpec\x12\x17\n\x0fjfrog_tenant_id\x18\x01 \x01(\t\x12\r\n\x05token\x18\x02 \x01(\t\"m\n\x14JFrogTokenRevokeSpec\x12\x17\n\x0fjfrog_tenant_id\x18\x01 \x01(\t\x12\x0f\n\x05token\x18\x02 \x01(\tH\x00\x12\x12\n\x08token_id\x18\x03 \x01(\tH\x00\x42\x17\n\x15token_descriptor_type\"{\n\x11JFrogTokenTTLSpec\x12\x35\n\x0f\x65xpiration_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x13\n\x0brefreshable\x18\x02 \x01(\x08\x42\x1a\n\x18optional_expiration_time\"\x9b\x01\n\x15SubjectAndScopeSource\x12\x0f\n\x05token\x18\x01 \x01(\tH\x00\x12\x12\n\x08token_id\x18\x02 \x01(\tH\x00\x12S\n\x11subject_and_scope\x18\x03 \x01(\x0b\x32\x36.qwak.ecosystem.jfrog.token.v0.ExplicitSubjectAndScopeH\x00\x42\x08\n\x06source\"P\n\x17\x45xplicitSubjectAndScope\x12\x11\n\x07subject\x18\x01 \x01(\tH\x00\x12\x0e\n\x06scopes\x18\x02 \x01(\tB\x12\n\x10optional_subject\"[\n\x13JFrogTokenAudiences\x12\x44\n\taudiences\x18\x01 \x03(\x0b\x32\x31.qwak.ecosystem.jfrog.token.v0.JFrogTokenAudience\"\x86\x02\n\x12JFrogTokenAudience\x12L\n\x08jfrog_ml\x18\x01 \x01(\x0b\x32\x38.qwak.ecosystem.jfrog.token.v0.JFrogTokenAudienceJFrogMLH\x00\x12S\n\x0b\x61rtifactory\x18\x02 \x01(\x0b\x32<.qwak.ecosystem.jfrog.token.v0.JFrogTokenAudienceArtifactoryH\x00\x12\x45\n\x04xray\x18\x03 \x01(\x0b\x32\x35.qwak.ecosystem.jfrog.token.v0.JFrogTokenAudienceXRayH\x00\x42\x06\n\x04type\"\x1f\n\x1dJFrogTokenAudienceArtifactory\"\x18\n\x16JFrogTokenAudienceXRay\"\x1b\n\x19JFrogTokenAudienceJFrogMLB\xb7\x01\n\x1a\x63om.qwak.ai.jfrog.token.v0P\x01Z\x96\x01github.com/qwak-ai/qwak-platform/services/shared/java/libs/qwak-common/qwak-common-api/qwak-platform-ecosystem-api/pb/qwak/ecosystem/jfrog/v0;jfrog_v0b\x06proto3')
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
_JFROGTOKEN = DESCRIPTOR.message_types_by_name['JFrogToken']
|
23
|
+
_JFROGTOKENTENANTDETAILS = DESCRIPTOR.message_types_by_name['JFrogTokenTenantDetails']
|
24
|
+
_JFROGTOKENDEFINITION = DESCRIPTOR.message_types_by_name['JFrogTokenDefinition']
|
25
|
+
_JFROGTOKENSPEC = DESCRIPTOR.message_types_by_name['JFrogTokenSpec']
|
26
|
+
_ARTIFACTORYIMAGEPULLTOKENSPEC = DESCRIPTOR.message_types_by_name['ArtifactoryImagePullTokenSpec']
|
27
|
+
_PERSISTTOKENCLAIMSSPEC = DESCRIPTOR.message_types_by_name['PersistTokenClaimsSpec']
|
28
|
+
_JFROGTOKENREVOKESPEC = DESCRIPTOR.message_types_by_name['JFrogTokenRevokeSpec']
|
29
|
+
_JFROGTOKENTTLSPEC = DESCRIPTOR.message_types_by_name['JFrogTokenTTLSpec']
|
30
|
+
_SUBJECTANDSCOPESOURCE = DESCRIPTOR.message_types_by_name['SubjectAndScopeSource']
|
31
|
+
_EXPLICITSUBJECTANDSCOPE = DESCRIPTOR.message_types_by_name['ExplicitSubjectAndScope']
|
32
|
+
_JFROGTOKENAUDIENCES = DESCRIPTOR.message_types_by_name['JFrogTokenAudiences']
|
33
|
+
_JFROGTOKENAUDIENCE = DESCRIPTOR.message_types_by_name['JFrogTokenAudience']
|
34
|
+
_JFROGTOKENAUDIENCEARTIFACTORY = DESCRIPTOR.message_types_by_name['JFrogTokenAudienceArtifactory']
|
35
|
+
_JFROGTOKENAUDIENCEXRAY = DESCRIPTOR.message_types_by_name['JFrogTokenAudienceXRay']
|
36
|
+
_JFROGTOKENAUDIENCEJFROGML = DESCRIPTOR.message_types_by_name['JFrogTokenAudienceJFrogML']
|
37
|
+
JFrogToken = _reflection.GeneratedProtocolMessageType('JFrogToken', (_message.Message,), {
|
38
|
+
'DESCRIPTOR' : _JFROGTOKEN,
|
39
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_pb2'
|
40
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.JFrogToken)
|
41
|
+
})
|
42
|
+
_sym_db.RegisterMessage(JFrogToken)
|
43
|
+
|
44
|
+
JFrogTokenTenantDetails = _reflection.GeneratedProtocolMessageType('JFrogTokenTenantDetails', (_message.Message,), {
|
45
|
+
'DESCRIPTOR' : _JFROGTOKENTENANTDETAILS,
|
46
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_pb2'
|
47
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.JFrogTokenTenantDetails)
|
48
|
+
})
|
49
|
+
_sym_db.RegisterMessage(JFrogTokenTenantDetails)
|
50
|
+
|
51
|
+
JFrogTokenDefinition = _reflection.GeneratedProtocolMessageType('JFrogTokenDefinition', (_message.Message,), {
|
52
|
+
'DESCRIPTOR' : _JFROGTOKENDEFINITION,
|
53
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_pb2'
|
54
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.JFrogTokenDefinition)
|
55
|
+
})
|
56
|
+
_sym_db.RegisterMessage(JFrogTokenDefinition)
|
57
|
+
|
58
|
+
JFrogTokenSpec = _reflection.GeneratedProtocolMessageType('JFrogTokenSpec', (_message.Message,), {
|
59
|
+
'DESCRIPTOR' : _JFROGTOKENSPEC,
|
60
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_pb2'
|
61
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.JFrogTokenSpec)
|
62
|
+
})
|
63
|
+
_sym_db.RegisterMessage(JFrogTokenSpec)
|
64
|
+
|
65
|
+
ArtifactoryImagePullTokenSpec = _reflection.GeneratedProtocolMessageType('ArtifactoryImagePullTokenSpec', (_message.Message,), {
|
66
|
+
'DESCRIPTOR' : _ARTIFACTORYIMAGEPULLTOKENSPEC,
|
67
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_pb2'
|
68
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.ArtifactoryImagePullTokenSpec)
|
69
|
+
})
|
70
|
+
_sym_db.RegisterMessage(ArtifactoryImagePullTokenSpec)
|
71
|
+
|
72
|
+
PersistTokenClaimsSpec = _reflection.GeneratedProtocolMessageType('PersistTokenClaimsSpec', (_message.Message,), {
|
73
|
+
'DESCRIPTOR' : _PERSISTTOKENCLAIMSSPEC,
|
74
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_pb2'
|
75
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.PersistTokenClaimsSpec)
|
76
|
+
})
|
77
|
+
_sym_db.RegisterMessage(PersistTokenClaimsSpec)
|
78
|
+
|
79
|
+
JFrogTokenRevokeSpec = _reflection.GeneratedProtocolMessageType('JFrogTokenRevokeSpec', (_message.Message,), {
|
80
|
+
'DESCRIPTOR' : _JFROGTOKENREVOKESPEC,
|
81
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_pb2'
|
82
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.JFrogTokenRevokeSpec)
|
83
|
+
})
|
84
|
+
_sym_db.RegisterMessage(JFrogTokenRevokeSpec)
|
85
|
+
|
86
|
+
JFrogTokenTTLSpec = _reflection.GeneratedProtocolMessageType('JFrogTokenTTLSpec', (_message.Message,), {
|
87
|
+
'DESCRIPTOR' : _JFROGTOKENTTLSPEC,
|
88
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_pb2'
|
89
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.JFrogTokenTTLSpec)
|
90
|
+
})
|
91
|
+
_sym_db.RegisterMessage(JFrogTokenTTLSpec)
|
92
|
+
|
93
|
+
SubjectAndScopeSource = _reflection.GeneratedProtocolMessageType('SubjectAndScopeSource', (_message.Message,), {
|
94
|
+
'DESCRIPTOR' : _SUBJECTANDSCOPESOURCE,
|
95
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_pb2'
|
96
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.SubjectAndScopeSource)
|
97
|
+
})
|
98
|
+
_sym_db.RegisterMessage(SubjectAndScopeSource)
|
99
|
+
|
100
|
+
ExplicitSubjectAndScope = _reflection.GeneratedProtocolMessageType('ExplicitSubjectAndScope', (_message.Message,), {
|
101
|
+
'DESCRIPTOR' : _EXPLICITSUBJECTANDSCOPE,
|
102
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_pb2'
|
103
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.ExplicitSubjectAndScope)
|
104
|
+
})
|
105
|
+
_sym_db.RegisterMessage(ExplicitSubjectAndScope)
|
106
|
+
|
107
|
+
JFrogTokenAudiences = _reflection.GeneratedProtocolMessageType('JFrogTokenAudiences', (_message.Message,), {
|
108
|
+
'DESCRIPTOR' : _JFROGTOKENAUDIENCES,
|
109
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_pb2'
|
110
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.JFrogTokenAudiences)
|
111
|
+
})
|
112
|
+
_sym_db.RegisterMessage(JFrogTokenAudiences)
|
113
|
+
|
114
|
+
JFrogTokenAudience = _reflection.GeneratedProtocolMessageType('JFrogTokenAudience', (_message.Message,), {
|
115
|
+
'DESCRIPTOR' : _JFROGTOKENAUDIENCE,
|
116
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_pb2'
|
117
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.JFrogTokenAudience)
|
118
|
+
})
|
119
|
+
_sym_db.RegisterMessage(JFrogTokenAudience)
|
120
|
+
|
121
|
+
JFrogTokenAudienceArtifactory = _reflection.GeneratedProtocolMessageType('JFrogTokenAudienceArtifactory', (_message.Message,), {
|
122
|
+
'DESCRIPTOR' : _JFROGTOKENAUDIENCEARTIFACTORY,
|
123
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_pb2'
|
124
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.JFrogTokenAudienceArtifactory)
|
125
|
+
})
|
126
|
+
_sym_db.RegisterMessage(JFrogTokenAudienceArtifactory)
|
127
|
+
|
128
|
+
JFrogTokenAudienceXRay = _reflection.GeneratedProtocolMessageType('JFrogTokenAudienceXRay', (_message.Message,), {
|
129
|
+
'DESCRIPTOR' : _JFROGTOKENAUDIENCEXRAY,
|
130
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_pb2'
|
131
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.JFrogTokenAudienceXRay)
|
132
|
+
})
|
133
|
+
_sym_db.RegisterMessage(JFrogTokenAudienceXRay)
|
134
|
+
|
135
|
+
JFrogTokenAudienceJFrogML = _reflection.GeneratedProtocolMessageType('JFrogTokenAudienceJFrogML', (_message.Message,), {
|
136
|
+
'DESCRIPTOR' : _JFROGTOKENAUDIENCEJFROGML,
|
137
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_pb2'
|
138
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.JFrogTokenAudienceJFrogML)
|
139
|
+
})
|
140
|
+
_sym_db.RegisterMessage(JFrogTokenAudienceJFrogML)
|
141
|
+
|
142
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
143
|
+
|
144
|
+
DESCRIPTOR._options = None
|
145
|
+
DESCRIPTOR._serialized_options = b'\n\032com.qwak.ai.jfrog.token.v0P\001Z\226\001github.com/qwak-ai/qwak-platform/services/shared/java/libs/qwak-common/qwak-common-api/qwak-platform-ecosystem-api/pb/qwak/ecosystem/jfrog/v0;jfrog_v0'
|
146
|
+
_JFROGTOKEN._serialized_start=104
|
147
|
+
_JFROGTOKEN._serialized_end=269
|
148
|
+
_JFROGTOKENTENANTDETAILS._serialized_start=271
|
149
|
+
_JFROGTOKENTENANTDETAILS._serialized_end=318
|
150
|
+
_JFROGTOKENDEFINITION._serialized_start=321
|
151
|
+
_JFROGTOKENDEFINITION._serialized_end=549
|
152
|
+
_JFROGTOKENSPEC._serialized_start=552
|
153
|
+
_JFROGTOKENSPEC._serialized_end=820
|
154
|
+
_ARTIFACTORYIMAGEPULLTOKENSPEC._serialized_start=823
|
155
|
+
_ARTIFACTORYIMAGEPULLTOKENSPEC._serialized_end=971
|
156
|
+
_PERSISTTOKENCLAIMSSPEC._serialized_start=973
|
157
|
+
_PERSISTTOKENCLAIMSSPEC._serialized_end=1037
|
158
|
+
_JFROGTOKENREVOKESPEC._serialized_start=1039
|
159
|
+
_JFROGTOKENREVOKESPEC._serialized_end=1148
|
160
|
+
_JFROGTOKENTTLSPEC._serialized_start=1150
|
161
|
+
_JFROGTOKENTTLSPEC._serialized_end=1273
|
162
|
+
_SUBJECTANDSCOPESOURCE._serialized_start=1276
|
163
|
+
_SUBJECTANDSCOPESOURCE._serialized_end=1431
|
164
|
+
_EXPLICITSUBJECTANDSCOPE._serialized_start=1433
|
165
|
+
_EXPLICITSUBJECTANDSCOPE._serialized_end=1513
|
166
|
+
_JFROGTOKENAUDIENCES._serialized_start=1515
|
167
|
+
_JFROGTOKENAUDIENCES._serialized_end=1606
|
168
|
+
_JFROGTOKENAUDIENCE._serialized_start=1609
|
169
|
+
_JFROGTOKENAUDIENCE._serialized_end=1871
|
170
|
+
_JFROGTOKENAUDIENCEARTIFACTORY._serialized_start=1873
|
171
|
+
_JFROGTOKENAUDIENCEARTIFACTORY._serialized_end=1904
|
172
|
+
_JFROGTOKENAUDIENCEXRAY._serialized_start=1906
|
173
|
+
_JFROGTOKENAUDIENCEXRAY._serialized_end=1930
|
174
|
+
_JFROGTOKENAUDIENCEJFROGML._serialized_start=1932
|
175
|
+
_JFROGTOKENAUDIENCEJFROGML._serialized_end=1959
|
176
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,360 @@
|
|
1
|
+
"""
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
3
|
+
isort:skip_file
|
4
|
+
"""
|
5
|
+
import builtins
|
6
|
+
import collections.abc
|
7
|
+
import google.protobuf.descriptor
|
8
|
+
import google.protobuf.internal.containers
|
9
|
+
import google.protobuf.message
|
10
|
+
import google.protobuf.timestamp_pb2
|
11
|
+
import sys
|
12
|
+
import typing
|
13
|
+
|
14
|
+
if sys.version_info >= (3, 8):
|
15
|
+
import typing as typing_extensions
|
16
|
+
else:
|
17
|
+
import typing_extensions
|
18
|
+
|
19
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
20
|
+
|
21
|
+
class JFrogToken(google.protobuf.message.Message):
|
22
|
+
"""//////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
23
|
+
definition
|
24
|
+
"""
|
25
|
+
|
26
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
27
|
+
|
28
|
+
DEFINITION_FIELD_NUMBER: builtins.int
|
29
|
+
TENANT_DETAILS_FIELD_NUMBER: builtins.int
|
30
|
+
@property
|
31
|
+
def definition(self) -> global___JFrogTokenDefinition:
|
32
|
+
"""Token definition"""
|
33
|
+
@property
|
34
|
+
def tenant_details(self) -> global___JFrogTokenTenantDetails:
|
35
|
+
"""JFrog Tenant details"""
|
36
|
+
def __init__(
|
37
|
+
self,
|
38
|
+
*,
|
39
|
+
definition: global___JFrogTokenDefinition | None = ...,
|
40
|
+
tenant_details: global___JFrogTokenTenantDetails | None = ...,
|
41
|
+
) -> None: ...
|
42
|
+
def HasField(self, field_name: typing_extensions.Literal["definition", b"definition", "tenant_details", b"tenant_details"]) -> builtins.bool: ...
|
43
|
+
def ClearField(self, field_name: typing_extensions.Literal["definition", b"definition", "tenant_details", b"tenant_details"]) -> None: ...
|
44
|
+
|
45
|
+
global___JFrogToken = JFrogToken
|
46
|
+
|
47
|
+
class JFrogTokenTenantDetails(google.protobuf.message.Message):
|
48
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
49
|
+
|
50
|
+
PLATFORM_URL_FIELD_NUMBER: builtins.int
|
51
|
+
platform_url: builtins.str
|
52
|
+
"""Tenant platform url"""
|
53
|
+
def __init__(
|
54
|
+
self,
|
55
|
+
*,
|
56
|
+
platform_url: builtins.str = ...,
|
57
|
+
) -> None: ...
|
58
|
+
def ClearField(self, field_name: typing_extensions.Literal["platform_url", b"platform_url"]) -> None: ...
|
59
|
+
|
60
|
+
global___JFrogTokenTenantDetails = JFrogTokenTenantDetails
|
61
|
+
|
62
|
+
class JFrogTokenDefinition(google.protobuf.message.Message):
|
63
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
64
|
+
|
65
|
+
TOKEN_FIELD_NUMBER: builtins.int
|
66
|
+
REFRESH_TOKEN_FIELD_NUMBER: builtins.int
|
67
|
+
EXPIRATION_TIME_FIELD_NUMBER: builtins.int
|
68
|
+
SUBJECT_FIELD_NUMBER: builtins.int
|
69
|
+
SUBJECT_NAME_FIELD_NUMBER: builtins.int
|
70
|
+
TOKEN_ID_FIELD_NUMBER: builtins.int
|
71
|
+
token: builtins.str
|
72
|
+
"""The generated token"""
|
73
|
+
refresh_token: builtins.str
|
74
|
+
@property
|
75
|
+
def expiration_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
76
|
+
subject: builtins.str
|
77
|
+
"""Token subject"""
|
78
|
+
subject_name: builtins.str
|
79
|
+
"""Token subject name
|
80
|
+
For users: username, otherwise subject
|
81
|
+
(use this as the username for docker login)
|
82
|
+
"""
|
83
|
+
token_id: builtins.str
|
84
|
+
"""Token Id"""
|
85
|
+
def __init__(
|
86
|
+
self,
|
87
|
+
*,
|
88
|
+
token: builtins.str = ...,
|
89
|
+
refresh_token: builtins.str = ...,
|
90
|
+
expiration_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
91
|
+
subject: builtins.str = ...,
|
92
|
+
subject_name: builtins.str = ...,
|
93
|
+
token_id: builtins.str = ...,
|
94
|
+
) -> None: ...
|
95
|
+
def HasField(self, field_name: typing_extensions.Literal["expiration_time", b"expiration_time", "optional_expiration_time", b"optional_expiration_time", "optional_refresh_token", b"optional_refresh_token", "refresh_token", b"refresh_token"]) -> builtins.bool: ...
|
96
|
+
def ClearField(self, field_name: typing_extensions.Literal["expiration_time", b"expiration_time", "optional_expiration_time", b"optional_expiration_time", "optional_refresh_token", b"optional_refresh_token", "refresh_token", b"refresh_token", "subject", b"subject", "subject_name", b"subject_name", "token", b"token", "token_id", b"token_id"]) -> None: ...
|
97
|
+
@typing.overload
|
98
|
+
def WhichOneof(self, oneof_group: typing_extensions.Literal["optional_expiration_time", b"optional_expiration_time"]) -> typing_extensions.Literal["expiration_time"] | None: ...
|
99
|
+
@typing.overload
|
100
|
+
def WhichOneof(self, oneof_group: typing_extensions.Literal["optional_refresh_token", b"optional_refresh_token"]) -> typing_extensions.Literal["refresh_token"] | None: ...
|
101
|
+
|
102
|
+
global___JFrogTokenDefinition = JFrogTokenDefinition
|
103
|
+
|
104
|
+
class JFrogTokenSpec(google.protobuf.message.Message):
|
105
|
+
"""//////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
106
|
+
spec
|
107
|
+
"""
|
108
|
+
|
109
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
110
|
+
|
111
|
+
JFROG_TENANT_ID_FIELD_NUMBER: builtins.int
|
112
|
+
SUBJECT_AND_SCOPE_SOURCE_FIELD_NUMBER: builtins.int
|
113
|
+
AUDIENCES_FIELD_NUMBER: builtins.int
|
114
|
+
TTL_SPEC_FIELD_NUMBER: builtins.int
|
115
|
+
jfrog_tenant_id: builtins.str
|
116
|
+
"""JFrog tenant id"""
|
117
|
+
@property
|
118
|
+
def subject_and_scope_source(self) -> global___SubjectAndScopeSource:
|
119
|
+
"""Subject and scope source"""
|
120
|
+
@property
|
121
|
+
def audiences(self) -> global___JFrogTokenAudiences:
|
122
|
+
"""Audiences
|
123
|
+
Optional, if empty- *@* will be used
|
124
|
+
"""
|
125
|
+
@property
|
126
|
+
def ttl_spec(self) -> global___JFrogTokenTTLSpec:
|
127
|
+
"""Ttl spec"""
|
128
|
+
def __init__(
|
129
|
+
self,
|
130
|
+
*,
|
131
|
+
jfrog_tenant_id: builtins.str = ...,
|
132
|
+
subject_and_scope_source: global___SubjectAndScopeSource | None = ...,
|
133
|
+
audiences: global___JFrogTokenAudiences | None = ...,
|
134
|
+
ttl_spec: global___JFrogTokenTTLSpec | None = ...,
|
135
|
+
) -> None: ...
|
136
|
+
def HasField(self, field_name: typing_extensions.Literal["audiences", b"audiences", "subject_and_scope_source", b"subject_and_scope_source", "ttl_spec", b"ttl_spec"]) -> builtins.bool: ...
|
137
|
+
def ClearField(self, field_name: typing_extensions.Literal["audiences", b"audiences", "jfrog_tenant_id", b"jfrog_tenant_id", "subject_and_scope_source", b"subject_and_scope_source", "ttl_spec", b"ttl_spec"]) -> None: ...
|
138
|
+
|
139
|
+
global___JFrogTokenSpec = JFrogTokenSpec
|
140
|
+
|
141
|
+
class ArtifactoryImagePullTokenSpec(google.protobuf.message.Message):
|
142
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
143
|
+
|
144
|
+
JFROG_TENANT_ID_FIELD_NUMBER: builtins.int
|
145
|
+
REPOSITORY_KEY_FIELD_NUMBER: builtins.int
|
146
|
+
TTL_SPEC_FIELD_NUMBER: builtins.int
|
147
|
+
jfrog_tenant_id: builtins.str
|
148
|
+
"""JFrog tenant id"""
|
149
|
+
repository_key: builtins.str
|
150
|
+
"""Artifactory repository key"""
|
151
|
+
@property
|
152
|
+
def ttl_spec(self) -> global___JFrogTokenTTLSpec:
|
153
|
+
"""Ttl spec"""
|
154
|
+
def __init__(
|
155
|
+
self,
|
156
|
+
*,
|
157
|
+
jfrog_tenant_id: builtins.str = ...,
|
158
|
+
repository_key: builtins.str = ...,
|
159
|
+
ttl_spec: global___JFrogTokenTTLSpec | None = ...,
|
160
|
+
) -> None: ...
|
161
|
+
def HasField(self, field_name: typing_extensions.Literal["ttl_spec", b"ttl_spec"]) -> builtins.bool: ...
|
162
|
+
def ClearField(self, field_name: typing_extensions.Literal["jfrog_tenant_id", b"jfrog_tenant_id", "repository_key", b"repository_key", "ttl_spec", b"ttl_spec"]) -> None: ...
|
163
|
+
|
164
|
+
global___ArtifactoryImagePullTokenSpec = ArtifactoryImagePullTokenSpec
|
165
|
+
|
166
|
+
class PersistTokenClaimsSpec(google.protobuf.message.Message):
|
167
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
168
|
+
|
169
|
+
JFROG_TENANT_ID_FIELD_NUMBER: builtins.int
|
170
|
+
TOKEN_FIELD_NUMBER: builtins.int
|
171
|
+
jfrog_tenant_id: builtins.str
|
172
|
+
"""JFrog tenant id"""
|
173
|
+
token: builtins.str
|
174
|
+
"""Token to persist"""
|
175
|
+
def __init__(
|
176
|
+
self,
|
177
|
+
*,
|
178
|
+
jfrog_tenant_id: builtins.str = ...,
|
179
|
+
token: builtins.str = ...,
|
180
|
+
) -> None: ...
|
181
|
+
def ClearField(self, field_name: typing_extensions.Literal["jfrog_tenant_id", b"jfrog_tenant_id", "token", b"token"]) -> None: ...
|
182
|
+
|
183
|
+
global___PersistTokenClaimsSpec = PersistTokenClaimsSpec
|
184
|
+
|
185
|
+
class JFrogTokenRevokeSpec(google.protobuf.message.Message):
|
186
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
187
|
+
|
188
|
+
JFROG_TENANT_ID_FIELD_NUMBER: builtins.int
|
189
|
+
TOKEN_FIELD_NUMBER: builtins.int
|
190
|
+
TOKEN_ID_FIELD_NUMBER: builtins.int
|
191
|
+
jfrog_tenant_id: builtins.str
|
192
|
+
"""JFrog tenant id"""
|
193
|
+
token: builtins.str
|
194
|
+
"""Revoke by explicit token"""
|
195
|
+
token_id: builtins.str
|
196
|
+
"""Revoke by token id"""
|
197
|
+
def __init__(
|
198
|
+
self,
|
199
|
+
*,
|
200
|
+
jfrog_tenant_id: builtins.str = ...,
|
201
|
+
token: builtins.str = ...,
|
202
|
+
token_id: builtins.str = ...,
|
203
|
+
) -> None: ...
|
204
|
+
def HasField(self, field_name: typing_extensions.Literal["token", b"token", "token_descriptor_type", b"token_descriptor_type", "token_id", b"token_id"]) -> builtins.bool: ...
|
205
|
+
def ClearField(self, field_name: typing_extensions.Literal["jfrog_tenant_id", b"jfrog_tenant_id", "token", b"token", "token_descriptor_type", b"token_descriptor_type", "token_id", b"token_id"]) -> None: ...
|
206
|
+
def WhichOneof(self, oneof_group: typing_extensions.Literal["token_descriptor_type", b"token_descriptor_type"]) -> typing_extensions.Literal["token", "token_id"] | None: ...
|
207
|
+
|
208
|
+
global___JFrogTokenRevokeSpec = JFrogTokenRevokeSpec
|
209
|
+
|
210
|
+
class JFrogTokenTTLSpec(google.protobuf.message.Message):
|
211
|
+
"""//////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
212
|
+
ttl spec
|
213
|
+
"""
|
214
|
+
|
215
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
216
|
+
|
217
|
+
EXPIRATION_TIME_FIELD_NUMBER: builtins.int
|
218
|
+
REFRESHABLE_FIELD_NUMBER: builtins.int
|
219
|
+
@property
|
220
|
+
def expiration_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
221
|
+
refreshable: builtins.bool
|
222
|
+
"""Is token refreshable.
|
223
|
+
If true, a refresh token will be added to the response
|
224
|
+
"""
|
225
|
+
def __init__(
|
226
|
+
self,
|
227
|
+
*,
|
228
|
+
expiration_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
229
|
+
refreshable: builtins.bool = ...,
|
230
|
+
) -> None: ...
|
231
|
+
def HasField(self, field_name: typing_extensions.Literal["expiration_time", b"expiration_time", "optional_expiration_time", b"optional_expiration_time"]) -> builtins.bool: ...
|
232
|
+
def ClearField(self, field_name: typing_extensions.Literal["expiration_time", b"expiration_time", "optional_expiration_time", b"optional_expiration_time", "refreshable", b"refreshable"]) -> None: ...
|
233
|
+
def WhichOneof(self, oneof_group: typing_extensions.Literal["optional_expiration_time", b"optional_expiration_time"]) -> typing_extensions.Literal["expiration_time"] | None: ...
|
234
|
+
|
235
|
+
global___JFrogTokenTTLSpec = JFrogTokenTTLSpec
|
236
|
+
|
237
|
+
class SubjectAndScopeSource(google.protobuf.message.Message):
|
238
|
+
"""//////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
239
|
+
subject & scope
|
240
|
+
"""
|
241
|
+
|
242
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
243
|
+
|
244
|
+
TOKEN_FIELD_NUMBER: builtins.int
|
245
|
+
TOKEN_ID_FIELD_NUMBER: builtins.int
|
246
|
+
SUBJECT_AND_SCOPE_FIELD_NUMBER: builtins.int
|
247
|
+
token: builtins.str
|
248
|
+
"""Subject and scope will be derived from the claims of the given token"""
|
249
|
+
token_id: builtins.str
|
250
|
+
"""Subject and scope will be derived from the claims of the token represented by the given token_id"""
|
251
|
+
@property
|
252
|
+
def subject_and_scope(self) -> global___ExplicitSubjectAndScope:
|
253
|
+
"""Explicit Subject and scope"""
|
254
|
+
def __init__(
|
255
|
+
self,
|
256
|
+
*,
|
257
|
+
token: builtins.str = ...,
|
258
|
+
token_id: builtins.str = ...,
|
259
|
+
subject_and_scope: global___ExplicitSubjectAndScope | None = ...,
|
260
|
+
) -> None: ...
|
261
|
+
def HasField(self, field_name: typing_extensions.Literal["source", b"source", "subject_and_scope", b"subject_and_scope", "token", b"token", "token_id", b"token_id"]) -> builtins.bool: ...
|
262
|
+
def ClearField(self, field_name: typing_extensions.Literal["source", b"source", "subject_and_scope", b"subject_and_scope", "token", b"token", "token_id", b"token_id"]) -> None: ...
|
263
|
+
def WhichOneof(self, oneof_group: typing_extensions.Literal["source", b"source"]) -> typing_extensions.Literal["token", "token_id", "subject_and_scope"] | None: ...
|
264
|
+
|
265
|
+
global___SubjectAndScopeSource = SubjectAndScopeSource
|
266
|
+
|
267
|
+
class ExplicitSubjectAndScope(google.protobuf.message.Message):
|
268
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
269
|
+
|
270
|
+
SUBJECT_FIELD_NUMBER: builtins.int
|
271
|
+
SCOPES_FIELD_NUMBER: builtins.int
|
272
|
+
subject: builtins.str
|
273
|
+
scopes: builtins.str
|
274
|
+
"""The requested space separated scopes"""
|
275
|
+
def __init__(
|
276
|
+
self,
|
277
|
+
*,
|
278
|
+
subject: builtins.str = ...,
|
279
|
+
scopes: builtins.str = ...,
|
280
|
+
) -> None: ...
|
281
|
+
def HasField(self, field_name: typing_extensions.Literal["optional_subject", b"optional_subject", "subject", b"subject"]) -> builtins.bool: ...
|
282
|
+
def ClearField(self, field_name: typing_extensions.Literal["optional_subject", b"optional_subject", "scopes", b"scopes", "subject", b"subject"]) -> None: ...
|
283
|
+
def WhichOneof(self, oneof_group: typing_extensions.Literal["optional_subject", b"optional_subject"]) -> typing_extensions.Literal["subject"] | None: ...
|
284
|
+
|
285
|
+
global___ExplicitSubjectAndScope = ExplicitSubjectAndScope
|
286
|
+
|
287
|
+
class JFrogTokenAudiences(google.protobuf.message.Message):
|
288
|
+
"""//////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
289
|
+
audience
|
290
|
+
"""
|
291
|
+
|
292
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
293
|
+
|
294
|
+
AUDIENCES_FIELD_NUMBER: builtins.int
|
295
|
+
@property
|
296
|
+
def audiences(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___JFrogTokenAudience]:
|
297
|
+
"""Token audiences"""
|
298
|
+
def __init__(
|
299
|
+
self,
|
300
|
+
*,
|
301
|
+
audiences: collections.abc.Iterable[global___JFrogTokenAudience] | None = ...,
|
302
|
+
) -> None: ...
|
303
|
+
def ClearField(self, field_name: typing_extensions.Literal["audiences", b"audiences"]) -> None: ...
|
304
|
+
|
305
|
+
global___JFrogTokenAudiences = JFrogTokenAudiences
|
306
|
+
|
307
|
+
class JFrogTokenAudience(google.protobuf.message.Message):
|
308
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
309
|
+
|
310
|
+
JFROG_ML_FIELD_NUMBER: builtins.int
|
311
|
+
ARTIFACTORY_FIELD_NUMBER: builtins.int
|
312
|
+
XRAY_FIELD_NUMBER: builtins.int
|
313
|
+
@property
|
314
|
+
def jfrog_ml(self) -> global___JFrogTokenAudienceJFrogML:
|
315
|
+
"""JFrogML audience"""
|
316
|
+
@property
|
317
|
+
def artifactory(self) -> global___JFrogTokenAudienceArtifactory:
|
318
|
+
"""Artifactory audience"""
|
319
|
+
@property
|
320
|
+
def xray(self) -> global___JFrogTokenAudienceXRay:
|
321
|
+
"""XRay audience"""
|
322
|
+
def __init__(
|
323
|
+
self,
|
324
|
+
*,
|
325
|
+
jfrog_ml: global___JFrogTokenAudienceJFrogML | None = ...,
|
326
|
+
artifactory: global___JFrogTokenAudienceArtifactory | None = ...,
|
327
|
+
xray: global___JFrogTokenAudienceXRay | None = ...,
|
328
|
+
) -> None: ...
|
329
|
+
def HasField(self, field_name: typing_extensions.Literal["artifactory", b"artifactory", "jfrog_ml", b"jfrog_ml", "type", b"type", "xray", b"xray"]) -> builtins.bool: ...
|
330
|
+
def ClearField(self, field_name: typing_extensions.Literal["artifactory", b"artifactory", "jfrog_ml", b"jfrog_ml", "type", b"type", "xray", b"xray"]) -> None: ...
|
331
|
+
def WhichOneof(self, oneof_group: typing_extensions.Literal["type", b"type"]) -> typing_extensions.Literal["jfrog_ml", "artifactory", "xray"] | None: ...
|
332
|
+
|
333
|
+
global___JFrogTokenAudience = JFrogTokenAudience
|
334
|
+
|
335
|
+
class JFrogTokenAudienceArtifactory(google.protobuf.message.Message):
|
336
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
337
|
+
|
338
|
+
def __init__(
|
339
|
+
self,
|
340
|
+
) -> None: ...
|
341
|
+
|
342
|
+
global___JFrogTokenAudienceArtifactory = JFrogTokenAudienceArtifactory
|
343
|
+
|
344
|
+
class JFrogTokenAudienceXRay(google.protobuf.message.Message):
|
345
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
346
|
+
|
347
|
+
def __init__(
|
348
|
+
self,
|
349
|
+
) -> None: ...
|
350
|
+
|
351
|
+
global___JFrogTokenAudienceXRay = JFrogTokenAudienceXRay
|
352
|
+
|
353
|
+
class JFrogTokenAudienceJFrogML(google.protobuf.message.Message):
|
354
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
355
|
+
|
356
|
+
def __init__(
|
357
|
+
self,
|
358
|
+
) -> None: ...
|
359
|
+
|
360
|
+
global___JFrogTokenAudienceJFrogML = JFrogTokenAudienceJFrogML
|
@@ -0,0 +1,109 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: frogml_proto.qwak.ecosystem/jfrog/v0/token_service.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
7
|
+
from google.protobuf import message as _message
|
8
|
+
from google.protobuf import reflection as _reflection
|
9
|
+
from google.protobuf import symbol_database as _symbol_database
|
10
|
+
# @@protoc_insertion_point(imports)
|
11
|
+
|
12
|
+
_sym_db = _symbol_database.Default()
|
13
|
+
|
14
|
+
|
15
|
+
from frogml_proto.qwak.ecosystem.jfrog.v0 import token_pb2 as qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__pb2
|
16
|
+
|
17
|
+
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+qwak/ecosystem/jfrog/v0/token_service.proto\x12\x1dqwak.ecosystem.jfrog.token.v0\x1a#qwak/ecosystem/jfrog/v0/token.proto\"Y\n\x14GenerateTokenRequest\x12\x41\n\ntoken_spec\x18\x01 \x01(\x0b\x32-.qwak.ecosystem.jfrog.token.v0.JFrogTokenSpec\"Q\n\x15GenerateTokenResponse\x12\x38\n\x05token\x18\x01 \x01(\x0b\x32).qwak.ecosystem.jfrog.token.v0.JFrogToken\"|\n(GenerateArtifactoryImagePullTokenRequest\x12P\n\ntoken_spec\x18\x01 \x01(\x0b\x32<.qwak.ecosystem.jfrog.token.v0.ArtifactoryImagePullTokenSpec\"e\n)GenerateArtifactoryImagePullTokenResponse\x12\x38\n\x05token\x18\x01 \x01(\x0b\x32).qwak.ecosystem.jfrog.token.v0.JFrogToken\"`\n\x19PersistTokenClaimsRequest\x12\x43\n\x04spec\x18\x01 \x01(\x0b\x32\x35.qwak.ecosystem.jfrog.token.v0.PersistTokenClaimsSpec\".\n\x1aPersistTokenClaimsResponse\x12\x10\n\x08token_id\x18\x01 \x01(\t\"d\n\x12RevokeTokenRequest\x12N\n\x11token_revoke_spec\x18\x01 \x01(\x0b\x32\x33.qwak.ecosystem.jfrog.token.v0.JFrogTokenRevokeSpec\"\x1c\n\x1aRevokeTokenRequestResponse2\xcc\x04\n\x0cTokenService\x12z\n\rGenerateToken\x12\x33.qwak.ecosystem.jfrog.token.v0.GenerateTokenRequest\x1a\x34.qwak.ecosystem.jfrog.token.v0.GenerateTokenResponse\x12\xb6\x01\n!GenerateArtifactoryImagePullToken\x12G.qwak.ecosystem.jfrog.token.v0.GenerateArtifactoryImagePullTokenRequest\x1aH.qwak.ecosystem.jfrog.token.v0.GenerateArtifactoryImagePullTokenResponse\x12\x89\x01\n\x12PersistTokenClaims\x12\x38.qwak.ecosystem.jfrog.token.v0.PersistTokenClaimsRequest\x1a\x39.qwak.ecosystem.jfrog.token.v0.PersistTokenClaimsResponse\x12{\n\x0bRevokeToken\x12\x31.qwak.ecosystem.jfrog.token.v0.RevokeTokenRequest\x1a\x39.qwak.ecosystem.jfrog.token.v0.RevokeTokenRequestResponseB\xb7\x01\n\x1a\x63om.qwak.ai.jfrog.token.v0P\x01Z\x96\x01github.com/qwak-ai/qwak-platform/services/shared/java/libs/qwak-common/qwak-common-api/qwak-platform-ecosystem-api/pb/qwak/ecosystem/jfrog/v0;jfrog_v0b\x06proto3')
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
_GENERATETOKENREQUEST = DESCRIPTOR.message_types_by_name['GenerateTokenRequest']
|
23
|
+
_GENERATETOKENRESPONSE = DESCRIPTOR.message_types_by_name['GenerateTokenResponse']
|
24
|
+
_GENERATEARTIFACTORYIMAGEPULLTOKENREQUEST = DESCRIPTOR.message_types_by_name['GenerateArtifactoryImagePullTokenRequest']
|
25
|
+
_GENERATEARTIFACTORYIMAGEPULLTOKENRESPONSE = DESCRIPTOR.message_types_by_name['GenerateArtifactoryImagePullTokenResponse']
|
26
|
+
_PERSISTTOKENCLAIMSREQUEST = DESCRIPTOR.message_types_by_name['PersistTokenClaimsRequest']
|
27
|
+
_PERSISTTOKENCLAIMSRESPONSE = DESCRIPTOR.message_types_by_name['PersistTokenClaimsResponse']
|
28
|
+
_REVOKETOKENREQUEST = DESCRIPTOR.message_types_by_name['RevokeTokenRequest']
|
29
|
+
_REVOKETOKENREQUESTRESPONSE = DESCRIPTOR.message_types_by_name['RevokeTokenRequestResponse']
|
30
|
+
GenerateTokenRequest = _reflection.GeneratedProtocolMessageType('GenerateTokenRequest', (_message.Message,), {
|
31
|
+
'DESCRIPTOR' : _GENERATETOKENREQUEST,
|
32
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_service_pb2'
|
33
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.GenerateTokenRequest)
|
34
|
+
})
|
35
|
+
_sym_db.RegisterMessage(GenerateTokenRequest)
|
36
|
+
|
37
|
+
GenerateTokenResponse = _reflection.GeneratedProtocolMessageType('GenerateTokenResponse', (_message.Message,), {
|
38
|
+
'DESCRIPTOR' : _GENERATETOKENRESPONSE,
|
39
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_service_pb2'
|
40
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.GenerateTokenResponse)
|
41
|
+
})
|
42
|
+
_sym_db.RegisterMessage(GenerateTokenResponse)
|
43
|
+
|
44
|
+
GenerateArtifactoryImagePullTokenRequest = _reflection.GeneratedProtocolMessageType('GenerateArtifactoryImagePullTokenRequest', (_message.Message,), {
|
45
|
+
'DESCRIPTOR' : _GENERATEARTIFACTORYIMAGEPULLTOKENREQUEST,
|
46
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_service_pb2'
|
47
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.GenerateArtifactoryImagePullTokenRequest)
|
48
|
+
})
|
49
|
+
_sym_db.RegisterMessage(GenerateArtifactoryImagePullTokenRequest)
|
50
|
+
|
51
|
+
GenerateArtifactoryImagePullTokenResponse = _reflection.GeneratedProtocolMessageType('GenerateArtifactoryImagePullTokenResponse', (_message.Message,), {
|
52
|
+
'DESCRIPTOR' : _GENERATEARTIFACTORYIMAGEPULLTOKENRESPONSE,
|
53
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_service_pb2'
|
54
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.GenerateArtifactoryImagePullTokenResponse)
|
55
|
+
})
|
56
|
+
_sym_db.RegisterMessage(GenerateArtifactoryImagePullTokenResponse)
|
57
|
+
|
58
|
+
PersistTokenClaimsRequest = _reflection.GeneratedProtocolMessageType('PersistTokenClaimsRequest', (_message.Message,), {
|
59
|
+
'DESCRIPTOR' : _PERSISTTOKENCLAIMSREQUEST,
|
60
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_service_pb2'
|
61
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.PersistTokenClaimsRequest)
|
62
|
+
})
|
63
|
+
_sym_db.RegisterMessage(PersistTokenClaimsRequest)
|
64
|
+
|
65
|
+
PersistTokenClaimsResponse = _reflection.GeneratedProtocolMessageType('PersistTokenClaimsResponse', (_message.Message,), {
|
66
|
+
'DESCRIPTOR' : _PERSISTTOKENCLAIMSRESPONSE,
|
67
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_service_pb2'
|
68
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.PersistTokenClaimsResponse)
|
69
|
+
})
|
70
|
+
_sym_db.RegisterMessage(PersistTokenClaimsResponse)
|
71
|
+
|
72
|
+
RevokeTokenRequest = _reflection.GeneratedProtocolMessageType('RevokeTokenRequest', (_message.Message,), {
|
73
|
+
'DESCRIPTOR' : _REVOKETOKENREQUEST,
|
74
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_service_pb2'
|
75
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.RevokeTokenRequest)
|
76
|
+
})
|
77
|
+
_sym_db.RegisterMessage(RevokeTokenRequest)
|
78
|
+
|
79
|
+
RevokeTokenRequestResponse = _reflection.GeneratedProtocolMessageType('RevokeTokenRequestResponse', (_message.Message,), {
|
80
|
+
'DESCRIPTOR' : _REVOKETOKENREQUESTRESPONSE,
|
81
|
+
'__module__' : 'qwak.ecosystem.jfrog.v0.token_service_pb2'
|
82
|
+
# @@protoc_insertion_point(class_scope:qwak.ecosystem.jfrog.token.v0.RevokeTokenRequestResponse)
|
83
|
+
})
|
84
|
+
_sym_db.RegisterMessage(RevokeTokenRequestResponse)
|
85
|
+
|
86
|
+
_TOKENSERVICE = DESCRIPTOR.services_by_name['TokenService']
|
87
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
88
|
+
|
89
|
+
DESCRIPTOR._options = None
|
90
|
+
DESCRIPTOR._serialized_options = b'\n\032com.qwak.ai.jfrog.token.v0P\001Z\226\001github.com/qwak-ai/qwak-platform/services/shared/java/libs/qwak-common/qwak-common-api/qwak-platform-ecosystem-api/pb/qwak/ecosystem/jfrog/v0;jfrog_v0'
|
91
|
+
_GENERATETOKENREQUEST._serialized_start=115
|
92
|
+
_GENERATETOKENREQUEST._serialized_end=204
|
93
|
+
_GENERATETOKENRESPONSE._serialized_start=206
|
94
|
+
_GENERATETOKENRESPONSE._serialized_end=287
|
95
|
+
_GENERATEARTIFACTORYIMAGEPULLTOKENREQUEST._serialized_start=289
|
96
|
+
_GENERATEARTIFACTORYIMAGEPULLTOKENREQUEST._serialized_end=413
|
97
|
+
_GENERATEARTIFACTORYIMAGEPULLTOKENRESPONSE._serialized_start=415
|
98
|
+
_GENERATEARTIFACTORYIMAGEPULLTOKENRESPONSE._serialized_end=516
|
99
|
+
_PERSISTTOKENCLAIMSREQUEST._serialized_start=518
|
100
|
+
_PERSISTTOKENCLAIMSREQUEST._serialized_end=614
|
101
|
+
_PERSISTTOKENCLAIMSRESPONSE._serialized_start=616
|
102
|
+
_PERSISTTOKENCLAIMSRESPONSE._serialized_end=662
|
103
|
+
_REVOKETOKENREQUEST._serialized_start=664
|
104
|
+
_REVOKETOKENREQUEST._serialized_end=764
|
105
|
+
_REVOKETOKENREQUESTRESPONSE._serialized_start=766
|
106
|
+
_REVOKETOKENREQUESTRESPONSE._serialized_end=794
|
107
|
+
_TOKENSERVICE._serialized_start=797
|
108
|
+
_TOKENSERVICE._serialized_end=1385
|
109
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,144 @@
|
|
1
|
+
"""
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
3
|
+
isort:skip_file
|
4
|
+
"""
|
5
|
+
import builtins
|
6
|
+
import google.protobuf.descriptor
|
7
|
+
import google.protobuf.message
|
8
|
+
import frogml_proto.qwak.ecosystem.jfrog.v0.token_pb2
|
9
|
+
import sys
|
10
|
+
|
11
|
+
if sys.version_info >= (3, 8):
|
12
|
+
import typing as typing_extensions
|
13
|
+
else:
|
14
|
+
import typing_extensions
|
15
|
+
|
16
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
17
|
+
|
18
|
+
class GenerateTokenRequest(google.protobuf.message.Message):
|
19
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
20
|
+
|
21
|
+
TOKEN_SPEC_FIELD_NUMBER: builtins.int
|
22
|
+
@property
|
23
|
+
def token_spec(self) -> frogml_proto.qwak.ecosystem.jfrog.v0.token_pb2.JFrogTokenSpec:
|
24
|
+
"""Token spec"""
|
25
|
+
def __init__(
|
26
|
+
self,
|
27
|
+
*,
|
28
|
+
token_spec: frogml_proto.qwak.ecosystem.jfrog.v0.token_pb2.JFrogTokenSpec | None = ...,
|
29
|
+
) -> None: ...
|
30
|
+
def HasField(self, field_name: typing_extensions.Literal["token_spec", b"token_spec"]) -> builtins.bool: ...
|
31
|
+
def ClearField(self, field_name: typing_extensions.Literal["token_spec", b"token_spec"]) -> None: ...
|
32
|
+
|
33
|
+
global___GenerateTokenRequest = GenerateTokenRequest
|
34
|
+
|
35
|
+
class GenerateTokenResponse(google.protobuf.message.Message):
|
36
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
37
|
+
|
38
|
+
TOKEN_FIELD_NUMBER: builtins.int
|
39
|
+
@property
|
40
|
+
def token(self) -> frogml_proto.qwak.ecosystem.jfrog.v0.token_pb2.JFrogToken:
|
41
|
+
"""Generated token"""
|
42
|
+
def __init__(
|
43
|
+
self,
|
44
|
+
*,
|
45
|
+
token: frogml_proto.qwak.ecosystem.jfrog.v0.token_pb2.JFrogToken | None = ...,
|
46
|
+
) -> None: ...
|
47
|
+
def HasField(self, field_name: typing_extensions.Literal["token", b"token"]) -> builtins.bool: ...
|
48
|
+
def ClearField(self, field_name: typing_extensions.Literal["token", b"token"]) -> None: ...
|
49
|
+
|
50
|
+
global___GenerateTokenResponse = GenerateTokenResponse
|
51
|
+
|
52
|
+
class GenerateArtifactoryImagePullTokenRequest(google.protobuf.message.Message):
|
53
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
54
|
+
|
55
|
+
TOKEN_SPEC_FIELD_NUMBER: builtins.int
|
56
|
+
@property
|
57
|
+
def token_spec(self) -> frogml_proto.qwak.ecosystem.jfrog.v0.token_pb2.ArtifactoryImagePullTokenSpec:
|
58
|
+
"""Artifactory Image pull token spec"""
|
59
|
+
def __init__(
|
60
|
+
self,
|
61
|
+
*,
|
62
|
+
token_spec: frogml_proto.qwak.ecosystem.jfrog.v0.token_pb2.ArtifactoryImagePullTokenSpec | None = ...,
|
63
|
+
) -> None: ...
|
64
|
+
def HasField(self, field_name: typing_extensions.Literal["token_spec", b"token_spec"]) -> builtins.bool: ...
|
65
|
+
def ClearField(self, field_name: typing_extensions.Literal["token_spec", b"token_spec"]) -> None: ...
|
66
|
+
|
67
|
+
global___GenerateArtifactoryImagePullTokenRequest = GenerateArtifactoryImagePullTokenRequest
|
68
|
+
|
69
|
+
class GenerateArtifactoryImagePullTokenResponse(google.protobuf.message.Message):
|
70
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
71
|
+
|
72
|
+
TOKEN_FIELD_NUMBER: builtins.int
|
73
|
+
@property
|
74
|
+
def token(self) -> frogml_proto.qwak.ecosystem.jfrog.v0.token_pb2.JFrogToken:
|
75
|
+
"""Generated token"""
|
76
|
+
def __init__(
|
77
|
+
self,
|
78
|
+
*,
|
79
|
+
token: frogml_proto.qwak.ecosystem.jfrog.v0.token_pb2.JFrogToken | None = ...,
|
80
|
+
) -> None: ...
|
81
|
+
def HasField(self, field_name: typing_extensions.Literal["token", b"token"]) -> builtins.bool: ...
|
82
|
+
def ClearField(self, field_name: typing_extensions.Literal["token", b"token"]) -> None: ...
|
83
|
+
|
84
|
+
global___GenerateArtifactoryImagePullTokenResponse = GenerateArtifactoryImagePullTokenResponse
|
85
|
+
|
86
|
+
class PersistTokenClaimsRequest(google.protobuf.message.Message):
|
87
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
88
|
+
|
89
|
+
SPEC_FIELD_NUMBER: builtins.int
|
90
|
+
@property
|
91
|
+
def spec(self) -> frogml_proto.qwak.ecosystem.jfrog.v0.token_pb2.PersistTokenClaimsSpec:
|
92
|
+
"""Persist token claims spec"""
|
93
|
+
def __init__(
|
94
|
+
self,
|
95
|
+
*,
|
96
|
+
spec: frogml_proto.qwak.ecosystem.jfrog.v0.token_pb2.PersistTokenClaimsSpec | None = ...,
|
97
|
+
) -> None: ...
|
98
|
+
def HasField(self, field_name: typing_extensions.Literal["spec", b"spec"]) -> builtins.bool: ...
|
99
|
+
def ClearField(self, field_name: typing_extensions.Literal["spec", b"spec"]) -> None: ...
|
100
|
+
|
101
|
+
global___PersistTokenClaimsRequest = PersistTokenClaimsRequest
|
102
|
+
|
103
|
+
class PersistTokenClaimsResponse(google.protobuf.message.Message):
|
104
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
105
|
+
|
106
|
+
TOKEN_ID_FIELD_NUMBER: builtins.int
|
107
|
+
token_id: builtins.str
|
108
|
+
"""The persisted token id.
|
109
|
+
Used for later retrieval
|
110
|
+
"""
|
111
|
+
def __init__(
|
112
|
+
self,
|
113
|
+
*,
|
114
|
+
token_id: builtins.str = ...,
|
115
|
+
) -> None: ...
|
116
|
+
def ClearField(self, field_name: typing_extensions.Literal["token_id", b"token_id"]) -> None: ...
|
117
|
+
|
118
|
+
global___PersistTokenClaimsResponse = PersistTokenClaimsResponse
|
119
|
+
|
120
|
+
class RevokeTokenRequest(google.protobuf.message.Message):
|
121
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
122
|
+
|
123
|
+
TOKEN_REVOKE_SPEC_FIELD_NUMBER: builtins.int
|
124
|
+
@property
|
125
|
+
def token_revoke_spec(self) -> frogml_proto.qwak.ecosystem.jfrog.v0.token_pb2.JFrogTokenRevokeSpec:
|
126
|
+
"""Revoke token spec"""
|
127
|
+
def __init__(
|
128
|
+
self,
|
129
|
+
*,
|
130
|
+
token_revoke_spec: frogml_proto.qwak.ecosystem.jfrog.v0.token_pb2.JFrogTokenRevokeSpec | None = ...,
|
131
|
+
) -> None: ...
|
132
|
+
def HasField(self, field_name: typing_extensions.Literal["token_revoke_spec", b"token_revoke_spec"]) -> builtins.bool: ...
|
133
|
+
def ClearField(self, field_name: typing_extensions.Literal["token_revoke_spec", b"token_revoke_spec"]) -> None: ...
|
134
|
+
|
135
|
+
global___RevokeTokenRequest = RevokeTokenRequest
|
136
|
+
|
137
|
+
class RevokeTokenRequestResponse(google.protobuf.message.Message):
|
138
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
139
|
+
|
140
|
+
def __init__(
|
141
|
+
self,
|
142
|
+
) -> None: ...
|
143
|
+
|
144
|
+
global___RevokeTokenRequestResponse = RevokeTokenRequestResponse
|
@@ -0,0 +1,169 @@
|
|
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 frogml_proto.qwak.ecosystem.jfrog.v0 import token_service_pb2 as qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2
|
6
|
+
|
7
|
+
|
8
|
+
class TokenServiceStub(object):
|
9
|
+
"""Missing associated documentation comment in .proto file."""
|
10
|
+
|
11
|
+
def __init__(self, channel):
|
12
|
+
"""Constructor.
|
13
|
+
|
14
|
+
Args:
|
15
|
+
channel: A grpc.Channel.
|
16
|
+
"""
|
17
|
+
self.GenerateToken = channel.unary_unary(
|
18
|
+
'/qwak.ecosystem.jfrog.token.v0.TokenService/GenerateToken',
|
19
|
+
request_serializer=qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.GenerateTokenRequest.SerializeToString,
|
20
|
+
response_deserializer=qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.GenerateTokenResponse.FromString,
|
21
|
+
)
|
22
|
+
self.GenerateArtifactoryImagePullToken = channel.unary_unary(
|
23
|
+
'/qwak.ecosystem.jfrog.token.v0.TokenService/GenerateArtifactoryImagePullToken',
|
24
|
+
request_serializer=qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.GenerateArtifactoryImagePullTokenRequest.SerializeToString,
|
25
|
+
response_deserializer=qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.GenerateArtifactoryImagePullTokenResponse.FromString,
|
26
|
+
)
|
27
|
+
self.PersistTokenClaims = channel.unary_unary(
|
28
|
+
'/qwak.ecosystem.jfrog.token.v0.TokenService/PersistTokenClaims',
|
29
|
+
request_serializer=qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.PersistTokenClaimsRequest.SerializeToString,
|
30
|
+
response_deserializer=qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.PersistTokenClaimsResponse.FromString,
|
31
|
+
)
|
32
|
+
self.RevokeToken = channel.unary_unary(
|
33
|
+
'/qwak.ecosystem.jfrog.token.v0.TokenService/RevokeToken',
|
34
|
+
request_serializer=qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.RevokeTokenRequest.SerializeToString,
|
35
|
+
response_deserializer=qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.RevokeTokenRequestResponse.FromString,
|
36
|
+
)
|
37
|
+
|
38
|
+
|
39
|
+
class TokenServiceServicer(object):
|
40
|
+
"""Missing associated documentation comment in .proto file."""
|
41
|
+
|
42
|
+
def GenerateToken(self, request, context):
|
43
|
+
"""Generate token
|
44
|
+
"""
|
45
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
46
|
+
context.set_details('Method not implemented!')
|
47
|
+
raise NotImplementedError('Method not implemented!')
|
48
|
+
|
49
|
+
def GenerateArtifactoryImagePullToken(self, request, context):
|
50
|
+
"""Generate artifactory pull image token
|
51
|
+
"""
|
52
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
53
|
+
context.set_details('Method not implemented!')
|
54
|
+
raise NotImplementedError('Method not implemented!')
|
55
|
+
|
56
|
+
def PersistTokenClaims(self, request, context):
|
57
|
+
"""Persist token claims for later usage
|
58
|
+
"""
|
59
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
60
|
+
context.set_details('Method not implemented!')
|
61
|
+
raise NotImplementedError('Method not implemented!')
|
62
|
+
|
63
|
+
def RevokeToken(self, request, context):
|
64
|
+
"""Revoke token
|
65
|
+
"""
|
66
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
67
|
+
context.set_details('Method not implemented!')
|
68
|
+
raise NotImplementedError('Method not implemented!')
|
69
|
+
|
70
|
+
|
71
|
+
def add_TokenServiceServicer_to_server(servicer, server):
|
72
|
+
rpc_method_handlers = {
|
73
|
+
'GenerateToken': grpc.unary_unary_rpc_method_handler(
|
74
|
+
servicer.GenerateToken,
|
75
|
+
request_deserializer=qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.GenerateTokenRequest.FromString,
|
76
|
+
response_serializer=qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.GenerateTokenResponse.SerializeToString,
|
77
|
+
),
|
78
|
+
'GenerateArtifactoryImagePullToken': grpc.unary_unary_rpc_method_handler(
|
79
|
+
servicer.GenerateArtifactoryImagePullToken,
|
80
|
+
request_deserializer=qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.GenerateArtifactoryImagePullTokenRequest.FromString,
|
81
|
+
response_serializer=qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.GenerateArtifactoryImagePullTokenResponse.SerializeToString,
|
82
|
+
),
|
83
|
+
'PersistTokenClaims': grpc.unary_unary_rpc_method_handler(
|
84
|
+
servicer.PersistTokenClaims,
|
85
|
+
request_deserializer=qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.PersistTokenClaimsRequest.FromString,
|
86
|
+
response_serializer=qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.PersistTokenClaimsResponse.SerializeToString,
|
87
|
+
),
|
88
|
+
'RevokeToken': grpc.unary_unary_rpc_method_handler(
|
89
|
+
servicer.RevokeToken,
|
90
|
+
request_deserializer=qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.RevokeTokenRequest.FromString,
|
91
|
+
response_serializer=qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.RevokeTokenRequestResponse.SerializeToString,
|
92
|
+
),
|
93
|
+
}
|
94
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
95
|
+
'qwak.ecosystem.jfrog.token.v0.TokenService', rpc_method_handlers)
|
96
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
97
|
+
|
98
|
+
|
99
|
+
# This class is part of an EXPERIMENTAL API.
|
100
|
+
class TokenService(object):
|
101
|
+
"""Missing associated documentation comment in .proto file."""
|
102
|
+
|
103
|
+
@staticmethod
|
104
|
+
def GenerateToken(request,
|
105
|
+
target,
|
106
|
+
options=(),
|
107
|
+
channel_credentials=None,
|
108
|
+
call_credentials=None,
|
109
|
+
insecure=False,
|
110
|
+
compression=None,
|
111
|
+
wait_for_ready=None,
|
112
|
+
timeout=None,
|
113
|
+
metadata=None):
|
114
|
+
return grpc.experimental.unary_unary(request, target, '/qwak.ecosystem.jfrog.token.v0.TokenService/GenerateToken',
|
115
|
+
qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.GenerateTokenRequest.SerializeToString,
|
116
|
+
qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.GenerateTokenResponse.FromString,
|
117
|
+
options, channel_credentials,
|
118
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
119
|
+
|
120
|
+
@staticmethod
|
121
|
+
def GenerateArtifactoryImagePullToken(request,
|
122
|
+
target,
|
123
|
+
options=(),
|
124
|
+
channel_credentials=None,
|
125
|
+
call_credentials=None,
|
126
|
+
insecure=False,
|
127
|
+
compression=None,
|
128
|
+
wait_for_ready=None,
|
129
|
+
timeout=None,
|
130
|
+
metadata=None):
|
131
|
+
return grpc.experimental.unary_unary(request, target, '/qwak.ecosystem.jfrog.token.v0.TokenService/GenerateArtifactoryImagePullToken',
|
132
|
+
qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.GenerateArtifactoryImagePullTokenRequest.SerializeToString,
|
133
|
+
qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.GenerateArtifactoryImagePullTokenResponse.FromString,
|
134
|
+
options, channel_credentials,
|
135
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
136
|
+
|
137
|
+
@staticmethod
|
138
|
+
def PersistTokenClaims(request,
|
139
|
+
target,
|
140
|
+
options=(),
|
141
|
+
channel_credentials=None,
|
142
|
+
call_credentials=None,
|
143
|
+
insecure=False,
|
144
|
+
compression=None,
|
145
|
+
wait_for_ready=None,
|
146
|
+
timeout=None,
|
147
|
+
metadata=None):
|
148
|
+
return grpc.experimental.unary_unary(request, target, '/qwak.ecosystem.jfrog.token.v0.TokenService/PersistTokenClaims',
|
149
|
+
qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.PersistTokenClaimsRequest.SerializeToString,
|
150
|
+
qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.PersistTokenClaimsResponse.FromString,
|
151
|
+
options, channel_credentials,
|
152
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
153
|
+
|
154
|
+
@staticmethod
|
155
|
+
def RevokeToken(request,
|
156
|
+
target,
|
157
|
+
options=(),
|
158
|
+
channel_credentials=None,
|
159
|
+
call_credentials=None,
|
160
|
+
insecure=False,
|
161
|
+
compression=None,
|
162
|
+
wait_for_ready=None,
|
163
|
+
timeout=None,
|
164
|
+
metadata=None):
|
165
|
+
return grpc.experimental.unary_unary(request, target, '/qwak.ecosystem.jfrog.token.v0.TokenService/RevokeToken',
|
166
|
+
qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.RevokeTokenRequest.SerializeToString,
|
167
|
+
qwak_dot_ecosystem_dot_jfrog_dot_v0_dot_token__service__pb2.RevokeTokenRequestResponse.FromString,
|
168
|
+
options, channel_credentials,
|
169
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: frogml_proto.qwak.execution/v1/internal/deployment/platform_details.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
7
|
+
from google.protobuf import message as _message
|
8
|
+
from google.protobuf import reflection as _reflection
|
9
|
+
from google.protobuf import symbol_database as _symbol_database
|
10
|
+
# @@protoc_insertion_point(imports)
|
11
|
+
|
12
|
+
_sym_db = _symbol_database.Default()
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n<qwak/execution/v1/internal/deployment/platform_details.proto\x12\x33qwak.feature.store.execution.v1.internal.deployment\"&\n\x0fPlatformDetails\x12\x13\n\x0bproject_key\x18\x01 \x01(\tB=\n9com.qwak.ai.features.execution.api.v1.internal.deploymentP\x01\x62\x06proto3')
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
_PLATFORMDETAILS = DESCRIPTOR.message_types_by_name['PlatformDetails']
|
22
|
+
PlatformDetails = _reflection.GeneratedProtocolMessageType('PlatformDetails', (_message.Message,), {
|
23
|
+
'DESCRIPTOR' : _PLATFORMDETAILS,
|
24
|
+
'__module__' : 'qwak.execution.v1.internal.deployment.platform_details_pb2'
|
25
|
+
# @@protoc_insertion_point(class_scope:qwak.feature.store.execution.v1.internal.deployment.PlatformDetails)
|
26
|
+
})
|
27
|
+
_sym_db.RegisterMessage(PlatformDetails)
|
28
|
+
|
29
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
30
|
+
|
31
|
+
DESCRIPTOR._options = None
|
32
|
+
DESCRIPTOR._serialized_options = b'\n9com.qwak.ai.features.execution.api.v1.internal.deploymentP\001'
|
33
|
+
_PLATFORMDETAILS._serialized_start=117
|
34
|
+
_PLATFORMDETAILS._serialized_end=155
|
35
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"""
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
3
|
+
isort:skip_file
|
4
|
+
"""
|
5
|
+
import builtins
|
6
|
+
import google.protobuf.descriptor
|
7
|
+
import google.protobuf.message
|
8
|
+
import sys
|
9
|
+
|
10
|
+
if sys.version_info >= (3, 8):
|
11
|
+
import typing as typing_extensions
|
12
|
+
else:
|
13
|
+
import typing_extensions
|
14
|
+
|
15
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
16
|
+
|
17
|
+
class PlatformDetails(google.protobuf.message.Message):
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
19
|
+
|
20
|
+
PROJECT_KEY_FIELD_NUMBER: builtins.int
|
21
|
+
project_key: builtins.str
|
22
|
+
def __init__(
|
23
|
+
self,
|
24
|
+
*,
|
25
|
+
project_key: builtins.str = ...,
|
26
|
+
) -> None: ...
|
27
|
+
def ClearField(self, field_name: typing_extensions.Literal["project_key", b"project_key"]) -> None: ...
|
28
|
+
|
29
|
+
global___PlatformDetails = PlatformDetails
|
File without changes
|