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@3047170
  • Loading branch information
droplet-bot committed Jan 30, 2024
1 parent 8e8894c commit 3a32da4
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 55 deletions.
2 changes: 1 addition & 1 deletion model/model/v1alpha/model_public_service_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def ListOrganizationModels(self, request, context):
def CreateOrganizationModel(self, request, context):
"""Create a new model
Creates a new model under the parenthood of a organization. This is an
Creates a new model under the parenthood of an organization. This is an
asynchronous endpoint, i.e., the server will not wait for the model to be
created in order to respond. Instead, it will return a response with the
necessary information to access the result and status of the creation
Expand Down
6 changes: 3 additions & 3 deletions model/model/v1alpha/model_public_service_pb2_grpc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class ModelPublicServiceStub:
]
"""Create a new model
Creates a new model under the parenthood of a organization. This is an
Creates a new model under the parenthood of an organization. This is an
asynchronous endpoint, i.e., the server will not wait for the model to be
created in order to respond. Instead, it will return a response with the
necessary information to access the result and status of the creation
Expand Down Expand Up @@ -620,7 +620,7 @@ class ModelPublicServiceAsyncStub:
]
"""Create a new model
Creates a new model under the parenthood of a organization. This is an
Creates a new model under the parenthood of an organization. This is an
asynchronous endpoint, i.e., the server will not wait for the model to be
created in order to respond. Instead, it will return a response with the
necessary information to access the result and status of the creation
Expand Down Expand Up @@ -1041,7 +1041,7 @@ class ModelPublicServiceServicer(metaclass=abc.ABCMeta):
) -> typing.Union[model.model.v1alpha.model_pb2.CreateOrganizationModelResponse, collections.abc.Awaitable[model.model.v1alpha.model_pb2.CreateOrganizationModelResponse]]:
"""Create a new model
Creates a new model under the parenthood of a organization. This is an
Creates a new model under the parenthood of an organization. This is an
asynchronous endpoint, i.e., the server will not wait for the model to be
created in order to respond. Instead, it will return a response with the
necessary information to access the result and status of the creation
Expand Down
19 changes: 9 additions & 10 deletions vdp/pipeline/v1beta/common_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,12 @@ class CheckNameRequest(google.protobuf.message.Message):

