Skip to content

Commit

Permalink
ci: Go fmt & go generate
Browse files Browse the repository at this point in the history
  • Loading branch information
smutel committed Nov 10, 2022
1 parent c19d669 commit 7b1e0cf
Show file tree
Hide file tree
Showing 12 changed files with 432 additions and 72 deletions.
42 changes: 36 additions & 6 deletions docs/resources/ipam_aggregate.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ resource "netbox_ipam_aggregate" "aggregate_test" {
custom_field {
name = "cf_selection"
type = "selection"
type = "select"
value = "1"
}
Expand All @@ -60,9 +60,39 @@ resource "netbox_ipam_aggregate" "aggregate_test" {
}
custom_field {
name = "cf_multiple_selection"
type = "multiple"
value = "0,1"
name = "cf_multi_selection"
type = "multiselect"
value = jsonencode([
"0",
"1"
])
}
custom_field {
name = "cf_json"
type = "json"
value = jsonencode({
stringvalue = "string"
boolvalue = false
dictionary = {
numbervalue = 5
}
})
}
custom_field {
name = "cf_object"
type = "object"
value = data.netbox_dcim_platform.platform_test.id
}
custom_field {
name = "cf_multi_object"
type = "multiobject"
value = jsonencode([
data.netbox_dcim_platform.platform_test.id,
data.netbox_dcim_platform.platform_test2.id
])
}
}
```
Expand All @@ -77,7 +107,7 @@ resource "netbox_ipam_aggregate" "aggregate_test" {

### Optional

- `custom_field` (Block Set) Existing custom fields to associate to this aggregate (ipam module). (see [below for nested schema](#nestedblock--custom_field))
- `custom_field` (Block Set) Existing custom fields to associate to this ressource. (see [below for nested schema](#nestedblock--custom_field))
- `date_added` (String) Date when this aggregate was added. Format *YYYY-MM-DD*.
- `description` (String) The description of this aggregate (ipam module).
- `tag` (Block Set) Existing tag to associate to this aggregate (ipam module). (see [below for nested schema](#nestedblock--tag))
Expand All @@ -98,7 +128,7 @@ resource "netbox_ipam_aggregate" "aggregate_test" {
Required:

- `name` (String) Name of the existing custom field.
- `type` (String) Type of the existing custom field (text, integer, boolean, url, selection, multiple).
- `type` (String) Type of the existing custom field (text, longtext, integer, boolean, date, url, json, select, multiselect, object, multiobject, selection (deprecated), multiple(deprecated)).
- `value` (String) Value of the existing custom field.


Expand Down
42 changes: 36 additions & 6 deletions docs/resources/ipam_ip_addresses.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ resource "netbox_ipam_ip_addresses" "ip_test" {
custom_field {
name = "cf_selection"
type = "selection"
type = "select"
value = "1"
}
Expand All @@ -60,9 +60,39 @@ resource "netbox_ipam_ip_addresses" "ip_test" {
}
custom_field {
name = "cf_multiple_selection"
type = "multiple"
value = "0,1"
name = "cf_multi_selection"
type = "multiselect"
value = jsonencode([
"0",
"1"
])
}
custom_field {
name = "cf_json"
type = "json"
value = jsonencode({
stringvalue = "string"
boolvalue = false
dictionary = {
numbervalue = 5
}
})
}
custom_field {
name = "cf_object"
type = "object"
value = data.netbox_dcim_platform.platform_test.id
}
custom_field {
name = "cf_multi_object"
type = "multiobject"
value = jsonencode([
data.netbox_dcim_platform.platform_test.id,
data.netbox_dcim_platform.platform_test2.id
])
}
}
Expand All @@ -85,7 +115,7 @@ resource "netbox_ipam_ip_addresses" "dynamic_ip_from_ip_range" {
### Optional

- `address` (String) The IP address (with mask) used for this IP address (ipam module). Required if both prefix and ip_range are not set.
- `custom_field` (Block Set) Existing custom fields to associate to this IP address (ipam module). (see [below for nested schema](#nestedblock--custom_field))
- `custom_field` (Block Set) Existing custom fields to associate to this ressource. (see [below for nested schema](#nestedblock--custom_field))
- `description` (String) The description of this IP address (ipam module).
- `dns_name` (String) The DNS name of this IP address (ipam module).
- `ip_range` (Number) The ip-range id for automatic IP assignment. Required if both prefix and address are not set.
Expand All @@ -111,7 +141,7 @@ resource "netbox_ipam_ip_addresses" "dynamic_ip_from_ip_range" {
Required:

- `name` (String) Name of the existing custom field.
- `type` (String) Type of the existing custom field (text, integer, boolean, url, selection, multiple).
- `type` (String) Type of the existing custom field (text, longtext, integer, boolean, date, url, json, select, multiselect, object, multiobject, selection (deprecated), multiple(deprecated)).
- `value` (String) Value of the existing custom field.


Expand Down
42 changes: 36 additions & 6 deletions docs/resources/ipam_ip_range.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ resource "netbox_ipam_ip_range" "range_test" {
custom_field {
name = "cf_selection"
type = "selection"
type = "select"
value = "1"
}
Expand All @@ -62,9 +62,39 @@ resource "netbox_ipam_ip_range" "range_test" {
}
custom_field {
name = "cf_multiple_selection"
type = "multiple"
value = "0,1"
name = "cf_multi_selection"
type = "multiselect"
value = jsonencode([
"0",
"1"
])
}
custom_field {
name = "cf_json"
type = "json"
value = jsonencode({
stringvalue = "string"
boolvalue = false
dictionary = {
numbervalue = 5
}
})
}
custom_field {
name = "cf_object"
type = "object"
value = data.netbox_dcim_platform.platform_test.id
}
custom_field {
name = "cf_multi_object"
type = "multiobject"
value = jsonencode([
data.netbox_dcim_platform.platform_test.id,
data.netbox_dcim_platform.platform_test2.id
])
}
}
```
Expand All @@ -79,7 +109,7 @@ resource "netbox_ipam_ip_range" "range_test" {

### Optional

- `custom_field` (Block Set) Existing custom fields to associate to this prefix (ipam module). (see [below for nested schema](#nestedblock--custom_field))
- `custom_field` (Block Set) Existing custom fields to associate to this ressource. (see [below for nested schema](#nestedblock--custom_field))
- `description` (String) The description of this prefix (ipam module).
- `role_id` (Number) ID of the role attached to this prefix (ipam module).
- `status` (String) Status among active, reserved, deprecated (active by default).
Expand All @@ -99,7 +129,7 @@ resource "netbox_ipam_ip_range" "range_test" {
Required:

- `name` (String) Name of the existing custom field.
- `type` (String) Type of the existing custom field (text, integer, boolean, url, selection, multiple).
- `type` (String) Type of the existing custom field (text, longtext, integer, boolean, date, url, json, select, multiselect, object, multiobject, selection (deprecated), multiple(deprecated)).
- `value` (String) Value of the existing custom field.


Expand Down
42 changes: 36 additions & 6 deletions docs/resources/ipam_prefix.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ resource "netbox_ipam_prefix" "prefix_test" {
custom_field {
name = "cf_selection"
type = "selection"
type = "select"
value = "1"
}
Expand All @@ -63,9 +63,39 @@ resource "netbox_ipam_prefix" "prefix_test" {
}
custom_field {
name = "cf_multiple_selection"
type = "multiple"
value = "0,1"
name = "cf_multi_selection"
type = "multiselect"
value = jsonencode([
"0",
"1"
])
}
custom_field {
name = "cf_json"
type = "json"
value = jsonencode({
stringvalue = "string"
boolvalue = false
dictionary = {
numbervalue = 5
}
})
}
custom_field {
name = "cf_object"
type = "object"
value = data.netbox_dcim_platform.platform_test.id
}
custom_field {
name = "cf_multi_object"
type = "multiobject"
value = jsonencode([
data.netbox_dcim_platform.platform_test.id,
data.netbox_dcim_platform.platform_test2.id
])
}
}
Expand All @@ -83,7 +113,7 @@ resource "netbox_ipam_prefix" "dynamic_prefix_test" {

### Optional

- `custom_field` (Block Set) Existing custom fields to associate to this prefix (ipam module). (see [below for nested schema](#nestedblock--custom_field))
- `custom_field` (Block Set) Existing custom fields to associate to this ressource. (see [below for nested schema](#nestedblock--custom_field))
- `description` (String) The description of this prefix (ipam module).
- `is_pool` (Boolean) Define if this object is a pool (false by default).
- `parent_prefix` (Block Set, Max: 1) Parent prefix and length used for new prefix. Required if prefix is not set (see [below for nested schema](#nestedblock--parent_prefix))
Expand All @@ -107,7 +137,7 @@ resource "netbox_ipam_prefix" "dynamic_prefix_test" {
Required:

- `name` (String) Name of the existing custom field.
- `type` (String) Type of the existing custom field (text, integer, boolean, url, selection, multiple).
- `type` (String) Type of the existing custom field (text, longtext, integer, boolean, date, url, json, select, multiselect, object, multiobject, selection (deprecated), multiple(deprecated)).
- `value` (String) Value of the existing custom field.


Expand Down
42 changes: 36 additions & 6 deletions docs/resources/ipam_service.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ resource "netbox_ipam_service" "service_test" {
custom_field {
name = "cf_selection"
type = "selection"
type = "select"
value = "1"
}
Expand All @@ -63,9 +63,39 @@ resource "netbox_ipam_service" "service_test" {
}
custom_field {
name = "cf_multiple_selection"
type = "multiple"
value = "0,1"
name = "cf_multi_selection"
type = "multiselect"
value = jsonencode([
"0",
"1"
])
}
custom_field {
name = "cf_json"
type = "json"
value = jsonencode({
stringvalue = "string"
boolvalue = false
dictionary = {
numbervalue = 5
}
})
}
custom_field {
name = "cf_object"
type = "object"
value = data.netbox_dcim_platform.platform_test.id
}
custom_field {
name = "cf_multi_object"
type = "multiobject"
value = jsonencode([
data.netbox_dcim_platform.platform_test.id,
data.netbox_dcim_platform.platform_test2.id
])
}
}
```
Expand All @@ -81,7 +111,7 @@ resource "netbox_ipam_service" "service_test" {

### Optional

- `custom_field` (Block Set) Existing custom fields to associate to this service (ipam module). (see [below for nested schema](#nestedblock--custom_field))
- `custom_field` (Block Set) Existing custom fields to associate to this ressource. (see [below for nested schema](#nestedblock--custom_field))
- `description` (String) The description of this service (ipam module).
- `device_id` (Number) ID of the device linked to this service (ipam module).
- `ip_addresses_id` (List of Number) Array of ID of IP addresses attached to this service (ipam module).
Expand All @@ -99,7 +129,7 @@ resource "netbox_ipam_service" "service_test" {
Required:

- `name` (String) Name of the existing custom field.
- `type` (String) Type of the existing custom field (text, integer, boolean, url, selection, multiple).
- `type` (String) Type of the existing custom field (text, longtext, integer, boolean, date, url, json, select, multiselect, object, multiobject, selection (deprecated), multiple(deprecated)).
- `value` (String) Value of the existing custom field.


Expand Down
Loading

0 comments on commit 7b1e0cf

Please sign in to comment.