|
1 | 1 | --- |
2 | | -# WARNING: this file was fetched from https://djoiyj6oj2oxz.cloudfront.net/docs/registry.opentofu.org/redpanda-data/redpanda/2.0.0/index.md |
| 2 | +# WARNING: this file was fetched from https://djoiyj6oj2oxz.cloudfront.net/docs/registry.opentofu.org/redpanda-data/redpanda/2.1.0/index.md |
3 | 3 | # Do not edit by hand unless you're certain you know what you are doing! |
4 | 4 | # *** WARNING: This file was auto-generated. Do not edit by hand unless you're certain you know what you are doing! *** |
5 | 5 | title: Redpanda Provider |
@@ -494,6 +494,28 @@ const productSchema = new redpanda.Schema("product_schema", { |
494 | 494 | writeRegistry, |
495 | 495 | ], |
496 | 496 | }); |
| 497 | +const protobufRoundtrip = new redpanda.Schema("protobuf_roundtrip", { |
| 498 | + clusterId: testCluster.id, |
| 499 | + subject: `${topicName}-protobuf-value`, |
| 500 | + schemaType: "PROTOBUF", |
| 501 | + schema: protobufSchemaDefinition, |
| 502 | + references: [], |
| 503 | + allowDeletion: true, |
| 504 | +}, { |
| 505 | + dependsOn: [ |
| 506 | + clusterAdmin, |
| 507 | + schemaRegistryAdmin, |
| 508 | + clusterAction, |
| 509 | + topicAccess, |
| 510 | + providerBootstrapSubject, |
| 511 | + providerBootstrapRegistry, |
| 512 | + allTestTopic, |
| 513 | + describeRegistry, |
| 514 | + alterConfigsRegistry, |
| 515 | + readRegistry, |
| 516 | + writeRegistry, |
| 517 | + ], |
| 518 | +}); |
497 | 519 | const developer = new redpanda.Role("developer", { |
498 | 520 | name: roleName, |
499 | 521 | clusterApiUrl: testCluster.clusterApiUrl, |
@@ -842,6 +864,26 @@ product_schema = redpanda.Schema("product_schema", |
842 | 864 | read_registry, |
843 | 865 | write_registry, |
844 | 866 | ])) |
| 867 | +protobuf_roundtrip = redpanda.Schema("protobuf_roundtrip", |
| 868 | + cluster_id=test_cluster.id, |
| 869 | + subject=f"{topic_name}-protobuf-value", |
| 870 | + schema_type="PROTOBUF", |
| 871 | + schema=protobuf_schema_definition, |
| 872 | + references=[], |
| 873 | + allow_deletion=True, |
| 874 | + opts = pulumi.ResourceOptions(depends_on=[ |
| 875 | + cluster_admin, |
| 876 | + schema_registry_admin, |
| 877 | + cluster_action, |
| 878 | + topic_access, |
| 879 | + provider_bootstrap_subject, |
| 880 | + provider_bootstrap_registry, |
| 881 | + all_test_topic, |
| 882 | + describe_registry, |
| 883 | + alter_configs_registry, |
| 884 | + read_registry, |
| 885 | + write_registry, |
| 886 | + ])) |
845 | 887 | developer = redpanda.Role("developer", |
846 | 888 | name=role_name, |
847 | 889 | cluster_api_url=test_cluster.cluster_api_url, |
@@ -1284,6 +1326,32 @@ return await Deployment.RunAsync(() => |
1284 | 1326 | }, |
1285 | 1327 | }); |
1286 | 1328 |
|
| 1329 | + var protobufRoundtrip = new Redpanda.Schema("protobuf_roundtrip", new() |
| 1330 | + { |
| 1331 | + ClusterId = testCluster.Id, |
| 1332 | + Subject = $"{topicName}-protobuf-value", |
| 1333 | + SchemaType = "PROTOBUF", |
| 1334 | + Schema = protobufSchemaDefinition, |
| 1335 | + References = new[] {}, |
| 1336 | + AllowDeletion = true, |
| 1337 | + }, new CustomResourceOptions |
| 1338 | + { |
| 1339 | + DependsOn = |
| 1340 | + { |
| 1341 | + clusterAdmin, |
| 1342 | + schemaRegistryAdmin, |
| 1343 | + clusterAction, |
| 1344 | + topicAccess, |
| 1345 | + providerBootstrapSubject, |
| 1346 | + providerBootstrapRegistry, |
| 1347 | + allTestTopic, |
| 1348 | + describeRegistry, |
| 1349 | + alterConfigsRegistry, |
| 1350 | + readRegistry, |
| 1351 | + writeRegistry, |
| 1352 | + }, |
| 1353 | + }); |
| 1354 | + |
1287 | 1355 | var developer = new Redpanda.Role("developer", new() |
1288 | 1356 | { |
1289 | 1357 | Name = roleName, |
@@ -1773,6 +1841,29 @@ func main() { |
1773 | 1841 | if err != nil { |
1774 | 1842 | return err |
1775 | 1843 | } |
| 1844 | + _, err = redpanda.NewSchema(ctx, "protobuf_roundtrip", &redpanda.SchemaArgs{ |
| 1845 | + ClusterId: testCluster.ID(), |
| 1846 | + Subject: pulumi.Sprintf("%v-protobuf-value", topicName), |
| 1847 | + SchemaType: pulumi.String("PROTOBUF"), |
| 1848 | + Schema: pulumi.Any(protobufSchemaDefinition), |
| 1849 | + References: redpanda.SchemaReferenceArray{}, |
| 1850 | + AllowDeletion: pulumi.Bool(true), |
| 1851 | + }, pulumi.DependsOn([]pulumi.Resource{ |
| 1852 | + clusterAdmin, |
| 1853 | + schemaRegistryAdmin, |
| 1854 | + clusterAction, |
| 1855 | + topicAccess, |
| 1856 | + providerBootstrapSubject, |
| 1857 | + providerBootstrapRegistry, |
| 1858 | + allTestTopic, |
| 1859 | + describeRegistry, |
| 1860 | + alterConfigsRegistry, |
| 1861 | + readRegistry, |
| 1862 | + writeRegistry, |
| 1863 | + })) |
| 1864 | + if err != nil { |
| 1865 | + return err |
| 1866 | + } |
1776 | 1867 | developer, err := redpanda.NewRole(ctx, "developer", &redpanda.RoleArgs{ |
1777 | 1868 | Name: pulumi.Any(roleName), |
1778 | 1869 | ClusterApiUrl: testCluster.ClusterApiUrl, |
@@ -2237,6 +2328,28 @@ public class App { |
2237 | 2328 | writeRegistry) |
2238 | 2329 | .build()); |
2239 | 2330 |
|
| 2331 | + var protobufRoundtrip = new Schema("protobufRoundtrip", SchemaArgs.builder() |
| 2332 | + .clusterId(testCluster.id()) |
| 2333 | + .subject(String.format("%s-protobuf-value", topicName)) |
| 2334 | + .schemaType("PROTOBUF") |
| 2335 | + .schema(protobufSchemaDefinition) |
| 2336 | + .references() |
| 2337 | + .allowDeletion(true) |
| 2338 | + .build(), CustomResourceOptions.builder() |
| 2339 | + .dependsOn( |
| 2340 | + clusterAdmin, |
| 2341 | + schemaRegistryAdmin, |
| 2342 | + clusterAction, |
| 2343 | + topicAccess, |
| 2344 | + providerBootstrapSubject, |
| 2345 | + providerBootstrapRegistry, |
| 2346 | + allTestTopic, |
| 2347 | + describeRegistry, |
| 2348 | + alterConfigsRegistry, |
| 2349 | + readRegistry, |
| 2350 | + writeRegistry) |
| 2351 | + .build()); |
| 2352 | + |
2240 | 2353 | var developer = new Role("developer", RoleArgs.builder() |
2241 | 2354 | .name(roleName) |
2242 | 2355 | .clusterApiUrl(testCluster.clusterApiUrl()) |
@@ -2613,6 +2726,28 @@ const productSchema = new redpanda.Schema("product_schema", { |
2613 | 2726 | writeRegistry, |
2614 | 2727 | ], |
2615 | 2728 | }); |
| 2729 | +const protobufRoundtrip = new redpanda.Schema("protobuf_roundtrip", { |
| 2730 | + clusterId: testCluster.id, |
| 2731 | + subject: `${topicName}-protobuf-value`, |
| 2732 | + schemaType: "PROTOBUF", |
| 2733 | + schema: protobufSchemaDefinition, |
| 2734 | + references: [], |
| 2735 | + allowDeletion: true, |
| 2736 | +}, { |
| 2737 | + dependsOn: [ |
| 2738 | + clusterAdmin, |
| 2739 | + schemaRegistryAdmin, |
| 2740 | + clusterAction, |
| 2741 | + topicAccess, |
| 2742 | + providerBootstrapSubject, |
| 2743 | + providerBootstrapRegistry, |
| 2744 | + allTestTopic, |
| 2745 | + describeRegistry, |
| 2746 | + alterConfigsRegistry, |
| 2747 | + readRegistry, |
| 2748 | + writeRegistry, |
| 2749 | + ], |
| 2750 | +}); |
2616 | 2751 | const developer = new redpanda.Role("developer", { |
2617 | 2752 | name: roleName, |
2618 | 2753 | clusterApiUrl: testCluster.clusterApiUrl, |
@@ -2970,6 +3105,26 @@ product_schema = redpanda.Schema("product_schema", |
2970 | 3105 | read_registry, |
2971 | 3106 | write_registry, |
2972 | 3107 | ])) |
| 3108 | +protobuf_roundtrip = redpanda.Schema("protobuf_roundtrip", |
| 3109 | + cluster_id=test_cluster.id, |
| 3110 | + subject=f"{topic_name}-protobuf-value", |
| 3111 | + schema_type="PROTOBUF", |
| 3112 | + schema=protobuf_schema_definition, |
| 3113 | + references=[], |
| 3114 | + allow_deletion=True, |
| 3115 | + opts = pulumi.ResourceOptions(depends_on=[ |
| 3116 | + cluster_admin, |
| 3117 | + schema_registry_admin, |
| 3118 | + cluster_action, |
| 3119 | + topic_access, |
| 3120 | + provider_bootstrap_subject, |
| 3121 | + provider_bootstrap_registry, |
| 3122 | + all_test_topic, |
| 3123 | + describe_registry, |
| 3124 | + alter_configs_registry, |
| 3125 | + read_registry, |
| 3126 | + write_registry, |
| 3127 | + ])) |
2973 | 3128 | developer = redpanda.Role("developer", |
2974 | 3129 | name=role_name, |
2975 | 3130 | cluster_api_url=test_cluster.cluster_api_url, |
@@ -3419,6 +3574,32 @@ return await Deployment.RunAsync(() => |
3419 | 3574 | }, |
3420 | 3575 | }); |
3421 | 3576 |
|
| 3577 | + var protobufRoundtrip = new Redpanda.Schema("protobuf_roundtrip", new() |
| 3578 | + { |
| 3579 | + ClusterId = testCluster.Id, |
| 3580 | + Subject = $"{topicName}-protobuf-value", |
| 3581 | + SchemaType = "PROTOBUF", |
| 3582 | + Schema = protobufSchemaDefinition, |
| 3583 | + References = new[] {}, |
| 3584 | + AllowDeletion = true, |
| 3585 | + }, new CustomResourceOptions |
| 3586 | + { |
| 3587 | + DependsOn = |
| 3588 | + { |
| 3589 | + clusterAdmin, |
| 3590 | + schemaRegistryAdmin, |
| 3591 | + clusterAction, |
| 3592 | + topicAccess, |
| 3593 | + providerBootstrapSubject, |
| 3594 | + providerBootstrapRegistry, |
| 3595 | + allTestTopic, |
| 3596 | + describeRegistry, |
| 3597 | + alterConfigsRegistry, |
| 3598 | + readRegistry, |
| 3599 | + writeRegistry, |
| 3600 | + }, |
| 3601 | + }); |
| 3602 | + |
3422 | 3603 | var developer = new Redpanda.Role("developer", new() |
3423 | 3604 | { |
3424 | 3605 | Name = roleName, |
@@ -3915,6 +4096,29 @@ func main() { |
3915 | 4096 | if err != nil { |
3916 | 4097 | return err |
3917 | 4098 | } |
| 4099 | + _, err = redpanda.NewSchema(ctx, "protobuf_roundtrip", &redpanda.SchemaArgs{ |
| 4100 | + ClusterId: testCluster.ID(), |
| 4101 | + Subject: pulumi.Sprintf("%v-protobuf-value", topicName), |
| 4102 | + SchemaType: pulumi.String("PROTOBUF"), |
| 4103 | + Schema: pulumi.Any(protobufSchemaDefinition), |
| 4104 | + References: redpanda.SchemaReferenceArray{}, |
| 4105 | + AllowDeletion: pulumi.Bool(true), |
| 4106 | + }, pulumi.DependsOn([]pulumi.Resource{ |
| 4107 | + clusterAdmin, |
| 4108 | + schemaRegistryAdmin, |
| 4109 | + clusterAction, |
| 4110 | + topicAccess, |
| 4111 | + providerBootstrapSubject, |
| 4112 | + providerBootstrapRegistry, |
| 4113 | + allTestTopic, |
| 4114 | + describeRegistry, |
| 4115 | + alterConfigsRegistry, |
| 4116 | + readRegistry, |
| 4117 | + writeRegistry, |
| 4118 | + })) |
| 4119 | + if err != nil { |
| 4120 | + return err |
| 4121 | + } |
3918 | 4122 | developer, err := redpanda.NewRole(ctx, "developer", &redpanda.RoleArgs{ |
3919 | 4123 | Name: pulumi.Any(roleName), |
3920 | 4124 | ClusterApiUrl: testCluster.ClusterApiUrl, |
@@ -4391,6 +4595,28 @@ public class App { |
4391 | 4595 | writeRegistry) |
4392 | 4596 | .build()); |
4393 | 4597 |
|
| 4598 | + var protobufRoundtrip = new Schema("protobufRoundtrip", SchemaArgs.builder() |
| 4599 | + .clusterId(testCluster.id()) |
| 4600 | + .subject(String.format("%s-protobuf-value", topicName)) |
| 4601 | + .schemaType("PROTOBUF") |
| 4602 | + .schema(protobufSchemaDefinition) |
| 4603 | + .references() |
| 4604 | + .allowDeletion(true) |
| 4605 | + .build(), CustomResourceOptions.builder() |
| 4606 | + .dependsOn( |
| 4607 | + clusterAdmin, |
| 4608 | + schemaRegistryAdmin, |
| 4609 | + clusterAction, |
| 4610 | + topicAccess, |
| 4611 | + providerBootstrapSubject, |
| 4612 | + providerBootstrapRegistry, |
| 4613 | + allTestTopic, |
| 4614 | + describeRegistry, |
| 4615 | + alterConfigsRegistry, |
| 4616 | + readRegistry, |
| 4617 | + writeRegistry) |
| 4618 | + .build()); |
| 4619 | + |
4394 | 4620 | var developer = new Role("developer", RoleArgs.builder() |
4395 | 4621 | .name(roleName) |
4396 | 4622 | .clusterApiUrl(testCluster.clusterApiUrl()) |
|
0 commit comments