NAME_FIELD_NUMBER: builtins.int
name: builtins.str
"""The name of the resource to be checked, should be in the formats:
- users/<user_id>/pipelines/<pipeline_id>
- users/<user_id>/connectors/<connector_id>
- organizations/<org_id>/pipelines/<pipeline_id>
- organizations/<org_id>/connectors/<connector_id>
"""The name of the resource to be checked. For the moment, only pipeline and
connector names can be checked. The following formats are accepted:
- `users/{user.id}/pipelines/{pipeline.id}`
- `users/{user.id}/connectors/{connector.id}`
- `organizations/{organization.id}/pipelines/{pipeline.id}`
- `organizations/{organization.id}/connectors/{connector.id}`
"""
def __init__(
self,
Expand All @@ -197,9 +198,7 @@ global___CheckNameRequest = CheckNameRequest

@typing_extensions.final
class CheckNameResponse(google.protobuf.message.Message):
"""CheckNameResponse contains the availability of a name
of resource that's using it.
"""
"""CheckNameResponse contains the availability of a resource name."""

DESCRIPTOR: google.protobuf.descriptor.Descriptor

Expand All @@ -217,7 +216,7 @@ class CheckNameResponse(google.protobuf.message.Message):
"""Unavailable."""

class Name(_Name, metaclass=_NameEnumTypeWrapper):
"""Availability of Name"""
"""Name defines the availability of a resource name."""

NAME_UNSPECIFIED: CheckNameResponse.Name.ValueType # 0
"""Unspecified."""
Expand All @@ -228,7 +227,7 @@ class CheckNameResponse(google.protobuf.message.Message):

AVAILABILITY_FIELD_NUMBER: builtins.int
availability: global___CheckNameResponse.Name.ValueType
"""Availability"""
"""The availability of the requested name."""
def __init__(
self,
*,
Expand Down
4 changes: 2 additions & 2 deletions vdp/pipeline/v1beta/connector_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ global___CreateOrganizationConnectorResponse = CreateOrganizationConnectorRespon
@typing_extensions.final
class ListOrganizationConnectorsRequest(google.protobuf.message.Message):
"""ListOrganizationConnectorsRequest represents a request to list the
connectors of a organization.
connectors of an organization.
"""

DESCRIPTOR: google.protobuf.descriptor.Descriptor
Expand Down Expand Up @@ -1364,7 +1364,7 @@ global___TestOrganizationConnectorResponse = TestOrganizationConnectorResponse
@typing_extensions.final
class WatchOrganizationConnectorRequest(google.protobuf.message.Message):
"""WatchOrganizationConnectorRequest represents a request to fetch the state of
a organization-owned connector.
an organization-owned connector.
"""

DESCRIPTOR: google.protobuf.descriptor.Descriptor
Expand Down
30 changes: 19 additions & 11 deletions vdp/pipeline/v1beta/pipeline_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,9 @@ global___RenameUserPipelineResponse = RenameUserPipelineResponse

@typing_extensions.final
class CloneUserPipelineRequest(google.protobuf.message.Message):
"""CloneUserPipelineRequest represents a request to clone a pipeline owned by a user."""
"""CloneUserPipelineRequest represents a request to clone a pipeline owned by a
user.
"""

DESCRIPTOR: google.protobuf.descriptor.Descriptor

Expand All @@ -1106,8 +1108,10 @@ class CloneUserPipelineRequest(google.protobuf.message.Message):
- Format: `users/{user.id}/pipelines/{pipeline.id}`.
"""
target: builtins.str
"""The target pipeline
- Format: `users/{user.id}/pipelines/{pipeline.id}` or `organizations/{org.id}/pipelines/{pipeline.id}`
"""The target pipeline name. It can be under a user or an organization
namespace, so the following formats are accepted:
- `users/{user.id}/pipelines/{pipeline.id}`
- `organizations/{organization.id}/pipelines/{pipeline.id}`
"""
def __init__(
self,
Expand Down Expand Up @@ -1806,7 +1810,7 @@ global___CreateOrganizationPipelineResponse = CreateOrganizationPipelineResponse
@typing_extensions.final
class ListOrganizationPipelinesRequest(google.protobuf.message.Message):
"""ListOrganizationPipelinesRequest represents a request to list the pipelines
of a organization.
of an organization.
"""

DESCRIPTOR: google.protobuf.descriptor.Descriptor
Expand Down Expand Up @@ -2126,20 +2130,24 @@ global___RenameOrganizationPipelineResponse = RenameOrganizationPipelineResponse

@typing_extensions.final
class CloneOrganizationPipelineRequest(google.protobuf.message.Message):
"""CloneOrganizationPipelineRequest represents a request to clone a pipeline owned by a organization."""
"""CloneOrganizationPipelineRequest represents a request to clone a pipeline
owned by an organization.
"""

DESCRIPTOR: google.protobuf.descriptor.Descriptor

NAME_FIELD_NUMBER: builtins.int
TARGET_FIELD_NUMBER: builtins.int
name: builtins.str
"""The resource name of the pipeline, which allows its access by parent user
and ID.
- Format: `organizations/{org.id}/pipelines/{pipeline.id}`.
"""The resource name of the pipeline, which allows its access by parent
organization and ID.
- Format: `organizations/{organization.id}/pipelines/{pipeline.id}`.
"""
target: builtins.str
"""The target pipeline
- Format: `users/{user.id}/pipelines/{pipeline.id}` or `organizations/{org.id}/pipelines/{pipeline.id}`
"""The target pipeline name. It can be under a user or an organization
namespace, so the following formats are accepted:
- `users/{user.id}/pipelines/{pipeline.id}`
- `organizations/{organization.id}/pipelines/{pipeline.id}`
"""
def __init__(
self,
Expand Down Expand Up @@ -2650,7 +2658,7 @@ global___RenameOrganizationPipelineReleaseResponse = RenameOrganizationPipelineR
@typing_extensions.final
class WatchOrganizationPipelineReleaseRequest(google.protobuf.message.Message):
"""WatchOrganizationPipelineReleaseRequest represents a request to query the
state of a organization-owned pipeline release.
state of an organization-owned pipeline release.
"""

DESCRIPTOR: google.protobuf.descriptor.Descriptor
Expand Down
13 changes: 6 additions & 7 deletions vdp/pipeline/v1beta/pipeline_public_service_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,8 @@ def RenameUserPipeline(self, request, context):
def CloneUserPipeline(self, request, context):
"""Clone a pipeline owned by a user
Clone a pipeline owned by a user, the target pipeline can be under a user or organization namespace.
Clones a pipeline owned by a user. The new pipeline may have a different
parent, and this can be either a user or an organization.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
Expand Down Expand Up @@ -782,7 +783,8 @@ def RenameOrganizationPipeline(self, request, context):
def CloneOrganizationPipeline(self, request, context):
"""Clone a pipeline owned by an organization
Clone a pipeline owned by an organization, the target pipeline can be under a user or organization namespace.
Clones a pipeline owned by an organization. The new pipeline may have a
different parent, and this can be either a user or an organization.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
Expand Down Expand Up @@ -1241,11 +1243,8 @@ def TestOrganizationConnector(self, request, context):
def CheckName(self, request, context):
"""Check the availibity of a resource name
Check the availibity of a resource name. The name should be in the formats:
- users/<user_id>/pipelines/<pipeline_id>
- users/<user_id>/connectors/<connector_id>
- organizations/<org_id>/pipelines/<pipeline_id>
- organizations/<org_id>/connectors/<connector_id>
Check whether a resource name is already in use. Currently this endpoint
only supports pipeline and connector resource names.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
Expand Down
39 changes: 18 additions & 21 deletions vdp/pipeline/v1beta/pipeline_public_service_pb2_grpc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ class PipelinePublicServiceStub:
]
"""Clone a pipeline owned by a user
Clone a pipeline owned by a user, the target pipeline can be under a user or organization namespace.
Clones a pipeline owned by a user. The new pipeline may have a different
parent, and this can be either a user or an organization.
"""
TriggerUserPipeline: grpc.UnaryUnaryMultiCallable[
vdp.pipeline.v1beta.pipeline_pb2.TriggerUserPipelineRequest,
Expand Down Expand Up @@ -382,7 +383,8 @@ class PipelinePublicServiceStub:
]
"""Clone a pipeline owned by an organization
Clone a pipeline owned by an organization, the target pipeline can be under a user or organization namespace.
Clones a pipeline owned by an organization. The new pipeline may have a
different parent, and this can be either a user or an organization.
"""
TriggerOrganizationPipeline: grpc.UnaryUnaryMultiCallable[
vdp.pipeline.v1beta.pipeline_pb2.TriggerOrganizationPipelineRequest,
Expand Down Expand Up @@ -799,11 +801,8 @@ class PipelinePublicServiceStub:
]
"""Check the availibity of a resource name
Check the availibity of a resource name. The name should be in the formats:
- users/<user_id>/pipelines/<pipeline_id>
- users/<user_id>/connectors/<connector_id>
- organizations/<org_id>/pipelines/<pipeline_id>
- organizations/<org_id>/connectors/<connector_id>
Check whether a resource name is already in use. Currently this endpoint
only supports pipeline and connector resource names.
"""

