@@ -18,6 +18,7 @@ import "temporal/api/cloud/nexus/v1/message.proto";
1818import "temporal/api/cloud/region/v1/message.proto" ;
1919import "temporal/api/cloud/account/v1/message.proto" ;
2020import "temporal/api/cloud/usage/v1/message.proto" ;
21+ import "temporal/api/cloud/connectivityrule/v1/message.proto" ;
2122
2223message GetUsersRequest {
2324 // The requested size of the page to retrieve - optional.
@@ -129,6 +130,9 @@ message CreateNamespaceRequest {
129130 // The id to use for this async operation.
130131 // Optional, if not provided a random id will be generated.
131132 string async_operation_id = 3 ;
133+ // The tags to add to the namespace.
134+ // Note: This field can be set by global admins or account owners only.
135+ map <string , string > tags = 4 ;
132136}
133137
134138message CreateNamespaceResponse {
@@ -845,3 +849,82 @@ message ValidateNamespaceExportSinkRequest {
845849
846850message ValidateNamespaceExportSinkResponse {
847851}
852+
853+ message UpdateNamespaceTagsRequest {
854+ // The namespace to set tags for.
855+ string namespace = 1 ;
856+ // A list of tags to add or update.
857+ // If a key of an existing tag is added, the tag's value is updated.
858+ // At least one of tags_to_upsert or tags_to_remove must be specified.
859+ map <string , string > tags_to_upsert = 2 ;
860+ // A list of tag keys to remove.
861+ // If a tag key doesn't exist, it is silently ignored.
862+ // At least one of tags_to_upsert or tags_to_remove must be specified.
863+ repeated string tags_to_remove = 3 ;
864+ // The id to use for this async operation - optional.
865+ string async_operation_id = 4 ;
866+ }
867+
868+ message UpdateNamespaceTagsResponse {
869+ // The async operation.
870+ temporal.api.cloud.operation.v1.AsyncOperation async_operation = 1 ;
871+ }
872+
873+ message CreateConnectivityRuleRequest {
874+ // The connectivity rule specification.
875+ temporal.api.cloud.connectivityrule.v1.ConnectivityRuleSpec spec = 1 ;
876+ // The id to use for this async operation.
877+ // Optional, if not provided a random id will be generated.
878+ string async_operation_id = 2 ;
879+ }
880+
881+ message CreateConnectivityRuleResponse {
882+ // The id of the connectivity rule that was created.
883+ string connectivity_rule_id = 1 ;
884+ // The async operation
885+ temporal.api.cloud.operation.v1.AsyncOperation async_operation = 2 ;
886+ }
887+
888+ message GetConnectivityRuleRequest {
889+ // The id of the connectivity rule to get.
890+ string connectivity_rule_id = 1 ;
891+ }
892+
893+ message GetConnectivityRuleResponse {
894+ temporal.api.cloud.connectivityrule.v1.ConnectivityRule connectivity_rule = 1 ;
895+ }
896+
897+ message GetConnectivityRulesRequest {
898+ // The requested size of the page to retrieve.
899+ // Optional, defaults to 100.
900+ int32 page_size = 1 ;
901+ // The page token if this is continuing from another response.
902+ // Optional, defaults to empty.
903+ string page_token = 2 ;
904+ // Filter connectivity rule by the namespace id.
905+ string namespace = 3 ;
906+ }
907+
908+ message GetConnectivityRulesResponse {
909+ // connectivity_rules returned
910+ repeated temporal.api.cloud.connectivityrule.v1.ConnectivityRule connectivity_rules = 1 ;
911+ // The next page token
912+ string next_page_token = 2 ;
913+ }
914+
915+ message DeleteConnectivityRuleRequest {
916+ // The ID of the connectivity rule that need be deleted, required.
917+ string connectivity_rule_id = 1 ;
918+
919+ // The resource version which should be the same from the the db, required
920+ // The latest version can be found in the GetConnectivityRule operation response
921+ string resource_version = 2 ;
922+ // The id to use for this async operation.
923+ // Optional, if not provided a random id will be generated.
924+ string async_operation_id = 3 ;
925+ }
926+
927+ message DeleteConnectivityRuleResponse {
928+ // The async operation
929+ temporal.api.cloud.operation.v1.AsyncOperation async_operation = 1 ;
930+ }
0 commit comments