Skip to content

Commit

Permalink
Add support for non default domains
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Jan 10, 2024
1 parent d6ca026 commit 4392baa
Show file tree
Hide file tree
Showing 25 changed files with 245 additions and 35 deletions.
1 change: 1 addition & 0 deletions docs/data-sources/access_control_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ data "fmc_access_control_policy" "example" {

### Optional

- `domain` (String) The name of the FMC domain
- `id` (String) The id of the object
- `name` (String) The name of the access control policy.

Expand Down
1 change: 1 addition & 0 deletions docs/data-sources/access_control_policy_category.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ data "fmc_access_control_policy_category" "example" {

### Optional

- `domain` (String) The name of the FMC domain
- `id` (String) The id of the object
- `name` (String) The name of the category.
1 change: 1 addition & 0 deletions docs/data-sources/host.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ data "fmc_host" "example" {

### Optional

- `domain` (String) The name of the FMC domain
- `id` (String) The id of the object
- `name` (String) The name of the host object.

Expand Down
1 change: 1 addition & 0 deletions docs/data-sources/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ data "fmc_network" "example" {

### Optional

- `domain` (String) The name of the FMC domain
- `id` (String) The id of the object
- `name` (String) The name of the network object.

Expand Down
1 change: 1 addition & 0 deletions docs/resources/access_control_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ resource "fmc_access_control_policy" "example" {
- `default_action_send_syslog` (Boolean) Indicating whether the device will send events to a syslog server.
- Default value: `false`
- `description` (String) Description
- `domain` (String) The name of the FMC domain

### Read-Only

Expand Down
4 changes: 4 additions & 0 deletions docs/resources/access_control_policy_category.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ resource "fmc_access_control_policy_category" "example" {
- `access_control_policy_id` (String) The ID of the access control policy.
- `name` (String) The name of the category.

### Optional

- `domain` (String) The name of the FMC domain

### Read-Only

- `id` (String) The id of the object
Expand Down
1 change: 1 addition & 0 deletions docs/resources/host.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ resource "fmc_host" "example" {
### Optional

- `description` (String) Description
- `domain` (String) The name of the FMC domain
- `overridable` (Boolean) Whether the object values can be overridden.

### Read-Only
Expand Down
1 change: 1 addition & 0 deletions docs/resources/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ resource "fmc_network" "example" {
### Optional

- `description` (String) Description
- `domain` (String) The name of the FMC domain
- `overridable` (Boolean) Whether the object values can be overridden.

### Read-Only
Expand Down
14 changes: 12 additions & 2 deletions gen/templates/data_source.go

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

1 change: 1 addition & 0 deletions gen/templates/model.go

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

40 changes: 34 additions & 6 deletions gen/templates/resource.go

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

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/hashicorp/terraform-plugin-go v0.20.0
github.com/hashicorp/terraform-plugin-log v0.9.0
github.com/hashicorp/terraform-plugin-testing v1.6.0
github.com/netascode/go-fmc v0.0.0-20240106161358-8e9cace9ca41
github.com/netascode/go-fmc v0.0.0-20240110105445-5686e76f19f8
github.com/tidwall/gjson v1.17.0
github.com/tidwall/sjson v1.2.5
golang.org/x/tools v0.16.1
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zx
github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
github.com/netascode/go-fmc v0.0.0-20240106161358-8e9cace9ca41 h1:jQpa3YToxQe475mSfkfXonuPYIP1HA2EZpjJtI3frZg=
github.com/netascode/go-fmc v0.0.0-20240106161358-8e9cace9ca41/go.mod h1:+6Nd5swsQA7T+xnOVhvA44AKPT6ZRuHOoF8XfU5/ygI=
github.com/netascode/go-fmc v0.0.0-20240110092436-864815862f60 h1:nHVxwZC/OYQVuHXskfEiSl6LvDMdZBOhzFlpAxlLbqA=
github.com/netascode/go-fmc v0.0.0-20240110092436-864815862f60/go.mod h1:+6Nd5swsQA7T+xnOVhvA44AKPT6ZRuHOoF8XfU5/ygI=
github.com/netascode/go-fmc v0.0.0-20240110105445-5686e76f19f8 h1:WqGpWK2ZKWzUOGNRbEg/Ub+tkWZAEocwvpodwjp4AyM=
github.com/netascode/go-fmc v0.0.0-20240110105445-5686e76f19f8/go.mod h1:+6Nd5swsQA7T+xnOVhvA44AKPT6ZRuHOoF8XfU5/ygI=
github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA=
github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU=
github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4=
Expand Down
14 changes: 12 additions & 2 deletions internal/provider/data_source_fmc_access_control_policy.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.

14 changes: 12 additions & 2 deletions internal/provider/data_source_fmc_host.go

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

Loading

0 comments on commit 4392baa

Please sign in to comment.