@meshery/schemas 0.8.119 → 0.8.121
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/dist/api.d.mts +3 -9
- package/dist/api.d.ts +3 -9
- package/dist/api.js +2 -2
- package/dist/api.mjs +2 -2
- package/dist/cloudApi.d.mts +999 -998
- package/dist/cloudApi.d.ts +999 -998
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/dist/constructs/v1alpha3/relationship/Relationship.d.mts +628 -0
- package/dist/constructs/v1alpha3/relationship/Relationship.d.ts +628 -0
- package/dist/constructs/v1alpha3/relationship/Relationship.js +1 -0
- package/dist/constructs/v1alpha3/relationship/Relationship.mjs +0 -0
- package/dist/constructs/v1alpha3/relationship/RelationshipSchema.d.mts +1934 -0
- package/dist/constructs/v1alpha3/relationship/RelationshipSchema.d.ts +1934 -0
- package/dist/constructs/v1alpha3/relationship/RelationshipSchema.js +46 -0
- package/dist/constructs/v1alpha3/relationship/RelationshipSchema.mjs +46 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +46 -2
- package/dist/index.mjs +46 -2
- package/dist/mesheryApi.d.mts +120 -120
- package/dist/mesheryApi.d.ts +120 -120
- package/dist/mesheryApi.js +1 -1
- package/dist/mesheryApi.mjs +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,1934 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated from OpenAPI schema.
|
|
3
|
+
* Do not manually modify this file.
|
|
4
|
+
*/
|
|
5
|
+
declare const RelationshipSchema: {
|
|
6
|
+
readonly openapi: "3.0.0";
|
|
7
|
+
readonly info: {
|
|
8
|
+
readonly title: "relationship";
|
|
9
|
+
readonly version: "1.0.0";
|
|
10
|
+
};
|
|
11
|
+
readonly paths: {};
|
|
12
|
+
readonly components: {
|
|
13
|
+
readonly schemas: {
|
|
14
|
+
readonly RelationshipDefinition: {
|
|
15
|
+
readonly $id: "https://schemas.meshery.io/relationship.yaml";
|
|
16
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
17
|
+
readonly description: "Relationships define the nature of interaction between interconnected components in Meshery. The combination of relationship properties kind, type, and subtype characterize various genealogical relations among and between components. Relationships have selectors, selector sets, metadata, and optional parameters. Learn more at https://docs.meshery.io/concepts/logical/relationships.";
|
|
18
|
+
readonly required: readonly ["schemaVersion", "version", "model", "kind", "type", "subType"];
|
|
19
|
+
readonly additionalProperties: false;
|
|
20
|
+
readonly type: "object";
|
|
21
|
+
readonly properties: {
|
|
22
|
+
readonly id: {
|
|
23
|
+
readonly description: "Uniquely identifies the entity (i.e. component) as defined in a declaration (i.e. design).";
|
|
24
|
+
readonly type: "string";
|
|
25
|
+
readonly format: "uuid";
|
|
26
|
+
readonly "x-go-type": "uuid.UUID";
|
|
27
|
+
readonly "x-go-type-import": {
|
|
28
|
+
readonly path: "github.com/gofrs/uuid";
|
|
29
|
+
};
|
|
30
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
31
|
+
readonly yaml: "id";
|
|
32
|
+
readonly json: "id";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
readonly schemaVersion: {
|
|
36
|
+
readonly description: "Specifies the version of the schema used for the relationship definition.";
|
|
37
|
+
readonly type: "string";
|
|
38
|
+
readonly minLength: 2;
|
|
39
|
+
readonly maxLength: 100;
|
|
40
|
+
readonly pattern: "([a-z.])*(?!^/)v(alpha|beta|[0-9]+)([.-]*[a-z0-9]+)*$";
|
|
41
|
+
readonly example: readonly ["v1", "v1alpha1", "v2beta3", "v1.custom-suffix"];
|
|
42
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
43
|
+
readonly yaml: "schemaVersion";
|
|
44
|
+
readonly json: "schemaVersion";
|
|
45
|
+
};
|
|
46
|
+
readonly default: "relationships.meshery.io/v1alpha3";
|
|
47
|
+
};
|
|
48
|
+
readonly version: {
|
|
49
|
+
readonly description: "Specifies the version of the relationship definition.";
|
|
50
|
+
readonly type: "string";
|
|
51
|
+
readonly minLength: 5;
|
|
52
|
+
readonly maxLength: 100;
|
|
53
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
54
|
+
readonly yaml: "version";
|
|
55
|
+
readonly json: "version";
|
|
56
|
+
};
|
|
57
|
+
readonly pattern: "^[a-z0-9]+.[0-9]+.[0-9]+(-[0-9A-Za-z-]+(.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$";
|
|
58
|
+
};
|
|
59
|
+
readonly model: {
|
|
60
|
+
readonly "x-go-type": "model.ModelReference";
|
|
61
|
+
readonly "x-go-type-import": {
|
|
62
|
+
readonly path: "github.com/meshery/schemas/models/v1beta1/model";
|
|
63
|
+
};
|
|
64
|
+
readonly "x-order": 8;
|
|
65
|
+
readonly description: "Reference to the specific registered model to which the component belongs and from which model version, category, and other properties may be referenced. Learn more at https://docs.meshery.io/concepts/models";
|
|
66
|
+
readonly type: "object";
|
|
67
|
+
readonly required: readonly ["id", "name", "version", "displayName", "model", "registrant"];
|
|
68
|
+
readonly properties: {
|
|
69
|
+
readonly id: {
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
readonly format: "uuid";
|
|
72
|
+
readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
|
|
73
|
+
readonly "x-go-type": "uuid.UUID";
|
|
74
|
+
readonly "x-go-type-import": {
|
|
75
|
+
readonly path: "github.com/gofrs/uuid";
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
readonly name: {
|
|
79
|
+
readonly type: "string";
|
|
80
|
+
readonly description: "The unique name for the model within the scope of a registrant.";
|
|
81
|
+
readonly helperText: "Model name should be in lowercase with hyphens, not whitespaces.";
|
|
82
|
+
readonly pattern: "^[a-z0-9-]+$";
|
|
83
|
+
readonly examples: readonly ["cert-manager"];
|
|
84
|
+
readonly "x-order": 4;
|
|
85
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
86
|
+
readonly yaml: "name";
|
|
87
|
+
readonly json: "name";
|
|
88
|
+
};
|
|
89
|
+
readonly default: "untitled-model";
|
|
90
|
+
};
|
|
91
|
+
readonly version: {
|
|
92
|
+
readonly description: "Version of the model definition.";
|
|
93
|
+
readonly type: "string";
|
|
94
|
+
readonly "x-order": 3;
|
|
95
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
96
|
+
readonly yaml: "version";
|
|
97
|
+
readonly json: "version";
|
|
98
|
+
};
|
|
99
|
+
readonly minLength: 5;
|
|
100
|
+
readonly maxLength: 100;
|
|
101
|
+
readonly pattern: "^[a-z0-9]+.[0-9]+.[0-9]+(-[0-9A-Za-z-]+(.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$";
|
|
102
|
+
};
|
|
103
|
+
readonly displayName: {
|
|
104
|
+
readonly description: "Human-readable name for the model.";
|
|
105
|
+
readonly helperText: "Model display name may include letters, numbers, and spaces. Special characters are not allowed.";
|
|
106
|
+
readonly minLength: 1;
|
|
107
|
+
readonly maxLength: 100;
|
|
108
|
+
readonly type: "string";
|
|
109
|
+
readonly pattern: "^[a-zA-Z0-9 ]+$";
|
|
110
|
+
readonly examples: readonly ["Cert Manager"];
|
|
111
|
+
readonly "x-order": 5;
|
|
112
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
113
|
+
readonly yaml: "displayName";
|
|
114
|
+
readonly json: "displayName";
|
|
115
|
+
};
|
|
116
|
+
readonly default: "Untitled Model";
|
|
117
|
+
};
|
|
118
|
+
readonly model: {
|
|
119
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
120
|
+
readonly gorm: "type:bytes;serializer:json";
|
|
121
|
+
};
|
|
122
|
+
readonly "x-order": 12;
|
|
123
|
+
readonly type: "object";
|
|
124
|
+
readonly description: "Registrant-defined data associated with the model. Properties pertain to the software being managed (e.g. Kubernetes v1.31).";
|
|
125
|
+
readonly required: readonly ["version"];
|
|
126
|
+
readonly properties: {
|
|
127
|
+
readonly version: {
|
|
128
|
+
readonly description: "Version of the model as defined by the registrant.";
|
|
129
|
+
readonly allOf: readonly [{
|
|
130
|
+
readonly type: "string";
|
|
131
|
+
readonly minLength: 5;
|
|
132
|
+
readonly maxLength: 100;
|
|
133
|
+
readonly pattern: "^[a-z0-9]+.[0-9]+.[0-9]+(-[0-9A-Za-z-]+(.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$";
|
|
134
|
+
readonly description: "A valid semantic version string between 5 and 256 characters. The pattern allows for a major.minor.patch version followed by an optional pre-release tag like '-alpha' or '-beta.2' and an optional build metadata tag like '+build.1.";
|
|
135
|
+
}];
|
|
136
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
137
|
+
readonly yaml: "version";
|
|
138
|
+
readonly json: "version";
|
|
139
|
+
};
|
|
140
|
+
readonly "x-order": 1;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
readonly registrant: {
|
|
145
|
+
readonly "x-go-type": "RegistrantReference";
|
|
146
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
147
|
+
readonly yaml: "registrant";
|
|
148
|
+
readonly json: "registrant";
|
|
149
|
+
};
|
|
150
|
+
readonly type: "object";
|
|
151
|
+
readonly required: readonly ["kind"];
|
|
152
|
+
readonly properties: {
|
|
153
|
+
readonly kind: {
|
|
154
|
+
readonly type: "string";
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
readonly kind: {
|
|
161
|
+
readonly description: "Kind of the Relationship. Learn more about relationships - https://docs.meshery.io/concepts/logical/relationships.";
|
|
162
|
+
readonly enum: readonly ["hierarchical", "edge", "sibling"];
|
|
163
|
+
readonly type: "string";
|
|
164
|
+
readonly pattern: "^[a-zA-Z_][a-zA-Z0-9_-]*[a-zA-Z0-9_]$";
|
|
165
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
166
|
+
readonly yaml: "kind";
|
|
167
|
+
readonly json: "kind";
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
readonly type: {
|
|
171
|
+
readonly description: "Classification of relationships. Used to group relationships similar in nature.";
|
|
172
|
+
readonly "x-go-name": "RelationshipType";
|
|
173
|
+
readonly gorm: "column:type";
|
|
174
|
+
readonly type: "string";
|
|
175
|
+
readonly pattern: "^[a-zA-Z_][a-zA-Z0-9_-]*[a-zA-Z0-9_]$";
|
|
176
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
177
|
+
readonly yaml: "type";
|
|
178
|
+
readonly json: "type";
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
readonly subType: {
|
|
182
|
+
readonly description: "Most granular unit of relationship classification. The combination of Kind, Type and SubType together uniquely identify a Relationship.";
|
|
183
|
+
readonly type: "string";
|
|
184
|
+
readonly pattern: "^[a-zA-Z_][a-zA-Z0-9_-]*[a-zA-Z0-9_]$";
|
|
185
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
186
|
+
readonly yaml: "subType";
|
|
187
|
+
readonly json: "subType";
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
readonly status: {
|
|
191
|
+
readonly type: "string";
|
|
192
|
+
readonly description: "Status of the relationship.";
|
|
193
|
+
readonly default: "enabled";
|
|
194
|
+
readonly enum: readonly ["pending", "approved", "ignored", "enabled", "deleted"];
|
|
195
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
196
|
+
readonly yaml: "status";
|
|
197
|
+
readonly json: "status";
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
readonly evaluationQuery: {
|
|
201
|
+
readonly description: "Optional. Assigns the policy to be used for the evaluation of the relationship. Deprecation Notice: In the future, this property is either to be removed or to it is to be an array of optional policy $refs.";
|
|
202
|
+
readonly type: "string";
|
|
203
|
+
readonly pattern: "^[a-zA-Z_][a-zA-Z0-9_-]*[a-zA-Z0-9_]$";
|
|
204
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
205
|
+
readonly yaml: "evaluationQuery";
|
|
206
|
+
readonly json: "evaluationQuery";
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
readonly capabilities: {
|
|
210
|
+
readonly type: "array";
|
|
211
|
+
readonly description: "Capabilities associated with the relationship.";
|
|
212
|
+
readonly items: {
|
|
213
|
+
readonly $id: "https://schemas.meshery.io/capability.yaml";
|
|
214
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
215
|
+
readonly description: "Meshery manages entities in accordance with their specific capabilities. This field explicitly identifies those capabilities largely by what actions a given component supports; e.g. metric-scrape, sub-interface, and so on. This field is extensible. Entities may define a broad array of capabilities, which are in-turn dynamically interpretted by Meshery for full lifecycle management.";
|
|
216
|
+
readonly additionalProperties: false;
|
|
217
|
+
readonly type: "object";
|
|
218
|
+
readonly required: readonly ["schemaVersion", "version", "displayName", "kind", "type", "entityState", "status"];
|
|
219
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
220
|
+
readonly gorm: "type:bytes;serializer:json";
|
|
221
|
+
};
|
|
222
|
+
readonly properties: {
|
|
223
|
+
readonly schemaVersion: {
|
|
224
|
+
readonly description: "Specifies the version of the schema to which the capability definition conforms.";
|
|
225
|
+
readonly type: "string";
|
|
226
|
+
readonly minLength: 2;
|
|
227
|
+
readonly maxLength: 100;
|
|
228
|
+
readonly pattern: "([a-z.])*(?!^/)v(alpha|beta|[0-9]+)([.-]*[a-z0-9]+)*$";
|
|
229
|
+
readonly example: readonly ["v1", "v1alpha1", "v2beta3", "v1.custom-suffix"];
|
|
230
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
231
|
+
readonly yaml: "schemaVersion";
|
|
232
|
+
readonly json: "schemaVersion";
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
readonly version: {
|
|
236
|
+
readonly description: "Version of the capability definition.";
|
|
237
|
+
readonly type: "string";
|
|
238
|
+
readonly minLength: 5;
|
|
239
|
+
readonly maxLength: 100;
|
|
240
|
+
readonly pattern: "^[a-z0-9]+.[0-9]+.[0-9]+(-[0-9A-Za-z-]+(.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$";
|
|
241
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
242
|
+
readonly yaml: "version";
|
|
243
|
+
readonly json: "version";
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
readonly displayName: {
|
|
247
|
+
readonly description: "Name of the capability in human-readible format.";
|
|
248
|
+
readonly type: "string";
|
|
249
|
+
readonly pattern: "^[a-zA-Z_][a-zA-Z0-9_-]*[a-zA-Z0-9_]$";
|
|
250
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
251
|
+
readonly yaml: "displayName";
|
|
252
|
+
readonly json: "displayName";
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
readonly description: {
|
|
256
|
+
readonly type: "string";
|
|
257
|
+
readonly description: "A written representation of the purpose and characteristics of the capability.";
|
|
258
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
259
|
+
readonly yaml: "description";
|
|
260
|
+
readonly json: "description";
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
readonly kind: {
|
|
264
|
+
readonly description: "Top-level categorization of the capability";
|
|
265
|
+
readonly additionalProperties: false;
|
|
266
|
+
readonly anyOf: readonly [{
|
|
267
|
+
readonly const: "action";
|
|
268
|
+
readonly description: "For capabilities related to executing actions on entities. Example: initiate log streaming on a Pod. Example: initiate deployment of a component.";
|
|
269
|
+
}, {
|
|
270
|
+
readonly const: "mutate";
|
|
271
|
+
readonly description: "For capabilities related to mutating an entity. Example: the ability to change the configuration of a component.";
|
|
272
|
+
}, {
|
|
273
|
+
readonly const: "view";
|
|
274
|
+
readonly description: "For capabilities related to viewing an entity. Example: the ability to view a components configuration.";
|
|
275
|
+
}, {
|
|
276
|
+
readonly const: "interaction";
|
|
277
|
+
readonly description: "Catch all for capabilities related to interaction with entities. Example: the ability for a component to be dragged and dropped. Example: supports event bubbling to parent components. ";
|
|
278
|
+
}];
|
|
279
|
+
readonly type: "string";
|
|
280
|
+
readonly pattern: "^[a-zA-Z_][a-zA-Z0-9_-]*[a-zA-Z0-9_]$";
|
|
281
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
282
|
+
readonly yaml: "kind";
|
|
283
|
+
readonly json: "kind";
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
readonly type: {
|
|
287
|
+
readonly description: "Classification of capabilities. Used to group capabilities similar in nature.";
|
|
288
|
+
readonly type: "string";
|
|
289
|
+
readonly pattern: "^[a-zA-Z_][a-zA-Z0-9_-]*[a-zA-Z0-9_]$";
|
|
290
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
291
|
+
readonly yaml: "type";
|
|
292
|
+
readonly json: "type";
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
readonly subType: {
|
|
296
|
+
readonly description: "Most granular unit of capability classification. The combination of Kind, Type and SubType together uniquely identify a Capability.";
|
|
297
|
+
readonly type: "string";
|
|
298
|
+
readonly pattern: "^[a-zA-Z_][a-zA-Z0-9_-]*[a-zA-Z0-9_]$";
|
|
299
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
300
|
+
readonly yaml: "subType";
|
|
301
|
+
readonly json: "subType";
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
readonly key: {
|
|
305
|
+
readonly description: "Key that backs the capability.";
|
|
306
|
+
readonly type: "string";
|
|
307
|
+
readonly pattern: "^[a-zA-Z_][a-zA-Z0-9_-]*[a-zA-Z0-9_]$";
|
|
308
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
309
|
+
readonly yaml: "key";
|
|
310
|
+
readonly json: "key";
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
readonly entityState: {
|
|
314
|
+
readonly description: "State of the entity in which the capability is applicable.";
|
|
315
|
+
readonly type: "array";
|
|
316
|
+
readonly items: {
|
|
317
|
+
readonly type: "string";
|
|
318
|
+
readonly enum: readonly ["declaration", "instance"];
|
|
319
|
+
readonly pattern: "^[a-zA-Z_][a-zA-Z0-9_-]*[a-zA-Z0-9_]$";
|
|
320
|
+
readonly description: "A string starting with an alphanumeric character. Spaces and hyphens allowed.";
|
|
321
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
322
|
+
readonly yaml: "entityState";
|
|
323
|
+
readonly json: "entityState";
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
readonly status: {
|
|
328
|
+
readonly type: "string";
|
|
329
|
+
readonly description: "Status of the capability";
|
|
330
|
+
readonly default: "enabled";
|
|
331
|
+
readonly enum: readonly ["enabled", "disabled"];
|
|
332
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
333
|
+
readonly yaml: "status";
|
|
334
|
+
readonly json: "status";
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
readonly metadata: {
|
|
338
|
+
readonly type: "object";
|
|
339
|
+
readonly description: "Metadata contains additional information associated with the capability. Extension point.";
|
|
340
|
+
readonly additionalProperties: true;
|
|
341
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
342
|
+
readonly yaml: "metadata";
|
|
343
|
+
readonly json: "metadata";
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
349
|
+
readonly gorm: "type:bytes;serializer:json";
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
readonly metadata: {
|
|
353
|
+
readonly type: "object";
|
|
354
|
+
readonly description: "Metadata contains additional information associated with the Relationship.";
|
|
355
|
+
readonly additionalProperties: true;
|
|
356
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
357
|
+
readonly gorm: "foreignKey:ModelId;references:Id";
|
|
358
|
+
};
|
|
359
|
+
readonly properties: {
|
|
360
|
+
readonly description: {
|
|
361
|
+
readonly description: "Characterization of the meaning of the relationship and its relevance to both Meshery and entities under management.";
|
|
362
|
+
readonly type: "string";
|
|
363
|
+
readonly pattern: "^[a-zA-Z_][a-zA-Z0-9_-]*[a-zA-Z0-9_]$";
|
|
364
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
365
|
+
readonly yaml: "description";
|
|
366
|
+
readonly json: "description";
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
readonly isAnnotation: {
|
|
370
|
+
readonly type: "boolean";
|
|
371
|
+
readonly description: "Indicates whether the relationship should be treated as a logical representation only";
|
|
372
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
373
|
+
readonly yaml: "isAnnotation";
|
|
374
|
+
readonly json: "isAnnotation";
|
|
375
|
+
};
|
|
376
|
+
readonly default: false;
|
|
377
|
+
};
|
|
378
|
+
readonly styles: {
|
|
379
|
+
readonly anyOf: readonly [{
|
|
380
|
+
readonly type: "object";
|
|
381
|
+
readonly description: "Visualization styles for a relationship";
|
|
382
|
+
readonly allOf: readonly [{
|
|
383
|
+
readonly type: "object";
|
|
384
|
+
readonly description: "Common styles for all entities";
|
|
385
|
+
readonly additionalProperties: false;
|
|
386
|
+
readonly required: readonly ["primaryColor", "svgColor", "svgWhite"];
|
|
387
|
+
readonly properties: {
|
|
388
|
+
readonly primaryColor: {
|
|
389
|
+
readonly type: "string";
|
|
390
|
+
readonly description: "Primary color of the component used for UI representation.";
|
|
391
|
+
};
|
|
392
|
+
readonly secondaryColor: {
|
|
393
|
+
readonly type: "string";
|
|
394
|
+
readonly description: "Secondary color of the entity used for UI representation.";
|
|
395
|
+
};
|
|
396
|
+
readonly svgWhite: {
|
|
397
|
+
readonly type: "string";
|
|
398
|
+
readonly description: "White SVG of the entity used for UI representation on dark background.";
|
|
399
|
+
};
|
|
400
|
+
readonly svgColor: {
|
|
401
|
+
readonly type: "string";
|
|
402
|
+
readonly description: "Colored SVG of the entity used for UI representation on light background.";
|
|
403
|
+
};
|
|
404
|
+
readonly svgComplete: {
|
|
405
|
+
readonly type: "string";
|
|
406
|
+
readonly description: "Complete SVG of the entity used for UI representation, often inclusive of background.";
|
|
407
|
+
};
|
|
408
|
+
readonly color: {
|
|
409
|
+
readonly type: "string";
|
|
410
|
+
readonly description: "The color of the element's label. Colours may be specified by name (e.g. red), hex (e.g. #ff0000 or #f00), RGB (e.g. rgb(255, 0, 0)), or HSL (e.g. hsl(0, 100%, 50%)).";
|
|
411
|
+
};
|
|
412
|
+
readonly "text-opacity": {
|
|
413
|
+
readonly type: "number";
|
|
414
|
+
readonly description: "The opacity of the label text, including its outline.";
|
|
415
|
+
readonly minimum: 0;
|
|
416
|
+
readonly maximum: 1;
|
|
417
|
+
};
|
|
418
|
+
readonly "font-family": {
|
|
419
|
+
readonly type: "string";
|
|
420
|
+
readonly description: "A comma-separated list of font names to use on the label text.";
|
|
421
|
+
};
|
|
422
|
+
readonly "font-size": {
|
|
423
|
+
readonly type: "string";
|
|
424
|
+
readonly description: "The size of the label text.";
|
|
425
|
+
};
|
|
426
|
+
readonly "font-style": {
|
|
427
|
+
readonly type: "string";
|
|
428
|
+
readonly description: "A CSS font style to be applied to the label text.";
|
|
429
|
+
};
|
|
430
|
+
readonly "font-weight": {
|
|
431
|
+
readonly type: "string";
|
|
432
|
+
readonly description: "A CSS font weight to be applied to the label text.";
|
|
433
|
+
};
|
|
434
|
+
readonly "text-transform": {
|
|
435
|
+
readonly type: "string";
|
|
436
|
+
readonly description: "A transformation to apply to the label text";
|
|
437
|
+
readonly enum: readonly ["none", "uppercase", "lowercase"];
|
|
438
|
+
};
|
|
439
|
+
readonly opacity: {
|
|
440
|
+
readonly type: "number";
|
|
441
|
+
readonly description: "The opacity of the element, ranging from 0 to 1. Note that the opacity of a compound node parent affects the effective opacity of its children.See https://js.cytoscape.org/#style/visibility";
|
|
442
|
+
readonly minimum: 0;
|
|
443
|
+
readonly maximum: 1;
|
|
444
|
+
};
|
|
445
|
+
readonly "z-index": {
|
|
446
|
+
readonly type: "integer";
|
|
447
|
+
readonly description: "An integer value that affects the relative draw order of elements. In general, an element with a higher z-index will be drawn on top of an element with a lower z-index. Note that edges are under nodes despite z-index.";
|
|
448
|
+
};
|
|
449
|
+
readonly label: {
|
|
450
|
+
readonly type: "string";
|
|
451
|
+
readonly description: "The text to display for an element’s label. Can give a path, e.g. data(id) will label with the elements id";
|
|
452
|
+
};
|
|
453
|
+
};
|
|
454
|
+
}, {
|
|
455
|
+
readonly properties: {
|
|
456
|
+
readonly "edge-animation": {
|
|
457
|
+
readonly type: "string";
|
|
458
|
+
readonly description: "The animation to use for the edge. Can be like 'marching-ants' , 'blink' , 'moving-gradient',etc .";
|
|
459
|
+
};
|
|
460
|
+
readonly "curve-style": {
|
|
461
|
+
readonly type: "string";
|
|
462
|
+
readonly description: "The curving method used to separate two or more edges between two nodes; may be haystack (very fast, bundled straight edges for which loops and compounds are unsupported), straight (straight edges with all arrows supported), bezier (bundled curved edges), unbundled-bezier (curved edges for use with manual control points), segments (a series of straight lines), taxi (right-angled lines, hierarchically bundled). Note that haystack edges work best with ellipse, rectangle, or similar nodes. Smaller node shapes, like triangle, will not be as aesthetically pleasing. Also note that edge endpoint arrows are unsupported for haystack edges.";
|
|
463
|
+
readonly default: "straight";
|
|
464
|
+
readonly enum: readonly ["straight", "haystack", "bezier", "unbundled-bezier", "segments", "taxi"];
|
|
465
|
+
};
|
|
466
|
+
readonly "line-color": {
|
|
467
|
+
readonly type: "string";
|
|
468
|
+
readonly description: "The colour of the edge’s line. Colours may be specified by name (e.g. red), hex (e.g. #ff0000 or #f00), RGB (e.g. rgb(255, 0, 0)), or HSL (e.g. hsl(0, 100%, 50%)).";
|
|
469
|
+
};
|
|
470
|
+
readonly "line-style": {
|
|
471
|
+
readonly type: "string";
|
|
472
|
+
readonly description: "The style of the edge’s line.";
|
|
473
|
+
readonly enum: readonly ["solid", "dotted", "dashed"];
|
|
474
|
+
};
|
|
475
|
+
readonly "line-cap": {
|
|
476
|
+
readonly type: "string";
|
|
477
|
+
readonly description: "The cap style of the edge’s line; may be butt (default), round, or square. The cap may or may not be visible, depending on the shape of the node and the relative size of the node and edge. Caps other than butt extend beyond the specified endpoint of the edge.";
|
|
478
|
+
readonly enum: readonly ["butt", "round", "square"];
|
|
479
|
+
readonly default: "butt";
|
|
480
|
+
};
|
|
481
|
+
readonly "line-opacity": {
|
|
482
|
+
readonly type: "number";
|
|
483
|
+
readonly minimum: 0;
|
|
484
|
+
readonly maximum: 1;
|
|
485
|
+
readonly default: 1;
|
|
486
|
+
readonly description: "The opacity of the edge’s line and arrow. Useful if you wish to have a separate opacity for the edge label versus the edge line. Note that the opacity value of the edge element affects the effective opacity of its line and label subcomponents.";
|
|
487
|
+
};
|
|
488
|
+
readonly "target-arrow-color": {
|
|
489
|
+
readonly type: "string";
|
|
490
|
+
readonly description: "The colour of the edge’s source arrow. Colours may be specified by name (e.g. red), hex (e.g. #ff0000 or #f00), RGB (e.g. rgb(255, 0, 0)), or HSL (e.g. hsl(0, 100%, 50%)).";
|
|
491
|
+
};
|
|
492
|
+
readonly "target-arrow-shape": {
|
|
493
|
+
readonly type: "string";
|
|
494
|
+
readonly description: "The shape of the edge’s source arrow";
|
|
495
|
+
readonly enum: readonly ["triangle", "triangle-tee", "circle-triangle", "triangle-cross", "triangle-backcurve", "vee", "tee", "square", "circle", "diamond", "chevron", "none"];
|
|
496
|
+
};
|
|
497
|
+
readonly "target-arrow-fill": {
|
|
498
|
+
readonly type: "string";
|
|
499
|
+
readonly description: "The fill state of the edge’s source arrow";
|
|
500
|
+
readonly enum: readonly ["filled", "hollow"];
|
|
501
|
+
};
|
|
502
|
+
readonly "mid-target-arrow-color": {
|
|
503
|
+
readonly type: "string";
|
|
504
|
+
readonly description: "The colour of the edge’s source arrow. Colours may be specified by name (e.g. red), hex (e.g. #ff0000 or #f00), RGB (e.g. rgb(255, 0, 0)), or HSL (e.g. hsl(0, 100%, 50%)).";
|
|
505
|
+
};
|
|
506
|
+
readonly "mid-target-arrow-shape": {
|
|
507
|
+
readonly type: "string";
|
|
508
|
+
readonly description: "The shape of the edge’s source arrow";
|
|
509
|
+
readonly enum: readonly ["triangle", "triangle-tee", "circle-triangle", "triangle-cross", "triangle-backcurve", "vee", "tee", "square", "circle", "diamond", "chevron", "none"];
|
|
510
|
+
};
|
|
511
|
+
readonly "mid-target-arrow-fill": {
|
|
512
|
+
readonly type: "string";
|
|
513
|
+
readonly description: "The fill state of the edge’s source arrow";
|
|
514
|
+
readonly enum: readonly ["filled", "hollow"];
|
|
515
|
+
};
|
|
516
|
+
readonly "arrow-scale": {
|
|
517
|
+
readonly type: "number";
|
|
518
|
+
readonly description: "Scaling for the arrow size.";
|
|
519
|
+
readonly minimum: 0;
|
|
520
|
+
};
|
|
521
|
+
readonly "source-label": {
|
|
522
|
+
readonly type: "string";
|
|
523
|
+
readonly description: "The text to display for an edge’s source label. Can give a path, e.g. data(id) will label with the elements id";
|
|
524
|
+
};
|
|
525
|
+
readonly "target-label": {
|
|
526
|
+
readonly type: "string";
|
|
527
|
+
readonly description: "The text to display for an edge’s target label. Can give a path, e.g. data(id) will label with the elements id";
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
}];
|
|
531
|
+
}, {
|
|
532
|
+
readonly type: "object";
|
|
533
|
+
readonly description: "Common styles for all entities";
|
|
534
|
+
readonly additionalProperties: false;
|
|
535
|
+
readonly required: readonly ["primaryColor", "svgColor", "svgWhite"];
|
|
536
|
+
readonly properties: {
|
|
537
|
+
readonly primaryColor: {
|
|
538
|
+
readonly type: "string";
|
|
539
|
+
readonly description: "Primary color of the component used for UI representation.";
|
|
540
|
+
};
|
|
541
|
+
readonly secondaryColor: {
|
|
542
|
+
readonly type: "string";
|
|
543
|
+
readonly description: "Secondary color of the entity used for UI representation.";
|
|
544
|
+
};
|
|
545
|
+
readonly svgWhite: {
|
|
546
|
+
readonly type: "string";
|
|
547
|
+
readonly description: "White SVG of the entity used for UI representation on dark background.";
|
|
548
|
+
};
|
|
549
|
+
readonly svgColor: {
|
|
550
|
+
readonly type: "string";
|
|
551
|
+
readonly description: "Colored SVG of the entity used for UI representation on light background.";
|
|
552
|
+
};
|
|
553
|
+
readonly svgComplete: {
|
|
554
|
+
readonly type: "string";
|
|
555
|
+
readonly description: "Complete SVG of the entity used for UI representation, often inclusive of background.";
|
|
556
|
+
};
|
|
557
|
+
readonly color: {
|
|
558
|
+
readonly type: "string";
|
|
559
|
+
readonly description: "The color of the element's label. Colours may be specified by name (e.g. red), hex (e.g. #ff0000 or #f00), RGB (e.g. rgb(255, 0, 0)), or HSL (e.g. hsl(0, 100%, 50%)).";
|
|
560
|
+
};
|
|
561
|
+
readonly "text-opacity": {
|
|
562
|
+
readonly type: "number";
|
|
563
|
+
readonly description: "The opacity of the label text, including its outline.";
|
|
564
|
+
readonly minimum: 0;
|
|
565
|
+
readonly maximum: 1;
|
|
566
|
+
};
|
|
567
|
+
readonly "font-family": {
|
|
568
|
+
readonly type: "string";
|
|
569
|
+
readonly description: "A comma-separated list of font names to use on the label text.";
|
|
570
|
+
};
|
|
571
|
+
readonly "font-size": {
|
|
572
|
+
readonly type: "string";
|
|
573
|
+
readonly description: "The size of the label text.";
|
|
574
|
+
};
|
|
575
|
+
readonly "font-style": {
|
|
576
|
+
readonly type: "string";
|
|
577
|
+
readonly description: "A CSS font style to be applied to the label text.";
|
|
578
|
+
};
|
|
579
|
+
readonly "font-weight": {
|
|
580
|
+
readonly type: "string";
|
|
581
|
+
readonly description: "A CSS font weight to be applied to the label text.";
|
|
582
|
+
};
|
|
583
|
+
readonly "text-transform": {
|
|
584
|
+
readonly type: "string";
|
|
585
|
+
readonly description: "A transformation to apply to the label text";
|
|
586
|
+
readonly enum: readonly ["none", "uppercase", "lowercase"];
|
|
587
|
+
};
|
|
588
|
+
readonly opacity: {
|
|
589
|
+
readonly type: "number";
|
|
590
|
+
readonly description: "The opacity of the element, ranging from 0 to 1. Note that the opacity of a compound node parent affects the effective opacity of its children.See https://js.cytoscape.org/#style/visibility";
|
|
591
|
+
readonly minimum: 0;
|
|
592
|
+
readonly maximum: 1;
|
|
593
|
+
};
|
|
594
|
+
readonly "z-index": {
|
|
595
|
+
readonly type: "integer";
|
|
596
|
+
readonly description: "An integer value that affects the relative draw order of elements. In general, an element with a higher z-index will be drawn on top of an element with a lower z-index. Note that edges are under nodes despite z-index.";
|
|
597
|
+
};
|
|
598
|
+
readonly label: {
|
|
599
|
+
readonly type: "string";
|
|
600
|
+
readonly description: "The text to display for an element’s label. Can give a path, e.g. data(id) will label with the elements id";
|
|
601
|
+
};
|
|
602
|
+
};
|
|
603
|
+
readonly $comment: "Extension point for additional styles";
|
|
604
|
+
}];
|
|
605
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
606
|
+
readonly yaml: "styles";
|
|
607
|
+
readonly json: "styles";
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
readonly selectors: {
|
|
613
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
614
|
+
readonly gorm: "type:bytes;serializer:json";
|
|
615
|
+
};
|
|
616
|
+
readonly type: "array";
|
|
617
|
+
readonly description: "Selectors are organized as an array, with each item containing a distinct set of selectors that share a common functionality. This structure allows for flexibility in defining relationships, even when different components are involved.";
|
|
618
|
+
readonly $comment: "Sets of selectors are interpreted as a logical UNION. Properties within a selector `allow` and `deny` are interpreted as logical AND, while 'from' and 'to' represents a UNION of set of combinatorial pairs.";
|
|
619
|
+
readonly items: {
|
|
620
|
+
readonly type: "object";
|
|
621
|
+
readonly description: "Optional selectors used to match Components. Absence of a selector means that it is applied to all Components.";
|
|
622
|
+
readonly additionalProperties: false;
|
|
623
|
+
readonly required: readonly ["allow"];
|
|
624
|
+
readonly properties: {
|
|
625
|
+
readonly deny: {
|
|
626
|
+
readonly description: "Optional selectors used to define relationships which should not be created / is restricted.";
|
|
627
|
+
readonly type: "object";
|
|
628
|
+
readonly required: readonly ["to", "from"];
|
|
629
|
+
readonly properties: {
|
|
630
|
+
readonly from: {
|
|
631
|
+
readonly description: "Describes the component(s) which are involved in the relationship along with a set of actions to perform upon selection match.";
|
|
632
|
+
readonly type: "array";
|
|
633
|
+
readonly items: {
|
|
634
|
+
readonly type: "object";
|
|
635
|
+
readonly additionalProperties: false;
|
|
636
|
+
readonly properties: {
|
|
637
|
+
readonly kind: {
|
|
638
|
+
readonly type: "string";
|
|
639
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
640
|
+
readonly yaml: "kind";
|
|
641
|
+
readonly json: "kind";
|
|
642
|
+
};
|
|
643
|
+
};
|
|
644
|
+
readonly model: {
|
|
645
|
+
readonly "x-go-type": "model.ModelReference";
|
|
646
|
+
readonly "x-go-type-import": {
|
|
647
|
+
readonly path: "github.com/meshery/schemas/models/v1beta1/model";
|
|
648
|
+
};
|
|
649
|
+
readonly "x-order": 8;
|
|
650
|
+
readonly description: "Reference to the specific registered model to which the component belongs and from which model version, category, and other properties may be referenced. Learn more at https://docs.meshery.io/concepts/models";
|
|
651
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
652
|
+
readonly gorm: "-";
|
|
653
|
+
};
|
|
654
|
+
readonly type: "object";
|
|
655
|
+
readonly required: readonly ["id", "name", "version", "displayName", "model", "registrant"];
|
|
656
|
+
readonly properties: {
|
|
657
|
+
readonly id: {
|
|
658
|
+
readonly type: "string";
|
|
659
|
+
readonly format: "uuid";
|
|
660
|
+
readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
|
|
661
|
+
readonly "x-go-type": "uuid.UUID";
|
|
662
|
+
readonly "x-go-type-import": {
|
|
663
|
+
readonly path: "github.com/gofrs/uuid";
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
readonly name: {
|
|
667
|
+
readonly type: "string";
|
|
668
|
+
readonly description: "The unique name for the model within the scope of a registrant.";
|
|
669
|
+
readonly helperText: "Model name should be in lowercase with hyphens, not whitespaces.";
|
|
670
|
+
readonly pattern: "^[a-z0-9-]+$";
|
|
671
|
+
readonly examples: readonly ["cert-manager"];
|
|
672
|
+
readonly "x-order": 4;
|
|
673
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
674
|
+
readonly yaml: "name";
|
|
675
|
+
readonly json: "name";
|
|
676
|
+
};
|
|
677
|
+
readonly default: "untitled-model";
|
|
678
|
+
};
|
|
679
|
+
readonly version: {
|
|
680
|
+
readonly description: "Version of the model definition.";
|
|
681
|
+
readonly type: "string";
|
|
682
|
+
readonly "x-order": 3;
|
|
683
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
684
|
+
readonly yaml: "version";
|
|
685
|
+
readonly json: "version";
|
|
686
|
+
};
|
|
687
|
+
readonly minLength: 5;
|
|
688
|
+
readonly maxLength: 100;
|
|
689
|
+
readonly pattern: "^[a-z0-9]+.[0-9]+.[0-9]+(-[0-9A-Za-z-]+(.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$";
|
|
690
|
+
};
|
|
691
|
+
readonly displayName: {
|
|
692
|
+
readonly description: "Human-readable name for the model.";
|
|
693
|
+
readonly helperText: "Model display name may include letters, numbers, and spaces. Special characters are not allowed.";
|
|
694
|
+
readonly minLength: 1;
|
|
695
|
+
readonly maxLength: 100;
|
|
696
|
+
readonly type: "string";
|
|
697
|
+
readonly pattern: "^[a-zA-Z0-9 ]+$";
|
|
698
|
+
readonly examples: readonly ["Cert Manager"];
|
|
699
|
+
readonly "x-order": 5;
|
|
700
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
701
|
+
readonly yaml: "displayName";
|
|
702
|
+
readonly json: "displayName";
|
|
703
|
+
};
|
|
704
|
+
readonly default: "Untitled Model";
|
|
705
|
+
};
|
|
706
|
+
readonly model: {
|
|
707
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
708
|
+
readonly gorm: "type:bytes;serializer:json";
|
|
709
|
+
};
|
|
710
|
+
readonly "x-order": 12;
|
|
711
|
+
readonly type: "object";
|
|
712
|
+
readonly description: "Registrant-defined data associated with the model. Properties pertain to the software being managed (e.g. Kubernetes v1.31).";
|
|
713
|
+
readonly required: readonly ["version"];
|
|
714
|
+
readonly properties: {
|
|
715
|
+
readonly version: {
|
|
716
|
+
readonly description: "Version of the model as defined by the registrant.";
|
|
717
|
+
readonly allOf: readonly [{
|
|
718
|
+
readonly type: "string";
|
|
719
|
+
readonly minLength: 5;
|
|
720
|
+
readonly maxLength: 100;
|
|
721
|
+
readonly pattern: "^[a-z0-9]+.[0-9]+.[0-9]+(-[0-9A-Za-z-]+(.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$";
|
|
722
|
+
readonly description: "A valid semantic version string between 5 and 256 characters. The pattern allows for a major.minor.patch version followed by an optional pre-release tag like '-alpha' or '-beta.2' and an optional build metadata tag like '+build.1.";
|
|
723
|
+
}];
|
|
724
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
725
|
+
readonly yaml: "version";
|
|
726
|
+
readonly json: "version";
|
|
727
|
+
};
|
|
728
|
+
readonly "x-order": 1;
|
|
729
|
+
};
|
|
730
|
+
};
|
|
731
|
+
};
|
|
732
|
+
readonly registrant: {
|
|
733
|
+
readonly "x-go-type": "RegistrantReference";
|
|
734
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
735
|
+
readonly yaml: "registrant";
|
|
736
|
+
readonly json: "registrant";
|
|
737
|
+
};
|
|
738
|
+
readonly type: "object";
|
|
739
|
+
readonly required: readonly ["kind"];
|
|
740
|
+
readonly properties: {
|
|
741
|
+
readonly kind: {
|
|
742
|
+
readonly type: "string";
|
|
743
|
+
};
|
|
744
|
+
};
|
|
745
|
+
};
|
|
746
|
+
};
|
|
747
|
+
};
|
|
748
|
+
readonly id: {
|
|
749
|
+
readonly type: "string";
|
|
750
|
+
readonly format: "uuid";
|
|
751
|
+
readonly description: "A Universally Unique Identifier used to uniquely identify entites in Meshery. The UUID core defintion is used across different schemas.";
|
|
752
|
+
readonly "x-go-type": "uuid.UUID";
|
|
753
|
+
readonly "x-go-type-import": {
|
|
754
|
+
readonly path: "github.com/gofrs/uuid";
|
|
755
|
+
};
|
|
756
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
757
|
+
readonly yaml: "id";
|
|
758
|
+
readonly json: "id";
|
|
759
|
+
};
|
|
760
|
+
};
|
|
761
|
+
readonly match: {
|
|
762
|
+
readonly type: "object";
|
|
763
|
+
readonly additionalProperties: false;
|
|
764
|
+
readonly oneOf: readonly [{
|
|
765
|
+
readonly type: "array";
|
|
766
|
+
readonly items: {
|
|
767
|
+
readonly type: "array";
|
|
768
|
+
readonly items: {
|
|
769
|
+
readonly type: "string";
|
|
770
|
+
};
|
|
771
|
+
};
|
|
772
|
+
}, {
|
|
773
|
+
readonly properties: {
|
|
774
|
+
readonly from: {
|
|
775
|
+
readonly $comment: "Type is array so that mutliple bindings can be supported between 2 nodes";
|
|
776
|
+
readonly type: "array";
|
|
777
|
+
readonly items: {
|
|
778
|
+
readonly type: "object";
|
|
779
|
+
readonly allOf: readonly [{
|
|
780
|
+
readonly properties: {
|
|
781
|
+
readonly kind: {
|
|
782
|
+
readonly type: "string";
|
|
783
|
+
};
|
|
784
|
+
readonly id: {
|
|
785
|
+
readonly type: "string";
|
|
786
|
+
readonly format: "uuid";
|
|
787
|
+
readonly description: "A Universally Unique Identifier used to uniquely identify entites in Meshery. The UUID core defintion is used across different schemas.";
|
|
788
|
+
readonly "x-go-type": "uuid.UUID";
|
|
789
|
+
readonly "x-go-type-import": {
|
|
790
|
+
readonly path: "github.com/gofrs/uuid";
|
|
791
|
+
};
|
|
792
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
793
|
+
readonly yaml: "id";
|
|
794
|
+
readonly json: "id";
|
|
795
|
+
};
|
|
796
|
+
};
|
|
797
|
+
};
|
|
798
|
+
}, {
|
|
799
|
+
readonly oneOf: readonly [{
|
|
800
|
+
readonly properties: {
|
|
801
|
+
readonly mutatorRef: {
|
|
802
|
+
readonly type: "array";
|
|
803
|
+
readonly items: {
|
|
804
|
+
readonly type: "array";
|
|
805
|
+
readonly items: {
|
|
806
|
+
readonly type: "string";
|
|
807
|
+
};
|
|
808
|
+
readonly description: "The sequence of mutatorRef and mutatedRef must match. eg: mutatorRef: [[config, url], [config, name]], mutatedRef: [[configPatch, value], [name]]. The value [config, url] will be patched at [configPatch, value]. Similarly [config,name] will be patched at [name].";
|
|
809
|
+
};
|
|
810
|
+
readonly description: "JSON ref to value from where patch should be applied.";
|
|
811
|
+
};
|
|
812
|
+
};
|
|
813
|
+
}, {
|
|
814
|
+
readonly properties: {
|
|
815
|
+
readonly mutatedRef: {
|
|
816
|
+
readonly type: "array";
|
|
817
|
+
readonly items: {
|
|
818
|
+
readonly type: "array";
|
|
819
|
+
readonly items: {
|
|
820
|
+
readonly type: "string";
|
|
821
|
+
};
|
|
822
|
+
readonly description: "JSONPath (https://en.wikipedia.org/wiki/JSONPath) to property to be patched.";
|
|
823
|
+
};
|
|
824
|
+
};
|
|
825
|
+
};
|
|
826
|
+
}];
|
|
827
|
+
}];
|
|
828
|
+
};
|
|
829
|
+
};
|
|
830
|
+
readonly to: {
|
|
831
|
+
readonly $comment: "Type is array so that mutliple bindings can be supported between 2 nodes";
|
|
832
|
+
readonly type: "array";
|
|
833
|
+
readonly items: {
|
|
834
|
+
readonly type: "object";
|
|
835
|
+
readonly allOf: readonly [{
|
|
836
|
+
readonly properties: {
|
|
837
|
+
readonly kind: {
|
|
838
|
+
readonly type: "string";
|
|
839
|
+
};
|
|
840
|
+
readonly id: {
|
|
841
|
+
readonly type: "string";
|
|
842
|
+
readonly format: "uuid";
|
|
843
|
+
readonly description: "A Universally Unique Identifier used to uniquely identify entites in Meshery. The UUID core defintion is used across different schemas.";
|
|
844
|
+
readonly "x-go-type": "uuid.UUID";
|
|
845
|
+
readonly "x-go-type-import": {
|
|
846
|
+
readonly path: "github.com/gofrs/uuid";
|
|
847
|
+
};
|
|
848
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
849
|
+
readonly yaml: "id";
|
|
850
|
+
readonly json: "id";
|
|
851
|
+
};
|
|
852
|
+
};
|
|
853
|
+
};
|
|
854
|
+
}, {
|
|
855
|
+
readonly oneOf: readonly [{
|
|
856
|
+
readonly properties: {
|
|
857
|
+
readonly mutatorRef: {
|
|
858
|
+
readonly type: "array";
|
|
859
|
+
readonly items: {
|
|
860
|
+
readonly type: "array";
|
|
861
|
+
readonly items: {
|
|
862
|
+
readonly type: "string";
|
|
863
|
+
};
|
|
864
|
+
readonly description: "The sequence of mutatorRef and mutatedRef must match. eg: mutatorRef: [[config, url], [config, name]], mutatedRef: [[configPatch, value], [name]]. The value [config, url] will be patched at [configPatch, value]. Similarly [config,name] will be patched at [name].";
|
|
865
|
+
};
|
|
866
|
+
readonly description: "JSON ref to value from where patch should be applied.";
|
|
867
|
+
};
|
|
868
|
+
};
|
|
869
|
+
}, {
|
|
870
|
+
readonly properties: {
|
|
871
|
+
readonly mutatedRef: {
|
|
872
|
+
readonly type: "array";
|
|
873
|
+
readonly items: {
|
|
874
|
+
readonly type: "array";
|
|
875
|
+
readonly items: {
|
|
876
|
+
readonly type: "string";
|
|
877
|
+
};
|
|
878
|
+
readonly description: "JSONPath (https://en.wikipedia.org/wiki/JSONPath) to property to be patched.";
|
|
879
|
+
};
|
|
880
|
+
};
|
|
881
|
+
};
|
|
882
|
+
}];
|
|
883
|
+
}];
|
|
884
|
+
};
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
}];
|
|
888
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
889
|
+
readonly yaml: "match";
|
|
890
|
+
readonly json: "match";
|
|
891
|
+
};
|
|
892
|
+
};
|
|
893
|
+
readonly patch: {
|
|
894
|
+
readonly allOf: readonly [{
|
|
895
|
+
readonly properties: {
|
|
896
|
+
readonly patchStrategy: {
|
|
897
|
+
readonly description: "patchStrategy allows you to make specific changes to a resource using a standard JSON Patch format (RFC 6902). \n\nadd: Inserts a value into an array or adds a member to an object.\nreplace: Replaces a value.\nmerge: Combines the values of the target location with the values from the patch. If the target location doesn't exist, it is created.\nstrategic:specific to Kubernetes and understands the structure of Kubernetes objects. It can handle complex changes like updating lists and maps, as well as preserving default values. However, it's not supported for custom resources. For custom resources, only JSON Patch and Merge Patch are typically supported.\nremove: Removes a value.\ncopy: Copies a value from one location to another.\nmove: Moves a value from one location to another.\ntest: Tests that a value at the target location is equal to a specified value.";
|
|
898
|
+
readonly $comment: "Array Indexing: When working with arrays, be aware that Kubernetes uses zero-based indexing in JSON patch paths.\nMerge Patch vs. JSON Patch: Merge patches are less flexible than JSON patches and do not support all the same operations.\nStrategic Merge Patch: For some Kubernetes resources, you can also use the strategic type for a strategic merge patch, which understands the structure of Kubernetes objects and can handle complex operations.";
|
|
899
|
+
readonly type: "string";
|
|
900
|
+
readonly enum: readonly ["merge", "strategic", "add", "remove", "copy", "move", "test"];
|
|
901
|
+
readonly default: "copy";
|
|
902
|
+
};
|
|
903
|
+
};
|
|
904
|
+
}, {
|
|
905
|
+
readonly oneOf: readonly [{
|
|
906
|
+
readonly properties: {
|
|
907
|
+
readonly mutatorRef: {
|
|
908
|
+
readonly type: "array";
|
|
909
|
+
readonly items: {
|
|
910
|
+
readonly type: "array";
|
|
911
|
+
readonly items: {
|
|
912
|
+
readonly type: "string";
|
|
913
|
+
};
|
|
914
|
+
readonly description: "The sequence of mutatorRef and mutatedRef must match. eg: mutatorRef: [[config, url], [config, name]], mutatedRef: [[configPatch, value], [name]]. The value [config, url] will be patched at [configPatch, value]. Similarly [config,name] will be patched at [name].";
|
|
915
|
+
};
|
|
916
|
+
readonly description: "JSON ref to value from where patch should be applied.";
|
|
917
|
+
};
|
|
918
|
+
};
|
|
919
|
+
}, {
|
|
920
|
+
readonly properties: {
|
|
921
|
+
readonly mutatedRef: {
|
|
922
|
+
readonly type: "array";
|
|
923
|
+
readonly items: {
|
|
924
|
+
readonly type: "array";
|
|
925
|
+
readonly items: {
|
|
926
|
+
readonly type: "string";
|
|
927
|
+
};
|
|
928
|
+
readonly description: "JSONPath (https://en.wikipedia.org/wiki/JSONPath) to property to be patched.";
|
|
929
|
+
};
|
|
930
|
+
};
|
|
931
|
+
};
|
|
932
|
+
}];
|
|
933
|
+
}];
|
|
934
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
935
|
+
readonly yaml: "patch";
|
|
936
|
+
readonly json: "patch";
|
|
937
|
+
};
|
|
938
|
+
};
|
|
939
|
+
};
|
|
940
|
+
readonly description: "Optional fields that are a part of the `from` selector. Absence of a field has an implied * meaning.";
|
|
941
|
+
};
|
|
942
|
+
};
|
|
943
|
+
readonly to: {
|
|
944
|
+
readonly description: "Describes the component(s) which are involved in the relationship along with a set of actions to perform upon selection match.";
|
|
945
|
+
readonly type: "array";
|
|
946
|
+
readonly items: {
|
|
947
|
+
readonly type: "object";
|
|
948
|
+
readonly additionalProperties: false;
|
|
949
|
+
readonly properties: {
|
|
950
|
+
readonly kind: {
|
|
951
|
+
readonly type: "string";
|
|
952
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
953
|
+
readonly yaml: "kind";
|
|
954
|
+
readonly json: "kind";
|
|
955
|
+
};
|
|
956
|
+
};
|
|
957
|
+
readonly model: {
|
|
958
|
+
readonly "x-go-type": "model.ModelReference";
|
|
959
|
+
readonly "x-go-type-import": {
|
|
960
|
+
readonly path: "github.com/meshery/schemas/models/v1beta1/model";
|
|
961
|
+
};
|
|
962
|
+
readonly "x-order": 8;
|
|
963
|
+
readonly description: "Reference to the specific registered model to which the component belongs and from which model version, category, and other properties may be referenced. Learn more at https://docs.meshery.io/concepts/models";
|
|
964
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
965
|
+
readonly gorm: "-";
|
|
966
|
+
};
|
|
967
|
+
readonly type: "object";
|
|
968
|
+
readonly required: readonly ["id", "name", "version", "displayName", "model", "registrant"];
|
|
969
|
+
readonly properties: {
|
|
970
|
+
readonly id: {
|
|
971
|
+
readonly type: "string";
|
|
972
|
+
readonly format: "uuid";
|
|
973
|
+
readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
|
|
974
|
+
readonly "x-go-type": "uuid.UUID";
|
|
975
|
+
readonly "x-go-type-import": {
|
|
976
|
+
readonly path: "github.com/gofrs/uuid";
|
|
977
|
+
};
|
|
978
|
+
};
|
|
979
|
+
readonly name: {
|
|
980
|
+
readonly type: "string";
|
|
981
|
+
readonly description: "The unique name for the model within the scope of a registrant.";
|
|
982
|
+
readonly helperText: "Model name should be in lowercase with hyphens, not whitespaces.";
|
|
983
|
+
readonly pattern: "^[a-z0-9-]+$";
|
|
984
|
+
readonly examples: readonly ["cert-manager"];
|
|
985
|
+
readonly "x-order": 4;
|
|
986
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
987
|
+
readonly yaml: "name";
|
|
988
|
+
readonly json: "name";
|
|
989
|
+
};
|
|
990
|
+
readonly default: "untitled-model";
|
|
991
|
+
};
|
|
992
|
+
readonly version: {
|
|
993
|
+
readonly description: "Version of the model definition.";
|
|
994
|
+
readonly type: "string";
|
|
995
|
+
readonly "x-order": 3;
|
|
996
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
997
|
+
readonly yaml: "version";
|
|
998
|
+
readonly json: "version";
|
|
999
|
+
};
|
|
1000
|
+
readonly minLength: 5;
|
|
1001
|
+
readonly maxLength: 100;
|
|
1002
|
+
readonly pattern: "^[a-z0-9]+.[0-9]+.[0-9]+(-[0-9A-Za-z-]+(.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$";
|
|
1003
|
+
};
|
|
1004
|
+
readonly displayName: {
|
|
1005
|
+
readonly description: "Human-readable name for the model.";
|
|
1006
|
+
readonly helperText: "Model display name may include letters, numbers, and spaces. Special characters are not allowed.";
|
|
1007
|
+
readonly minLength: 1;
|
|
1008
|
+
readonly maxLength: 100;
|
|
1009
|
+
readonly type: "string";
|
|
1010
|
+
readonly pattern: "^[a-zA-Z0-9 ]+$";
|
|
1011
|
+
readonly examples: readonly ["Cert Manager"];
|
|
1012
|
+
readonly "x-order": 5;
|
|
1013
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1014
|
+
readonly yaml: "displayName";
|
|
1015
|
+
readonly json: "displayName";
|
|
1016
|
+
};
|
|
1017
|
+
readonly default: "Untitled Model";
|
|
1018
|
+
};
|
|
1019
|
+
readonly model: {
|
|
1020
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1021
|
+
readonly gorm: "type:bytes;serializer:json";
|
|
1022
|
+
};
|
|
1023
|
+
readonly "x-order": 12;
|
|
1024
|
+
readonly type: "object";
|
|
1025
|
+
readonly description: "Registrant-defined data associated with the model. Properties pertain to the software being managed (e.g. Kubernetes v1.31).";
|
|
1026
|
+
readonly required: readonly ["version"];
|
|
1027
|
+
readonly properties: {
|
|
1028
|
+
readonly version: {
|
|
1029
|
+
readonly description: "Version of the model as defined by the registrant.";
|
|
1030
|
+
readonly allOf: readonly [{
|
|
1031
|
+
readonly type: "string";
|
|
1032
|
+
readonly minLength: 5;
|
|
1033
|
+
readonly maxLength: 100;
|
|
1034
|
+
readonly pattern: "^[a-z0-9]+.[0-9]+.[0-9]+(-[0-9A-Za-z-]+(.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$";
|
|
1035
|
+
readonly description: "A valid semantic version string between 5 and 256 characters. The pattern allows for a major.minor.patch version followed by an optional pre-release tag like '-alpha' or '-beta.2' and an optional build metadata tag like '+build.1.";
|
|
1036
|
+
}];
|
|
1037
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1038
|
+
readonly yaml: "version";
|
|
1039
|
+
readonly json: "version";
|
|
1040
|
+
};
|
|
1041
|
+
readonly "x-order": 1;
|
|
1042
|
+
};
|
|
1043
|
+
};
|
|
1044
|
+
};
|
|
1045
|
+
readonly registrant: {
|
|
1046
|
+
readonly "x-go-type": "RegistrantReference";
|
|
1047
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1048
|
+
readonly yaml: "registrant";
|
|
1049
|
+
readonly json: "registrant";
|
|
1050
|
+
};
|
|
1051
|
+
readonly type: "object";
|
|
1052
|
+
readonly required: readonly ["kind"];
|
|
1053
|
+
readonly properties: {
|
|
1054
|
+
readonly kind: {
|
|
1055
|
+
readonly type: "string";
|
|
1056
|
+
};
|
|
1057
|
+
};
|
|
1058
|
+
};
|
|
1059
|
+
};
|
|
1060
|
+
};
|
|
1061
|
+
readonly id: {
|
|
1062
|
+
readonly type: "string";
|
|
1063
|
+
readonly format: "uuid";
|
|
1064
|
+
readonly description: "A Universally Unique Identifier used to uniquely identify entites in Meshery. The UUID core defintion is used across different schemas.";
|
|
1065
|
+
readonly "x-go-type": "uuid.UUID";
|
|
1066
|
+
readonly "x-go-type-import": {
|
|
1067
|
+
readonly path: "github.com/gofrs/uuid";
|
|
1068
|
+
};
|
|
1069
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1070
|
+
readonly yaml: "id";
|
|
1071
|
+
readonly json: "id";
|
|
1072
|
+
};
|
|
1073
|
+
};
|
|
1074
|
+
readonly match: {
|
|
1075
|
+
readonly type: "object";
|
|
1076
|
+
readonly additionalProperties: false;
|
|
1077
|
+
readonly oneOf: readonly [{
|
|
1078
|
+
readonly type: "array";
|
|
1079
|
+
readonly items: {
|
|
1080
|
+
readonly type: "array";
|
|
1081
|
+
readonly items: {
|
|
1082
|
+
readonly type: "string";
|
|
1083
|
+
};
|
|
1084
|
+
};
|
|
1085
|
+
}, {
|
|
1086
|
+
readonly properties: {
|
|
1087
|
+
readonly from: {
|
|
1088
|
+
readonly $comment: "Type is array so that mutliple bindings can be supported between 2 nodes";
|
|
1089
|
+
readonly type: "array";
|
|
1090
|
+
readonly items: {
|
|
1091
|
+
readonly type: "object";
|
|
1092
|
+
readonly allOf: readonly [{
|
|
1093
|
+
readonly properties: {
|
|
1094
|
+
readonly kind: {
|
|
1095
|
+
readonly type: "string";
|
|
1096
|
+
};
|
|
1097
|
+
readonly id: {
|
|
1098
|
+
readonly type: "string";
|
|
1099
|
+
readonly format: "uuid";
|
|
1100
|
+
readonly description: "A Universally Unique Identifier used to uniquely identify entites in Meshery. The UUID core defintion is used across different schemas.";
|
|
1101
|
+
readonly "x-go-type": "uuid.UUID";
|
|
1102
|
+
readonly "x-go-type-import": {
|
|
1103
|
+
readonly path: "github.com/gofrs/uuid";
|
|
1104
|
+
};
|
|
1105
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1106
|
+
readonly yaml: "id";
|
|
1107
|
+
readonly json: "id";
|
|
1108
|
+
};
|
|
1109
|
+
};
|
|
1110
|
+
};
|
|
1111
|
+
}, {
|
|
1112
|
+
readonly oneOf: readonly [{
|
|
1113
|
+
readonly properties: {
|
|
1114
|
+
readonly mutatorRef: {
|
|
1115
|
+
readonly type: "array";
|
|
1116
|
+
readonly items: {
|
|
1117
|
+
readonly type: "array";
|
|
1118
|
+
readonly items: {
|
|
1119
|
+
readonly type: "string";
|
|
1120
|
+
};
|
|
1121
|
+
readonly description: "The sequence of mutatorRef and mutatedRef must match. eg: mutatorRef: [[config, url], [config, name]], mutatedRef: [[configPatch, value], [name]]. The value [config, url] will be patched at [configPatch, value]. Similarly [config,name] will be patched at [name].";
|
|
1122
|
+
};
|
|
1123
|
+
readonly description: "JSON ref to value from where patch should be applied.";
|
|
1124
|
+
};
|
|
1125
|
+
};
|
|
1126
|
+
}, {
|
|
1127
|
+
readonly properties: {
|
|
1128
|
+
readonly mutatedRef: {
|
|
1129
|
+
readonly type: "array";
|
|
1130
|
+
readonly items: {
|
|
1131
|
+
readonly type: "array";
|
|
1132
|
+
readonly items: {
|
|
1133
|
+
readonly type: "string";
|
|
1134
|
+
};
|
|
1135
|
+
readonly description: "JSONPath (https://en.wikipedia.org/wiki/JSONPath) to property to be patched.";
|
|
1136
|
+
};
|
|
1137
|
+
};
|
|
1138
|
+
};
|
|
1139
|
+
}];
|
|
1140
|
+
}];
|
|
1141
|
+
};
|
|
1142
|
+
};
|
|
1143
|
+
readonly to: {
|
|
1144
|
+
readonly $comment: "Type is array so that mutliple bindings can be supported between 2 nodes";
|
|
1145
|
+
readonly type: "array";
|
|
1146
|
+
readonly items: {
|
|
1147
|
+
readonly type: "object";
|
|
1148
|
+
readonly allOf: readonly [{
|
|
1149
|
+
readonly properties: {
|
|
1150
|
+
readonly kind: {
|
|
1151
|
+
readonly type: "string";
|
|
1152
|
+
};
|
|
1153
|
+
readonly id: {
|
|
1154
|
+
readonly type: "string";
|
|
1155
|
+
readonly format: "uuid";
|
|
1156
|
+
readonly description: "A Universally Unique Identifier used to uniquely identify entites in Meshery. The UUID core defintion is used across different schemas.";
|
|
1157
|
+
readonly "x-go-type": "uuid.UUID";
|
|
1158
|
+
readonly "x-go-type-import": {
|
|
1159
|
+
readonly path: "github.com/gofrs/uuid";
|
|
1160
|
+
};
|
|
1161
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1162
|
+
readonly yaml: "id";
|
|
1163
|
+
readonly json: "id";
|
|
1164
|
+
};
|
|
1165
|
+
};
|
|
1166
|
+
};
|
|
1167
|
+
}, {
|
|
1168
|
+
readonly oneOf: readonly [{
|
|
1169
|
+
readonly properties: {
|
|
1170
|
+
readonly mutatorRef: {
|
|
1171
|
+
readonly type: "array";
|
|
1172
|
+
readonly items: {
|
|
1173
|
+
readonly type: "array";
|
|
1174
|
+
readonly items: {
|
|
1175
|
+
readonly type: "string";
|
|
1176
|
+
};
|
|
1177
|
+
readonly description: "The sequence of mutatorRef and mutatedRef must match. eg: mutatorRef: [[config, url], [config, name]], mutatedRef: [[configPatch, value], [name]]. The value [config, url] will be patched at [configPatch, value]. Similarly [config,name] will be patched at [name].";
|
|
1178
|
+
};
|
|
1179
|
+
readonly description: "JSON ref to value from where patch should be applied.";
|
|
1180
|
+
};
|
|
1181
|
+
};
|
|
1182
|
+
}, {
|
|
1183
|
+
readonly properties: {
|
|
1184
|
+
readonly mutatedRef: {
|
|
1185
|
+
readonly type: "array";
|
|
1186
|
+
readonly items: {
|
|
1187
|
+
readonly type: "array";
|
|
1188
|
+
readonly items: {
|
|
1189
|
+
readonly type: "string";
|
|
1190
|
+
};
|
|
1191
|
+
readonly description: "JSONPath (https://en.wikipedia.org/wiki/JSONPath) to property to be patched.";
|
|
1192
|
+
};
|
|
1193
|
+
};
|
|
1194
|
+
};
|
|
1195
|
+
}];
|
|
1196
|
+
}];
|
|
1197
|
+
};
|
|
1198
|
+
};
|
|
1199
|
+
};
|
|
1200
|
+
}];
|
|
1201
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1202
|
+
readonly yaml: "match";
|
|
1203
|
+
readonly json: "match";
|
|
1204
|
+
};
|
|
1205
|
+
};
|
|
1206
|
+
readonly patch: {
|
|
1207
|
+
readonly allOf: readonly [{
|
|
1208
|
+
readonly properties: {
|
|
1209
|
+
readonly patchStrategy: {
|
|
1210
|
+
readonly description: "patchStrategy allows you to make specific changes to a resource using a standard JSON Patch format (RFC 6902). \n\nadd: Inserts a value into an array or adds a member to an object.\nreplace: Replaces a value.\nmerge: Combines the values of the target location with the values from the patch. If the target location doesn't exist, it is created.\nstrategic:specific to Kubernetes and understands the structure of Kubernetes objects. It can handle complex changes like updating lists and maps, as well as preserving default values. However, it's not supported for custom resources. For custom resources, only JSON Patch and Merge Patch are typically supported.\nremove: Removes a value.\ncopy: Copies a value from one location to another.\nmove: Moves a value from one location to another.\ntest: Tests that a value at the target location is equal to a specified value.";
|
|
1211
|
+
readonly $comment: "Array Indexing: When working with arrays, be aware that Kubernetes uses zero-based indexing in JSON patch paths.\nMerge Patch vs. JSON Patch: Merge patches are less flexible than JSON patches and do not support all the same operations.\nStrategic Merge Patch: For some Kubernetes resources, you can also use the strategic type for a strategic merge patch, which understands the structure of Kubernetes objects and can handle complex operations.";
|
|
1212
|
+
readonly type: "string";
|
|
1213
|
+
readonly enum: readonly ["merge", "strategic", "add", "remove", "copy", "move", "test"];
|
|
1214
|
+
readonly default: "copy";
|
|
1215
|
+
};
|
|
1216
|
+
};
|
|
1217
|
+
}, {
|
|
1218
|
+
readonly oneOf: readonly [{
|
|
1219
|
+
readonly properties: {
|
|
1220
|
+
readonly mutatorRef: {
|
|
1221
|
+
readonly type: "array";
|
|
1222
|
+
readonly items: {
|
|
1223
|
+
readonly type: "array";
|
|
1224
|
+
readonly items: {
|
|
1225
|
+
readonly type: "string";
|
|
1226
|
+
};
|
|
1227
|
+
readonly description: "The sequence of mutatorRef and mutatedRef must match. eg: mutatorRef: [[config, url], [config, name]], mutatedRef: [[configPatch, value], [name]]. The value [config, url] will be patched at [configPatch, value]. Similarly [config,name] will be patched at [name].";
|
|
1228
|
+
};
|
|
1229
|
+
readonly description: "JSON ref to value from where patch should be applied.";
|
|
1230
|
+
};
|
|
1231
|
+
};
|
|
1232
|
+
}, {
|
|
1233
|
+
readonly properties: {
|
|
1234
|
+
readonly mutatedRef: {
|
|
1235
|
+
readonly type: "array";
|
|
1236
|
+
readonly items: {
|
|
1237
|
+
readonly type: "array";
|
|
1238
|
+
readonly items: {
|
|
1239
|
+
readonly type: "string";
|
|
1240
|
+
};
|
|
1241
|
+
readonly description: "JSONPath (https://en.wikipedia.org/wiki/JSONPath) to property to be patched.";
|
|
1242
|
+
};
|
|
1243
|
+
};
|
|
1244
|
+
};
|
|
1245
|
+
}];
|
|
1246
|
+
}];
|
|
1247
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1248
|
+
readonly yaml: "patch";
|
|
1249
|
+
readonly json: "patch";
|
|
1250
|
+
};
|
|
1251
|
+
};
|
|
1252
|
+
};
|
|
1253
|
+
readonly description: "Optional fields that are a part of the `from` selector. Absence of a field has an implied * meaning.";
|
|
1254
|
+
};
|
|
1255
|
+
};
|
|
1256
|
+
};
|
|
1257
|
+
};
|
|
1258
|
+
readonly allow: {
|
|
1259
|
+
readonly description: "Selectors used to define relationships which are allowed.";
|
|
1260
|
+
readonly type: "object";
|
|
1261
|
+
readonly required: readonly ["to", "from"];
|
|
1262
|
+
readonly properties: {
|
|
1263
|
+
readonly from: {
|
|
1264
|
+
readonly description: "Describes the component(s) which are involved in the relationship along with a set of actions to perform upon selection match.";
|
|
1265
|
+
readonly type: "array";
|
|
1266
|
+
readonly items: {
|
|
1267
|
+
readonly type: "object";
|
|
1268
|
+
readonly additionalProperties: false;
|
|
1269
|
+
readonly properties: {
|
|
1270
|
+
readonly kind: {
|
|
1271
|
+
readonly type: "string";
|
|
1272
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1273
|
+
readonly yaml: "kind";
|
|
1274
|
+
readonly json: "kind";
|
|
1275
|
+
};
|
|
1276
|
+
};
|
|
1277
|
+
readonly match_strategy_matrix: {
|
|
1278
|
+
readonly description: "Strategy criterion for determing how to match the values at mutator/mutated paths";
|
|
1279
|
+
readonly type: "array";
|
|
1280
|
+
readonly items: {
|
|
1281
|
+
readonly type: "array";
|
|
1282
|
+
readonly items: {
|
|
1283
|
+
readonly type: "string";
|
|
1284
|
+
};
|
|
1285
|
+
};
|
|
1286
|
+
};
|
|
1287
|
+
readonly model: {
|
|
1288
|
+
readonly "x-go-type": "model.ModelReference";
|
|
1289
|
+
readonly "x-go-type-import": {
|
|
1290
|
+
readonly path: "github.com/meshery/schemas/models/v1beta1/model";
|
|
1291
|
+
};
|
|
1292
|
+
readonly "x-order": 8;
|
|
1293
|
+
readonly description: "Reference to the specific registered model to which the component belongs and from which model version, category, and other properties may be referenced. Learn more at https://docs.meshery.io/concepts/models";
|
|
1294
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1295
|
+
readonly gorm: "-";
|
|
1296
|
+
};
|
|
1297
|
+
readonly type: "object";
|
|
1298
|
+
readonly required: readonly ["id", "name", "version", "displayName", "model", "registrant"];
|
|
1299
|
+
readonly properties: {
|
|
1300
|
+
readonly id: {
|
|
1301
|
+
readonly type: "string";
|
|
1302
|
+
readonly format: "uuid";
|
|
1303
|
+
readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
|
|
1304
|
+
readonly "x-go-type": "uuid.UUID";
|
|
1305
|
+
readonly "x-go-type-import": {
|
|
1306
|
+
readonly path: "github.com/gofrs/uuid";
|
|
1307
|
+
};
|
|
1308
|
+
};
|
|
1309
|
+
readonly name: {
|
|
1310
|
+
readonly type: "string";
|
|
1311
|
+
readonly description: "The unique name for the model within the scope of a registrant.";
|
|
1312
|
+
readonly helperText: "Model name should be in lowercase with hyphens, not whitespaces.";
|
|
1313
|
+
readonly pattern: "^[a-z0-9-]+$";
|
|
1314
|
+
readonly examples: readonly ["cert-manager"];
|
|
1315
|
+
readonly "x-order": 4;
|
|
1316
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1317
|
+
readonly yaml: "name";
|
|
1318
|
+
readonly json: "name";
|
|
1319
|
+
};
|
|
1320
|
+
readonly default: "untitled-model";
|
|
1321
|
+
};
|
|
1322
|
+
readonly version: {
|
|
1323
|
+
readonly description: "Version of the model definition.";
|
|
1324
|
+
readonly type: "string";
|
|
1325
|
+
readonly "x-order": 3;
|
|
1326
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1327
|
+
readonly yaml: "version";
|
|
1328
|
+
readonly json: "version";
|
|
1329
|
+
};
|
|
1330
|
+
readonly minLength: 5;
|
|
1331
|
+
readonly maxLength: 100;
|
|
1332
|
+
readonly pattern: "^[a-z0-9]+.[0-9]+.[0-9]+(-[0-9A-Za-z-]+(.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$";
|
|
1333
|
+
};
|
|
1334
|
+
readonly displayName: {
|
|
1335
|
+
readonly description: "Human-readable name for the model.";
|
|
1336
|
+
readonly helperText: "Model display name may include letters, numbers, and spaces. Special characters are not allowed.";
|
|
1337
|
+
readonly minLength: 1;
|
|
1338
|
+
readonly maxLength: 100;
|
|
1339
|
+
readonly type: "string";
|
|
1340
|
+
readonly pattern: "^[a-zA-Z0-9 ]+$";
|
|
1341
|
+
readonly examples: readonly ["Cert Manager"];
|
|
1342
|
+
readonly "x-order": 5;
|
|
1343
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1344
|
+
readonly yaml: "displayName";
|
|
1345
|
+
readonly json: "displayName";
|
|
1346
|
+
};
|
|
1347
|
+
readonly default: "Untitled Model";
|
|
1348
|
+
};
|
|
1349
|
+
readonly model: {
|
|
1350
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1351
|
+
readonly gorm: "type:bytes;serializer:json";
|
|
1352
|
+
};
|
|
1353
|
+
readonly "x-order": 12;
|
|
1354
|
+
readonly type: "object";
|
|
1355
|
+
readonly description: "Registrant-defined data associated with the model. Properties pertain to the software being managed (e.g. Kubernetes v1.31).";
|
|
1356
|
+
readonly required: readonly ["version"];
|
|
1357
|
+
readonly properties: {
|
|
1358
|
+
readonly version: {
|
|
1359
|
+
readonly description: "Version of the model as defined by the registrant.";
|
|
1360
|
+
readonly allOf: readonly [{
|
|
1361
|
+
readonly type: "string";
|
|
1362
|
+
readonly minLength: 5;
|
|
1363
|
+
readonly maxLength: 100;
|
|
1364
|
+
readonly pattern: "^[a-z0-9]+.[0-9]+.[0-9]+(-[0-9A-Za-z-]+(.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$";
|
|
1365
|
+
readonly description: "A valid semantic version string between 5 and 256 characters. The pattern allows for a major.minor.patch version followed by an optional pre-release tag like '-alpha' or '-beta.2' and an optional build metadata tag like '+build.1.";
|
|
1366
|
+
}];
|
|
1367
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1368
|
+
readonly yaml: "version";
|
|
1369
|
+
readonly json: "version";
|
|
1370
|
+
};
|
|
1371
|
+
readonly "x-order": 1;
|
|
1372
|
+
};
|
|
1373
|
+
};
|
|
1374
|
+
};
|
|
1375
|
+
readonly registrant: {
|
|
1376
|
+
readonly "x-go-type": "RegistrantReference";
|
|
1377
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1378
|
+
readonly yaml: "registrant";
|
|
1379
|
+
readonly json: "registrant";
|
|
1380
|
+
};
|
|
1381
|
+
readonly type: "object";
|
|
1382
|
+
readonly required: readonly ["kind"];
|
|
1383
|
+
readonly properties: {
|
|
1384
|
+
readonly kind: {
|
|
1385
|
+
readonly type: "string";
|
|
1386
|
+
};
|
|
1387
|
+
};
|
|
1388
|
+
};
|
|
1389
|
+
};
|
|
1390
|
+
};
|
|
1391
|
+
readonly id: {
|
|
1392
|
+
readonly type: "string";
|
|
1393
|
+
readonly format: "uuid";
|
|
1394
|
+
readonly description: "A Universally Unique Identifier used to uniquely identify entites in Meshery. The UUID core defintion is used across different schemas.";
|
|
1395
|
+
readonly "x-go-type": "uuid.UUID";
|
|
1396
|
+
readonly "x-go-type-import": {
|
|
1397
|
+
readonly path: "github.com/gofrs/uuid";
|
|
1398
|
+
};
|
|
1399
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1400
|
+
readonly yaml: "id";
|
|
1401
|
+
readonly json: "id";
|
|
1402
|
+
};
|
|
1403
|
+
};
|
|
1404
|
+
readonly match: {
|
|
1405
|
+
readonly type: "object";
|
|
1406
|
+
readonly additionalProperties: false;
|
|
1407
|
+
readonly oneOf: readonly [{
|
|
1408
|
+
readonly type: "array";
|
|
1409
|
+
readonly items: {
|
|
1410
|
+
readonly type: "array";
|
|
1411
|
+
readonly items: {
|
|
1412
|
+
readonly type: "string";
|
|
1413
|
+
};
|
|
1414
|
+
};
|
|
1415
|
+
}, {
|
|
1416
|
+
readonly properties: {
|
|
1417
|
+
readonly from: {
|
|
1418
|
+
readonly $comment: "Type is array so that mutliple bindings can be supported between 2 nodes";
|
|
1419
|
+
readonly type: "array";
|
|
1420
|
+
readonly items: {
|
|
1421
|
+
readonly type: "object";
|
|
1422
|
+
readonly allOf: readonly [{
|
|
1423
|
+
readonly properties: {
|
|
1424
|
+
readonly kind: {
|
|
1425
|
+
readonly type: "string";
|
|
1426
|
+
};
|
|
1427
|
+
readonly id: {
|
|
1428
|
+
readonly type: "string";
|
|
1429
|
+
readonly format: "uuid";
|
|
1430
|
+
readonly description: "A Universally Unique Identifier used to uniquely identify entites in Meshery. The UUID core defintion is used across different schemas.";
|
|
1431
|
+
readonly "x-go-type": "uuid.UUID";
|
|
1432
|
+
readonly "x-go-type-import": {
|
|
1433
|
+
readonly path: "github.com/gofrs/uuid";
|
|
1434
|
+
};
|
|
1435
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1436
|
+
readonly yaml: "id";
|
|
1437
|
+
readonly json: "id";
|
|
1438
|
+
};
|
|
1439
|
+
};
|
|
1440
|
+
};
|
|
1441
|
+
}, {
|
|
1442
|
+
readonly oneOf: readonly [{
|
|
1443
|
+
readonly properties: {
|
|
1444
|
+
readonly mutatorRef: {
|
|
1445
|
+
readonly type: "array";
|
|
1446
|
+
readonly items: {
|
|
1447
|
+
readonly type: "array";
|
|
1448
|
+
readonly items: {
|
|
1449
|
+
readonly type: "string";
|
|
1450
|
+
};
|
|
1451
|
+
readonly description: "The sequence of mutatorRef and mutatedRef must match. eg: mutatorRef: [[config, url], [config, name]], mutatedRef: [[configPatch, value], [name]]. The value [config, url] will be patched at [configPatch, value]. Similarly [config,name] will be patched at [name].";
|
|
1452
|
+
};
|
|
1453
|
+
readonly description: "JSON ref to value from where patch should be applied.";
|
|
1454
|
+
};
|
|
1455
|
+
};
|
|
1456
|
+
}, {
|
|
1457
|
+
readonly properties: {
|
|
1458
|
+
readonly mutatedRef: {
|
|
1459
|
+
readonly type: "array";
|
|
1460
|
+
readonly items: {
|
|
1461
|
+
readonly type: "array";
|
|
1462
|
+
readonly items: {
|
|
1463
|
+
readonly type: "string";
|
|
1464
|
+
};
|
|
1465
|
+
readonly description: "JSONPath (https://en.wikipedia.org/wiki/JSONPath) to property to be patched.";
|
|
1466
|
+
};
|
|
1467
|
+
};
|
|
1468
|
+
};
|
|
1469
|
+
}];
|
|
1470
|
+
}];
|
|
1471
|
+
};
|
|
1472
|
+
};
|
|
1473
|
+
readonly to: {
|
|
1474
|
+
readonly $comment: "Type is array so that mutliple bindings can be supported between 2 nodes";
|
|
1475
|
+
readonly type: "array";
|
|
1476
|
+
readonly items: {
|
|
1477
|
+
readonly type: "object";
|
|
1478
|
+
readonly allOf: readonly [{
|
|
1479
|
+
readonly properties: {
|
|
1480
|
+
readonly kind: {
|
|
1481
|
+
readonly type: "string";
|
|
1482
|
+
};
|
|
1483
|
+
readonly id: {
|
|
1484
|
+
readonly type: "string";
|
|
1485
|
+
readonly format: "uuid";
|
|
1486
|
+
readonly description: "A Universally Unique Identifier used to uniquely identify entites in Meshery. The UUID core defintion is used across different schemas.";
|
|
1487
|
+
readonly "x-go-type": "uuid.UUID";
|
|
1488
|
+
readonly "x-go-type-import": {
|
|
1489
|
+
readonly path: "github.com/gofrs/uuid";
|
|
1490
|
+
};
|
|
1491
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1492
|
+
readonly yaml: "id";
|
|
1493
|
+
readonly json: "id";
|
|
1494
|
+
};
|
|
1495
|
+
};
|
|
1496
|
+
};
|
|
1497
|
+
}, {
|
|
1498
|
+
readonly oneOf: readonly [{
|
|
1499
|
+
readonly properties: {
|
|
1500
|
+
readonly mutatorRef: {
|
|
1501
|
+
readonly type: "array";
|
|
1502
|
+
readonly items: {
|
|
1503
|
+
readonly type: "array";
|
|
1504
|
+
readonly items: {
|
|
1505
|
+
readonly type: "string";
|
|
1506
|
+
};
|
|
1507
|
+
readonly description: "The sequence of mutatorRef and mutatedRef must match. eg: mutatorRef: [[config, url], [config, name]], mutatedRef: [[configPatch, value], [name]]. The value [config, url] will be patched at [configPatch, value]. Similarly [config,name] will be patched at [name].";
|
|
1508
|
+
};
|
|
1509
|
+
readonly description: "JSON ref to value from where patch should be applied.";
|
|
1510
|
+
};
|
|
1511
|
+
};
|
|
1512
|
+
}, {
|
|
1513
|
+
readonly properties: {
|
|
1514
|
+
readonly mutatedRef: {
|
|
1515
|
+
readonly type: "array";
|
|
1516
|
+
readonly items: {
|
|
1517
|
+
readonly type: "array";
|
|
1518
|
+
readonly items: {
|
|
1519
|
+
readonly type: "string";
|
|
1520
|
+
};
|
|
1521
|
+
readonly description: "JSONPath (https://en.wikipedia.org/wiki/JSONPath) to property to be patched.";
|
|
1522
|
+
};
|
|
1523
|
+
};
|
|
1524
|
+
};
|
|
1525
|
+
}];
|
|
1526
|
+
}];
|
|
1527
|
+
};
|
|
1528
|
+
};
|
|
1529
|
+
};
|
|
1530
|
+
}];
|
|
1531
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1532
|
+
readonly yaml: "match";
|
|
1533
|
+
readonly json: "match";
|
|
1534
|
+
};
|
|
1535
|
+
};
|
|
1536
|
+
readonly patch: {
|
|
1537
|
+
readonly allOf: readonly [{
|
|
1538
|
+
readonly properties: {
|
|
1539
|
+
readonly patchStrategy: {
|
|
1540
|
+
readonly description: "patchStrategy allows you to make specific changes to a resource using a standard JSON Patch format (RFC 6902). \n\nadd: Inserts a value into an array or adds a member to an object.\nreplace: Replaces a value.\nmerge: Combines the values of the target location with the values from the patch. If the target location doesn't exist, it is created.\nstrategic:specific to Kubernetes and understands the structure of Kubernetes objects. It can handle complex changes like updating lists and maps, as well as preserving default values. However, it's not supported for custom resources. For custom resources, only JSON Patch and Merge Patch are typically supported.\nremove: Removes a value.\ncopy: Copies a value from one location to another.\nmove: Moves a value from one location to another.\ntest: Tests that a value at the target location is equal to a specified value.";
|
|
1541
|
+
readonly $comment: "Array Indexing: When working with arrays, be aware that Kubernetes uses zero-based indexing in JSON patch paths.\nMerge Patch vs. JSON Patch: Merge patches are less flexible than JSON patches and do not support all the same operations.\nStrategic Merge Patch: For some Kubernetes resources, you can also use the strategic type for a strategic merge patch, which understands the structure of Kubernetes objects and can handle complex operations.";
|
|
1542
|
+
readonly type: "string";
|
|
1543
|
+
readonly enum: readonly ["merge", "strategic", "add", "remove", "copy", "move", "test"];
|
|
1544
|
+
readonly default: "copy";
|
|
1545
|
+
};
|
|
1546
|
+
};
|
|
1547
|
+
}, {
|
|
1548
|
+
readonly oneOf: readonly [{
|
|
1549
|
+
readonly properties: {
|
|
1550
|
+
readonly mutatorRef: {
|
|
1551
|
+
readonly type: "array";
|
|
1552
|
+
readonly items: {
|
|
1553
|
+
readonly type: "array";
|
|
1554
|
+
readonly items: {
|
|
1555
|
+
readonly type: "string";
|
|
1556
|
+
};
|
|
1557
|
+
readonly description: "The sequence of mutatorRef and mutatedRef must match. eg: mutatorRef: [[config, url], [config, name]], mutatedRef: [[configPatch, value], [name]]. The value [config, url] will be patched at [configPatch, value]. Similarly [config,name] will be patched at [name].";
|
|
1558
|
+
};
|
|
1559
|
+
readonly description: "JSON ref to value from where patch should be applied.";
|
|
1560
|
+
};
|
|
1561
|
+
};
|
|
1562
|
+
}, {
|
|
1563
|
+
readonly properties: {
|
|
1564
|
+
readonly mutatedRef: {
|
|
1565
|
+
readonly type: "array";
|
|
1566
|
+
readonly items: {
|
|
1567
|
+
readonly type: "array";
|
|
1568
|
+
readonly items: {
|
|
1569
|
+
readonly type: "string";
|
|
1570
|
+
};
|
|
1571
|
+
readonly description: "JSONPath (https://en.wikipedia.org/wiki/JSONPath) to property to be patched.";
|
|
1572
|
+
};
|
|
1573
|
+
};
|
|
1574
|
+
};
|
|
1575
|
+
}];
|
|
1576
|
+
}];
|
|
1577
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1578
|
+
readonly yaml: "patch";
|
|
1579
|
+
readonly json: "patch";
|
|
1580
|
+
};
|
|
1581
|
+
};
|
|
1582
|
+
};
|
|
1583
|
+
readonly description: "Optional fields that are a part of the `from` selector. Absence of a field has an implied * meaning.";
|
|
1584
|
+
};
|
|
1585
|
+
};
|
|
1586
|
+
readonly to: {
|
|
1587
|
+
readonly description: "Describes the component(s) which are involved in the relationship along with a set of actions to perform upon selection match.";
|
|
1588
|
+
readonly type: "array";
|
|
1589
|
+
readonly items: {
|
|
1590
|
+
readonly type: "object";
|
|
1591
|
+
readonly additionalProperties: false;
|
|
1592
|
+
readonly properties: {
|
|
1593
|
+
readonly kind: {
|
|
1594
|
+
readonly type: "string";
|
|
1595
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1596
|
+
readonly yaml: "kind";
|
|
1597
|
+
readonly json: "kind";
|
|
1598
|
+
};
|
|
1599
|
+
};
|
|
1600
|
+
readonly model: {
|
|
1601
|
+
readonly "x-go-type": "model.ModelReference";
|
|
1602
|
+
readonly "x-go-type-import": {
|
|
1603
|
+
readonly path: "github.com/meshery/schemas/models/v1beta1/model";
|
|
1604
|
+
};
|
|
1605
|
+
readonly "x-order": 8;
|
|
1606
|
+
readonly description: "Reference to the specific registered model to which the component belongs and from which model version, category, and other properties may be referenced. Learn more at https://docs.meshery.io/concepts/models";
|
|
1607
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1608
|
+
readonly gorm: "-";
|
|
1609
|
+
};
|
|
1610
|
+
readonly type: "object";
|
|
1611
|
+
readonly required: readonly ["id", "name", "version", "displayName", "model", "registrant"];
|
|
1612
|
+
readonly properties: {
|
|
1613
|
+
readonly id: {
|
|
1614
|
+
readonly type: "string";
|
|
1615
|
+
readonly format: "uuid";
|
|
1616
|
+
readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
|
|
1617
|
+
readonly "x-go-type": "uuid.UUID";
|
|
1618
|
+
readonly "x-go-type-import": {
|
|
1619
|
+
readonly path: "github.com/gofrs/uuid";
|
|
1620
|
+
};
|
|
1621
|
+
};
|
|
1622
|
+
readonly name: {
|
|
1623
|
+
readonly type: "string";
|
|
1624
|
+
readonly description: "The unique name for the model within the scope of a registrant.";
|
|
1625
|
+
readonly helperText: "Model name should be in lowercase with hyphens, not whitespaces.";
|
|
1626
|
+
readonly pattern: "^[a-z0-9-]+$";
|
|
1627
|
+
readonly examples: readonly ["cert-manager"];
|
|
1628
|
+
readonly "x-order": 4;
|
|
1629
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1630
|
+
readonly yaml: "name";
|
|
1631
|
+
readonly json: "name";
|
|
1632
|
+
};
|
|
1633
|
+
readonly default: "untitled-model";
|
|
1634
|
+
};
|
|
1635
|
+
readonly version: {
|
|
1636
|
+
readonly description: "Version of the model definition.";
|
|
1637
|
+
readonly type: "string";
|
|
1638
|
+
readonly "x-order": 3;
|
|
1639
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1640
|
+
readonly yaml: "version";
|
|
1641
|
+
readonly json: "version";
|
|
1642
|
+
};
|
|
1643
|
+
readonly minLength: 5;
|
|
1644
|
+
readonly maxLength: 100;
|
|
1645
|
+
readonly pattern: "^[a-z0-9]+.[0-9]+.[0-9]+(-[0-9A-Za-z-]+(.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$";
|
|
1646
|
+
};
|
|
1647
|
+
readonly displayName: {
|
|
1648
|
+
readonly description: "Human-readable name for the model.";
|
|
1649
|
+
readonly helperText: "Model display name may include letters, numbers, and spaces. Special characters are not allowed.";
|
|
1650
|
+
readonly minLength: 1;
|
|
1651
|
+
readonly maxLength: 100;
|
|
1652
|
+
readonly type: "string";
|
|
1653
|
+
readonly pattern: "^[a-zA-Z0-9 ]+$";
|
|
1654
|
+
readonly examples: readonly ["Cert Manager"];
|
|
1655
|
+
readonly "x-order": 5;
|
|
1656
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1657
|
+
readonly yaml: "displayName";
|
|
1658
|
+
readonly json: "displayName";
|
|
1659
|
+
};
|
|
1660
|
+
readonly default: "Untitled Model";
|
|
1661
|
+
};
|
|
1662
|
+
readonly model: {
|
|
1663
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1664
|
+
readonly gorm: "type:bytes;serializer:json";
|
|
1665
|
+
};
|
|
1666
|
+
readonly "x-order": 12;
|
|
1667
|
+
readonly type: "object";
|
|
1668
|
+
readonly description: "Registrant-defined data associated with the model. Properties pertain to the software being managed (e.g. Kubernetes v1.31).";
|
|
1669
|
+
readonly required: readonly ["version"];
|
|
1670
|
+
readonly properties: {
|
|
1671
|
+
readonly version: {
|
|
1672
|
+
readonly description: "Version of the model as defined by the registrant.";
|
|
1673
|
+
readonly allOf: readonly [{
|
|
1674
|
+
readonly type: "string";
|
|
1675
|
+
readonly minLength: 5;
|
|
1676
|
+
readonly maxLength: 100;
|
|
1677
|
+
readonly pattern: "^[a-z0-9]+.[0-9]+.[0-9]+(-[0-9A-Za-z-]+(.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$";
|
|
1678
|
+
readonly description: "A valid semantic version string between 5 and 256 characters. The pattern allows for a major.minor.patch version followed by an optional pre-release tag like '-alpha' or '-beta.2' and an optional build metadata tag like '+build.1.";
|
|
1679
|
+
}];
|
|
1680
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1681
|
+
readonly yaml: "version";
|
|
1682
|
+
readonly json: "version";
|
|
1683
|
+
};
|
|
1684
|
+
readonly "x-order": 1;
|
|
1685
|
+
};
|
|
1686
|
+
};
|
|
1687
|
+
};
|
|
1688
|
+
readonly registrant: {
|
|
1689
|
+
readonly "x-go-type": "RegistrantReference";
|
|
1690
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1691
|
+
readonly yaml: "registrant";
|
|
1692
|
+
readonly json: "registrant";
|
|
1693
|
+
};
|
|
1694
|
+
readonly type: "object";
|
|
1695
|
+
readonly required: readonly ["kind"];
|
|
1696
|
+
readonly properties: {
|
|
1697
|
+
readonly kind: {
|
|
1698
|
+
readonly type: "string";
|
|
1699
|
+
};
|
|
1700
|
+
};
|
|
1701
|
+
};
|
|
1702
|
+
};
|
|
1703
|
+
};
|
|
1704
|
+
readonly id: {
|
|
1705
|
+
readonly type: "string";
|
|
1706
|
+
readonly format: "uuid";
|
|
1707
|
+
readonly description: "A Universally Unique Identifier used to uniquely identify entites in Meshery. The UUID core defintion is used across different schemas.";
|
|
1708
|
+
readonly "x-go-type": "uuid.UUID";
|
|
1709
|
+
readonly "x-go-type-import": {
|
|
1710
|
+
readonly path: "github.com/gofrs/uuid";
|
|
1711
|
+
};
|
|
1712
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1713
|
+
readonly yaml: "id";
|
|
1714
|
+
readonly json: "id";
|
|
1715
|
+
};
|
|
1716
|
+
};
|
|
1717
|
+
readonly match: {
|
|
1718
|
+
readonly type: "object";
|
|
1719
|
+
readonly additionalProperties: false;
|
|
1720
|
+
readonly oneOf: readonly [{
|
|
1721
|
+
readonly type: "array";
|
|
1722
|
+
readonly items: {
|
|
1723
|
+
readonly type: "array";
|
|
1724
|
+
readonly items: {
|
|
1725
|
+
readonly type: "string";
|
|
1726
|
+
};
|
|
1727
|
+
};
|
|
1728
|
+
}, {
|
|
1729
|
+
readonly properties: {
|
|
1730
|
+
readonly from: {
|
|
1731
|
+
readonly $comment: "Type is array so that mutliple bindings can be supported between 2 nodes";
|
|
1732
|
+
readonly type: "array";
|
|
1733
|
+
readonly items: {
|
|
1734
|
+
readonly type: "object";
|
|
1735
|
+
readonly allOf: readonly [{
|
|
1736
|
+
readonly properties: {
|
|
1737
|
+
readonly kind: {
|
|
1738
|
+
readonly type: "string";
|
|
1739
|
+
};
|
|
1740
|
+
readonly id: {
|
|
1741
|
+
readonly type: "string";
|
|
1742
|
+
readonly format: "uuid";
|
|
1743
|
+
readonly description: "A Universally Unique Identifier used to uniquely identify entites in Meshery. The UUID core defintion is used across different schemas.";
|
|
1744
|
+
readonly "x-go-type": "uuid.UUID";
|
|
1745
|
+
readonly "x-go-type-import": {
|
|
1746
|
+
readonly path: "github.com/gofrs/uuid";
|
|
1747
|
+
};
|
|
1748
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1749
|
+
readonly yaml: "id";
|
|
1750
|
+
readonly json: "id";
|
|
1751
|
+
};
|
|
1752
|
+
};
|
|
1753
|
+
};
|
|
1754
|
+
}, {
|
|
1755
|
+
readonly oneOf: readonly [{
|
|
1756
|
+
readonly properties: {
|
|
1757
|
+
readonly mutatorRef: {
|
|
1758
|
+
readonly type: "array";
|
|
1759
|
+
readonly items: {
|
|
1760
|
+
readonly type: "array";
|
|
1761
|
+
readonly items: {
|
|
1762
|
+
readonly type: "string";
|
|
1763
|
+
};
|
|
1764
|
+
readonly description: "The sequence of mutatorRef and mutatedRef must match. eg: mutatorRef: [[config, url], [config, name]], mutatedRef: [[configPatch, value], [name]]. The value [config, url] will be patched at [configPatch, value]. Similarly [config,name] will be patched at [name].";
|
|
1765
|
+
};
|
|
1766
|
+
readonly description: "JSON ref to value from where patch should be applied.";
|
|
1767
|
+
};
|
|
1768
|
+
};
|
|
1769
|
+
}, {
|
|
1770
|
+
readonly properties: {
|
|
1771
|
+
readonly mutatedRef: {
|
|
1772
|
+
readonly type: "array";
|
|
1773
|
+
readonly items: {
|
|
1774
|
+
readonly type: "array";
|
|
1775
|
+
readonly items: {
|
|
1776
|
+
readonly type: "string";
|
|
1777
|
+
};
|
|
1778
|
+
readonly description: "JSONPath (https://en.wikipedia.org/wiki/JSONPath) to property to be patched.";
|
|
1779
|
+
};
|
|
1780
|
+
};
|
|
1781
|
+
};
|
|
1782
|
+
}];
|
|
1783
|
+
}];
|
|
1784
|
+
};
|
|
1785
|
+
};
|
|
1786
|
+
readonly to: {
|
|
1787
|
+
readonly $comment: "Type is array so that mutliple bindings can be supported between 2 nodes";
|
|
1788
|
+
readonly type: "array";
|
|
1789
|
+
readonly items: {
|
|
1790
|
+
readonly type: "object";
|
|
1791
|
+
readonly allOf: readonly [{
|
|
1792
|
+
readonly properties: {
|
|
1793
|
+
readonly kind: {
|
|
1794
|
+
readonly type: "string";
|
|
1795
|
+
};
|
|
1796
|
+
readonly id: {
|
|
1797
|
+
readonly type: "string";
|
|
1798
|
+
readonly format: "uuid";
|
|
1799
|
+
readonly description: "A Universally Unique Identifier used to uniquely identify entites in Meshery. The UUID core defintion is used across different schemas.";
|
|
1800
|
+
readonly "x-go-type": "uuid.UUID";
|
|
1801
|
+
readonly "x-go-type-import": {
|
|
1802
|
+
readonly path: "github.com/gofrs/uuid";
|
|
1803
|
+
};
|
|
1804
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1805
|
+
readonly yaml: "id";
|
|
1806
|
+
readonly json: "id";
|
|
1807
|
+
};
|
|
1808
|
+
};
|
|
1809
|
+
};
|
|
1810
|
+
}, {
|
|
1811
|
+
readonly oneOf: readonly [{
|
|
1812
|
+
readonly properties: {
|
|
1813
|
+
readonly mutatorRef: {
|
|
1814
|
+
readonly type: "array";
|
|
1815
|
+
readonly items: {
|
|
1816
|
+
readonly type: "array";
|
|
1817
|
+
readonly items: {
|
|
1818
|
+
readonly type: "string";
|
|
1819
|
+
};
|
|
1820
|
+
readonly description: "The sequence of mutatorRef and mutatedRef must match. eg: mutatorRef: [[config, url], [config, name]], mutatedRef: [[configPatch, value], [name]]. The value [config, url] will be patched at [configPatch, value]. Similarly [config,name] will be patched at [name].";
|
|
1821
|
+
};
|
|
1822
|
+
readonly description: "JSON ref to value from where patch should be applied.";
|
|
1823
|
+
};
|
|
1824
|
+
};
|
|
1825
|
+
}, {
|
|
1826
|
+
readonly properties: {
|
|
1827
|
+
readonly mutatedRef: {
|
|
1828
|
+
readonly type: "array";
|
|
1829
|
+
readonly items: {
|
|
1830
|
+
readonly type: "array";
|
|
1831
|
+
readonly items: {
|
|
1832
|
+
readonly type: "string";
|
|
1833
|
+
};
|
|
1834
|
+
readonly description: "JSONPath (https://en.wikipedia.org/wiki/JSONPath) to property to be patched.";
|
|
1835
|
+
};
|
|
1836
|
+
};
|
|
1837
|
+
};
|
|
1838
|
+
}];
|
|
1839
|
+
}];
|
|
1840
|
+
};
|
|
1841
|
+
};
|
|
1842
|
+
};
|
|
1843
|
+
}];
|
|
1844
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1845
|
+
readonly yaml: "match";
|
|
1846
|
+
readonly json: "match";
|
|
1847
|
+
};
|
|
1848
|
+
};
|
|
1849
|
+
readonly patch: {
|
|
1850
|
+
readonly allOf: readonly [{
|
|
1851
|
+
readonly properties: {
|
|
1852
|
+
readonly patchStrategy: {
|
|
1853
|
+
readonly description: "patchStrategy allows you to make specific changes to a resource using a standard JSON Patch format (RFC 6902). \n\nadd: Inserts a value into an array or adds a member to an object.\nreplace: Replaces a value.\nmerge: Combines the values of the target location with the values from the patch. If the target location doesn't exist, it is created.\nstrategic:specific to Kubernetes and understands the structure of Kubernetes objects. It can handle complex changes like updating lists and maps, as well as preserving default values. However, it's not supported for custom resources. For custom resources, only JSON Patch and Merge Patch are typically supported.\nremove: Removes a value.\ncopy: Copies a value from one location to another.\nmove: Moves a value from one location to another.\ntest: Tests that a value at the target location is equal to a specified value.";
|
|
1854
|
+
readonly $comment: "Array Indexing: When working with arrays, be aware that Kubernetes uses zero-based indexing in JSON patch paths.\nMerge Patch vs. JSON Patch: Merge patches are less flexible than JSON patches and do not support all the same operations.\nStrategic Merge Patch: For some Kubernetes resources, you can also use the strategic type for a strategic merge patch, which understands the structure of Kubernetes objects and can handle complex operations.";
|
|
1855
|
+
readonly type: "string";
|
|
1856
|
+
readonly enum: readonly ["merge", "strategic", "add", "remove", "copy", "move", "test"];
|
|
1857
|
+
readonly default: "copy";
|
|
1858
|
+
};
|
|
1859
|
+
};
|
|
1860
|
+
}, {
|
|
1861
|
+
readonly oneOf: readonly [{
|
|
1862
|
+
readonly properties: {
|
|
1863
|
+
readonly mutatorRef: {
|
|
1864
|
+
readonly type: "array";
|
|
1865
|
+
readonly items: {
|
|
1866
|
+
readonly type: "array";
|
|
1867
|
+
readonly items: {
|
|
1868
|
+
readonly type: "string";
|
|
1869
|
+
};
|
|
1870
|
+
readonly description: "The sequence of mutatorRef and mutatedRef must match. eg: mutatorRef: [[config, url], [config, name]], mutatedRef: [[configPatch, value], [name]]. The value [config, url] will be patched at [configPatch, value]. Similarly [config,name] will be patched at [name].";
|
|
1871
|
+
};
|
|
1872
|
+
readonly description: "JSON ref to value from where patch should be applied.";
|
|
1873
|
+
};
|
|
1874
|
+
};
|
|
1875
|
+
}, {
|
|
1876
|
+
readonly properties: {
|
|
1877
|
+
readonly mutatedRef: {
|
|
1878
|
+
readonly type: "array";
|
|
1879
|
+
readonly items: {
|
|
1880
|
+
readonly type: "array";
|
|
1881
|
+
readonly items: {
|
|
1882
|
+
readonly type: "string";
|
|
1883
|
+
};
|
|
1884
|
+
readonly description: "JSONPath (https://en.wikipedia.org/wiki/JSONPath) to property to be patched.";
|
|
1885
|
+
};
|
|
1886
|
+
};
|
|
1887
|
+
};
|
|
1888
|
+
}];
|
|
1889
|
+
}];
|
|
1890
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1891
|
+
readonly yaml: "patch";
|
|
1892
|
+
readonly json: "patch";
|
|
1893
|
+
};
|
|
1894
|
+
};
|
|
1895
|
+
};
|
|
1896
|
+
readonly description: "Optional fields that are a part of the `from` selector. Absence of a field has an implied * meaning.";
|
|
1897
|
+
};
|
|
1898
|
+
};
|
|
1899
|
+
};
|
|
1900
|
+
};
|
|
1901
|
+
};
|
|
1902
|
+
};
|
|
1903
|
+
};
|
|
1904
|
+
readonly created_at: {
|
|
1905
|
+
readonly description: "Timestamp when the resource was created.";
|
|
1906
|
+
readonly "x-go-type": "time.Time";
|
|
1907
|
+
readonly type: "string";
|
|
1908
|
+
readonly format: "date-time";
|
|
1909
|
+
readonly "x-go-name": "CreatedAt";
|
|
1910
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1911
|
+
readonly db: "created_at";
|
|
1912
|
+
readonly yaml: "created_at";
|
|
1913
|
+
};
|
|
1914
|
+
readonly "x-go-type-skip-optional-pointer": true;
|
|
1915
|
+
};
|
|
1916
|
+
readonly updated_at: {
|
|
1917
|
+
readonly description: "Timestamp when the resource was updated.";
|
|
1918
|
+
readonly "x-go-type": "time.Time";
|
|
1919
|
+
readonly type: "string";
|
|
1920
|
+
readonly format: "date-time";
|
|
1921
|
+
readonly "x-go-name": "UpdatedAt";
|
|
1922
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1923
|
+
readonly db: "updated_at";
|
|
1924
|
+
readonly yaml: "updated_at";
|
|
1925
|
+
};
|
|
1926
|
+
readonly "x-go-type-skip-optional-pointer": true;
|
|
1927
|
+
};
|
|
1928
|
+
};
|
|
1929
|
+
};
|
|
1930
|
+
};
|
|
1931
|
+
};
|
|
1932
|
+
};
|
|
1933
|
+
|
|
1934
|
+
export { RelationshipSchema as default };
|