qwak-core 0.4.195__py3-none-any.whl → 0.4.197__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.
- _qwak_proto/qwak/ecosystem/jfrog/v0/token_pb2.py +176 -0
- _qwak_proto/qwak/ecosystem/jfrog/v0/token_pb2.pyi +360 -0
- _qwak_proto/qwak/ecosystem/jfrog/v0/token_pb2_grpc.py +4 -0
- _qwak_proto/qwak/ecosystem/jfrog/v0/token_service_pb2.py +109 -0
- _qwak_proto/qwak/ecosystem/jfrog/v0/token_service_pb2.pyi +144 -0
- _qwak_proto/qwak/ecosystem/jfrog/v0/token_service_pb2_grpc.py +169 -0
- qwak/__init__.py +1 -1
- qwak/clients/administration/environment/client.py +16 -0
- {qwak_core-0.4.195.dist-info → qwak_core-0.4.197.dist-info}/METADATA +1 -1
- {qwak_core-0.4.195.dist-info → qwak_core-0.4.197.dist-info}/RECORD +11 -5
- {qwak_core-0.4.195.dist-info → qwak_core-0.4.197.dist-info}/WHEEL +0 -0
@@ -0,0 +1,176 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: 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: 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 _qwak_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 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) -> qwak.ecosystem.jfrog.v0.token_pb2.JFrogTokenSpec:
|
24
|
+
"""Token spec"""
|
25
|
+
def __init__(
|
26
|
+
self,
|
27
|
+
*,
|
28
|
+
token_spec: 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) -> qwak.ecosystem.jfrog.v0.token_pb2.JFrogToken:
|
41
|
+
"""Generated token"""
|
42
|
+
def __init__(
|
43
|
+
self,
|
44
|
+
*,
|
45
|
+
token: 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) -> qwak.ecosystem.jfrog.v0.token_pb2.ArtifactoryImagePullTokenSpec:
|
58
|
+
"""Artifactory Image pull token spec"""
|
59
|
+
def __init__(
|
60
|
+
self,
|
61
|
+
*,
|
62
|
+
token_spec: 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) -> qwak.ecosystem.jfrog.v0.token_pb2.JFrogToken:
|
75
|
+
"""Generated token"""
|
76
|
+
def __init__(
|
77
|
+
self,
|
78
|
+
*,
|
79
|
+
token: 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) -> qwak.ecosystem.jfrog.v0.token_pb2.PersistTokenClaimsSpec:
|
92
|
+
"""Persist token claims spec"""
|
93
|
+
def __init__(
|
94
|
+
self,
|
95
|
+
*,
|
96
|
+
spec: 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) -> qwak.ecosystem.jfrog.v0.token_pb2.JFrogTokenRevokeSpec:
|
126
|
+
"""Revoke token spec"""
|
127
|
+
def __init__(
|
128
|
+
self,
|
129
|
+
*,
|
130
|
+
token_revoke_spec: 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 _qwak_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)
|
qwak/__init__.py
CHANGED
@@ -7,6 +7,8 @@ from _qwak_proto.qwak.administration.v0.environments.environment_service_pb2 imp
|
|
7
7
|
GetEnvironmentApplicationUserCredentialsResponse,
|
8
8
|
ListEnvironmentsRequest,
|
9
9
|
ListEnvironmentsResponse,
|
10
|
+
GetEnvironmentResponse,
|
11
|
+
GetEnvironmentRequest,
|
10
12
|
)
|
11
13
|
from _qwak_proto.qwak.administration.v0.environments.environment_service_pb2_grpc import (
|
12
14
|
EnvironmentServiceStub,
|
@@ -74,3 +76,17 @@ class EnvironmentClient:
|
|
74
76
|
raise QwakException(
|
75
77
|
f"Failed to get application user, error is {e.details()}"
|
76
78
|
)
|
79
|
+
|
80
|
+
def get_environment(self, environment_id: str) -> GetEnvironmentResponse:
|
81
|
+
"""
|
82
|
+
Get Environment by id
|
83
|
+
:param environment_id:
|
84
|
+
Return: GetEnvironmentResponse
|
85
|
+
"""
|
86
|
+
request = GetEnvironmentRequest(environment_id=environment_id)
|
87
|
+
try:
|
88
|
+
return self._environment_service.GetEnvironment(request)
|
89
|
+
except grpc.RpcError as e:
|
90
|
+
raise QwakException(
|
91
|
+
f"Failed to get environment {environment_id}, error is {e}"
|
92
|
+
)
|
@@ -162,6 +162,12 @@ _qwak_proto/qwak/deployment/deployment_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8g
|
|
162
162
|
_qwak_proto/qwak/deployment/deployment_service_pb2.py,sha256=Xd1ywkA90sYxjtO42UUwbY-iWzn0eFKpKj9mcbowknA,46309
|
163
163
|
_qwak_proto/qwak/deployment/deployment_service_pb2.pyi,sha256=IlBrh248yzclTz3PSlQYvNwACDp-MJCHB00-iSRPtME,40356
|
164
164
|
_qwak_proto/qwak/deployment/deployment_service_pb2_grpc.py,sha256=GsMez8ZGhjj1ftj3-VQctsWQUxkN-v78W4YkXy0V_JE,27756
|
165
|
+
_qwak_proto/qwak/ecosystem/jfrog/v0/token_pb2.py,sha256=AxqkdjOKhvI_vNyxPpjeoa7nGuBukUamAv_3LTBcGRI,12090
|
166
|
+
_qwak_proto/qwak/ecosystem/jfrog/v0/token_pb2.pyi,sha256=H207PKZZ37xFJrCUo3jW3q-3IjCp37DWoetjhdP-ct4,15518
|
167
|
+
_qwak_proto/qwak/ecosystem/jfrog/v0/token_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
168
|
+
_qwak_proto/qwak/ecosystem/jfrog/v0/token_service_pb2.py,sha256=nCIvG840O1Z0OsDdBoGc9JFn96XUbLGyID_MYhWItKw,7841
|
169
|
+
_qwak_proto/qwak/ecosystem/jfrog/v0/token_service_pb2.pyi,sha256=zS42N_cIUxANVoHfSu4jN5pnlhdkdJPYNS4OoqPqlh4,5469
|
170
|
+
_qwak_proto/qwak/ecosystem/jfrog/v0/token_service_pb2_grpc.py,sha256=kuXr3zLXMZEWC2ONSJvr8IvYcNGcZn1C45kspCE4k-w,8823
|
165
171
|
_qwak_proto/qwak/ecosystem/v0/credentials_pb2.py,sha256=4oqDkkwkbrxJtRhJ4wYSrRF_YOThbGgCm_ax8wu0GYg,3628
|
166
172
|
_qwak_proto/qwak/ecosystem/v0/credentials_pb2.pyi,sha256=7sxOny-BUipUxrEpBxKVNuJF3-N77Z6Ov1eWI-87Uoo,4098
|
167
173
|
_qwak_proto/qwak/ecosystem/v0/credentials_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
@@ -519,7 +525,7 @@ _qwak_proto/qwak/workspace/workspace_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXH
|
|
519
525
|
_qwak_proto/qwak/workspace/workspace_service_pb2.py,sha256=AB3C9S_AbOD7Nx1Ni4j1rW6PNtYTV1zjiqFQk-goQ74,21429
|
520
526
|
_qwak_proto/qwak/workspace/workspace_service_pb2.pyi,sha256=nKKCHwnovZhsy8TSVmdz-Vtl0nviOOoX56HD-41Xo08,13726
|
521
527
|
_qwak_proto/qwak/workspace/workspace_service_pb2_grpc.py,sha256=yKGuexxTBza99Ihe0DSTniV2ZSd_AG47inHenqfi890,27193
|
522
|
-
qwak/__init__.py,sha256=
|
528
|
+
qwak/__init__.py,sha256=ucT1zIwzwaxTkkJ5LF2YbIzurSvh0KL4IBYyJ2609nI,587
|
523
529
|
qwak/automations/__init__.py,sha256=qFZRvCxUUn8gcxkJR0v19ulHW2oJ0x6-Rif7HiheDP4,1522
|
524
530
|
qwak/automations/automation_executions.py,sha256=5MeH_epYYWb8NKXgAozwT_jPyyUDednBHG7izloi7RY,3228
|
525
531
|
qwak/automations/automations.py,sha256=4Ni5G3v-Bn5TK5nNdMWCL88XjJkYfF6rwsTTDT-x8-o,12456
|
@@ -538,7 +544,7 @@ qwak/clients/administration/eco_system/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JC
|
|
538
544
|
qwak/clients/administration/eco_system/client.py,sha256=fr3LGJQlheF9i8ZjvmcLti-8EfalKJ3fZNSnhV0OjQ8,5340
|
539
545
|
qwak/clients/administration/eco_system/eco_system_utils.py,sha256=eSRih37ORNyiC4sdH_PV6rd5GsWswb0Mwzr5TxzhQEg,514
|
540
546
|
qwak/clients/administration/environment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
541
|
-
qwak/clients/administration/environment/client.py,sha256=
|
547
|
+
qwak/clients/administration/environment/client.py,sha256=_6ZaSVrMM-xdgrzz8tN9-3UHbCCdi3HjY8_4WpjQLdI,3273
|
542
548
|
qwak/clients/administration/self_service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
543
549
|
qwak/clients/administration/self_service/client.py,sha256=Pb1ZuSyYlYLdxq34dks1jOjrSNRE-ewFOZOiQjXlFRk,2602
|
544
550
|
qwak/clients/alert_management/__init__.py,sha256=zAfCPJTj6oAMoj3vciLjRy8ULTTHCmmrdISuDCHASvk,43
|
@@ -995,6 +1001,6 @@ qwak_services_mock/mocks/workspace_manager_service_mock.py,sha256=O9ZSwln4T4kHVk
|
|
995
1001
|
qwak_services_mock/services_mock.py,sha256=CABZ2teXoSJ-X7CD3iRo5ht-w3jhW-Cvpb47APUHXEA,19089
|
996
1002
|
qwak_services_mock/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
997
1003
|
qwak_services_mock/utils/service_utils.py,sha256=ZlB0CnB1J6oBn6_m7fQO2U8tKoboHdUa6ljjkRMYNXU,265
|
998
|
-
qwak_core-0.4.
|
999
|
-
qwak_core-0.4.
|
1000
|
-
qwak_core-0.4.
|
1004
|
+
qwak_core-0.4.197.dist-info/METADATA,sha256=5bofbeXV7FwPQow2lqI2rr0ZqBJa6CLr8HMu0Fqp2oo,2157
|
1005
|
+
qwak_core-0.4.197.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
1006
|
+
qwak_core-0.4.197.dist-info/RECORD,,
|
File without changes
|