class PipelinePublicServiceAsyncStub:
Expand Down Expand Up @@ -932,7 +931,8 @@ class PipelinePublicServiceAsyncStub:
]
"""Clone a pipeline owned by a user
Clone a pipeline owned by a user, the target pipeline can be under a user or organization namespace.
Clones a pipeline owned by a user. The new pipeline may have a different
parent, and this can be either a user or an organization.
"""
TriggerUserPipeline: grpc.aio.UnaryUnaryMultiCallable[
vdp.pipeline.v1beta.pipeline_pb2.TriggerUserPipelineRequest,
Expand Down Expand Up @@ -1166,7 +1166,8 @@ class PipelinePublicServiceAsyncStub:
]
"""Clone a pipeline owned by an organization
Clone a pipeline owned by an organization, the target pipeline can be under a user or organization namespace.
Clones a pipeline owned by an organization. The new pipeline may have a
different parent, and this can be either a user or an organization.
"""
TriggerOrganizationPipeline: grpc.aio.UnaryUnaryMultiCallable[
vdp.pipeline.v1beta.pipeline_pb2.TriggerOrganizationPipelineRequest,
Expand Down Expand Up @@ -1583,11 +1584,8 @@ class PipelinePublicServiceAsyncStub:
]
"""Check the availibity of a resource name
Check the availibity of a resource name. The name should be in the formats:
- users/<user_id>/pipelines/<pipeline_id>
- users/<user_id>/connectors/<connector_id>
- organizations/<org_id>/pipelines/<pipeline_id>
- organizations/<org_id>/connectors/<connector_id>
Check whether a resource name is already in use. Currently this endpoint
only supports pipeline and connector resource names.
"""

