Skip to content

Commit ac6d05a

Browse files
authored
[WORKFLOW] Updating protos from viamrobotics/api, commit: 09ad545c76530c8838bd2f158fc8c8c7fd7a029e
1 parent 7d1f9f7 commit ac6d05a

File tree

7 files changed

+308
-201
lines changed

7 files changed

+308
-201
lines changed

src/viam/gen/app/v1/app_pb2.py

Lines changed: 176 additions & 176 deletions
Large diffs are not rendered by default.

src/viam/gen/app/v1/app_pb2.pyi

Lines changed: 40 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3529,10 +3529,13 @@ class ModuleMetadata(google.protobuf.message.Message):
35293529
VERSIONS_FIELD_NUMBER: builtins.int
35303530
ENTRYPOINT_FIELD_NUMBER: builtins.int
35313531
FIRST_RUN_FIELD_NUMBER: builtins.int
3532+
MARKDOWN_DESCRIPTION_FIELD_NUMBER: builtins.int
35323533
entrypoint: builtins.str
35333534
'The executable to run to start the module program'
35343535
first_run: builtins.str
35353536
'The path to a setup script that is run before a newly downloaded module starts.'
3537+
markdown_description: builtins.str
3538+
'markdown content for the entire module'
35363539

35373540
@property
35383541
def models(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Model]:
@@ -3544,17 +3547,22 @@ class ModuleMetadata(google.protobuf.message.Message):
35443547
When this is returned from the backend, the versions are sorted in ascending order by the semver version
35453548
"""
35463549

3547-
def __init__(self, *, models: collections.abc.Iterable[global___Model] | None=..., versions: collections.abc.Iterable[global___ModuleVersion] | None=..., entrypoint: builtins.str=..., first_run: builtins.str | None=...) -> None:
3550+
def __init__(self, *, models: collections.abc.Iterable[global___Model] | None=..., versions: collections.abc.Iterable[global___ModuleVersion] | None=..., entrypoint: builtins.str=..., first_run: builtins.str | None=..., markdown_description: builtins.str | None=...) -> None:
35483551
...
35493552

3550-
def HasField(self, field_name: typing.Literal['_first_run', b'_first_run', 'first_run', b'first_run']) -> builtins.bool:
3553+
def HasField(self, field_name: typing.Literal['_first_run', b'_first_run', '_markdown_description', b'_markdown_description', 'first_run', b'first_run', 'markdown_description', b'markdown_description']) -> builtins.bool:
35513554
...
35523555

3553-
def ClearField(self, field_name: typing.Literal['_first_run', b'_first_run', 'entrypoint', b'entrypoint', 'first_run', b'first_run', 'models', b'models', 'versions', b'versions']) -> None:
3556+
def ClearField(self, field_name: typing.Literal['_first_run', b'_first_run', '_markdown_description', b'_markdown_description', 'entrypoint', b'entrypoint', 'first_run', b'first_run', 'markdown_description', b'markdown_description', 'models', b'models', 'versions', b'versions']) -> None:
35543557
...
35553558

3559+
@typing.overload
35563560
def WhichOneof(self, oneof_group: typing.Literal['_first_run', b'_first_run']) -> typing.Literal['first_run'] | None:
35573561
...
3562+
3563+
@typing.overload
3564+
def WhichOneof(self, oneof_group: typing.Literal['_markdown_description', b'_markdown_description']) -> typing.Literal['markdown_description'] | None:
3565+
...
35583566
global___ModuleMetadata = ModuleMetadata
35593567

35603568
@typing.final
@@ -3777,11 +3785,13 @@ class UpdateRegistryItemRequest(google.protobuf.message.Message):
37773785
UPDATE_MODULE_METADATA_FIELD_NUMBER: builtins.int
37783786
UPDATE_ML_MODEL_METADATA_FIELD_NUMBER: builtins.int
37793787
UPDATE_ML_TRAINING_METADATA_FIELD_NUMBER: builtins.int
3788+
MARKDOWN_DESCRIPTION_FIELD_NUMBER: builtins.int
37803789
item_id: builtins.str
37813790
type: app.packages.v1.packages_pb2.PackageType.ValueType
37823791
description: builtins.str
37833792
visibility: global___Visibility.ValueType
37843793
url: builtins.str
3794+
markdown_description: builtins.str
37853795

37863796
@property
37873797
def update_module_metadata(self) -> global___UpdateModuleMetadata:
@@ -3795,13 +3805,17 @@ class UpdateRegistryItemRequest(google.protobuf.message.Message):
37953805
def update_ml_training_metadata(self) -> global___UpdateMLTrainingMetadata:
37963806
...
37973807

3798-
def __init__(self, *, item_id: builtins.str=..., type: app.packages.v1.packages_pb2.PackageType.ValueType=..., description: builtins.str=..., visibility: global___Visibility.ValueType=..., url: builtins.str | None=..., update_module_metadata: global___UpdateModuleMetadata | None=..., update_ml_model_metadata: global___UpdateMLModelMetadata | None=..., update_ml_training_metadata: global___UpdateMLTrainingMetadata | None=...) -> None:
3808+
def __init__(self, *, item_id: builtins.str=..., type: app.packages.v1.packages_pb2.PackageType.ValueType=..., description: builtins.str=..., visibility: global___Visibility.ValueType=..., url: builtins.str | None=..., update_module_metadata: global___UpdateModuleMetadata | None=..., update_ml_model_metadata: global___UpdateMLModelMetadata | None=..., update_ml_training_metadata: global___UpdateMLTrainingMetadata | None=..., markdown_description: builtins.str | None=...) -> None:
3809+
...
3810+
3811+
def HasField(self, field_name: typing.Literal['_markdown_description', b'_markdown_description', '_url', b'_url', 'markdown_description', b'markdown_description', 'metadata', b'metadata', 'update_ml_model_metadata', b'update_ml_model_metadata', 'update_ml_training_metadata', b'update_ml_training_metadata', 'update_module_metadata', b'update_module_metadata', 'url', b'url']) -> builtins.bool:
37993812
...
38003813

3801-
def HasField(self, field_name: typing.Literal['_url', b'_url', 'metadata', b'metadata', 'update_ml_model_metadata', b'update_ml_model_metadata', 'update_ml_training_metadata', b'update_ml_training_metadata', 'update_module_metadata', b'update_module_metadata', 'url', b'url']) -> builtins.bool:
3814+
def ClearField(self, field_name: typing.Literal['_markdown_description', b'_markdown_description', '_url', b'_url', 'description', b'description', 'item_id', b'item_id', 'markdown_description', b'markdown_description', 'metadata', b'metadata', 'type', b'type', 'update_ml_model_metadata', b'update_ml_model_metadata', 'update_ml_training_metadata', b'update_ml_training_metadata', 'update_module_metadata', b'update_module_metadata', 'url', b'url', 'visibility', b'visibility']) -> None:
38023815
...
38033816

3804-
def ClearField(self, field_name: typing.Literal['_url', b'_url', 'description', b'description', 'item_id', b'item_id', 'metadata', b'metadata', 'type', b'type', 'update_ml_model_metadata', b'update_ml_model_metadata', 'update_ml_training_metadata', b'update_ml_training_metadata', 'update_module_metadata', b'update_module_metadata', 'url', b'url', 'visibility', b'visibility']) -> None:
3817+
@typing.overload
3818+
def WhichOneof(self, oneof_group: typing.Literal['_markdown_description', b'_markdown_description']) -> typing.Literal['markdown_description'] | None:
38053819
...
38063820

38073821
@typing.overload
@@ -3992,6 +4006,7 @@ class UpdateModuleRequest(google.protobuf.message.Message):
39924006
ENTRYPOINT_FIELD_NUMBER: builtins.int
39934007
FIRST_RUN_FIELD_NUMBER: builtins.int
39944008
APPS_FIELD_NUMBER: builtins.int
4009+
MARKDOWN_DESCRIPTION_FIELD_NUMBER: builtins.int
39954010
module_id: builtins.str
39964011
"The id of the module (formatted as prefix:name where prefix is the module owner's orgid or namespace)"
39974012
visibility: global___Visibility.ValueType
@@ -4004,6 +4019,8 @@ class UpdateModuleRequest(google.protobuf.message.Message):
40044019
'The executable to run to start the module program'
40054020
first_run: builtins.str
40064021
'The path to a setup script that is run before a newly downloaded module starts.'
4022+
markdown_description: builtins.str
4023+
'longer documentation provided in markdown format'
40074024

40084025
@property
40094026
def models(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Model]:
@@ -4013,17 +4030,22 @@ class UpdateModuleRequest(google.protobuf.message.Message):
40134030
def apps(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___App]:
40144031
"""A list of applications associated with the module"""
40154032

4016-
def __init__(self, *, module_id: builtins.str=..., visibility: global___Visibility.ValueType=..., url: builtins.str=..., description: builtins.str=..., models: collections.abc.Iterable[global___Model] | None=..., entrypoint: builtins.str=..., first_run: builtins.str | None=..., apps: collections.abc.Iterable[global___App] | None=...) -> None:
4033+
def __init__(self, *, module_id: builtins.str=..., visibility: global___Visibility.ValueType=..., url: builtins.str=..., description: builtins.str=..., models: collections.abc.Iterable[global___Model] | None=..., entrypoint: builtins.str=..., first_run: builtins.str | None=..., apps: collections.abc.Iterable[global___App] | None=..., markdown_description: builtins.str | None=...) -> None:
40174034
...
40184035

4019-
def HasField(self, field_name: typing.Literal['_first_run', b'_first_run', 'first_run', b'first_run']) -> builtins.bool:
4036+
def HasField(self, field_name: typing.Literal['_first_run', b'_first_run', '_markdown_description', b'_markdown_description', 'first_run', b'first_run', 'markdown_description', b'markdown_description']) -> builtins.bool:
40204037
...
40214038

4022-
def ClearField(self, field_name: typing.Literal['_first_run', b'_first_run', 'apps', b'apps', 'description', b'description', 'entrypoint', b'entrypoint', 'first_run', b'first_run', 'models', b'models', 'module_id', b'module_id', 'url', b'url', 'visibility', b'visibility']) -> None:
4039+
def ClearField(self, field_name: typing.Literal['_first_run', b'_first_run', '_markdown_description', b'_markdown_description', 'apps', b'apps', 'description', b'description', 'entrypoint', b'entrypoint', 'first_run', b'first_run', 'markdown_description', b'markdown_description', 'models', b'models', 'module_id', b'module_id', 'url', b'url', 'visibility', b'visibility']) -> None:
40234040
...
40244041

4042+
@typing.overload
40254043
def WhichOneof(self, oneof_group: typing.Literal['_first_run', b'_first_run']) -> typing.Literal['first_run'] | None:
40264044
...
4045+
4046+
@typing.overload
4047+
def WhichOneof(self, oneof_group: typing.Literal['_markdown_description', b'_markdown_description']) -> typing.Literal['markdown_description'] | None:
4048+
...
40274049
global___UpdateModuleRequest = UpdateModuleRequest
40284050

40294051
@typing.final
@@ -4467,18 +4489,24 @@ class OrgDetails(google.protobuf.message.Message):
44674489
ORG_NAME_FIELD_NUMBER: builtins.int
44684490
ORG_CID_FIELD_NUMBER: builtins.int
44694491
PUBLIC_NAMESPACE_FIELD_NUMBER: builtins.int
4492+
BILLING_TIER_FIELD_NUMBER: builtins.int
44704493
org_id: builtins.str
44714494
org_name: builtins.str
44724495
org_cid: builtins.str
44734496
public_namespace: builtins.str
4497+
billing_tier: builtins.str
4498+
4499+
def __init__(self, *, org_id: builtins.str=..., org_name: builtins.str=..., org_cid: builtins.str | None=..., public_namespace: builtins.str | None=..., billing_tier: builtins.str | None=...) -> None:
4500+
...
44744501

4475-
def __init__(self, *, org_id: builtins.str=..., org_name: builtins.str=..., org_cid: builtins.str | None=..., public_namespace: builtins.str | None=...) -> None:
4502+
def HasField(self, field_name: typing.Literal['_billing_tier', b'_billing_tier', '_org_cid', b'_org_cid', '_public_namespace', b'_public_namespace', 'billing_tier', b'billing_tier', 'org_cid', b'org_cid', 'public_namespace', b'public_namespace']) -> builtins.bool:
44764503
...
44774504

4478-
def HasField(self, field_name: typing.Literal['_org_cid', b'_org_cid', '_public_namespace', b'_public_namespace', 'org_cid', b'org_cid', 'public_namespace', b'public_namespace']) -> builtins.bool:
4505+
def ClearField(self, field_name: typing.Literal['_billing_tier', b'_billing_tier', '_org_cid', b'_org_cid', '_public_namespace', b'_public_namespace', 'billing_tier', b'billing_tier', 'org_cid', b'org_cid', 'org_id', b'org_id', 'org_name', b'org_name', 'public_namespace', b'public_namespace']) -> None:
44794506
...
44804507

4481-
def ClearField(self, field_name: typing.Literal['_org_cid', b'_org_cid', '_public_namespace', b'_public_namespace', 'org_cid', b'org_cid', 'org_id', b'org_id', 'org_name', b'org_name', 'public_namespace', b'public_namespace']) -> None:
4508+
@typing.overload
4509+
def WhichOneof(self, oneof_group: typing.Literal['_billing_tier', b'_billing_tier']) -> typing.Literal['billing_tier'] | None:
44824510
...
44834511

44844512
@typing.overload

src/viam/gen/app/v1/billing_grpc.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,16 @@ async def GetInvoicePdf(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.
3030
async def SendPaymentRequiredEmail(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.SendPaymentRequiredEmailRequest, app.v1.billing_pb2.SendPaymentRequiredEmailResponse]') -> None:
3131
pass
3232

33+
@abc.abstractmethod
34+
async def GetAvailableBillingTiers(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.GetAvailableBillingTiersRequest, app.v1.billing_pb2.GetAvailableBillingTiersResponse]') -> None:
35+
pass
36+
37+
@abc.abstractmethod
38+
async def UpdateOrganizationBillingTier(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.UpdateOrganizationBillingTierRequest, app.v1.billing_pb2.UpdateOrganizationBillingTierResponse]') -> None:
39+
pass
40+
3341
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
34-
return {'/viam.app.v1.BillingService/GetCurrentMonthUsage': grpclib.const.Handler(self.GetCurrentMonthUsage, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetCurrentMonthUsageRequest, app.v1.billing_pb2.GetCurrentMonthUsageResponse), '/viam.app.v1.BillingService/GetOrgBillingInformation': grpclib.const.Handler(self.GetOrgBillingInformation, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetOrgBillingInformationRequest, app.v1.billing_pb2.GetOrgBillingInformationResponse), '/viam.app.v1.BillingService/GetInvoicesSummary': grpclib.const.Handler(self.GetInvoicesSummary, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetInvoicesSummaryRequest, app.v1.billing_pb2.GetInvoicesSummaryResponse), '/viam.app.v1.BillingService/GetInvoicePdf': grpclib.const.Handler(self.GetInvoicePdf, grpclib.const.Cardinality.UNARY_STREAM, app.v1.billing_pb2.GetInvoicePdfRequest, app.v1.billing_pb2.GetInvoicePdfResponse), '/viam.app.v1.BillingService/SendPaymentRequiredEmail': grpclib.const.Handler(self.SendPaymentRequiredEmail, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.SendPaymentRequiredEmailRequest, app.v1.billing_pb2.SendPaymentRequiredEmailResponse)}
42+
return {'/viam.app.v1.BillingService/GetCurrentMonthUsage': grpclib.const.Handler(self.GetCurrentMonthUsage, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetCurrentMonthUsageRequest, app.v1.billing_pb2.GetCurrentMonthUsageResponse), '/viam.app.v1.BillingService/GetOrgBillingInformation': grpclib.const.Handler(self.GetOrgBillingInformation, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetOrgBillingInformationRequest, app.v1.billing_pb2.GetOrgBillingInformationResponse), '/viam.app.v1.BillingService/GetInvoicesSummary': grpclib.const.Handler(self.GetInvoicesSummary, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetInvoicesSummaryRequest, app.v1.billing_pb2.GetInvoicesSummaryResponse), '/viam.app.v1.BillingService/GetInvoicePdf': grpclib.const.Handler(self.GetInvoicePdf, grpclib.const.Cardinality.UNARY_STREAM, app.v1.billing_pb2.GetInvoicePdfRequest, app.v1.billing_pb2.GetInvoicePdfResponse), '/viam.app.v1.BillingService/SendPaymentRequiredEmail': grpclib.const.Handler(self.SendPaymentRequiredEmail, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.SendPaymentRequiredEmailRequest, app.v1.billing_pb2.SendPaymentRequiredEmailResponse), '/viam.app.v1.BillingService/GetAvailableBillingTiers': grpclib.const.Handler(self.GetAvailableBillingTiers, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.GetAvailableBillingTiersRequest, app.v1.billing_pb2.GetAvailableBillingTiersResponse), '/viam.app.v1.BillingService/UpdateOrganizationBillingTier': grpclib.const.Handler(self.UpdateOrganizationBillingTier, grpclib.const.Cardinality.UNARY_UNARY, app.v1.billing_pb2.UpdateOrganizationBillingTierRequest, app.v1.billing_pb2.UpdateOrganizationBillingTierResponse)}
3543

3644
class UnimplementedBillingServiceBase(BillingServiceBase):
3745

@@ -50,11 +58,19 @@ async def GetInvoicePdf(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.
5058
async def SendPaymentRequiredEmail(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.SendPaymentRequiredEmailRequest, app.v1.billing_pb2.SendPaymentRequiredEmailResponse]') -> None:
5159
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
5260

61+
async def GetAvailableBillingTiers(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.GetAvailableBillingTiersRequest, app.v1.billing_pb2.GetAvailableBillingTiersResponse]') -> None:
62+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
63+
64+
async def UpdateOrganizationBillingTier(self, stream: 'grpclib.server.Stream[app.v1.billing_pb2.UpdateOrganizationBillingTierRequest, app.v1.billing_pb2.UpdateOrganizationBillingTierResponse]') -> None:
65+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
66+
5367
class BillingServiceStub:
5468

5569
def __init__(self, channel: grpclib.client.Channel) -> None:
5670
self.GetCurrentMonthUsage = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.BillingService/GetCurrentMonthUsage', app.v1.billing_pb2.GetCurrentMonthUsageRequest, app.v1.billing_pb2.GetCurrentMonthUsageResponse)
5771
self.GetOrgBillingInformation = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.BillingService/GetOrgBillingInformation', app.v1.billing_pb2.GetOrgBillingInformationRequest, app.v1.billing_pb2.GetOrgBillingInformationResponse)
5872
self.GetInvoicesSummary = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.BillingService/GetInvoicesSummary', app.v1.billing_pb2.GetInvoicesSummaryRequest, app.v1.billing_pb2.GetInvoicesSummaryResponse)
5973
self.GetInvoicePdf = grpclib.client.UnaryStreamMethod(channel, '/viam.app.v1.BillingService/GetInvoicePdf', app.v1.billing_pb2.GetInvoicePdfRequest, app.v1.billing_pb2.GetInvoicePdfResponse)
60-
self.SendPaymentRequiredEmail = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.BillingService/SendPaymentRequiredEmail', app.v1.billing_pb2.SendPaymentRequiredEmailRequest, app.v1.billing_pb2.SendPaymentRequiredEmailResponse)
74+
self.SendPaymentRequiredEmail = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.BillingService/SendPaymentRequiredEmail', app.v1.billing_pb2.SendPaymentRequiredEmailRequest, app.v1.billing_pb2.SendPaymentRequiredEmailResponse)
75+
self.GetAvailableBillingTiers = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.BillingService/GetAvailableBillingTiers', app.v1.billing_pb2.GetAvailableBillingTiersRequest, app.v1.billing_pb2.GetAvailableBillingTiersResponse)
76+
self.UpdateOrganizationBillingTier = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.BillingService/UpdateOrganizationBillingTier', app.v1.billing_pb2.UpdateOrganizationBillingTierRequest, app.v1.billing_pb2.UpdateOrganizationBillingTierResponse)

0 commit comments

Comments
 (0)