@@ -79,7 +79,16 @@ func resourceOracleDsource() *schema.Resource {
7979 "shell" : {
8080 Type : schema .TypeString ,
8181 Optional : true ,
82- }, "credentials_env_vars" : {
82+ },
83+ "element_id" : {
84+ Type : schema .TypeString ,
85+ Computed : true ,
86+ },
87+ "has_credentials" : {
88+ Type : schema .TypeBool ,
89+ Computed : true ,
90+ },
91+ "credentials_env_vars" : {
8392 Type : schema .TypeList ,
8493 Optional : true ,
8594 Elem : & schema.Resource {
@@ -150,7 +159,16 @@ func resourceOracleDsource() *schema.Resource {
150159 "shell" : {
151160 Type : schema .TypeString ,
152161 Optional : true ,
153- }, "credentials_env_vars" : {
162+ },
163+ "element_id" : {
164+ Type : schema .TypeString ,
165+ Computed : true ,
166+ },
167+ "has_credentials" : {
168+ Type : schema .TypeBool ,
169+ Computed : true ,
170+ },
171+ "credentials_env_vars" : {
154172 Type : schema .TypeList ,
155173 Optional : true ,
156174 Elem : & schema.Resource {
@@ -398,7 +416,16 @@ func resourceOracleDsource() *schema.Resource {
398416 "shell" : {
399417 Type : schema .TypeString ,
400418 Optional : true ,
401- }, "credentials_env_vars" : {
419+ },
420+ "element_id" : {
421+ Type : schema .TypeString ,
422+ Computed : true ,
423+ },
424+ "has_credentials" : {
425+ Type : schema .TypeBool ,
426+ Computed : true ,
427+ },
428+ "credentials_env_vars" : {
402429 Type : schema .TypeList ,
403430 Optional : true ,
404431 Elem : & schema.Resource {
@@ -804,6 +831,9 @@ func resourceOracleDsourceRead(ctx context.Context, d *schema.ResourceData, meta
804831 d .Set ("retention_policy_id" , result .GetReplicaRetentionPolicyId ())
805832 d .Set ("log_sync_enabled" , result .GetLogsyncEnabled ())
806833 d .Set ("exported_data_directory" , result .GetExportedDataDirectory ())
834+ d .Set ("ops_pre_sync" , result .GetHooks ().OpsPreSync )
835+ d .Set ("ops_post_sync" , result .GetHooks ().OpsPostSync )
836+ d .Set ("ops_pre_log_sync" , result .GetHooks ().OpsPreLogSync )
807837 return diags
808838}
809839
0 commit comments