@@ -167,7 +167,7 @@ func (d *platformDataSource) Schema(_ context.Context, _ datasource.SchemaReques
167167 },
168168 "quota_definitions" : schema.ListAttribute {
169169 MarkdownDescription : "List of quota definitions for the platform." ,
170- Required : true ,
170+ Computed : true ,
171171 Sensitive : false ,
172172 ElementType : types.ObjectType {
173173 AttrTypes : map [string ]attr.Type {
@@ -679,15 +679,15 @@ func awsReplicationConfigDataSourceSchema() schema.Attribute {
679679 Computed : true ,
680680 NestedObject : schema.NestedAttributeObject {
681681 Attributes : map [string ]schema.Attribute {
682- "project_role_ref" : meshProjectRoleAttribute (),
682+ "project_role_ref" : meshProjectRoleAttribute (true ),
683683 "aws_role" : schema.StringAttribute {
684684 MarkdownDescription : "The AWS role name" ,
685685 Computed : true ,
686686 },
687687 "permission_set_arns" : schema.ListAttribute {
688688 MarkdownDescription : "List of permission set ARNs associated with this role mapping" ,
689689 ElementType : types .StringType ,
690- Optional : true ,
690+ Computed : true ,
691691 },
692692 },
693693 },
@@ -843,8 +843,7 @@ func azureReplicationConfigDataSourceSchema() schema.Attribute {
843843 Computed : true ,
844844 Attributes : map [string ]schema.Attribute {
845845 "redirect_url" : schema.StringAttribute {
846- MarkdownDescription : "This is the URL that Azure's consent experience redirects users to after they accept their invitation." ,
847- Computed : true ,
846+ Computed : true ,
848847 },
849848 "send_azure_invitation_mail" : schema.BoolAttribute {
850849 MarkdownDescription : "When true, meshStack instructs Azure to send out Invitation mails to invited users. These mails allow users to redeem their invitation to the AAD tenant only using email and Azure Portal." ,
@@ -873,7 +872,7 @@ func azureReplicationConfigDataSourceSchema() schema.Attribute {
873872 Computed : true ,
874873 NestedObject : schema.NestedAttributeObject {
875874 Attributes : map [string ]schema.Attribute {
876- "project_role_ref" : meshProjectRoleAttribute (),
875+ "project_role_ref" : meshProjectRoleAttribute (true ),
877876 "azure_role" : schema.SingleNestedAttribute {
878877 MarkdownDescription : "The Azure role definition." ,
879878 Computed : true ,
@@ -937,8 +936,6 @@ func azureReplicationConfigDataSourceSchema() schema.Attribute {
937936 }
938937}
939938
940- // TODO continue here.
941-
942939func azureRgReplicationConfigDataSourceSchema () schema.Attribute {
943940 return schema.SingleNestedAttribute {
944941 MarkdownDescription : "Azure Resource Group-specific replication configuration for the platform." ,
@@ -1111,7 +1108,7 @@ func gcpReplicationConfigDataSourceSchema() schema.Attribute {
11111108 Computed : true ,
11121109 NestedObject : schema.NestedAttributeObject {
11131110 Attributes : map [string ]schema.Attribute {
1114- "project_role_ref" : meshProjectRoleAttribute (),
1111+ "project_role_ref" : meshProjectRoleAttribute (true ),
11151112 "gcp_role" : schema.StringAttribute {
11161113 MarkdownDescription : "The GCP IAM role" ,
11171114 Computed : true ,
@@ -1208,13 +1205,10 @@ func kubernetesMeteringConfigDataSourceSchema() schema.Attribute {
12081205 Computed : true ,
12091206 Attributes : map [string ]schema.Attribute {
12101207 "client_config" : kubernetesClientConfigDataSourceSchema ("Client configuration for Kubernetes metering" ),
1211- "processing" : meteringProcessingConfigDataSourceSchema (),
12121208 },
12131209 }
12141210}
12151211
1216- // TODO continue here.
1217-
12181212func openShiftReplicationConfigDataSourceSchema () schema.Attribute {
12191213 return schema.SingleNestedAttribute {
12201214 MarkdownDescription : "Replication configuration for OpenShift (optional, but required for replication)" ,
@@ -1238,7 +1232,7 @@ func openShiftReplicationConfigDataSourceSchema() schema.Attribute {
12381232 Computed : true ,
12391233 NestedObject : schema.NestedAttributeObject {
12401234 Attributes : map [string ]schema.Attribute {
1241- "project_role_ref" : meshProjectRoleAttribute (),
1235+ "project_role_ref" : meshProjectRoleAttribute (true ),
12421236 "openshift_role" : schema.StringAttribute {
12431237 MarkdownDescription : "The OpenShift role name" ,
12441238 Computed : true ,
0 commit comments