Skip to content

Commit e350740

Browse files
committed
chore: auto-gen by protobufs
triggered by commit: instill-ai/protobufs@d03cfdf
1 parent 528aec5 commit e350740

File tree

6 files changed

+253
-77
lines changed

6 files changed

+253
-77
lines changed

core/mgmt/v1beta/metric_pb2.pyi

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ class PipelineTriggerChartRecord(google.protobuf.message.Message):
218218
"""PipelineTriggerChartRecord represents a timeline of pipeline triggers. It
219219
contains a collection of (timestamp, count) pairs that represent the total
220220
pipeline triggers in a given time bucket.
221-
pipeline ID and time frame.
222221
"""
223222

224223
DESCRIPTOR: google.protobuf.descriptor.Descriptor
@@ -228,7 +227,7 @@ class PipelineTriggerChartRecord(google.protobuf.message.Message):
228227
TRIGGER_COUNTS_FIELD_NUMBER: builtins.int
229228
REQUESTER_ID_FIELD_NUMBER: builtins.int
230229
pipeline_id: builtins.str
231-
"""This field will be present present when the information is grouped by pipeline."""
230+
"""This field will be present when the information is grouped by pipeline."""
232231
@property
233232
def time_buckets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.timestamp_pb2.Timestamp]:
234233
"""Time buckets."""
@@ -339,7 +338,7 @@ class ModelTriggerChartRecord(google.protobuf.message.Message):
339338
TRIGGER_COUNTS_FIELD_NUMBER: builtins.int
340339
REQUESTER_ID_FIELD_NUMBER: builtins.int
341340
model_id: builtins.str
342-
"""This field will be present present when the information is grouped by model."""
341+
"""This field will be present when the information is grouped by model."""
343342
@property
344343
def time_buckets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.timestamp_pb2.Timestamp]:
345344
"""Time buckets."""
@@ -824,8 +823,8 @@ class ListPipelineTriggerRecordsRequest(google.protobuf.message.Message):
824823
FILTER_FIELD_NUMBER: builtins.int
825824
page_size: builtins.int
826825
"""The maximum number of triggers to return. If this parameter is unspecified,
827-
at most 100 pipelines will be returned. The cap value for this parameter is
828-
1000 (i.e. any value above that will be coerced to 100).
826+
at most 100 triggers will be returned. The cap value for this parameter is
827+
1000 (i.e. any value above that will be coerced to 1000).
829828
"""
830829
page_token: builtins.str
831830
"""Page token."""

core/mgmt/v1beta/mgmt_pb2.py

Lines changed: 55 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/mgmt/v1beta/mgmt_pb2.pyi

Lines changed: 100 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ global___ListOrganizationsAdminResponse = ListOrganizationsAdminResponse
773773

774774
@typing_extensions.final
775775
class GetOrganizationAdminRequest(google.protobuf.message.Message):
776-
"""GetOrganizationAdminRequest represents a request to query a organization by admin"""
776+
"""GetOrganizationAdminRequest represents a request to query an organization by admin"""
777777

778778
DESCRIPTOR: google.protobuf.descriptor.Descriptor
779779

@@ -797,14 +797,14 @@ global___GetOrganizationAdminRequest = GetOrganizationAdminRequest
797797

798798
@typing_extensions.final
799799
class GetOrganizationAdminResponse(google.protobuf.message.Message):
800-
"""GetOrganizationAdminResponse represents a response for a organization resource"""
800+
"""GetOrganizationAdminResponse represents a response for an organization resource"""
801801

802802
DESCRIPTOR: google.protobuf.descriptor.Descriptor
803803

