@scalekit-sdk/node 2.1.2 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -11
- package/buf.gen.yaml +1 -0
- package/lib/core.js +1 -1
- package/lib/permission.d.ts +68 -0
- package/lib/permission.js +131 -0
- package/lib/permission.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +2 -2
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +1 -1
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +16 -0
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +4 -0
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.d.ts +0 -8
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js +0 -6
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.d.ts +250 -0
- package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.js +258 -0
- package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.d.ts +1157 -0
- package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.js +1799 -0
- package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.d.ts +2 -2
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.js +1 -1
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.js.map +1 -1
- package/lib/role.d.ts +104 -0
- package/lib/role.js +205 -0
- package/lib/role.js.map +1 -0
- package/lib/scalekit.d.ts +4 -0
- package/lib/scalekit.js +4 -0
- package/lib/scalekit.js.map +1 -1
- package/package.json +1 -1
- package/src/core.ts +1 -1
- package/src/permission.ts +164 -0
- package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +3 -3
- package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +24 -0
- package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +0 -12
- package/src/pkg/grpc/scalekit/v1/roles/roles_connect.ts +257 -0
- package/src/pkg/grpc/scalekit/v1/roles/roles_pb.ts +2357 -0
- package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +3 -3
- package/src/role.ts +261 -0
- package/src/scalekit.ts +12 -0
- package/tests/permission.test.ts +399 -0
- package/tests/role.test.ts +323 -0
- package/tests/utils/test-data.ts +168 -1
|
@@ -0,0 +1,2357 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file scalekit/v1/roles/roles.proto (package scalekit.v1.roles, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from message scalekit.v1.roles.Role
|
|
11
|
+
*/
|
|
12
|
+
export class Role extends Message<Role> {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: string id = 1;
|
|
15
|
+
*/
|
|
16
|
+
id = "";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: string name = 2;
|
|
20
|
+
*/
|
|
21
|
+
name = "";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: string display_name = 3;
|
|
25
|
+
*/
|
|
26
|
+
displayName = "";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @generated from field: string description = 4;
|
|
30
|
+
*/
|
|
31
|
+
description = "";
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @generated from field: bool default_creator = 6;
|
|
35
|
+
*/
|
|
36
|
+
defaultCreator = false;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @generated from field: bool default_member = 7;
|
|
40
|
+
*/
|
|
41
|
+
defaultMember = false;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @generated from field: optional string extends = 8;
|
|
45
|
+
*/
|
|
46
|
+
extends?: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @generated from field: repeated scalekit.v1.roles.RolePermission permissions = 9;
|
|
50
|
+
*/
|
|
51
|
+
permissions: RolePermission[] = [];
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: int32 dependent_roles_count = 10;
|
|
55
|
+
*/
|
|
56
|
+
dependentRolesCount = 0;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @generated from field: bool is_org_role = 11;
|
|
60
|
+
*/
|
|
61
|
+
isOrgRole = false;
|
|
62
|
+
|
|
63
|
+
constructor(data?: PartialMessage<Role>) {
|
|
64
|
+
super();
|
|
65
|
+
proto3.util.initPartial(data, this);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
69
|
+
static readonly typeName = "scalekit.v1.roles.Role";
|
|
70
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
71
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
72
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
73
|
+
{ no: 3, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
74
|
+
{ no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
75
|
+
{ no: 6, name: "default_creator", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
76
|
+
{ no: 7, name: "default_member", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
77
|
+
{ no: 8, name: "extends", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
78
|
+
{ no: 9, name: "permissions", kind: "message", T: RolePermission, repeated: true },
|
|
79
|
+
{ no: 10, name: "dependent_roles_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
80
|
+
{ no: 11, name: "is_org_role", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
81
|
+
]);
|
|
82
|
+
|
|
83
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Role {
|
|
84
|
+
return new Role().fromBinary(bytes, options);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Role {
|
|
88
|
+
return new Role().fromJson(jsonValue, options);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Role {
|
|
92
|
+
return new Role().fromJsonString(jsonString, options);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
static equals(a: Role | PlainMessage<Role> | undefined, b: Role | PlainMessage<Role> | undefined): boolean {
|
|
96
|
+
return proto3.util.equals(Role, a, b);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @generated from message scalekit.v1.roles.CreateRole
|
|
102
|
+
*/
|
|
103
|
+
export class CreateRole extends Message<CreateRole> {
|
|
104
|
+
/**
|
|
105
|
+
* @generated from field: string name = 2;
|
|
106
|
+
*/
|
|
107
|
+
name = "";
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @generated from field: string display_name = 3;
|
|
111
|
+
*/
|
|
112
|
+
displayName = "";
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @generated from field: optional string description = 4;
|
|
116
|
+
*/
|
|
117
|
+
description?: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: optional string extends = 8;
|
|
121
|
+
*/
|
|
122
|
+
extends?: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @generated from field: repeated string permissions = 9;
|
|
126
|
+
*/
|
|
127
|
+
permissions: string[] = [];
|
|
128
|
+
|
|
129
|
+
constructor(data?: PartialMessage<CreateRole>) {
|
|
130
|
+
super();
|
|
131
|
+
proto3.util.initPartial(data, this);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
135
|
+
static readonly typeName = "scalekit.v1.roles.CreateRole";
|
|
136
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
137
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
138
|
+
{ no: 3, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
139
|
+
{ no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
140
|
+
{ no: 8, name: "extends", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
141
|
+
{ no: 9, name: "permissions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
142
|
+
]);
|
|
143
|
+
|
|
144
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateRole {
|
|
145
|
+
return new CreateRole().fromBinary(bytes, options);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateRole {
|
|
149
|
+
return new CreateRole().fromJson(jsonValue, options);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateRole {
|
|
153
|
+
return new CreateRole().fromJsonString(jsonString, options);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
static equals(a: CreateRole | PlainMessage<CreateRole> | undefined, b: CreateRole | PlainMessage<CreateRole> | undefined): boolean {
|
|
157
|
+
return proto3.util.equals(CreateRole, a, b);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @generated from message scalekit.v1.roles.CreateOrganizationRole
|
|
163
|
+
*/
|
|
164
|
+
export class CreateOrganizationRole extends Message<CreateOrganizationRole> {
|
|
165
|
+
/**
|
|
166
|
+
* @generated from field: string name = 2;
|
|
167
|
+
*/
|
|
168
|
+
name = "";
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* @generated from field: string display_name = 3;
|
|
172
|
+
*/
|
|
173
|
+
displayName = "";
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: optional string description = 4;
|
|
177
|
+
*/
|
|
178
|
+
description?: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @generated from field: optional string extends = 8;
|
|
182
|
+
*/
|
|
183
|
+
extends?: string;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @generated from field: repeated string permissions = 9;
|
|
187
|
+
*/
|
|
188
|
+
permissions: string[] = [];
|
|
189
|
+
|
|
190
|
+
constructor(data?: PartialMessage<CreateOrganizationRole>) {
|
|
191
|
+
super();
|
|
192
|
+
proto3.util.initPartial(data, this);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
196
|
+
static readonly typeName = "scalekit.v1.roles.CreateOrganizationRole";
|
|
197
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
198
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
199
|
+
{ no: 3, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
200
|
+
{ no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
201
|
+
{ no: 8, name: "extends", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
202
|
+
{ no: 9, name: "permissions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
203
|
+
]);
|
|
204
|
+
|
|
205
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateOrganizationRole {
|
|
206
|
+
return new CreateOrganizationRole().fromBinary(bytes, options);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateOrganizationRole {
|
|
210
|
+
return new CreateOrganizationRole().fromJson(jsonValue, options);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateOrganizationRole {
|
|
214
|
+
return new CreateOrganizationRole().fromJsonString(jsonString, options);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
static equals(a: CreateOrganizationRole | PlainMessage<CreateOrganizationRole> | undefined, b: CreateOrganizationRole | PlainMessage<CreateOrganizationRole> | undefined): boolean {
|
|
218
|
+
return proto3.util.equals(CreateOrganizationRole, a, b);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* @generated from message scalekit.v1.roles.CreateRoleRequest
|
|
224
|
+
*/
|
|
225
|
+
export class CreateRoleRequest extends Message<CreateRoleRequest> {
|
|
226
|
+
/**
|
|
227
|
+
* @generated from field: scalekit.v1.roles.CreateRole role = 2;
|
|
228
|
+
*/
|
|
229
|
+
role?: CreateRole;
|
|
230
|
+
|
|
231
|
+
constructor(data?: PartialMessage<CreateRoleRequest>) {
|
|
232
|
+
super();
|
|
233
|
+
proto3.util.initPartial(data, this);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
237
|
+
static readonly typeName = "scalekit.v1.roles.CreateRoleRequest";
|
|
238
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
239
|
+
{ no: 2, name: "role", kind: "message", T: CreateRole },
|
|
240
|
+
]);
|
|
241
|
+
|
|
242
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateRoleRequest {
|
|
243
|
+
return new CreateRoleRequest().fromBinary(bytes, options);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateRoleRequest {
|
|
247
|
+
return new CreateRoleRequest().fromJson(jsonValue, options);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateRoleRequest {
|
|
251
|
+
return new CreateRoleRequest().fromJsonString(jsonString, options);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
static equals(a: CreateRoleRequest | PlainMessage<CreateRoleRequest> | undefined, b: CreateRoleRequest | PlainMessage<CreateRoleRequest> | undefined): boolean {
|
|
255
|
+
return proto3.util.equals(CreateRoleRequest, a, b);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* @generated from message scalekit.v1.roles.CreateRoleResponse
|
|
261
|
+
*/
|
|
262
|
+
export class CreateRoleResponse extends Message<CreateRoleResponse> {
|
|
263
|
+
/**
|
|
264
|
+
* @generated from field: scalekit.v1.roles.Role role = 1;
|
|
265
|
+
*/
|
|
266
|
+
role?: Role;
|
|
267
|
+
|
|
268
|
+
constructor(data?: PartialMessage<CreateRoleResponse>) {
|
|
269
|
+
super();
|
|
270
|
+
proto3.util.initPartial(data, this);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
274
|
+
static readonly typeName = "scalekit.v1.roles.CreateRoleResponse";
|
|
275
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
276
|
+
{ no: 1, name: "role", kind: "message", T: Role },
|
|
277
|
+
]);
|
|
278
|
+
|
|
279
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateRoleResponse {
|
|
280
|
+
return new CreateRoleResponse().fromBinary(bytes, options);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateRoleResponse {
|
|
284
|
+
return new CreateRoleResponse().fromJson(jsonValue, options);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateRoleResponse {
|
|
288
|
+
return new CreateRoleResponse().fromJsonString(jsonString, options);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
static equals(a: CreateRoleResponse | PlainMessage<CreateRoleResponse> | undefined, b: CreateRoleResponse | PlainMessage<CreateRoleResponse> | undefined): boolean {
|
|
292
|
+
return proto3.util.equals(CreateRoleResponse, a, b);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* @generated from message scalekit.v1.roles.GetRoleRequest
|
|
298
|
+
*/
|
|
299
|
+
export class GetRoleRequest extends Message<GetRoleRequest> {
|
|
300
|
+
/**
|
|
301
|
+
* @generated from field: string role_name = 2;
|
|
302
|
+
*/
|
|
303
|
+
roleName = "";
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* @generated from field: optional string include = 3;
|
|
307
|
+
*/
|
|
308
|
+
include?: string;
|
|
309
|
+
|
|
310
|
+
constructor(data?: PartialMessage<GetRoleRequest>) {
|
|
311
|
+
super();
|
|
312
|
+
proto3.util.initPartial(data, this);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
316
|
+
static readonly typeName = "scalekit.v1.roles.GetRoleRequest";
|
|
317
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
318
|
+
{ no: 2, name: "role_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
319
|
+
{ no: 3, name: "include", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
320
|
+
]);
|
|
321
|
+
|
|
322
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetRoleRequest {
|
|
323
|
+
return new GetRoleRequest().fromBinary(bytes, options);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetRoleRequest {
|
|
327
|
+
return new GetRoleRequest().fromJson(jsonValue, options);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRoleRequest {
|
|
331
|
+
return new GetRoleRequest().fromJsonString(jsonString, options);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
static equals(a: GetRoleRequest | PlainMessage<GetRoleRequest> | undefined, b: GetRoleRequest | PlainMessage<GetRoleRequest> | undefined): boolean {
|
|
335
|
+
return proto3.util.equals(GetRoleRequest, a, b);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* @generated from message scalekit.v1.roles.GetRoleResponse
|
|
341
|
+
*/
|
|
342
|
+
export class GetRoleResponse extends Message<GetRoleResponse> {
|
|
343
|
+
/**
|
|
344
|
+
* @generated from field: scalekit.v1.roles.Role role = 1;
|
|
345
|
+
*/
|
|
346
|
+
role?: Role;
|
|
347
|
+
|
|
348
|
+
constructor(data?: PartialMessage<GetRoleResponse>) {
|
|
349
|
+
super();
|
|
350
|
+
proto3.util.initPartial(data, this);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
354
|
+
static readonly typeName = "scalekit.v1.roles.GetRoleResponse";
|
|
355
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
356
|
+
{ no: 1, name: "role", kind: "message", T: Role },
|
|
357
|
+
]);
|
|
358
|
+
|
|
359
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetRoleResponse {
|
|
360
|
+
return new GetRoleResponse().fromBinary(bytes, options);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetRoleResponse {
|
|
364
|
+
return new GetRoleResponse().fromJson(jsonValue, options);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRoleResponse {
|
|
368
|
+
return new GetRoleResponse().fromJsonString(jsonString, options);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
static equals(a: GetRoleResponse | PlainMessage<GetRoleResponse> | undefined, b: GetRoleResponse | PlainMessage<GetRoleResponse> | undefined): boolean {
|
|
372
|
+
return proto3.util.equals(GetRoleResponse, a, b);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* @generated from message scalekit.v1.roles.ListRolesRequest
|
|
378
|
+
*/
|
|
379
|
+
export class ListRolesRequest extends Message<ListRolesRequest> {
|
|
380
|
+
/**
|
|
381
|
+
* @generated from field: optional string include = 2;
|
|
382
|
+
*/
|
|
383
|
+
include?: string;
|
|
384
|
+
|
|
385
|
+
constructor(data?: PartialMessage<ListRolesRequest>) {
|
|
386
|
+
super();
|
|
387
|
+
proto3.util.initPartial(data, this);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
391
|
+
static readonly typeName = "scalekit.v1.roles.ListRolesRequest";
|
|
392
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
393
|
+
{ no: 2, name: "include", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
394
|
+
]);
|
|
395
|
+
|
|
396
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRolesRequest {
|
|
397
|
+
return new ListRolesRequest().fromBinary(bytes, options);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRolesRequest {
|
|
401
|
+
return new ListRolesRequest().fromJson(jsonValue, options);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRolesRequest {
|
|
405
|
+
return new ListRolesRequest().fromJsonString(jsonString, options);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
static equals(a: ListRolesRequest | PlainMessage<ListRolesRequest> | undefined, b: ListRolesRequest | PlainMessage<ListRolesRequest> | undefined): boolean {
|
|
409
|
+
return proto3.util.equals(ListRolesRequest, a, b);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* @generated from message scalekit.v1.roles.ListRolesResponse
|
|
415
|
+
*/
|
|
416
|
+
export class ListRolesResponse extends Message<ListRolesResponse> {
|
|
417
|
+
/**
|
|
418
|
+
* @generated from field: repeated scalekit.v1.roles.Role roles = 1;
|
|
419
|
+
*/
|
|
420
|
+
roles: Role[] = [];
|
|
421
|
+
|
|
422
|
+
constructor(data?: PartialMessage<ListRolesResponse>) {
|
|
423
|
+
super();
|
|
424
|
+
proto3.util.initPartial(data, this);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
428
|
+
static readonly typeName = "scalekit.v1.roles.ListRolesResponse";
|
|
429
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
430
|
+
{ no: 1, name: "roles", kind: "message", T: Role, repeated: true },
|
|
431
|
+
]);
|
|
432
|
+
|
|
433
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRolesResponse {
|
|
434
|
+
return new ListRolesResponse().fromBinary(bytes, options);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRolesResponse {
|
|
438
|
+
return new ListRolesResponse().fromJson(jsonValue, options);
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRolesResponse {
|
|
442
|
+
return new ListRolesResponse().fromJsonString(jsonString, options);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
static equals(a: ListRolesResponse | PlainMessage<ListRolesResponse> | undefined, b: ListRolesResponse | PlainMessage<ListRolesResponse> | undefined): boolean {
|
|
446
|
+
return proto3.util.equals(ListRolesResponse, a, b);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* @generated from message scalekit.v1.roles.UpdateRole
|
|
452
|
+
*/
|
|
453
|
+
export class UpdateRole extends Message<UpdateRole> {
|
|
454
|
+
/**
|
|
455
|
+
* @generated from field: optional string display_name = 1;
|
|
456
|
+
*/
|
|
457
|
+
displayName?: string;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* @generated from field: optional string description = 2;
|
|
461
|
+
*/
|
|
462
|
+
description?: string;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* @generated from field: optional string extends = 6;
|
|
466
|
+
*/
|
|
467
|
+
extends?: string;
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* @generated from field: repeated string permissions = 7;
|
|
471
|
+
*/
|
|
472
|
+
permissions: string[] = [];
|
|
473
|
+
|
|
474
|
+
constructor(data?: PartialMessage<UpdateRole>) {
|
|
475
|
+
super();
|
|
476
|
+
proto3.util.initPartial(data, this);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
480
|
+
static readonly typeName = "scalekit.v1.roles.UpdateRole";
|
|
481
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
482
|
+
{ no: 1, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
483
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
484
|
+
{ no: 6, name: "extends", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
485
|
+
{ no: 7, name: "permissions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
486
|
+
]);
|
|
487
|
+
|
|
488
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateRole {
|
|
489
|
+
return new UpdateRole().fromBinary(bytes, options);
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateRole {
|
|
493
|
+
return new UpdateRole().fromJson(jsonValue, options);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateRole {
|
|
497
|
+
return new UpdateRole().fromJsonString(jsonString, options);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
static equals(a: UpdateRole | PlainMessage<UpdateRole> | undefined, b: UpdateRole | PlainMessage<UpdateRole> | undefined): boolean {
|
|
501
|
+
return proto3.util.equals(UpdateRole, a, b);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* @generated from message scalekit.v1.roles.UpdateRoleRequest
|
|
507
|
+
*/
|
|
508
|
+
export class UpdateRoleRequest extends Message<UpdateRoleRequest> {
|
|
509
|
+
/**
|
|
510
|
+
* @generated from field: string role_name = 2;
|
|
511
|
+
*/
|
|
512
|
+
roleName = "";
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* @generated from field: scalekit.v1.roles.UpdateRole role = 3;
|
|
516
|
+
*/
|
|
517
|
+
role?: UpdateRole;
|
|
518
|
+
|
|
519
|
+
constructor(data?: PartialMessage<UpdateRoleRequest>) {
|
|
520
|
+
super();
|
|
521
|
+
proto3.util.initPartial(data, this);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
525
|
+
static readonly typeName = "scalekit.v1.roles.UpdateRoleRequest";
|
|
526
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
527
|
+
{ no: 2, name: "role_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
528
|
+
{ no: 3, name: "role", kind: "message", T: UpdateRole },
|
|
529
|
+
]);
|
|
530
|
+
|
|
531
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateRoleRequest {
|
|
532
|
+
return new UpdateRoleRequest().fromBinary(bytes, options);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateRoleRequest {
|
|
536
|
+
return new UpdateRoleRequest().fromJson(jsonValue, options);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateRoleRequest {
|
|
540
|
+
return new UpdateRoleRequest().fromJsonString(jsonString, options);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
static equals(a: UpdateRoleRequest | PlainMessage<UpdateRoleRequest> | undefined, b: UpdateRoleRequest | PlainMessage<UpdateRoleRequest> | undefined): boolean {
|
|
544
|
+
return proto3.util.equals(UpdateRoleRequest, a, b);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* @generated from message scalekit.v1.roles.UpdateRoleResponse
|
|
550
|
+
*/
|
|
551
|
+
export class UpdateRoleResponse extends Message<UpdateRoleResponse> {
|
|
552
|
+
/**
|
|
553
|
+
* @generated from field: scalekit.v1.roles.Role role = 1;
|
|
554
|
+
*/
|
|
555
|
+
role?: Role;
|
|
556
|
+
|
|
557
|
+
constructor(data?: PartialMessage<UpdateRoleResponse>) {
|
|
558
|
+
super();
|
|
559
|
+
proto3.util.initPartial(data, this);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
563
|
+
static readonly typeName = "scalekit.v1.roles.UpdateRoleResponse";
|
|
564
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
565
|
+
{ no: 1, name: "role", kind: "message", T: Role },
|
|
566
|
+
]);
|
|
567
|
+
|
|
568
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateRoleResponse {
|
|
569
|
+
return new UpdateRoleResponse().fromBinary(bytes, options);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateRoleResponse {
|
|
573
|
+
return new UpdateRoleResponse().fromJson(jsonValue, options);
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateRoleResponse {
|
|
577
|
+
return new UpdateRoleResponse().fromJsonString(jsonString, options);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
static equals(a: UpdateRoleResponse | PlainMessage<UpdateRoleResponse> | undefined, b: UpdateRoleResponse | PlainMessage<UpdateRoleResponse> | undefined): boolean {
|
|
581
|
+
return proto3.util.equals(UpdateRoleResponse, a, b);
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* @generated from message scalekit.v1.roles.DeleteRoleRequest
|
|
587
|
+
*/
|
|
588
|
+
export class DeleteRoleRequest extends Message<DeleteRoleRequest> {
|
|
589
|
+
/**
|
|
590
|
+
* @generated from field: string role_name = 2;
|
|
591
|
+
*/
|
|
592
|
+
roleName = "";
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* @generated from field: optional string reassign_role_id = 3 [deprecated = true];
|
|
596
|
+
* @deprecated
|
|
597
|
+
*/
|
|
598
|
+
reassignRoleId?: string;
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* @generated from field: optional string reassign_role_name = 4;
|
|
602
|
+
*/
|
|
603
|
+
reassignRoleName?: string;
|
|
604
|
+
|
|
605
|
+
constructor(data?: PartialMessage<DeleteRoleRequest>) {
|
|
606
|
+
super();
|
|
607
|
+
proto3.util.initPartial(data, this);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
611
|
+
static readonly typeName = "scalekit.v1.roles.DeleteRoleRequest";
|
|
612
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
613
|
+
{ no: 2, name: "role_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
614
|
+
{ no: 3, name: "reassign_role_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
615
|
+
{ no: 4, name: "reassign_role_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
616
|
+
]);
|
|
617
|
+
|
|
618
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteRoleRequest {
|
|
619
|
+
return new DeleteRoleRequest().fromBinary(bytes, options);
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteRoleRequest {
|
|
623
|
+
return new DeleteRoleRequest().fromJson(jsonValue, options);
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteRoleRequest {
|
|
627
|
+
return new DeleteRoleRequest().fromJsonString(jsonString, options);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
static equals(a: DeleteRoleRequest | PlainMessage<DeleteRoleRequest> | undefined, b: DeleteRoleRequest | PlainMessage<DeleteRoleRequest> | undefined): boolean {
|
|
631
|
+
return proto3.util.equals(DeleteRoleRequest, a, b);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* @generated from message scalekit.v1.roles.CreateOrganizationRoleRequest
|
|
637
|
+
*/
|
|
638
|
+
export class CreateOrganizationRoleRequest extends Message<CreateOrganizationRoleRequest> {
|
|
639
|
+
/**
|
|
640
|
+
* @generated from field: string org_id = 1;
|
|
641
|
+
*/
|
|
642
|
+
orgId = "";
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* @generated from field: scalekit.v1.roles.CreateOrganizationRole role = 2;
|
|
646
|
+
*/
|
|
647
|
+
role?: CreateOrganizationRole;
|
|
648
|
+
|
|
649
|
+
constructor(data?: PartialMessage<CreateOrganizationRoleRequest>) {
|
|
650
|
+
super();
|
|
651
|
+
proto3.util.initPartial(data, this);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
655
|
+
static readonly typeName = "scalekit.v1.roles.CreateOrganizationRoleRequest";
|
|
656
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
657
|
+
{ no: 1, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
658
|
+
{ no: 2, name: "role", kind: "message", T: CreateOrganizationRole },
|
|
659
|
+
]);
|
|
660
|
+
|
|
661
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateOrganizationRoleRequest {
|
|
662
|
+
return new CreateOrganizationRoleRequest().fromBinary(bytes, options);
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateOrganizationRoleRequest {
|
|
666
|
+
return new CreateOrganizationRoleRequest().fromJson(jsonValue, options);
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateOrganizationRoleRequest {
|
|
670
|
+
return new CreateOrganizationRoleRequest().fromJsonString(jsonString, options);
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
static equals(a: CreateOrganizationRoleRequest | PlainMessage<CreateOrganizationRoleRequest> | undefined, b: CreateOrganizationRoleRequest | PlainMessage<CreateOrganizationRoleRequest> | undefined): boolean {
|
|
674
|
+
return proto3.util.equals(CreateOrganizationRoleRequest, a, b);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* @generated from message scalekit.v1.roles.CreateOrganizationRoleResponse
|
|
680
|
+
*/
|
|
681
|
+
export class CreateOrganizationRoleResponse extends Message<CreateOrganizationRoleResponse> {
|
|
682
|
+
/**
|
|
683
|
+
* @generated from field: scalekit.v1.roles.Role role = 1;
|
|
684
|
+
*/
|
|
685
|
+
role?: Role;
|
|
686
|
+
|
|
687
|
+
constructor(data?: PartialMessage<CreateOrganizationRoleResponse>) {
|
|
688
|
+
super();
|
|
689
|
+
proto3.util.initPartial(data, this);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
693
|
+
static readonly typeName = "scalekit.v1.roles.CreateOrganizationRoleResponse";
|
|
694
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
695
|
+
{ no: 1, name: "role", kind: "message", T: Role },
|
|
696
|
+
]);
|
|
697
|
+
|
|
698
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateOrganizationRoleResponse {
|
|
699
|
+
return new CreateOrganizationRoleResponse().fromBinary(bytes, options);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateOrganizationRoleResponse {
|
|
703
|
+
return new CreateOrganizationRoleResponse().fromJson(jsonValue, options);
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateOrganizationRoleResponse {
|
|
707
|
+
return new CreateOrganizationRoleResponse().fromJsonString(jsonString, options);
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
static equals(a: CreateOrganizationRoleResponse | PlainMessage<CreateOrganizationRoleResponse> | undefined, b: CreateOrganizationRoleResponse | PlainMessage<CreateOrganizationRoleResponse> | undefined): boolean {
|
|
711
|
+
return proto3.util.equals(CreateOrganizationRoleResponse, a, b);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* @generated from message scalekit.v1.roles.GetOrganizationRoleRequest
|
|
717
|
+
*/
|
|
718
|
+
export class GetOrganizationRoleRequest extends Message<GetOrganizationRoleRequest> {
|
|
719
|
+
/**
|
|
720
|
+
* @generated from field: string org_id = 1;
|
|
721
|
+
*/
|
|
722
|
+
orgId = "";
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* @generated from field: string role_name = 2;
|
|
726
|
+
*/
|
|
727
|
+
roleName = "";
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* @generated from field: optional string include = 3;
|
|
731
|
+
*/
|
|
732
|
+
include?: string;
|
|
733
|
+
|
|
734
|
+
constructor(data?: PartialMessage<GetOrganizationRoleRequest>) {
|
|
735
|
+
super();
|
|
736
|
+
proto3.util.initPartial(data, this);
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
740
|
+
static readonly typeName = "scalekit.v1.roles.GetOrganizationRoleRequest";
|
|
741
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
742
|
+
{ no: 1, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
743
|
+
{ no: 2, name: "role_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
744
|
+
{ no: 3, name: "include", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
745
|
+
]);
|
|
746
|
+
|
|
747
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrganizationRoleRequest {
|
|
748
|
+
return new GetOrganizationRoleRequest().fromBinary(bytes, options);
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrganizationRoleRequest {
|
|
752
|
+
return new GetOrganizationRoleRequest().fromJson(jsonValue, options);
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrganizationRoleRequest {
|
|
756
|
+
return new GetOrganizationRoleRequest().fromJsonString(jsonString, options);
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
static equals(a: GetOrganizationRoleRequest | PlainMessage<GetOrganizationRoleRequest> | undefined, b: GetOrganizationRoleRequest | PlainMessage<GetOrganizationRoleRequest> | undefined): boolean {
|
|
760
|
+
return proto3.util.equals(GetOrganizationRoleRequest, a, b);
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* @generated from message scalekit.v1.roles.GetOrganizationRoleResponse
|
|
766
|
+
*/
|
|
767
|
+
export class GetOrganizationRoleResponse extends Message<GetOrganizationRoleResponse> {
|
|
768
|
+
/**
|
|
769
|
+
* @generated from field: scalekit.v1.roles.Role role = 1;
|
|
770
|
+
*/
|
|
771
|
+
role?: Role;
|
|
772
|
+
|
|
773
|
+
constructor(data?: PartialMessage<GetOrganizationRoleResponse>) {
|
|
774
|
+
super();
|
|
775
|
+
proto3.util.initPartial(data, this);
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
779
|
+
static readonly typeName = "scalekit.v1.roles.GetOrganizationRoleResponse";
|
|
780
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
781
|
+
{ no: 1, name: "role", kind: "message", T: Role },
|
|
782
|
+
]);
|
|
783
|
+
|
|
784
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrganizationRoleResponse {
|
|
785
|
+
return new GetOrganizationRoleResponse().fromBinary(bytes, options);
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrganizationRoleResponse {
|
|
789
|
+
return new GetOrganizationRoleResponse().fromJson(jsonValue, options);
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrganizationRoleResponse {
|
|
793
|
+
return new GetOrganizationRoleResponse().fromJsonString(jsonString, options);
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
static equals(a: GetOrganizationRoleResponse | PlainMessage<GetOrganizationRoleResponse> | undefined, b: GetOrganizationRoleResponse | PlainMessage<GetOrganizationRoleResponse> | undefined): boolean {
|
|
797
|
+
return proto3.util.equals(GetOrganizationRoleResponse, a, b);
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* @generated from message scalekit.v1.roles.ListOrganizationRolesRequest
|
|
803
|
+
*/
|
|
804
|
+
export class ListOrganizationRolesRequest extends Message<ListOrganizationRolesRequest> {
|
|
805
|
+
/**
|
|
806
|
+
* @generated from field: string org_id = 1;
|
|
807
|
+
*/
|
|
808
|
+
orgId = "";
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* @generated from field: optional string include = 2;
|
|
812
|
+
*/
|
|
813
|
+
include?: string;
|
|
814
|
+
|
|
815
|
+
constructor(data?: PartialMessage<ListOrganizationRolesRequest>) {
|
|
816
|
+
super();
|
|
817
|
+
proto3.util.initPartial(data, this);
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
821
|
+
static readonly typeName = "scalekit.v1.roles.ListOrganizationRolesRequest";
|
|
822
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
823
|
+
{ no: 1, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
824
|
+
{ no: 2, name: "include", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
825
|
+
]);
|
|
826
|
+
|
|
827
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationRolesRequest {
|
|
828
|
+
return new ListOrganizationRolesRequest().fromBinary(bytes, options);
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationRolesRequest {
|
|
832
|
+
return new ListOrganizationRolesRequest().fromJson(jsonValue, options);
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationRolesRequest {
|
|
836
|
+
return new ListOrganizationRolesRequest().fromJsonString(jsonString, options);
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
static equals(a: ListOrganizationRolesRequest | PlainMessage<ListOrganizationRolesRequest> | undefined, b: ListOrganizationRolesRequest | PlainMessage<ListOrganizationRolesRequest> | undefined): boolean {
|
|
840
|
+
return proto3.util.equals(ListOrganizationRolesRequest, a, b);
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* @generated from message scalekit.v1.roles.ListOrganizationRolesResponse
|
|
846
|
+
*/
|
|
847
|
+
export class ListOrganizationRolesResponse extends Message<ListOrganizationRolesResponse> {
|
|
848
|
+
/**
|
|
849
|
+
* @generated from field: repeated scalekit.v1.roles.Role roles = 1;
|
|
850
|
+
*/
|
|
851
|
+
roles: Role[] = [];
|
|
852
|
+
|
|
853
|
+
constructor(data?: PartialMessage<ListOrganizationRolesResponse>) {
|
|
854
|
+
super();
|
|
855
|
+
proto3.util.initPartial(data, this);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
859
|
+
static readonly typeName = "scalekit.v1.roles.ListOrganizationRolesResponse";
|
|
860
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
861
|
+
{ no: 1, name: "roles", kind: "message", T: Role, repeated: true },
|
|
862
|
+
]);
|
|
863
|
+
|
|
864
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationRolesResponse {
|
|
865
|
+
return new ListOrganizationRolesResponse().fromBinary(bytes, options);
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationRolesResponse {
|
|
869
|
+
return new ListOrganizationRolesResponse().fromJson(jsonValue, options);
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationRolesResponse {
|
|
873
|
+
return new ListOrganizationRolesResponse().fromJsonString(jsonString, options);
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
static equals(a: ListOrganizationRolesResponse | PlainMessage<ListOrganizationRolesResponse> | undefined, b: ListOrganizationRolesResponse | PlainMessage<ListOrganizationRolesResponse> | undefined): boolean {
|
|
877
|
+
return proto3.util.equals(ListOrganizationRolesResponse, a, b);
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* @generated from message scalekit.v1.roles.UpdateOrganizationRoleRequest
|
|
883
|
+
*/
|
|
884
|
+
export class UpdateOrganizationRoleRequest extends Message<UpdateOrganizationRoleRequest> {
|
|
885
|
+
/**
|
|
886
|
+
* @generated from field: string org_id = 1;
|
|
887
|
+
*/
|
|
888
|
+
orgId = "";
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* @generated from field: string role_name = 2;
|
|
892
|
+
*/
|
|
893
|
+
roleName = "";
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* @generated from field: scalekit.v1.roles.UpdateRole role = 3;
|
|
897
|
+
*/
|
|
898
|
+
role?: UpdateRole;
|
|
899
|
+
|
|
900
|
+
constructor(data?: PartialMessage<UpdateOrganizationRoleRequest>) {
|
|
901
|
+
super();
|
|
902
|
+
proto3.util.initPartial(data, this);
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
906
|
+
static readonly typeName = "scalekit.v1.roles.UpdateOrganizationRoleRequest";
|
|
907
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
908
|
+
{ no: 1, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
909
|
+
{ no: 2, name: "role_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
910
|
+
{ no: 3, name: "role", kind: "message", T: UpdateRole },
|
|
911
|
+
]);
|
|
912
|
+
|
|
913
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateOrganizationRoleRequest {
|
|
914
|
+
return new UpdateOrganizationRoleRequest().fromBinary(bytes, options);
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateOrganizationRoleRequest {
|
|
918
|
+
return new UpdateOrganizationRoleRequest().fromJson(jsonValue, options);
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateOrganizationRoleRequest {
|
|
922
|
+
return new UpdateOrganizationRoleRequest().fromJsonString(jsonString, options);
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
static equals(a: UpdateOrganizationRoleRequest | PlainMessage<UpdateOrganizationRoleRequest> | undefined, b: UpdateOrganizationRoleRequest | PlainMessage<UpdateOrganizationRoleRequest> | undefined): boolean {
|
|
926
|
+
return proto3.util.equals(UpdateOrganizationRoleRequest, a, b);
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* @generated from message scalekit.v1.roles.UpdateOrganizationRoleResponse
|
|
932
|
+
*/
|
|
933
|
+
export class UpdateOrganizationRoleResponse extends Message<UpdateOrganizationRoleResponse> {
|
|
934
|
+
/**
|
|
935
|
+
* @generated from field: scalekit.v1.roles.Role role = 1;
|
|
936
|
+
*/
|
|
937
|
+
role?: Role;
|
|
938
|
+
|
|
939
|
+
constructor(data?: PartialMessage<UpdateOrganizationRoleResponse>) {
|
|
940
|
+
super();
|
|
941
|
+
proto3.util.initPartial(data, this);
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
945
|
+
static readonly typeName = "scalekit.v1.roles.UpdateOrganizationRoleResponse";
|
|
946
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
947
|
+
{ no: 1, name: "role", kind: "message", T: Role },
|
|
948
|
+
]);
|
|
949
|
+
|
|
950
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateOrganizationRoleResponse {
|
|
951
|
+
return new UpdateOrganizationRoleResponse().fromBinary(bytes, options);
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateOrganizationRoleResponse {
|
|
955
|
+
return new UpdateOrganizationRoleResponse().fromJson(jsonValue, options);
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateOrganizationRoleResponse {
|
|
959
|
+
return new UpdateOrganizationRoleResponse().fromJsonString(jsonString, options);
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
static equals(a: UpdateOrganizationRoleResponse | PlainMessage<UpdateOrganizationRoleResponse> | undefined, b: UpdateOrganizationRoleResponse | PlainMessage<UpdateOrganizationRoleResponse> | undefined): boolean {
|
|
963
|
+
return proto3.util.equals(UpdateOrganizationRoleResponse, a, b);
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* @generated from message scalekit.v1.roles.DeleteOrganizationRoleRequest
|
|
969
|
+
*/
|
|
970
|
+
export class DeleteOrganizationRoleRequest extends Message<DeleteOrganizationRoleRequest> {
|
|
971
|
+
/**
|
|
972
|
+
* @generated from field: string org_id = 1;
|
|
973
|
+
*/
|
|
974
|
+
orgId = "";
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* @generated from field: string role_name = 2;
|
|
978
|
+
*/
|
|
979
|
+
roleName = "";
|
|
980
|
+
|
|
981
|
+
/**
|
|
982
|
+
* @generated from field: optional string reassign_role_name = 3;
|
|
983
|
+
*/
|
|
984
|
+
reassignRoleName?: string;
|
|
985
|
+
|
|
986
|
+
constructor(data?: PartialMessage<DeleteOrganizationRoleRequest>) {
|
|
987
|
+
super();
|
|
988
|
+
proto3.util.initPartial(data, this);
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
992
|
+
static readonly typeName = "scalekit.v1.roles.DeleteOrganizationRoleRequest";
|
|
993
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
994
|
+
{ no: 1, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
995
|
+
{ no: 2, name: "role_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
996
|
+
{ no: 3, name: "reassign_role_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
997
|
+
]);
|
|
998
|
+
|
|
999
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteOrganizationRoleRequest {
|
|
1000
|
+
return new DeleteOrganizationRoleRequest().fromBinary(bytes, options);
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteOrganizationRoleRequest {
|
|
1004
|
+
return new DeleteOrganizationRoleRequest().fromJson(jsonValue, options);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteOrganizationRoleRequest {
|
|
1008
|
+
return new DeleteOrganizationRoleRequest().fromJsonString(jsonString, options);
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
static equals(a: DeleteOrganizationRoleRequest | PlainMessage<DeleteOrganizationRoleRequest> | undefined, b: DeleteOrganizationRoleRequest | PlainMessage<DeleteOrganizationRoleRequest> | undefined): boolean {
|
|
1012
|
+
return proto3.util.equals(DeleteOrganizationRoleRequest, a, b);
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* @generated from message scalekit.v1.roles.GetRoleUsersCountRequest
|
|
1018
|
+
*/
|
|
1019
|
+
export class GetRoleUsersCountRequest extends Message<GetRoleUsersCountRequest> {
|
|
1020
|
+
/**
|
|
1021
|
+
* @generated from field: string role_name = 2;
|
|
1022
|
+
*/
|
|
1023
|
+
roleName = "";
|
|
1024
|
+
|
|
1025
|
+
constructor(data?: PartialMessage<GetRoleUsersCountRequest>) {
|
|
1026
|
+
super();
|
|
1027
|
+
proto3.util.initPartial(data, this);
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1031
|
+
static readonly typeName = "scalekit.v1.roles.GetRoleUsersCountRequest";
|
|
1032
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1033
|
+
{ no: 2, name: "role_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1034
|
+
]);
|
|
1035
|
+
|
|
1036
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetRoleUsersCountRequest {
|
|
1037
|
+
return new GetRoleUsersCountRequest().fromBinary(bytes, options);
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetRoleUsersCountRequest {
|
|
1041
|
+
return new GetRoleUsersCountRequest().fromJson(jsonValue, options);
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRoleUsersCountRequest {
|
|
1045
|
+
return new GetRoleUsersCountRequest().fromJsonString(jsonString, options);
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
static equals(a: GetRoleUsersCountRequest | PlainMessage<GetRoleUsersCountRequest> | undefined, b: GetRoleUsersCountRequest | PlainMessage<GetRoleUsersCountRequest> | undefined): boolean {
|
|
1049
|
+
return proto3.util.equals(GetRoleUsersCountRequest, a, b);
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* @generated from message scalekit.v1.roles.GetRoleUsersCountResponse
|
|
1055
|
+
*/
|
|
1056
|
+
export class GetRoleUsersCountResponse extends Message<GetRoleUsersCountResponse> {
|
|
1057
|
+
/**
|
|
1058
|
+
* @generated from field: int64 count = 1;
|
|
1059
|
+
*/
|
|
1060
|
+
count = protoInt64.zero;
|
|
1061
|
+
|
|
1062
|
+
constructor(data?: PartialMessage<GetRoleUsersCountResponse>) {
|
|
1063
|
+
super();
|
|
1064
|
+
proto3.util.initPartial(data, this);
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1068
|
+
static readonly typeName = "scalekit.v1.roles.GetRoleUsersCountResponse";
|
|
1069
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1070
|
+
{ no: 1, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1071
|
+
]);
|
|
1072
|
+
|
|
1073
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetRoleUsersCountResponse {
|
|
1074
|
+
return new GetRoleUsersCountResponse().fromBinary(bytes, options);
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetRoleUsersCountResponse {
|
|
1078
|
+
return new GetRoleUsersCountResponse().fromJson(jsonValue, options);
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRoleUsersCountResponse {
|
|
1082
|
+
return new GetRoleUsersCountResponse().fromJsonString(jsonString, options);
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
static equals(a: GetRoleUsersCountResponse | PlainMessage<GetRoleUsersCountResponse> | undefined, b: GetRoleUsersCountResponse | PlainMessage<GetRoleUsersCountResponse> | undefined): boolean {
|
|
1086
|
+
return proto3.util.equals(GetRoleUsersCountResponse, a, b);
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* @generated from message scalekit.v1.roles.GetOrganizationRoleUsersCountRequest
|
|
1092
|
+
*/
|
|
1093
|
+
export class GetOrganizationRoleUsersCountRequest extends Message<GetOrganizationRoleUsersCountRequest> {
|
|
1094
|
+
/**
|
|
1095
|
+
* @generated from field: string org_id = 1;
|
|
1096
|
+
*/
|
|
1097
|
+
orgId = "";
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* @generated from field: string role_name = 2;
|
|
1101
|
+
*/
|
|
1102
|
+
roleName = "";
|
|
1103
|
+
|
|
1104
|
+
constructor(data?: PartialMessage<GetOrganizationRoleUsersCountRequest>) {
|
|
1105
|
+
super();
|
|
1106
|
+
proto3.util.initPartial(data, this);
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1110
|
+
static readonly typeName = "scalekit.v1.roles.GetOrganizationRoleUsersCountRequest";
|
|
1111
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1112
|
+
{ no: 1, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1113
|
+
{ no: 2, name: "role_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1114
|
+
]);
|
|
1115
|
+
|
|
1116
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrganizationRoleUsersCountRequest {
|
|
1117
|
+
return new GetOrganizationRoleUsersCountRequest().fromBinary(bytes, options);
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrganizationRoleUsersCountRequest {
|
|
1121
|
+
return new GetOrganizationRoleUsersCountRequest().fromJson(jsonValue, options);
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrganizationRoleUsersCountRequest {
|
|
1125
|
+
return new GetOrganizationRoleUsersCountRequest().fromJsonString(jsonString, options);
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
static equals(a: GetOrganizationRoleUsersCountRequest | PlainMessage<GetOrganizationRoleUsersCountRequest> | undefined, b: GetOrganizationRoleUsersCountRequest | PlainMessage<GetOrganizationRoleUsersCountRequest> | undefined): boolean {
|
|
1129
|
+
return proto3.util.equals(GetOrganizationRoleUsersCountRequest, a, b);
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* @generated from message scalekit.v1.roles.GetOrganizationRoleUsersCountResponse
|
|
1135
|
+
*/
|
|
1136
|
+
export class GetOrganizationRoleUsersCountResponse extends Message<GetOrganizationRoleUsersCountResponse> {
|
|
1137
|
+
/**
|
|
1138
|
+
* @generated from field: int64 count = 1;
|
|
1139
|
+
*/
|
|
1140
|
+
count = protoInt64.zero;
|
|
1141
|
+
|
|
1142
|
+
constructor(data?: PartialMessage<GetOrganizationRoleUsersCountResponse>) {
|
|
1143
|
+
super();
|
|
1144
|
+
proto3.util.initPartial(data, this);
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1148
|
+
static readonly typeName = "scalekit.v1.roles.GetOrganizationRoleUsersCountResponse";
|
|
1149
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1150
|
+
{ no: 1, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1151
|
+
]);
|
|
1152
|
+
|
|
1153
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrganizationRoleUsersCountResponse {
|
|
1154
|
+
return new GetOrganizationRoleUsersCountResponse().fromBinary(bytes, options);
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrganizationRoleUsersCountResponse {
|
|
1158
|
+
return new GetOrganizationRoleUsersCountResponse().fromJson(jsonValue, options);
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrganizationRoleUsersCountResponse {
|
|
1162
|
+
return new GetOrganizationRoleUsersCountResponse().fromJsonString(jsonString, options);
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
static equals(a: GetOrganizationRoleUsersCountResponse | PlainMessage<GetOrganizationRoleUsersCountResponse> | undefined, b: GetOrganizationRoleUsersCountResponse | PlainMessage<GetOrganizationRoleUsersCountResponse> | undefined): boolean {
|
|
1166
|
+
return proto3.util.equals(GetOrganizationRoleUsersCountResponse, a, b);
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
/**
|
|
1171
|
+
* @generated from message scalekit.v1.roles.UpdateDefaultRolesRequest
|
|
1172
|
+
*/
|
|
1173
|
+
export class UpdateDefaultRolesRequest extends Message<UpdateDefaultRolesRequest> {
|
|
1174
|
+
/**
|
|
1175
|
+
* @generated from field: scalekit.v1.roles.UpdateDefaultRole default_creator = 2 [deprecated = true];
|
|
1176
|
+
* @deprecated
|
|
1177
|
+
*/
|
|
1178
|
+
defaultCreator?: UpdateDefaultRole;
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* @generated from field: scalekit.v1.roles.UpdateDefaultRole default_member = 3 [deprecated = true];
|
|
1182
|
+
* @deprecated
|
|
1183
|
+
*/
|
|
1184
|
+
defaultMember?: UpdateDefaultRole;
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* @generated from field: optional string default_creator_role = 4;
|
|
1188
|
+
*/
|
|
1189
|
+
defaultCreatorRole?: string;
|
|
1190
|
+
|
|
1191
|
+
/**
|
|
1192
|
+
* @generated from field: optional string default_member_role = 5;
|
|
1193
|
+
*/
|
|
1194
|
+
defaultMemberRole?: string;
|
|
1195
|
+
|
|
1196
|
+
constructor(data?: PartialMessage<UpdateDefaultRolesRequest>) {
|
|
1197
|
+
super();
|
|
1198
|
+
proto3.util.initPartial(data, this);
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1202
|
+
static readonly typeName = "scalekit.v1.roles.UpdateDefaultRolesRequest";
|
|
1203
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1204
|
+
{ no: 2, name: "default_creator", kind: "message", T: UpdateDefaultRole },
|
|
1205
|
+
{ no: 3, name: "default_member", kind: "message", T: UpdateDefaultRole },
|
|
1206
|
+
{ no: 4, name: "default_creator_role", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1207
|
+
{ no: 5, name: "default_member_role", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1208
|
+
]);
|
|
1209
|
+
|
|
1210
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateDefaultRolesRequest {
|
|
1211
|
+
return new UpdateDefaultRolesRequest().fromBinary(bytes, options);
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateDefaultRolesRequest {
|
|
1215
|
+
return new UpdateDefaultRolesRequest().fromJson(jsonValue, options);
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateDefaultRolesRequest {
|
|
1219
|
+
return new UpdateDefaultRolesRequest().fromJsonString(jsonString, options);
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
static equals(a: UpdateDefaultRolesRequest | PlainMessage<UpdateDefaultRolesRequest> | undefined, b: UpdateDefaultRolesRequest | PlainMessage<UpdateDefaultRolesRequest> | undefined): boolean {
|
|
1223
|
+
return proto3.util.equals(UpdateDefaultRolesRequest, a, b);
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
/**
|
|
1228
|
+
* @generated from message scalekit.v1.roles.UpdateDefaultOrganizationRolesRequest
|
|
1229
|
+
*/
|
|
1230
|
+
export class UpdateDefaultOrganizationRolesRequest extends Message<UpdateDefaultOrganizationRolesRequest> {
|
|
1231
|
+
/**
|
|
1232
|
+
* @generated from field: string org_id = 1;
|
|
1233
|
+
*/
|
|
1234
|
+
orgId = "";
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* @generated from field: string default_member_role = 2;
|
|
1238
|
+
*/
|
|
1239
|
+
defaultMemberRole = "";
|
|
1240
|
+
|
|
1241
|
+
constructor(data?: PartialMessage<UpdateDefaultOrganizationRolesRequest>) {
|
|
1242
|
+
super();
|
|
1243
|
+
proto3.util.initPartial(data, this);
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1247
|
+
static readonly typeName = "scalekit.v1.roles.UpdateDefaultOrganizationRolesRequest";
|
|
1248
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1249
|
+
{ no: 1, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1250
|
+
{ no: 2, name: "default_member_role", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1251
|
+
]);
|
|
1252
|
+
|
|
1253
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateDefaultOrganizationRolesRequest {
|
|
1254
|
+
return new UpdateDefaultOrganizationRolesRequest().fromBinary(bytes, options);
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateDefaultOrganizationRolesRequest {
|
|
1258
|
+
return new UpdateDefaultOrganizationRolesRequest().fromJson(jsonValue, options);
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateDefaultOrganizationRolesRequest {
|
|
1262
|
+
return new UpdateDefaultOrganizationRolesRequest().fromJsonString(jsonString, options);
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
static equals(a: UpdateDefaultOrganizationRolesRequest | PlainMessage<UpdateDefaultOrganizationRolesRequest> | undefined, b: UpdateDefaultOrganizationRolesRequest | PlainMessage<UpdateDefaultOrganizationRolesRequest> | undefined): boolean {
|
|
1266
|
+
return proto3.util.equals(UpdateDefaultOrganizationRolesRequest, a, b);
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
/**
|
|
1271
|
+
* @generated from message scalekit.v1.roles.UpdateDefaultRolesResponse
|
|
1272
|
+
*/
|
|
1273
|
+
export class UpdateDefaultRolesResponse extends Message<UpdateDefaultRolesResponse> {
|
|
1274
|
+
/**
|
|
1275
|
+
* @generated from field: scalekit.v1.roles.Role default_creator = 1;
|
|
1276
|
+
*/
|
|
1277
|
+
defaultCreator?: Role;
|
|
1278
|
+
|
|
1279
|
+
/**
|
|
1280
|
+
* @generated from field: scalekit.v1.roles.Role default_member = 2;
|
|
1281
|
+
*/
|
|
1282
|
+
defaultMember?: Role;
|
|
1283
|
+
|
|
1284
|
+
constructor(data?: PartialMessage<UpdateDefaultRolesResponse>) {
|
|
1285
|
+
super();
|
|
1286
|
+
proto3.util.initPartial(data, this);
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1290
|
+
static readonly typeName = "scalekit.v1.roles.UpdateDefaultRolesResponse";
|
|
1291
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1292
|
+
{ no: 1, name: "default_creator", kind: "message", T: Role },
|
|
1293
|
+
{ no: 2, name: "default_member", kind: "message", T: Role },
|
|
1294
|
+
]);
|
|
1295
|
+
|
|
1296
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateDefaultRolesResponse {
|
|
1297
|
+
return new UpdateDefaultRolesResponse().fromBinary(bytes, options);
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateDefaultRolesResponse {
|
|
1301
|
+
return new UpdateDefaultRolesResponse().fromJson(jsonValue, options);
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateDefaultRolesResponse {
|
|
1305
|
+
return new UpdateDefaultRolesResponse().fromJsonString(jsonString, options);
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
static equals(a: UpdateDefaultRolesResponse | PlainMessage<UpdateDefaultRolesResponse> | undefined, b: UpdateDefaultRolesResponse | PlainMessage<UpdateDefaultRolesResponse> | undefined): boolean {
|
|
1309
|
+
return proto3.util.equals(UpdateDefaultRolesResponse, a, b);
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
/**
|
|
1314
|
+
* @generated from message scalekit.v1.roles.UpdateDefaultOrganizationRolesResponse
|
|
1315
|
+
*/
|
|
1316
|
+
export class UpdateDefaultOrganizationRolesResponse extends Message<UpdateDefaultOrganizationRolesResponse> {
|
|
1317
|
+
/**
|
|
1318
|
+
* @generated from field: scalekit.v1.roles.Role default_member = 2;
|
|
1319
|
+
*/
|
|
1320
|
+
defaultMember?: Role;
|
|
1321
|
+
|
|
1322
|
+
constructor(data?: PartialMessage<UpdateDefaultOrganizationRolesResponse>) {
|
|
1323
|
+
super();
|
|
1324
|
+
proto3.util.initPartial(data, this);
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1328
|
+
static readonly typeName = "scalekit.v1.roles.UpdateDefaultOrganizationRolesResponse";
|
|
1329
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1330
|
+
{ no: 2, name: "default_member", kind: "message", T: Role },
|
|
1331
|
+
]);
|
|
1332
|
+
|
|
1333
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateDefaultOrganizationRolesResponse {
|
|
1334
|
+
return new UpdateDefaultOrganizationRolesResponse().fromBinary(bytes, options);
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateDefaultOrganizationRolesResponse {
|
|
1338
|
+
return new UpdateDefaultOrganizationRolesResponse().fromJson(jsonValue, options);
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateDefaultOrganizationRolesResponse {
|
|
1342
|
+
return new UpdateDefaultOrganizationRolesResponse().fromJsonString(jsonString, options);
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
static equals(a: UpdateDefaultOrganizationRolesResponse | PlainMessage<UpdateDefaultOrganizationRolesResponse> | undefined, b: UpdateDefaultOrganizationRolesResponse | PlainMessage<UpdateDefaultOrganizationRolesResponse> | undefined): boolean {
|
|
1346
|
+
return proto3.util.equals(UpdateDefaultOrganizationRolesResponse, a, b);
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* @generated from message scalekit.v1.roles.UpdateDefaultRole
|
|
1352
|
+
*/
|
|
1353
|
+
export class UpdateDefaultRole extends Message<UpdateDefaultRole> {
|
|
1354
|
+
/**
|
|
1355
|
+
* @generated from field: string id = 1;
|
|
1356
|
+
*/
|
|
1357
|
+
id = "";
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* @generated from field: optional string name = 2;
|
|
1361
|
+
*/
|
|
1362
|
+
name?: string;
|
|
1363
|
+
|
|
1364
|
+
constructor(data?: PartialMessage<UpdateDefaultRole>) {
|
|
1365
|
+
super();
|
|
1366
|
+
proto3.util.initPartial(data, this);
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1370
|
+
static readonly typeName = "scalekit.v1.roles.UpdateDefaultRole";
|
|
1371
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1372
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1373
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1374
|
+
]);
|
|
1375
|
+
|
|
1376
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateDefaultRole {
|
|
1377
|
+
return new UpdateDefaultRole().fromBinary(bytes, options);
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateDefaultRole {
|
|
1381
|
+
return new UpdateDefaultRole().fromJson(jsonValue, options);
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateDefaultRole {
|
|
1385
|
+
return new UpdateDefaultRole().fromJsonString(jsonString, options);
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
static equals(a: UpdateDefaultRole | PlainMessage<UpdateDefaultRole> | undefined, b: UpdateDefaultRole | PlainMessage<UpdateDefaultRole> | undefined): boolean {
|
|
1389
|
+
return proto3.util.equals(UpdateDefaultRole, a, b);
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
* Permission Entity
|
|
1395
|
+
*
|
|
1396
|
+
* @generated from message scalekit.v1.roles.Permission
|
|
1397
|
+
*/
|
|
1398
|
+
export class Permission extends Message<Permission> {
|
|
1399
|
+
/**
|
|
1400
|
+
* @generated from field: string id = 1;
|
|
1401
|
+
*/
|
|
1402
|
+
id = "";
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* @generated from field: string name = 2;
|
|
1406
|
+
*/
|
|
1407
|
+
name = "";
|
|
1408
|
+
|
|
1409
|
+
/**
|
|
1410
|
+
* @generated from field: string description = 3;
|
|
1411
|
+
*/
|
|
1412
|
+
description = "";
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* @generated from field: google.protobuf.Timestamp create_time = 4;
|
|
1416
|
+
*/
|
|
1417
|
+
createTime?: Timestamp;
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* @generated from field: google.protobuf.Timestamp update_time = 5;
|
|
1421
|
+
*/
|
|
1422
|
+
updateTime?: Timestamp;
|
|
1423
|
+
|
|
1424
|
+
constructor(data?: PartialMessage<Permission>) {
|
|
1425
|
+
super();
|
|
1426
|
+
proto3.util.initPartial(data, this);
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1430
|
+
static readonly typeName = "scalekit.v1.roles.Permission";
|
|
1431
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1432
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1433
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1434
|
+
{ no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1435
|
+
{ no: 4, name: "create_time", kind: "message", T: Timestamp },
|
|
1436
|
+
{ no: 5, name: "update_time", kind: "message", T: Timestamp },
|
|
1437
|
+
]);
|
|
1438
|
+
|
|
1439
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Permission {
|
|
1440
|
+
return new Permission().fromBinary(bytes, options);
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Permission {
|
|
1444
|
+
return new Permission().fromJson(jsonValue, options);
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Permission {
|
|
1448
|
+
return new Permission().fromJsonString(jsonString, options);
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
static equals(a: Permission | PlainMessage<Permission> | undefined, b: Permission | PlainMessage<Permission> | undefined): boolean {
|
|
1452
|
+
return proto3.util.equals(Permission, a, b);
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
/**
|
|
1457
|
+
* RolePermissions represents a permission with role source information
|
|
1458
|
+
*
|
|
1459
|
+
* @generated from message scalekit.v1.roles.RolePermission
|
|
1460
|
+
*/
|
|
1461
|
+
export class RolePermission extends Message<RolePermission> {
|
|
1462
|
+
/**
|
|
1463
|
+
* @generated from field: string id = 1;
|
|
1464
|
+
*/
|
|
1465
|
+
id = "";
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
* @generated from field: string name = 2;
|
|
1469
|
+
*/
|
|
1470
|
+
name = "";
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* @generated from field: string description = 3;
|
|
1474
|
+
*/
|
|
1475
|
+
description = "";
|
|
1476
|
+
|
|
1477
|
+
/**
|
|
1478
|
+
* @generated from field: google.protobuf.Timestamp create_time = 4;
|
|
1479
|
+
*/
|
|
1480
|
+
createTime?: Timestamp;
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* @generated from field: google.protobuf.Timestamp update_time = 5;
|
|
1484
|
+
*/
|
|
1485
|
+
updateTime?: Timestamp;
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* @generated from field: string role_name = 6;
|
|
1489
|
+
*/
|
|
1490
|
+
roleName = "";
|
|
1491
|
+
|
|
1492
|
+
constructor(data?: PartialMessage<RolePermission>) {
|
|
1493
|
+
super();
|
|
1494
|
+
proto3.util.initPartial(data, this);
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1498
|
+
static readonly typeName = "scalekit.v1.roles.RolePermission";
|
|
1499
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1500
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1501
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1502
|
+
{ no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1503
|
+
{ no: 4, name: "create_time", kind: "message", T: Timestamp },
|
|
1504
|
+
{ no: 5, name: "update_time", kind: "message", T: Timestamp },
|
|
1505
|
+
{ no: 6, name: "role_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1506
|
+
]);
|
|
1507
|
+
|
|
1508
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RolePermission {
|
|
1509
|
+
return new RolePermission().fromBinary(bytes, options);
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RolePermission {
|
|
1513
|
+
return new RolePermission().fromJson(jsonValue, options);
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RolePermission {
|
|
1517
|
+
return new RolePermission().fromJsonString(jsonString, options);
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
static equals(a: RolePermission | PlainMessage<RolePermission> | undefined, b: RolePermission | PlainMessage<RolePermission> | undefined): boolean {
|
|
1521
|
+
return proto3.util.equals(RolePermission, a, b);
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* @generated from message scalekit.v1.roles.CreatePermission
|
|
1527
|
+
*/
|
|
1528
|
+
export class CreatePermission extends Message<CreatePermission> {
|
|
1529
|
+
/**
|
|
1530
|
+
* @generated from field: string name = 1;
|
|
1531
|
+
*/
|
|
1532
|
+
name = "";
|
|
1533
|
+
|
|
1534
|
+
/**
|
|
1535
|
+
* @generated from field: string description = 2;
|
|
1536
|
+
*/
|
|
1537
|
+
description = "";
|
|
1538
|
+
|
|
1539
|
+
constructor(data?: PartialMessage<CreatePermission>) {
|
|
1540
|
+
super();
|
|
1541
|
+
proto3.util.initPartial(data, this);
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1545
|
+
static readonly typeName = "scalekit.v1.roles.CreatePermission";
|
|
1546
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1547
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1548
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1549
|
+
]);
|
|
1550
|
+
|
|
1551
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePermission {
|
|
1552
|
+
return new CreatePermission().fromBinary(bytes, options);
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePermission {
|
|
1556
|
+
return new CreatePermission().fromJson(jsonValue, options);
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePermission {
|
|
1560
|
+
return new CreatePermission().fromJsonString(jsonString, options);
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
static equals(a: CreatePermission | PlainMessage<CreatePermission> | undefined, b: CreatePermission | PlainMessage<CreatePermission> | undefined): boolean {
|
|
1564
|
+
return proto3.util.equals(CreatePermission, a, b);
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* Permission Request/Response Messages
|
|
1570
|
+
*
|
|
1571
|
+
* @generated from message scalekit.v1.roles.CreatePermissionRequest
|
|
1572
|
+
*/
|
|
1573
|
+
export class CreatePermissionRequest extends Message<CreatePermissionRequest> {
|
|
1574
|
+
/**
|
|
1575
|
+
* @generated from field: scalekit.v1.roles.CreatePermission permission = 1;
|
|
1576
|
+
*/
|
|
1577
|
+
permission?: CreatePermission;
|
|
1578
|
+
|
|
1579
|
+
constructor(data?: PartialMessage<CreatePermissionRequest>) {
|
|
1580
|
+
super();
|
|
1581
|
+
proto3.util.initPartial(data, this);
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1585
|
+
static readonly typeName = "scalekit.v1.roles.CreatePermissionRequest";
|
|
1586
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1587
|
+
{ no: 1, name: "permission", kind: "message", T: CreatePermission },
|
|
1588
|
+
]);
|
|
1589
|
+
|
|
1590
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePermissionRequest {
|
|
1591
|
+
return new CreatePermissionRequest().fromBinary(bytes, options);
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePermissionRequest {
|
|
1595
|
+
return new CreatePermissionRequest().fromJson(jsonValue, options);
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePermissionRequest {
|
|
1599
|
+
return new CreatePermissionRequest().fromJsonString(jsonString, options);
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
static equals(a: CreatePermissionRequest | PlainMessage<CreatePermissionRequest> | undefined, b: CreatePermissionRequest | PlainMessage<CreatePermissionRequest> | undefined): boolean {
|
|
1603
|
+
return proto3.util.equals(CreatePermissionRequest, a, b);
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* @generated from message scalekit.v1.roles.CreatePermissionResponse
|
|
1609
|
+
*/
|
|
1610
|
+
export class CreatePermissionResponse extends Message<CreatePermissionResponse> {
|
|
1611
|
+
/**
|
|
1612
|
+
* @generated from field: scalekit.v1.roles.Permission permission = 1;
|
|
1613
|
+
*/
|
|
1614
|
+
permission?: Permission;
|
|
1615
|
+
|
|
1616
|
+
constructor(data?: PartialMessage<CreatePermissionResponse>) {
|
|
1617
|
+
super();
|
|
1618
|
+
proto3.util.initPartial(data, this);
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1622
|
+
static readonly typeName = "scalekit.v1.roles.CreatePermissionResponse";
|
|
1623
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1624
|
+
{ no: 1, name: "permission", kind: "message", T: Permission },
|
|
1625
|
+
]);
|
|
1626
|
+
|
|
1627
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePermissionResponse {
|
|
1628
|
+
return new CreatePermissionResponse().fromBinary(bytes, options);
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePermissionResponse {
|
|
1632
|
+
return new CreatePermissionResponse().fromJson(jsonValue, options);
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePermissionResponse {
|
|
1636
|
+
return new CreatePermissionResponse().fromJsonString(jsonString, options);
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
static equals(a: CreatePermissionResponse | PlainMessage<CreatePermissionResponse> | undefined, b: CreatePermissionResponse | PlainMessage<CreatePermissionResponse> | undefined): boolean {
|
|
1640
|
+
return proto3.util.equals(CreatePermissionResponse, a, b);
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
/**
|
|
1645
|
+
* @generated from message scalekit.v1.roles.GetPermissionRequest
|
|
1646
|
+
*/
|
|
1647
|
+
export class GetPermissionRequest extends Message<GetPermissionRequest> {
|
|
1648
|
+
/**
|
|
1649
|
+
* @generated from field: string permission_name = 1;
|
|
1650
|
+
*/
|
|
1651
|
+
permissionName = "";
|
|
1652
|
+
|
|
1653
|
+
constructor(data?: PartialMessage<GetPermissionRequest>) {
|
|
1654
|
+
super();
|
|
1655
|
+
proto3.util.initPartial(data, this);
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1659
|
+
static readonly typeName = "scalekit.v1.roles.GetPermissionRequest";
|
|
1660
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1661
|
+
{ no: 1, name: "permission_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1662
|
+
]);
|
|
1663
|
+
|
|
1664
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPermissionRequest {
|
|
1665
|
+
return new GetPermissionRequest().fromBinary(bytes, options);
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPermissionRequest {
|
|
1669
|
+
return new GetPermissionRequest().fromJson(jsonValue, options);
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPermissionRequest {
|
|
1673
|
+
return new GetPermissionRequest().fromJsonString(jsonString, options);
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
static equals(a: GetPermissionRequest | PlainMessage<GetPermissionRequest> | undefined, b: GetPermissionRequest | PlainMessage<GetPermissionRequest> | undefined): boolean {
|
|
1677
|
+
return proto3.util.equals(GetPermissionRequest, a, b);
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
/**
|
|
1682
|
+
* @generated from message scalekit.v1.roles.GetPermissionResponse
|
|
1683
|
+
*/
|
|
1684
|
+
export class GetPermissionResponse extends Message<GetPermissionResponse> {
|
|
1685
|
+
/**
|
|
1686
|
+
* @generated from field: scalekit.v1.roles.Permission permission = 1;
|
|
1687
|
+
*/
|
|
1688
|
+
permission?: Permission;
|
|
1689
|
+
|
|
1690
|
+
constructor(data?: PartialMessage<GetPermissionResponse>) {
|
|
1691
|
+
super();
|
|
1692
|
+
proto3.util.initPartial(data, this);
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1696
|
+
static readonly typeName = "scalekit.v1.roles.GetPermissionResponse";
|
|
1697
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1698
|
+
{ no: 1, name: "permission", kind: "message", T: Permission },
|
|
1699
|
+
]);
|
|
1700
|
+
|
|
1701
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPermissionResponse {
|
|
1702
|
+
return new GetPermissionResponse().fromBinary(bytes, options);
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPermissionResponse {
|
|
1706
|
+
return new GetPermissionResponse().fromJson(jsonValue, options);
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPermissionResponse {
|
|
1710
|
+
return new GetPermissionResponse().fromJsonString(jsonString, options);
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
static equals(a: GetPermissionResponse | PlainMessage<GetPermissionResponse> | undefined, b: GetPermissionResponse | PlainMessage<GetPermissionResponse> | undefined): boolean {
|
|
1714
|
+
return proto3.util.equals(GetPermissionResponse, a, b);
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
/**
|
|
1719
|
+
* @generated from message scalekit.v1.roles.UpdatePermissionRequest
|
|
1720
|
+
*/
|
|
1721
|
+
export class UpdatePermissionRequest extends Message<UpdatePermissionRequest> {
|
|
1722
|
+
/**
|
|
1723
|
+
* @generated from field: string permission_name = 1;
|
|
1724
|
+
*/
|
|
1725
|
+
permissionName = "";
|
|
1726
|
+
|
|
1727
|
+
/**
|
|
1728
|
+
* @generated from field: scalekit.v1.roles.CreatePermission permission = 3;
|
|
1729
|
+
*/
|
|
1730
|
+
permission?: CreatePermission;
|
|
1731
|
+
|
|
1732
|
+
constructor(data?: PartialMessage<UpdatePermissionRequest>) {
|
|
1733
|
+
super();
|
|
1734
|
+
proto3.util.initPartial(data, this);
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1738
|
+
static readonly typeName = "scalekit.v1.roles.UpdatePermissionRequest";
|
|
1739
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1740
|
+
{ no: 1, name: "permission_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1741
|
+
{ no: 3, name: "permission", kind: "message", T: CreatePermission },
|
|
1742
|
+
]);
|
|
1743
|
+
|
|
1744
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdatePermissionRequest {
|
|
1745
|
+
return new UpdatePermissionRequest().fromBinary(bytes, options);
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdatePermissionRequest {
|
|
1749
|
+
return new UpdatePermissionRequest().fromJson(jsonValue, options);
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdatePermissionRequest {
|
|
1753
|
+
return new UpdatePermissionRequest().fromJsonString(jsonString, options);
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
static equals(a: UpdatePermissionRequest | PlainMessage<UpdatePermissionRequest> | undefined, b: UpdatePermissionRequest | PlainMessage<UpdatePermissionRequest> | undefined): boolean {
|
|
1757
|
+
return proto3.util.equals(UpdatePermissionRequest, a, b);
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
/**
|
|
1762
|
+
* @generated from message scalekit.v1.roles.UpdatePermissionResponse
|
|
1763
|
+
*/
|
|
1764
|
+
export class UpdatePermissionResponse extends Message<UpdatePermissionResponse> {
|
|
1765
|
+
/**
|
|
1766
|
+
* @generated from field: scalekit.v1.roles.Permission permission = 1;
|
|
1767
|
+
*/
|
|
1768
|
+
permission?: Permission;
|
|
1769
|
+
|
|
1770
|
+
constructor(data?: PartialMessage<UpdatePermissionResponse>) {
|
|
1771
|
+
super();
|
|
1772
|
+
proto3.util.initPartial(data, this);
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1776
|
+
static readonly typeName = "scalekit.v1.roles.UpdatePermissionResponse";
|
|
1777
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1778
|
+
{ no: 1, name: "permission", kind: "message", T: Permission },
|
|
1779
|
+
]);
|
|
1780
|
+
|
|
1781
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdatePermissionResponse {
|
|
1782
|
+
return new UpdatePermissionResponse().fromBinary(bytes, options);
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdatePermissionResponse {
|
|
1786
|
+
return new UpdatePermissionResponse().fromJson(jsonValue, options);
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdatePermissionResponse {
|
|
1790
|
+
return new UpdatePermissionResponse().fromJsonString(jsonString, options);
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
static equals(a: UpdatePermissionResponse | PlainMessage<UpdatePermissionResponse> | undefined, b: UpdatePermissionResponse | PlainMessage<UpdatePermissionResponse> | undefined): boolean {
|
|
1794
|
+
return proto3.util.equals(UpdatePermissionResponse, a, b);
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
/**
|
|
1799
|
+
* @generated from message scalekit.v1.roles.ListPermissionsRequest
|
|
1800
|
+
*/
|
|
1801
|
+
export class ListPermissionsRequest extends Message<ListPermissionsRequest> {
|
|
1802
|
+
/**
|
|
1803
|
+
* @generated from field: optional string page_token = 1;
|
|
1804
|
+
*/
|
|
1805
|
+
pageToken?: string;
|
|
1806
|
+
|
|
1807
|
+
/**
|
|
1808
|
+
* @generated from field: optional uint32 page_size = 2;
|
|
1809
|
+
*/
|
|
1810
|
+
pageSize?: number;
|
|
1811
|
+
|
|
1812
|
+
constructor(data?: PartialMessage<ListPermissionsRequest>) {
|
|
1813
|
+
super();
|
|
1814
|
+
proto3.util.initPartial(data, this);
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1818
|
+
static readonly typeName = "scalekit.v1.roles.ListPermissionsRequest";
|
|
1819
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1820
|
+
{ no: 1, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1821
|
+
{ no: 2, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1822
|
+
]);
|
|
1823
|
+
|
|
1824
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPermissionsRequest {
|
|
1825
|
+
return new ListPermissionsRequest().fromBinary(bytes, options);
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPermissionsRequest {
|
|
1829
|
+
return new ListPermissionsRequest().fromJson(jsonValue, options);
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPermissionsRequest {
|
|
1833
|
+
return new ListPermissionsRequest().fromJsonString(jsonString, options);
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
static equals(a: ListPermissionsRequest | PlainMessage<ListPermissionsRequest> | undefined, b: ListPermissionsRequest | PlainMessage<ListPermissionsRequest> | undefined): boolean {
|
|
1837
|
+
return proto3.util.equals(ListPermissionsRequest, a, b);
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* @generated from message scalekit.v1.roles.ListPermissionsResponse
|
|
1843
|
+
*/
|
|
1844
|
+
export class ListPermissionsResponse extends Message<ListPermissionsResponse> {
|
|
1845
|
+
/**
|
|
1846
|
+
* @generated from field: repeated scalekit.v1.roles.Permission permissions = 1;
|
|
1847
|
+
*/
|
|
1848
|
+
permissions: Permission[] = [];
|
|
1849
|
+
|
|
1850
|
+
/**
|
|
1851
|
+
* @generated from field: string prev_page_token = 2;
|
|
1852
|
+
*/
|
|
1853
|
+
prevPageToken = "";
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* @generated from field: string next_page_token = 3;
|
|
1857
|
+
*/
|
|
1858
|
+
nextPageToken = "";
|
|
1859
|
+
|
|
1860
|
+
/**
|
|
1861
|
+
* @generated from field: uint32 total_size = 4;
|
|
1862
|
+
*/
|
|
1863
|
+
totalSize = 0;
|
|
1864
|
+
|
|
1865
|
+
constructor(data?: PartialMessage<ListPermissionsResponse>) {
|
|
1866
|
+
super();
|
|
1867
|
+
proto3.util.initPartial(data, this);
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1871
|
+
static readonly typeName = "scalekit.v1.roles.ListPermissionsResponse";
|
|
1872
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1873
|
+
{ no: 1, name: "permissions", kind: "message", T: Permission, repeated: true },
|
|
1874
|
+
{ no: 2, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1875
|
+
{ no: 3, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1876
|
+
{ no: 4, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1877
|
+
]);
|
|
1878
|
+
|
|
1879
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPermissionsResponse {
|
|
1880
|
+
return new ListPermissionsResponse().fromBinary(bytes, options);
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPermissionsResponse {
|
|
1884
|
+
return new ListPermissionsResponse().fromJson(jsonValue, options);
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPermissionsResponse {
|
|
1888
|
+
return new ListPermissionsResponse().fromJsonString(jsonString, options);
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
static equals(a: ListPermissionsResponse | PlainMessage<ListPermissionsResponse> | undefined, b: ListPermissionsResponse | PlainMessage<ListPermissionsResponse> | undefined): boolean {
|
|
1892
|
+
return proto3.util.equals(ListPermissionsResponse, a, b);
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
/**
|
|
1897
|
+
* @generated from message scalekit.v1.roles.DeletePermissionRequest
|
|
1898
|
+
*/
|
|
1899
|
+
export class DeletePermissionRequest extends Message<DeletePermissionRequest> {
|
|
1900
|
+
/**
|
|
1901
|
+
* @generated from field: string permission_name = 1;
|
|
1902
|
+
*/
|
|
1903
|
+
permissionName = "";
|
|
1904
|
+
|
|
1905
|
+
constructor(data?: PartialMessage<DeletePermissionRequest>) {
|
|
1906
|
+
super();
|
|
1907
|
+
proto3.util.initPartial(data, this);
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1911
|
+
static readonly typeName = "scalekit.v1.roles.DeletePermissionRequest";
|
|
1912
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1913
|
+
{ no: 1, name: "permission_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1914
|
+
]);
|
|
1915
|
+
|
|
1916
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeletePermissionRequest {
|
|
1917
|
+
return new DeletePermissionRequest().fromBinary(bytes, options);
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeletePermissionRequest {
|
|
1921
|
+
return new DeletePermissionRequest().fromJson(jsonValue, options);
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeletePermissionRequest {
|
|
1925
|
+
return new DeletePermissionRequest().fromJsonString(jsonString, options);
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1928
|
+
static equals(a: DeletePermissionRequest | PlainMessage<DeletePermissionRequest> | undefined, b: DeletePermissionRequest | PlainMessage<DeletePermissionRequest> | undefined): boolean {
|
|
1929
|
+
return proto3.util.equals(DeletePermissionRequest, a, b);
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
/**
|
|
1934
|
+
* @generated from message scalekit.v1.roles.ListRolePermissionsRequest
|
|
1935
|
+
*/
|
|
1936
|
+
export class ListRolePermissionsRequest extends Message<ListRolePermissionsRequest> {
|
|
1937
|
+
/**
|
|
1938
|
+
* @generated from field: string role_name = 1;
|
|
1939
|
+
*/
|
|
1940
|
+
roleName = "";
|
|
1941
|
+
|
|
1942
|
+
constructor(data?: PartialMessage<ListRolePermissionsRequest>) {
|
|
1943
|
+
super();
|
|
1944
|
+
proto3.util.initPartial(data, this);
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1948
|
+
static readonly typeName = "scalekit.v1.roles.ListRolePermissionsRequest";
|
|
1949
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1950
|
+
{ no: 1, name: "role_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1951
|
+
]);
|
|
1952
|
+
|
|
1953
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRolePermissionsRequest {
|
|
1954
|
+
return new ListRolePermissionsRequest().fromBinary(bytes, options);
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRolePermissionsRequest {
|
|
1958
|
+
return new ListRolePermissionsRequest().fromJson(jsonValue, options);
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRolePermissionsRequest {
|
|
1962
|
+
return new ListRolePermissionsRequest().fromJsonString(jsonString, options);
|
|
1963
|
+
}
|
|
1964
|
+
|
|
1965
|
+
static equals(a: ListRolePermissionsRequest | PlainMessage<ListRolePermissionsRequest> | undefined, b: ListRolePermissionsRequest | PlainMessage<ListRolePermissionsRequest> | undefined): boolean {
|
|
1966
|
+
return proto3.util.equals(ListRolePermissionsRequest, a, b);
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
/**
|
|
1971
|
+
* @generated from message scalekit.v1.roles.ListRolePermissionsResponse
|
|
1972
|
+
*/
|
|
1973
|
+
export class ListRolePermissionsResponse extends Message<ListRolePermissionsResponse> {
|
|
1974
|
+
/**
|
|
1975
|
+
* @generated from field: repeated scalekit.v1.roles.Permission permissions = 1;
|
|
1976
|
+
*/
|
|
1977
|
+
permissions: Permission[] = [];
|
|
1978
|
+
|
|
1979
|
+
constructor(data?: PartialMessage<ListRolePermissionsResponse>) {
|
|
1980
|
+
super();
|
|
1981
|
+
proto3.util.initPartial(data, this);
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1985
|
+
static readonly typeName = "scalekit.v1.roles.ListRolePermissionsResponse";
|
|
1986
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1987
|
+
{ no: 1, name: "permissions", kind: "message", T: Permission, repeated: true },
|
|
1988
|
+
]);
|
|
1989
|
+
|
|
1990
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRolePermissionsResponse {
|
|
1991
|
+
return new ListRolePermissionsResponse().fromBinary(bytes, options);
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRolePermissionsResponse {
|
|
1995
|
+
return new ListRolePermissionsResponse().fromJson(jsonValue, options);
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRolePermissionsResponse {
|
|
1999
|
+
return new ListRolePermissionsResponse().fromJsonString(jsonString, options);
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
static equals(a: ListRolePermissionsResponse | PlainMessage<ListRolePermissionsResponse> | undefined, b: ListRolePermissionsResponse | PlainMessage<ListRolePermissionsResponse> | undefined): boolean {
|
|
2003
|
+
return proto3.util.equals(ListRolePermissionsResponse, a, b);
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
/**
|
|
2008
|
+
* @generated from message scalekit.v1.roles.AddPermissionsToRoleRequest
|
|
2009
|
+
*/
|
|
2010
|
+
export class AddPermissionsToRoleRequest extends Message<AddPermissionsToRoleRequest> {
|
|
2011
|
+
/**
|
|
2012
|
+
* @generated from field: string role_name = 1;
|
|
2013
|
+
*/
|
|
2014
|
+
roleName = "";
|
|
2015
|
+
|
|
2016
|
+
/**
|
|
2017
|
+
* @generated from field: repeated string permission_names = 2;
|
|
2018
|
+
*/
|
|
2019
|
+
permissionNames: string[] = [];
|
|
2020
|
+
|
|
2021
|
+
constructor(data?: PartialMessage<AddPermissionsToRoleRequest>) {
|
|
2022
|
+
super();
|
|
2023
|
+
proto3.util.initPartial(data, this);
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2027
|
+
static readonly typeName = "scalekit.v1.roles.AddPermissionsToRoleRequest";
|
|
2028
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2029
|
+
{ no: 1, name: "role_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2030
|
+
{ no: 2, name: "permission_names", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
2031
|
+
]);
|
|
2032
|
+
|
|
2033
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AddPermissionsToRoleRequest {
|
|
2034
|
+
return new AddPermissionsToRoleRequest().fromBinary(bytes, options);
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AddPermissionsToRoleRequest {
|
|
2038
|
+
return new AddPermissionsToRoleRequest().fromJson(jsonValue, options);
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AddPermissionsToRoleRequest {
|
|
2042
|
+
return new AddPermissionsToRoleRequest().fromJsonString(jsonString, options);
|
|
2043
|
+
}
|
|
2044
|
+
|
|
2045
|
+
static equals(a: AddPermissionsToRoleRequest | PlainMessage<AddPermissionsToRoleRequest> | undefined, b: AddPermissionsToRoleRequest | PlainMessage<AddPermissionsToRoleRequest> | undefined): boolean {
|
|
2046
|
+
return proto3.util.equals(AddPermissionsToRoleRequest, a, b);
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
/**
|
|
2051
|
+
* @generated from message scalekit.v1.roles.AddPermissionsToRoleResponse
|
|
2052
|
+
*/
|
|
2053
|
+
export class AddPermissionsToRoleResponse extends Message<AddPermissionsToRoleResponse> {
|
|
2054
|
+
/**
|
|
2055
|
+
* @generated from field: repeated scalekit.v1.roles.Permission permissions = 1;
|
|
2056
|
+
*/
|
|
2057
|
+
permissions: Permission[] = [];
|
|
2058
|
+
|
|
2059
|
+
constructor(data?: PartialMessage<AddPermissionsToRoleResponse>) {
|
|
2060
|
+
super();
|
|
2061
|
+
proto3.util.initPartial(data, this);
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2065
|
+
static readonly typeName = "scalekit.v1.roles.AddPermissionsToRoleResponse";
|
|
2066
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2067
|
+
{ no: 1, name: "permissions", kind: "message", T: Permission, repeated: true },
|
|
2068
|
+
]);
|
|
2069
|
+
|
|
2070
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AddPermissionsToRoleResponse {
|
|
2071
|
+
return new AddPermissionsToRoleResponse().fromBinary(bytes, options);
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AddPermissionsToRoleResponse {
|
|
2075
|
+
return new AddPermissionsToRoleResponse().fromJson(jsonValue, options);
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AddPermissionsToRoleResponse {
|
|
2079
|
+
return new AddPermissionsToRoleResponse().fromJsonString(jsonString, options);
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
static equals(a: AddPermissionsToRoleResponse | PlainMessage<AddPermissionsToRoleResponse> | undefined, b: AddPermissionsToRoleResponse | PlainMessage<AddPermissionsToRoleResponse> | undefined): boolean {
|
|
2083
|
+
return proto3.util.equals(AddPermissionsToRoleResponse, a, b);
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2086
|
+
|
|
2087
|
+
/**
|
|
2088
|
+
* @generated from message scalekit.v1.roles.RemovePermissionFromRoleRequest
|
|
2089
|
+
*/
|
|
2090
|
+
export class RemovePermissionFromRoleRequest extends Message<RemovePermissionFromRoleRequest> {
|
|
2091
|
+
/**
|
|
2092
|
+
* @generated from field: string role_name = 1;
|
|
2093
|
+
*/
|
|
2094
|
+
roleName = "";
|
|
2095
|
+
|
|
2096
|
+
/**
|
|
2097
|
+
* @generated from field: string permission_name = 2;
|
|
2098
|
+
*/
|
|
2099
|
+
permissionName = "";
|
|
2100
|
+
|
|
2101
|
+
constructor(data?: PartialMessage<RemovePermissionFromRoleRequest>) {
|
|
2102
|
+
super();
|
|
2103
|
+
proto3.util.initPartial(data, this);
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2107
|
+
static readonly typeName = "scalekit.v1.roles.RemovePermissionFromRoleRequest";
|
|
2108
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2109
|
+
{ no: 1, name: "role_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2110
|
+
{ no: 2, name: "permission_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2111
|
+
]);
|
|
2112
|
+
|
|
2113
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemovePermissionFromRoleRequest {
|
|
2114
|
+
return new RemovePermissionFromRoleRequest().fromBinary(bytes, options);
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemovePermissionFromRoleRequest {
|
|
2118
|
+
return new RemovePermissionFromRoleRequest().fromJson(jsonValue, options);
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemovePermissionFromRoleRequest {
|
|
2122
|
+
return new RemovePermissionFromRoleRequest().fromJsonString(jsonString, options);
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
static equals(a: RemovePermissionFromRoleRequest | PlainMessage<RemovePermissionFromRoleRequest> | undefined, b: RemovePermissionFromRoleRequest | PlainMessage<RemovePermissionFromRoleRequest> | undefined): boolean {
|
|
2126
|
+
return proto3.util.equals(RemovePermissionFromRoleRequest, a, b);
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
/**
|
|
2131
|
+
* @generated from message scalekit.v1.roles.ListEffectiveRolePermissionsRequest
|
|
2132
|
+
*/
|
|
2133
|
+
export class ListEffectiveRolePermissionsRequest extends Message<ListEffectiveRolePermissionsRequest> {
|
|
2134
|
+
/**
|
|
2135
|
+
* @generated from field: string role_name = 1;
|
|
2136
|
+
*/
|
|
2137
|
+
roleName = "";
|
|
2138
|
+
|
|
2139
|
+
constructor(data?: PartialMessage<ListEffectiveRolePermissionsRequest>) {
|
|
2140
|
+
super();
|
|
2141
|
+
proto3.util.initPartial(data, this);
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2145
|
+
static readonly typeName = "scalekit.v1.roles.ListEffectiveRolePermissionsRequest";
|
|
2146
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2147
|
+
{ no: 1, name: "role_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2148
|
+
]);
|
|
2149
|
+
|
|
2150
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListEffectiveRolePermissionsRequest {
|
|
2151
|
+
return new ListEffectiveRolePermissionsRequest().fromBinary(bytes, options);
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListEffectiveRolePermissionsRequest {
|
|
2155
|
+
return new ListEffectiveRolePermissionsRequest().fromJson(jsonValue, options);
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListEffectiveRolePermissionsRequest {
|
|
2159
|
+
return new ListEffectiveRolePermissionsRequest().fromJsonString(jsonString, options);
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
static equals(a: ListEffectiveRolePermissionsRequest | PlainMessage<ListEffectiveRolePermissionsRequest> | undefined, b: ListEffectiveRolePermissionsRequest | PlainMessage<ListEffectiveRolePermissionsRequest> | undefined): boolean {
|
|
2163
|
+
return proto3.util.equals(ListEffectiveRolePermissionsRequest, a, b);
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
/**
|
|
2168
|
+
* @generated from message scalekit.v1.roles.ListEffectiveRolePermissionsResponse
|
|
2169
|
+
*/
|
|
2170
|
+
export class ListEffectiveRolePermissionsResponse extends Message<ListEffectiveRolePermissionsResponse> {
|
|
2171
|
+
/**
|
|
2172
|
+
* @generated from field: repeated scalekit.v1.roles.Permission permissions = 1;
|
|
2173
|
+
*/
|
|
2174
|
+
permissions: Permission[] = [];
|
|
2175
|
+
|
|
2176
|
+
constructor(data?: PartialMessage<ListEffectiveRolePermissionsResponse>) {
|
|
2177
|
+
super();
|
|
2178
|
+
proto3.util.initPartial(data, this);
|
|
2179
|
+
}
|
|
2180
|
+
|
|
2181
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2182
|
+
static readonly typeName = "scalekit.v1.roles.ListEffectiveRolePermissionsResponse";
|
|
2183
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2184
|
+
{ no: 1, name: "permissions", kind: "message", T: Permission, repeated: true },
|
|
2185
|
+
]);
|
|
2186
|
+
|
|
2187
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListEffectiveRolePermissionsResponse {
|
|
2188
|
+
return new ListEffectiveRolePermissionsResponse().fromBinary(bytes, options);
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListEffectiveRolePermissionsResponse {
|
|
2192
|
+
return new ListEffectiveRolePermissionsResponse().fromJson(jsonValue, options);
|
|
2193
|
+
}
|
|
2194
|
+
|
|
2195
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListEffectiveRolePermissionsResponse {
|
|
2196
|
+
return new ListEffectiveRolePermissionsResponse().fromJsonString(jsonString, options);
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
static equals(a: ListEffectiveRolePermissionsResponse | PlainMessage<ListEffectiveRolePermissionsResponse> | undefined, b: ListEffectiveRolePermissionsResponse | PlainMessage<ListEffectiveRolePermissionsResponse> | undefined): boolean {
|
|
2200
|
+
return proto3.util.equals(ListEffectiveRolePermissionsResponse, a, b);
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
/**
|
|
2205
|
+
* @generated from message scalekit.v1.roles.ListDependentRolesRequest
|
|
2206
|
+
*/
|
|
2207
|
+
export class ListDependentRolesRequest extends Message<ListDependentRolesRequest> {
|
|
2208
|
+
/**
|
|
2209
|
+
* @generated from field: string role_name = 1;
|
|
2210
|
+
*/
|
|
2211
|
+
roleName = "";
|
|
2212
|
+
|
|
2213
|
+
constructor(data?: PartialMessage<ListDependentRolesRequest>) {
|
|
2214
|
+
super();
|
|
2215
|
+
proto3.util.initPartial(data, this);
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2219
|
+
static readonly typeName = "scalekit.v1.roles.ListDependentRolesRequest";
|
|
2220
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2221
|
+
{ no: 1, name: "role_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2222
|
+
]);
|
|
2223
|
+
|
|
2224
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListDependentRolesRequest {
|
|
2225
|
+
return new ListDependentRolesRequest().fromBinary(bytes, options);
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListDependentRolesRequest {
|
|
2229
|
+
return new ListDependentRolesRequest().fromJson(jsonValue, options);
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListDependentRolesRequest {
|
|
2233
|
+
return new ListDependentRolesRequest().fromJsonString(jsonString, options);
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
static equals(a: ListDependentRolesRequest | PlainMessage<ListDependentRolesRequest> | undefined, b: ListDependentRolesRequest | PlainMessage<ListDependentRolesRequest> | undefined): boolean {
|
|
2237
|
+
return proto3.util.equals(ListDependentRolesRequest, a, b);
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
/**
|
|
2242
|
+
* @generated from message scalekit.v1.roles.ListDependentRolesResponse
|
|
2243
|
+
*/
|
|
2244
|
+
export class ListDependentRolesResponse extends Message<ListDependentRolesResponse> {
|
|
2245
|
+
/**
|
|
2246
|
+
* @generated from field: repeated scalekit.v1.roles.Role roles = 1;
|
|
2247
|
+
*/
|
|
2248
|
+
roles: Role[] = [];
|
|
2249
|
+
|
|
2250
|
+
constructor(data?: PartialMessage<ListDependentRolesResponse>) {
|
|
2251
|
+
super();
|
|
2252
|
+
proto3.util.initPartial(data, this);
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2256
|
+
static readonly typeName = "scalekit.v1.roles.ListDependentRolesResponse";
|
|
2257
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2258
|
+
{ no: 1, name: "roles", kind: "message", T: Role, repeated: true },
|
|
2259
|
+
]);
|
|
2260
|
+
|
|
2261
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListDependentRolesResponse {
|
|
2262
|
+
return new ListDependentRolesResponse().fromBinary(bytes, options);
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListDependentRolesResponse {
|
|
2266
|
+
return new ListDependentRolesResponse().fromJson(jsonValue, options);
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListDependentRolesResponse {
|
|
2270
|
+
return new ListDependentRolesResponse().fromJsonString(jsonString, options);
|
|
2271
|
+
}
|
|
2272
|
+
|
|
2273
|
+
static equals(a: ListDependentRolesResponse | PlainMessage<ListDependentRolesResponse> | undefined, b: ListDependentRolesResponse | PlainMessage<ListDependentRolesResponse> | undefined): boolean {
|
|
2274
|
+
return proto3.util.equals(ListDependentRolesResponse, a, b);
|
|
2275
|
+
}
|
|
2276
|
+
}
|
|
2277
|
+
|
|
2278
|
+
/**
|
|
2279
|
+
* @generated from message scalekit.v1.roles.DeleteRoleBaseRequest
|
|
2280
|
+
*/
|
|
2281
|
+
export class DeleteRoleBaseRequest extends Message<DeleteRoleBaseRequest> {
|
|
2282
|
+
/**
|
|
2283
|
+
* @generated from field: string role_name = 1;
|
|
2284
|
+
*/
|
|
2285
|
+
roleName = "";
|
|
2286
|
+
|
|
2287
|
+
constructor(data?: PartialMessage<DeleteRoleBaseRequest>) {
|
|
2288
|
+
super();
|
|
2289
|
+
proto3.util.initPartial(data, this);
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2293
|
+
static readonly typeName = "scalekit.v1.roles.DeleteRoleBaseRequest";
|
|
2294
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2295
|
+
{ no: 1, name: "role_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2296
|
+
]);
|
|
2297
|
+
|
|
2298
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteRoleBaseRequest {
|
|
2299
|
+
return new DeleteRoleBaseRequest().fromBinary(bytes, options);
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteRoleBaseRequest {
|
|
2303
|
+
return new DeleteRoleBaseRequest().fromJson(jsonValue, options);
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteRoleBaseRequest {
|
|
2307
|
+
return new DeleteRoleBaseRequest().fromJsonString(jsonString, options);
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
static equals(a: DeleteRoleBaseRequest | PlainMessage<DeleteRoleBaseRequest> | undefined, b: DeleteRoleBaseRequest | PlainMessage<DeleteRoleBaseRequest> | undefined): boolean {
|
|
2311
|
+
return proto3.util.equals(DeleteRoleBaseRequest, a, b);
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
/**
|
|
2316
|
+
* @generated from message scalekit.v1.roles.DeleteOrganizationRoleBaseRequest
|
|
2317
|
+
*/
|
|
2318
|
+
export class DeleteOrganizationRoleBaseRequest extends Message<DeleteOrganizationRoleBaseRequest> {
|
|
2319
|
+
/**
|
|
2320
|
+
* @generated from field: string org_id = 1;
|
|
2321
|
+
*/
|
|
2322
|
+
orgId = "";
|
|
2323
|
+
|
|
2324
|
+
/**
|
|
2325
|
+
* @generated from field: string role_name = 2;
|
|
2326
|
+
*/
|
|
2327
|
+
roleName = "";
|
|
2328
|
+
|
|
2329
|
+
constructor(data?: PartialMessage<DeleteOrganizationRoleBaseRequest>) {
|
|
2330
|
+
super();
|
|
2331
|
+
proto3.util.initPartial(data, this);
|
|
2332
|
+
}
|
|
2333
|
+
|
|
2334
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2335
|
+
static readonly typeName = "scalekit.v1.roles.DeleteOrganizationRoleBaseRequest";
|
|
2336
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2337
|
+
{ no: 1, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2338
|
+
{ no: 2, name: "role_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2339
|
+
]);
|
|
2340
|
+
|
|
2341
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteOrganizationRoleBaseRequest {
|
|
2342
|
+
return new DeleteOrganizationRoleBaseRequest().fromBinary(bytes, options);
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteOrganizationRoleBaseRequest {
|
|
2346
|
+
return new DeleteOrganizationRoleBaseRequest().fromJson(jsonValue, options);
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2349
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteOrganizationRoleBaseRequest {
|
|
2350
|
+
return new DeleteOrganizationRoleBaseRequest().fromJsonString(jsonString, options);
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
static equals(a: DeleteOrganizationRoleBaseRequest | PlainMessage<DeleteOrganizationRoleBaseRequest> | undefined, b: DeleteOrganizationRoleBaseRequest | PlainMessage<DeleteOrganizationRoleBaseRequest> | undefined): boolean {
|
|
2354
|
+
return proto3.util.equals(DeleteOrganizationRoleBaseRequest, a, b);
|
|
2355
|
+
}
|
|
2356
|
+
}
|
|
2357
|
+
|