transcodely 0.2.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/validate_pb2.py +469 -0
- buf/validate/validate_pb2.pyi +651 -0
- transcodely/__init__.py +175 -0
- transcodely/_codec/__init__.py +0 -0
- transcodely/_codec/json_codec.py +193 -0
- transcodely/_transport/__init__.py +0 -0
- transcodely/_transport/error_mapping.py +102 -0
- transcodely/_transport/headers.py +31 -0
- transcodely/_transport/transport.py +312 -0
- transcodely/client.py +160 -0
- transcodely/errors.py +115 -0
- transcodely/pagination.py +53 -0
- transcodely/py.typed +0 -0
- transcodely/resources/__init__.py +0 -0
- transcodely/resources/_helpers.py +29 -0
- transcodely/resources/api_keys.py +48 -0
- transcodely/resources/apps.py +59 -0
- transcodely/resources/events.py +118 -0
- transcodely/resources/health.py +19 -0
- transcodely/resources/jobs.py +120 -0
- transcodely/resources/memberships.py +54 -0
- transcodely/resources/organizations.py +73 -0
- transcodely/resources/origins.py +55 -0
- transcodely/resources/presets.py +63 -0
- transcodely/resources/users.py +46 -0
- transcodely/resources/videos.py +114 -0
- transcodely/resources/webhook_endpoints.py +242 -0
- transcodely/streaming.py +47 -0
- transcodely/types.py +570 -0
- transcodely/v1/api_key_pb2.py +69 -0
- transcodely/v1/api_key_pb2.pyi +97 -0
- transcodely/v1/app_pb2.py +107 -0
- transcodely/v1/app_pb2.pyi +219 -0
- transcodely/v1/codec_av1_pb2.py +55 -0
- transcodely/v1/codec_av1_pb2.pyi +34 -0
- transcodely/v1/codec_h264_pb2.py +71 -0
- transcodely/v1/codec_h264_pb2.pyi +44 -0
- transcodely/v1/codec_h265_pb2.py +69 -0
- transcodely/v1/codec_h265_pb2.pyi +42 -0
- transcodely/v1/codec_vp9_pb2.py +57 -0
- transcodely/v1/codec_vp9_pb2.pyi +30 -0
- transcodely/v1/common_pb2.py +67 -0
- transcodely/v1/common_pb2.pyi +171 -0
- transcodely/v1/content_aware_pb2.py +56 -0
- transcodely/v1/content_aware_pb2.pyi +51 -0
- transcodely/v1/drm_pb2.py +65 -0
- transcodely/v1/drm_pb2.pyi +68 -0
- transcodely/v1/hdr_pb2.py +57 -0
- transcodely/v1/hdr_pb2.pyi +64 -0
- transcodely/v1/health_pb2.py +44 -0
- transcodely/v1/health_pb2.pyi +44 -0
- transcodely/v1/job_pb2.py +201 -0
- transcodely/v1/job_pb2.pyi +546 -0
- transcodely/v1/media_pb2.py +43 -0
- transcodely/v1/media_pb2.pyi +100 -0
- transcodely/v1/membership_pb2.py +71 -0
- transcodely/v1/membership_pb2.pyi +122 -0
- transcodely/v1/organization_pb2.py +81 -0
- transcodely/v1/organization_pb2.pyi +121 -0
- transcodely/v1/origin_pb2.py +157 -0
- transcodely/v1/origin_pb2.pyi +317 -0
- transcodely/v1/preset_pb2.py +192 -0
- transcodely/v1/preset_pb2.pyi +290 -0
- transcodely/v1/streaming_pb2.py +59 -0
- transcodely/v1/streaming_pb2.pyi +56 -0
- transcodely/v1/subtitles_pb2.py +69 -0
- transcodely/v1/subtitles_pb2.pyi +75 -0
- transcodely/v1/thumbnails_pb2.py +63 -0
- transcodely/v1/thumbnails_pb2.pyi +74 -0
- transcodely/v1/user_pb2.py +72 -0
- transcodely/v1/user_pb2.pyi +137 -0
- transcodely/v1/video_pb2.py +166 -0
- transcodely/v1/video_pb2.pyi +367 -0
- transcodely/v1/webhook_pb2.py +151 -0
- transcodely/v1/webhook_pb2.pyi +336 -0
- transcodely/version.py +11 -0
- transcodely/webhooks/__init__.py +44 -0
- transcodely/webhooks/construct_event.py +111 -0
- transcodely/webhooks/signature.py +110 -0
- transcodely/webhooks/types.py +115 -0
- transcodely-0.2.0.dist-info/METADATA +349 -0
- transcodely-0.2.0.dist-info/RECORD +86 -0
- transcodely-0.2.0.dist-info/WHEEL +4 -0
- transcodely-0.2.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import message as _message
|
|
4
|
+
from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
5
|
+
|
|
6
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
7
|
+
|
|
8
|
+
class InputMetadata(_message.Message):
|
|
9
|
+
__slots__ = ("format", "duration_ms", "size_bytes", "bit_rate", "video", "audio", "probed_at")
|
|
10
|
+
FORMAT_FIELD_NUMBER: _ClassVar[int]
|
|
11
|
+
DURATION_MS_FIELD_NUMBER: _ClassVar[int]
|
|
12
|
+
SIZE_BYTES_FIELD_NUMBER: _ClassVar[int]
|
|
13
|
+
BIT_RATE_FIELD_NUMBER: _ClassVar[int]
|
|
14
|
+
VIDEO_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
AUDIO_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
PROBED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
format: str
|
|
18
|
+
duration_ms: int
|
|
19
|
+
size_bytes: int
|
|
20
|
+
bit_rate: int
|
|
21
|
+
video: VideoStreamInfo
|
|
22
|
+
audio: AudioStreamInfo
|
|
23
|
+
probed_at: _timestamp_pb2.Timestamp
|
|
24
|
+
def __init__(self, format: _Optional[str] = ..., duration_ms: _Optional[int] = ..., size_bytes: _Optional[int] = ..., bit_rate: _Optional[int] = ..., video: _Optional[_Union[VideoStreamInfo, _Mapping]] = ..., audio: _Optional[_Union[AudioStreamInfo, _Mapping]] = ..., probed_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
25
|
+
|
|
26
|
+
class VideoStreamInfo(_message.Message):
|
|
27
|
+
__slots__ = ("codec", "width", "height", "frame_rate", "bit_rate", "pixel_format", "color_space", "color_transfer", "duration_ms", "color_primaries", "chroma_location", "bit_depth", "interlaced", "frame_count", "display_aspect_ratio", "sample_aspect_ratio", "rotation")
|
|
28
|
+
CODEC_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
WIDTH_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
+
HEIGHT_FIELD_NUMBER: _ClassVar[int]
|
|
31
|
+
FRAME_RATE_FIELD_NUMBER: _ClassVar[int]
|
|
32
|
+
BIT_RATE_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
PIXEL_FORMAT_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
+
COLOR_SPACE_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
COLOR_TRANSFER_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
+
DURATION_MS_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
+
COLOR_PRIMARIES_FIELD_NUMBER: _ClassVar[int]
|
|
38
|
+
CHROMA_LOCATION_FIELD_NUMBER: _ClassVar[int]
|
|
39
|
+
BIT_DEPTH_FIELD_NUMBER: _ClassVar[int]
|
|
40
|
+
INTERLACED_FIELD_NUMBER: _ClassVar[int]
|
|
41
|
+
FRAME_COUNT_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
+
DISPLAY_ASPECT_RATIO_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
+
SAMPLE_ASPECT_RATIO_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
ROTATION_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
codec: str
|
|
46
|
+
width: int
|
|
47
|
+
height: int
|
|
48
|
+
frame_rate: float
|
|
49
|
+
bit_rate: int
|
|
50
|
+
pixel_format: str
|
|
51
|
+
color_space: str
|
|
52
|
+
color_transfer: str
|
|
53
|
+
duration_ms: int
|
|
54
|
+
color_primaries: str
|
|
55
|
+
chroma_location: str
|
|
56
|
+
bit_depth: int
|
|
57
|
+
interlaced: bool
|
|
58
|
+
frame_count: int
|
|
59
|
+
display_aspect_ratio: str
|
|
60
|
+
sample_aspect_ratio: str
|
|
61
|
+
rotation: int
|
|
62
|
+
def __init__(self, codec: _Optional[str] = ..., width: _Optional[int] = ..., height: _Optional[int] = ..., frame_rate: _Optional[float] = ..., bit_rate: _Optional[int] = ..., pixel_format: _Optional[str] = ..., color_space: _Optional[str] = ..., color_transfer: _Optional[str] = ..., duration_ms: _Optional[int] = ..., color_primaries: _Optional[str] = ..., chroma_location: _Optional[str] = ..., bit_depth: _Optional[int] = ..., interlaced: bool = ..., frame_count: _Optional[int] = ..., display_aspect_ratio: _Optional[str] = ..., sample_aspect_ratio: _Optional[str] = ..., rotation: _Optional[int] = ...) -> None: ...
|
|
63
|
+
|
|
64
|
+
class AudioStreamInfo(_message.Message):
|
|
65
|
+
__slots__ = ("codec", "sample_rate", "channels", "channel_layout", "bit_rate", "duration_ms", "bits_per_sample", "language", "is_default")
|
|
66
|
+
CODEC_FIELD_NUMBER: _ClassVar[int]
|
|
67
|
+
SAMPLE_RATE_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
+
CHANNELS_FIELD_NUMBER: _ClassVar[int]
|
|
69
|
+
CHANNEL_LAYOUT_FIELD_NUMBER: _ClassVar[int]
|
|
70
|
+
BIT_RATE_FIELD_NUMBER: _ClassVar[int]
|
|
71
|
+
DURATION_MS_FIELD_NUMBER: _ClassVar[int]
|
|
72
|
+
BITS_PER_SAMPLE_FIELD_NUMBER: _ClassVar[int]
|
|
73
|
+
LANGUAGE_FIELD_NUMBER: _ClassVar[int]
|
|
74
|
+
IS_DEFAULT_FIELD_NUMBER: _ClassVar[int]
|
|
75
|
+
codec: str
|
|
76
|
+
sample_rate: int
|
|
77
|
+
channels: int
|
|
78
|
+
channel_layout: str
|
|
79
|
+
bit_rate: int
|
|
80
|
+
duration_ms: int
|
|
81
|
+
bits_per_sample: int
|
|
82
|
+
language: str
|
|
83
|
+
is_default: bool
|
|
84
|
+
def __init__(self, codec: _Optional[str] = ..., sample_rate: _Optional[int] = ..., channels: _Optional[int] = ..., channel_layout: _Optional[str] = ..., bit_rate: _Optional[int] = ..., duration_ms: _Optional[int] = ..., bits_per_sample: _Optional[int] = ..., language: _Optional[str] = ..., is_default: bool = ...) -> None: ...
|
|
85
|
+
|
|
86
|
+
class SubtitleStreamInfo(_message.Message):
|
|
87
|
+
__slots__ = ("codec", "language", "title", "is_default", "hearing_impaired", "forced")
|
|
88
|
+
CODEC_FIELD_NUMBER: _ClassVar[int]
|
|
89
|
+
LANGUAGE_FIELD_NUMBER: _ClassVar[int]
|
|
90
|
+
TITLE_FIELD_NUMBER: _ClassVar[int]
|
|
91
|
+
IS_DEFAULT_FIELD_NUMBER: _ClassVar[int]
|
|
92
|
+
HEARING_IMPAIRED_FIELD_NUMBER: _ClassVar[int]
|
|
93
|
+
FORCED_FIELD_NUMBER: _ClassVar[int]
|
|
94
|
+
codec: str
|
|
95
|
+
language: str
|
|
96
|
+
title: str
|
|
97
|
+
is_default: bool
|
|
98
|
+
hearing_impaired: bool
|
|
99
|
+
forced: bool
|
|
100
|
+
def __init__(self, codec: _Optional[str] = ..., language: _Optional[str] = ..., title: _Optional[str] = ..., is_default: bool = ..., hearing_impaired: bool = ..., forced: bool = ...) -> None: ...
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: transcodely/v1/membership.proto
|
|
5
|
+
# Protobuf Python Version: 5.28.3
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
28,
|
|
16
|
+
3,
|
|
17
|
+
'',
|
|
18
|
+
'transcodely/v1/membership.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
27
|
+
from transcodely.v1 import common_pb2 as transcodely_dot_v1_dot_common__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1ftranscodely/v1/membership.proto\x12\x0etranscodely.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1btranscodely/v1/common.proto\"\x84\x04\n\nMembership\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n\x07user_id\x18\x02 \x01(\tR\x06userId\x12\x15\n\x06org_id\x18\x03 \x01(\tR\x05orgId\x12\x32\n\x04role\x18\x04 \x01(\x0e\x32\x1e.transcodely.v1.MembershipRoleR\x04role\x12\x38\n\x06status\x18\x05 \x01(\x0e\x32 .transcodely.v1.MembershipStatusR\x06status\x12\"\n\ninvited_by\x18\x06 \x01(\tH\x00R\tinvitedBy\x88\x01\x01\x12>\n\ninvited_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01R\tinvitedAt\x88\x01\x01\x12@\n\x0b\x61\x63\x63\x65pted_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x02R\nacceptedAt\x88\x01\x01\x12\x39\n\ncreated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAtB\r\n\x0b_invited_byB\r\n\x0b_invited_atB\x0e\n\x0c_accepted_at\"\xb2\x01\n\x12MembershipWithUser\x12:\n\nmembership\x18\x01 \x01(\x0b\x32\x1a.transcodely.v1.MembershipR\nmembership\x12\x1d\n\nuser_email\x18\x02 \x01(\tR\tuserEmail\x12\x1b\n\tuser_name\x18\x03 \x01(\tR\x08userName\x12$\n\x0euser_is_active\x18\x04 \x01(\x08R\x0cuserIsActive\"\xa5\x01\n\x16ListMembershipsRequest\x12=\n\x06status\x18\x01 \x01(\x0e\x32 .transcodely.v1.MembershipStatusH\x00R\x06status\x88\x01\x01\x12\x41\n\npagination\x18\x02 \x01(\x0b\x32!.transcodely.v1.PaginationRequestR\npaginationB\t\n\x07_status\"\xa3\x01\n\x17ListMembershipsResponse\x12\x44\n\x0bmemberships\x18\x01 \x03(\x0b\x32\".transcodely.v1.MembershipWithUserR\x0bmemberships\x12\x42\n\npagination\x18\x02 \x01(\x0b\x32\".transcodely.v1.PaginationResponseR\npagination\"F\n\x14GetMembershipRequest\x12.\n\x02id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^mem_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x02id\"[\n\x15GetMembershipResponse\x12\x42\n\nmembership\x18\x01 \x01(\x0b\x32\".transcodely.v1.MembershipWithUserR\nmembership\"\x8e\x01\n\x1bUpdateMembershipRoleRequest\x12.\n\x02id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^mem_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x02id\x12?\n\x04role\x18\x02 \x01(\x0e\x32\x1e.transcodely.v1.MembershipRoleB\x0b\xbaH\x08\x82\x01\x02 \x00\xc8\x01\x01R\x04role\"b\n\x1cUpdateMembershipRoleResponse\x12\x42\n\nmembership\x18\x01 \x01(\x0b\x32\".transcodely.v1.MembershipWithUserR\nmembership\"I\n\x17RemoveMembershipRequest\x12.\n\x02id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^mem_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x02id\"\x1a\n\x18RemoveMembershipResponse*\x9f\x01\n\x0eMembershipRole\x12\x1f\n\x1bMEMBERSHIP_ROLE_UNSPECIFIED\x10\x00\x12\x19\n\x15MEMBERSHIP_ROLE_OWNER\x10\x01\x12\x19\n\x15MEMBERSHIP_ROLE_ADMIN\x10\x02\x12\x1a\n\x16MEMBERSHIP_ROLE_MEMBER\x10\x03\x12\x1a\n\x16MEMBERSHIP_ROLE_VIEWER\x10\x04*\x93\x01\n\x10MembershipStatus\x12!\n\x1dMEMBERSHIP_STATUS_UNSPECIFIED\x10\x00\x12\x1c\n\x18MEMBERSHIP_STATUS_ACTIVE\x10\x01\x12\x1d\n\x19MEMBERSHIP_STATUS_INVITED\x10\x02\x12\x1f\n\x1bMEMBERSHIP_STATUS_SUSPENDED\x10\x03\x32\x86\x03\n\x11MembershipService\x12W\n\x04List\x12&.transcodely.v1.ListMembershipsRequest\x1a\'.transcodely.v1.ListMembershipsResponse\x12R\n\x03Get\x12$.transcodely.v1.GetMembershipRequest\x1a%.transcodely.v1.GetMembershipResponse\x12g\n\nUpdateRole\x12+.transcodely.v1.UpdateMembershipRoleRequest\x1a,.transcodely.v1.UpdateMembershipRoleResponse\x12[\n\x06Remove\x12\'.transcodely.v1.RemoveMembershipRequest\x1a(.transcodely.v1.RemoveMembershipResponseb\x06proto3')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'transcodely.v1.membership_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
DESCRIPTOR._loaded_options = None
|
|
37
|
+
_globals['_GETMEMBERSHIPREQUEST'].fields_by_name['id']._loaded_options = None
|
|
38
|
+
_globals['_GETMEMBERSHIPREQUEST'].fields_by_name['id']._serialized_options = b'\272H\033r\0262\024^mem_[a-zA-Z0-9_-]+$\310\001\001'
|
|
39
|
+
_globals['_UPDATEMEMBERSHIPROLEREQUEST'].fields_by_name['id']._loaded_options = None
|
|
40
|
+
_globals['_UPDATEMEMBERSHIPROLEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\033r\0262\024^mem_[a-zA-Z0-9_-]+$\310\001\001'
|
|
41
|
+
_globals['_UPDATEMEMBERSHIPROLEREQUEST'].fields_by_name['role']._loaded_options = None
|
|
42
|
+
_globals['_UPDATEMEMBERSHIPROLEREQUEST'].fields_by_name['role']._serialized_options = b'\272H\010\202\001\002 \000\310\001\001'
|
|
43
|
+
_globals['_REMOVEMEMBERSHIPREQUEST'].fields_by_name['id']._loaded_options = None
|
|
44
|
+
_globals['_REMOVEMEMBERSHIPREQUEST'].fields_by_name['id']._serialized_options = b'\272H\033r\0262\024^mem_[a-zA-Z0-9_-]+$\310\001\001'
|
|
45
|
+
_globals['_MEMBERSHIPROLE']._serialized_start=1690
|
|
46
|
+
_globals['_MEMBERSHIPROLE']._serialized_end=1849
|
|
47
|
+
_globals['_MEMBERSHIPSTATUS']._serialized_start=1852
|
|
48
|
+
_globals['_MEMBERSHIPSTATUS']._serialized_end=1999
|
|
49
|
+
_globals['_MEMBERSHIP']._serialized_start=143
|
|
50
|
+
_globals['_MEMBERSHIP']._serialized_end=659
|
|
51
|
+
_globals['_MEMBERSHIPWITHUSER']._serialized_start=662
|
|
52
|
+
_globals['_MEMBERSHIPWITHUSER']._serialized_end=840
|
|
53
|
+
_globals['_LISTMEMBERSHIPSREQUEST']._serialized_start=843
|
|
54
|
+
_globals['_LISTMEMBERSHIPSREQUEST']._serialized_end=1008
|
|
55
|
+
_globals['_LISTMEMBERSHIPSRESPONSE']._serialized_start=1011
|
|
56
|
+
_globals['_LISTMEMBERSHIPSRESPONSE']._serialized_end=1174
|
|
57
|
+
_globals['_GETMEMBERSHIPREQUEST']._serialized_start=1176
|
|
58
|
+
_globals['_GETMEMBERSHIPREQUEST']._serialized_end=1246
|
|
59
|
+
_globals['_GETMEMBERSHIPRESPONSE']._serialized_start=1248
|
|
60
|
+
_globals['_GETMEMBERSHIPRESPONSE']._serialized_end=1339
|
|
61
|
+
_globals['_UPDATEMEMBERSHIPROLEREQUEST']._serialized_start=1342
|
|
62
|
+
_globals['_UPDATEMEMBERSHIPROLEREQUEST']._serialized_end=1484
|
|
63
|
+
_globals['_UPDATEMEMBERSHIPROLERESPONSE']._serialized_start=1486
|
|
64
|
+
_globals['_UPDATEMEMBERSHIPROLERESPONSE']._serialized_end=1584
|
|
65
|
+
_globals['_REMOVEMEMBERSHIPREQUEST']._serialized_start=1586
|
|
66
|
+
_globals['_REMOVEMEMBERSHIPREQUEST']._serialized_end=1659
|
|
67
|
+
_globals['_REMOVEMEMBERSHIPRESPONSE']._serialized_start=1661
|
|
68
|
+
_globals['_REMOVEMEMBERSHIPRESPONSE']._serialized_end=1687
|
|
69
|
+
_globals['_MEMBERSHIPSERVICE']._serialized_start=2002
|
|
70
|
+
_globals['_MEMBERSHIPSERVICE']._serialized_end=2392
|
|
71
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
3
|
+
from transcodely.v1 import common_pb2 as _common_pb2
|
|
4
|
+
from google.protobuf.internal import containers as _containers
|
|
5
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import message as _message
|
|
8
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
9
|
+
|
|
10
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
11
|
+
|
|
12
|
+
class MembershipRole(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
13
|
+
__slots__ = ()
|
|
14
|
+
MEMBERSHIP_ROLE_UNSPECIFIED: _ClassVar[MembershipRole]
|
|
15
|
+
MEMBERSHIP_ROLE_OWNER: _ClassVar[MembershipRole]
|
|
16
|
+
MEMBERSHIP_ROLE_ADMIN: _ClassVar[MembershipRole]
|
|
17
|
+
MEMBERSHIP_ROLE_MEMBER: _ClassVar[MembershipRole]
|
|
18
|
+
MEMBERSHIP_ROLE_VIEWER: _ClassVar[MembershipRole]
|
|
19
|
+
|
|
20
|
+
class MembershipStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
21
|
+
__slots__ = ()
|
|
22
|
+
MEMBERSHIP_STATUS_UNSPECIFIED: _ClassVar[MembershipStatus]
|
|
23
|
+
MEMBERSHIP_STATUS_ACTIVE: _ClassVar[MembershipStatus]
|
|
24
|
+
MEMBERSHIP_STATUS_INVITED: _ClassVar[MembershipStatus]
|
|
25
|
+
MEMBERSHIP_STATUS_SUSPENDED: _ClassVar[MembershipStatus]
|
|
26
|
+
MEMBERSHIP_ROLE_UNSPECIFIED: MembershipRole
|
|
27
|
+
MEMBERSHIP_ROLE_OWNER: MembershipRole
|
|
28
|
+
MEMBERSHIP_ROLE_ADMIN: MembershipRole
|
|
29
|
+
MEMBERSHIP_ROLE_MEMBER: MembershipRole
|
|
30
|
+
MEMBERSHIP_ROLE_VIEWER: MembershipRole
|
|
31
|
+
MEMBERSHIP_STATUS_UNSPECIFIED: MembershipStatus
|
|
32
|
+
MEMBERSHIP_STATUS_ACTIVE: MembershipStatus
|
|
33
|
+
MEMBERSHIP_STATUS_INVITED: MembershipStatus
|
|
34
|
+
MEMBERSHIP_STATUS_SUSPENDED: MembershipStatus
|
|
35
|
+
|
|
36
|
+
class Membership(_message.Message):
|
|
37
|
+
__slots__ = ("id", "user_id", "org_id", "role", "status", "invited_by", "invited_at", "accepted_at", "created_at", "updated_at")
|
|
38
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
39
|
+
USER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
40
|
+
ORG_ID_FIELD_NUMBER: _ClassVar[int]
|
|
41
|
+
ROLE_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
+
INVITED_BY_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
INVITED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
ACCEPTED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
46
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
+
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
48
|
+
id: str
|
|
49
|
+
user_id: str
|
|
50
|
+
org_id: str
|
|
51
|
+
role: MembershipRole
|
|
52
|
+
status: MembershipStatus
|
|
53
|
+
invited_by: str
|
|
54
|
+
invited_at: _timestamp_pb2.Timestamp
|
|
55
|
+
accepted_at: _timestamp_pb2.Timestamp
|
|
56
|
+
created_at: _timestamp_pb2.Timestamp
|
|
57
|
+
updated_at: _timestamp_pb2.Timestamp
|
|
58
|
+
def __init__(self, id: _Optional[str] = ..., user_id: _Optional[str] = ..., org_id: _Optional[str] = ..., role: _Optional[_Union[MembershipRole, str]] = ..., status: _Optional[_Union[MembershipStatus, str]] = ..., invited_by: _Optional[str] = ..., invited_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., accepted_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
59
|
+
|
|
60
|
+
class MembershipWithUser(_message.Message):
|
|
61
|
+
__slots__ = ("membership", "user_email", "user_name", "user_is_active")
|
|
62
|
+
MEMBERSHIP_FIELD_NUMBER: _ClassVar[int]
|
|
63
|
+
USER_EMAIL_FIELD_NUMBER: _ClassVar[int]
|
|
64
|
+
USER_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
USER_IS_ACTIVE_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
membership: Membership
|
|
67
|
+
user_email: str
|
|
68
|
+
user_name: str
|
|
69
|
+
user_is_active: bool
|
|
70
|
+
def __init__(self, membership: _Optional[_Union[Membership, _Mapping]] = ..., user_email: _Optional[str] = ..., user_name: _Optional[str] = ..., user_is_active: bool = ...) -> None: ...
|
|
71
|
+
|
|
72
|
+
class ListMembershipsRequest(_message.Message):
|
|
73
|
+
__slots__ = ("status", "pagination")
|
|
74
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
75
|
+
PAGINATION_FIELD_NUMBER: _ClassVar[int]
|
|
76
|
+
status: MembershipStatus
|
|
77
|
+
pagination: _common_pb2.PaginationRequest
|
|
78
|
+
def __init__(self, status: _Optional[_Union[MembershipStatus, str]] = ..., pagination: _Optional[_Union[_common_pb2.PaginationRequest, _Mapping]] = ...) -> None: ...
|
|
79
|
+
|
|
80
|
+
class ListMembershipsResponse(_message.Message):
|
|
81
|
+
__slots__ = ("memberships", "pagination")
|
|
82
|
+
MEMBERSHIPS_FIELD_NUMBER: _ClassVar[int]
|
|
83
|
+
PAGINATION_FIELD_NUMBER: _ClassVar[int]
|
|
84
|
+
memberships: _containers.RepeatedCompositeFieldContainer[MembershipWithUser]
|
|
85
|
+
pagination: _common_pb2.PaginationResponse
|
|
86
|
+
def __init__(self, memberships: _Optional[_Iterable[_Union[MembershipWithUser, _Mapping]]] = ..., pagination: _Optional[_Union[_common_pb2.PaginationResponse, _Mapping]] = ...) -> None: ...
|
|
87
|
+
|
|
88
|
+
class GetMembershipRequest(_message.Message):
|
|
89
|
+
__slots__ = ("id",)
|
|
90
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
91
|
+
id: str
|
|
92
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
93
|
+
|
|
94
|
+
class GetMembershipResponse(_message.Message):
|
|
95
|
+
__slots__ = ("membership",)
|
|
96
|
+
MEMBERSHIP_FIELD_NUMBER: _ClassVar[int]
|
|
97
|
+
membership: MembershipWithUser
|
|
98
|
+
def __init__(self, membership: _Optional[_Union[MembershipWithUser, _Mapping]] = ...) -> None: ...
|
|
99
|
+
|
|
100
|
+
class UpdateMembershipRoleRequest(_message.Message):
|
|
101
|
+
__slots__ = ("id", "role")
|
|
102
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
103
|
+
ROLE_FIELD_NUMBER: _ClassVar[int]
|
|
104
|
+
id: str
|
|
105
|
+
role: MembershipRole
|
|
106
|
+
def __init__(self, id: _Optional[str] = ..., role: _Optional[_Union[MembershipRole, str]] = ...) -> None: ...
|
|
107
|
+
|
|
108
|
+
class UpdateMembershipRoleResponse(_message.Message):
|
|
109
|
+
__slots__ = ("membership",)
|
|
110
|
+
MEMBERSHIP_FIELD_NUMBER: _ClassVar[int]
|
|
111
|
+
membership: MembershipWithUser
|
|
112
|
+
def __init__(self, membership: _Optional[_Union[MembershipWithUser, _Mapping]] = ...) -> None: ...
|
|
113
|
+
|
|
114
|
+
class RemoveMembershipRequest(_message.Message):
|
|
115
|
+
__slots__ = ("id",)
|
|
116
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
117
|
+
id: str
|
|
118
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
119
|
+
|
|
120
|
+
class RemoveMembershipResponse(_message.Message):
|
|
121
|
+
__slots__ = ()
|
|
122
|
+
def __init__(self) -> None: ...
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: transcodely/v1/organization.proto
|
|
5
|
+
# Protobuf Python Version: 5.28.3
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
28,
|
|
16
|
+
3,
|
|
17
|
+
'',
|
|
18
|
+
'transcodely/v1/organization.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
27
|
+
from transcodely.v1 import common_pb2 as transcodely_dot_v1_dot_common__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!transcodely/v1/organization.proto\x12\x0etranscodely.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1btranscodely/v1/common.proto\"\xdf\x02\n\x0cOrganization\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04slug\x18\x02 \x01(\tR\x04slug\x12!\n\x0c\x64isplay_name\x18\x03 \x01(\tR\x0b\x64isplayName\x12(\n\rbilling_email\x18\x04 \x01(\tH\x00R\x0c\x62illingEmail\x88\x01\x01\x12\x1a\n\x08\x63urrency\x18\x05 \x01(\tR\x08\x63urrency\x12:\n\x06status\x18\x06 \x01(\x0e\x32\".transcodely.v1.OrganizationStatusR\x06status\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAtB\x10\n\x0e_billing_email\"4\n\x10\x43heckSlugRequest\x12 \n\x04slug\x18\x01 \x01(\tB\x0c\xbaH\tr\x04\x10\x03\x18\x32\xc8\x01\x01R\x04slug\"\x9c\x01\n\x11\x43heckSlugResponse\x12\x1c\n\tavailable\x18\x01 \x01(\x08R\tavailable\x12\'\n\x0fnormalized_slug\x18\x02 \x01(\tR\x0enormalizedSlug\x12\x1b\n\x06reason\x18\x03 \x01(\tH\x00R\x06reason\x88\x01\x01\x12\x18\n\x07message\x18\x04 \x01(\tR\x07messageB\t\n\x07_reason\"\x8a\x02\n\x19\x43reateOrganizationRequest\x12?\n\x04slug\x18\x01 \x01(\tB+\xbaH(r#\x10\x03\x18\x32\x32\x1d^[a-z][a-z0-9]*(-[a-z0-9]+)*$\xc8\x01\x01R\x04slug\x12/\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x0c\xbaH\tr\x04\x10\x01\x18\x64\xc8\x01\x01R\x0b\x64isplayName\x12\x31\n\rbilling_email\x18\x03 \x01(\tB\x07\xbaH\x04r\x02`\x01H\x00R\x0c\x62illingEmail\x88\x01\x01\x12)\n\x08\x63urrency\x18\x04 \x01(\tB\x08\xbaH\x05r\x03\x98\x01\x03H\x01R\x08\x63urrency\x88\x01\x01\x42\x10\n\x0e_billing_emailB\x0b\n\t_currency\"^\n\x1a\x43reateOrganizationResponse\x12@\n\x0corganization\x18\x01 \x01(\x0b\x32\x1c.transcodely.v1.OrganizationR\x0corganization\"D\n\x16GetOrganizationRequest\x12*\n\nid_or_slug\x18\x01 \x01(\tB\x0c\xbaH\tr\x04\x10\x03\x18\x32\xc8\x01\x01R\x08idOrSlug\"[\n\x17GetOrganizationResponse\x12@\n\x0corganization\x18\x01 \x01(\x0b\x32\x1c.transcodely.v1.OrganizationR\x0corganization\"\xd4\x01\n\x19UpdateOrganizationRequest\x12.\n\x02id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^org_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x02id\x12\x31\n\x0c\x64isplay_name\x18\x02 \x01(\tB\t\xbaH\x06r\x04\x10\x01\x18\x64H\x00R\x0b\x64isplayName\x88\x01\x01\x12\x31\n\rbilling_email\x18\x03 \x01(\tB\x07\xbaH\x04r\x02`\x01H\x01R\x0c\x62illingEmail\x88\x01\x01\x42\x0f\n\r_display_nameB\x10\n\x0e_billing_email\"^\n\x1aUpdateOrganizationResponse\x12@\n\x0corganization\x18\x01 \x01(\x0b\x32\x1c.transcodely.v1.OrganizationR\x0corganization\"\x88\x01\n\x18ListOrganizationsRequest\x12\x41\n\npagination\x18\x01 \x01(\x0b\x32!.transcodely.v1.PaginationRequestR\npagination\x12)\n\x10include_inactive\x18\x02 \x01(\x08R\x0fincludeInactive\"\xa3\x01\n\x19ListOrganizationsResponse\x12\x42\n\rorganizations\x18\x01 \x03(\x0b\x32\x1c.transcodely.v1.OrganizationR\rorganizations\x12\x42\n\npagination\x18\x02 \x01(\x0b\x32\".transcodely.v1.PaginationResponseR\npagination*\x9d\x01\n\x12OrganizationStatus\x12#\n\x1fORGANIZATION_STATUS_UNSPECIFIED\x10\x00\x12\x1e\n\x1aORGANIZATION_STATUS_ACTIVE\x10\x01\x12!\n\x1dORGANIZATION_STATUS_SUSPENDED\x10\x02\x12\x1f\n\x1bORGANIZATION_STATUS_DELETED\x10\x03\x32\xde\x03\n\x13OrganizationService\x12P\n\tCheckSlug\x12 .transcodely.v1.CheckSlugRequest\x1a!.transcodely.v1.CheckSlugResponse\x12_\n\x06\x43reate\x12).transcodely.v1.CreateOrganizationRequest\x1a*.transcodely.v1.CreateOrganizationResponse\x12V\n\x03Get\x12&.transcodely.v1.GetOrganizationRequest\x1a\'.transcodely.v1.GetOrganizationResponse\x12_\n\x06Update\x12).transcodely.v1.UpdateOrganizationRequest\x1a*.transcodely.v1.UpdateOrganizationResponse\x12[\n\x04List\x12(.transcodely.v1.ListOrganizationsRequest\x1a).transcodely.v1.ListOrganizationsResponseb\x06proto3')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'transcodely.v1.organization_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
DESCRIPTOR._loaded_options = None
|
|
37
|
+
_globals['_CHECKSLUGREQUEST'].fields_by_name['slug']._loaded_options = None
|
|
38
|
+
_globals['_CHECKSLUGREQUEST'].fields_by_name['slug']._serialized_options = b'\272H\tr\004\020\003\0302\310\001\001'
|
|
39
|
+
_globals['_CREATEORGANIZATIONREQUEST'].fields_by_name['slug']._loaded_options = None
|
|
40
|
+
_globals['_CREATEORGANIZATIONREQUEST'].fields_by_name['slug']._serialized_options = b'\272H(r#\020\003\03022\035^[a-z][a-z0-9]*(-[a-z0-9]+)*$\310\001\001'
|
|
41
|
+
_globals['_CREATEORGANIZATIONREQUEST'].fields_by_name['display_name']._loaded_options = None
|
|
42
|
+
_globals['_CREATEORGANIZATIONREQUEST'].fields_by_name['display_name']._serialized_options = b'\272H\tr\004\020\001\030d\310\001\001'
|
|
43
|
+
_globals['_CREATEORGANIZATIONREQUEST'].fields_by_name['billing_email']._loaded_options = None
|
|
44
|
+
_globals['_CREATEORGANIZATIONREQUEST'].fields_by_name['billing_email']._serialized_options = b'\272H\004r\002`\001'
|
|
45
|
+
_globals['_CREATEORGANIZATIONREQUEST'].fields_by_name['currency']._loaded_options = None
|
|
46
|
+
_globals['_CREATEORGANIZATIONREQUEST'].fields_by_name['currency']._serialized_options = b'\272H\005r\003\230\001\003'
|
|
47
|
+
_globals['_GETORGANIZATIONREQUEST'].fields_by_name['id_or_slug']._loaded_options = None
|
|
48
|
+
_globals['_GETORGANIZATIONREQUEST'].fields_by_name['id_or_slug']._serialized_options = b'\272H\tr\004\020\003\0302\310\001\001'
|
|
49
|
+
_globals['_UPDATEORGANIZATIONREQUEST'].fields_by_name['id']._loaded_options = None
|
|
50
|
+
_globals['_UPDATEORGANIZATIONREQUEST'].fields_by_name['id']._serialized_options = b'\272H\033r\0262\024^org_[a-zA-Z0-9_-]+$\310\001\001'
|
|
51
|
+
_globals['_UPDATEORGANIZATIONREQUEST'].fields_by_name['display_name']._loaded_options = None
|
|
52
|
+
_globals['_UPDATEORGANIZATIONREQUEST'].fields_by_name['display_name']._serialized_options = b'\272H\006r\004\020\001\030d'
|
|
53
|
+
_globals['_UPDATEORGANIZATIONREQUEST'].fields_by_name['billing_email']._loaded_options = None
|
|
54
|
+
_globals['_UPDATEORGANIZATIONREQUEST'].fields_by_name['billing_email']._serialized_options = b'\272H\004r\002`\001'
|
|
55
|
+
_globals['_ORGANIZATIONSTATUS']._serialized_start=1856
|
|
56
|
+
_globals['_ORGANIZATIONSTATUS']._serialized_end=2013
|
|
57
|
+
_globals['_ORGANIZATION']._serialized_start=145
|
|
58
|
+
_globals['_ORGANIZATION']._serialized_end=496
|
|
59
|
+
_globals['_CHECKSLUGREQUEST']._serialized_start=498
|
|
60
|
+
_globals['_CHECKSLUGREQUEST']._serialized_end=550
|
|
61
|
+
_globals['_CHECKSLUGRESPONSE']._serialized_start=553
|
|
62
|
+
_globals['_CHECKSLUGRESPONSE']._serialized_end=709
|
|
63
|
+
_globals['_CREATEORGANIZATIONREQUEST']._serialized_start=712
|
|
64
|
+
_globals['_CREATEORGANIZATIONREQUEST']._serialized_end=978
|
|
65
|
+
_globals['_CREATEORGANIZATIONRESPONSE']._serialized_start=980
|
|
66
|
+
_globals['_CREATEORGANIZATIONRESPONSE']._serialized_end=1074
|
|
67
|
+
_globals['_GETORGANIZATIONREQUEST']._serialized_start=1076
|
|
68
|
+
_globals['_GETORGANIZATIONREQUEST']._serialized_end=1144
|
|
69
|
+
_globals['_GETORGANIZATIONRESPONSE']._serialized_start=1146
|
|
70
|
+
_globals['_GETORGANIZATIONRESPONSE']._serialized_end=1237
|
|
71
|
+
_globals['_UPDATEORGANIZATIONREQUEST']._serialized_start=1240
|
|
72
|
+
_globals['_UPDATEORGANIZATIONREQUEST']._serialized_end=1452
|
|
73
|
+
_globals['_UPDATEORGANIZATIONRESPONSE']._serialized_start=1454
|
|
74
|
+
_globals['_UPDATEORGANIZATIONRESPONSE']._serialized_end=1548
|
|
75
|
+
_globals['_LISTORGANIZATIONSREQUEST']._serialized_start=1551
|
|
76
|
+
_globals['_LISTORGANIZATIONSREQUEST']._serialized_end=1687
|
|
77
|
+
_globals['_LISTORGANIZATIONSRESPONSE']._serialized_start=1690
|
|
78
|
+
_globals['_LISTORGANIZATIONSRESPONSE']._serialized_end=1853
|
|
79
|
+
_globals['_ORGANIZATIONSERVICE']._serialized_start=2016
|
|
80
|
+
_globals['_ORGANIZATIONSERVICE']._serialized_end=2494
|
|
81
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
3
|
+
from transcodely.v1 import common_pb2 as _common_pb2
|
|
4
|
+
from google.protobuf.internal import containers as _containers
|
|
5
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import message as _message
|
|
8
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
9
|
+
|
|
10
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
11
|
+
|
|
12
|
+
class OrganizationStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
13
|
+
__slots__ = ()
|
|
14
|
+
ORGANIZATION_STATUS_UNSPECIFIED: _ClassVar[OrganizationStatus]
|
|
15
|
+
ORGANIZATION_STATUS_ACTIVE: _ClassVar[OrganizationStatus]
|
|
16
|
+
ORGANIZATION_STATUS_SUSPENDED: _ClassVar[OrganizationStatus]
|
|
17
|
+
ORGANIZATION_STATUS_DELETED: _ClassVar[OrganizationStatus]
|
|
18
|
+
ORGANIZATION_STATUS_UNSPECIFIED: OrganizationStatus
|
|
19
|
+
ORGANIZATION_STATUS_ACTIVE: OrganizationStatus
|
|
20
|
+
ORGANIZATION_STATUS_SUSPENDED: OrganizationStatus
|
|
21
|
+
ORGANIZATION_STATUS_DELETED: OrganizationStatus
|
|
22
|
+
|
|
23
|
+
class Organization(_message.Message):
|
|
24
|
+
__slots__ = ("id", "slug", "display_name", "billing_email", "currency", "status", "created_at", "updated_at")
|
|
25
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
+
SLUG_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
DISPLAY_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
BILLING_EMAIL_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
CURRENCY_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
31
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
32
|
+
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
id: str
|
|
34
|
+
slug: str
|
|
35
|
+
display_name: str
|
|
36
|
+
billing_email: str
|
|
37
|
+
currency: str
|
|
38
|
+
status: OrganizationStatus
|
|
39
|
+
created_at: _timestamp_pb2.Timestamp
|
|
40
|
+
updated_at: _timestamp_pb2.Timestamp
|
|
41
|
+
def __init__(self, id: _Optional[str] = ..., slug: _Optional[str] = ..., display_name: _Optional[str] = ..., billing_email: _Optional[str] = ..., currency: _Optional[str] = ..., status: _Optional[_Union[OrganizationStatus, str]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
42
|
+
|
|
43
|
+
class CheckSlugRequest(_message.Message):
|
|
44
|
+
__slots__ = ("slug",)
|
|
45
|
+
SLUG_FIELD_NUMBER: _ClassVar[int]
|
|
46
|
+
slug: str
|
|
47
|
+
def __init__(self, slug: _Optional[str] = ...) -> None: ...
|
|
48
|
+
|
|
49
|
+
class CheckSlugResponse(_message.Message):
|
|
50
|
+
__slots__ = ("available", "normalized_slug", "reason", "message")
|
|
51
|
+
AVAILABLE_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
+
NORMALIZED_SLUG_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
REASON_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
+
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
available: bool
|
|
56
|
+
normalized_slug: str
|
|
57
|
+
reason: str
|
|
58
|
+
message: str
|
|
59
|
+
def __init__(self, available: bool = ..., normalized_slug: _Optional[str] = ..., reason: _Optional[str] = ..., message: _Optional[str] = ...) -> None: ...
|
|
60
|
+
|
|
61
|
+
class CreateOrganizationRequest(_message.Message):
|
|
62
|
+
__slots__ = ("slug", "display_name", "billing_email", "currency")
|
|
63
|
+
SLUG_FIELD_NUMBER: _ClassVar[int]
|
|
64
|
+
DISPLAY_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
BILLING_EMAIL_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
CURRENCY_FIELD_NUMBER: _ClassVar[int]
|
|
67
|
+
slug: str
|
|
68
|
+
display_name: str
|
|
69
|
+
billing_email: str
|
|
70
|
+
currency: str
|
|
71
|
+
def __init__(self, slug: _Optional[str] = ..., display_name: _Optional[str] = ..., billing_email: _Optional[str] = ..., currency: _Optional[str] = ...) -> None: ...
|
|
72
|
+
|
|
73
|
+
class CreateOrganizationResponse(_message.Message):
|
|
74
|
+
__slots__ = ("organization",)
|
|
75
|
+
ORGANIZATION_FIELD_NUMBER: _ClassVar[int]
|
|
76
|
+
organization: Organization
|
|
77
|
+
def __init__(self, organization: _Optional[_Union[Organization, _Mapping]] = ...) -> None: ...
|
|
78
|
+
|
|
79
|
+
class GetOrganizationRequest(_message.Message):
|
|
80
|
+
__slots__ = ("id_or_slug",)
|
|
81
|
+
ID_OR_SLUG_FIELD_NUMBER: _ClassVar[int]
|
|
82
|
+
id_or_slug: str
|
|
83
|
+
def __init__(self, id_or_slug: _Optional[str] = ...) -> None: ...
|
|
84
|
+
|
|
85
|
+
class GetOrganizationResponse(_message.Message):
|
|
86
|
+
__slots__ = ("organization",)
|
|
87
|
+
ORGANIZATION_FIELD_NUMBER: _ClassVar[int]
|
|
88
|
+
organization: Organization
|
|
89
|
+
def __init__(self, organization: _Optional[_Union[Organization, _Mapping]] = ...) -> None: ...
|
|
90
|
+
|
|
91
|
+
class UpdateOrganizationRequest(_message.Message):
|
|
92
|
+
__slots__ = ("id", "display_name", "billing_email")
|
|
93
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
94
|
+
DISPLAY_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
95
|
+
BILLING_EMAIL_FIELD_NUMBER: _ClassVar[int]
|
|
96
|
+
id: str
|
|
97
|
+
display_name: str
|
|
98
|
+
billing_email: str
|
|
99
|
+
def __init__(self, id: _Optional[str] = ..., display_name: _Optional[str] = ..., billing_email: _Optional[str] = ...) -> None: ...
|
|
100
|
+
|
|
101
|
+
class UpdateOrganizationResponse(_message.Message):
|
|
102
|
+
__slots__ = ("organization",)
|
|
103
|
+
ORGANIZATION_FIELD_NUMBER: _ClassVar[int]
|
|
104
|
+
organization: Organization
|
|
105
|
+
def __init__(self, organization: _Optional[_Union[Organization, _Mapping]] = ...) -> None: ...
|
|
106
|
+
|
|
107
|
+
class ListOrganizationsRequest(_message.Message):
|
|
108
|
+
__slots__ = ("pagination", "include_inactive")
|
|
109
|
+
PAGINATION_FIELD_NUMBER: _ClassVar[int]
|
|
110
|
+
INCLUDE_INACTIVE_FIELD_NUMBER: _ClassVar[int]
|
|
111
|
+
pagination: _common_pb2.PaginationRequest
|
|
112
|
+
include_inactive: bool
|
|
113
|
+
def __init__(self, pagination: _Optional[_Union[_common_pb2.PaginationRequest, _Mapping]] = ..., include_inactive: bool = ...) -> None: ...
|
|
114
|
+
|
|
115
|
+
class ListOrganizationsResponse(_message.Message):
|
|
116
|
+
__slots__ = ("organizations", "pagination")
|
|
117
|
+
ORGANIZATIONS_FIELD_NUMBER: _ClassVar[int]
|
|
118
|
+
PAGINATION_FIELD_NUMBER: _ClassVar[int]
|
|
119
|
+
organizations: _containers.RepeatedCompositeFieldContainer[Organization]
|
|
120
|
+
pagination: _common_pb2.PaginationResponse
|
|
121
|
+
def __init__(self, organizations: _Optional[_Iterable[_Union[Organization, _Mapping]]] = ..., pagination: _Optional[_Union[_common_pb2.PaginationResponse, _Mapping]] = ...) -> None: ...
|