Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/gen_protos.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

base_dir = Path(__file__).parent.parent
proto_dir = (
base_dir / "temporalio" / "bridge" / "sdk-core" / "crates" / "common" / "protos"
base_dir / "temporalio" / "bridge" / "sdk-core" / "crates" / "protos" / "protos"
)
api_proto_dir = proto_dir / "api_upstream"
api_cloud_proto_dir = proto_dir / "api_cloud_upstream"
Expand Down
25 changes: 15 additions & 10 deletions temporalio/api/cloud/billing/v1/message_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 49 additions & 0 deletions temporalio/api/cloud/billing/v1/message_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,51 @@ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
class BillingReportSpec(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

class _BillingReportGranularity:
ValueType = typing.NewType("ValueType", builtins.int)
V: typing_extensions.TypeAlias = ValueType

class _BillingReportGranularityEnumTypeWrapper(
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[
BillingReportSpec._BillingReportGranularity.ValueType
],
builtins.type,
): # noqa: F821
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
BILLING_REPORT_GRANULARITY_UNSPECIFIED: (
BillingReportSpec._BillingReportGranularity.ValueType
) # 0
BILLING_REPORT_GRANULARITY_HOURLY: (
BillingReportSpec._BillingReportGranularity.ValueType
) # 1
BILLING_REPORT_GRANULARITY_DAILY: (
BillingReportSpec._BillingReportGranularity.ValueType
) # 2
BILLING_REPORT_GRANULARITY_MONTHLY: (
BillingReportSpec._BillingReportGranularity.ValueType
) # 3

class BillingReportGranularity(
_BillingReportGranularity, metaclass=_BillingReportGranularityEnumTypeWrapper
): ...
BILLING_REPORT_GRANULARITY_UNSPECIFIED: (
BillingReportSpec.BillingReportGranularity.ValueType
) # 0
BILLING_REPORT_GRANULARITY_HOURLY: (
BillingReportSpec.BillingReportGranularity.ValueType
) # 1
BILLING_REPORT_GRANULARITY_DAILY: (
BillingReportSpec.BillingReportGranularity.ValueType
) # 2
BILLING_REPORT_GRANULARITY_MONTHLY: (
BillingReportSpec.BillingReportGranularity.ValueType
) # 3

START_TIME_INCLUSIVE_FIELD_NUMBER: builtins.int
END_TIME_EXCLUSIVE_FIELD_NUMBER: builtins.int
DOWNLOAD_URL_EXPIRATION_DURATION_FIELD_NUMBER: builtins.int
DESCRIPTION_FIELD_NUMBER: builtins.int
GRANULARITY_FIELD_NUMBER: builtins.int
@property
def start_time_inclusive(self) -> google.protobuf.timestamp_pb2.Timestamp:
"""The start time of the billing report (in UTC)."""
Expand All @@ -44,6 +85,11 @@ class BillingReportSpec(google.protobuf.message.Message):
"""The description for the billing report.
Optional, default is empty.
"""
granularity: global___BillingReportSpec.BillingReportGranularity.ValueType
"""The data granularity of the billing report.
Optional, default is hourly.
temporal:versioning:min_version=v0.16.0
"""
def __init__(
self,
*,
Expand All @@ -52,6 +98,7 @@ class BillingReportSpec(google.protobuf.message.Message):
download_url_expiration_duration: google.protobuf.duration_pb2.Duration
| None = ...,
description: builtins.str = ...,
granularity: global___BillingReportSpec.BillingReportGranularity.ValueType = ...,
) -> None: ...
def HasField(
self,
Expand All @@ -73,6 +120,8 @@ class BillingReportSpec(google.protobuf.message.Message):
b"download_url_expiration_duration",
"end_time_exclusive",
b"end_time_exclusive",
"granularity",
b"granularity",
"start_time_inclusive",
b"start_time_inclusive",
],
Expand Down
20 changes: 20 additions & 0 deletions temporalio/api/cloud/cloudservice/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
CreateBillingReportResponse,
CreateConnectivityRuleRequest,
CreateConnectivityRuleResponse,
CreateCustomRoleRequest,
CreateCustomRoleResponse,
CreateNamespaceExportSinkRequest,
CreateNamespaceExportSinkResponse,
CreateNamespaceRequest,
Expand All @@ -29,6 +31,8 @@
DeleteApiKeyResponse,
DeleteConnectivityRuleRequest,
DeleteConnectivityRuleResponse,
DeleteCustomRoleRequest,
DeleteCustomRoleResponse,
DeleteNamespaceExportSinkRequest,
DeleteNamespaceExportSinkResponse,
DeleteNamespaceRegionRequest,
Expand Down Expand Up @@ -67,6 +71,10 @@
GetConnectivityRulesResponse,
GetCurrentIdentityRequest,
GetCurrentIdentityResponse,
GetCustomRoleRequest,
GetCustomRoleResponse,
GetCustomRolesRequest,
GetCustomRolesResponse,
GetNamespaceCapacityInfoRequest,
GetNamespaceCapacityInfoResponse,
GetNamespaceExportSinkRequest,
Expand Down Expand Up @@ -117,6 +125,8 @@
UpdateAccountResponse,
UpdateApiKeyRequest,
UpdateApiKeyResponse,
UpdateCustomRoleRequest,
UpdateCustomRoleResponse,
UpdateNamespaceExportSinkRequest,
UpdateNamespaceExportSinkResponse,
UpdateNamespaceRequest,
Expand Down Expand Up @@ -150,6 +160,8 @@
"CreateBillingReportResponse",
"CreateConnectivityRuleRequest",
"CreateConnectivityRuleResponse",
"CreateCustomRoleRequest",
"CreateCustomRoleResponse",
"CreateNamespaceExportSinkRequest",
"CreateNamespaceExportSinkResponse",
"CreateNamespaceRequest",
Expand All @@ -168,6 +180,8 @@
"DeleteApiKeyResponse",
"DeleteConnectivityRuleRequest",
"DeleteConnectivityRuleResponse",
"DeleteCustomRoleRequest",
"DeleteCustomRoleResponse",
"DeleteNamespaceExportSinkRequest",
"DeleteNamespaceExportSinkResponse",
"DeleteNamespaceRegionRequest",
Expand Down Expand Up @@ -206,6 +220,10 @@
"GetConnectivityRulesResponse",
"GetCurrentIdentityRequest",
"GetCurrentIdentityResponse",
"GetCustomRoleRequest",
"GetCustomRoleResponse",
"GetCustomRolesRequest",
"GetCustomRolesResponse",
"GetNamespaceCapacityInfoRequest",
"GetNamespaceCapacityInfoResponse",
"GetNamespaceExportSinkRequest",
Expand Down Expand Up @@ -256,6 +274,8 @@
"UpdateAccountResponse",
"UpdateApiKeyRequest",
"UpdateApiKeyResponse",
"UpdateCustomRoleRequest",
"UpdateCustomRoleResponse",
"UpdateNamespaceExportSinkRequest",
"UpdateNamespaceExportSinkResponse",
"UpdateNamespaceRequest",
Expand Down
142 changes: 141 additions & 1 deletion temporalio/api/cloud/cloudservice/v1/request_response_pb2.py

Large diffs are not rendered by default.

Loading
Loading