Skip to content

Commit 1686ee5

Browse files
schema_str accessors in ODF spec resources
1 parent 655c916 commit 1686ee5

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

src/odf/metadata/src/dtos/dtos_generated.rs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ pub mod auth {
5353
pub fn schema() -> &'static TypeUri {
5454
&ACCOUNT_SCHEMA
5555
}
56+
pub fn schema_str() -> &'static str {
57+
ACCOUNT_SCHEMA_STR
58+
}
5659
}
5760

5861
static ACCOUNT_SCHEMA_STR: &str = "https://opendatafabric.org/schemas/auth/v1alpha1/Account";
@@ -166,6 +169,9 @@ pub mod auth {
166169
pub fn schema() -> &'static TypeUri {
167170
&RELATIONS_SCHEMA
168171
}
172+
pub fn schema_str() -> &'static str {
173+
RELATIONS_SCHEMA_STR
174+
}
169175
}
170176

171177
static RELATIONS_SCHEMA_STR: &str =
@@ -223,6 +229,9 @@ pub mod config {
223229
pub fn schema() -> &'static TypeUri {
224230
&SECRET_SET_SCHEMA
225231
}
232+
pub fn schema_str() -> &'static str {
233+
SECRET_SET_SCHEMA_STR
234+
}
226235
}
227236

228237
static SECRET_SET_SCHEMA_STR: &str =
@@ -288,6 +297,9 @@ pub mod config {
288297
pub fn schema() -> &'static TypeUri {
289298
&VARIABLE_SET_SCHEMA
290299
}
300+
pub fn schema_str() -> &'static str {
301+
VARIABLE_SET_SCHEMA_STR
302+
}
291303
}
292304

293305
static VARIABLE_SET_SCHEMA_STR: &str =
@@ -824,6 +836,9 @@ pub mod dataset {
824836
pub fn schema() -> &'static TypeUri {
825837
&DATASET_SCHEMA
826838
}
839+
pub fn schema_str() -> &'static str {
840+
DATASET_SCHEMA_STR
841+
}
827842
}
828843

829844
static DATASET_SCHEMA_STR: &str = "https://opendatafabric.org/schemas/dataset/v1alpha1/Dataset";
@@ -1134,6 +1149,9 @@ pub mod dataset {
11341149
pub fn schema() -> &'static TypeUri {
11351150
&PROJECTION_SCHEMA
11361151
}
1152+
pub fn schema_str() -> &'static str {
1153+
PROJECTION_SCHEMA_STR
1154+
}
11371155
}
11381156

11391157
static PROJECTION_SCHEMA_STR: &str =
@@ -1566,6 +1584,9 @@ pub mod flow {
15661584
pub fn schema() -> &'static TypeUri {
15671585
&FLOW_SCHEMA
15681586
}
1587+
pub fn schema_str() -> &'static str {
1588+
FLOW_SCHEMA_STR
1589+
}
15691590
}
15701591

15711592
static FLOW_SCHEMA_STR: &str = "https://opendatafabric.org/schemas/flow/v1alpha1/Flow";
@@ -1676,6 +1697,9 @@ pub mod flow {
16761697
pub fn schema() -> &'static TypeUri {
16771698
&TASK_SCHEMA
16781699
}
1700+
pub fn schema_str() -> &'static str {
1701+
TASK_SCHEMA_STR
1702+
}
16791703
}
16801704

16811705
static TASK_SCHEMA_STR: &str = "https://opendatafabric.org/schemas/flow/v1alpha1/Task";
@@ -2092,6 +2116,9 @@ pub mod sink {
20922116
pub fn schema() -> &'static TypeUri {
20932117
&WEBHOOK_TARGET_SCHEMA
20942118
}
2119+
pub fn schema_str() -> &'static str {
2120+
WEBHOOK_TARGET_SCHEMA_STR
2121+
}
20952122
}
20962123

20972124
static WEBHOOK_TARGET_SCHEMA_STR: &str =
@@ -3022,6 +3049,9 @@ pub mod source {
30223049
pub fn schema() -> &'static TypeUri {
30233050
&SOURCE_SCHEMA
30243051
}
3052+
pub fn schema_str() -> &'static str {
3053+
SOURCE_SCHEMA_STR
3054+
}
30253055
}
30263056

30273057
static SOURCE_SCHEMA_STR: &str = "https://opendatafabric.org/schemas/source/v1alpha1/Source";
@@ -3128,6 +3158,9 @@ pub mod storage {
31283158
pub fn schema() -> &'static TypeUri {
31293159
&PERSISTENT_VOLUME_SCHEMA
31303160
}
3161+
pub fn schema_str() -> &'static str {
3162+
PERSISTENT_VOLUME_SCHEMA_STR
3163+
}
31313164
}
31323165

31333166
static PERSISTENT_VOLUME_SCHEMA_STR: &str =

0 commit comments

Comments
 (0)