scalekit-sdk-python 1.0.0__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.
- buf/__init__.py +0 -0
- buf/validate/__init__.py +0 -0
- buf/validate/expression_pb2.py +31 -0
- buf/validate/expression_pb2.pyi +34 -0
- buf/validate/expression_pb2_grpc.py +4 -0
- buf/validate/priv/__init__.py +0 -0
- buf/validate/priv/private_pb2.py +30 -0
- buf/validate/priv/private_pb2.pyi +25 -0
- buf/validate/priv/private_pb2_grpc.py +4 -0
- buf/validate/validate_pb2.py +402 -0
- buf/validate/validate_pb2.pyi +503 -0
- buf/validate/validate_pb2_grpc.py +4 -0
- scalekit/__init__.py +4 -0
- scalekit/client.py +143 -0
- scalekit/common/__init__.py +0 -0
- scalekit/common/scalekit.py +49 -0
- scalekit/common/user.py +75 -0
- scalekit/connection.py +103 -0
- scalekit/constants/__init__.py +0 -0
- scalekit/constants/user.py +21 -0
- scalekit/core.py +169 -0
- scalekit/domain.py +73 -0
- scalekit/organization.py +181 -0
- scalekit/v1/__init__.py +0 -0
- scalekit/v1/clients/__init__.py +0 -0
- scalekit/v1/clients/clients_pb2.py +103 -0
- scalekit/v1/clients/clients_pb2.pyi +156 -0
- scalekit/v1/clients/clients_pb2_grpc.py +232 -0
- scalekit/v1/commons/__init__.py +0 -0
- scalekit/v1/commons/commons_pb2.py +36 -0
- scalekit/v1/commons/commons_pb2.pyi +30 -0
- scalekit/v1/commons/commons_pb2_grpc.py +4 -0
- scalekit/v1/connections/__init__.py +0 -0
- scalekit/v1/connections/connections_pb2.py +355 -0
- scalekit/v1/connections/connections_pb2.pyi +526 -0
- scalekit/v1/connections/connections_pb2_grpc.py +265 -0
- scalekit/v1/domains/__init__.py +0 -0
- scalekit/v1/domains/domains_pb2.py +92 -0
- scalekit/v1/domains/domains_pb2.pyi +153 -0
- scalekit/v1/domains/domains_pb2_grpc.py +199 -0
- scalekit/v1/environments/__init__.py +0 -0
- scalekit/v1/environments/environments_pb2.py +171 -0
- scalekit/v1/environments/environments_pb2.pyi +241 -0
- scalekit/v1/environments/environments_pb2_grpc.py +463 -0
- scalekit/v1/errdetails/__init__.py +0 -0
- scalekit/v1/errdetails/errdetails_pb2.py +44 -0
- scalekit/v1/errdetails/errdetails_pb2.pyi +89 -0
- scalekit/v1/errdetails/errdetails_pb2_grpc.py +4 -0
- scalekit/v1/events/__init__.py +0 -0
- scalekit/v1/events/events_pb2.py +39 -0
- scalekit/v1/events/events_pb2.pyi +62 -0
- scalekit/v1/events/events_pb2_grpc.py +4 -0
- scalekit/v1/members/__init__.py +0 -0
- scalekit/v1/members/members_pb2.py +105 -0
- scalekit/v1/members/members_pb2.pyi +142 -0
- scalekit/v1/members/members_pb2_grpc.py +271 -0
- scalekit/v1/options/__init__.py +0 -0
- scalekit/v1/options/options_pb2.py +30 -0
- scalekit/v1/options/options_pb2.pyi +44 -0
- scalekit/v1/options/options_pb2_grpc.py +4 -0
- scalekit/v1/organizations/__init__.py +0 -0
- scalekit/v1/organizations/organizations_pb2.py +168 -0
- scalekit/v1/organizations/organizations_pb2.pyi +190 -0
- scalekit/v1/organizations/organizations_pb2_grpc.py +301 -0
- scalekit/v1/users/__init__.py +0 -0
- scalekit/v1/users/users_pb2.py +97 -0
- scalekit/v1/users/users_pb2.pyi +136 -0
- scalekit/v1/users/users_pb2_grpc.py +199 -0
- scalekit/v1/workspaces/__init__.py +0 -0
- scalekit/v1/workspaces/workspaces_pb2.py +90 -0
- scalekit/v1/workspaces/workspaces_pb2.pyi +102 -0
- scalekit/v1/workspaces/workspaces_pb2_grpc.py +198 -0
- scalekit_sdk_python-1.0.0.dist-info/LICENSE +21 -0
- scalekit_sdk_python-1.0.0.dist-info/METADATA +67 -0
- scalekit_sdk_python-1.0.0.dist-info/RECORD +77 -0
- scalekit_sdk_python-1.0.0.dist-info/WHEEL +5 -0
- scalekit_sdk_python-1.0.0.dist-info/top_level.txt +2 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: scalekit/v1/clients/clients.proto
|
|
4
|
+
# Protobuf Python Version: 5.26.1
|
|
5
|
+
"""Generated protocol buffer code."""
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
from google.protobuf.internal import builder as _builder
|
|
10
|
+
# @@protoc_insertion_point(imports)
|
|
11
|
+
|
|
12
|
+
_sym_db = _symbol_database.Default()
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
16
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
17
|
+
from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2
|
|
18
|
+
from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
|
|
19
|
+
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
|
|
20
|
+
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
21
|
+
from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2
|
|
22
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
23
|
+
from scalekit.v1.commons import commons_pb2 as scalekit_dot_v1_dot_commons_dot_commons__pb2
|
|
24
|
+
from scalekit.v1.options import options_pb2 as scalekit_dot_v1_dot_options_dot_options__pb2
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!scalekit/v1/clients/clients.proto\x12\x13scalekit.v1.clients\x1a\x1b\x62uf/validate/validate.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a!scalekit/v1/commons/commons.proto\x1a!scalekit/v1/options/options.proto\":\n\x10GetClientRequest\x12&\n\tclient_id\x18\x01 \x01(\tB\t\xbaH\x06r\x04\x10\x01\x18 R\x08\x63lientId\"H\n\x11GetClientResponse\x12\x33\n\x06\x63lient\x18\x01 \x01(\x0b\x32\x1b.scalekit.v1.clients.ClientR\x06\x63lient\"\x14\n\x12ListClientsRequest\"k\n\x13ListClientsResponse\x12\x1d\n\ntotal_size\x18\x01 \x01(\rR\ttotalSize\x12\x35\n\x07\x63lients\x18\x02 \x03(\x0b\x32\x1b.scalekit.v1.clients.ClientR\x07\x63lients\"\xb0\x01\n\x13UpdateClientRequest\x12&\n\tclient_id\x18\x01 \x01(\tB\t\xbaH\x06r\x04\x10\x01\x18 R\x08\x63lientId\x12\x41\n\x06\x63lient\x18\x02 \x01(\x0b\x32!.scalekit.v1.clients.UpdateClientB\x06\xbaH\x03\xc8\x01\x01R\x06\x63lient\x12.\n\x04mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskR\x04mask\"\xce\x01\n\x0cUpdateClient\x12\x34\n\rredirect_uris\x18\x02 \x03(\tB\x0f\xbaH\x0c\x92\x01\t\x18\x01\"\x05r\x03\x88\x01\x01R\x0credirectUris\x12o\n\x14\x64\x65\x66\x61ult_redirect_uri\x18\x03 \x01(\tB8\xbaH5\xba\x01\x32\n\tvalid_uri\x12\x17uri must be a valid URI\x1a\x0cthis.isUri()H\x00R\x12\x64\x65\x66\x61ultRedirectUri\x88\x01\x01\x42\x17\n\x15_default_redirect_uri\"K\n\x14UpdateClientResponse\x12\x33\n\x06\x63lient\x18\x01 \x01(\x0b\x32\x1b.scalekit.v1.clients.ClientR\x06\x63lient\"C\n\x19\x43reateClientSecretRequest\x12&\n\tclient_id\x18\x01 \x01(\tB\t\xbaH\x06r\x04\x10\x01\x18 R\x08\x63lientId\"z\n\x1a\x43reateClientSecretResponse\x12!\n\x0cplain_secret\x18\x01 \x01(\tR\x0bplainSecret\x12\x39\n\x06secret\x18\x02 \x01(\x0b\x32!.scalekit.v1.clients.ClientSecretR\x06secret\"\xe4\x01\n\x19UpdateClientSecretRequest\x12&\n\tclient_id\x18\x01 \x01(\tB\t\xbaH\x06r\x04\x10\x01\x18 R\x08\x63lientId\x12&\n\tsecret_id\x18\x02 \x01(\tB\t\xbaH\x06r\x04\x10\x01\x18 R\x08secretId\x12G\n\x06secret\x18\x03 \x01(\x0b\x32\'.scalekit.v1.clients.UpdateClientSecretB\x06\xbaH\x03\xc8\x01\x01R\x06secret\x12.\n\x04mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskR\x04mask\"U\n\x12UpdateClientSecret\x12?\n\x06status\x18\x01 \x01(\x0e\x32\'.scalekit.v1.clients.ClientSecretStatusR\x06status\"W\n\x1aUpdateClientSecretResponse\x12\x39\n\x06secret\x18\x01 \x01(\x0b\x32!.scalekit.v1.clients.ClientSecretR\x06secret\"k\n\x19\x44\x65leteClientSecretRequest\x12&\n\tclient_id\x18\x01 \x01(\tB\t\xbaH\x06r\x04\x10\x01\x18 R\x08\x63lientId\x12&\n\tsecret_id\x18\x02 \x01(\tB\t\xbaH\x06r\x04\x10\x01\x18 R\x08secretId\"\xbc\x02\n\x06\x43lient\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05keyId\x18\x02 \x01(\tR\x05keyId\x12;\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ncreateTime\x12;\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nupdateTime\x12#\n\rredirect_uris\x18\x05 \x03(\tR\x0credirectUris\x12\x30\n\x14\x64\x65\x66\x61ult_redirect_uri\x18\x06 \x01(\tR\x12\x64\x65\x66\x61ultRedirectUri\x12;\n\x07secrets\x18\x07 \x03(\x0b\x32!.scalekit.v1.clients.ClientSecretR\x07secrets\"\xb0\x03\n\x0c\x43lientSecret\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12;\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ncreateTime\x12;\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nupdateTime\x12#\n\rsecret_suffix\x18\x04 \x01(\tR\x0csecretSuffix\x12\"\n\ncreated_by\x18\x05 \x01(\tH\x00R\tcreatedBy\x88\x01\x01\x12?\n\x06status\x18\x06 \x01(\x0e\x32\'.scalekit.v1.clients.ClientSecretStatusR\x06status\x12;\n\x0b\x65xpire_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nexpireTime\x12@\n\x0elast_used_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0clastUsedTimeB\r\n\x0b_created_by*.\n\x12\x43lientSecretStatus\x12\n\n\x06\x41\x43TIVE\x10\x00\x12\x0c\n\x08INACTIVE\x10\x01\x32\x94\x08\n\rClientService\x12~\n\nListClient\x12\'.scalekit.v1.clients.ListClientsRequest\x1a(.scalekit.v1.clients.ListClientsResponse\"\x1d\x82\xb5\x18\x02\x18\x10\x82\xd3\xe4\x93\x02\x11\x12\x0f/api/v1/clients\x12\x7f\n\tGetClient\x12%.scalekit.v1.clients.GetClientRequest\x1a&.scalekit.v1.clients.GetClientResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/v1/clients/{client_id}\x12\xbd\x01\n\x0cUpdateClient\x12(.scalekit.v1.clients.UpdateClientRequest\x1a).scalekit.v1.clients.UpdateClientResponse\"X\x82\xb5\x18\x02\x18T\x82\xd3\xe4\x93\x02L\x1a\x1b/api/v1/clients/{client_id}:\x06\x63lientZ%2\x1b/api/v1/clients/{client_id}:\x06\x63lient\x12\xa8\x01\n\x12\x43reateClientSecret\x12..scalekit.v1.clients.CreateClientSecretRequest\x1a/.scalekit.v1.clients.CreateClientSecretResponse\"1\x82\xb5\x18\x02\x18T\x82\xd3\xe4\x93\x02%\"#/api/v1/clients/{client_id}/secrets\x12\xf8\x01\n\x12UpdateClientSecret\x12..scalekit.v1.clients.UpdateClientSecretRequest\x1a/.scalekit.v1.clients.UpdateClientSecretResponse\"\x80\x01\x82\xb5\x18\x02\x18T\x82\xd3\xe4\x93\x02t\x1a//api/v1/clients/{client_id}/secrets/{secret_id}:\x06secretZ92//api/v1/clients/{client_id}/secrets/{secret_id}:\x06secret\x12\x9b\x01\n\x12\x44\x65leteClientSecret\x12..scalekit.v1.clients.DeleteClientSecretRequest\x1a\x16.google.protobuf.Empty\"=\x82\xb5\x18\x02\x18T\x82\xd3\xe4\x93\x02\x31*//api/v1/clients/{client_id}/secrets/{secret_id}B3Z1github.com/scalekit-inc/scalekit/pkg/grpc/clientsb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'scalekit.v1.clients.clients_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z1github.com/scalekit-inc/scalekit/pkg/grpc/clients'
|
|
35
|
+
_globals['_GETCLIENTREQUEST'].fields_by_name['client_id']._loaded_options = None
|
|
36
|
+
_globals['_GETCLIENTREQUEST'].fields_by_name['client_id']._serialized_options = b'\272H\006r\004\020\001\030 '
|
|
37
|
+
_globals['_UPDATECLIENTREQUEST'].fields_by_name['client_id']._loaded_options = None
|
|
38
|
+
_globals['_UPDATECLIENTREQUEST'].fields_by_name['client_id']._serialized_options = b'\272H\006r\004\020\001\030 '
|
|
39
|
+
_globals['_UPDATECLIENTREQUEST'].fields_by_name['client']._loaded_options = None
|
|
40
|
+
_globals['_UPDATECLIENTREQUEST'].fields_by_name['client']._serialized_options = b'\272H\003\310\001\001'
|
|
41
|
+
_globals['_UPDATECLIENT'].fields_by_name['redirect_uris']._loaded_options = None
|
|
42
|
+
_globals['_UPDATECLIENT'].fields_by_name['redirect_uris']._serialized_options = b'\272H\014\222\001\t\030\001\"\005r\003\210\001\001'
|
|
43
|
+
_globals['_UPDATECLIENT'].fields_by_name['default_redirect_uri']._loaded_options = None
|
|
44
|
+
_globals['_UPDATECLIENT'].fields_by_name['default_redirect_uri']._serialized_options = b'\272H5\272\0012\n\tvalid_uri\022\027uri must be a valid URI\032\014this.isUri()'
|
|
45
|
+
_globals['_CREATECLIENTSECRETREQUEST'].fields_by_name['client_id']._loaded_options = None
|
|
46
|
+
_globals['_CREATECLIENTSECRETREQUEST'].fields_by_name['client_id']._serialized_options = b'\272H\006r\004\020\001\030 '
|
|
47
|
+
_globals['_UPDATECLIENTSECRETREQUEST'].fields_by_name['client_id']._loaded_options = None
|
|
48
|
+
_globals['_UPDATECLIENTSECRETREQUEST'].fields_by_name['client_id']._serialized_options = b'\272H\006r\004\020\001\030 '
|
|
49
|
+
_globals['_UPDATECLIENTSECRETREQUEST'].fields_by_name['secret_id']._loaded_options = None
|
|
50
|
+
_globals['_UPDATECLIENTSECRETREQUEST'].fields_by_name['secret_id']._serialized_options = b'\272H\006r\004\020\001\030 '
|
|
51
|
+
_globals['_UPDATECLIENTSECRETREQUEST'].fields_by_name['secret']._loaded_options = None
|
|
52
|
+
_globals['_UPDATECLIENTSECRETREQUEST'].fields_by_name['secret']._serialized_options = b'\272H\003\310\001\001'
|
|
53
|
+
_globals['_DELETECLIENTSECRETREQUEST'].fields_by_name['client_id']._loaded_options = None
|
|
54
|
+
_globals['_DELETECLIENTSECRETREQUEST'].fields_by_name['client_id']._serialized_options = b'\272H\006r\004\020\001\030 '
|
|
55
|
+
_globals['_DELETECLIENTSECRETREQUEST'].fields_by_name['secret_id']._loaded_options = None
|
|
56
|
+
_globals['_DELETECLIENTSECRETREQUEST'].fields_by_name['secret_id']._serialized_options = b'\272H\006r\004\020\001\030 '
|
|
57
|
+
_globals['_CLIENTSERVICE'].methods_by_name['ListClient']._loaded_options = None
|
|
58
|
+
_globals['_CLIENTSERVICE'].methods_by_name['ListClient']._serialized_options = b'\202\265\030\002\030\020\202\323\344\223\002\021\022\017/api/v1/clients'
|
|
59
|
+
_globals['_CLIENTSERVICE'].methods_by_name['GetClient']._loaded_options = None
|
|
60
|
+
_globals['_CLIENTSERVICE'].methods_by_name['GetClient']._serialized_options = b'\202\323\344\223\002\035\022\033/api/v1/clients/{client_id}'
|
|
61
|
+
_globals['_CLIENTSERVICE'].methods_by_name['UpdateClient']._loaded_options = None
|
|
62
|
+
_globals['_CLIENTSERVICE'].methods_by_name['UpdateClient']._serialized_options = b'\202\265\030\002\030T\202\323\344\223\002L\032\033/api/v1/clients/{client_id}:\006clientZ%2\033/api/v1/clients/{client_id}:\006client'
|
|
63
|
+
_globals['_CLIENTSERVICE'].methods_by_name['CreateClientSecret']._loaded_options = None
|
|
64
|
+
_globals['_CLIENTSERVICE'].methods_by_name['CreateClientSecret']._serialized_options = b'\202\265\030\002\030T\202\323\344\223\002%\"#/api/v1/clients/{client_id}/secrets'
|
|
65
|
+
_globals['_CLIENTSERVICE'].methods_by_name['UpdateClientSecret']._loaded_options = None
|
|
66
|
+
_globals['_CLIENTSERVICE'].methods_by_name['UpdateClientSecret']._serialized_options = b'\202\265\030\002\030T\202\323\344\223\002t\032//api/v1/clients/{client_id}/secrets/{secret_id}:\006secretZ92//api/v1/clients/{client_id}/secrets/{secret_id}:\006secret'
|
|
67
|
+
_globals['_CLIENTSERVICE'].methods_by_name['DeleteClientSecret']._loaded_options = None
|
|
68
|
+
_globals['_CLIENTSERVICE'].methods_by_name['DeleteClientSecret']._serialized_options = b'\202\265\030\002\030T\202\323\344\223\0021*//api/v1/clients/{client_id}/secrets/{secret_id}'
|
|
69
|
+
_globals['_CLIENTSECRETSTATUS']._serialized_start=2568
|
|
70
|
+
_globals['_CLIENTSECRETSTATUS']._serialized_end=2614
|
|
71
|
+
_globals['_GETCLIENTREQUEST']._serialized_start=375
|
|
72
|
+
_globals['_GETCLIENTREQUEST']._serialized_end=433
|
|
73
|
+
_globals['_GETCLIENTRESPONSE']._serialized_start=435
|
|
74
|
+
_globals['_GETCLIENTRESPONSE']._serialized_end=507
|
|
75
|
+
_globals['_LISTCLIENTSREQUEST']._serialized_start=509
|
|
76
|
+
_globals['_LISTCLIENTSREQUEST']._serialized_end=529
|
|
77
|
+
_globals['_LISTCLIENTSRESPONSE']._serialized_start=531
|
|
78
|
+
_globals['_LISTCLIENTSRESPONSE']._serialized_end=638
|
|
79
|
+
_globals['_UPDATECLIENTREQUEST']._serialized_start=641
|
|
80
|
+
_globals['_UPDATECLIENTREQUEST']._serialized_end=817
|
|
81
|
+
_globals['_UPDATECLIENT']._serialized_start=820
|
|
82
|
+
_globals['_UPDATECLIENT']._serialized_end=1026
|
|
83
|
+
_globals['_UPDATECLIENTRESPONSE']._serialized_start=1028
|
|
84
|
+
_globals['_UPDATECLIENTRESPONSE']._serialized_end=1103
|
|
85
|
+
_globals['_CREATECLIENTSECRETREQUEST']._serialized_start=1105
|
|
86
|
+
_globals['_CREATECLIENTSECRETREQUEST']._serialized_end=1172
|
|
87
|
+
_globals['_CREATECLIENTSECRETRESPONSE']._serialized_start=1174
|
|
88
|
+
_globals['_CREATECLIENTSECRETRESPONSE']._serialized_end=1296
|
|
89
|
+
_globals['_UPDATECLIENTSECRETREQUEST']._serialized_start=1299
|
|
90
|
+
_globals['_UPDATECLIENTSECRETREQUEST']._serialized_end=1527
|
|
91
|
+
_globals['_UPDATECLIENTSECRET']._serialized_start=1529
|
|
92
|
+
_globals['_UPDATECLIENTSECRET']._serialized_end=1614
|
|
93
|
+
_globals['_UPDATECLIENTSECRETRESPONSE']._serialized_start=1616
|
|
94
|
+
_globals['_UPDATECLIENTSECRETRESPONSE']._serialized_end=1703
|
|
95
|
+
_globals['_DELETECLIENTSECRETREQUEST']._serialized_start=1705
|
|
96
|
+
_globals['_DELETECLIENTSECRETREQUEST']._serialized_end=1812
|
|
97
|
+
_globals['_CLIENT']._serialized_start=1815
|
|
98
|
+
_globals['_CLIENT']._serialized_end=2131
|
|
99
|
+
_globals['_CLIENTSECRET']._serialized_start=2134
|
|
100
|
+
_globals['_CLIENTSECRET']._serialized_end=2566
|
|
101
|
+
_globals['_CLIENTSERVICE']._serialized_start=2617
|
|
102
|
+
_globals['_CLIENTSERVICE']._serialized_end=3661
|
|
103
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from google.api import annotations_pb2 as _annotations_pb2
|
|
3
|
+
from google.api import field_behavior_pb2 as _field_behavior_pb2
|
|
4
|
+
from google.protobuf import any_pb2 as _any_pb2
|
|
5
|
+
from google.protobuf import duration_pb2 as _duration_pb2
|
|
6
|
+
from google.protobuf import empty_pb2 as _empty_pb2
|
|
7
|
+
from google.protobuf import field_mask_pb2 as _field_mask_pb2
|
|
8
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
9
|
+
from scalekit.v1.commons import commons_pb2 as _commons_pb2
|
|
10
|
+
from scalekit.v1.options import options_pb2 as _options_pb2
|
|
11
|
+
from google.protobuf.internal import containers as _containers
|
|
12
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
13
|
+
from google.protobuf import descriptor as _descriptor
|
|
14
|
+
from google.protobuf import message as _message
|
|
15
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
16
|
+
|
|
17
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
18
|
+
|
|
19
|
+
class ClientSecretStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
20
|
+
__slots__ = ()
|
|
21
|
+
ACTIVE: _ClassVar[ClientSecretStatus]
|
|
22
|
+
INACTIVE: _ClassVar[ClientSecretStatus]
|
|
23
|
+
ACTIVE: ClientSecretStatus
|
|
24
|
+
INACTIVE: ClientSecretStatus
|
|
25
|
+
|
|
26
|
+
class GetClientRequest(_message.Message):
|
|
27
|
+
__slots__ = ("client_id",)
|
|
28
|
+
CLIENT_ID_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
client_id: str
|
|
30
|
+
def __init__(self, client_id: _Optional[str] = ...) -> None: ...
|
|
31
|
+
|
|
32
|
+
class GetClientResponse(_message.Message):
|
|
33
|
+
__slots__ = ("client",)
|
|
34
|
+
CLIENT_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
client: Client
|
|
36
|
+
def __init__(self, client: _Optional[_Union[Client, _Mapping]] = ...) -> None: ...
|
|
37
|
+
|
|
38
|
+
class ListClientsRequest(_message.Message):
|
|
39
|
+
__slots__ = ()
|
|
40
|
+
def __init__(self) -> None: ...
|
|
41
|
+
|
|
42
|
+
class ListClientsResponse(_message.Message):
|
|
43
|
+
__slots__ = ("total_size", "clients")
|
|
44
|
+
TOTAL_SIZE_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
CLIENTS_FIELD_NUMBER: _ClassVar[int]
|
|
46
|
+
total_size: int
|
|
47
|
+
clients: _containers.RepeatedCompositeFieldContainer[Client]
|
|
48
|
+
def __init__(self, total_size: _Optional[int] = ..., clients: _Optional[_Iterable[_Union[Client, _Mapping]]] = ...) -> None: ...
|
|
49
|
+
|
|
50
|
+
class UpdateClientRequest(_message.Message):
|
|
51
|
+
__slots__ = ("client_id", "client", "mask")
|
|
52
|
+
CLIENT_ID_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
CLIENT_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
+
MASK_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
client_id: str
|
|
56
|
+
client: UpdateClient
|
|
57
|
+
mask: _field_mask_pb2.FieldMask
|
|
58
|
+
def __init__(self, client_id: _Optional[str] = ..., client: _Optional[_Union[UpdateClient, _Mapping]] = ..., mask: _Optional[_Union[_field_mask_pb2.FieldMask, _Mapping]] = ...) -> None: ...
|
|
59
|
+
|
|
60
|
+
class UpdateClient(_message.Message):
|
|
61
|
+
__slots__ = ("redirect_uris", "default_redirect_uri")
|
|
62
|
+
REDIRECT_URIS_FIELD_NUMBER: _ClassVar[int]
|
|
63
|
+
DEFAULT_REDIRECT_URI_FIELD_NUMBER: _ClassVar[int]
|
|
64
|
+
redirect_uris: _containers.RepeatedScalarFieldContainer[str]
|
|
65
|
+
default_redirect_uri: str
|
|
66
|
+
def __init__(self, redirect_uris: _Optional[_Iterable[str]] = ..., default_redirect_uri: _Optional[str] = ...) -> None: ...
|
|
67
|
+
|
|
68
|
+
class UpdateClientResponse(_message.Message):
|
|
69
|
+
__slots__ = ("client",)
|
|
70
|
+
CLIENT_FIELD_NUMBER: _ClassVar[int]
|
|
71
|
+
client: Client
|
|
72
|
+
def __init__(self, client: _Optional[_Union[Client, _Mapping]] = ...) -> None: ...
|
|
73
|
+
|
|
74
|
+
class CreateClientSecretRequest(_message.Message):
|
|
75
|
+
__slots__ = ("client_id",)
|
|
76
|
+
CLIENT_ID_FIELD_NUMBER: _ClassVar[int]
|
|
77
|
+
client_id: str
|
|
78
|
+
def __init__(self, client_id: _Optional[str] = ...) -> None: ...
|
|
79
|
+
|
|
80
|
+
class CreateClientSecretResponse(_message.Message):
|
|
81
|
+
__slots__ = ("plain_secret", "secret")
|
|
82
|
+
PLAIN_SECRET_FIELD_NUMBER: _ClassVar[int]
|
|
83
|
+
SECRET_FIELD_NUMBER: _ClassVar[int]
|
|
84
|
+
plain_secret: str
|
|
85
|
+
secret: ClientSecret
|
|
86
|
+
def __init__(self, plain_secret: _Optional[str] = ..., secret: _Optional[_Union[ClientSecret, _Mapping]] = ...) -> None: ...
|
|
87
|
+
|
|
88
|
+
class UpdateClientSecretRequest(_message.Message):
|
|
89
|
+
__slots__ = ("client_id", "secret_id", "secret", "mask")
|
|
90
|
+
CLIENT_ID_FIELD_NUMBER: _ClassVar[int]
|
|
91
|
+
SECRET_ID_FIELD_NUMBER: _ClassVar[int]
|
|
92
|
+
SECRET_FIELD_NUMBER: _ClassVar[int]
|
|
93
|
+
MASK_FIELD_NUMBER: _ClassVar[int]
|
|
94
|
+
client_id: str
|
|
95
|
+
secret_id: str
|
|
96
|
+
secret: UpdateClientSecret
|
|
97
|
+
mask: _field_mask_pb2.FieldMask
|
|
98
|
+
def __init__(self, client_id: _Optional[str] = ..., secret_id: _Optional[str] = ..., secret: _Optional[_Union[UpdateClientSecret, _Mapping]] = ..., mask: _Optional[_Union[_field_mask_pb2.FieldMask, _Mapping]] = ...) -> None: ...
|
|
99
|
+
|
|
100
|
+
class UpdateClientSecret(_message.Message):
|
|
101
|
+
__slots__ = ("status",)
|
|
102
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
103
|
+
status: ClientSecretStatus
|
|
104
|
+
def __init__(self, status: _Optional[_Union[ClientSecretStatus, str]] = ...) -> None: ...
|
|
105
|
+
|
|
106
|
+
class UpdateClientSecretResponse(_message.Message):
|
|
107
|
+
__slots__ = ("secret",)
|
|
108
|
+
SECRET_FIELD_NUMBER: _ClassVar[int]
|
|
109
|
+
secret: ClientSecret
|
|
110
|
+
def __init__(self, secret: _Optional[_Union[ClientSecret, _Mapping]] = ...) -> None: ...
|
|
111
|
+
|
|
112
|
+
class DeleteClientSecretRequest(_message.Message):
|
|
113
|
+
__slots__ = ("client_id", "secret_id")
|
|
114
|
+
CLIENT_ID_FIELD_NUMBER: _ClassVar[int]
|
|
115
|
+
SECRET_ID_FIELD_NUMBER: _ClassVar[int]
|
|
116
|
+
client_id: str
|
|
117
|
+
secret_id: str
|
|
118
|
+
def __init__(self, client_id: _Optional[str] = ..., secret_id: _Optional[str] = ...) -> None: ...
|
|
119
|
+
|
|
120
|
+
class Client(_message.Message):
|
|
121
|
+
__slots__ = ("id", "keyId", "create_time", "update_time", "redirect_uris", "default_redirect_uri", "secrets")
|
|
122
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
123
|
+
KEYID_FIELD_NUMBER: _ClassVar[int]
|
|
124
|
+
CREATE_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
125
|
+
UPDATE_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
126
|
+
REDIRECT_URIS_FIELD_NUMBER: _ClassVar[int]
|
|
127
|
+
DEFAULT_REDIRECT_URI_FIELD_NUMBER: _ClassVar[int]
|
|
128
|
+
SECRETS_FIELD_NUMBER: _ClassVar[int]
|
|
129
|
+
id: str
|
|
130
|
+
keyId: str
|
|
131
|
+
create_time: _timestamp_pb2.Timestamp
|
|
132
|
+
update_time: _timestamp_pb2.Timestamp
|
|
133
|
+
redirect_uris: _containers.RepeatedScalarFieldContainer[str]
|
|
134
|
+
default_redirect_uri: str
|
|
135
|
+
secrets: _containers.RepeatedCompositeFieldContainer[ClientSecret]
|
|
136
|
+
def __init__(self, id: _Optional[str] = ..., keyId: _Optional[str] = ..., create_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., update_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., redirect_uris: _Optional[_Iterable[str]] = ..., default_redirect_uri: _Optional[str] = ..., secrets: _Optional[_Iterable[_Union[ClientSecret, _Mapping]]] = ...) -> None: ...
|
|
137
|
+
|
|
138
|
+
class ClientSecret(_message.Message):
|
|
139
|
+
__slots__ = ("id", "create_time", "update_time", "secret_suffix", "created_by", "status", "expire_time", "last_used_time")
|
|
140
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
141
|
+
CREATE_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
142
|
+
UPDATE_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
143
|
+
SECRET_SUFFIX_FIELD_NUMBER: _ClassVar[int]
|
|
144
|
+
CREATED_BY_FIELD_NUMBER: _ClassVar[int]
|
|
145
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
146
|
+
EXPIRE_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
147
|
+
LAST_USED_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
148
|
+
id: str
|
|
149
|
+
create_time: _timestamp_pb2.Timestamp
|
|
150
|
+
update_time: _timestamp_pb2.Timestamp
|
|
151
|
+
secret_suffix: str
|
|
152
|
+
created_by: str
|
|
153
|
+
status: ClientSecretStatus
|
|
154
|
+
expire_time: _timestamp_pb2.Timestamp
|
|
155
|
+
last_used_time: _timestamp_pb2.Timestamp
|
|
156
|
+
def __init__(self, id: _Optional[str] = ..., create_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., update_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., secret_suffix: _Optional[str] = ..., created_by: _Optional[str] = ..., status: _Optional[_Union[ClientSecretStatus, str]] = ..., expire_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., last_used_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
@@ -0,0 +1,232 @@
|
|
|
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 google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
6
|
+
from scalekit.v1.clients import clients_pb2 as scalekit_dot_v1_dot_clients_dot_clients__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ClientServiceStub(object):
|
|
10
|
+
"""Missing associated documentation comment in .proto file."""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.ListClient = channel.unary_unary(
|
|
19
|
+
'/scalekit.v1.clients.ClientService/ListClient',
|
|
20
|
+
request_serializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.ListClientsRequest.SerializeToString,
|
|
21
|
+
response_deserializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.ListClientsResponse.FromString,
|
|
22
|
+
)
|
|
23
|
+
self.GetClient = channel.unary_unary(
|
|
24
|
+
'/scalekit.v1.clients.ClientService/GetClient',
|
|
25
|
+
request_serializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.GetClientRequest.SerializeToString,
|
|
26
|
+
response_deserializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.GetClientResponse.FromString,
|
|
27
|
+
)
|
|
28
|
+
self.UpdateClient = channel.unary_unary(
|
|
29
|
+
'/scalekit.v1.clients.ClientService/UpdateClient',
|
|
30
|
+
request_serializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.UpdateClientRequest.SerializeToString,
|
|
31
|
+
response_deserializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.UpdateClientResponse.FromString,
|
|
32
|
+
)
|
|
33
|
+
self.CreateClientSecret = channel.unary_unary(
|
|
34
|
+
'/scalekit.v1.clients.ClientService/CreateClientSecret',
|
|
35
|
+
request_serializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.CreateClientSecretRequest.SerializeToString,
|
|
36
|
+
response_deserializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.CreateClientSecretResponse.FromString,
|
|
37
|
+
)
|
|
38
|
+
self.UpdateClientSecret = channel.unary_unary(
|
|
39
|
+
'/scalekit.v1.clients.ClientService/UpdateClientSecret',
|
|
40
|
+
request_serializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.UpdateClientSecretRequest.SerializeToString,
|
|
41
|
+
response_deserializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.UpdateClientSecretResponse.FromString,
|
|
42
|
+
)
|
|
43
|
+
self.DeleteClientSecret = channel.unary_unary(
|
|
44
|
+
'/scalekit.v1.clients.ClientService/DeleteClientSecret',
|
|
45
|
+
request_serializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.DeleteClientSecretRequest.SerializeToString,
|
|
46
|
+
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class ClientServiceServicer(object):
|
|
51
|
+
"""Missing associated documentation comment in .proto file."""
|
|
52
|
+
|
|
53
|
+
def ListClient(self, request, context):
|
|
54
|
+
"""Missing associated documentation comment in .proto file."""
|
|
55
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
56
|
+
context.set_details('Method not implemented!')
|
|
57
|
+
raise NotImplementedError('Method not implemented!')
|
|
58
|
+
|
|
59
|
+
def GetClient(self, request, context):
|
|
60
|
+
"""Missing associated documentation comment in .proto file."""
|
|
61
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
62
|
+
context.set_details('Method not implemented!')
|
|
63
|
+
raise NotImplementedError('Method not implemented!')
|
|
64
|
+
|
|
65
|
+
def UpdateClient(self, request, context):
|
|
66
|
+
"""Missing associated documentation comment in .proto file."""
|
|
67
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
68
|
+
context.set_details('Method not implemented!')
|
|
69
|
+
raise NotImplementedError('Method not implemented!')
|
|
70
|
+
|
|
71
|
+
def CreateClientSecret(self, request, context):
|
|
72
|
+
"""Missing associated documentation comment in .proto file."""
|
|
73
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
74
|
+
context.set_details('Method not implemented!')
|
|
75
|
+
raise NotImplementedError('Method not implemented!')
|
|
76
|
+
|
|
77
|
+
def UpdateClientSecret(self, request, context):
|
|
78
|
+
"""Missing associated documentation comment in .proto file."""
|
|
79
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
80
|
+
context.set_details('Method not implemented!')
|
|
81
|
+
raise NotImplementedError('Method not implemented!')
|
|
82
|
+
|
|
83
|
+
def DeleteClientSecret(self, request, context):
|
|
84
|
+
"""Missing associated documentation comment in .proto file."""
|
|
85
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
86
|
+
context.set_details('Method not implemented!')
|
|
87
|
+
raise NotImplementedError('Method not implemented!')
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def add_ClientServiceServicer_to_server(servicer, server):
|
|
91
|
+
rpc_method_handlers = {
|
|
92
|
+
'ListClient': grpc.unary_unary_rpc_method_handler(
|
|
93
|
+
servicer.ListClient,
|
|
94
|
+
request_deserializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.ListClientsRequest.FromString,
|
|
95
|
+
response_serializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.ListClientsResponse.SerializeToString,
|
|
96
|
+
),
|
|
97
|
+
'GetClient': grpc.unary_unary_rpc_method_handler(
|
|
98
|
+
servicer.GetClient,
|
|
99
|
+
request_deserializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.GetClientRequest.FromString,
|
|
100
|
+
response_serializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.GetClientResponse.SerializeToString,
|
|
101
|
+
),
|
|
102
|
+
'UpdateClient': grpc.unary_unary_rpc_method_handler(
|
|
103
|
+
servicer.UpdateClient,
|
|
104
|
+
request_deserializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.UpdateClientRequest.FromString,
|
|
105
|
+
response_serializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.UpdateClientResponse.SerializeToString,
|
|
106
|
+
),
|
|
107
|
+
'CreateClientSecret': grpc.unary_unary_rpc_method_handler(
|
|
108
|
+
servicer.CreateClientSecret,
|
|
109
|
+
request_deserializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.CreateClientSecretRequest.FromString,
|
|
110
|
+
response_serializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.CreateClientSecretResponse.SerializeToString,
|
|
111
|
+
),
|
|
112
|
+
'UpdateClientSecret': grpc.unary_unary_rpc_method_handler(
|
|
113
|
+
servicer.UpdateClientSecret,
|
|
114
|
+
request_deserializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.UpdateClientSecretRequest.FromString,
|
|
115
|
+
response_serializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.UpdateClientSecretResponse.SerializeToString,
|
|
116
|
+
),
|
|
117
|
+
'DeleteClientSecret': grpc.unary_unary_rpc_method_handler(
|
|
118
|
+
servicer.DeleteClientSecret,
|
|
119
|
+
request_deserializer=scalekit_dot_v1_dot_clients_dot_clients__pb2.DeleteClientSecretRequest.FromString,
|
|
120
|
+
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
121
|
+
),
|
|
122
|
+
}
|
|
123
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
124
|
+
'scalekit.v1.clients.ClientService', rpc_method_handlers)
|
|
125
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
# This class is part of an EXPERIMENTAL API.
|
|
129
|
+
class ClientService(object):
|
|
130
|
+
"""Missing associated documentation comment in .proto file."""
|
|
131
|
+
|
|
132
|
+
@staticmethod
|
|
133
|
+
def ListClient(request,
|
|
134
|
+
target,
|
|
135
|
+
options=(),
|
|
136
|
+
channel_credentials=None,
|
|
137
|
+
call_credentials=None,
|
|
138
|
+
insecure=False,
|
|
139
|
+
compression=None,
|
|
140
|
+
wait_for_ready=None,
|
|
141
|
+
timeout=None,
|
|
142
|
+
metadata=None):
|
|
143
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.clients.ClientService/ListClient',
|
|
144
|
+
scalekit_dot_v1_dot_clients_dot_clients__pb2.ListClientsRequest.SerializeToString,
|
|
145
|
+
scalekit_dot_v1_dot_clients_dot_clients__pb2.ListClientsResponse.FromString,
|
|
146
|
+
options, channel_credentials,
|
|
147
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
148
|
+
|
|
149
|
+
@staticmethod
|
|
150
|
+
def GetClient(request,
|
|
151
|
+
target,
|
|
152
|
+
options=(),
|
|
153
|
+
channel_credentials=None,
|
|
154
|
+
call_credentials=None,
|
|
155
|
+
insecure=False,
|
|
156
|
+
compression=None,
|
|
157
|
+
wait_for_ready=None,
|
|
158
|
+
timeout=None,
|
|
159
|
+
metadata=None):
|
|
160
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.clients.ClientService/GetClient',
|
|
161
|
+
scalekit_dot_v1_dot_clients_dot_clients__pb2.GetClientRequest.SerializeToString,
|
|
162
|
+
scalekit_dot_v1_dot_clients_dot_clients__pb2.GetClientResponse.FromString,
|
|
163
|
+
options, channel_credentials,
|
|
164
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
165
|
+
|
|
166
|
+
@staticmethod
|
|
167
|
+
def UpdateClient(request,
|
|
168
|
+
target,
|
|
169
|
+
options=(),
|
|
170
|
+
channel_credentials=None,
|
|
171
|
+
call_credentials=None,
|
|
172
|
+
insecure=False,
|
|
173
|
+
compression=None,
|
|
174
|
+
wait_for_ready=None,
|
|
175
|
+
timeout=None,
|
|
176
|
+
metadata=None):
|
|
177
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.clients.ClientService/UpdateClient',
|
|
178
|
+
scalekit_dot_v1_dot_clients_dot_clients__pb2.UpdateClientRequest.SerializeToString,
|
|
179
|
+
scalekit_dot_v1_dot_clients_dot_clients__pb2.UpdateClientResponse.FromString,
|
|
180
|
+
options, channel_credentials,
|
|
181
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
182
|
+
|
|
183
|
+
@staticmethod
|
|
184
|
+
def CreateClientSecret(request,
|
|
185
|
+
target,
|
|
186
|
+
options=(),
|
|
187
|
+
channel_credentials=None,
|
|
188
|
+
call_credentials=None,
|
|
189
|
+
insecure=False,
|
|
190
|
+
compression=None,
|
|
191
|
+
wait_for_ready=None,
|
|
192
|
+
timeout=None,
|
|
193
|
+
metadata=None):
|
|
194
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.clients.ClientService/CreateClientSecret',
|
|
195
|
+
scalekit_dot_v1_dot_clients_dot_clients__pb2.CreateClientSecretRequest.SerializeToString,
|
|
196
|
+
scalekit_dot_v1_dot_clients_dot_clients__pb2.CreateClientSecretResponse.FromString,
|
|
197
|
+
options, channel_credentials,
|
|
198
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
199
|
+
|
|
200
|
+
@staticmethod
|
|
201
|
+
def UpdateClientSecret(request,
|
|
202
|
+
target,
|
|
203
|
+
options=(),
|
|
204
|
+
channel_credentials=None,
|
|
205
|
+
call_credentials=None,
|
|
206
|
+
insecure=False,
|
|
207
|
+
compression=None,
|
|
208
|
+
wait_for_ready=None,
|
|
209
|
+
timeout=None,
|
|
210
|
+
metadata=None):
|
|
211
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.clients.ClientService/UpdateClientSecret',
|
|
212
|
+
scalekit_dot_v1_dot_clients_dot_clients__pb2.UpdateClientSecretRequest.SerializeToString,
|
|
213
|
+
scalekit_dot_v1_dot_clients_dot_clients__pb2.UpdateClientSecretResponse.FromString,
|
|
214
|
+
options, channel_credentials,
|
|
215
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
216
|
+
|
|
217
|
+
@staticmethod
|
|
218
|
+
def DeleteClientSecret(request,
|
|
219
|
+
target,
|
|
220
|
+
options=(),
|
|
221
|
+
channel_credentials=None,
|
|
222
|
+
call_credentials=None,
|
|
223
|
+
insecure=False,
|
|
224
|
+
compression=None,
|
|
225
|
+
wait_for_ready=None,
|
|
226
|
+
timeout=None,
|
|
227
|
+
metadata=None):
|
|
228
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.clients.ClientService/DeleteClientSecret',
|
|
229
|
+
scalekit_dot_v1_dot_clients_dot_clients__pb2.DeleteClientSecretRequest.SerializeToString,
|
|
230
|
+
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
231
|
+
options, channel_credentials,
|
|
232
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
File without changes
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: scalekit/v1/commons/commons.proto
|
|
4
|
+
# Protobuf Python Version: 5.26.1
|
|
5
|
+
"""Generated protocol buffer code."""
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
from google.protobuf.internal import builder as _builder
|
|
10
|
+
# @@protoc_insertion_point(imports)
|
|
11
|
+
|
|
12
|
+
_sym_db = _symbol_database.Default()
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
16
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
17
|
+
from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2
|
|
18
|
+
from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
|
|
19
|
+
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
|
|
20
|
+
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
21
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!scalekit/v1/commons/commons.proto\x12\x13scalekit.v1.commons\x1a\x1b\x62uf/validate/validate.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto*9\n\nRegionCode\x12\x1b\n\x17REGION_CODE_UNSPECIFIED\x10\x00\x12\x06\n\x02US\x10\x01\x12\x06\n\x02\x45U\x10\x02*E\n\x0f\x45nvironmentType\x12 \n\x1c\x45NVIRONMENT_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03PRD\x10\x01\x12\x07\n\x03\x44\x45V\x10\x02\x42\x33Z1github.com/scalekit-inc/scalekit/pkg/grpc/commonsb\x06proto3')
|
|
25
|
+
|
|
26
|
+
_globals = globals()
|
|
27
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
28
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'scalekit.v1.commons.commons_pb2', _globals)
|
|
29
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
30
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
31
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z1github.com/scalekit-inc/scalekit/pkg/grpc/commons'
|
|
32
|
+
_globals['_REGIONCODE']._serialized_start=271
|
|
33
|
+
_globals['_REGIONCODE']._serialized_end=328
|
|
34
|
+
_globals['_ENVIRONMENTTYPE']._serialized_start=330
|
|
35
|
+
_globals['_ENVIRONMENTTYPE']._serialized_end=399
|
|
36
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from google.api import annotations_pb2 as _annotations_pb2
|
|
3
|
+
from google.api import field_behavior_pb2 as _field_behavior_pb2
|
|
4
|
+
from google.protobuf import any_pb2 as _any_pb2
|
|
5
|
+
from google.protobuf import duration_pb2 as _duration_pb2
|
|
6
|
+
from google.protobuf import empty_pb2 as _empty_pb2
|
|
7
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
8
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
9
|
+
from google.protobuf import descriptor as _descriptor
|
|
10
|
+
from typing import ClassVar as _ClassVar
|
|
11
|
+
|
|
12
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
13
|
+
|
|
14
|
+
class RegionCode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
15
|
+
__slots__ = ()
|
|
16
|
+
REGION_CODE_UNSPECIFIED: _ClassVar[RegionCode]
|
|
17
|
+
US: _ClassVar[RegionCode]
|
|
18
|
+
EU: _ClassVar[RegionCode]
|
|
19
|
+
|
|
20
|
+
class EnvironmentType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
21
|
+
__slots__ = ()
|
|
22
|
+
ENVIRONMENT_TYPE_UNSPECIFIED: _ClassVar[EnvironmentType]
|
|
23
|
+
PRD: _ClassVar[EnvironmentType]
|
|
24
|
+
DEV: _ClassVar[EnvironmentType]
|
|
25
|
+
REGION_CODE_UNSPECIFIED: RegionCode
|
|
26
|
+
US: RegionCode
|
|
27
|
+
EU: RegionCode
|
|
28
|
+
ENVIRONMENT_TYPE_UNSPECIFIED: EnvironmentType
|
|
29
|
+
PRD: EnvironmentType
|
|
30
|
+
DEV: EnvironmentType
|
|
File without changes
|