@raystack/proton 0.1.0-ce225175aa066e6f296bc489293bb83ed0edcef6
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 +33 -0
- package/google/api/field_behavior.ts +95 -0
- package/google/api/field_behavior_pb.ts +139 -0
- package/google/api/http.ts +695 -0
- package/google/api/http_pb.ts +547 -0
- package/google/api/httpbody.ts +159 -0
- package/google/api/httpbody_pb.ts +122 -0
- package/google/protobuf/any.ts +322 -0
- package/google/protobuf/descriptor.ts +3475 -0
- package/google/protobuf/duration.ts +231 -0
- package/google/protobuf/struct.ts +484 -0
- package/google/protobuf/timestamp.ts +290 -0
- package/google/protobuf/wrappers.ts +752 -0
- package/package.json +47 -0
- package/protoc-gen-openapiv2/options/annotations_pb.ts +78 -0
- package/protoc-gen-openapiv2/options/openapiv2.ts +3110 -0
- package/protoc-gen-openapiv2/options/openapiv2_pb.ts +1995 -0
- package/raystack/assets/index.ts +29 -0
- package/raystack/assets/v1beta1/bucket.ts +362 -0
- package/raystack/assets/v1beta1/bucket_pb.ts +233 -0
- package/raystack/assets/v1beta1/dashboard.ts +426 -0
- package/raystack/assets/v1beta1/dashboard_pb.ts +275 -0
- package/raystack/assets/v1beta1/event.ts +105 -0
- package/raystack/assets/v1beta1/event_pb.ts +70 -0
- package/raystack/assets/v1beta1/group.ts +223 -0
- package/raystack/assets/v1beta1/group_pb.ts +149 -0
- package/raystack/assets/v1beta1/job.ts +147 -0
- package/raystack/assets/v1beta1/job_pb.ts +100 -0
- package/raystack/assets/v1beta1/lineage.ts +90 -0
- package/raystack/assets/v1beta1/lineage_pb.ts +61 -0
- package/raystack/assets/v1beta1/ownership.ts +179 -0
- package/raystack/assets/v1beta1/ownership_pb.ts +119 -0
- package/raystack/assets/v1beta1/preview.ts +87 -0
- package/raystack/assets/v1beta1/preview_pb.ts +58 -0
- package/raystack/assets/v1beta1/properties.ts +116 -0
- package/raystack/assets/v1beta1/properties_pb.ts +63 -0
- package/raystack/assets/v1beta1/resource.ts +149 -0
- package/raystack/assets/v1beta1/resource_pb.ts +96 -0
- package/raystack/assets/v1beta1/schema.ts +421 -0
- package/raystack/assets/v1beta1/schema_pb.ts +262 -0
- package/raystack/assets/v1beta1/table.ts +408 -0
- package/raystack/assets/v1beta1/table_pb.ts +266 -0
- package/raystack/assets/v1beta1/timestamp.ts +158 -0
- package/raystack/assets/v1beta1/timestamp_pb.ts +107 -0
- package/raystack/assets/v1beta1/topic.ts +253 -0
- package/raystack/assets/v1beta1/topic_pb.ts +171 -0
- package/raystack/assets/v1beta1/user.ts +451 -0
- package/raystack/assets/v1beta1/user_pb.ts +292 -0
- package/raystack/assets/v1beta2/application.ts +125 -0
- package/raystack/assets/v1beta2/application_pb.ts +79 -0
- package/raystack/assets/v1beta2/asset.ts +269 -0
- package/raystack/assets/v1beta2/asset_pb.ts +157 -0
- package/raystack/assets/v1beta2/bucket.ts +341 -0
- package/raystack/assets/v1beta2/bucket_pb.ts +215 -0
- package/raystack/assets/v1beta2/common.ts +392 -0
- package/raystack/assets/v1beta2/common_pb.ts +258 -0
- package/raystack/assets/v1beta2/dashboard.ts +393 -0
- package/raystack/assets/v1beta2/dashboard_pb.ts +247 -0
- package/raystack/assets/v1beta2/experiment.ts +274 -0
- package/raystack/assets/v1beta2/experiment_pb.ts +180 -0
- package/raystack/assets/v1beta2/feature_table.ts +387 -0
- package/raystack/assets/v1beta2/feature_table_pb.ts +237 -0
- package/raystack/assets/v1beta2/group.ts +178 -0
- package/raystack/assets/v1beta2/group_pb.ts +118 -0
- package/raystack/assets/v1beta2/job.ts +99 -0
- package/raystack/assets/v1beta2/job_pb.ts +65 -0
- package/raystack/assets/v1beta2/metric.ts +163 -0
- package/raystack/assets/v1beta2/metric_pb.ts +105 -0
- package/raystack/assets/v1beta2/model.ts +519 -0
- package/raystack/assets/v1beta2/model_pb.ts +322 -0
- package/raystack/assets/v1beta2/table.ts +663 -0
- package/raystack/assets/v1beta2/table_pb.ts +409 -0
- package/raystack/assets/v1beta2/topic.ts +275 -0
- package/raystack/assets/v1beta2/topic_pb.ts +181 -0
- package/raystack/assets/v1beta2/user.ts +433 -0
- package/raystack/assets/v1beta2/user_pb.ts +277 -0
- package/raystack/common/index.ts +3 -0
- package/raystack/common/v1/service-CommonService_connectquery.ts +21 -0
- package/raystack/common/v1/service.client.ts +37 -0
- package/raystack/common/v1/service.ts +245 -0
- package/raystack/common/v1/service_connect.ts +26 -0
- package/raystack/common/v1/service_pb.ts +149 -0
- package/raystack/compass/index.ts +3 -0
- package/raystack/compass/v1beta1/service-CompassService_connectquery.ts +605 -0
- package/raystack/compass/v1beta1/service.client.ts +594 -0
- package/raystack/compass/v1beta1/service.ts +8169 -0
- package/raystack/compass/v1beta1/service_connect.ts +407 -0
- package/raystack/compass/v1beta1/service_pb.ts +4975 -0
- package/raystack/entropy/index.ts +6 -0
- package/raystack/entropy/v1beta1/module-ModuleService_connectquery.ts +77 -0
- package/raystack/entropy/v1beta1/module.client.ts +89 -0
- package/raystack/entropy/v1beta1/module.ts +692 -0
- package/raystack/entropy/v1beta1/module_connect.ts +62 -0
- package/raystack/entropy/v1beta1/module_pb.ts +445 -0
- package/raystack/entropy/v1beta1/resource-ResourceService_connectquery.ts +105 -0
- package/raystack/entropy/v1beta1/resource.client.ts +129 -0
- package/raystack/entropy/v1beta1/resource.ts +1817 -0
- package/raystack/entropy/v1beta1/resource_connect.ts +89 -0
- package/raystack/entropy/v1beta1/resource_pb.ts +1092 -0
- package/raystack/frontier/index.ts +7 -0
- package/raystack/frontier/v1beta1/admin-AdminService_connectquery.ts +756 -0
- package/raystack/frontier/v1beta1/admin.client.ts +849 -0
- package/raystack/frontier/v1beta1/admin.ts +9007 -0
- package/raystack/frontier/v1beta1/admin_connect.ts +573 -0
- package/raystack/frontier/v1beta1/admin_pb.ts +5615 -0
- package/raystack/frontier/v1beta1/frontier-FrontierService_connectquery.ts +2399 -0
- package/raystack/frontier/v1beta1/frontier.client.ts +2307 -0
- package/raystack/frontier/v1beta1/frontier.ts +23706 -0
- package/raystack/frontier/v1beta1/frontier_connect.ts +1574 -0
- package/raystack/frontier/v1beta1/frontier_pb.ts +15258 -0
- package/raystack/frontier/v1beta1/models.ts +7433 -0
- package/raystack/frontier/v1beta1/models_pb.ts +4345 -0
- package/raystack/guardian/index.ts +3 -0
- package/raystack/guardian/v1beta1/guardian-GuardianService_connectquery.ts +569 -0
- package/raystack/guardian/v1beta1/guardian.client.ts +552 -0
- package/raystack/guardian/v1beta1/guardian.ts +9688 -0
- package/raystack/guardian/v1beta1/guardian_connect.ts +381 -0
- package/raystack/guardian/v1beta1/guardian_pb.ts +5858 -0
- package/raystack/optimus/core/v1beta1/backup-BackupService_connectquery.ts +49 -0
- package/raystack/optimus/core/v1beta1/backup.client.ts +63 -0
- package/raystack/optimus/core/v1beta1/backup.ts +708 -0
- package/raystack/optimus/core/v1beta1/backup_connect.ts +44 -0
- package/raystack/optimus/core/v1beta1/backup_pb.ts +406 -0
- package/raystack/optimus/core/v1beta1/job_run-JobRunService_connectquery.ts +71 -0
- package/raystack/optimus/core/v1beta1/job_run.client.ts +96 -0
- package/raystack/optimus/core/v1beta1/job_run.ts +1008 -0
- package/raystack/optimus/core/v1beta1/job_run_connect.ts +63 -0
- package/raystack/optimus/core/v1beta1/job_run_pb.ts +612 -0
- package/raystack/optimus/core/v1beta1/job_spec-JobSpecificationService_connectquery.ts +249 -0
- package/raystack/optimus/core/v1beta1/job_spec.client.ts +363 -0
- package/raystack/optimus/core/v1beta1/job_spec.ts +5134 -0
- package/raystack/optimus/core/v1beta1/job_spec_connect.ts +233 -0
- package/raystack/optimus/core/v1beta1/job_spec_pb.ts +3196 -0
- package/raystack/optimus/core/v1beta1/namespace-NamespaceService_connectquery.ts +55 -0
- package/raystack/optimus/core/v1beta1/namespace.client.ts +75 -0
- package/raystack/optimus/core/v1beta1/namespace.ts +477 -0
- package/raystack/optimus/core/v1beta1/namespace_connect.ts +50 -0
- package/raystack/optimus/core/v1beta1/namespace_pb.ts +291 -0
- package/raystack/optimus/core/v1beta1/project-ProjectService_connectquery.ts +55 -0
- package/raystack/optimus/core/v1beta1/project.client.ts +75 -0
- package/raystack/optimus/core/v1beta1/project.ts +520 -0
- package/raystack/optimus/core/v1beta1/project_connect.ts +50 -0
- package/raystack/optimus/core/v1beta1/project_pb.ts +322 -0
- package/raystack/optimus/core/v1beta1/replay-ReplayService_connectquery.ts +63 -0
- package/raystack/optimus/core/v1beta1/replay.client.ts +76 -0
- package/raystack/optimus/core/v1beta1/replay.ts +881 -0
- package/raystack/optimus/core/v1beta1/replay_connect.ts +53 -0
- package/raystack/optimus/core/v1beta1/replay_pb.ts +522 -0
- package/raystack/optimus/core/v1beta1/resource-ResourceService_connectquery.ts +104 -0
- package/raystack/optimus/core/v1beta1/resource.client.ts +148 -0
- package/raystack/optimus/core/v1beta1/resource.ts +1329 -0
- package/raystack/optimus/core/v1beta1/resource_connect.ts +96 -0
- package/raystack/optimus/core/v1beta1/resource_pb.ts +791 -0
- package/raystack/optimus/core/v1beta1/runtime-RuntimeService_connectquery.ts +23 -0
- package/raystack/optimus/core/v1beta1/runtime.client.ts +45 -0
- package/raystack/optimus/core/v1beta1/runtime.ts +131 -0
- package/raystack/optimus/core/v1beta1/runtime_connect.ts +30 -0
- package/raystack/optimus/core/v1beta1/runtime_pb.ts +82 -0
- package/raystack/optimus/core/v1beta1/secret-SecretService_connectquery.ts +71 -0
- package/raystack/optimus/core/v1beta1/secret.client.ts +92 -0
- package/raystack/optimus/core/v1beta1/secret.ts +619 -0
- package/raystack/optimus/core/v1beta1/secret_connect.ts +61 -0
- package/raystack/optimus/core/v1beta1/secret_pb.ts +393 -0
- package/raystack/optimus/core/v1beta1/status.ts +113 -0
- package/raystack/optimus/core/v1beta1/status_pb.ts +101 -0
- package/raystack/optimus/integration/v1beta1/event.ts +531 -0
- package/raystack/optimus/integration/v1beta1/event_pb.ts +362 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver-DependencyResolverModService_connectquery.ts +72 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver.client.ts +100 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver.ts +950 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver_connect.ts +65 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver_pb.ts +604 -0
- package/raystack/predator/index.ts +2 -0
- package/raystack/predator/v1beta1/metrics_log.ts +457 -0
- package/raystack/predator/v1beta1/metrics_log_pb.ts +277 -0
- package/raystack/predator/v1beta1/result_log.ts +390 -0
- package/raystack/predator/v1beta1/result_log_pb.ts +235 -0
- package/raystack/raccoon/index.ts +3 -0
- package/raystack/raccoon/v1beta1/raccoon-EventService_connectquery.ts +21 -0
- package/raystack/raccoon/v1beta1/raccoon.client.ts +37 -0
- package/raystack/raccoon/v1beta1/raccoon.ts +442 -0
- package/raystack/raccoon/v1beta1/raccoon_connect.ts +26 -0
- package/raystack/raccoon/v1beta1/raccoon_pb.ts +324 -0
- package/raystack/siren/index.ts +3 -0
- package/raystack/siren/v1beta1/siren-SirenService_connectquery.ts +497 -0
- package/raystack/siren/v1beta1/siren.client.ts +479 -0
- package/raystack/siren/v1beta1/siren.ts +6507 -0
- package/raystack/siren/v1beta1/siren_connect.ts +332 -0
- package/raystack/siren/v1beta1/siren_pb.ts +3853 -0
- package/raystack/stencil/index.ts +3 -0
- package/raystack/stencil/v1beta1/stencil-StencilService_connectquery.ts +231 -0
- package/raystack/stencil/v1beta1/stencil.client.ts +232 -0
- package/raystack/stencil/v1beta1/stencil.ts +2716 -0
- package/raystack/stencil/v1beta1/stencil_connect.ts +161 -0
- package/raystack/stencil/v1beta1/stencil_pb.ts +1729 -0
- package/validate/validate.ts +4130 -0
- package/validate/validate_pb.ts +2621 -0
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1
|
|
2
|
+
// @generated from protobuf file "raystack/assets/v1beta2/asset.proto" (package "raystack.assets.v1beta2", 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 { Timestamp } from "../../../google/protobuf/timestamp";
|
|
14
|
+
import { Event } from "./common";
|
|
15
|
+
import { Lineage } from "./common";
|
|
16
|
+
import { Owner } from "./common";
|
|
17
|
+
import { Any } from "../../../google/protobuf/any";
|
|
18
|
+
/**
|
|
19
|
+
* Asset is a resource that represents any type of asset.
|
|
20
|
+
*
|
|
21
|
+
* @generated from protobuf message raystack.assets.v1beta2.Asset
|
|
22
|
+
*/
|
|
23
|
+
export interface Asset {
|
|
24
|
+
/**
|
|
25
|
+
* The unique identifier of the asset.
|
|
26
|
+
* Example: `user:jdoe` or `group:accounting`.
|
|
27
|
+
*
|
|
28
|
+
* @generated from protobuf field: string urn = 1
|
|
29
|
+
*/
|
|
30
|
+
urn: string;
|
|
31
|
+
/**
|
|
32
|
+
* The name of the asset.
|
|
33
|
+
* Example: `John Doe` or `Accounting`.
|
|
34
|
+
*
|
|
35
|
+
* @generated from protobuf field: string name = 2
|
|
36
|
+
*/
|
|
37
|
+
name: string;
|
|
38
|
+
/**
|
|
39
|
+
* The source of the asset.
|
|
40
|
+
* Example: `github` or `bigquery`.
|
|
41
|
+
*
|
|
42
|
+
* @generated from protobuf field: string service = 3
|
|
43
|
+
*/
|
|
44
|
+
service: string;
|
|
45
|
+
/**
|
|
46
|
+
* The type of the asset.
|
|
47
|
+
* Example: `user` or `group`.
|
|
48
|
+
*
|
|
49
|
+
* @generated from protobuf field: string type = 4
|
|
50
|
+
*/
|
|
51
|
+
type: string;
|
|
52
|
+
/**
|
|
53
|
+
* The REST URL for accessing the resource. URL returns the resource itself.
|
|
54
|
+
* Example: `https://xyz.com/v1/users/user-123`
|
|
55
|
+
*
|
|
56
|
+
* @generated from protobuf field: string url = 5
|
|
57
|
+
*/
|
|
58
|
+
url: string;
|
|
59
|
+
/**
|
|
60
|
+
* The description of the resource.
|
|
61
|
+
* Example: `This resource is being used for storing important number`
|
|
62
|
+
*
|
|
63
|
+
* @generated from protobuf field: string description = 6
|
|
64
|
+
*/
|
|
65
|
+
description: string;
|
|
66
|
+
/**
|
|
67
|
+
* Represents Data in asset, can be of type bucket, dashboard, group ... user
|
|
68
|
+
*
|
|
69
|
+
* @generated from protobuf field: google.protobuf.Any data = 7
|
|
70
|
+
*/
|
|
71
|
+
data?: Any;
|
|
72
|
+
/**
|
|
73
|
+
* The ownership of the job.
|
|
74
|
+
* For an example check out Owner.
|
|
75
|
+
*
|
|
76
|
+
* @generated from protobuf field: repeated raystack.assets.v1beta2.Owner owners = 31
|
|
77
|
+
*/
|
|
78
|
+
owners: Owner[];
|
|
79
|
+
/**
|
|
80
|
+
* The lineage of the job.
|
|
81
|
+
* For an example check out lineage schema.
|
|
82
|
+
*
|
|
83
|
+
* @generated from protobuf field: raystack.assets.v1beta2.Lineage lineage = 32
|
|
84
|
+
*/
|
|
85
|
+
lineage?: Lineage;
|
|
86
|
+
/**
|
|
87
|
+
* Optional. List of labels the user has.
|
|
88
|
+
*
|
|
89
|
+
* @generated from protobuf field: map<string, string> labels = 33
|
|
90
|
+
*/
|
|
91
|
+
labels: {
|
|
92
|
+
[key: string]: string;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* The timestamp of the generated event.
|
|
96
|
+
* Event schemas is defined in the common event schema.
|
|
97
|
+
*
|
|
98
|
+
* @generated from protobuf field: raystack.assets.v1beta2.Event event = 100
|
|
99
|
+
*/
|
|
100
|
+
event?: Event;
|
|
101
|
+
/**
|
|
102
|
+
* The timestamp when the asset was created.
|
|
103
|
+
* This information is expected to be maintained by the system.
|
|
104
|
+
*
|
|
105
|
+
* @generated from protobuf field: google.protobuf.Timestamp create_time = 101
|
|
106
|
+
*/
|
|
107
|
+
createTime?: Timestamp;
|
|
108
|
+
/**
|
|
109
|
+
* The timestamp when the asset was last modified.
|
|
110
|
+
* This information is expected to be maintained by the system.
|
|
111
|
+
*
|
|
112
|
+
* @generated from protobuf field: google.protobuf.Timestamp update_time = 102
|
|
113
|
+
*/
|
|
114
|
+
updateTime?: Timestamp;
|
|
115
|
+
}
|
|
116
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
117
|
+
class Asset$Type extends MessageType<Asset> {
|
|
118
|
+
constructor() {
|
|
119
|
+
super("raystack.assets.v1beta2.Asset", [
|
|
120
|
+
{ no: 1, name: "urn", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
121
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
122
|
+
{ no: 3, name: "service", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
123
|
+
{ no: 4, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
124
|
+
{ no: 5, name: "url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
125
|
+
{ no: 6, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
126
|
+
{ no: 7, name: "data", kind: "message", T: () => Any },
|
|
127
|
+
{ no: 31, name: "owners", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Owner },
|
|
128
|
+
{ no: 32, name: "lineage", kind: "message", T: () => Lineage },
|
|
129
|
+
{ no: 33, name: "labels", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
|
|
130
|
+
{ no: 100, name: "event", kind: "message", T: () => Event },
|
|
131
|
+
{ no: 101, name: "create_time", kind: "message", T: () => Timestamp },
|
|
132
|
+
{ no: 102, name: "update_time", kind: "message", T: () => Timestamp }
|
|
133
|
+
]);
|
|
134
|
+
}
|
|
135
|
+
create(value?: PartialMessage<Asset>): Asset {
|
|
136
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
137
|
+
message.urn = "";
|
|
138
|
+
message.name = "";
|
|
139
|
+
message.service = "";
|
|
140
|
+
message.type = "";
|
|
141
|
+
message.url = "";
|
|
142
|
+
message.description = "";
|
|
143
|
+
message.owners = [];
|
|
144
|
+
message.labels = {};
|
|
145
|
+
if (value !== undefined)
|
|
146
|
+
reflectionMergePartial<Asset>(this, message, value);
|
|
147
|
+
return message;
|
|
148
|
+
}
|
|
149
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Asset): Asset {
|
|
150
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
151
|
+
while (reader.pos < end) {
|
|
152
|
+
let [fieldNo, wireType] = reader.tag();
|
|
153
|
+
switch (fieldNo) {
|
|
154
|
+
case /* string urn */ 1:
|
|
155
|
+
message.urn = reader.string();
|
|
156
|
+
break;
|
|
157
|
+
case /* string name */ 2:
|
|
158
|
+
message.name = reader.string();
|
|
159
|
+
break;
|
|
160
|
+
case /* string service */ 3:
|
|
161
|
+
message.service = reader.string();
|
|
162
|
+
break;
|
|
163
|
+
case /* string type */ 4:
|
|
164
|
+
message.type = reader.string();
|
|
165
|
+
break;
|
|
166
|
+
case /* string url */ 5:
|
|
167
|
+
message.url = reader.string();
|
|
168
|
+
break;
|
|
169
|
+
case /* string description */ 6:
|
|
170
|
+
message.description = reader.string();
|
|
171
|
+
break;
|
|
172
|
+
case /* google.protobuf.Any data */ 7:
|
|
173
|
+
message.data = Any.internalBinaryRead(reader, reader.uint32(), options, message.data);
|
|
174
|
+
break;
|
|
175
|
+
case /* repeated raystack.assets.v1beta2.Owner owners */ 31:
|
|
176
|
+
message.owners.push(Owner.internalBinaryRead(reader, reader.uint32(), options));
|
|
177
|
+
break;
|
|
178
|
+
case /* raystack.assets.v1beta2.Lineage lineage */ 32:
|
|
179
|
+
message.lineage = Lineage.internalBinaryRead(reader, reader.uint32(), options, message.lineage);
|
|
180
|
+
break;
|
|
181
|
+
case /* map<string, string> labels */ 33:
|
|
182
|
+
this.binaryReadMap33(message.labels, reader, options);
|
|
183
|
+
break;
|
|
184
|
+
case /* raystack.assets.v1beta2.Event event */ 100:
|
|
185
|
+
message.event = Event.internalBinaryRead(reader, reader.uint32(), options, message.event);
|
|
186
|
+
break;
|
|
187
|
+
case /* google.protobuf.Timestamp create_time */ 101:
|
|
188
|
+
message.createTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createTime);
|
|
189
|
+
break;
|
|
190
|
+
case /* google.protobuf.Timestamp update_time */ 102:
|
|
191
|
+
message.updateTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updateTime);
|
|
192
|
+
break;
|
|
193
|
+
default:
|
|
194
|
+
let u = options.readUnknownField;
|
|
195
|
+
if (u === "throw")
|
|
196
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
197
|
+
let d = reader.skip(wireType);
|
|
198
|
+
if (u !== false)
|
|
199
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
return message;
|
|
203
|
+
}
|
|
204
|
+
private binaryReadMap33(map: Asset["labels"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
205
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof Asset["labels"] | undefined, val: Asset["labels"][any] | undefined;
|
|
206
|
+
while (reader.pos < end) {
|
|
207
|
+
let [fieldNo, wireType] = reader.tag();
|
|
208
|
+
switch (fieldNo) {
|
|
209
|
+
case 1:
|
|
210
|
+
key = reader.string();
|
|
211
|
+
break;
|
|
212
|
+
case 2:
|
|
213
|
+
val = reader.string();
|
|
214
|
+
break;
|
|
215
|
+
default: throw new globalThis.Error("unknown map entry field for raystack.assets.v1beta2.Asset.labels");
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
map[key ?? ""] = val ?? "";
|
|
219
|
+
}
|
|
220
|
+
internalBinaryWrite(message: Asset, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
221
|
+
/* string urn = 1; */
|
|
222
|
+
if (message.urn !== "")
|
|
223
|
+
writer.tag(1, WireType.LengthDelimited).string(message.urn);
|
|
224
|
+
/* string name = 2; */
|
|
225
|
+
if (message.name !== "")
|
|
226
|
+
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
227
|
+
/* string service = 3; */
|
|
228
|
+
if (message.service !== "")
|
|
229
|
+
writer.tag(3, WireType.LengthDelimited).string(message.service);
|
|
230
|
+
/* string type = 4; */
|
|
231
|
+
if (message.type !== "")
|
|
232
|
+
writer.tag(4, WireType.LengthDelimited).string(message.type);
|
|
233
|
+
/* string url = 5; */
|
|
234
|
+
if (message.url !== "")
|
|
235
|
+
writer.tag(5, WireType.LengthDelimited).string(message.url);
|
|
236
|
+
/* string description = 6; */
|
|
237
|
+
if (message.description !== "")
|
|
238
|
+
writer.tag(6, WireType.LengthDelimited).string(message.description);
|
|
239
|
+
/* google.protobuf.Any data = 7; */
|
|
240
|
+
if (message.data)
|
|
241
|
+
Any.internalBinaryWrite(message.data, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
242
|
+
/* repeated raystack.assets.v1beta2.Owner owners = 31; */
|
|
243
|
+
for (let i = 0; i < message.owners.length; i++)
|
|
244
|
+
Owner.internalBinaryWrite(message.owners[i], writer.tag(31, WireType.LengthDelimited).fork(), options).join();
|
|
245
|
+
/* raystack.assets.v1beta2.Lineage lineage = 32; */
|
|
246
|
+
if (message.lineage)
|
|
247
|
+
Lineage.internalBinaryWrite(message.lineage, writer.tag(32, WireType.LengthDelimited).fork(), options).join();
|
|
248
|
+
/* map<string, string> labels = 33; */
|
|
249
|
+
for (let k of globalThis.Object.keys(message.labels))
|
|
250
|
+
writer.tag(33, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.labels[k]).join();
|
|
251
|
+
/* raystack.assets.v1beta2.Event event = 100; */
|
|
252
|
+
if (message.event)
|
|
253
|
+
Event.internalBinaryWrite(message.event, writer.tag(100, WireType.LengthDelimited).fork(), options).join();
|
|
254
|
+
/* google.protobuf.Timestamp create_time = 101; */
|
|
255
|
+
if (message.createTime)
|
|
256
|
+
Timestamp.internalBinaryWrite(message.createTime, writer.tag(101, WireType.LengthDelimited).fork(), options).join();
|
|
257
|
+
/* google.protobuf.Timestamp update_time = 102; */
|
|
258
|
+
if (message.updateTime)
|
|
259
|
+
Timestamp.internalBinaryWrite(message.updateTime, writer.tag(102, WireType.LengthDelimited).fork(), options).join();
|
|
260
|
+
let u = options.writeUnknownFields;
|
|
261
|
+
if (u !== false)
|
|
262
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
263
|
+
return writer;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* @generated MessageType for protobuf message raystack.assets.v1beta2.Asset
|
|
268
|
+
*/
|
|
269
|
+
export const Asset = new Asset$Type();
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
|
|
2
|
+
// @generated from file raystack/assets/v1beta2/asset.proto (package raystack.assets.v1beta2, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
+
import { Any, Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
8
|
+
import { Event, Lineage, Owner } from "./common_pb";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Asset is a resource that represents any type of asset.
|
|
12
|
+
*
|
|
13
|
+
* @generated from message raystack.assets.v1beta2.Asset
|
|
14
|
+
*/
|
|
15
|
+
export class Asset extends Message<Asset> {
|
|
16
|
+
/**
|
|
17
|
+
* The unique identifier of the asset.
|
|
18
|
+
* Example: `user:jdoe` or `group:accounting`.
|
|
19
|
+
*
|
|
20
|
+
* @generated from field: string urn = 1;
|
|
21
|
+
*/
|
|
22
|
+
urn = "";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* The name of the asset.
|
|
26
|
+
* Example: `John Doe` or `Accounting`.
|
|
27
|
+
*
|
|
28
|
+
* @generated from field: string name = 2;
|
|
29
|
+
*/
|
|
30
|
+
name = "";
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The source of the asset.
|
|
34
|
+
* Example: `github` or `bigquery`.
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: string service = 3;
|
|
37
|
+
*/
|
|
38
|
+
service = "";
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The type of the asset.
|
|
42
|
+
* Example: `user` or `group`.
|
|
43
|
+
*
|
|
44
|
+
* @generated from field: string type = 4;
|
|
45
|
+
*/
|
|
46
|
+
type = "";
|
|
47
|
+
|
|
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 field: string url = 5;
|
|
53
|
+
*/
|
|
54
|
+
url = "";
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The description of the resource.
|
|
58
|
+
* Example: `This resource is being used for storing important number`
|
|
59
|
+
*
|
|
60
|
+
* @generated from field: string description = 6;
|
|
61
|
+
*/
|
|
62
|
+
description = "";
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Represents Data in asset, can be of type bucket, dashboard, group ... user
|
|
66
|
+
*
|
|
67
|
+
* @generated from field: google.protobuf.Any data = 7;
|
|
68
|
+
*/
|
|
69
|
+
data?: Any;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The ownership of the job.
|
|
73
|
+
* For an example check out Owner.
|
|
74
|
+
*
|
|
75
|
+
* @generated from field: repeated raystack.assets.v1beta2.Owner owners = 31;
|
|
76
|
+
*/
|
|
77
|
+
owners: Owner[] = [];
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* The lineage of the job.
|
|
81
|
+
* For an example check out lineage schema.
|
|
82
|
+
*
|
|
83
|
+
* @generated from field: raystack.assets.v1beta2.Lineage lineage = 32;
|
|
84
|
+
*/
|
|
85
|
+
lineage?: Lineage;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Optional. List of labels the user has.
|
|
89
|
+
*
|
|
90
|
+
* @generated from field: map<string, string> labels = 33;
|
|
91
|
+
*/
|
|
92
|
+
labels: { [key: string]: string } = {};
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* The timestamp of the generated event.
|
|
96
|
+
* Event schemas is defined in the common event schema.
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: raystack.assets.v1beta2.Event event = 100;
|
|
99
|
+
*/
|
|
100
|
+
event?: Event;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* The timestamp when the asset was created.
|
|
104
|
+
* This information is expected to be maintained by the system.
|
|
105
|
+
*
|
|
106
|
+
* @generated from field: google.protobuf.Timestamp create_time = 101;
|
|
107
|
+
*/
|
|
108
|
+
createTime?: Timestamp;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The timestamp when the asset was last modified.
|
|
112
|
+
* This information is expected to be maintained by the system.
|
|
113
|
+
*
|
|
114
|
+
* @generated from field: google.protobuf.Timestamp update_time = 102;
|
|
115
|
+
*/
|
|
116
|
+
updateTime?: Timestamp;
|
|
117
|
+
|
|
118
|
+
constructor(data?: PartialMessage<Asset>) {
|
|
119
|
+
super();
|
|
120
|
+
proto3.util.initPartial(data, this);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
124
|
+
static readonly typeName = "raystack.assets.v1beta2.Asset";
|
|
125
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
126
|
+
{ no: 1, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
127
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
128
|
+
{ no: 3, name: "service", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
129
|
+
{ no: 4, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
130
|
+
{ no: 5, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
131
|
+
{ no: 6, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
132
|
+
{ no: 7, name: "data", kind: "message", T: Any },
|
|
133
|
+
{ no: 31, name: "owners", kind: "message", T: Owner, repeated: true },
|
|
134
|
+
{ no: 32, name: "lineage", kind: "message", T: Lineage },
|
|
135
|
+
{ no: 33, name: "labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
136
|
+
{ no: 100, name: "event", kind: "message", T: Event },
|
|
137
|
+
{ no: 101, name: "create_time", kind: "message", T: Timestamp },
|
|
138
|
+
{ no: 102, name: "update_time", kind: "message", T: Timestamp },
|
|
139
|
+
]);
|
|
140
|
+
|
|
141
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Asset {
|
|
142
|
+
return new Asset().fromBinary(bytes, options);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Asset {
|
|
146
|
+
return new Asset().fromJson(jsonValue, options);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Asset {
|
|
150
|
+
return new Asset().fromJsonString(jsonString, options);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
static equals(a: Asset | PlainMessage<Asset> | undefined, b: Asset | PlainMessage<Asset> | undefined): boolean {
|
|
154
|
+
return proto3.util.equals(Asset, a, b);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|