Skip to content

Commit

Permalink
Add free space option to tf model attribute of floor resource
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Dec 20, 2024
1 parent f0fe94a commit 479d8ac
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 0.1.18 (unreleased)

- Add `catalystcenter_fabric_l3_virtual_network` resource and data source
- Add `Free Space` allowed value to `rf_model` attribute of `catalystcenter_floor` resource

## 0.1.17

Expand Down
1 change: 1 addition & 0 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ description: |-
## 0.1.18 (unreleased)

- Add `catalystcenter_fabric_l3_virtual_network` resource and data source
- Add `Free Space` allowed value to `rf_model` attribute of `catalystcenter_floor` resource

## 0.1.17

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/floor.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ resource "catalystcenter_floor" "example" {
- `name` (String) The name of the floor
- `parent_name` (String) The path of the parent building, e.g. `Global/Building1`
- `rf_model` (String) The RF model
- Choices: `Cubes And Walled Offices`, `Drywall Office Only`, `Indoor High Ceiling`, `Outdoor Open Space`
- Choices: `Cubes And Walled Offices`, `Drywall Office Only`, `Indoor High Ceiling`, `Outdoor Open Space`, `Free Space`
- `width` (Number) Width

### Optional
Expand Down
10 changes: 8 additions & 2 deletions gen/definitions/floor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,14 @@ attributes:
- model_name: rfModel
data_path: site.floor
type: String
enum_values: ["Cubes And Walled Offices", "Drywall Office Only", "Indoor High Ceiling", "Outdoor Open Space"]
enum_values:
[
"Cubes And Walled Offices",
"Drywall Office Only",
"Indoor High Ceiling",
"Outdoor Open Space",
"Free Space",
]
mandatory: true
write_only: true
description: The RF model
Expand Down Expand Up @@ -68,4 +75,3 @@ test_prerequisites: |
latitude = 37.338
longitude = -121.832
}
4 changes: 2 additions & 2 deletions internal/provider/resource_catalystcenter_floor.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ func (r *FloorResource) Schema(ctx context.Context, req resource.SchemaRequest,
},
},
"rf_model": schema.StringAttribute{
MarkdownDescription: helpers.NewAttributeDescription("The RF model").AddStringEnumDescription("Cubes And Walled Offices", "Drywall Office Only", "Indoor High Ceiling", "Outdoor Open Space").String,
MarkdownDescription: helpers.NewAttributeDescription("The RF model").AddStringEnumDescription("Cubes And Walled Offices", "Drywall Office Only", "Indoor High Ceiling", "Outdoor Open Space", "Free Space").String,
Required: true,
Validators: []validator.String{
stringvalidator.OneOf("Cubes And Walled Offices", "Drywall Office Only", "Indoor High Ceiling", "Outdoor Open Space"),
stringvalidator.OneOf("Cubes And Walled Offices", "Drywall Office Only", "Indoor High Ceiling", "Outdoor Open Space", "Free Space"),
},
},
"width": schema.Float64Attribute{
Expand Down
1 change: 1 addition & 0 deletions templates/guides/changelog.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ description: |-
## 0.1.18 (unreleased)

- Add `catalystcenter_fabric_l3_virtual_network` resource and data source
- Add `Free Space` allowed value to `rf_model` attribute of `catalystcenter_floor` resource

## 0.1.17

Expand Down

0 comments on commit 479d8ac

Please sign in to comment.