Skip to content

Commit

Permalink
more updatesw
Browse files Browse the repository at this point in the history
  • Loading branch information
anekkanti committed Oct 7, 2024
1 parent 71b5ab4 commit 912183b
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 22 deletions.
28 changes: 21 additions & 7 deletions temporal/api/cloud/identity/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ message AccountAccess {
// developer - gives access to create namespaces on the account
// financeadmin - gives read only access and write access for billing
// read - gives read only access to the account
// Deprecated: Use role field instead.
// Deprecated: Not supported after 2024-10-01-00 api version. Use role instead.
// temporal:versioning:max_version=2024-10-01-00
string role_deprecated = 1 [deprecated = true];
// The role on the account.
// temporal:versioning:min_version=2024-10-01-00
// temporal:enums:replaces=role_deprecated
Role role = 2;

Expand All @@ -40,10 +42,12 @@ message NamespaceAccess {
// admin - gives full access to the namespace, including assigning namespace access to other users
// write - gives write access to the namespace configuration and workflows within the namespace
// read - gives read only access to the namespace configuration and workflows within the namespace
// Deprecated: Use permission field instead.
// Deprecated: Not supported after 2024-10-01-00 api version. Use permission instead.
// temporal:versioning:max_version=2024-10-01-00
string permission_deprecated = 1 [deprecated = true];

// The permission to the namespace.
// temporal:versioning:min_version=2024-10-01-00
// temporal:enums:replaces=permission_deprecated
Permission permission = 2;

Expand Down Expand Up @@ -92,10 +96,12 @@ message User {
// The user specification
UserSpec spec = 3;
// The current state of the user
// Deprecated: Use state field instead.
// Deprecated: Not supported after 2024-10-01-00 api version. Use state instead.
// temporal:versioning:max_version=2024-10-01-00
string state_deprecated = 4 [deprecated = true];
// The current state of the user.
// For any failed state, reach out to Temporal Cloud support for remediation.
// temporal:versioning:min_version=2024-10-01-00
// temporal:enums:replaces=state_deprecated
temporal.api.cloud.resource.v1.ResourceState state = 9;
// The id of the async operation that is creating/updating/deleting the user, if any
Expand Down Expand Up @@ -134,10 +140,12 @@ message UserGroup {
// The group specification
UserGroupSpec spec = 3;
// The current state of the group.
// Deprecated: Use state field instead.
// Deprecated: Not supported after 2024-10-01-00 api version. Use state instead.
// temporal:versioning:max_version=2024-10-01-00
string state_deprecated = 4 [deprecated = true];
// The current state of the group.
// For any failed state, reach out to Temporal Cloud support for remediation.
// temporal:versioning:min_version=2024-10-01-00
// temporal:enums:replaces=state_deprecated
temporal.api.cloud.resource.v1.ResourceState state = 8;
// The id of the async operation that is creating/updating/deleting the group, if any
Expand All @@ -160,10 +168,12 @@ message ServiceAccount {
// The current state of the service account.
// Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended.
// For any failed state, reach out to Temporal Cloud support for remediation.
// Deprecated: Use state field instead.
// Deprecated: Not supported after 2024-10-01-00 api version. Use state instead.
// temporal:versioning:max_version=2024-10-01-00
string state_deprecated = 4 [deprecated = true];
// The current state of the service account.
// For any failed state, reach out to Temporal Cloud support for remediation.
// temporal:versioning:min_version=2024-10-01-00
// temporal:enums:replaces=state_deprecated
temporal.api.cloud.resource.v1.ResourceState state = 8;
// The id of the async operation that is creating/updating/deleting the service account, if any.
Expand Down Expand Up @@ -199,9 +209,11 @@ message ApiKey {
// The current state of the API key.
// Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended.
// For any failed state, reach out to Temporal Cloud support for remediation.
// Deprecated: Use state field instead.
// Deprecated: Not supported after 2024-10-01-00 api version. Use state instead.
// temporal:versioning:max_version=2024-10-01-00
string state_deprecated = 4 [deprecated = true];
// The current state of the API key.
// temporal:versioning:min_version=2024-10-01-00
// temporal:enums:replaces=state_deprecated
temporal.api.cloud.resource.v1.ResourceState state = 8;
// The id of the async operation that is creating/updating/deleting the API key, if any.
Expand All @@ -222,9 +234,11 @@ message ApiKeySpec {
// The type of the owner to create the API key for.
// The owner type is immutable. Once set during creation, it cannot be changed.
// Possible values: user, service-account.
// Deprecated: Use owner_type field instead.
// Deprecated: Not supported after 2024-10-01-00 api version. Use owner_type instead.
// temporal:versioning:max_version=2024-10-01-00
string owner_type_deprecated = 2 [deprecated = true];
// The type of the owner to create the API key for.
// temporal:versioning:min_version=2024-10-01-00
// temporal:enums:replaces=owner_type_deprecated
OwnerType owner_type = 7;
// The display name of the API key.
Expand Down
16 changes: 12 additions & 4 deletions temporal/api/cloud/namespace/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ message MtlsAuthSpec {
// This must only be one value, but the CA can have a chain.
//
// (-- api-linter: core::0140::base64=disabled --)
// Deprecated: Use accepted_client_ca instead. Will be ignored when accepted_client_ca is set.
// Deprecated: Not supported after 2024-05-13-00 api version. Use accepted_client_ca instead.
// temporal:versioning:max_version=2024-05-13-00
string accepted_client_ca_deprecated = 1;
// The ca cert(s) in PEM format that the clients can use for authentication and authorization.
// This must only be one value, but the CA can have a chain.
// temporal:versioning:min_version=2024-05-13-00
bytes accepted_client_ca = 4;
// Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.
// This allows limiting access to specific end-entity certificates.
Expand Down Expand Up @@ -92,12 +94,14 @@ message NamespaceSpec {
// Supported attribute types: text, keyword, int, double, bool, datetime, keyword_list.
// NOTE: currently deleting a search attribute is not supported.
// Optional, default is empty.
// Deprecated: Use search_attributes instead.
// Deprecated: Not supported after 2024-10-01-00 api version. Use search_attributes instead.
// temporal:versioning:max_version=2024-10-01-00
map<string, string> custom_search_attributes = 5 [deprecated = true];
// The custom search attributes to use for the namespace.
// The name of the attribute is the key and the type is the value.
// Note: currently deleting a search attribute is not supported.
// Optional, default is empty.
// temporal:versioning:min_version=2024-10-01-00
// temporal:enums:replaces=custom_search_attributes
map<string, SearchAttributeType> search_attributes = 8;
// Codec server spec used by UI to decode payloads for all users interacting with this namespace.
Expand Down Expand Up @@ -156,10 +160,12 @@ message Namespace {
// The namespace specification.
NamespaceSpec spec = 3;
// The current state of the namespace.
// Deprecated: Use state instead.
// Deprecated: Not supported after 2024-10-01-00 api version. Use state instead.
// temporal:versioning:max_version=2024-10-01-00
string state_deprecated = 4 [deprecated = true];
// The current state of the namespace.
// For any failed state, reach out to Temporal Cloud support for remediation.
// temporal:versioning:min_version=2024-10-01-00
// temporal:enums:replaces=state_deprecated
temporal.api.cloud.resource.v1.ResourceState state = 13;
// The id of the async operation that is creating/updating/deleting the namespace, if any.
Expand All @@ -186,9 +192,11 @@ message NamespaceRegionStatus {
// The current state of the namespace region.
// Possible values: adding, active, passive, removing, failed.
// For any failed state, reach out to Temporal Cloud support for remediation.
// Deprecated: Use state instead.
// Deprecated: Not supported after 2024-10-01-00 api version. Use state instead.
// temporal:versioning:max_version=2024-10-01-00
string state_deprecated = 1 [deprecated = true];
// The current state of the namespace region.
// temporal:versioning:min_version=2024-10-01-00
// temporal:enums:replaces=state_deprecated
State state = 3;
// The id of the async operation that is making changes to where the namespace is available, if any.
Expand Down
22 changes: 12 additions & 10 deletions temporal/api/cloud/operation/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,30 @@ import "google/protobuf/timestamp.proto";
import "google/protobuf/any.proto";

message AsyncOperation {
// The operation id
// The operation id.
string id = 1;
// The current state of this operation
// Possible values are: pending, in_progress, failed, cancelled, fulfilled
// Deprecated: Use the state field instead.
// The current state of this operation.
// Possible values are: pending, in_progress, failed, cancelled, fulfilled.
// Deprecated: Not supported after 2024-10-01-00 api version. Use state instead.
// temporal:versioning:max_version=2024-10-01-00
string state_deprecated = 2 [deprecated = true];
// The current state of this operation.
// temporal:versioning:min_version=2024-10-01-00
// temporal:enums:replaces=state_deprecated
State state = 9;
// The recommended duration to check back for an update in the operation's state
// The recommended duration to check back for an update in the operation's state.
google.protobuf.Duration check_duration = 3;
// The type of operation being performed
// The type of operation being performed.
string operation_type = 4;
// The input to the operation being performed
// The input to the operation being performed.
//
// (-- api-linter: core::0146::any=disabled --)
google.protobuf.Any operation_input = 5;
// If the operation failed, the reason for the failure
// If the operation failed, the reason for the failure.
string failure_reason = 6;
// The date and time when the operation initiated
// The date and time when the operation initiated.
google.protobuf.Timestamp started_time = 7;
// The date and time when the operation completed
// The date and time when the operation completed.
google.protobuf.Timestamp finished_time = 8;

enum State {
Expand Down
4 changes: 3 additions & 1 deletion temporal/api/cloud/region/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ message Region {
string id = 1;
// The name of the cloud provider that's hosting the region.
// Currently only "aws" is supported.
// Deprecated: Use cloud_provider instead.
// Deprecated: Not supported after 2024-10-01-00 api version. Use cloud_provider instead.
// temporal:versioning:max_version=2024-10-01-00
string cloud_provider_deprecated = 2 [deprecated = true];
// The cloud provider that's hosting the region.
// temporal:versioning:min_version=2024-10-01-00
// temporal:enums:replaces=cloud_provider_deprecated
CloudProvider cloud_provider = 5;
// The region identifier as defined by the cloud provider.
Expand Down

0 comments on commit 912183b

Please sign in to comment.