@@ -16,26 +16,26 @@ type sourceFacebookMarketingResource struct {
1616}
1717
1818type sourceFacebookMarketingResourceModel struct {
19- Name string `cty :"name"`
20- SourceId string `cty :"source_id"`
21- WorkspaceId string `cty :"workspace_id"`
22- ConnectionConfiguration sourceFacebookMarketingConnConfigModel `cty :"configuration"`
19+ Name string `pctsdk :"name"`
20+ SourceId string `pctsdk :"source_id"`
21+ WorkspaceId string `pctsdk :"workspace_id"`
22+ ConnectionConfiguration sourceFacebookMarketingConnConfigModel `pctsdk :"configuration"`
2323}
2424
2525type sourceFacebookMarketingConnConfigModel struct {
26- SourceType string `cty :"source_type"`
27- AccountId string `cty :"account_id"`
28- StartDate string `cty :"start_date"`
29- AccessToken string `cty :"access_token"`
30-
31- EndDate string `cty :"end_date"`
32- IncludeDeleted bool `cty :"include_deleted"`
33- FetchThumbnailImages bool `cty :"fetch_thumbnail_images"`
34- //CustomInsights any `cty :"custom_insights"`
35- PageSize int `cty :"page_size"`
36- InsightsLookbackWindow int `cty :"insights_lookback_window"`
37- MaxBatchSize int `cty :"max_batch_size"`
38- ActionBreakdownsAllowEmpty bool `cty :"action_breakdowns_allow_empty"`
26+ SourceType string `pctsdk :"source_type"`
27+ AccountId string `pctsdk :"account_id"`
28+ StartDate string `pctsdk :"start_date"`
29+ AccessToken string `pctsdk :"access_token"`
30+
31+ EndDate string `pctsdk :"end_date"`
32+ IncludeDeleted bool `pctsdk :"include_deleted"`
33+ FetchThumbnailImages bool `pctsdk :"fetch_thumbnail_images"`
34+ //CustomInsights any `pctsdk :"custom_insights"`
35+ PageSize int `pctsdk :"page_size"`
36+ InsightsLookbackWindow int `pctsdk :"insights_lookback_window"`
37+ MaxBatchSize int `pctsdk :"max_batch_size"`
38+ ActionBreakdownsAllowEmpty bool `pctsdk :"action_breakdowns_allow_empty"`
3939}
4040
4141// Ensure the implementation satisfies the expected interfaces.
@@ -100,7 +100,7 @@ func (r *sourceFacebookMarketingResource) Schema() *schema.ServiceResponse {
100100 },
101101 "configuration" : & schema.MapAttribute {
102102 Description : "Connection configuration" ,
103- // Required: true,
103+ Required : true ,
104104 //Sensitive: true,
105105 Attributes : map [string ]schema.Attribute {
106106 "source_type" : & schema.StringAttribute {
@@ -123,30 +123,37 @@ func (r *sourceFacebookMarketingResource) Schema() *schema.ServiceResponse {
123123 "end_date" : & schema.StringAttribute {
124124 Description : "end date" ,
125125 Optional : true ,
126+ Required : true ,
126127 },
127128 "include_deleted" : & schema.BoolAttribute {
128129 Description : "Include Deleted" ,
129130 Optional : true ,
131+ Required : true ,
130132 },
131133 "fetch_thumbnail_images" : & schema.BoolAttribute {
132134 Description : "Fetch Thumbnail Image" ,
133135 Optional : true ,
136+ Required : true ,
134137 },
135138 "page_size" : & schema.IntAttribute {
136139 Description : "Page Size" ,
137140 Optional : true ,
141+ Required : true ,
138142 },
139143 "insights_lookback_window" : & schema.IntAttribute {
140144 Description : "insights_lookback_window" ,
141145 Optional : true ,
146+ Required : true ,
142147 },
143148 "max_batch_size" : & schema.IntAttribute {
144149 Description : "Max Batch Size" ,
145150 Optional : true ,
151+ Required : true ,
146152 },
147153 "action_breakdowns_allow_empty" : & schema.BoolAttribute {
148154 Description : "Action Breakdowns Allow Empty" ,
149155 Optional : true ,
156+ Required : true ,
150157 },
151158 },
152159 },
0 commit comments