Skip to content

Commit

Permalink
chore: auto-gen by protobufs
Browse files Browse the repository at this point in the history
triggered by commit: instill-ai/protobufs@3d81763
  • Loading branch information
droplet-bot committed Dec 4, 2023
1 parent 971fd41 commit e4f395d
Show file tree
Hide file tree
Showing 5 changed files with 246 additions and 200 deletions.
248 changes: 127 additions & 121 deletions core/mgmt/v1alpha/mgmt_pb2.py

Large diffs are not rendered by default.

83 changes: 65 additions & 18 deletions core/mgmt/v1alpha/mgmt_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -790,46 +790,93 @@ class PatchAuthenticatedUserResponse(google.protobuf.message.Message):
global___PatchAuthenticatedUserResponse = PatchAuthenticatedUserResponse

@typing_extensions.final
class ExistUsernameRequest(google.protobuf.message.Message):
"""ExistUsernameRequest represents a request to verify if
a username has been occupied
class CheckNamespaceRequest(google.protobuf.message.Message):
"""CheckNamespaceRequest represents a request to verify if
a namespace has been occupied and know its type
"""

DESCRIPTOR: google.protobuf.descriptor.Descriptor

NAME_FIELD_NUMBER: builtins.int
name: builtins.str
"""The resource name of the user to check,
for example: "users/local-user"
"""
@typing_extensions.final
class CheckNamespaceRequestBody(google.protobuf.message.Message):
"""CheckNamespaceRequestBody"""

DESCRIPTOR: google.protobuf.descriptor.Descriptor

ID_FIELD_NUMBER: builtins.int
id: builtins.str
"""The resource id of to check,"""
def __init__(
self,
*,
id: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["id", b"id"]) -> None: ...

NAMESPACE_FIELD_NUMBER: builtins.int
@property
def namespace(self) -> global___CheckNamespaceRequest.CheckNamespaceRequestBody:
"""body"""
def __init__(
self,
*,
name: builtins.str = ...,
namespace: global___CheckNamespaceRequest.CheckNamespaceRequestBody | None = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["name", b"name"]) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["namespace", b"namespace"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["namespace", b"namespace"]) -> None: ...

global___ExistUsernameRequest = ExistUsernameRequest
global___CheckNamespaceRequest = CheckNamespaceRequest

@typing_extensions.final
class ExistUsernameResponse(google.protobuf.message.Message):
"""ExistUsernameResponse represents a response about whether
class CheckNamespaceResponse(google.protobuf.message.Message):
"""CheckNamespaceResponse represents a response about whether
the queried username has been occupied
"""

DESCRIPTOR: google.protobuf.descriptor.Descriptor

EXISTS_FIELD_NUMBER: builtins.int
exists: builtins.bool
class _Namespace:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType

class _NamespaceEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[CheckNamespaceResponse._Namespace.ValueType], builtins.type):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
NAMESPACE_UNSPECIFIED: CheckNamespaceResponse._Namespace.ValueType # 0
"""UNSPECIFIED"""
NAMESPACE_AVAILABLE: CheckNamespaceResponse._Namespace.ValueType # 1
"""Available"""
NAMESPACE_USER: CheckNamespaceResponse._Namespace.ValueType # 2
"""User"""
NAMESPACE_ORGANIZATION: CheckNamespaceResponse._Namespace.ValueType # 3
"""Org"""
NAMESPACE_RESERVED: CheckNamespaceResponse._Namespace.ValueType # 4
"""Reserved"""

class Namespace(_Namespace, metaclass=_NamespaceEnumTypeWrapper):
"""Namespace type"""

NAMESPACE_UNSPECIFIED: CheckNamespaceResponse.Namespace.ValueType # 0
"""UNSPECIFIED"""
NAMESPACE_AVAILABLE: CheckNamespaceResponse.Namespace.ValueType # 1
"""Available"""
NAMESPACE_USER: CheckNamespaceResponse.Namespace.ValueType # 2
"""User"""
NAMESPACE_ORGANIZATION: CheckNamespaceResponse.Namespace.ValueType # 3
"""Org"""
NAMESPACE_RESERVED: CheckNamespaceResponse.Namespace.ValueType # 4
"""Reserved"""

TYPE_FIELD_NUMBER: builtins.int
type: global___CheckNamespaceResponse.Namespace.ValueType
"""A boolean value indicating whether the username has been occupied"""
def __init__(
self,
*,
exists: builtins.bool = ...,
type: global___CheckNamespaceResponse.Namespace.ValueType = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["exists", b"exists"]) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["type", b"type"]) -> None: ...

global___ExistUsernameResponse = ExistUsernameResponse
global___CheckNamespaceResponse = CheckNamespaceResponse

@typing_extensions.final
class ApiToken(google.protobuf.message.Message):
Expand Down
Loading

0 comments on commit e4f395d

Please sign in to comment.