class PipelinePublicServiceServicer(metaclass=abc.ABCMeta):
Expand Down Expand Up @@ -1740,7 +1738,8 @@ class PipelinePublicServiceServicer(metaclass=abc.ABCMeta):
) -> typing.Union[vdp.pipeline.v1beta.pipeline_pb2.CloneUserPipelineResponse, collections.abc.Awaitable[vdp.pipeline.v1beta.pipeline_pb2.CloneUserPipelineResponse]]:
"""Clone a pipeline owned by a user
Clone a pipeline owned by a user, the target pipeline can be under a user or organization namespace.
Clones a pipeline owned by a user. The new pipeline may have a different
parent, and this can be either a user or an organization.
"""
@abc.abstractmethod
def TriggerUserPipeline(
Expand Down Expand Up @@ -2014,7 +2013,8 @@ class PipelinePublicServiceServicer(metaclass=abc.ABCMeta):
) -> typing.Union[vdp.pipeline.v1beta.pipeline_pb2.CloneOrganizationPipelineResponse, collections.abc.Awaitable[vdp.pipeline.v1beta.pipeline_pb2.CloneOrganizationPipelineResponse]]:
"""Clone a pipeline owned by an organization
Clone a pipeline owned by an organization, the target pipeline can be under a user or organization namespace.
Clones a pipeline owned by an organization. The new pipeline may have a
different parent, and this can be either a user or an organization.
"""
@abc.abstractmethod
def TriggerOrganizationPipeline(
Expand Down Expand Up @@ -2515,11 +2515,8 @@ class PipelinePublicServiceServicer(metaclass=abc.ABCMeta):
) -> typing.Union[vdp.pipeline.v1beta.common_pb2.CheckNameResponse, collections.abc.Awaitable[vdp.pipeline.v1beta.common_pb2.CheckNameResponse]]:
"""Check the availibity of a resource name
Check the availibity of a resource name. The name should be in the formats:
- users/<user_id>/pipelines/<pipeline_id>
- users/<user_id>/connectors/<connector_id>
- organizations/<org_id>/pipelines/<pipeline_id>
- organizations/<org_id>/connectors/<connector_id>
Check whether a resource name is already in use. Currently this endpoint
only supports pipeline and connector resource names.
"""

def add_PipelinePublicServiceServicer_to_server(servicer: PipelinePublicServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...

0 comments on commit 3a32da4

Please sign in to comment.