Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix network model #40

Merged
merged 1 commit into from
Dec 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions pkg/models/networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type GetSpecificNetwork struct {
ID int `json:"id" tf:"id,computed"`
Name string `json:"name" tf:"name"`
Zone IDNameModel `json:"zone"`
DisplayName string `json:"displayName" tf:"display_name,computed"`
DisplayName string `json:"displayName" tf:"display_name"`
Type IDModel `json:"type"`
TypeID int `json:"-" tf:"type_id,computed"`
Owner IDNameModel `json:"owner"`
Expand All @@ -38,9 +38,9 @@ type GetSpecificNetwork struct {
ExternalType string `json:"externalType"`
RefType string `json:"refType"`
RefID int `json:"refId"`
DhcpServer bool `json:"dhcpServer" tf:"dhcp_server"`
DhcpServer bool `json:"dhcpServer"`
Status string `json:"status" tf:"status,computed"`
Visibility string `json:"visibility" tf:"visibility"`
Visibility string `json:"visibility"`
EnableAdmin bool `json:"enableAdmin"`
ScanNetwork bool `json:"scanNetwork" tf:"scan_network"`
Active bool `json:"active" tf:"active"`
Expand All @@ -59,8 +59,8 @@ type NetworkResPermission struct {
}

type NetworkResPermissionSites struct {
ID int `json:"id,omitempty" tf:"id"`
Default string `json:"default,omitempty" tf:"default"`
ID int `json:"id,omitempty" tf:"id"`
Default bool `json:"default,omitempty" tf:"default"`
}

type CreateNetworkRequest struct {
Expand Down Expand Up @@ -93,10 +93,10 @@ type CreateNetwork struct {
DNSSecondary string `json:"dnsSecondary,omitempty" tf:"secondary_dns"`
Config *CreateNetworkConfig `json:"config,omitempty" tf:"config,sub"`
Active bool `json:"active" tf:"active"`
DhcpServer bool `json:"dhcpServer" tf:"dhcp_server"`
DhcpServer bool `json:"dhcpServer"`
ScanNetwork bool `json:"scanNetwork" tf:"scan_network"`
AllowStaticOverride bool `json:"allowStaticOverride" tf:"allow_static_override"`
AppURLProxyBypass string `json:"applianceUrlProxyBypass,omitempty" tf:"appliance_url_proxy_bypass"`
AppURLProxyBypass bool `json:"applianceUrlProxyBypass,omitempty" tf:"appliance_url_proxy_bypass"`
NoProxy string `json:"noProxy,omitempty" tf:"no_proxy"`
ScopeID string `json:"scopeId,omitempty" tf:"scode_id"`
ResourcePermissions NetworkResPermission `json:"-" tf:"resource_permissions,sub"`
Expand Down