804804
ORGANIZATION_FIELD_NUMBER: builtins.int
805805
@property
806806
def organization(self) -> global___Organization:
807-
"""A organization resource"""
807+
"""An organization resource"""
808808
def __init__(
809809
self,
810810
*,
@@ -817,7 +817,7 @@ global___GetOrganizationAdminResponse = GetOrganizationAdminResponse
817817

818818
@typing_extensions.final
819819
class LookUpOrganizationAdminRequest(google.protobuf.message.Message):
820-
"""LookUpOrganizationAdminRequest represents a request to query a organization via permalink by
820+
"""LookUpOrganizationAdminRequest represents a request to query an organization via permalink by
821821
admin
822822
"""
823823

@@ -843,14 +843,14 @@ global___LookUpOrganizationAdminRequest = LookUpOrganizationAdminRequest
843843

844844
@typing_extensions.final
845845
class LookUpOrganizationAdminResponse(google.protobuf.message.Message):
846-
"""LookUpOrganizationAdminResponse represents a response for a organization resource by admin"""
846+
"""LookUpOrganizationAdminResponse represents a response for an organization resource by admin"""
847847

848848
DESCRIPTOR: google.protobuf.descriptor.Descriptor
849849

850850
ORGANIZATION_FIELD_NUMBER: builtins.int
851851
@property
852852
def organization(self) -> global___Organization:
853-
"""A organization resource"""
853+
"""An organization resource"""
854854
def __init__(
855855
self,
856856
*,
@@ -2701,7 +2701,7 @@ global___DeleteOrganizationMembershipResponse = DeleteOrganizationMembershipResp
27012701

27022702
@typing_extensions.final
27032703
class StripeSubscriptionDetail(google.protobuf.message.Message):
2704-
"""StripeSubscriptionDetail ontains the details of a subscription in Stripe."""
2704+
"""StripeSubscriptionDetail contains the details of a subscription in Stripe."""
27052705

27062706
DESCRIPTOR: google.protobuf.descriptor.Descriptor
27072707

@@ -2784,6 +2784,7 @@ class StripeSubscriptionDetail(google.protobuf.message.Message):
27842784
TRIAL_END_FIELD_NUMBER: builtins.int
27852785
STATUS_FIELD_NUMBER: builtins.int
27862786
DESCRIPTION_FIELD_NUMBER: builtins.int
2787+
CURRENT_PERIOD_END_FIELD_NUMBER: builtins.int
27872788
product_name: builtins.str
27882789
"""Product name associated with the subscription in Stripe."""
27892790
id: builtins.str
@@ -2800,6 +2801,8 @@ class StripeSubscriptionDetail(google.protobuf.message.Message):
28002801
"""Status of the subscription."""
28012802
description: builtins.str
28022803
"""Description of the subscription."""
2804+
current_period_end: builtins.int
2805+
"""Timestamp indicating when the end of the current subscription period."""
28032806
def __init__(
28042807
self,
28052808
*,
@@ -2811,9 +2814,10 @@ class StripeSubscriptionDetail(google.protobuf.message.Message):
28112814
trial_end: builtins.int | None = ...,
28122815
status: global___StripeSubscriptionDetail.Status.ValueType = ...,
28132816
description: builtins.str = ...,
2817+
current_period_end: builtins.int = ...,
28142818
) -> None: ...
28152819
def HasField(self, field_name: typing_extensions.Literal["_canceled_at", b"_canceled_at", "_trial_end", b"_trial_end", "canceled_at", b"canceled_at", "trial_end", b"trial_end"]) -> builtins.bool: ...
2816-
def ClearField(self, field_name: typing_extensions.Literal["_canceled_at", b"_canceled_at", "_trial_end", b"_trial_end", "canceled_at", b"canceled_at", "description", b"description", "id", b"id", "item_id", b"item_id", "price", b"price", "product_name", b"product_name", "status", b"status", "trial_end", b"trial_end"]) -> None: ...
2820+
def ClearField(self, field_name: typing_extensions.Literal["_canceled_at", b"_canceled_at", "_trial_end", b"_trial_end", "canceled_at", b"canceled_at", "current_period_end", b"current_period_end", "description", b"description", "id", b"id", "item_id", b"item_id", "price", b"price", "product_name", b"product_name", "status", b"status", "trial_end", b"trial_end"]) -> None: ...
28172821
@typing.overload
28182822
def WhichOneof(self, oneof_group: typing_extensions.Literal["_canceled_at", b"_canceled_at"]) -> typing_extensions.Literal["canceled_at"] | None: ...
28192823
@typing.overload
@@ -2841,7 +2845,7 @@ class UserSubscription(google.protobuf.message.Message):
28412845
"""
28422846
PLAN_STARTER: UserSubscription._Plan.ValueType # 3
28432847
"""The starter plan is an individual plan for developers and early-stage
2844-
projects. This plan offers a free trial period that deoesn't require the
2848+
projects. This plan offers a free trial period that doesn't require the
28452849
customer to have a default payment method. After the free trial period
28462850
is over, the subscription state will transition from trialing to paused.
28472851
"""
@@ -2855,7 +2859,7 @@ class UserSubscription(google.protobuf.message.Message):
28552859
"""
28562860
PLAN_STARTER: UserSubscription.Plan.ValueType # 3
28572861
"""The starter plan is an individual plan for developers and early-stage
2858-
projects. This plan offers a free trial period that deoesn't require the
2862+
projects. This plan offers a free trial period that doesn't require the
28592863
customer to have a default payment method. After the free trial period
28602864
is over, the subscription state will transition from trialing to paused.
28612865
"""
@@ -2922,22 +2926,26 @@ class OrganizationSubscription(google.protobuf.message.Message):
29222926
PLAN_FIELD_NUMBER: builtins.int
29232927
DETAIL_FIELD_NUMBER: builtins.int
29242928
USED_SEATS_FIELD_NUMBER: builtins.int
2929+
AVAILABLE_SEATS_FIELD_NUMBER: builtins.int
29252930
plan: global___OrganizationSubscription.Plan.ValueType
29262931
"""Plan identifier."""
29272932
@property
29282933
def detail(self) -> global___StripeSubscriptionDetail:
29292934
"""Details of the associated Stripe subscription."""
29302935
used_seats: builtins.int
29312936
"""Number of used seats within the organization subscription."""
2937+
available_seats: builtins.int
2938+
"""Number of available seats within the organization subscription."""
29322939
def __init__(
29332940
self,
29342941
*,
29352942
plan: global___OrganizationSubscription.Plan.ValueType = ...,
29362943
detail: global___StripeSubscriptionDetail | None = ...,
29372944
used_seats: builtins.int = ...,
2945+
available_seats: builtins.int = ...,
29382946
) -> None: ...
29392947
def HasField(self, field_name: typing_extensions.Literal["detail", b"detail"]) -> builtins.bool: ...
2940-
def ClearField(self, field_name: typing_extensions.Literal["detail", b"detail", "plan", b"plan", "used_seats", b"used_seats"]) -> None: ...
2948+
def ClearField(self, field_name: typing_extensions.Literal["available_seats", b"available_seats", "detail", b"detail", "plan", b"plan", "used_seats", b"used_seats"]) -> None: ...
29412949

29422950
global___OrganizationSubscription = OrganizationSubscription
29432951

@@ -2977,6 +2985,85 @@ class GetAuthenticatedUserSubscriptionResponse(google.protobuf.message.Message):
29772985

29782986
global___GetAuthenticatedUserSubscriptionResponse = GetAuthenticatedUserSubscriptionResponse
29792987

2988+
@typing_extensions.final
2989+
class ListSubscriptionFreeTrialsRequest(google.protobuf.message.Message):
2990+
"""ListSubscriptionFreeTrialsRequest represents a query to fetch the free
2991+
trials of the authenticated user.
2992+
"""
2993+
2994+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
2995+
2996+
def __init__(
2997+
self,
2998+
) -> None: ...
2999+
3000+
global___ListSubscriptionFreeTrialsRequest = ListSubscriptionFreeTrialsRequest
3001+
3002+
@typing_extensions.final
3003+
class SubscriptionFreeTrial(google.protobuf.message.Message):
3004+
"""SubscriptionFreeTrial represents a free trial for either a user or
3005+
organization subscription
3006+
"""
3007+
3008+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
3009+
3010+
USER_PLAN_FIELD_NUMBER: builtins.int
3011+
ORGANIZATION_PLAN_FIELD_NUMBER: builtins.int
3012+
OWNER_UID_FIELD_NUMBER: builtins.int
3013+
ORGANIZATION_UID_FIELD_NUMBER: builtins.int
3014+
TRIAL_END_FIELD_NUMBER: builtins.int
3015+
user_plan: global___UserSubscription.Plan.ValueType
3016+
"""User subscription details"""
3017+
organization_plan: global___OrganizationSubscription.Plan.ValueType
3018+
"""Organization subscription details"""
3019+
owner_uid: builtins.str
3020+
"""The owner's unique identifier. This is the user (customer) that ordered
3021+
the subscription.
3022+
"""
3023+
organization_uid: builtins.str
3024+
"""If the subscription is a team plan, the value of this field will be set to
3025+
the organization UID that the subscription is linked to.
3026+
"""
3027+
@property
3028+
def trial_end(self) -> google.protobuf.timestamp_pb2.Timestamp:
3029+
"""When the trial ends."""
3030+
def __init__(
3031+
self,
3032+
*,
3033+
user_plan: global___UserSubscription.Plan.ValueType = ...,
3034+
organization_plan: global___OrganizationSubscription.Plan.ValueType = ...,
3035+
owner_uid: builtins.str = ...,
3036+
organization_uid: builtins.str | None = ...,
3037+
trial_end: google.protobuf.timestamp_pb2.Timestamp | None = ...,
3038+
) -> None: ...
3039+
def HasField(self, field_name: typing_extensions.Literal["_organization_uid", b"_organization_uid", "organization_plan", b"organization_plan", "organization_uid", b"organization_uid", "plan", b"plan", "trial_end", b"trial_end", "user_plan", b"user_plan"]) -> builtins.bool: ...
3040+
def ClearField(self, field_name: typing_extensions.Literal["_organization_uid", b"_organization_uid", "organization_plan", b"organization_plan", "organization_uid", b"organization_uid", "owner_uid", b"owner_uid", "plan", b"plan", "trial_end", b"trial_end", "user_plan", b"user_plan"]) -> None: ...
3041+
@typing.overload
3042+
def WhichOneof(self, oneof_group: typing_extensions.Literal["_organization_uid", b"_organization_uid"]) -> typing_extensions.Literal["organization_uid"] | None: ...
3043+
@typing.overload
3044+
def WhichOneof(self, oneof_group: typing_extensions.Literal["plan", b"plan"]) -> typing_extensions.Literal["user_plan", "organization_plan"] | None: ...
3045+
3046+
global___SubscriptionFreeTrial = SubscriptionFreeTrial
3047+
3048+
@typing_extensions.final
3049+
class ListSubscriptionFreeTrialsResponse(google.protobuf.message.Message):
3050+
"""ListSubscriptionFreeTrialsResponse contains the requested free trials."""
3051+
3052+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
3053+
3054+
FREE_TRIALS_FIELD_NUMBER: builtins.int
3055+
@property
3056+
def free_trials(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SubscriptionFreeTrial]:
3057+
"""A list of subscription free trials."""
3058+
def __init__(
3059+
self,
3060+
*,
3061+
free_trials: collections.abc.Iterable[global___SubscriptionFreeTrial] | None = ...,
3062+
) -> None: ...
3063+
def ClearField(self, field_name: typing_extensions.Literal["free_trials", b"free_trials"]) -> None: ...
3064+
3065+
global___ListSubscriptionFreeTrialsResponse = ListSubscriptionFreeTrialsResponse
3066+
29803067
@typing_extensions.final
29813068
class GetOrganizationSubscriptionRequest(google.protobuf.message.Message):
29823069
"""GetOrganizationSubscriptionRequest represents a query to fetch the
@@ -2987,7 +3074,7 @@ class GetOrganizationSubscriptionRequest(google.protobuf.message.Message):
29873074

29883075
ORGANIZATION_ID_FIELD_NUMBER: builtins.int
29893076
organization_id: builtins.str
2990-
"""Oragnization ID"""
3077+
"""Organization ID"""
29913078
def __init__(
29923079
self,
29933080
*,
@@ -3067,7 +3154,7 @@ class GetOrganizationSubscriptionAdminRequest(google.protobuf.message.Message):
30673154

30683155
ORGANIZATION_ID_FIELD_NUMBER: builtins.int
30693156
organization_id: builtins.str
3070-
"""Oragnization ID"""
3157+
"""Organization ID"""
30713158
def __init__(
30723159
self,
30733160
*,

0 commit comments

Comments
 (0)