Skip to content

Commit

Permalink
Merge pull request #40 from HewlettPackard/network-model-fix
Browse files Browse the repository at this point in the history
Fix network model
  • Loading branch information
gandharvas authored Dec 15, 2021
2 parents 0e78861 + 0d6f030 commit 9a4c702
Showing 1 changed file with 7 additions and 7 deletions.
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

0 comments on commit 9a4c702

Please sign in to comment.