fix: #106 postgresflex flavor datasource
feat: support V2 and V3 flavor handling in postgresflex
This commit is contained in:
parent
b51d6369f2
commit
b56a41dc04
34 changed files with 2986 additions and 604 deletions
|
|
@ -16,7 +16,7 @@ import (
|
|||
|
||||
func mapGetInstanceResponseToModel(
|
||||
ctx context.Context,
|
||||
m *postgresflexalpharesource.InstanceModel,
|
||||
m *LocalInstanceModel,
|
||||
resp *postgresflex.GetInstanceResponse,
|
||||
) error {
|
||||
m.BackupSchedule = types.StringValue(resp.GetBackupSchedule())
|
||||
|
|
@ -71,6 +71,8 @@ func mapGetInstanceResponseToModel(
|
|||
|
||||
m.Acl = netACL
|
||||
|
||||
// m.Labels = resp.GetLabels()
|
||||
|
||||
netInstAdd := types.StringValue("")
|
||||
if instAdd, ok := resp.Network.GetInstanceAddressOk(); ok {
|
||||
netInstAdd = types.StringValue(*instAdd)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue