@raystack/proton 0.1.0-8a4f578dceca476c696c82054faaf4871b1b949c → 0.1.0-8cb19702a3e47d173732860d58084b83d6941865
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/google/api/annotations_pb.ts +15 -9
- package/google/api/field_behavior_pb.ts +19 -19
- package/google/api/http_pb.ts +43 -108
- package/google/api/httpbody_pb.ts +23 -37
- package/index.ts +10 -0
- package/package.json +61 -17
- package/protoc-gen-openapiv2/options/annotations_pb.ts +23 -29
- package/protoc-gen-openapiv2/options/openapiv2_pb.ts +338 -808
- package/raystack/assets/index.ts +29 -29
- package/raystack/assets/v1beta1/bucket_pb.ts +46 -89
- package/raystack/assets/v1beta1/dashboard_pb.ts +49 -97
- package/raystack/assets/v1beta1/event_pb.ts +22 -36
- package/raystack/assets/v1beta1/group_pb.ts +38 -74
- package/raystack/assets/v1beta1/job_pb.ts +30 -43
- package/raystack/assets/v1beta1/lineage_pb.ts +22 -36
- package/raystack/assets/v1beta1/ownership_pb.ts +31 -68
- package/raystack/assets/v1beta1/preview_pb.ts +21 -34
- package/raystack/assets/v1beta1/properties_pb.ts +22 -37
- package/raystack/assets/v1beta1/resource_pb.ts +24 -43
- package/raystack/assets/v1beta1/schema_pb.ts +59 -145
- package/raystack/assets/v1beta1/table_pb.ts +59 -120
- package/raystack/assets/v1beta1/timestamp_pb.ts +28 -62
- package/raystack/assets/v1beta1/topic_pb.ts +43 -78
- package/raystack/assets/v1beta1/user_pb.ts +58 -125
- package/raystack/assets/v1beta2/application_pb.ts +23 -39
- package/raystack/assets/v1beta2/asset_pb.ts +30 -53
- package/raystack/assets/v1beta2/bucket_pb.ts +41 -87
- package/raystack/assets/v1beta2/common_pb.ts +56 -137
- package/raystack/assets/v1beta2/dashboard_pb.ts +44 -93
- package/raystack/assets/v1beta2/experiment_pb.ts +38 -79
- package/raystack/assets/v1beta2/feature_table_pb.ts +51 -115
- package/raystack/assets/v1beta2/group_pb.ts +32 -68
- package/raystack/assets/v1beta2/job_pb.ts +21 -35
- package/raystack/assets/v1beta2/metric_pb.ts +25 -43
- package/raystack/assets/v1beta2/model_pb.ts +59 -147
- package/raystack/assets/v1beta2/table_pb.ts +82 -200
- package/raystack/assets/v1beta2/topic_pb.ts +41 -99
- package/raystack/assets/v1beta2/user_pb.ts +53 -121
- package/raystack/common/index.ts +1 -2
- package/raystack/common/v1/service-CommonService_connectquery.ts +3 -14
- package/raystack/common/v1/service_pb.ts +57 -97
- package/raystack/compass/index.ts +1 -2
- package/raystack/compass/v1beta1/service-CompassService_connectquery.ts +44 -424
- package/raystack/compass/v1beta1/service_pb.ts +1448 -3319
- package/raystack/entropy/index.ts +2 -4
- package/raystack/entropy/v1beta1/module-ModuleService_connectquery.ts +7 -54
- package/raystack/entropy/v1beta1/module_pb.ts +156 -324
- package/raystack/entropy/v1beta1/resource-ResourceService_connectquery.ts +9 -74
- package/raystack/entropy/v1beta1/resource_pb.ts +330 -756
- package/raystack/frontier/index.ts +3 -5
- package/raystack/frontier/v1beta1/admin-AdminService_connectquery.ts +60 -514
- package/raystack/frontier/v1beta1/admin_pb.ts +1774 -3791
- package/raystack/frontier/v1beta1/frontier-FrontierService_connectquery.ts +169 -1674
- package/raystack/frontier/v1beta1/frontier_pb.ts +4850 -10959
- package/raystack/frontier/v1beta1/models_pb.ts +810 -2296
- package/raystack/guardian/index.ts +1 -2
- package/raystack/guardian/v1beta1/guardian-GuardianService_connectquery.ts +42 -404
- package/raystack/guardian/v1beta1/guardian_pb.ts +1584 -3783
- package/raystack/optimus/core/v1beta1/backup-BackupService_connectquery.ts +5 -34
- package/raystack/optimus/core/v1beta1/backup_pb.ts +137 -273
- package/raystack/optimus/core/v1beta1/job_run-JobRunService_connectquery.ts +6 -44
- package/raystack/optimus/core/v1beta1/job_run_pb.ts +194 -376
- package/raystack/optimus/core/v1beta1/job_spec-JobSpecificationService_connectquery.ts +17 -154
- package/raystack/optimus/core/v1beta1/job_spec_pb.ts +910 -2081
- package/raystack/optimus/core/v1beta1/namespace-NamespaceService_connectquery.ts +5 -34
- package/raystack/optimus/core/v1beta1/namespace_pb.ts +113 -212
- package/raystack/optimus/core/v1beta1/project-ProjectService_connectquery.ts +5 -34
- package/raystack/optimus/core/v1beta1/project_pb.ts +121 -238
- package/raystack/optimus/core/v1beta1/replay-ReplayService_connectquery.ts +6 -44
- package/raystack/optimus/core/v1beta1/replay_pb.ts +160 -335
- package/raystack/optimus/core/v1beta1/resource-ResourceService_connectquery.ts +8 -64
- package/raystack/optimus/core/v1beta1/resource_pb.ts +266 -527
- package/raystack/optimus/core/v1beta1/runtime-RuntimeService_connectquery.ts +3 -14
- package/raystack/optimus/core/v1beta1/runtime_pb.ts +48 -61
- package/raystack/optimus/core/v1beta1/secret-SecretService_connectquery.ts +6 -44
- package/raystack/optimus/core/v1beta1/secret_pb.ts +155 -283
- package/raystack/optimus/core/v1beta1/status_pb.ts +35 -54
- package/raystack/optimus/integration/v1beta1/event_pb.ts +75 -187
- package/raystack/optimus/plugins/v1beta1/dependency_resolver-DependencyResolverModService_connectquery.ts +6 -44
- package/raystack/optimus/plugins/v1beta1/dependency_resolver_pb.ts +193 -426
- package/raystack/predator/index.ts +2 -2
- package/raystack/predator/v1beta1/metrics_log_pb.ts +67 -173
- package/raystack/predator/v1beta1/result_log_pb.ts +60 -144
- package/raystack/raccoon/index.ts +1 -2
- package/raystack/raccoon/v1beta1/raccoon-EventService_connectquery.ts +3 -14
- package/raystack/raccoon/v1beta1/raccoon_pb.ts +142 -189
- package/raystack/siren/index.ts +1 -2
- package/raystack/siren/v1beta1/siren-SirenService_connectquery.ts +37 -354
- package/raystack/siren/v1beta1/siren_pb.ts +1155 -2637
- package/raystack/stencil/index.ts +1 -2
- package/raystack/stencil/v1beta1/stencil-StencilService_connectquery.ts +18 -164
- package/raystack/stencil/v1beta1/stencil_pb.ts +530 -1157
- package/validate/validate_pb.ts +401 -1038
- package/google/api/field_behavior.ts +0 -95
- package/google/api/http.ts +0 -695
- package/google/api/httpbody.ts +0 -159
- package/google/protobuf/any.ts +0 -322
- package/google/protobuf/descriptor.ts +0 -3475
- package/google/protobuf/duration.ts +0 -231
- package/google/protobuf/struct.ts +0 -484
- package/google/protobuf/timestamp.ts +0 -290
- package/google/protobuf/wrappers.ts +0 -752
- package/protoc-gen-openapiv2/options/openapiv2.ts +0 -3110
- package/raystack/assets/v1beta1/bucket.ts +0 -362
- package/raystack/assets/v1beta1/dashboard.ts +0 -426
- package/raystack/assets/v1beta1/event.ts +0 -105
- package/raystack/assets/v1beta1/group.ts +0 -223
- package/raystack/assets/v1beta1/job.ts +0 -147
- package/raystack/assets/v1beta1/lineage.ts +0 -90
- package/raystack/assets/v1beta1/ownership.ts +0 -179
- package/raystack/assets/v1beta1/preview.ts +0 -87
- package/raystack/assets/v1beta1/properties.ts +0 -116
- package/raystack/assets/v1beta1/resource.ts +0 -149
- package/raystack/assets/v1beta1/schema.ts +0 -421
- package/raystack/assets/v1beta1/table.ts +0 -408
- package/raystack/assets/v1beta1/timestamp.ts +0 -158
- package/raystack/assets/v1beta1/topic.ts +0 -253
- package/raystack/assets/v1beta1/user.ts +0 -451
- package/raystack/assets/v1beta2/application.ts +0 -125
- package/raystack/assets/v1beta2/asset.ts +0 -269
- package/raystack/assets/v1beta2/bucket.ts +0 -341
- package/raystack/assets/v1beta2/common.ts +0 -392
- package/raystack/assets/v1beta2/dashboard.ts +0 -393
- package/raystack/assets/v1beta2/experiment.ts +0 -274
- package/raystack/assets/v1beta2/feature_table.ts +0 -387
- package/raystack/assets/v1beta2/group.ts +0 -178
- package/raystack/assets/v1beta2/job.ts +0 -99
- package/raystack/assets/v1beta2/metric.ts +0 -163
- package/raystack/assets/v1beta2/model.ts +0 -519
- package/raystack/assets/v1beta2/table.ts +0 -663
- package/raystack/assets/v1beta2/topic.ts +0 -275
- package/raystack/assets/v1beta2/user.ts +0 -433
- package/raystack/common/v1/service.client.ts +0 -37
- package/raystack/common/v1/service.ts +0 -245
- package/raystack/common/v1/service_connect.ts +0 -26
- package/raystack/compass/v1beta1/service.client.ts +0 -594
- package/raystack/compass/v1beta1/service.ts +0 -8169
- package/raystack/compass/v1beta1/service_connect.ts +0 -407
- package/raystack/entropy/v1beta1/module.client.ts +0 -89
- package/raystack/entropy/v1beta1/module.ts +0 -692
- package/raystack/entropy/v1beta1/module_connect.ts +0 -62
- package/raystack/entropy/v1beta1/resource.client.ts +0 -129
- package/raystack/entropy/v1beta1/resource.ts +0 -1817
- package/raystack/entropy/v1beta1/resource_connect.ts +0 -89
- package/raystack/frontier/v1beta1/admin.client.ts +0 -849
- package/raystack/frontier/v1beta1/admin.ts +0 -9007
- package/raystack/frontier/v1beta1/admin_connect.ts +0 -573
- package/raystack/frontier/v1beta1/frontier.client.ts +0 -2307
- package/raystack/frontier/v1beta1/frontier.ts +0 -23706
- package/raystack/frontier/v1beta1/frontier_connect.ts +0 -1574
- package/raystack/frontier/v1beta1/models.ts +0 -7433
- package/raystack/guardian/v1beta1/guardian.client.ts +0 -552
- package/raystack/guardian/v1beta1/guardian.ts +0 -9688
- package/raystack/guardian/v1beta1/guardian_connect.ts +0 -381
- package/raystack/optimus/core/v1beta1/backup.client.ts +0 -63
- package/raystack/optimus/core/v1beta1/backup.ts +0 -708
- package/raystack/optimus/core/v1beta1/backup_connect.ts +0 -44
- package/raystack/optimus/core/v1beta1/job_run.client.ts +0 -96
- package/raystack/optimus/core/v1beta1/job_run.ts +0 -1008
- package/raystack/optimus/core/v1beta1/job_run_connect.ts +0 -63
- package/raystack/optimus/core/v1beta1/job_spec.client.ts +0 -363
- package/raystack/optimus/core/v1beta1/job_spec.ts +0 -5134
- package/raystack/optimus/core/v1beta1/job_spec_connect.ts +0 -233
- package/raystack/optimus/core/v1beta1/namespace.client.ts +0 -75
- package/raystack/optimus/core/v1beta1/namespace.ts +0 -477
- package/raystack/optimus/core/v1beta1/namespace_connect.ts +0 -50
- package/raystack/optimus/core/v1beta1/project.client.ts +0 -75
- package/raystack/optimus/core/v1beta1/project.ts +0 -520
- package/raystack/optimus/core/v1beta1/project_connect.ts +0 -50
- package/raystack/optimus/core/v1beta1/replay.client.ts +0 -76
- package/raystack/optimus/core/v1beta1/replay.ts +0 -881
- package/raystack/optimus/core/v1beta1/replay_connect.ts +0 -53
- package/raystack/optimus/core/v1beta1/resource.client.ts +0 -148
- package/raystack/optimus/core/v1beta1/resource.ts +0 -1329
- package/raystack/optimus/core/v1beta1/resource_connect.ts +0 -96
- package/raystack/optimus/core/v1beta1/runtime.client.ts +0 -45
- package/raystack/optimus/core/v1beta1/runtime.ts +0 -131
- package/raystack/optimus/core/v1beta1/runtime_connect.ts +0 -30
- package/raystack/optimus/core/v1beta1/secret.client.ts +0 -92
- package/raystack/optimus/core/v1beta1/secret.ts +0 -619
- package/raystack/optimus/core/v1beta1/secret_connect.ts +0 -61
- package/raystack/optimus/core/v1beta1/status.ts +0 -113
- package/raystack/optimus/integration/v1beta1/event.ts +0 -531
- package/raystack/optimus/plugins/v1beta1/dependency_resolver.client.ts +0 -100
- package/raystack/optimus/plugins/v1beta1/dependency_resolver.ts +0 -950
- package/raystack/optimus/plugins/v1beta1/dependency_resolver_connect.ts +0 -65
- package/raystack/predator/v1beta1/metrics_log.ts +0 -457
- package/raystack/predator/v1beta1/result_log.ts +0 -390
- package/raystack/raccoon/v1beta1/raccoon.client.ts +0 -37
- package/raystack/raccoon/v1beta1/raccoon.ts +0 -442
- package/raystack/raccoon/v1beta1/raccoon_connect.ts +0 -26
- package/raystack/siren/v1beta1/siren.client.ts +0 -479
- package/raystack/siren/v1beta1/siren.ts +0 -6507
- package/raystack/siren/v1beta1/siren_connect.ts +0 -332
- package/raystack/stencil/v1beta1/stencil.client.ts +0 -232
- package/raystack/stencil/v1beta1/stencil.ts +0 -2716
- package/raystack/stencil/v1beta1/stencil_connect.ts +0 -161
- package/validate/validate.ts +0 -4130
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1
|
|
2
|
-
// @generated from protobuf file "raystack/assets/v1beta1/preview.proto" (package "raystack.assets.v1beta1", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
-
import { ListValue } from "../../../google/protobuf/struct";
|
|
14
|
-
/**
|
|
15
|
-
* Preview contains samples of the metadata.
|
|
16
|
-
*
|
|
17
|
-
* @generated from protobuf message raystack.assets.v1beta1.Preview
|
|
18
|
-
*/
|
|
19
|
-
export interface Preview {
|
|
20
|
-
/**
|
|
21
|
-
* fields is a list of fields.
|
|
22
|
-
*
|
|
23
|
-
* @generated from protobuf field: repeated string fields = 1
|
|
24
|
-
*/
|
|
25
|
-
fields: string[];
|
|
26
|
-
/**
|
|
27
|
-
* rows is a multidimensional array containing
|
|
28
|
-
* Optional: List of properties the user has.
|
|
29
|
-
*
|
|
30
|
-
* @generated from protobuf field: google.protobuf.ListValue rows = 2
|
|
31
|
-
*/
|
|
32
|
-
rows?: ListValue;
|
|
33
|
-
}
|
|
34
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
35
|
-
class Preview$Type extends MessageType<Preview> {
|
|
36
|
-
constructor() {
|
|
37
|
-
super("raystack.assets.v1beta1.Preview", [
|
|
38
|
-
{ no: 1, name: "fields", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
39
|
-
{ no: 2, name: "rows", kind: "message", T: () => ListValue }
|
|
40
|
-
]);
|
|
41
|
-
}
|
|
42
|
-
create(value?: PartialMessage<Preview>): Preview {
|
|
43
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
44
|
-
message.fields = [];
|
|
45
|
-
if (value !== undefined)
|
|
46
|
-
reflectionMergePartial<Preview>(this, message, value);
|
|
47
|
-
return message;
|
|
48
|
-
}
|
|
49
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Preview): Preview {
|
|
50
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
51
|
-
while (reader.pos < end) {
|
|
52
|
-
let [fieldNo, wireType] = reader.tag();
|
|
53
|
-
switch (fieldNo) {
|
|
54
|
-
case /* repeated string fields */ 1:
|
|
55
|
-
message.fields.push(reader.string());
|
|
56
|
-
break;
|
|
57
|
-
case /* google.protobuf.ListValue rows */ 2:
|
|
58
|
-
message.rows = ListValue.internalBinaryRead(reader, reader.uint32(), options, message.rows);
|
|
59
|
-
break;
|
|
60
|
-
default:
|
|
61
|
-
let u = options.readUnknownField;
|
|
62
|
-
if (u === "throw")
|
|
63
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
64
|
-
let d = reader.skip(wireType);
|
|
65
|
-
if (u !== false)
|
|
66
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return message;
|
|
70
|
-
}
|
|
71
|
-
internalBinaryWrite(message: Preview, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
72
|
-
/* repeated string fields = 1; */
|
|
73
|
-
for (let i = 0; i < message.fields.length; i++)
|
|
74
|
-
writer.tag(1, WireType.LengthDelimited).string(message.fields[i]);
|
|
75
|
-
/* google.protobuf.ListValue rows = 2; */
|
|
76
|
-
if (message.rows)
|
|
77
|
-
ListValue.internalBinaryWrite(message.rows, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
78
|
-
let u = options.writeUnknownFields;
|
|
79
|
-
if (u !== false)
|
|
80
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
81
|
-
return writer;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* @generated MessageType for protobuf message raystack.assets.v1beta1.Preview
|
|
86
|
-
*/
|
|
87
|
-
export const Preview = new Preview$Type();
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1
|
|
2
|
-
// @generated from protobuf file "raystack/assets/v1beta1/properties.proto" (package "raystack.assets.v1beta1", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
-
import { Struct } from "../../../google/protobuf/struct";
|
|
14
|
-
/**
|
|
15
|
-
* @generated from protobuf message raystack.assets.v1beta1.Properties
|
|
16
|
-
*/
|
|
17
|
-
export interface Properties {
|
|
18
|
-
/**
|
|
19
|
-
* Optional: List of tags the user has.
|
|
20
|
-
*
|
|
21
|
-
* @generated from protobuf field: repeated string tags = 1
|
|
22
|
-
*/
|
|
23
|
-
tags: string[];
|
|
24
|
-
/**
|
|
25
|
-
* Optional. List of labels the user has.
|
|
26
|
-
*
|
|
27
|
-
* @generated from protobuf field: map<string, string> labels = 2
|
|
28
|
-
*/
|
|
29
|
-
labels: {
|
|
30
|
-
[key: string]: string;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Optional: List of properties the user has.
|
|
34
|
-
*
|
|
35
|
-
* @generated from protobuf field: google.protobuf.Struct attributes = 3
|
|
36
|
-
*/
|
|
37
|
-
attributes?: Struct;
|
|
38
|
-
}
|
|
39
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
40
|
-
class Properties$Type extends MessageType<Properties> {
|
|
41
|
-
constructor() {
|
|
42
|
-
super("raystack.assets.v1beta1.Properties", [
|
|
43
|
-
{ no: 1, name: "tags", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
44
|
-
{ no: 2, name: "labels", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
|
|
45
|
-
{ no: 3, name: "attributes", kind: "message", T: () => Struct }
|
|
46
|
-
]);
|
|
47
|
-
}
|
|
48
|
-
create(value?: PartialMessage<Properties>): Properties {
|
|
49
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
50
|
-
message.tags = [];
|
|
51
|
-
message.labels = {};
|
|
52
|
-
if (value !== undefined)
|
|
53
|
-
reflectionMergePartial<Properties>(this, message, value);
|
|
54
|
-
return message;
|
|
55
|
-
}
|
|
56
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Properties): Properties {
|
|
57
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
58
|
-
while (reader.pos < end) {
|
|
59
|
-
let [fieldNo, wireType] = reader.tag();
|
|
60
|
-
switch (fieldNo) {
|
|
61
|
-
case /* repeated string tags */ 1:
|
|
62
|
-
message.tags.push(reader.string());
|
|
63
|
-
break;
|
|
64
|
-
case /* map<string, string> labels */ 2:
|
|
65
|
-
this.binaryReadMap2(message.labels, reader, options);
|
|
66
|
-
break;
|
|
67
|
-
case /* google.protobuf.Struct attributes */ 3:
|
|
68
|
-
message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
|
|
69
|
-
break;
|
|
70
|
-
default:
|
|
71
|
-
let u = options.readUnknownField;
|
|
72
|
-
if (u === "throw")
|
|
73
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
74
|
-
let d = reader.skip(wireType);
|
|
75
|
-
if (u !== false)
|
|
76
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return message;
|
|
80
|
-
}
|
|
81
|
-
private binaryReadMap2(map: Properties["labels"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
82
|
-
let len = reader.uint32(), end = reader.pos + len, key: keyof Properties["labels"] | undefined, val: Properties["labels"][any] | undefined;
|
|
83
|
-
while (reader.pos < end) {
|
|
84
|
-
let [fieldNo, wireType] = reader.tag();
|
|
85
|
-
switch (fieldNo) {
|
|
86
|
-
case 1:
|
|
87
|
-
key = reader.string();
|
|
88
|
-
break;
|
|
89
|
-
case 2:
|
|
90
|
-
val = reader.string();
|
|
91
|
-
break;
|
|
92
|
-
default: throw new globalThis.Error("unknown map entry field for raystack.assets.v1beta1.Properties.labels");
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
map[key ?? ""] = val ?? "";
|
|
96
|
-
}
|
|
97
|
-
internalBinaryWrite(message: Properties, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
98
|
-
/* repeated string tags = 1; */
|
|
99
|
-
for (let i = 0; i < message.tags.length; i++)
|
|
100
|
-
writer.tag(1, WireType.LengthDelimited).string(message.tags[i]);
|
|
101
|
-
/* map<string, string> labels = 2; */
|
|
102
|
-
for (let k of globalThis.Object.keys(message.labels))
|
|
103
|
-
writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.labels[k]).join();
|
|
104
|
-
/* google.protobuf.Struct attributes = 3; */
|
|
105
|
-
if (message.attributes)
|
|
106
|
-
Struct.internalBinaryWrite(message.attributes, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
107
|
-
let u = options.writeUnknownFields;
|
|
108
|
-
if (u !== false)
|
|
109
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
110
|
-
return writer;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* @generated MessageType for protobuf message raystack.assets.v1beta1.Properties
|
|
115
|
-
*/
|
|
116
|
-
export const Properties = new Properties$Type();
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1
|
|
2
|
-
// @generated from protobuf file "raystack/assets/v1beta1/resource.proto" (package "raystack.assets.v1beta1", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
-
/**
|
|
14
|
-
* Resource is a generic resource that represents a file or other resource.
|
|
15
|
-
* It can be a table, job, user or group.
|
|
16
|
-
*
|
|
17
|
-
* @generated from protobuf message raystack.assets.v1beta1.Resource
|
|
18
|
-
*/
|
|
19
|
-
export interface Resource {
|
|
20
|
-
/**
|
|
21
|
-
* The unique identifier of the resource.
|
|
22
|
-
* Example: `user:jdoe` or `group:accounting`.
|
|
23
|
-
*
|
|
24
|
-
* @generated from protobuf field: string urn = 1
|
|
25
|
-
*/
|
|
26
|
-
urn: string;
|
|
27
|
-
/**
|
|
28
|
-
* The name of the resource.
|
|
29
|
-
* Example: `John Doe` or `Accounting`.
|
|
30
|
-
*
|
|
31
|
-
* @generated from protobuf field: string name = 2
|
|
32
|
-
*/
|
|
33
|
-
name: string;
|
|
34
|
-
/**
|
|
35
|
-
* The source of the resource.
|
|
36
|
-
* Example: `github` or `bigquery`.
|
|
37
|
-
*
|
|
38
|
-
* @generated from protobuf field: string service = 3
|
|
39
|
-
*/
|
|
40
|
-
service: string;
|
|
41
|
-
/**
|
|
42
|
-
* The type of the asset.
|
|
43
|
-
* Example: `user` or `group`.
|
|
44
|
-
*
|
|
45
|
-
* @generated from protobuf field: string type = 4
|
|
46
|
-
*/
|
|
47
|
-
type: string;
|
|
48
|
-
/**
|
|
49
|
-
* The REST URL for accessing the resource. URL returns the resource itself.
|
|
50
|
-
* Example: `https://xyz.com/v1/users/user-123`
|
|
51
|
-
*
|
|
52
|
-
* @generated from protobuf field: string url = 5
|
|
53
|
-
*/
|
|
54
|
-
url: string;
|
|
55
|
-
/**
|
|
56
|
-
* The description of the resource.
|
|
57
|
-
* Example: `This resource is being used for storing important number`
|
|
58
|
-
*
|
|
59
|
-
* @generated from protobuf field: string description = 6
|
|
60
|
-
*/
|
|
61
|
-
description: string;
|
|
62
|
-
}
|
|
63
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
64
|
-
class Resource$Type extends MessageType<Resource> {
|
|
65
|
-
constructor() {
|
|
66
|
-
super("raystack.assets.v1beta1.Resource", [
|
|
67
|
-
{ no: 1, name: "urn", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
68
|
-
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
69
|
-
{ no: 3, name: "service", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
70
|
-
{ no: 4, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
71
|
-
{ no: 5, name: "url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
72
|
-
{ no: 6, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
73
|
-
]);
|
|
74
|
-
}
|
|
75
|
-
create(value?: PartialMessage<Resource>): Resource {
|
|
76
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
77
|
-
message.urn = "";
|
|
78
|
-
message.name = "";
|
|
79
|
-
message.service = "";
|
|
80
|
-
message.type = "";
|
|
81
|
-
message.url = "";
|
|
82
|
-
message.description = "";
|
|
83
|
-
if (value !== undefined)
|
|
84
|
-
reflectionMergePartial<Resource>(this, message, value);
|
|
85
|
-
return message;
|
|
86
|
-
}
|
|
87
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Resource): Resource {
|
|
88
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
89
|
-
while (reader.pos < end) {
|
|
90
|
-
let [fieldNo, wireType] = reader.tag();
|
|
91
|
-
switch (fieldNo) {
|
|
92
|
-
case /* string urn */ 1:
|
|
93
|
-
message.urn = reader.string();
|
|
94
|
-
break;
|
|
95
|
-
case /* string name */ 2:
|
|
96
|
-
message.name = reader.string();
|
|
97
|
-
break;
|
|
98
|
-
case /* string service */ 3:
|
|
99
|
-
message.service = reader.string();
|
|
100
|
-
break;
|
|
101
|
-
case /* string type */ 4:
|
|
102
|
-
message.type = reader.string();
|
|
103
|
-
break;
|
|
104
|
-
case /* string url */ 5:
|
|
105
|
-
message.url = reader.string();
|
|
106
|
-
break;
|
|
107
|
-
case /* string description */ 6:
|
|
108
|
-
message.description = reader.string();
|
|
109
|
-
break;
|
|
110
|
-
default:
|
|
111
|
-
let u = options.readUnknownField;
|
|
112
|
-
if (u === "throw")
|
|
113
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
114
|
-
let d = reader.skip(wireType);
|
|
115
|
-
if (u !== false)
|
|
116
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
return message;
|
|
120
|
-
}
|
|
121
|
-
internalBinaryWrite(message: Resource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
122
|
-
/* string urn = 1; */
|
|
123
|
-
if (message.urn !== "")
|
|
124
|
-
writer.tag(1, WireType.LengthDelimited).string(message.urn);
|
|
125
|
-
/* string name = 2; */
|
|
126
|
-
if (message.name !== "")
|
|
127
|
-
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
128
|
-
/* string service = 3; */
|
|
129
|
-
if (message.service !== "")
|
|
130
|
-
writer.tag(3, WireType.LengthDelimited).string(message.service);
|
|
131
|
-
/* string type = 4; */
|
|
132
|
-
if (message.type !== "")
|
|
133
|
-
writer.tag(4, WireType.LengthDelimited).string(message.type);
|
|
134
|
-
/* string url = 5; */
|
|
135
|
-
if (message.url !== "")
|
|
136
|
-
writer.tag(5, WireType.LengthDelimited).string(message.url);
|
|
137
|
-
/* string description = 6; */
|
|
138
|
-
if (message.description !== "")
|
|
139
|
-
writer.tag(6, WireType.LengthDelimited).string(message.description);
|
|
140
|
-
let u = options.writeUnknownFields;
|
|
141
|
-
if (u !== false)
|
|
142
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
143
|
-
return writer;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* @generated MessageType for protobuf message raystack.assets.v1beta1.Resource
|
|
148
|
-
*/
|
|
149
|
-
export const Resource = new Resource$Type();
|