chalkcompute 0.1.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.
- chalkcompute/__init__.py +52 -0
- chalkcompute/_proto/__init__.py +0 -0
- chalkcompute/_proto/auth/__init__.py +0 -0
- chalkcompute/_proto/auth/v1/__init__.py +0 -0
- chalkcompute/_proto/auth/v1/permissions_pb2.py +107 -0
- chalkcompute/_proto/auth/v1/permissions_pb2.pyi +84 -0
- chalkcompute/_proto/container/__init__.py +0 -0
- chalkcompute/_proto/container/v1/__init__.py +0 -0
- chalkcompute/_proto/container/v1/service_pb2.py +96 -0
- chalkcompute/_proto/container/v1/service_pb2.pyi +222 -0
- chalkcompute/_proto/container/v1/service_pb2_grpc.py +318 -0
- chalkcompute/_proto/sandbox/__init__.py +0 -0
- chalkcompute/_proto/sandbox/v1/__init__.py +0 -0
- chalkcompute/_proto/sandbox/v1/service_pb2.py +114 -0
- chalkcompute/_proto/sandbox/v1/service_pb2.pyi +305 -0
- chalkcompute/_proto/sandbox/v1/service_pb2_grpc.py +394 -0
- chalkcompute/_proto/utils/__init__.py +0 -0
- chalkcompute/_proto/utils/v1/__init__.py +0 -0
- chalkcompute/_proto/utils/v1/encoding_pb2.py +41 -0
- chalkcompute/_proto/utils/v1/encoding_pb2.pyi +23 -0
- chalkcompute/_proto/volume/__init__.py +0 -0
- chalkcompute/_proto/volume/v1/__init__.py +0 -0
- chalkcompute/_proto/volume/v1/volume_pb2.py +91 -0
- chalkcompute/_proto/volume/v1/volume_pb2.pyi +127 -0
- chalkcompute/_proto/volume/v1/volume_pb2_grpc.py +401 -0
- chalkcompute/container.py +562 -0
- chalkcompute/image.py +320 -0
- chalkcompute/sandbox.py +596 -0
- chalkcompute/volume.py +436 -0
- chalkcompute-0.1.0.dist-info/METADATA +365 -0
- chalkcompute-0.1.0.dist-info/RECORD +32 -0
- chalkcompute-0.1.0.dist-info/WHEEL +4 -0
chalkcompute/__init__.py
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""Chalkbox — SDK for Chalk sandboxes, containers, and volumes."""
|
|
2
|
+
|
|
3
|
+
from chalkcompute.container import Container, ContainerError, ContainerInfo, ExecResult as ContainerExecResult, ImageBuildError
|
|
4
|
+
from chalkcompute.image import Image, LazyLocalFile
|
|
5
|
+
from chalkcompute.sandbox import (
|
|
6
|
+
ExecError,
|
|
7
|
+
ExecEvent,
|
|
8
|
+
ExecProcess,
|
|
9
|
+
ExecResult,
|
|
10
|
+
Sandbox,
|
|
11
|
+
SandboxBuildError,
|
|
12
|
+
SandboxClient,
|
|
13
|
+
SandboxError,
|
|
14
|
+
SandboxInfo,
|
|
15
|
+
SandboxNotFoundError,
|
|
16
|
+
SandboxTerminatedError,
|
|
17
|
+
)
|
|
18
|
+
from chalkcompute.volume import (
|
|
19
|
+
FileInfo,
|
|
20
|
+
Volume,
|
|
21
|
+
VolumeClient,
|
|
22
|
+
VolumeError,
|
|
23
|
+
VolumeInfo,
|
|
24
|
+
VolumeNotFoundError,
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
__all__ = [
|
|
28
|
+
"Container",
|
|
29
|
+
"ContainerError",
|
|
30
|
+
"ContainerExecResult",
|
|
31
|
+
"ContainerInfo",
|
|
32
|
+
"ExecError",
|
|
33
|
+
"ExecEvent",
|
|
34
|
+
"ExecProcess",
|
|
35
|
+
"ExecResult",
|
|
36
|
+
"FileInfo",
|
|
37
|
+
"Image",
|
|
38
|
+
"ImageBuildError",
|
|
39
|
+
"LazyLocalFile",
|
|
40
|
+
"Sandbox",
|
|
41
|
+
"SandboxBuildError",
|
|
42
|
+
"SandboxClient",
|
|
43
|
+
"SandboxError",
|
|
44
|
+
"SandboxInfo",
|
|
45
|
+
"SandboxNotFoundError",
|
|
46
|
+
"SandboxTerminatedError",
|
|
47
|
+
"Volume",
|
|
48
|
+
"VolumeClient",
|
|
49
|
+
"VolumeError",
|
|
50
|
+
"VolumeInfo",
|
|
51
|
+
"VolumeNotFoundError",
|
|
52
|
+
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: chalk/auth/v1/permissions.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'chalk/auth/v1/permissions.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from chalkcompute._proto.utils.v1 import encoding_pb2 as chalk_dot_utils_dot_v1_dot_encoding__pb2
|
|
26
|
+
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63halk/auth/v1/permissions.proto\x12\rchalk.auth.v1\x1a\x1d\x63halk/utils/v1/encoding.proto\x1a google/protobuf/descriptor.proto*\xd4\x1a\n\nPermission\x12R\n\x16PERMISSION_UNSPECIFIED\x10\x00\x1a\x36\xca>%Default value -- should never be set.\xd2>\x0bunspecified\x12O\n#PERMISSION_INSECURE_UNAUTHENTICATED\x10\x01\x1a&\xca>\x18Unauthenticated endpoint\xd2>\x08insecure\x12\x66\n\x18PERMISSION_AUTHENTICATED\x10\x02\x1aH\xca>5User is authenticated, but no permissions are checked\xd2>\rauthenticated\x12\x45\n\x17PERMISSION_QUERY_ONLINE\x10\x03\x1a(\xca>\x16Query online features.\xd2>\x0cquery.online\x12H\n\x18PERMISSION_QUERY_OFFLINE\x10\x04\x1a*\xca>\x17Query offline features.\xd2>\rquery.offline\x12T\n\x1cPERMISSION_MONITORING_CREATE\x10\x05\x1a\x32\xca>\x1b\x43reate a new chart or alert\xd2>\x11monitoring.create\x12J\n\x1aPERMISSION_MONITORING_READ\x10\x06\x1a*\xca>\x15See charts and alerts\xd2>\x0fmonitoring.read\x12L\n\x13PERMISSION_TEAM_ADD\x10\x07\x1a\x33\xca>%Add team members to your organization\xd2>\x08team.add\x12\x41\n\x16PERMISSION_TEAM_DELETE\x10\x08\x1a%\xca>\x14Remove a team member\xd2>\x0bteam.delete\x12R\n\x14PERMISSION_TEAM_LIST\x10\t\x1a\x38\xca>)See the team members in your organization\xd2>\tteam.list\x12\x61\n\x15PERMISSION_TEAM_ADMIN\x10\n\x1a\x46\xca>6Configure authentication options for your organization\xd2>\nteam.admin\x12P\n\x16PERMISSION_DEPLOY_READ\x10\x0b\x1a\x34\xca>#Read information about deployments.\xd2>\x0b\x64\x65ploy.read\x12I\n\x18PERMISSION_DEPLOY_CREATE\x10\x0c\x1a+\xca>\x18\x43reate a new deployment.\xd2>\rdeploy.create\x12R\n\x19PERMISSION_DEPLOY_PREVIEW\x10\r\x1a\x33\xca>\x1f\x43reate a new branch deployment.\xd2>\x0e\x64\x65ploy.preview\x12U\n\x1aPERMISSION_DEPLOY_REDEPLOY\x10\x0e\x1a\x35\xca> Redeploy an existing deployment.\xd2>\x0f\x64\x65ploy.redeploy\x12\x42\n\x14PERMISSION_LOGS_LIST\x10\x0f\x1a(\xca>\x19Read logs from resolvers.\xd2>\tlogs.list\x12\x41\n\x14PERMISSION_CRON_READ\x10\x10\x1a\'\xca>\x18Read the scheduled runs.\xd2>\tcron.read\x12I\n\x16PERMISSION_CRON_CREATE\x10\x11\x1a-\xca>\x1cTrigger a new scheduled run.\xd2>\x0b\x63ron.create\x12Y\n\x18PERMISSION_SECRETS_WRITE\x10\x12\x1a;\xca>(Create, modify, or delete secret values.\xd2>\rsecrets.write\x12K\n\x1aPERMISSION_SECRETS_DECRYPT\x10\x13\x1a+\xca>\x16\x44\x65\x63rypt secret values.\xd2>\x0fsecrets.decrypt\x12\x86\x01\n\x17PERMISSION_SECRETS_LIST\x10\x14\x1ai\xca>WSee the list of available secrets. Reading secrets is not allowed with this permission.\xd2>\x0csecrets.list\x12X\n\x17PERMISSION_TOKENS_WRITE\x10\x15\x1a;\xca>)Create, modify, or delete service tokens.\xd2>\x0ctokens.write\x12p\n\x16PERMISSION_TOKENS_LIST\x10\x16\x1aT\xca>CList the service tokens and see client ids, but not client secrets.\xd2>\x0btokens.list\x12Q\n\x17PERMISSION_MIGRATE_READ\x10\x17\x1a\x34\xca>\"View information about migrations.\xd2>\x0cmigrate.read\x12G\n\x17PERMISSION_MIGRATE_PLAN\x10\x18\x1a*\xca>\x18\x43reate a migration plan.\xd2>\x0cmigrate.plan\x12N\n\x1aPERMISSION_MIGRATE_EXECUTE\x10\x19\x1a.\xca>\x19\x45xecute a migration plan.\xd2>\x0fmigrate.execute\x12G\n\x19PERMISSION_PROJECT_CREATE\x10\x1a\x1a(\xca>\x14\x43reate a new project\xd2>\x0eproject.create\x12=\n\x16PERMISSION_CHALK_ADMIN\x10\x1b\x1a!\xca>\x10\x41\x64minister Chalk\xd2>\x0b\x63halk.admin\x12G\n\x17PERMISSION_BILLING_READ\x10\x1c\x1a*\xca>\x18Read billing information\xd2>\x0c\x62illing.read\x12R\n\x1fPERMISSION_AUTH_SERVICE_MANAGER\x10\x1d\x1a-\xca>\x13Manage Auth Service\xd2>\x14\x61uth_service.manager\x12Z\n\x1ePERMISSION_INFRASTRUCTURE_READ\x10\x1e\x1a\x36\xca>\x1dRead infrastructure workflows\xd2>\x13infrastructure.read\x12i\n\x1fPERMISSION_INFRASTRUCTURE_WRITE\x10\x1f\x1a\x44\xca>*Approve or cancel infrastructure workflows\xd2>\x14infrastructure.write\x12Y\n\x1dPERMISSION_ENVIRONMENT_CREATE\x10 \x1a\x36\xca>\x1e\x43reate and manage environments\xd2>\x12\x65nvironment.create\x1a\xf3\x04\xe2\xa1\'\xee\x04\n\x1c\x08\x01\x12\x18insecure_unauthenticated\n\x11\x08\x02\x12\rauthenticated\n\x10\x08\x03\x12\x0cquery.online\n\x11\x08\x04\x12\rquery.offline\n\x15\x08\x05\x12\x11monitoring.create\n\x13\x08\x06\x12\x0fmonitoring.read\n\x0c\x08\x07\x12\x08team.add\n\x0f\x08\x08\x12\x0bteam.delete\n\r\x08\t\x12\tteam.list\n\x0e\x08\n\x12\nteam.admin\n\x0f\x08\x0b\x12\x0b\x64\x65ploy.read\n\x11\x08\x0c\x12\rdeploy.create\n\x12\x08\r\x12\x0e\x64\x65ploy.preview\n\x13\x08\x0e\x12\x0f\x64\x65ploy.redeploy\n\r\x08\x0f\x12\tlogs.list\n\r\x08\x10\x12\tcron.read\n\x0f\x08\x11\x12\x0b\x63ron.create\n\x11\x08\x12\x12\rsecrets.write\n\x13\x08\x13\x12\x0fsecrets.decrypt\n\x10\x08\x14\x12\x0csecrets.list\n\x10\x08\x15\x12\x0ctokens.write\n\x0f\x08\x16\x12\x0btokens.list\n\x10\x08\x17\x12\x0cmigrate.read\n\x10\x08\x18\x12\x0cmigrate.plan\n\x13\x08\x19\x12\x0fmigrate.execute\n\x12\x08\x1a\x12\x0eproject.create\n\x0f\x08\x1b\x12\x0b\x63halk.admin\n\x10\x08\x1c\x12\x0c\x62illing.read\n\x18\x08\x1d\x12\x14\x61uth_service.manager\n\x17\x08\x1e\x12\x13infrastructure.read\n\x18\x08\x1f\x12\x14infrastructure.write\n\x16\x08 \x12\x12\x65nvironment.create:7\n\x0b\x64\x65scription\x12!.google.protobuf.EnumValueOptions\x18\xe9\x07 \x01(\t:0\n\x04slug\x12!.google.protobuf.EnumValueOptions\x18\xea\x07 \x01(\t:N\n\npermission\x12\x1e.google.protobuf.MethodOptions\x18\xd0\x0f \x01(\x0e\x32\x19.chalk.auth.v1.Permission:S\n\x0fteam_permission\x12\x1e.google.protobuf.MethodOptions\x18\xd1\x0f \x01(\x0e\x32\x19.chalk.auth.v1.PermissionB\x10Z\x0e\x61uth/v1;authv1b\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chalk.auth.v1.permissions_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z\016auth/v1;authv1'
|
|
37
|
+
_globals['_PERMISSION']._loaded_options = None
|
|
38
|
+
_globals['_PERMISSION']._serialized_options = b'\342\241\'\356\004\n\034\010\001\022\030insecure_unauthenticated\n\021\010\002\022\rauthenticated\n\020\010\003\022\014query.online\n\021\010\004\022\rquery.offline\n\025\010\005\022\021monitoring.create\n\023\010\006\022\017monitoring.read\n\014\010\007\022\010team.add\n\017\010\010\022\013team.delete\n\r\010\t\022\tteam.list\n\016\010\n\022\nteam.admin\n\017\010\013\022\013deploy.read\n\021\010\014\022\rdeploy.create\n\022\010\r\022\016deploy.preview\n\023\010\016\022\017deploy.redeploy\n\r\010\017\022\tlogs.list\n\r\010\020\022\tcron.read\n\017\010\021\022\013cron.create\n\021\010\022\022\rsecrets.write\n\023\010\023\022\017secrets.decrypt\n\020\010\024\022\014secrets.list\n\020\010\025\022\014tokens.write\n\017\010\026\022\013tokens.list\n\020\010\027\022\014migrate.read\n\020\010\030\022\014migrate.plan\n\023\010\031\022\017migrate.execute\n\022\010\032\022\016project.create\n\017\010\033\022\013chalk.admin\n\020\010\034\022\014billing.read\n\030\010\035\022\024auth_service.manager\n\027\010\036\022\023infrastructure.read\n\030\010\037\022\024infrastructure.write\n\026\010 \022\022environment.create'
|
|
39
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_UNSPECIFIED"]._loaded_options = None
|
|
40
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_UNSPECIFIED"]._serialized_options = b'\312>%Default value -- should never be set.\322>\013unspecified'
|
|
41
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_INSECURE_UNAUTHENTICATED"]._loaded_options = None
|
|
42
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_INSECURE_UNAUTHENTICATED"]._serialized_options = b'\312>\030Unauthenticated endpoint\322>\010insecure'
|
|
43
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_AUTHENTICATED"]._loaded_options = None
|
|
44
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_AUTHENTICATED"]._serialized_options = b'\312>5User is authenticated, but no permissions are checked\322>\rauthenticated'
|
|
45
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_QUERY_ONLINE"]._loaded_options = None
|
|
46
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_QUERY_ONLINE"]._serialized_options = b'\312>\026Query online features.\322>\014query.online'
|
|
47
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_QUERY_OFFLINE"]._loaded_options = None
|
|
48
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_QUERY_OFFLINE"]._serialized_options = b'\312>\027Query offline features.\322>\rquery.offline'
|
|
49
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_MONITORING_CREATE"]._loaded_options = None
|
|
50
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_MONITORING_CREATE"]._serialized_options = b'\312>\033Create a new chart or alert\322>\021monitoring.create'
|
|
51
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_MONITORING_READ"]._loaded_options = None
|
|
52
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_MONITORING_READ"]._serialized_options = b'\312>\025See charts and alerts\322>\017monitoring.read'
|
|
53
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_TEAM_ADD"]._loaded_options = None
|
|
54
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_TEAM_ADD"]._serialized_options = b'\312>%Add team members to your organization\322>\010team.add'
|
|
55
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_TEAM_DELETE"]._loaded_options = None
|
|
56
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_TEAM_DELETE"]._serialized_options = b'\312>\024Remove a team member\322>\013team.delete'
|
|
57
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_TEAM_LIST"]._loaded_options = None
|
|
58
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_TEAM_LIST"]._serialized_options = b'\312>)See the team members in your organization\322>\tteam.list'
|
|
59
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_TEAM_ADMIN"]._loaded_options = None
|
|
60
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_TEAM_ADMIN"]._serialized_options = b'\312>6Configure authentication options for your organization\322>\nteam.admin'
|
|
61
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_DEPLOY_READ"]._loaded_options = None
|
|
62
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_DEPLOY_READ"]._serialized_options = b'\312>#Read information about deployments.\322>\013deploy.read'
|
|
63
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_DEPLOY_CREATE"]._loaded_options = None
|
|
64
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_DEPLOY_CREATE"]._serialized_options = b'\312>\030Create a new deployment.\322>\rdeploy.create'
|
|
65
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_DEPLOY_PREVIEW"]._loaded_options = None
|
|
66
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_DEPLOY_PREVIEW"]._serialized_options = b'\312>\037Create a new branch deployment.\322>\016deploy.preview'
|
|
67
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_DEPLOY_REDEPLOY"]._loaded_options = None
|
|
68
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_DEPLOY_REDEPLOY"]._serialized_options = b'\312> Redeploy an existing deployment.\322>\017deploy.redeploy'
|
|
69
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_LOGS_LIST"]._loaded_options = None
|
|
70
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_LOGS_LIST"]._serialized_options = b'\312>\031Read logs from resolvers.\322>\tlogs.list'
|
|
71
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_CRON_READ"]._loaded_options = None
|
|
72
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_CRON_READ"]._serialized_options = b'\312>\030Read the scheduled runs.\322>\tcron.read'
|
|
73
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_CRON_CREATE"]._loaded_options = None
|
|
74
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_CRON_CREATE"]._serialized_options = b'\312>\034Trigger a new scheduled run.\322>\013cron.create'
|
|
75
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_SECRETS_WRITE"]._loaded_options = None
|
|
76
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_SECRETS_WRITE"]._serialized_options = b'\312>(Create, modify, or delete secret values.\322>\rsecrets.write'
|
|
77
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_SECRETS_DECRYPT"]._loaded_options = None
|
|
78
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_SECRETS_DECRYPT"]._serialized_options = b'\312>\026Decrypt secret values.\322>\017secrets.decrypt'
|
|
79
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_SECRETS_LIST"]._loaded_options = None
|
|
80
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_SECRETS_LIST"]._serialized_options = b'\312>WSee the list of available secrets. Reading secrets is not allowed with this permission.\322>\014secrets.list'
|
|
81
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_TOKENS_WRITE"]._loaded_options = None
|
|
82
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_TOKENS_WRITE"]._serialized_options = b'\312>)Create, modify, or delete service tokens.\322>\014tokens.write'
|
|
83
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_TOKENS_LIST"]._loaded_options = None
|
|
84
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_TOKENS_LIST"]._serialized_options = b'\312>CList the service tokens and see client ids, but not client secrets.\322>\013tokens.list'
|
|
85
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_MIGRATE_READ"]._loaded_options = None
|
|
86
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_MIGRATE_READ"]._serialized_options = b'\312>\"View information about migrations.\322>\014migrate.read'
|
|
87
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_MIGRATE_PLAN"]._loaded_options = None
|
|
88
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_MIGRATE_PLAN"]._serialized_options = b'\312>\030Create a migration plan.\322>\014migrate.plan'
|
|
89
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_MIGRATE_EXECUTE"]._loaded_options = None
|
|
90
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_MIGRATE_EXECUTE"]._serialized_options = b'\312>\031Execute a migration plan.\322>\017migrate.execute'
|
|
91
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_PROJECT_CREATE"]._loaded_options = None
|
|
92
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_PROJECT_CREATE"]._serialized_options = b'\312>\024Create a new project\322>\016project.create'
|
|
93
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_CHALK_ADMIN"]._loaded_options = None
|
|
94
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_CHALK_ADMIN"]._serialized_options = b'\312>\020Administer Chalk\322>\013chalk.admin'
|
|
95
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_BILLING_READ"]._loaded_options = None
|
|
96
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_BILLING_READ"]._serialized_options = b'\312>\030Read billing information\322>\014billing.read'
|
|
97
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_AUTH_SERVICE_MANAGER"]._loaded_options = None
|
|
98
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_AUTH_SERVICE_MANAGER"]._serialized_options = b'\312>\023Manage Auth Service\322>\024auth_service.manager'
|
|
99
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_INFRASTRUCTURE_READ"]._loaded_options = None
|
|
100
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_INFRASTRUCTURE_READ"]._serialized_options = b'\312>\035Read infrastructure workflows\322>\023infrastructure.read'
|
|
101
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_INFRASTRUCTURE_WRITE"]._loaded_options = None
|
|
102
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_INFRASTRUCTURE_WRITE"]._serialized_options = b'\312>*Approve or cancel infrastructure workflows\322>\024infrastructure.write'
|
|
103
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_ENVIRONMENT_CREATE"]._loaded_options = None
|
|
104
|
+
_globals['_PERMISSION'].values_by_name["PERMISSION_ENVIRONMENT_CREATE"]._serialized_options = b'\312>\036Create and manage environments\322>\022environment.create'
|
|
105
|
+
_globals['_PERMISSION']._serialized_start=116
|
|
106
|
+
_globals['_PERMISSION']._serialized_end=3528
|
|
107
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
from chalkcompute._proto.utils.v1 import encoding_pb2 as _encoding_pb2
|
|
2
|
+
from google.protobuf import descriptor_pb2 as _descriptor_pb2
|
|
3
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
4
|
+
from google.protobuf import descriptor as _descriptor
|
|
5
|
+
from typing import ClassVar as _ClassVar
|
|
6
|
+
|
|
7
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
8
|
+
|
|
9
|
+
class Permission(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
10
|
+
__slots__ = ()
|
|
11
|
+
PERMISSION_UNSPECIFIED: _ClassVar[Permission]
|
|
12
|
+
PERMISSION_INSECURE_UNAUTHENTICATED: _ClassVar[Permission]
|
|
13
|
+
PERMISSION_AUTHENTICATED: _ClassVar[Permission]
|
|
14
|
+
PERMISSION_QUERY_ONLINE: _ClassVar[Permission]
|
|
15
|
+
PERMISSION_QUERY_OFFLINE: _ClassVar[Permission]
|
|
16
|
+
PERMISSION_MONITORING_CREATE: _ClassVar[Permission]
|
|
17
|
+
PERMISSION_MONITORING_READ: _ClassVar[Permission]
|
|
18
|
+
PERMISSION_TEAM_ADD: _ClassVar[Permission]
|
|
19
|
+
PERMISSION_TEAM_DELETE: _ClassVar[Permission]
|
|
20
|
+
PERMISSION_TEAM_LIST: _ClassVar[Permission]
|
|
21
|
+
PERMISSION_TEAM_ADMIN: _ClassVar[Permission]
|
|
22
|
+
PERMISSION_DEPLOY_READ: _ClassVar[Permission]
|
|
23
|
+
PERMISSION_DEPLOY_CREATE: _ClassVar[Permission]
|
|
24
|
+
PERMISSION_DEPLOY_PREVIEW: _ClassVar[Permission]
|
|
25
|
+
PERMISSION_DEPLOY_REDEPLOY: _ClassVar[Permission]
|
|
26
|
+
PERMISSION_LOGS_LIST: _ClassVar[Permission]
|
|
27
|
+
PERMISSION_CRON_READ: _ClassVar[Permission]
|
|
28
|
+
PERMISSION_CRON_CREATE: _ClassVar[Permission]
|
|
29
|
+
PERMISSION_SECRETS_WRITE: _ClassVar[Permission]
|
|
30
|
+
PERMISSION_SECRETS_DECRYPT: _ClassVar[Permission]
|
|
31
|
+
PERMISSION_SECRETS_LIST: _ClassVar[Permission]
|
|
32
|
+
PERMISSION_TOKENS_WRITE: _ClassVar[Permission]
|
|
33
|
+
PERMISSION_TOKENS_LIST: _ClassVar[Permission]
|
|
34
|
+
PERMISSION_MIGRATE_READ: _ClassVar[Permission]
|
|
35
|
+
PERMISSION_MIGRATE_PLAN: _ClassVar[Permission]
|
|
36
|
+
PERMISSION_MIGRATE_EXECUTE: _ClassVar[Permission]
|
|
37
|
+
PERMISSION_PROJECT_CREATE: _ClassVar[Permission]
|
|
38
|
+
PERMISSION_CHALK_ADMIN: _ClassVar[Permission]
|
|
39
|
+
PERMISSION_BILLING_READ: _ClassVar[Permission]
|
|
40
|
+
PERMISSION_AUTH_SERVICE_MANAGER: _ClassVar[Permission]
|
|
41
|
+
PERMISSION_INFRASTRUCTURE_READ: _ClassVar[Permission]
|
|
42
|
+
PERMISSION_INFRASTRUCTURE_WRITE: _ClassVar[Permission]
|
|
43
|
+
PERMISSION_ENVIRONMENT_CREATE: _ClassVar[Permission]
|
|
44
|
+
PERMISSION_UNSPECIFIED: Permission
|
|
45
|
+
PERMISSION_INSECURE_UNAUTHENTICATED: Permission
|
|
46
|
+
PERMISSION_AUTHENTICATED: Permission
|
|
47
|
+
PERMISSION_QUERY_ONLINE: Permission
|
|
48
|
+
PERMISSION_QUERY_OFFLINE: Permission
|
|
49
|
+
PERMISSION_MONITORING_CREATE: Permission
|
|
50
|
+
PERMISSION_MONITORING_READ: Permission
|
|
51
|
+
PERMISSION_TEAM_ADD: Permission
|
|
52
|
+
PERMISSION_TEAM_DELETE: Permission
|
|
53
|
+
PERMISSION_TEAM_LIST: Permission
|
|
54
|
+
PERMISSION_TEAM_ADMIN: Permission
|
|
55
|
+
PERMISSION_DEPLOY_READ: Permission
|
|
56
|
+
PERMISSION_DEPLOY_CREATE: Permission
|
|
57
|
+
PERMISSION_DEPLOY_PREVIEW: Permission
|
|
58
|
+
PERMISSION_DEPLOY_REDEPLOY: Permission
|
|
59
|
+
PERMISSION_LOGS_LIST: Permission
|
|
60
|
+
PERMISSION_CRON_READ: Permission
|
|
61
|
+
PERMISSION_CRON_CREATE: Permission
|
|
62
|
+
PERMISSION_SECRETS_WRITE: Permission
|
|
63
|
+
PERMISSION_SECRETS_DECRYPT: Permission
|
|
64
|
+
PERMISSION_SECRETS_LIST: Permission
|
|
65
|
+
PERMISSION_TOKENS_WRITE: Permission
|
|
66
|
+
PERMISSION_TOKENS_LIST: Permission
|
|
67
|
+
PERMISSION_MIGRATE_READ: Permission
|
|
68
|
+
PERMISSION_MIGRATE_PLAN: Permission
|
|
69
|
+
PERMISSION_MIGRATE_EXECUTE: Permission
|
|
70
|
+
PERMISSION_PROJECT_CREATE: Permission
|
|
71
|
+
PERMISSION_CHALK_ADMIN: Permission
|
|
72
|
+
PERMISSION_BILLING_READ: Permission
|
|
73
|
+
PERMISSION_AUTH_SERVICE_MANAGER: Permission
|
|
74
|
+
PERMISSION_INFRASTRUCTURE_READ: Permission
|
|
75
|
+
PERMISSION_INFRASTRUCTURE_WRITE: Permission
|
|
76
|
+
PERMISSION_ENVIRONMENT_CREATE: Permission
|
|
77
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
78
|
+
description: _descriptor.FieldDescriptor
|
|
79
|
+
SLUG_FIELD_NUMBER: _ClassVar[int]
|
|
80
|
+
slug: _descriptor.FieldDescriptor
|
|
81
|
+
PERMISSION_FIELD_NUMBER: _ClassVar[int]
|
|
82
|
+
permission: _descriptor.FieldDescriptor
|
|
83
|
+
TEAM_PERMISSION_FIELD_NUMBER: _ClassVar[int]
|
|
84
|
+
team_permission: _descriptor.FieldDescriptor
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: chalk/container/v1/service.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'chalk/container/v1/service.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from chalkcompute._proto.auth.v1 import permissions_pb2 as chalk_dot_auth_dot_v1_dot_permissions__pb2
|
|
26
|
+
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
|
|
27
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n chalk/container/v1/service.proto\x12\x12\x63halk.container.v1\x1a\x1f\x63halk/auth/v1/permissions.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"d\n\x0eResourceLimits\x12\x10\n\x03\x63pu\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06memory\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x10\n\x03gpu\x18\x03 \x01(\tH\x02\x88\x01\x01\x42\x06\n\x04_cpuB\t\n\x07_memoryB\x06\n\x04_gpu\"e\n\x0bVolumeMount\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nmount_path\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x17\n\nsize_limit\x18\x04 \x01(\tH\x00\x88\x01\x01\x42\r\n\x0b_size_limit\"\x9e\x05\n\x12\x43halkContainerSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05image\x18\x02 \x01(\t\x12\x12\n\nentrypoint\x18\x03 \x03(\t\x12>\n\x04tags\x18\x04 \x03(\x0b\x32\x30.chalk.container.v1.ChalkContainerSpec.TagsEntry\x12\x11\n\x04port\x18\x05 \x01(\x05H\x00\x88\x01\x01\x12\x30\n\x08lifetime\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationH\x01\x88\x01\x01\x12:\n\tresources\x18\x07 \x01(\x0b\x32\".chalk.container.v1.ResourceLimitsH\x02\x88\x01\x01\x12\x17\n\nenable_ssh\x18\x08 \x01(\x08H\x03\x88\x01\x01\x12\x45\n\x08\x65nv_vars\x18\t \x03(\x0b\x32\x33.chalk.container.v1.ChalkContainerSpec.EnvVarsEntry\x12\x30\n\x07volumes\x18\n \x03(\x0b\x32\x1f.chalk.container.v1.VolumeMount\x12\x15\n\x08protocol\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x14\n\x07routing\x18\x0c \x01(\tH\x05\x88\x01\x01\x12\x1b\n\x0e\x61uthentication\x18\r \x01(\tH\x06\x88\x01\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a.\n\x0c\x45nvVarsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x07\n\x05_portB\x0b\n\t_lifetimeB\x0c\n\n_resourcesB\r\n\x0b_enable_sshB\x0b\n\t_protocolB\n\n\x08_routingB\x11\n\x0f_authentication\"H\n\x10\x43ontainerRequest\x12\x34\n\x04spec\x18\x01 \x01(\x0b\x32&.chalk.container.v1.ChalkContainerSpec\"f\n\x0bHealthCheck\x12\x0f\n\x07healthy\x18\x01 \x01(\x08\x12\x18\n\x0bstatus_code\x18\x02 \x01(\x05H\x00\x88\x01\x01\x12\x12\n\x05\x65rror\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0c_status_codeB\x08\n\x06_error\"\xf2\x04\n\x11\x43ontainerResponse\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06status\x18\x03 \x01(\t\x12\x1b\n\x0estatus_message\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x34\n\x04spec\x18\x05 \x01(\x0b\x32&.chalk.container.v1.ChalkContainerSpec\x12.\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\nstopped_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x88\x01\x01\x12\x10\n\x08pod_name\x18\x08 \x01(\t\x12\x14\n\x07web_url\x18\t \x01(\tH\x02\x88\x01\x01\x12\x1c\n\x0fssh_private_key\x18\n \x01(\tH\x03\x88\x01\x01\x12\x19\n\x0cssh_username\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x15\n\x08ssh_host\x18\x0c \x01(\tH\x05\x88\x01\x01\x12\x15\n\x08ssh_port\x18\r \x01(\x05H\x06\x88\x01\x01\x12:\n\x0chealth_check\x18\x0e \x01(\x0b\x32\x1f.chalk.container.v1.HealthCheckH\x07\x88\x01\x01\x12\x1d\n\x10scaling_group_id\x18\x0f \x01(\tH\x08\x88\x01\x01\x42\x11\n\x0f_status_messageB\r\n\x0b_stopped_atB\n\n\x08_web_urlB\x12\n\x10_ssh_private_keyB\x0f\n\r_ssh_usernameB\x0b\n\t_ssh_hostB\x0b\n\t_ssh_portB\x0f\n\r_health_checkB\x13\n\x11_scaling_group_id\"N\n\x13RunContainerRequest\x12\x37\n\tcontainer\x18\x01 \x01(\x0b\x32$.chalk.container.v1.ContainerRequest\"P\n\x14RunContainerResponse\x12\x38\n\tcontainer\x18\x01 \x01(\x0b\x32%.chalk.container.v1.ContainerResponse\"\x86\x01\n\x14StopContainerRequest\x12\x0f\n\x02id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04name\x18\x02 \x01(\tH\x01\x88\x01\x01\x12!\n\x14grace_period_seconds\x18\x03 \x01(\x05H\x02\x88\x01\x01\x42\x05\n\x03_idB\x07\n\x05_nameB\x17\n\x15_grace_period_seconds\"Q\n\x15StopContainerResponse\x12\x38\n\tcontainer\x18\x01 \x01(\x0b\x32%.chalk.container.v1.ContainerResponse\"I\n\x13GetContainerRequest\x12\x0f\n\x02id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04name\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x05\n\x03_idB\x07\n\x05_name\"P\n\x14GetContainerResponse\x12\x38\n\tcontainer\x18\x01 \x01(\x0b\x32%.chalk.container.v1.ContainerResponse\"K\n\x15ListContainersRequest\x12\x1d\n\x10scaling_group_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x13\n\x11_scaling_group_id\"S\n\x16ListContainersResponse\x12\x39\n\ncontainers\x18\x01 \x03(\x0b\x32%.chalk.container.v1.ContainerResponse\"\xb4\x01\n\x12\x45xecCommandRequest\x12\x0f\n\x02id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04name\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x0f\n\x07\x63ommand\x18\x03 \x03(\t\x12/\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationH\x02\x88\x01\x01\x12\x12\n\x05stdin\x18\x05 \x01(\x0cH\x03\x88\x01\x01\x42\x05\n\x03_idB\x07\n\x05_nameB\n\n\x08_timeoutB\x08\n\x06_stdin\"H\n\x13\x45xecCommandResponse\x12\x0e\n\x06stdout\x18\x01 \x01(\x0c\x12\x0e\n\x06stderr\x18\x02 \x01(\x0c\x12\x11\n\texit_code\x18\x03 \x01(\x05\"t\n\x1cUpdateContainerStatusRequest\x12\x14\n\x0c\x63ontainer_id\x18\x01 \x01(\t\x12\x0e\n\x06status\x18\x02 \x01(\t\x12\x1b\n\x0estatus_message\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x11\n\x0f_status_message\"Y\n\x1dUpdateContainerStatusResponse\x12\x38\n\tcontainer\x18\x01 \x01(\x0b\x32%.chalk.container.v1.ContainerResponse2\xa4\x05\n\x10\x43ontainerService\x12\x66\n\x0cRunContainer\x12\'.chalk.container.v1.RunContainerRequest\x1a(.chalk.container.v1.RunContainerResponse\"\x03\x80}\x0c\x12i\n\rStopContainer\x12(.chalk.container.v1.StopContainerRequest\x1a).chalk.container.v1.StopContainerResponse\"\x03\x80}\x0e\x12\x66\n\x0cGetContainer\x12\'.chalk.container.v1.GetContainerRequest\x1a(.chalk.container.v1.GetContainerResponse\"\x03\x80}\x0b\x12l\n\x0eListContainers\x12).chalk.container.v1.ListContainersRequest\x1a*.chalk.container.v1.ListContainersResponse\"\x03\x80}\x0b\x12\x63\n\x0b\x45xecCommand\x12&.chalk.container.v1.ExecCommandRequest\x1a\'.chalk.container.v1.ExecCommandResponse\"\x03\x80}\x0e\x12\x81\x01\n\x15UpdateContainerStatus\x12\x30.chalk.container.v1.UpdateContainerStatusRequest\x1a\x31.chalk.container.v1.UpdateContainerStatusResponse\"\x03\x80}\x0e\x42\x1aZ\x18\x63ontainer/v1;containerv1b\x06proto3')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chalk.container.v1.service_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z\030container/v1;containerv1'
|
|
38
|
+
_globals['_CHALKCONTAINERSPEC_TAGSENTRY']._loaded_options = None
|
|
39
|
+
_globals['_CHALKCONTAINERSPEC_TAGSENTRY']._serialized_options = b'8\001'
|
|
40
|
+
_globals['_CHALKCONTAINERSPEC_ENVVARSENTRY']._loaded_options = None
|
|
41
|
+
_globals['_CHALKCONTAINERSPEC_ENVVARSENTRY']._serialized_options = b'8\001'
|
|
42
|
+
_globals['_CONTAINERSERVICE'].methods_by_name['RunContainer']._loaded_options = None
|
|
43
|
+
_globals['_CONTAINERSERVICE'].methods_by_name['RunContainer']._serialized_options = b'\200}\014'
|
|
44
|
+
_globals['_CONTAINERSERVICE'].methods_by_name['StopContainer']._loaded_options = None
|
|
45
|
+
_globals['_CONTAINERSERVICE'].methods_by_name['StopContainer']._serialized_options = b'\200}\016'
|
|
46
|
+
_globals['_CONTAINERSERVICE'].methods_by_name['GetContainer']._loaded_options = None
|
|
47
|
+
_globals['_CONTAINERSERVICE'].methods_by_name['GetContainer']._serialized_options = b'\200}\013'
|
|
48
|
+
_globals['_CONTAINERSERVICE'].methods_by_name['ListContainers']._loaded_options = None
|
|
49
|
+
_globals['_CONTAINERSERVICE'].methods_by_name['ListContainers']._serialized_options = b'\200}\013'
|
|
50
|
+
_globals['_CONTAINERSERVICE'].methods_by_name['ExecCommand']._loaded_options = None
|
|
51
|
+
_globals['_CONTAINERSERVICE'].methods_by_name['ExecCommand']._serialized_options = b'\200}\016'
|
|
52
|
+
_globals['_CONTAINERSERVICE'].methods_by_name['UpdateContainerStatus']._loaded_options = None
|
|
53
|
+
_globals['_CONTAINERSERVICE'].methods_by_name['UpdateContainerStatus']._serialized_options = b'\200}\016'
|
|
54
|
+
_globals['_RESOURCELIMITS']._serialized_start=154
|
|
55
|
+
_globals['_RESOURCELIMITS']._serialized_end=254
|
|
56
|
+
_globals['_VOLUMEMOUNT']._serialized_start=256
|
|
57
|
+
_globals['_VOLUMEMOUNT']._serialized_end=357
|
|
58
|
+
_globals['_CHALKCONTAINERSPEC']._serialized_start=360
|
|
59
|
+
_globals['_CHALKCONTAINERSPEC']._serialized_end=1030
|
|
60
|
+
_globals['_CHALKCONTAINERSPEC_TAGSENTRY']._serialized_start=844
|
|
61
|
+
_globals['_CHALKCONTAINERSPEC_TAGSENTRY']._serialized_end=887
|
|
62
|
+
_globals['_CHALKCONTAINERSPEC_ENVVARSENTRY']._serialized_start=889
|
|
63
|
+
_globals['_CHALKCONTAINERSPEC_ENVVARSENTRY']._serialized_end=935
|
|
64
|
+
_globals['_CONTAINERREQUEST']._serialized_start=1032
|
|
65
|
+
_globals['_CONTAINERREQUEST']._serialized_end=1104
|
|
66
|
+
_globals['_HEALTHCHECK']._serialized_start=1106
|
|
67
|
+
_globals['_HEALTHCHECK']._serialized_end=1208
|
|
68
|
+
_globals['_CONTAINERRESPONSE']._serialized_start=1211
|
|
69
|
+
_globals['_CONTAINERRESPONSE']._serialized_end=1837
|
|
70
|
+
_globals['_RUNCONTAINERREQUEST']._serialized_start=1839
|
|
71
|
+
_globals['_RUNCONTAINERREQUEST']._serialized_end=1917
|
|
72
|
+
_globals['_RUNCONTAINERRESPONSE']._serialized_start=1919
|
|
73
|
+
_globals['_RUNCONTAINERRESPONSE']._serialized_end=1999
|
|
74
|
+
_globals['_STOPCONTAINERREQUEST']._serialized_start=2002
|
|
75
|
+
_globals['_STOPCONTAINERREQUEST']._serialized_end=2136
|
|
76
|
+
_globals['_STOPCONTAINERRESPONSE']._serialized_start=2138
|
|
77
|
+
_globals['_STOPCONTAINERRESPONSE']._serialized_end=2219
|
|
78
|
+
_globals['_GETCONTAINERREQUEST']._serialized_start=2221
|
|
79
|
+
_globals['_GETCONTAINERREQUEST']._serialized_end=2294
|
|
80
|
+
_globals['_GETCONTAINERRESPONSE']._serialized_start=2296
|
|
81
|
+
_globals['_GETCONTAINERRESPONSE']._serialized_end=2376
|
|
82
|
+
_globals['_LISTCONTAINERSREQUEST']._serialized_start=2378
|
|
83
|
+
_globals['_LISTCONTAINERSREQUEST']._serialized_end=2453
|
|
84
|
+
_globals['_LISTCONTAINERSRESPONSE']._serialized_start=2455
|
|
85
|
+
_globals['_LISTCONTAINERSRESPONSE']._serialized_end=2538
|
|
86
|
+
_globals['_EXECCOMMANDREQUEST']._serialized_start=2541
|
|
87
|
+
_globals['_EXECCOMMANDREQUEST']._serialized_end=2721
|
|
88
|
+
_globals['_EXECCOMMANDRESPONSE']._serialized_start=2723
|
|
89
|
+
_globals['_EXECCOMMANDRESPONSE']._serialized_end=2795
|
|
90
|
+
_globals['_UPDATECONTAINERSTATUSREQUEST']._serialized_start=2797
|
|
91
|
+
_globals['_UPDATECONTAINERSTATUSREQUEST']._serialized_end=2913
|
|
92
|
+
_globals['_UPDATECONTAINERSTATUSRESPONSE']._serialized_start=2915
|
|
93
|
+
_globals['_UPDATECONTAINERSTATUSRESPONSE']._serialized_end=3004
|
|
94
|
+
_globals['_CONTAINERSERVICE']._serialized_start=3007
|
|
95
|
+
_globals['_CONTAINERSERVICE']._serialized_end=3683
|
|
96
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
|
|
3
|
+
from chalkcompute._proto.auth.v1 import permissions_pb2 as _permissions_pb2
|
|
4
|
+
from google.protobuf import duration_pb2 as _duration_pb2
|
|
5
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
6
|
+
from google.protobuf.internal import containers as _containers
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import message as _message
|
|
9
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
10
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
11
|
+
|
|
12
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
13
|
+
|
|
14
|
+
class ResourceLimits(_message.Message):
|
|
15
|
+
__slots__ = ("cpu", "memory", "gpu")
|
|
16
|
+
CPU_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
MEMORY_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
+
GPU_FIELD_NUMBER: _ClassVar[int]
|
|
19
|
+
cpu: str
|
|
20
|
+
memory: str
|
|
21
|
+
gpu: str
|
|
22
|
+
def __init__(self, cpu: _Optional[str] = ..., memory: _Optional[str] = ..., gpu: _Optional[str] = ...) -> None: ...
|
|
23
|
+
|
|
24
|
+
class VolumeMount(_message.Message):
|
|
25
|
+
__slots__ = ("name", "mount_path", "type", "size_limit")
|
|
26
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
MOUNT_PATH_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
SIZE_LIMIT_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
+
name: str
|
|
31
|
+
mount_path: str
|
|
32
|
+
type: str
|
|
33
|
+
size_limit: str
|
|
34
|
+
def __init__(self, name: _Optional[str] = ..., mount_path: _Optional[str] = ..., type: _Optional[str] = ..., size_limit: _Optional[str] = ...) -> None: ...
|
|
35
|
+
|
|
36
|
+
class ChalkContainerSpec(_message.Message):
|
|
37
|
+
__slots__ = ("name", "image", "entrypoint", "tags", "port", "lifetime", "resources", "enable_ssh", "env_vars", "volumes", "protocol", "routing", "authentication")
|
|
38
|
+
class TagsEntry(_message.Message):
|
|
39
|
+
__slots__ = ("key", "value")
|
|
40
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
41
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
+
key: str
|
|
43
|
+
value: str
|
|
44
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
45
|
+
class EnvVarsEntry(_message.Message):
|
|
46
|
+
__slots__ = ("key", "value")
|
|
47
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
48
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
49
|
+
key: str
|
|
50
|
+
value: str
|
|
51
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
52
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
IMAGE_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
+
ENTRYPOINT_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
TAGS_FIELD_NUMBER: _ClassVar[int]
|
|
56
|
+
PORT_FIELD_NUMBER: _ClassVar[int]
|
|
57
|
+
LIFETIME_FIELD_NUMBER: _ClassVar[int]
|
|
58
|
+
RESOURCES_FIELD_NUMBER: _ClassVar[int]
|
|
59
|
+
ENABLE_SSH_FIELD_NUMBER: _ClassVar[int]
|
|
60
|
+
ENV_VARS_FIELD_NUMBER: _ClassVar[int]
|
|
61
|
+
VOLUMES_FIELD_NUMBER: _ClassVar[int]
|
|
62
|
+
PROTOCOL_FIELD_NUMBER: _ClassVar[int]
|
|
63
|
+
ROUTING_FIELD_NUMBER: _ClassVar[int]
|
|
64
|
+
AUTHENTICATION_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
name: str
|
|
66
|
+
image: str
|
|
67
|
+
entrypoint: _containers.RepeatedScalarFieldContainer[str]
|
|
68
|
+
tags: _containers.ScalarMap[str, str]
|
|
69
|
+
port: int
|
|
70
|
+
lifetime: _duration_pb2.Duration
|
|
71
|
+
resources: ResourceLimits
|
|
72
|
+
enable_ssh: bool
|
|
73
|
+
env_vars: _containers.ScalarMap[str, str]
|
|
74
|
+
volumes: _containers.RepeatedCompositeFieldContainer[VolumeMount]
|
|
75
|
+
protocol: str
|
|
76
|
+
routing: str
|
|
77
|
+
authentication: str
|
|
78
|
+
def __init__(self, name: _Optional[str] = ..., image: _Optional[str] = ..., entrypoint: _Optional[_Iterable[str]] = ..., tags: _Optional[_Mapping[str, str]] = ..., port: _Optional[int] = ..., lifetime: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., resources: _Optional[_Union[ResourceLimits, _Mapping]] = ..., enable_ssh: bool = ..., env_vars: _Optional[_Mapping[str, str]] = ..., volumes: _Optional[_Iterable[_Union[VolumeMount, _Mapping]]] = ..., protocol: _Optional[str] = ..., routing: _Optional[str] = ..., authentication: _Optional[str] = ...) -> None: ...
|
|
79
|
+
|
|
80
|
+
class ContainerRequest(_message.Message):
|
|
81
|
+
__slots__ = ("spec",)
|
|
82
|
+
SPEC_FIELD_NUMBER: _ClassVar[int]
|
|
83
|
+
spec: ChalkContainerSpec
|
|
84
|
+
def __init__(self, spec: _Optional[_Union[ChalkContainerSpec, _Mapping]] = ...) -> None: ...
|
|
85
|
+
|
|
86
|
+
class HealthCheck(_message.Message):
|
|
87
|
+
__slots__ = ("healthy", "status_code", "error")
|
|
88
|
+
HEALTHY_FIELD_NUMBER: _ClassVar[int]
|
|
89
|
+
STATUS_CODE_FIELD_NUMBER: _ClassVar[int]
|
|
90
|
+
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
91
|
+
healthy: bool
|
|
92
|
+
status_code: int
|
|
93
|
+
error: str
|
|
94
|
+
def __init__(self, healthy: bool = ..., status_code: _Optional[int] = ..., error: _Optional[str] = ...) -> None: ...
|
|
95
|
+
|
|
96
|
+
class ContainerResponse(_message.Message):
|
|
97
|
+
__slots__ = ("id", "name", "status", "status_message", "spec", "created_at", "stopped_at", "pod_name", "web_url", "ssh_private_key", "ssh_username", "ssh_host", "ssh_port", "health_check", "scaling_group_id")
|
|
98
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
99
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
100
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
101
|
+
STATUS_MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
102
|
+
SPEC_FIELD_NUMBER: _ClassVar[int]
|
|
103
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
104
|
+
STOPPED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
105
|
+
POD_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
106
|
+
WEB_URL_FIELD_NUMBER: _ClassVar[int]
|
|
107
|
+
SSH_PRIVATE_KEY_FIELD_NUMBER: _ClassVar[int]
|
|
108
|
+
SSH_USERNAME_FIELD_NUMBER: _ClassVar[int]
|
|
109
|
+
SSH_HOST_FIELD_NUMBER: _ClassVar[int]
|
|
110
|
+
SSH_PORT_FIELD_NUMBER: _ClassVar[int]
|
|
111
|
+
HEALTH_CHECK_FIELD_NUMBER: _ClassVar[int]
|
|
112
|
+
SCALING_GROUP_ID_FIELD_NUMBER: _ClassVar[int]
|
|
113
|
+
id: str
|
|
114
|
+
name: str
|
|
115
|
+
status: str
|
|
116
|
+
status_message: str
|
|
117
|
+
spec: ChalkContainerSpec
|
|
118
|
+
created_at: _timestamp_pb2.Timestamp
|
|
119
|
+
stopped_at: _timestamp_pb2.Timestamp
|
|
120
|
+
pod_name: str
|
|
121
|
+
web_url: str
|
|
122
|
+
ssh_private_key: str
|
|
123
|
+
ssh_username: str
|
|
124
|
+
ssh_host: str
|
|
125
|
+
ssh_port: int
|
|
126
|
+
health_check: HealthCheck
|
|
127
|
+
scaling_group_id: str
|
|
128
|
+
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., status: _Optional[str] = ..., status_message: _Optional[str] = ..., spec: _Optional[_Union[ChalkContainerSpec, _Mapping]] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., stopped_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., pod_name: _Optional[str] = ..., web_url: _Optional[str] = ..., ssh_private_key: _Optional[str] = ..., ssh_username: _Optional[str] = ..., ssh_host: _Optional[str] = ..., ssh_port: _Optional[int] = ..., health_check: _Optional[_Union[HealthCheck, _Mapping]] = ..., scaling_group_id: _Optional[str] = ...) -> None: ...
|
|
129
|
+
|
|
130
|
+
class RunContainerRequest(_message.Message):
|
|
131
|
+
__slots__ = ("container",)
|
|
132
|
+
CONTAINER_FIELD_NUMBER: _ClassVar[int]
|
|
133
|
+
container: ContainerRequest
|
|
134
|
+
def __init__(self, container: _Optional[_Union[ContainerRequest, _Mapping]] = ...) -> None: ...
|
|
135
|
+
|
|
136
|
+
class RunContainerResponse(_message.Message):
|
|
137
|
+
__slots__ = ("container",)
|
|
138
|
+
CONTAINER_FIELD_NUMBER: _ClassVar[int]
|
|
139
|
+
container: ContainerResponse
|
|
140
|
+
def __init__(self, container: _Optional[_Union[ContainerResponse, _Mapping]] = ...) -> None: ...
|
|
141
|
+
|
|
142
|
+
class StopContainerRequest(_message.Message):
|
|
143
|
+
__slots__ = ("id", "name", "grace_period_seconds")
|
|
144
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
145
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
146
|
+
GRACE_PERIOD_SECONDS_FIELD_NUMBER: _ClassVar[int]
|
|
147
|
+
id: str
|
|
148
|
+
name: str
|
|
149
|
+
grace_period_seconds: int
|
|
150
|
+
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., grace_period_seconds: _Optional[int] = ...) -> None: ...
|
|
151
|
+
|
|
152
|
+
class StopContainerResponse(_message.Message):
|
|
153
|
+
__slots__ = ("container",)
|
|
154
|
+
CONTAINER_FIELD_NUMBER: _ClassVar[int]
|
|
155
|
+
container: ContainerResponse
|
|
156
|
+
def __init__(self, container: _Optional[_Union[ContainerResponse, _Mapping]] = ...) -> None: ...
|
|
157
|
+
|
|
158
|
+
class GetContainerRequest(_message.Message):
|
|
159
|
+
__slots__ = ("id", "name")
|
|
160
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
161
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
162
|
+
id: str
|
|
163
|
+
name: str
|
|
164
|
+
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ...
|
|
165
|
+
|
|
166
|
+
class GetContainerResponse(_message.Message):
|
|
167
|
+
__slots__ = ("container",)
|
|
168
|
+
CONTAINER_FIELD_NUMBER: _ClassVar[int]
|
|
169
|
+
container: ContainerResponse
|
|
170
|
+
def __init__(self, container: _Optional[_Union[ContainerResponse, _Mapping]] = ...) -> None: ...
|
|
171
|
+
|
|
172
|
+
class ListContainersRequest(_message.Message):
|
|
173
|
+
__slots__ = ("scaling_group_id",)
|
|
174
|
+
SCALING_GROUP_ID_FIELD_NUMBER: _ClassVar[int]
|
|
175
|
+
scaling_group_id: str
|
|
176
|
+
def __init__(self, scaling_group_id: _Optional[str] = ...) -> None: ...
|
|
177
|
+
|
|
178
|
+
class ListContainersResponse(_message.Message):
|
|
179
|
+
__slots__ = ("containers",)
|
|
180
|
+
CONTAINERS_FIELD_NUMBER: _ClassVar[int]
|
|
181
|
+
containers: _containers.RepeatedCompositeFieldContainer[ContainerResponse]
|
|
182
|
+
def __init__(self, containers: _Optional[_Iterable[_Union[ContainerResponse, _Mapping]]] = ...) -> None: ...
|
|
183
|
+
|
|
184
|
+
class ExecCommandRequest(_message.Message):
|
|
185
|
+
__slots__ = ("id", "name", "command", "timeout", "stdin")
|
|
186
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
187
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
188
|
+
COMMAND_FIELD_NUMBER: _ClassVar[int]
|
|
189
|
+
TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
190
|
+
STDIN_FIELD_NUMBER: _ClassVar[int]
|
|
191
|
+
id: str
|
|
192
|
+
name: str
|
|
193
|
+
command: _containers.RepeatedScalarFieldContainer[str]
|
|
194
|
+
timeout: _duration_pb2.Duration
|
|
195
|
+
stdin: bytes
|
|
196
|
+
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., command: _Optional[_Iterable[str]] = ..., timeout: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., stdin: _Optional[bytes] = ...) -> None: ...
|
|
197
|
+
|
|
198
|
+
class ExecCommandResponse(_message.Message):
|
|
199
|
+
__slots__ = ("stdout", "stderr", "exit_code")
|
|
200
|
+
STDOUT_FIELD_NUMBER: _ClassVar[int]
|
|
201
|
+
STDERR_FIELD_NUMBER: _ClassVar[int]
|
|
202
|
+
EXIT_CODE_FIELD_NUMBER: _ClassVar[int]
|
|
203
|
+
stdout: bytes
|
|
204
|
+
stderr: bytes
|
|
205
|
+
exit_code: int
|
|
206
|
+
def __init__(self, stdout: _Optional[bytes] = ..., stderr: _Optional[bytes] = ..., exit_code: _Optional[int] = ...) -> None: ...
|
|
207
|
+
|
|
208
|
+
class UpdateContainerStatusRequest(_message.Message):
|
|
209
|
+
__slots__ = ("container_id", "status", "status_message")
|
|
210
|
+
CONTAINER_ID_FIELD_NUMBER: _ClassVar[int]
|
|
211
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
212
|
+
STATUS_MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
213
|
+
container_id: str
|
|
214
|
+
status: str
|
|
215
|
+
status_message: str
|
|
216
|
+
def __init__(self, container_id: _Optional[str] = ..., status: _Optional[str] = ..., status_message: _Optional[str] = ...) -> None: ...
|
|
217
|
+
|
|
218
|
+
class UpdateContainerStatusResponse(_message.Message):
|
|
219
|
+
__slots__ = ("container",)
|
|
220
|
+
CONTAINER_FIELD_NUMBER: _ClassVar[int]
|
|
221
|
+
container: ContainerResponse
|
|
222
|
+
def __init__(self, container: _Optional[_Union[ContainerResponse, _Mapping]] = ...) -> None: ...
|