Skip to content

Commit 55c4e78

Browse files
committed
odb network data source description added
1 parent ce3ab0a commit 55c4e78

File tree

1 file changed

+39
-21
lines changed

1 file changed

+39
-21
lines changed

internal/service/odb/network_data_source.go

Lines changed: 39 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -44,43 +44,56 @@ func (d *dataSourceNetwork) Schema(ctx context.Context, req datasource.SchemaReq
4444
Required: true,
4545
},
4646
"display_name": schema.StringAttribute{
47-
Computed: true,
47+
Computed: true,
48+
Description: "Display name for the network resource.",
4849
},
4950
"availability_zone_id": schema.StringAttribute{
50-
Computed: true,
51+
Computed: true,
52+
Description: "The AZ ID of the AZ where the ODB network is located.",
5153
},
5254
"availability_zone": schema.StringAttribute{
53-
Computed: true,
55+
Computed: true,
56+
Description: "The availability zone where the ODB network is located.",
5457
},
5558
"backup_subnet_cidr": schema.StringAttribute{
56-
Computed: true,
59+
Computed: true,
60+
Description: " The CIDR range of the backup subnet for the ODB network.",
5761
},
5862
"client_subnet_cidr": schema.StringAttribute{
59-
Computed: true,
63+
Computed: true,
64+
Description: "The CIDR notation for the network resource.",
6065
},
6166
"custom_domain_name": schema.StringAttribute{
62-
Computed: true,
67+
Computed: true,
68+
Description: "The name of the custom domain that the network is located.",
6369
},
6470
"default_dns_prefix": schema.StringAttribute{
65-
Computed: true,
71+
Computed: true,
72+
Description: "The default DNS prefix for the network resource.",
6673
},
6774
"oci_network_anchor_id": schema.StringAttribute{
68-
Computed: true,
75+
Computed: true,
76+
Description: "The unique identifier of the OCI network anchor for the ODB network.",
6977
},
7078
"oci_network_anchor_url": schema.StringAttribute{
71-
Computed: true,
79+
Computed: true,
80+
Description: "The URL of the OCI network anchor for the ODB network.",
7281
},
7382
"oci_resource_anchor_name": schema.StringAttribute{
74-
Computed: true,
83+
Computed: true,
84+
Description: "The name of the OCI resource anchor for the ODB network.",
7585
},
7686
"oci_vcn_id": schema.StringAttribute{
77-
Computed: true,
87+
Computed: true,
88+
Description: "The unique identifier Oracle Cloud ID (OCID) of the OCI VCN for the ODB network.",
7889
},
7990
"oci_vcn_url": schema.StringAttribute{
80-
Computed: true,
91+
Computed: true,
92+
Description: "The URL of the OCI VCN for the ODB network.",
8193
},
8294
"percent_progress": schema.Float64Attribute{
83-
Computed: true,
95+
Computed: true,
96+
Description: "The amount of progress made on the current operation on the ODB network, expressed as a percentage.",
8497
},
8598
"peered_cidrs": schema.SetAttribute{
8699
CustomType: fwtypes.SetOfStringType,
@@ -89,18 +102,22 @@ func (d *dataSourceNetwork) Schema(ctx context.Context, req datasource.SchemaReq
89102
Description: "The list of CIDR ranges from the peered VPC that are allowed access to the ODB network. Please refer odb network peering documentation.",
90103
},
91104
"status": schema.StringAttribute{
92-
CustomType: statusType,
93-
Computed: true,
105+
CustomType: statusType,
106+
Computed: true,
107+
Description: "The status of the network resource.",
94108
},
95109
"status_reason": schema.StringAttribute{
96-
Computed: true,
110+
Computed: true,
111+
Description: "Additional information about the current status of the ODB network.",
97112
},
98113
"created_at": schema.StringAttribute{
99-
Computed: true,
114+
Computed: true,
115+
Description: "The date and time when the ODB network was created.",
100116
},
101117
"managed_services": schema.ObjectAttribute{
102-
Computed: true,
103-
CustomType: fwtypes.NewObjectTypeOf[odbNetworkManagedServicesDataSourceModel](ctx),
118+
Computed: true,
119+
CustomType: fwtypes.NewObjectTypeOf[odbNetworkManagedServicesDataSourceModel](ctx),
120+
Description: "The managed services configuration for the ODB network.",
104121
AttributeTypes: map[string]attr.Type{
105122
"service_network_arn": types.StringType,
106123
"resource_gateway_arn": types.StringType,
@@ -141,8 +158,9 @@ func (d *dataSourceNetwork) Schema(ctx context.Context, req datasource.SchemaReq
141158
},
142159
names.AttrTags: tftags.TagsAttributeComputedOnly(),
143160
"oci_dns_forwarding_configs": schema.ListAttribute{
144-
Computed: true,
145-
CustomType: fwtypes.NewListNestedObjectTypeOf[odbNwkOciDnsForwardingConfigDataSourceModel](ctx),
161+
Computed: true,
162+
Description: "The DNS resolver endpoint in OCI for forwarding DNS queries for the ociPrivateZone domain.",
163+
CustomType: fwtypes.NewListNestedObjectTypeOf[odbNwkOciDnsForwardingConfigDataSourceModel](ctx),
146164
ElementType: types.ObjectType{
147165
AttrTypes: map[string]attr.Type{
148166
"domain_name": types.StringType,

0 commit comments

Comments
 (0)