Skip to content

Commit 40481e6

Browse files
authored
Update Core (#1564)
1 parent 9000725 commit 40481e6

34 files changed

Lines changed: 3848 additions & 1455 deletions

scripts/gen_protos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
base_dir = Path(__file__).parent.parent
1212
proto_dir = (
13-
base_dir / "temporalio" / "bridge" / "sdk-core" / "crates" / "common" / "protos"
13+
base_dir / "temporalio" / "bridge" / "sdk-core" / "crates" / "protos" / "protos"
1414
)
1515
api_proto_dir = proto_dir / "api_upstream"
1616
api_cloud_proto_dir = proto_dir / "api_cloud_upstream"

temporalio/api/cloud/billing/v1/message_pb2.py

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

temporalio/api/cloud/billing/v1/message_pb2.pyi

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,51 @@ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
2525
class BillingReportSpec(google.protobuf.message.Message):
2626
DESCRIPTOR: google.protobuf.descriptor.Descriptor
2727

28+
class _BillingReportGranularity:
29+
ValueType = typing.NewType("ValueType", builtins.int)
30+
V: typing_extensions.TypeAlias = ValueType
31+
32+
class _BillingReportGranularityEnumTypeWrapper(
33+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[
34+
BillingReportSpec._BillingReportGranularity.ValueType
35+
],
36+
builtins.type,
37+
): # noqa: F821
38+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
39+
BILLING_REPORT_GRANULARITY_UNSPECIFIED: (
40+
BillingReportSpec._BillingReportGranularity.ValueType
41+
) # 0
42+
BILLING_REPORT_GRANULARITY_HOURLY: (
43+
BillingReportSpec._BillingReportGranularity.ValueType
44+
) # 1
45+
BILLING_REPORT_GRANULARITY_DAILY: (
46+
BillingReportSpec._BillingReportGranularity.ValueType
47+
) # 2
48+
BILLING_REPORT_GRANULARITY_MONTHLY: (
49+
BillingReportSpec._BillingReportGranularity.ValueType
50+
) # 3
51+
52+
class BillingReportGranularity(
53+
_BillingReportGranularity, metaclass=_BillingReportGranularityEnumTypeWrapper
54+
): ...
55+
BILLING_REPORT_GRANULARITY_UNSPECIFIED: (
56+
BillingReportSpec.BillingReportGranularity.ValueType
57+
) # 0
58+
BILLING_REPORT_GRANULARITY_HOURLY: (
59+
BillingReportSpec.BillingReportGranularity.ValueType
60+
) # 1
61+
BILLING_REPORT_GRANULARITY_DAILY: (
62+
BillingReportSpec.BillingReportGranularity.ValueType
63+
) # 2
64+
BILLING_REPORT_GRANULARITY_MONTHLY: (
65+
BillingReportSpec.BillingReportGranularity.ValueType
66+
) # 3
67+
2868
START_TIME_INCLUSIVE_FIELD_NUMBER: builtins.int
2969
END_TIME_EXCLUSIVE_FIELD_NUMBER: builtins.int
3070
DOWNLOAD_URL_EXPIRATION_DURATION_FIELD_NUMBER: builtins.int
3171
DESCRIPTION_FIELD_NUMBER: builtins.int
72+
GRANULARITY_FIELD_NUMBER: builtins.int
3273
@property
3374
def start_time_inclusive(self) -> google.protobuf.timestamp_pb2.Timestamp:
3475
"""The start time of the billing report (in UTC)."""
@@ -44,6 +85,11 @@ class BillingReportSpec(google.protobuf.message.Message):
4485
"""The description for the billing report.
4586
Optional, default is empty.
4687
"""
88+
granularity: global___BillingReportSpec.BillingReportGranularity.ValueType
89+
"""The data granularity of the billing report.
90+
Optional, default is hourly.
91+
temporal:versioning:min_version=v0.16.0
92+
"""
4793
def __init__(
4894
self,
4995
*,
@@ -52,6 +98,7 @@ class BillingReportSpec(google.protobuf.message.Message):
5298
download_url_expiration_duration: google.protobuf.duration_pb2.Duration
5399
| None = ...,
54100
description: builtins.str = ...,
101+
granularity: global___BillingReportSpec.BillingReportGranularity.ValueType = ...,
55102
) -> None: ...
56103
def HasField(
57104
self,
@@ -73,6 +120,8 @@ class BillingReportSpec(google.protobuf.message.Message):
73120
b"download_url_expiration_duration",
74121
"end_time_exclusive",
75122
b"end_time_exclusive",
123+
"granularity",
124+
b"granularity",
76125
"start_time_inclusive",
77126
b"start_time_inclusive",
78127
],

temporalio/api/cloud/cloudservice/v1/__init__.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
CreateBillingReportResponse,
1212
CreateConnectivityRuleRequest,
1313
CreateConnectivityRuleResponse,
14+
CreateCustomRoleRequest,
15+
CreateCustomRoleResponse,
1416
CreateNamespaceExportSinkRequest,
1517
CreateNamespaceExportSinkResponse,
1618
CreateNamespaceRequest,
@@ -29,6 +31,8 @@
2931
DeleteApiKeyResponse,
3032
DeleteConnectivityRuleRequest,
3133
DeleteConnectivityRuleResponse,
34+
DeleteCustomRoleRequest,
35+
DeleteCustomRoleResponse,
3236
DeleteNamespaceExportSinkRequest,
3337
DeleteNamespaceExportSinkResponse,
3438
DeleteNamespaceRegionRequest,
@@ -67,6 +71,10 @@
6771
GetConnectivityRulesResponse,
6872
GetCurrentIdentityRequest,
6973
GetCurrentIdentityResponse,
74+
GetCustomRoleRequest,
75+
GetCustomRoleResponse,
76+
GetCustomRolesRequest,
77+
GetCustomRolesResponse,
7078
GetNamespaceCapacityInfoRequest,
7179
GetNamespaceCapacityInfoResponse,
7280
GetNamespaceExportSinkRequest,
@@ -117,6 +125,8 @@
117125
UpdateAccountResponse,
118126
UpdateApiKeyRequest,
119127
UpdateApiKeyResponse,
128+
UpdateCustomRoleRequest,
129+
UpdateCustomRoleResponse,
120130
UpdateNamespaceExportSinkRequest,
121131
UpdateNamespaceExportSinkResponse,
122132
UpdateNamespaceRequest,
@@ -150,6 +160,8 @@
150160
"CreateBillingReportResponse",
151161
"CreateConnectivityRuleRequest",
152162
"CreateConnectivityRuleResponse",
163+
"CreateCustomRoleRequest",
164+
"CreateCustomRoleResponse",
153165
"CreateNamespaceExportSinkRequest",
154166
"CreateNamespaceExportSinkResponse",
155167
"CreateNamespaceRequest",
@@ -168,6 +180,8 @@
168180
"DeleteApiKeyResponse",
169181
"DeleteConnectivityRuleRequest",
170182
"DeleteConnectivityRuleResponse",
183+
"DeleteCustomRoleRequest",
184+
"DeleteCustomRoleResponse",
171185
"DeleteNamespaceExportSinkRequest",
172186
"DeleteNamespaceExportSinkResponse",
173187
"DeleteNamespaceRegionRequest",
@@ -206,6 +220,10 @@
206220
"GetConnectivityRulesResponse",
207221
"GetCurrentIdentityRequest",
208222
"GetCurrentIdentityResponse",
223+
"GetCustomRoleRequest",
224+
"GetCustomRoleResponse",
225+
"GetCustomRolesRequest",
226+
"GetCustomRolesResponse",
209227
"GetNamespaceCapacityInfoRequest",
210228
"GetNamespaceCapacityInfoResponse",
211229
"GetNamespaceExportSinkRequest",
@@ -256,6 +274,8 @@
256274
"UpdateAccountResponse",
257275
"UpdateApiKeyRequest",
258276
"UpdateApiKeyResponse",
277+
"UpdateCustomRoleRequest",
278+
"UpdateCustomRoleResponse",
259279
"UpdateNamespaceExportSinkRequest",
260280
"UpdateNamespaceExportSinkResponse",
261281
"UpdateNamespaceRequest",

temporalio/api/cloud/cloudservice/v1/request_response_pb2.py

Lines changed: 141 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)