Skip to content

Commit

Permalink
[AV-66942] DB Creds | App Services | Backup Schedule Update Optional …
Browse files Browse the repository at this point in the history
…Fields (#106)
  • Loading branch information
nidhi07kumar authored Nov 30, 2023
1 parent df445f2 commit b13ad8c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions internal/resources/appservice_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ func AppServiceSchema() schema.Schema {
"organization_id": stringAttribute(required),
"project_id": stringAttribute(required),
"cluster_id": stringAttribute(required),
"name": stringAttribute(required),
"description": stringAttribute(optional, computed),
"name": stringAttribute(required, requiresReplace),
"description": stringDefaultAttribute("", optional, computed, requiresReplace),
"nodes": int64Attribute(optional, computed),
"cloud_provider": stringAttribute(optional, computed),
"current_state": stringAttribute(computed),
Expand Down
2 changes: 1 addition & 1 deletion internal/resources/backup_schedule_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func BackupScheduleSchema() schema.Schema {
"project_id": stringAttribute(required, requiresReplace),
"cluster_id": stringAttribute(required, requiresReplace),
"bucket_id": stringAttribute(required, requiresReplace),
"type": stringAttribute(required),
"type": stringAttribute(required, requiresReplace),
"weekly_schedule": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
Expand Down
4 changes: 2 additions & 2 deletions internal/resources/database_credential_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ func DatabaseCredentialSchema() schema.Schema {
stringplanmodifier.UseStateForUnknown(),
},
},
"name": stringAttribute(required),
"password": stringAttribute(optional, computed, sensitive),
"name": stringAttribute(required, requiresReplace),
"password": stringAttribute(optional, computed, sensitive, useStateForUnknown),
"organization_id": stringAttribute(required),
"project_id": stringAttribute(required),
"cluster_id": stringAttribute(required),
Expand Down

0 comments on commit b13ad8c

Please sign in to comment.