Skip to content

Commit

Permalink
Add transport feature profile resource
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Nov 24, 2023
1 parent c1052cc commit 5262c49
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
Expand Up @@ -2,6 +2,7 @@

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

## 0.2.11

Expand Down
31 changes: 31 additions & 0 deletions docs/data-sources/transport_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_transport_feature_profile Data Source - terraform-provider-sdwan"
subcategory: "Feature Profiles"
description: |-
This data source can read the Transport Feature Profile .
---

# sdwan_transport_feature_profile (Data Source)

This data source can read the Transport Feature Profile .

## Example Usage

```terraform
data "sdwan_transport_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 transport feature profile
1 change: 1 addition & 0 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ description: |-

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

## 0.2.11

Expand Down
43 changes: 43 additions & 0 deletions docs/resources/transport_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_transport_feature_profile Resource - terraform-provider-sdwan"
subcategory: "Feature Profiles"
description: |-
This resource can manage a Transport Feature Profile .
---

# sdwan_transport_feature_profile (Resource)

This resource can manage a Transport Feature Profile .

## Example Usage

```terraform
resource "sdwan_transport_feature_profile" "example" {
name = "TRANSPORT_FP_1"
description = "My transport feature profile 1"
}
```

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

### Required

- `name` (String) The name of the transport 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_transport_feature_profile.example "f6b2c44c-693c-4763-b010-895aa3d236bd"
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
data "sdwan_transport_feature_profile" "example" {
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import sdwan_transport_feature_profile.example "f6b2c44c-693c-4763-b010-895aa3d236bd"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "sdwan_transport_feature_profile" "example" {
name = "TRANSPORT_FP_1"
description = "My transport feature profile 1"
}
16 changes: 16 additions & 0 deletions gen/definitions/generic/transport_feature_profile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Transport Feature Profile
rest_endpoint: /v1/feature-profile/sdwan/transport/
id_attribute: id
doc_category: Feature Profiles
attributes:
- model_name: name
response_model_name: profileName
type: String
mandatory: true
description: The name of the transport feature profile
example: TRANSPORT_FP_1
- model_name: description
type: String
description: Description
example: My transport feature profile 1
104 changes: 104 additions & 0 deletions internal/provider/data_source_sdwan_transport_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_transport_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 5262c49

Please sign in to comment.