-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtenant_user_account_service.proto
58 lines (41 loc) · 1.71 KB
/
tenant_user_account_service.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
syntax = "proto3";
package nebius.iam.v1;
import "nebius/annotations.proto";
import "nebius/common/v1/operation.proto";
import "nebius/iam/v1/tenant_user_account.proto";
option go_package = "github.com/nebius/gosdk/proto/nebius/iam/v1";
option java_multiple_files = true;
option java_outer_classname = "TenantUserAccountServiceProto";
option java_package = "ai.nebius.pub.iam.v1";
service TenantUserAccountService {
option (api_service_name) = "cpl.iam";
rpc Get(GetTenantUserAccountRequest) returns (TenantUserAccount);
rpc List(ListTenantUserAccountsRequest) returns (ListTenantUserAccountsResponse);
rpc Block(BlockTenantUserAccountRequest) returns (common.v1.Operation);
rpc Unblock(UnblockTenantUserAccountRequest) returns (common.v1.Operation);
}
message GetTenantUserAccountRequest {
string id = 1; // tenant user account id like 'tenantuseraccount-{region}someuniquesuffix'
}
message ListTenantUserAccountsRequest {
// Represents the tenant ID like 'tenant-someuniqueprefix'
string parent_id = 1;
// Specifies the maximum number of items to return in the response.
// Default value: 10
optional int64 page_size = 2;
// Token for pagination, allowing the retrieval of the next set of results.
string page_token = 3;
string filter = 4 [(sensitive) = true];
}
message ListTenantUserAccountsResponse {
// List of service accounts returned in the response. The field should be named as `items` for consistency.
repeated TenantUserAccount items = 1;
// Token for pagination, indicating the next set of results can be retrieved using this token.
string next_page_token = 2;
}
message BlockTenantUserAccountRequest {
string id = 1;
}
message UnblockTenantUserAccountRequest {
string id = 1;
}