Skip to content

Commit

Permalink
Add service feature profile resource
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Nov 24, 2023
1 parent b7fd55d commit c1052cc
Show file tree
Hide file tree
Showing 15 changed files with 595 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 0.2.12 (unreleased)

- Add `sdwan_system_feature_profile` resource and data source
- Add `sdwan_service_feature_profile` resource and data source

## 0.2.11

Expand Down
31 changes: 31 additions & 0 deletions docs/data-sources/service_feature_profile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_service_feature_profile Data Source - terraform-provider-sdwan"
subcategory: "Feature Profiles"
description: |-
This data source can read the Service Feature Profile .
---

# sdwan_service_feature_profile (Data Source)

This data source can read the Service Feature Profile .

## Example Usage

```terraform
data "sdwan_service_feature_profile" "example" {
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `id` (String) The id of the object

### Read-Only

- `description` (String) Description
- `name` (String) The name of the service feature profile
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.2.12 (unreleased)

- Add `sdwan_system_feature_profile` resource and data source
- Add `sdwan_service_feature_profile` resource and data source

## 0.2.11

Expand Down
43 changes: 43 additions & 0 deletions docs/resources/service_feature_profile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_service_feature_profile Resource - terraform-provider-sdwan"
subcategory: "Feature Profiles"
description: |-
This resource can manage a Service Feature Profile .
---

# sdwan_service_feature_profile (Resource)

This resource can manage a Service Feature Profile .

## Example Usage

```terraform
resource "sdwan_service_feature_profile" "example" {
name = "SERVICE_FP_1"
description = "My service feature profile 1"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `name` (String) The name of the service feature profile

### Optional

- `description` (String) Description

### Read-Only

- `id` (String) The id of the object

## Import

Import is supported using the following syntax:

```shell
terraform import sdwan_service_feature_profile.example "f6b2c44c-693c-4763-b010-895aa3d236bd"
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
data "sdwan_service_feature_profile" "example" {
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
}
1 change: 1 addition & 0 deletions examples/resources/sdwan_service_feature_profile/import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import sdwan_service_feature_profile.example "f6b2c44c-693c-4763-b010-895aa3d236bd"
4 changes: 4 additions & 0 deletions examples/resources/sdwan_service_feature_profile/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "sdwan_service_feature_profile" "example" {
name = "SERVICE_FP_1"
description = "My service feature profile 1"
}
16 changes: 16 additions & 0 deletions gen/definitions/generic/service_feature_profile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Service Feature Profile
rest_endpoint: /v1/feature-profile/sdwan/service/
id_attribute: id
doc_category: Feature Profiles
attributes:
- model_name: name
response_model_name: profileName
type: String
mandatory: true
description: The name of the service feature profile
example: SERVICE_FP_1
- model_name: description
type: String
description: Description
example: My service feature profile 1
104 changes: 104 additions & 0 deletions internal/provider/data_source_sdwan_service_feature_profile.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 69 additions & 0 deletions internal/provider/model_sdwan_service_feature_profile.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions internal/provider/provider.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c1052cc

Please sign in to comment.